@ddict/popup 1.6.0 → 1.6.2

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/popup.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createElementBlock as g, openBlock as h, createElementVNode as f, Fragment as z, renderList as Y, normalizeClass as R, createTextVNode as Se, normalizeStyle as Zn, toDisplayString as J, createStaticVNode as Be, createBlock as W, createCommentVNode as P, computed as L, unref as M, shallowRef as Un, watch as F, triggerRef as Dt, onScopeDispose as Tt, ref as O, onUnmounted as Fe, inject as le, watchEffect as fe, onMounted as se, cloneVNode as sn, h as Ve, defineComponent as pe, provide as ce, nextTick as X, toRaw as ne, reactive as an, hasInjectionContext as Wn, getCurrentInstance as rn, markRaw as be, effectScope as un, isRef as $e, isReactive as Et, toRef as it, getCurrentScope as cn, toRefs as Rt, mergeModels as qn, useModel as Gn, withCtx as ze, createVNode as B, withModifiers as ft, withDirectives as tt, vModelText as nt, pushScopeId as St, popScopeId as $t, withKeys as Jn } from "vue";
1
+ import { createElementBlock as g, openBlock as h, createElementVNode as f, Fragment as z, renderList as Y, normalizeClass as P, createTextVNode as Ee, normalizeStyle as Zn, toDisplayString as G, createStaticVNode as Be, createBlock as W, createCommentVNode as R, computed as L, unref as M, shallowRef as Un, watch as F, triggerRef as Dt, onScopeDispose as Tt, ref as O, onUnmounted as Fe, inject as le, watchEffect as fe, onMounted as se, cloneVNode as sn, h as Ve, defineComponent as pe, provide as ce, nextTick as X, toRaw as ne, reactive as an, hasInjectionContext as Wn, getCurrentInstance as rn, markRaw as be, effectScope as un, isRef as $e, isReactive as St, toRef as it, getCurrentScope as cn, toRefs as Rt, mergeModels as qn, useModel as Gn, withCtx as ze, createVNode as B, withModifiers as ft, withDirectives as tt, vModelText as nt, pushScopeId as Et, popScopeId as $t, withKeys as Jn } from "vue";
2
2
  const vt = navigator.userAgent.match(
3
3
  /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i
4
4
  ), Ze = {
@@ -72,14 +72,14 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
72
72
  }, null, 40, no),
73
73
  f("label", {
74
74
  for: `theme-${a.value}`,
75
- class: R(["cursor-pointer rounded-lg px-2 py-1 hover:bg-base-200", { "bg-primary text-primary-content": e.currentTheme === a.value }])
75
+ class: P(["cursor-pointer rounded-lg px-2 py-1 hover:bg-base-200", { "bg-primary text-primary-content": e.currentTheme === a.value }])
76
76
  }, [
77
77
  f("span", lo, [
78
78
  f("span", {
79
79
  class: "w-3 h-3 rounded-full",
80
80
  style: Zn({ backgroundColor: a.color })
81
81
  }, null, 4),
82
- Se(" " + J(a.name), 1)
82
+ Ee(" " + G(a.name), 1)
83
83
  ])
84
84
  ], 10, oo)
85
85
  ])), 64))
@@ -91,21 +91,6 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
91
91
  viewBox: "0 0 24 24",
92
92
  fill: "none",
93
93
  xmlns: "http://www.w3.org/2000/svg"
94
- }, [
95
- /* @__PURE__ */ f("path", {
96
- d: "M5.3163 19.4384C5.92462 18.0052 7.34492 17 9 17H15C16.6551 17 18.0754 18.0052 18.6837 19.4384M16 9.5C16 11.7091 14.2091 13.5 12 13.5C9.79086 13.5 8 11.7091 8 9.5C8 7.29086 9.79086 5.5 12 5.5C14.2091 5.5 16 7.29086 16 9.5ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",
97
- stroke: "currentColor",
98
- "stroke-width": "2",
99
- "stroke-linecap": "round",
100
- "stroke-linejoin": "round"
101
- })
102
- ], -1), co = [
103
- uo
104
- ], fo = /* @__PURE__ */ f("svg", {
105
- class: "w-6 h-6 text-primary",
106
- viewBox: "0 0 24 24",
107
- fill: "none",
108
- xmlns: "http://www.w3.org/2000/svg"
109
94
  }, [
110
95
  /* @__PURE__ */ f("path", {
111
96
  "fill-rule": "evenodd",
@@ -125,9 +110,52 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
125
110
  d: "M6.25 18.5C6.25 18.0858 6.58579 17.75 7 17.75H17C17.4142 17.75 17.75 18.0858 17.75 18.5C17.75 18.9142 17.4142 19.25 17 19.25H7C6.58579 19.25 6.25 18.9142 6.25 18.5Z",
126
111
  fill: "currentColor"
127
112
  })
128
- ], -1), vo = [
129
- fo
130
- ], po = /* @__PURE__ */ Be('<svg class="w-6 h-6 text-primary" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.467 2.47236C2.75841 2.17799 3.23328 2.17559 3.52764 2.467L8.52765 7.41675C8.82201 7.70816 8.82441 8.18303 8.533 8.4774C8.24159 8.77176 7.76672 8.77416 7.47235 8.48275L2.47236 3.533C2.17799 3.24159 2.17559 2.76672 2.467 2.47236Z" fill="currentColor"></path><path d="M8.533 15.4724C8.82441 15.7667 8.82201 16.2416 8.52765 16.533L3.52765 21.4828C3.23328 21.7742 2.75841 21.7718 2.467 21.4774C2.17559 21.183 2.17799 20.7082 2.47236 20.4167L7.47235 15.467C7.76672 15.1756 8.24159 15.178 8.533 15.4724Z" fill="currentColor"></path><path d="M15.52 15.4697C15.8129 15.1768 16.2877 15.1768 16.5806 15.4697L21.5304 20.4194C21.8233 20.7123 21.8233 21.1872 21.5304 21.4801C21.2375 21.773 20.7626 21.773 20.4697 21.4801L15.52 16.5303C15.2271 16.2374 15.2271 15.7626 15.52 15.4697Z" fill="currentColor"></path><path d="M21.4801 2.46967C21.773 2.76256 21.773 3.23744 21.4801 3.53033L16.5303 8.48008C16.2374 8.77297 15.7626 8.77297 15.4697 8.48008C15.1768 8.18719 15.1768 7.71231 15.4697 7.41942L20.4194 2.46967C20.7123 2.17678 21.1872 2.17678 21.4801 2.46967Z" fill="currentColor"></path><path d="M15.75 3C15.75 2.58579 16.0858 2.25 16.5 2.25H21C21.4142 2.25 21.75 2.58579 21.75 3V7.5C21.75 7.91421 21.4142 8.25 21 8.25C20.5858 8.25 20.25 7.91421 20.25 7.5V3.75H16.5C16.0858 3.75 15.75 3.41421 15.75 3Z" fill="currentColor"></path><path d="M21 15.75C21.4142 15.75 21.75 16.0858 21.75 16.5V21C21.75 21.4142 21.4142 21.75 21 21.75H16.5C16.0858 21.75 15.75 21.4142 15.75 21C15.75 20.5858 16.0858 20.25 16.5 20.25H20.25V16.5C20.25 16.0858 20.5858 15.75 21 15.75Z" fill="currentColor"></path><path d="M3 15.75C3.41421 15.75 3.75 16.0858 3.75 16.5V20.25H7.5C7.91421 20.25 8.25 20.5858 8.25 21C8.25 21.4142 7.91421 21.75 7.5 21.75H3C2.58579 21.75 2.25 21.4142 2.25 21V16.5C2.25 16.0858 2.58579 15.75 3 15.75Z" fill="currentColor"></path><path d="M2.25 3C2.25 2.58579 2.58579 2.25 3 2.25H7.5C7.91421 2.25 8.25 2.58579 8.25 3C8.25 3.41421 7.91421 3.75 7.5 3.75H3.75V7.5C3.75 7.91421 3.41421 8.25 3 8.25C2.58579 8.25 2.25 7.91421 2.25 7.5V3Z" fill="currentColor"></path></svg>', 1), ho = [
113
+ ], -1), co = [
114
+ uo
115
+ ], fo = /* @__PURE__ */ f("svg", {
116
+ class: "w-6 h-6 text-primary",
117
+ viewBox: "0 0 24 24",
118
+ fill: "none",
119
+ xmlns: "http://www.w3.org/2000/svg"
120
+ }, [
121
+ /* @__PURE__ */ f("path", {
122
+ d: "M12 3L1 9L12 15L23 9L12 3Z",
123
+ stroke: "currentColor",
124
+ "stroke-width": "2",
125
+ "stroke-linecap": "round",
126
+ "stroke-linejoin": "round"
127
+ }),
128
+ /* @__PURE__ */ f("path", {
129
+ d: "M5 13L12 17L19 13",
130
+ stroke: "currentColor",
131
+ "stroke-width": "2",
132
+ "stroke-linecap": "round",
133
+ "stroke-linejoin": "round"
134
+ }),
135
+ /* @__PURE__ */ f("path", {
136
+ d: "M5 17L12 21L19 17",
137
+ stroke: "currentColor",
138
+ "stroke-width": "2",
139
+ "stroke-linecap": "round",
140
+ "stroke-linejoin": "round"
141
+ })
142
+ ], -1), vo = {
143
+ key: 0,
144
+ class: "absolute -top-0.5 -right-0.5 bg-red-500 text-white text-xs rounded-full h-4 min-w-[16px] flex items-center justify-center px-1 text-[8px]"
145
+ }, po = /* @__PURE__ */ f("svg", {
146
+ class: "w-6 h-6 text-primary",
147
+ viewBox: "0 0 24 24",
148
+ fill: "none",
149
+ xmlns: "http://www.w3.org/2000/svg"
150
+ }, [
151
+ /* @__PURE__ */ f("path", {
152
+ d: "M5.3163 19.4384C5.92462 18.0052 7.34492 17 9 17H15C16.6551 17 18.0754 18.0052 18.6837 19.4384M16 9.5C16 11.7091 14.2091 13.5 12 13.5C9.79086 13.5 8 11.7091 8 9.5C8 7.29086 9.79086 5.5 12 5.5C14.2091 5.5 16 7.29086 16 9.5ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",
153
+ stroke: "currentColor",
154
+ "stroke-width": "2",
155
+ "stroke-linecap": "round",
156
+ "stroke-linejoin": "round"
157
+ })
158
+ ], -1), ho = [
131
159
  po
132
160
  ], mo = /* @__PURE__ */ f("svg", {
133
161
  class: "w-6 h-6 text-primary",
@@ -145,7 +173,9 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
145
173
  })
146
174
  ], -1), go = [
147
175
  mo
148
- ], bo = {
176
+ ], bo = /* @__PURE__ */ Be('<svg class="w-6 h-6 text-primary" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.467 2.47236C2.75841 2.17799 3.23328 2.17559 3.52764 2.467L8.52765 7.41675C8.82201 7.70816 8.82441 8.18303 8.533 8.4774C8.24159 8.77176 7.76672 8.77416 7.47235 8.48275L2.47236 3.533C2.17799 3.24159 2.17559 2.76672 2.467 2.47236Z" fill="currentColor"></path><path d="M8.533 15.4724C8.82441 15.7667 8.82201 16.2416 8.52765 16.533L3.52765 21.4828C3.23328 21.7742 2.75841 21.7718 2.467 21.4774C2.17559 21.183 2.17799 20.7082 2.47236 20.4167L7.47235 15.467C7.76672 15.1756 8.24159 15.178 8.533 15.4724Z" fill="currentColor"></path><path d="M15.52 15.4697C15.8129 15.1768 16.2877 15.1768 16.5806 15.4697L21.5304 20.4194C21.8233 20.7123 21.8233 21.1872 21.5304 21.4801C21.2375 21.773 20.7626 21.773 20.4697 21.4801L15.52 16.5303C15.2271 16.2374 15.2271 15.7626 15.52 15.4697Z" fill="currentColor"></path><path d="M21.4801 2.46967C21.773 2.76256 21.773 3.23744 21.4801 3.53033L16.5303 8.48008C16.2374 8.77297 15.7626 8.77297 15.4697 8.48008C15.1768 8.18719 15.1768 7.71231 15.4697 7.41942L20.4194 2.46967C20.7123 2.17678 21.1872 2.17678 21.4801 2.46967Z" fill="currentColor"></path><path d="M15.75 3C15.75 2.58579 16.0858 2.25 16.5 2.25H21C21.4142 2.25 21.75 2.58579 21.75 3V7.5C21.75 7.91421 21.4142 8.25 21 8.25C20.5858 8.25 20.25 7.91421 20.25 7.5V3.75H16.5C16.0858 3.75 15.75 3.41421 15.75 3Z" fill="currentColor"></path><path d="M21 15.75C21.4142 15.75 21.75 16.0858 21.75 16.5V21C21.75 21.4142 21.4142 21.75 21 21.75H16.5C16.0858 21.75 15.75 21.4142 15.75 21C15.75 20.5858 16.0858 20.25 16.5 20.25H20.25V16.5C20.25 16.0858 20.5858 15.75 21 15.75Z" fill="currentColor"></path><path d="M3 15.75C3.41421 15.75 3.75 16.0858 3.75 16.5V20.25H7.5C7.91421 20.25 8.25 20.5858 8.25 21C8.25 21.4142 7.91421 21.75 7.5 21.75H3C2.58579 21.75 2.25 21.4142 2.25 21V16.5C2.25 16.0858 2.58579 15.75 3 15.75Z" fill="currentColor"></path><path d="M2.25 3C2.25 2.58579 2.58579 2.25 3 2.25H7.5C7.91421 2.25 8.25 2.58579 8.25 3C8.25 3.41421 7.91421 3.75 7.5 3.75H3.75V7.5C3.75 7.91421 3.41421 8.25 3 8.25C2.58579 8.25 2.25 7.91421 2.25 7.5V3Z" fill="currentColor"></path></svg>', 1), Co = [
177
+ bo
178
+ ], xo = {
149
179
  __name: "Header",
150
180
  props: {
151
181
  headerSettings: {
@@ -154,6 +184,7 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
154
184
  default: () => ({
155
185
  showAccount: !0,
156
186
  showReader: !0,
187
+ showLearn: 0,
157
188
  showFullscreen: !0,
158
189
  showSettings: !0,
159
190
  showThemeSelector: !0
@@ -164,7 +195,7 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
164
195
  default: "lofi"
165
196
  }
166
197
  },
167
- emits: ["settings", "fullScreen", "reader", "account", "themeChange"],
198
+ emits: ["settings", "fullScreen", "reader", "learn", "account", "themeChange"],
168
199
  setup(e, { emit: n }) {
169
200
  const t = n, o = (l) => {
170
201
  t("themeChange", l);
@@ -176,27 +207,35 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
176
207
  key: 0,
177
208
  "current-theme": e.currentTheme,
178
209
  onThemeChange: o
179
- }, null, 8, ["current-theme"])) : P("", !0),
180
- e.headerSettings.showAccount ? (h(), g("button", {
210
+ }, null, 8, ["current-theme"])) : R("", !0),
211
+ e.headerSettings.showReader ? (h(), g("button", {
181
212
  key: 1,
182
213
  class: "btn btn-ghost btn-circle btn-sm",
183
- onClick: s[0] || (s[0] = (r) => t("account"))
184
- }, co)) : P("", !0),
185
- e.headerSettings.showReader ? (h(), g("button", {
214
+ onClick: s[0] || (s[0] = (r) => t("reader"))
215
+ }, co)) : R("", !0),
216
+ e.headerSettings.showLearn > 0 ? (h(), g("button", {
186
217
  key: 2,
187
- class: "btn btn-ghost btn-circle btn-sm",
188
- onClick: s[1] || (s[1] = (r) => t("reader"))
189
- }, vo)) : P("", !0),
190
- e.headerSettings.showFullscreen ? (h(), g("button", {
218
+ class: "btn btn-ghost btn-circle btn-sm relative",
219
+ onClick: s[1] || (s[1] = (r) => t("learn"))
220
+ }, [
221
+ fo,
222
+ e.headerSettings.showLearn > 0 ? (h(), g("span", vo, G(e.headerSettings.showLearn > 999 ? "999+" : e.headerSettings.showLearn), 1)) : R("", !0)
223
+ ])) : R("", !0),
224
+ e.headerSettings.showAccount ? (h(), g("button", {
191
225
  key: 3,
192
226
  class: "btn btn-ghost btn-circle btn-sm",
193
- onClick: s[2] || (s[2] = (r) => t("fullScreen"))
194
- }, ho)) : P("", !0),
227
+ onClick: s[2] || (s[2] = (r) => t("account"))
228
+ }, ho)) : R("", !0),
195
229
  e.headerSettings.showSettings ? (h(), g("button", {
196
230
  key: 4,
197
231
  class: "btn btn-ghost btn-circle btn-sm",
198
232
  onClick: s[3] || (s[3] = (r) => t("settings"))
199
- }, go)) : P("", !0)
233
+ }, go)) : R("", !0),
234
+ e.headerSettings.showFullscreen ? (h(), g("button", {
235
+ key: 5,
236
+ class: "btn btn-ghost btn-circle btn-sm",
237
+ onClick: s[4] || (s[4] = (r) => t("fullScreen"))
238
+ }, Co)) : R("", !0)
200
239
  ])
201
240
  ]));
202
241
  }
@@ -238,17 +277,17 @@ function ut(e, n) {
238
277
  throw new Error("Unexpected undefined");
239
278
  return e;
240
279
  }
241
- const Co = (e, n) => Math.abs(e - n) < 1, xo = (e, n, t) => {
280
+ const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
242
281
  let o;
243
282
  return function(...l) {
244
283
  e.clearTimeout(o), o = e.setTimeout(() => n.apply(this, l), t);
245
284
  };
246
- }, yo = (e) => e, wo = (e) => {
285
+ }, _o = (e) => e, To = (e) => {
247
286
  const n = Math.max(e.startIndex - e.overscan, 0), t = Math.min(e.endIndex + e.overscan, e.count - 1), o = [];
248
287
  for (let l = n; l <= t; l++)
249
288
  o.push(l);
250
289
  return o;
251
- }, _o = (e, n) => {
290
+ }, So = (e, n) => {
252
291
  const t = e.scrollElement;
253
292
  if (!t)
254
293
  return;
@@ -278,7 +317,7 @@ const Co = (e, n) => Math.abs(e - n) < 1, xo = (e, n, t) => {
278
317
  };
279
318
  }, Pt = {
280
319
  passive: !0
281
- }, To = typeof window > "u" ? !0 : "onscrollend" in window, Eo = (e, n) => {
320
+ }, Eo = typeof window > "u" ? !0 : "onscrollend" in window, $o = (e, n) => {
282
321
  const t = e.scrollElement;
283
322
  if (!t)
284
323
  return;
@@ -286,8 +325,8 @@ const Co = (e, n) => Math.abs(e - n) < 1, xo = (e, n, t) => {
286
325
  if (!o)
287
326
  return;
288
327
  let l = 0;
289
- const s = To ? () => {
290
- } : xo(
328
+ const s = Eo ? () => {
329
+ } : wo(
291
330
  o,
292
331
  () => {
293
332
  n(l, !1);
@@ -299,7 +338,7 @@ const Co = (e, n) => Math.abs(e - n) < 1, xo = (e, n, t) => {
299
338
  return i(), t.addEventListener("scroll", a, Pt), t.addEventListener("scrollend", i, Pt), () => {
300
339
  t.removeEventListener("scroll", a), t.removeEventListener("scrollend", i);
301
340
  };
302
- }, So = (e, n, t) => {
341
+ }, Oo = (e, n, t) => {
303
342
  if (n != null && n.borderBoxSize) {
304
343
  const o = n.borderBoxSize[0];
305
344
  if (o)
@@ -310,7 +349,7 @@ const Co = (e, n) => Math.abs(e - n) < 1, xo = (e, n, t) => {
310
349
  return Math.round(
311
350
  e.getBoundingClientRect()[t.options.horizontal ? "width" : "height"]
312
351
  );
313
- }, $o = (e, {
352
+ }, Io = (e, {
314
353
  adjustments: n = 0,
315
354
  behavior: t
316
355
  }, o) => {
@@ -321,7 +360,7 @@ const Co = (e, n) => Math.abs(e - n) < 1, xo = (e, n, t) => {
321
360
  behavior: t
322
361
  });
323
362
  };
324
- class Oo {
363
+ class Lo {
325
364
  constructor(n) {
326
365
  this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollToIndexTimeoutId = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
327
366
  let t = null;
@@ -356,11 +395,11 @@ class Oo {
356
395
  scrollPaddingStart: 0,
357
396
  scrollPaddingEnd: 0,
358
397
  horizontal: !1,
359
- getItemKey: yo,
360
- rangeExtractor: wo,
398
+ getItemKey: _o,
399
+ rangeExtractor: To,
361
400
  onChange: () => {
362
401
  },
363
- measureElement: So,
402
+ measureElement: Oo,
364
403
  initialRect: { width: 0, height: 0 },
365
404
  scrollMargin: 0,
366
405
  gap: 0,
@@ -480,7 +519,7 @@ class Oo {
480
519
  }
481
520
  ), this.calculateRange = Le(
482
521
  () => [this.getMeasurements(), this.getSize(), this.getScrollOffset()],
483
- (t, o, l) => this.range = t.length > 0 && o > 0 ? Io({
522
+ (t, o, l) => this.range = t.length > 0 && o > 0 ? ko({
484
523
  measurements: t,
485
524
  outerSize: o,
486
525
  scrollOffset: l
@@ -600,7 +639,7 @@ class Oo {
600
639
  const [u] = ut(
601
640
  this.getOffsetForIndex(t, a)
602
641
  );
603
- Co(u, this.getScrollOffset()) || this.scrollToIndex(t, { align: a, behavior: l });
642
+ yo(u, this.getScrollOffset()) || this.scrollToIndex(t, { align: a, behavior: l });
604
643
  } else
605
644
  this.scrollToIndex(t, { align: a, behavior: l });
606
645
  }));
@@ -641,7 +680,7 @@ const dn = (e, n, t, o) => {
641
680
  }
642
681
  return e > 0 ? e - 1 : 0;
643
682
  };
644
- function Io({
683
+ function ko({
645
684
  measurements: e,
646
685
  outerSize: n,
647
686
  scrollOffset: t
@@ -652,8 +691,8 @@ function Io({
652
691
  r++;
653
692
  return { startIndex: s, endIndex: r };
654
693
  }
655
- function Lo(e) {
656
- const n = new Oo(M(e)), t = Un(n), o = n._didMount();
694
+ function Mo(e) {
695
+ const n = new Lo(M(e)), t = Un(n), o = n._didMount();
657
696
  return F(
658
697
  () => M(e).getScrollElement(),
659
698
  (l) => {
@@ -678,23 +717,23 @@ function Lo(e) {
678
717
  }
679
718
  ), Tt(o), t;
680
719
  }
681
- function ko(e) {
682
- return Lo(
720
+ function Ao(e) {
721
+ return Mo(
683
722
  L(() => ({
684
- observeElementRect: _o,
685
- observeElementOffset: Eo,
686
- scrollToFn: $o,
723
+ observeElementRect: So,
724
+ observeElementOffset: $o,
725
+ scrollToFn: Io,
687
726
  ...M(e)
688
727
  }))
689
728
  );
690
729
  }
691
- function Mo(e, n, t) {
730
+ function Vo(e, n, t) {
692
731
  let o = O(t == null ? void 0 : t.value), l = L(() => e.value !== void 0);
693
732
  return [L(() => l.value ? e.value : o.value), function(s) {
694
733
  return l.value || (o.value = s), n == null ? void 0 : n(s);
695
734
  }];
696
735
  }
697
- function Ao(e) {
736
+ function Do(e) {
698
737
  typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((n) => setTimeout(() => {
699
738
  throw n;
700
739
  }));
@@ -714,7 +753,7 @@ function Qe() {
714
753
  n.add(() => clearTimeout(o));
715
754
  }, microTask(...t) {
716
755
  let o = { current: !0 };
717
- return Ao(() => {
756
+ return Do(() => {
718
757
  o.current && t[0]();
719
758
  }), n.add(() => {
720
759
  o.current = !1;
@@ -737,19 +776,19 @@ function Qe() {
737
776
  } };
738
777
  return n;
739
778
  }
740
- function Vo() {
779
+ function Ro() {
741
780
  let e = Qe();
742
781
  return Fe(() => e.dispose()), e;
743
782
  }
744
- function Do() {
745
- let e = Vo();
783
+ function Po() {
784
+ let e = Ro();
746
785
  return (n) => {
747
786
  e.dispose(), e.nextFrame(n);
748
787
  };
749
788
  }
750
- let Ro = Symbol("headlessui.useid"), Po = 0;
789
+ let No = Symbol("headlessui.useid"), Bo = 0;
751
790
  function je() {
752
- return le(Ro, () => `${++Po}`)();
791
+ return le(No, () => `${++Bo}`)();
753
792
  }
754
793
  function N(e) {
755
794
  var n;
@@ -765,8 +804,8 @@ function ue(e, n, ...t) {
765
804
  let o = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map((l) => `"${l}"`).join(", ")}.`);
766
805
  throw Error.captureStackTrace && Error.captureStackTrace(o, ue), o;
767
806
  }
768
- var No = Object.defineProperty, Bo = (e, n, t) => n in e ? No(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, Nt = (e, n, t) => (Bo(e, typeof n != "symbol" ? n + "" : n, t), t);
769
- let Fo = class {
807
+ var Fo = Object.defineProperty, jo = (e, n, t) => n in e ? Fo(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, Nt = (e, n, t) => (jo(e, typeof n != "symbol" ? n + "" : n, t), t);
808
+ let Ho = class {
770
809
  constructor() {
771
810
  Nt(this, "current", this.detect()), Nt(this, "currentId", 0);
772
811
  }
@@ -788,7 +827,7 @@ let Fo = class {
788
827
  detect() {
789
828
  return typeof window > "u" || typeof document > "u" ? "server" : "client";
790
829
  }
791
- }, Ot = new Fo();
830
+ }, Ot = new Ho();
792
831
  function It(e) {
793
832
  if (Ot.isServer) return null;
794
833
  if (e instanceof Node) return e.ownerDocument;
@@ -799,8 +838,8 @@ function It(e) {
799
838
  return document;
800
839
  }
801
840
  let Bt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
802
- var jo = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(jo || {}), Ho = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Ho || {}), zo = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(zo || {}), fn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(fn || {});
803
- function Zo(e, n = 0) {
841
+ var zo = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(zo || {}), Zo = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Zo || {}), Uo = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Uo || {}), fn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(fn || {});
842
+ function Wo(e, n = 0) {
804
843
  var t;
805
844
  return e === ((t = It(e)) == null ? void 0 : t.body) ? !1 : ue(n, { 0() {
806
845
  return e.matches(Bt);
@@ -813,13 +852,13 @@ function Zo(e, n = 0) {
813
852
  return !1;
814
853
  } });
815
854
  }
816
- var Uo = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(Uo || {});
855
+ var qo = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(qo || {});
817
856
  typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
818
857
  e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
819
858
  }, !0), document.addEventListener("click", (e) => {
820
859
  e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
821
860
  }, !0));
822
- function Wo(e, n = (t) => t) {
861
+ function Go(e, n = (t) => t) {
823
862
  return e.slice().sort((t, o) => {
824
863
  let l = n(t), s = n(o);
825
864
  if (l === null || s === null) return 0;
@@ -827,26 +866,26 @@ function Wo(e, n = (t) => t) {
827
866
  return r & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : r & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
828
867
  });
829
868
  }
830
- function qo() {
869
+ function Jo() {
831
870
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
832
871
  }
833
- function Go() {
872
+ function Yo() {
834
873
  return /Android/gi.test(window.navigator.userAgent);
835
874
  }
836
875
  function vn() {
837
- return qo() || Go();
876
+ return Jo() || Yo();
838
877
  }
839
878
  function Ue(e, n, t) {
840
879
  Ot.isServer || fe((o) => {
841
880
  document.addEventListener(e, n, t), o(() => document.removeEventListener(e, n, t));
842
881
  });
843
882
  }
844
- function Jo(e, n, t) {
883
+ function Qo(e, n, t) {
845
884
  Ot.isServer || fe((o) => {
846
885
  window.addEventListener(e, n, t), o(() => window.removeEventListener(e, n, t));
847
886
  });
848
887
  }
849
- function Yo(e, n, t = L(() => !0)) {
888
+ function Xo(e, n, t = L(() => !0)) {
850
889
  function o(s, r) {
851
890
  if (!t.value || s.defaultPrevented) return;
852
891
  let a = r(s);
@@ -859,7 +898,7 @@ function Yo(e, n, t = L(() => !0)) {
859
898
  let c = u instanceof HTMLElement ? u : N(u);
860
899
  if (c != null && c.contains(a) || s.composed && s.composedPath().includes(c)) return;
861
900
  }
862
- return !Zo(a, fn.Loose) && a.tabIndex !== -1 && s.preventDefault(), n(s, a);
901
+ return !Wo(a, fn.Loose) && a.tabIndex !== -1 && s.preventDefault(), n(s, a);
863
902
  }
864
903
  let l = O(null);
865
904
  Ue("pointerdown", (s) => {
@@ -870,14 +909,14 @@ function Yo(e, n, t = L(() => !0)) {
870
909
  t.value && (l.value = ((a = (r = s.composedPath) == null ? void 0 : r.call(s)) == null ? void 0 : a[0]) || s.target);
871
910
  }, !0), Ue("click", (s) => {
872
911
  vn() || l.value && (o(s, () => l.value), l.value = null);
873
- }, !0), Ue("touchend", (s) => o(s, () => s.target instanceof HTMLElement ? s.target : null), !0), Jo("blur", (s) => o(s, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
912
+ }, !0), Ue("touchend", (s) => o(s, () => s.target instanceof HTMLElement ? s.target : null), !0), Qo("blur", (s) => o(s, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
874
913
  }
875
914
  function Ft(e, n) {
876
915
  if (e) return e;
877
916
  let t = n ?? "button";
878
917
  if (typeof t == "string" && t.toLowerCase() === "button") return "button";
879
918
  }
880
- function Qo(e, n) {
919
+ function Ko(e, n) {
881
920
  let t = O(Ft(e.value.type, e.value.as));
882
921
  return se(() => {
883
922
  t.value = Ft(e.value.type, e.value.as);
@@ -889,7 +928,7 @@ function Qo(e, n) {
889
928
  function jt(e) {
890
929
  return [e.screenX, e.screenY];
891
930
  }
892
- function Xo() {
931
+ function el() {
893
932
  let e = O([-1, -1]);
894
933
  return { wasMoved(n) {
895
934
  let t = jt(n);
@@ -898,7 +937,7 @@ function Xo() {
898
937
  e.value = jt(n);
899
938
  } };
900
939
  }
901
- function Ko({ container: e, accept: n, walk: t, enabled: o }) {
940
+ function tl({ container: e, accept: n, walk: t, enabled: o }) {
902
941
  fe(() => {
903
942
  let l = e.value;
904
943
  if (!l || o !== void 0 && !o.value) return;
@@ -908,7 +947,7 @@ function Ko({ container: e, accept: n, walk: t, enabled: o }) {
908
947
  for (; a.nextNode(); ) t(a.currentNode);
909
948
  });
910
949
  }
911
- var De = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(De || {}), el = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(el || {});
950
+ var De = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(De || {}), nl = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(nl || {});
912
951
  function ye({ visible: e = !0, features: n = 0, ourProps: t, theirProps: o, ...l }) {
913
952
  var s;
914
953
  let r = hn(o, t), a = Object.assign(l, { props: r });
@@ -934,7 +973,7 @@ function ct({ props: e, attrs: n, slots: t, slot: o, name: l }) {
934
973
  if (a === "template") {
935
974
  if (u = pn(u ?? []), Object.keys(i).length > 0 || Object.keys(n).length > 0) {
936
975
  let [d, ...x] = u ?? [];
937
- if (!nl(d) || x.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${l} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(i).concat(Object.keys(n)).map((b) => b.trim()).filter((b, I, $) => $.indexOf(b) === I).sort((b, I) => b.localeCompare(I)).map((b) => ` - ${b}`).join(`
976
+ if (!ll(d) || x.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${l} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(i).concat(Object.keys(n)).map((b) => b.trim()).filter((b, I, $) => $.indexOf(b) === I).sort((b, I) => b.localeCompare(I)).map((b) => ` - ${b}`).join(`
938
977
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((b) => ` - ${b}`).join(`
939
978
  `)].join(`
940
979
  `));
@@ -964,7 +1003,7 @@ function hn(...e) {
964
1003
  } });
965
1004
  return n;
966
1005
  }
967
- function tl(e) {
1006
+ function ol(e) {
968
1007
  let n = Object.assign({}, e);
969
1008
  for (let t in n) n[t] === void 0 && delete n[t];
970
1009
  return n;
@@ -974,11 +1013,11 @@ function ot(e, n = []) {
974
1013
  for (let o of n) o in t && delete t[o];
975
1014
  return t;
976
1015
  }
977
- function nl(e) {
1016
+ function ll(e) {
978
1017
  return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
979
1018
  }
980
1019
  var mn = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(mn || {});
981
- let ol = pe({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: n, attrs: t }) {
1020
+ let sl = pe({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: n, attrs: t }) {
982
1021
  return () => {
983
1022
  var o;
984
1023
  let { features: l, ...s } = e, r = { "aria-hidden": (l & 2) === 2 ? !0 : (o = s["aria-hidden"]) != null ? o : void 0, hidden: (l & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(l & 4) === 4 && (l & 2) !== 2 && { display: "none" } } };
@@ -986,27 +1025,27 @@ let ol = pe({ name: "Hidden", props: { as: { type: [Object, String], default: "d
986
1025
  };
987
1026
  } }), gn = Symbol("Context");
988
1027
  var Re = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Re || {});
989
- function ll() {
1028
+ function al() {
990
1029
  return le(gn, null);
991
1030
  }
992
- function sl(e) {
1031
+ function rl(e) {
993
1032
  ce(gn, e);
994
1033
  }
995
1034
  var Q = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(Q || {}), bn = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(bn || {});
996
- function al(e) {
1035
+ function il(e) {
997
1036
  function n() {
998
1037
  document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", n));
999
1038
  }
1000
1039
  typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", n), n());
1001
1040
  }
1002
1041
  let ge = [];
1003
- al(() => {
1042
+ il(() => {
1004
1043
  function e(n) {
1005
1044
  n.target instanceof HTMLElement && n.target !== document.body && ge[0] !== n.target && (ge.unshift(n.target), ge = ge.filter((t) => t != null && t.isConnected), ge.splice(10));
1006
1045
  }
1007
1046
  window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
1008
1047
  });
1009
- function rl(e) {
1048
+ function ul(e) {
1010
1049
  throw new Error("Unexpected object: " + e);
1011
1050
  }
1012
1051
  var q = ((e) => (e[e.First = 0] = "First", e[e.Previous = 1] = "Previous", e[e.Next = 2] = "Next", e[e.Last = 3] = "Last", e[e.Specific = 4] = "Specific", e[e.Nothing = 5] = "Nothing", e))(q || {});
@@ -1039,7 +1078,7 @@ function Ht(e, n) {
1039
1078
  case 5:
1040
1079
  return null;
1041
1080
  default:
1042
- rl(e);
1081
+ ul(e);
1043
1082
  }
1044
1083
  }
1045
1084
  function Cn(e = {}, n = null, t = []) {
@@ -1053,10 +1092,10 @@ function yn(e, n, t) {
1053
1092
  if (Array.isArray(t)) for (let [o, l] of t.entries()) yn(e, xn(n, o.toString()), l);
1054
1093
  else t instanceof Date ? e.push([n, t.toISOString()]) : typeof t == "boolean" ? e.push([n, t ? "1" : "0"]) : typeof t == "string" ? e.push([n, t]) : typeof t == "number" ? e.push([n, `${t}`]) : t == null ? e.push([n, ""]) : Cn(t, n, e);
1055
1094
  }
1056
- function il(e, n) {
1095
+ function cl(e, n) {
1057
1096
  return e === n;
1058
1097
  }
1059
- var ul = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(ul || {}), cl = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(cl || {}), dl = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Focus = 1] = "Focus", e[e.Other = 2] = "Other", e))(dl || {});
1098
+ var dl = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(dl || {}), fl = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(fl || {}), vl = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Focus = 1] = "Focus", e[e.Other = 2] = "Other", e))(vl || {});
1060
1099
  let wn = Symbol("ComboboxContext");
1061
1100
  function we(e) {
1062
1101
  let n = le(wn, null);
@@ -1066,13 +1105,13 @@ function we(e) {
1066
1105
  }
1067
1106
  return n;
1068
1107
  }
1069
- let _n = Symbol("VirtualContext"), fl = pe({ name: "VirtualProvider", setup(e, { slots: n }) {
1108
+ let _n = Symbol("VirtualContext"), pl = pe({ name: "VirtualProvider", setup(e, { slots: n }) {
1070
1109
  let t = we("VirtualProvider"), o = L(() => {
1071
1110
  let a = N(t.optionsRef);
1072
1111
  if (!a) return { start: 0, end: 0 };
1073
1112
  let i = window.getComputedStyle(a);
1074
1113
  return { start: parseFloat(i.paddingBlockStart || i.paddingTop), end: parseFloat(i.paddingBlockEnd || i.paddingBottom) };
1075
- }), l = ko(L(() => ({ scrollPaddingStart: o.value.start, scrollPaddingEnd: o.value.end, count: t.virtual.value.options.length, estimateSize() {
1114
+ }), l = Ao(L(() => ({ scrollPaddingStart: o.value.start, scrollPaddingEnd: o.value.end, count: t.virtual.value.options.length, estimateSize() {
1076
1115
  return 40;
1077
1116
  }, getScrollElement() {
1078
1117
  return N(t.optionsRef);
@@ -1088,45 +1127,45 @@ let _n = Symbol("VirtualContext"), fl = pe({ name: "VirtualProvider", setup(e, {
1088
1127
  t.activeOptionIndex.value !== null && t.virtual.value.options.length > t.activeOptionIndex.value && l.value.scrollToIndex(t.activeOptionIndex.value);
1089
1128
  }
1090
1129
  } }, l.value.getVirtualItems().map((a) => sn(n.default({ option: t.virtual.value.options[a.index], open: t.comboboxState.value === 0 })[0], { key: `${r.value}-${a.index}`, "data-index": a.index, "aria-setsize": t.virtual.value.options.length, "aria-posinset": a.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${a.start}px)`, overflowAnchor: "none" } })))];
1091
- } }), vl = pe({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], nullable: !0, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, nullable: { type: Boolean, default: !1 }, multiple: { type: [Boolean], default: !1 }, immediate: { type: [Boolean], default: !1 }, virtual: { type: Object, default: null } }, inheritAttrs: !1, setup(e, { slots: n, attrs: t, emit: o }) {
1130
+ } }), hl = pe({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], nullable: !0, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, nullable: { type: Boolean, default: !1 }, multiple: { type: [Boolean], default: !1 }, immediate: { type: [Boolean], default: !1 }, virtual: { type: Object, default: null } }, inheritAttrs: !1, setup(e, { slots: n, attrs: t, emit: o }) {
1092
1131
  let l = O(1), s = O(null), r = O(null), a = O(null), i = O(null), u = O({ static: !1, hold: !1 }), c = O([]), d = O(null), x = O(2), m = O(!1);
1093
1132
  function C(v = (p) => p) {
1094
- let p = d.value !== null ? c.value[d.value] : null, k = v(c.value.slice()), A = k.length > 0 && k[0].dataRef.order.value !== null ? k.sort((H, K) => H.dataRef.order.value - K.dataRef.order.value) : Wo(k, (H) => N(H.dataRef.domRef)), j = p ? A.indexOf(p) : null;
1133
+ let p = d.value !== null ? c.value[d.value] : null, k = v(c.value.slice()), A = k.length > 0 && k[0].dataRef.order.value !== null ? k.sort((H, K) => H.dataRef.order.value - K.dataRef.order.value) : Go(k, (H) => N(H.dataRef.domRef)), j = p ? A.indexOf(p) : null;
1095
1134
  return j === -1 && (j = null), { options: A, activeOptionIndex: j };
1096
1135
  }
1097
- let b = L(() => e.multiple ? 1 : 0), I = L(() => e.nullable), [$, w] = Mo(L(() => e.modelValue), (v) => o("update:modelValue", v), L(() => e.defaultValue)), y = L(() => $.value === void 0 ? ue(b.value, { 1: [], 0: void 0 }) : $.value), _ = null, T = null;
1136
+ let b = L(() => e.multiple ? 1 : 0), I = L(() => e.nullable), [$, w] = Vo(L(() => e.modelValue), (v) => o("update:modelValue", v), L(() => e.defaultValue)), y = L(() => $.value === void 0 ? ue(b.value, { 1: [], 0: void 0 }) : $.value), _ = null, T = null;
1098
1137
  function V(v) {
1099
1138
  return ue(b.value, { 0() {
1100
1139
  return w == null ? void 0 : w(v);
1101
1140
  }, 1: () => {
1102
- let p = ne(S.value.value).slice(), k = ne(v), A = p.findIndex((j) => S.compare(k, ne(j)));
1141
+ let p = ne(E.value.value).slice(), k = ne(v), A = p.findIndex((j) => E.compare(k, ne(j)));
1103
1142
  return A === -1 ? p.push(k) : p.splice(A, 1), w == null ? void 0 : w(p);
1104
1143
  } });
1105
1144
  }
1106
- let E = L(() => {
1145
+ let S = L(() => {
1107
1146
  });
1108
- F([E], ([v], [p]) => {
1109
- if (S.virtual.value && v && p && d.value !== null) {
1147
+ F([S], ([v], [p]) => {
1148
+ if (E.virtual.value && v && p && d.value !== null) {
1110
1149
  let k = v.indexOf(p[d.value]);
1111
1150
  k !== -1 ? d.value = k : d.value = null;
1112
1151
  }
1113
1152
  });
1114
- let S = { comboboxState: l, value: y, mode: b, compare(v, p) {
1153
+ let E = { comboboxState: l, value: y, mode: b, compare(v, p) {
1115
1154
  if (typeof e.by == "string") {
1116
1155
  let k = e.by;
1117
1156
  return (v == null ? void 0 : v[k]) === (p == null ? void 0 : p[k]);
1118
1157
  }
1119
- return e.by === null ? il(v, p) : e.by(v, p);
1158
+ return e.by === null ? cl(v, p) : e.by(v, p);
1120
1159
  }, calculateIndex(v) {
1121
- return S.virtual.value ? e.by === null ? S.virtual.value.options.indexOf(v) : S.virtual.value.options.findIndex((p) => S.compare(p, v)) : c.value.findIndex((p) => S.compare(p.dataRef.value, v));
1160
+ return E.virtual.value ? e.by === null ? E.virtual.value.options.indexOf(v) : E.virtual.value.options.findIndex((p) => E.compare(p, v)) : c.value.findIndex((p) => E.compare(p.dataRef.value, v));
1122
1161
  }, defaultValue: L(() => e.defaultValue), nullable: I, immediate: L(() => !1), virtual: L(() => null), inputRef: r, labelRef: s, buttonRef: a, optionsRef: i, disabled: L(() => e.disabled), options: c, change(v) {
1123
1162
  w(v);
1124
1163
  }, activeOptionIndex: L(() => {
1125
- if (m.value && d.value === null && (S.virtual.value ? S.virtual.value.options.length > 0 : c.value.length > 0)) {
1126
- if (S.virtual.value) {
1127
- let p = S.virtual.value.options.findIndex((k) => {
1164
+ if (m.value && d.value === null && (E.virtual.value ? E.virtual.value.options.length > 0 : c.value.length > 0)) {
1165
+ if (E.virtual.value) {
1166
+ let p = E.virtual.value.options.findIndex((k) => {
1128
1167
  var A;
1129
- return !((A = S.virtual.value) != null && A.disabled(k));
1168
+ return !((A = E.virtual.value) != null && A.disabled(k));
1130
1169
  });
1131
1170
  if (p !== -1) return p;
1132
1171
  }
@@ -1138,8 +1177,8 @@ let _n = Symbol("VirtualContext"), fl = pe({ name: "VirtualProvider", setup(e, {
1138
1177
  m.value = !1, !e.disabled && l.value !== 1 && (l.value = 1, d.value = null);
1139
1178
  }, openCombobox() {
1140
1179
  if (m.value = !0, !e.disabled && l.value !== 0) {
1141
- if (S.value.value) {
1142
- let v = S.calculateIndex(S.value.value);
1180
+ if (E.value.value) {
1181
+ let v = E.calculateIndex(E.value.value);
1143
1182
  v !== -1 && (d.value = v);
1144
1183
  }
1145
1184
  l.value = 0;
@@ -1149,14 +1188,14 @@ let _n = Symbol("VirtualContext"), fl = pe({ name: "VirtualProvider", setup(e, {
1149
1188
  }, goToOption(v, p, k) {
1150
1189
  m.value = !1, _ !== null && cancelAnimationFrame(_), _ = requestAnimationFrame(() => {
1151
1190
  if (e.disabled || i.value && !u.value.static && l.value === 1) return;
1152
- if (S.virtual.value) {
1153
- d.value = v === q.Specific ? p : Ht({ focus: v }, { resolveItems: () => S.virtual.value.options, resolveActiveIndex: () => {
1191
+ if (E.virtual.value) {
1192
+ d.value = v === q.Specific ? p : Ht({ focus: v }, { resolveItems: () => E.virtual.value.options, resolveActiveIndex: () => {
1154
1193
  var H, K;
1155
- return (K = (H = S.activeOptionIndex.value) != null ? H : S.virtual.value.options.findIndex((ee) => {
1194
+ return (K = (H = E.activeOptionIndex.value) != null ? H : E.virtual.value.options.findIndex((ee) => {
1156
1195
  var Z;
1157
- return !((Z = S.virtual.value) != null && Z.disabled(ee));
1196
+ return !((Z = E.virtual.value) != null && Z.disabled(ee));
1158
1197
  })) != null ? K : null;
1159
- }, resolveDisabled: (H) => S.virtual.value.disabled(H), resolveId() {
1198
+ }, resolveDisabled: (H) => E.virtual.value.disabled(H), resolveId() {
1160
1199
  throw new Error("Function not implemented.");
1161
1200
  } }), x.value = k ?? 2;
1162
1201
  return;
@@ -1175,28 +1214,28 @@ let _n = Symbol("VirtualContext"), fl = pe({ name: "VirtualProvider", setup(e, {
1175
1214
  let { dataRef: k } = p;
1176
1215
  V(k.value);
1177
1216
  }, selectActiveOption() {
1178
- if (S.activeOptionIndex.value !== null) {
1179
- if (S.virtual.value) V(S.virtual.value.options[S.activeOptionIndex.value]);
1217
+ if (E.activeOptionIndex.value !== null) {
1218
+ if (E.virtual.value) V(E.virtual.value.options[E.activeOptionIndex.value]);
1180
1219
  else {
1181
- let { dataRef: v } = c.value[S.activeOptionIndex.value];
1220
+ let { dataRef: v } = c.value[E.activeOptionIndex.value];
1182
1221
  V(v.value);
1183
1222
  }
1184
- S.goToOption(q.Specific, S.activeOptionIndex.value);
1223
+ E.goToOption(q.Specific, E.activeOptionIndex.value);
1185
1224
  }
1186
1225
  }, registerOption(v, p) {
1187
1226
  let k = an({ id: v, dataRef: p });
1188
- if (S.virtual.value) {
1227
+ if (E.virtual.value) {
1189
1228
  c.value.push(k);
1190
1229
  return;
1191
1230
  }
1192
1231
  T && cancelAnimationFrame(T);
1193
1232
  let A = C((j) => (j.push(k), j));
1194
- d.value === null && S.isSelected(p.value.value) && (A.activeOptionIndex = A.options.indexOf(k)), c.value = A.options, d.value = A.activeOptionIndex, x.value = 2, A.options.some((j) => !N(j.dataRef.domRef)) && (T = requestAnimationFrame(() => {
1233
+ d.value === null && E.isSelected(p.value.value) && (A.activeOptionIndex = A.options.indexOf(k)), c.value = A.options, d.value = A.activeOptionIndex, x.value = 2, A.options.some((j) => !N(j.dataRef.domRef)) && (T = requestAnimationFrame(() => {
1195
1234
  let j = C();
1196
1235
  c.value = j.options, d.value = j.activeOptionIndex;
1197
1236
  }));
1198
1237
  }, unregisterOption(v, p) {
1199
- if (_ !== null && cancelAnimationFrame(_), p && (m.value = !0), S.virtual.value) {
1238
+ if (_ !== null && cancelAnimationFrame(_), p && (m.value = !0), E.virtual.value) {
1200
1239
  c.value = c.value.filter((A) => A.id !== v);
1201
1240
  return;
1202
1241
  }
@@ -1206,11 +1245,11 @@ let _n = Symbol("VirtualContext"), fl = pe({ name: "VirtualProvider", setup(e, {
1206
1245
  });
1207
1246
  c.value = k.options, d.value = k.activeOptionIndex, x.value = 2;
1208
1247
  }, isSelected(v) {
1209
- return ue(b.value, { 0: () => S.compare(ne(S.value.value), ne(v)), 1: () => ne(S.value.value).some((p) => S.compare(ne(p), ne(v))) });
1248
+ return ue(b.value, { 0: () => E.compare(ne(E.value.value), ne(v)), 1: () => ne(E.value.value).some((p) => E.compare(ne(p), ne(v))) });
1210
1249
  }, isActive(v) {
1211
- return d.value === S.calculateIndex(v);
1250
+ return d.value === E.calculateIndex(v);
1212
1251
  } };
1213
- Yo([r, a, i], () => S.closeCombobox(), L(() => l.value === 0)), ce(wn, S), sl(L(() => ue(l.value, { 0: Re.Open, 1: Re.Closed })));
1252
+ Xo([r, a, i], () => E.closeCombobox(), L(() => l.value === 0)), ce(wn, E), rl(L(() => ue(l.value, { 0: Re.Open, 1: Re.Closed })));
1214
1253
  let D = L(() => {
1215
1254
  var v;
1216
1255
  return (v = N(r)) == null ? void 0 : v.closest("form");
@@ -1219,7 +1258,7 @@ let _n = Symbol("VirtualContext"), fl = pe({ name: "VirtualProvider", setup(e, {
1219
1258
  F([D], () => {
1220
1259
  if (!D.value || e.defaultValue === void 0) return;
1221
1260
  function v() {
1222
- S.change(e.defaultValue);
1261
+ E.change(e.defaultValue);
1223
1262
  }
1224
1263
  return D.value.addEventListener("reset", v), () => {
1225
1264
  var p;
@@ -1228,8 +1267,8 @@ let _n = Symbol("VirtualContext"), fl = pe({ name: "VirtualProvider", setup(e, {
1228
1267
  }, { immediate: !0 });
1229
1268
  }), () => {
1230
1269
  var v, p, k;
1231
- let { name: A, disabled: j, form: H, ...K } = e, ee = { open: l.value === 0, disabled: j, activeIndex: S.activeOptionIndex.value, activeOption: S.activeOptionIndex.value === null ? null : S.virtual.value ? S.virtual.value.options[(v = S.activeOptionIndex.value) != null ? v : 0] : (k = (p = S.options.value[S.activeOptionIndex.value]) == null ? void 0 : p.dataRef.value) != null ? k : null, value: y.value };
1232
- return Ve(z, [...A != null && y.value != null ? Cn({ [A]: y.value }).map(([Z, zn]) => Ve(ol, tl({ features: mn.Hidden, key: Z, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: H, disabled: j, name: Z, value: zn }))) : [], ye({ theirProps: { ...t, ...ot(K, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: ee, slots: n, attrs: t, name: "Combobox" })]);
1270
+ let { name: A, disabled: j, form: H, ...K } = e, ee = { open: l.value === 0, disabled: j, activeIndex: E.activeOptionIndex.value, activeOption: E.activeOptionIndex.value === null ? null : E.virtual.value ? E.virtual.value.options[(v = E.activeOptionIndex.value) != null ? v : 0] : (k = (p = E.options.value[E.activeOptionIndex.value]) == null ? void 0 : p.dataRef.value) != null ? k : null, value: y.value };
1271
+ return Ve(z, [...A != null && y.value != null ? Cn({ [A]: y.value }).map(([Z, zn]) => Ve(sl, ol({ features: mn.Hidden, key: Z, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: H, disabled: j, name: Z, value: zn }))) : [], ye({ theirProps: { ...t, ...ot(K, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: ee, slots: n, attrs: t, name: "Combobox" })]);
1233
1272
  };
1234
1273
  } });
1235
1274
  pe({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: n, slots: t }) {
@@ -1244,7 +1283,7 @@ pe({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "lab
1244
1283
  return ye({ ourProps: u, theirProps: i, slot: a, attrs: n, slots: t, name: "ComboboxLabel" });
1245
1284
  };
1246
1285
  } });
1247
- let pl = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: n, slots: t, expose: o }) {
1286
+ let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: n, slots: t, expose: o }) {
1248
1287
  var l;
1249
1288
  let s = (l = e.id) != null ? l : `headlessui-combobox-button-${je()}`, r = we("ComboboxButton");
1250
1289
  o({ el: r.buttonRef, $el: r.buttonRef });
@@ -1279,13 +1318,13 @@ let pl = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1279
1318
  return;
1280
1319
  }
1281
1320
  }
1282
- let u = Qo(L(() => ({ as: e.as, type: n.type })), r.buttonRef);
1321
+ let u = Ko(L(() => ({ as: e.as, type: n.type })), r.buttonRef);
1283
1322
  return () => {
1284
1323
  var c, d;
1285
1324
  let x = { open: r.comboboxState.value === 0, disabled: r.disabled.value, value: r.value.value }, { ...m } = e, C = { ref: r.buttonRef, id: s, type: u.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (c = N(r.optionsRef)) == null ? void 0 : c.id, "aria-expanded": r.comboboxState.value === 0, "aria-labelledby": r.labelRef.value ? [(d = N(r.labelRef)) == null ? void 0 : d.id, s].join(" ") : void 0, disabled: r.disabled.value === !0 ? !0 : void 0, onKeydown: i, onClick: a };
1286
1325
  return ye({ ourProps: C, theirProps: m, slot: x, attrs: n, slots: t, name: "ComboboxButton" });
1287
1326
  };
1288
- } }), hl = pe({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: null } }, emits: { change: (e) => !0 }, setup(e, { emit: n, attrs: t, slots: o, expose: l }) {
1327
+ } }), gl = pe({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: null } }, emits: { change: (e) => !0 }, setup(e, { emit: n, attrs: t, slots: o, expose: l }) {
1289
1328
  var s;
1290
1329
  let r = (s = e.id) != null ? s : `headlessui-combobox-input-${je()}`, a = we("ComboboxInput"), i = L(() => It(N(a.inputRef))), u = { value: !1 };
1291
1330
  l({ el: a.inputRef, $el: a.inputRef });
@@ -1300,10 +1339,10 @@ let pl = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1300
1339
  return N(a.inputRef) ? typeof e.displayValue < "u" && V !== void 0 ? (T = e.displayValue(V)) != null ? T : "" : typeof V == "string" ? V : "" : "";
1301
1340
  });
1302
1341
  se(() => {
1303
- F([d, a.comboboxState, i], ([T, V], [E, S]) => {
1342
+ F([d, a.comboboxState, i], ([T, V], [S, E]) => {
1304
1343
  if (u.value) return;
1305
1344
  let D = N(a.inputRef);
1306
- D && ((S === 0 && V === 1 || T !== E) && (D.value = T), requestAnimationFrame(() => {
1345
+ D && ((E === 0 && V === 1 || T !== S) && (D.value = T), requestAnimationFrame(() => {
1307
1346
  var v;
1308
1347
  if (u.value || !D || ((v = i.value) == null ? void 0 : v.activeElement) !== D) return;
1309
1348
  let { selectionStart: p, selectionEnd: k } = D;
@@ -1312,10 +1351,10 @@ let pl = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1312
1351
  }, { immediate: !0 }), F([a.comboboxState], ([T], [V]) => {
1313
1352
  if (T === 0 && V === 1) {
1314
1353
  if (u.value) return;
1315
- let E = N(a.inputRef);
1316
- if (!E) return;
1317
- let S = E.value, { selectionStart: D, selectionEnd: v, selectionDirection: p } = E;
1318
- E.value = "", E.value = S, p !== null ? E.setSelectionRange(D, v, p) : E.setSelectionRange(D, v);
1354
+ let S = N(a.inputRef);
1355
+ if (!S) return;
1356
+ let E = S.value, { selectionStart: D, selectionEnd: v, selectionDirection: p } = S;
1357
+ S.value = "", S.value = E, p !== null ? S.setSelectionRange(D, v, p) : S.setSelectionRange(D, v);
1319
1358
  }
1320
1359
  });
1321
1360
  });
@@ -1328,7 +1367,7 @@ let pl = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1328
1367
  x.value = !1;
1329
1368
  });
1330
1369
  }
1331
- let b = Do();
1370
+ let b = Po();
1332
1371
  function I(T) {
1333
1372
  switch (u.value = !0, b(() => {
1334
1373
  u.value = !1;
@@ -1373,35 +1412,35 @@ let pl = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1373
1412
  n("change", T), a.nullable.value && a.mode.value === 0 && T.target.value === "" && c(), a.openCombobox();
1374
1413
  }
1375
1414
  function w(T) {
1376
- var V, E, S;
1415
+ var V, S, E;
1377
1416
  let D = (V = T.relatedTarget) != null ? V : ge.find((v) => v !== T.currentTarget);
1378
- if (u.value = !1, !((E = N(a.optionsRef)) != null && E.contains(D)) && !((S = N(a.buttonRef)) != null && S.contains(D)) && a.comboboxState.value === 0) return T.preventDefault(), a.mode.value === 0 && (a.nullable.value && a.value.value === null ? c() : a.activationTrigger.value !== 1 && a.selectActiveOption()), a.closeCombobox();
1417
+ if (u.value = !1, !((S = N(a.optionsRef)) != null && S.contains(D)) && !((E = N(a.buttonRef)) != null && E.contains(D)) && a.comboboxState.value === 0) return T.preventDefault(), a.mode.value === 0 && (a.nullable.value && a.value.value === null ? c() : a.activationTrigger.value !== 1 && a.selectActiveOption()), a.closeCombobox();
1379
1418
  }
1380
1419
  function y(T) {
1381
- var V, E, S;
1420
+ var V, S, E;
1382
1421
  let D = (V = T.relatedTarget) != null ? V : ge.find((v) => v !== T.currentTarget);
1383
- (E = N(a.buttonRef)) != null && E.contains(D) || (S = N(a.optionsRef)) != null && S.contains(D) || a.disabled.value || a.immediate.value && a.comboboxState.value !== 0 && (a.openCombobox(), Qe().nextFrame(() => {
1422
+ (S = N(a.buttonRef)) != null && S.contains(D) || (E = N(a.optionsRef)) != null && E.contains(D) || a.disabled.value || a.immediate.value && a.comboboxState.value !== 0 && (a.openCombobox(), Qe().nextFrame(() => {
1384
1423
  a.setActivationTrigger(1);
1385
1424
  }));
1386
1425
  }
1387
1426
  let _ = L(() => {
1388
- var T, V, E, S;
1389
- return (S = (E = (V = e.defaultValue) != null ? V : a.defaultValue.value !== void 0 ? (T = e.displayValue) == null ? void 0 : T.call(e, a.defaultValue.value) : null) != null ? E : a.defaultValue.value) != null ? S : "";
1427
+ var T, V, S, E;
1428
+ return (E = (S = (V = e.defaultValue) != null ? V : a.defaultValue.value !== void 0 ? (T = e.displayValue) == null ? void 0 : T.call(e, a.defaultValue.value) : null) != null ? S : a.defaultValue.value) != null ? E : "";
1390
1429
  });
1391
1430
  return () => {
1392
- var T, V, E, S, D, v, p;
1393
- let k = { open: a.comboboxState.value === 0 }, { displayValue: A, onChange: j, ...H } = e, K = { "aria-controls": (T = a.optionsRef.value) == null ? void 0 : T.id, "aria-expanded": a.comboboxState.value === 0, "aria-activedescendant": a.activeOptionIndex.value === null ? void 0 : a.virtual.value ? (V = a.options.value.find((ee) => !a.virtual.value.disabled(ee.dataRef.value) && a.compare(ee.dataRef.value, a.virtual.value.options[a.activeOptionIndex.value]))) == null ? void 0 : V.id : (E = a.options.value[a.activeOptionIndex.value]) == null ? void 0 : E.id, "aria-labelledby": (v = (S = N(a.labelRef)) == null ? void 0 : S.id) != null ? v : (D = N(a.buttonRef)) == null ? void 0 : D.id, "aria-autocomplete": "list", id: r, onCompositionstart: m, onCompositionend: C, onKeydown: I, onInput: $, onFocus: y, onBlur: w, role: "combobox", type: (p = t.type) != null ? p : "text", tabIndex: 0, ref: a.inputRef, defaultValue: _.value, disabled: a.disabled.value === !0 ? !0 : void 0 };
1431
+ var T, V, S, E, D, v, p;
1432
+ let k = { open: a.comboboxState.value === 0 }, { displayValue: A, onChange: j, ...H } = e, K = { "aria-controls": (T = a.optionsRef.value) == null ? void 0 : T.id, "aria-expanded": a.comboboxState.value === 0, "aria-activedescendant": a.activeOptionIndex.value === null ? void 0 : a.virtual.value ? (V = a.options.value.find((ee) => !a.virtual.value.disabled(ee.dataRef.value) && a.compare(ee.dataRef.value, a.virtual.value.options[a.activeOptionIndex.value]))) == null ? void 0 : V.id : (S = a.options.value[a.activeOptionIndex.value]) == null ? void 0 : S.id, "aria-labelledby": (v = (E = N(a.labelRef)) == null ? void 0 : E.id) != null ? v : (D = N(a.buttonRef)) == null ? void 0 : D.id, "aria-autocomplete": "list", id: r, onCompositionstart: m, onCompositionend: C, onKeydown: I, onInput: $, onFocus: y, onBlur: w, role: "combobox", type: (p = t.type) != null ? p : "text", tabIndex: 0, ref: a.inputRef, defaultValue: _.value, disabled: a.disabled.value === !0 ? !0 : void 0 };
1394
1433
  return ye({ ourProps: K, theirProps: H, slot: k, attrs: t, slots: o, features: De.RenderStrategy | De.Static, name: "ComboboxInput" });
1395
1434
  };
1396
- } }), ml = pe({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, hold: { type: [Boolean], default: !1 } }, setup(e, { attrs: n, slots: t, expose: o }) {
1435
+ } }), bl = pe({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, hold: { type: [Boolean], default: !1 } }, setup(e, { attrs: n, slots: t, expose: o }) {
1397
1436
  let l = we("ComboboxOptions"), s = `headlessui-combobox-options-${je()}`;
1398
1437
  o({ el: l.optionsRef, $el: l.optionsRef }), fe(() => {
1399
1438
  l.optionsPropsRef.value.static = e.static;
1400
1439
  }), fe(() => {
1401
1440
  l.optionsPropsRef.value.hold = e.hold;
1402
1441
  });
1403
- let r = ll(), a = L(() => r !== null ? (r.value & Re.Open) === Re.Open : l.comboboxState.value === 0);
1404
- Ko({ container: L(() => N(l.optionsRef)), enabled: L(() => l.comboboxState.value === 0), accept(u) {
1442
+ let r = al(), a = L(() => r !== null ? (r.value & Re.Open) === Re.Open : l.comboboxState.value === 0);
1443
+ tl({ container: L(() => N(l.optionsRef)), enabled: L(() => l.comboboxState.value === 0), accept(u) {
1405
1444
  return u.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : u.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
1406
1445
  }, walk(u) {
1407
1446
  u.setAttribute("role", "none");
@@ -1412,9 +1451,9 @@ let pl = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1412
1451
  return () => {
1413
1452
  var u, c, d;
1414
1453
  let x = { open: l.comboboxState.value === 0 }, m = { "aria-labelledby": (d = (u = N(l.labelRef)) == null ? void 0 : u.id) != null ? d : (c = N(l.buttonRef)) == null ? void 0 : c.id, id: s, ref: l.optionsRef, role: "listbox", "aria-multiselectable": l.mode.value === 1 ? !0 : void 0, onMousedown: i }, C = ot(e, ["hold"]);
1415
- return ye({ ourProps: m, theirProps: C, slot: x, attrs: n, slots: l.virtual.value && l.comboboxState.value === 0 ? { ...t, default: () => [Ve(fl, {}, t.default)] } : t, features: De.RenderStrategy | De.Static, visible: a.value, name: "ComboboxOptions" });
1454
+ return ye({ ourProps: m, theirProps: C, slot: x, attrs: n, slots: l.virtual.value && l.comboboxState.value === 0 ? { ...t, default: () => [Ve(pl, {}, t.default)] } : t, features: De.RenderStrategy | De.Static, visible: a.value, name: "ComboboxOptions" });
1416
1455
  };
1417
- } }), gl = pe({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, order: { type: [Number], default: null } }, setup(e, { slots: n, attrs: t, expose: o }) {
1456
+ } }), Cl = pe({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, order: { type: [Number], default: null } }, setup(e, { slots: n, attrs: t, expose: o }) {
1418
1457
  let l = we("ComboboxOption"), s = `headlessui-combobox-option-${je()}`, r = O(null), a = L(() => e.disabled);
1419
1458
  o({ el: r, $el: r });
1420
1459
  let i = L(() => {
@@ -1442,7 +1481,7 @@ let pl = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1442
1481
  let y = l.calculateIndex(e.value);
1443
1482
  l.goToOption(q.Specific, y);
1444
1483
  }
1445
- let C = Xo();
1484
+ let C = el();
1446
1485
  function b(w) {
1447
1486
  C.update(w);
1448
1487
  }
@@ -1461,7 +1500,7 @@ let pl = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1461
1500
  return ye({ ourProps: _, theirProps: T, slot: y, attrs: t, slots: n, name: "ComboboxOption" });
1462
1501
  };
1463
1502
  } });
1464
- function bl(e, n) {
1503
+ function xl(e, n) {
1465
1504
  return h(), g("svg", {
1466
1505
  xmlns: "http://www.w3.org/2000/svg",
1467
1506
  viewBox: "0 0 20 20",
@@ -1476,7 +1515,7 @@ function bl(e, n) {
1476
1515
  })
1477
1516
  ]);
1478
1517
  }
1479
- function Cl(e, n) {
1518
+ function yl(e, n) {
1480
1519
  return h(), g("svg", {
1481
1520
  xmlns: "http://www.w3.org/2000/svg",
1482
1521
  viewBox: "0 0 20 20",
@@ -1491,7 +1530,7 @@ function Cl(e, n) {
1491
1530
  })
1492
1531
  ]);
1493
1532
  }
1494
- function xl(e, n) {
1533
+ function wl(e, n) {
1495
1534
  return h(), g("svg", {
1496
1535
  xmlns: "http://www.w3.org/2000/svg",
1497
1536
  viewBox: "0 0 20 20",
@@ -1516,22 +1555,22 @@ function dt(e, n) {
1516
1555
  }
1517
1556
  delete e[n];
1518
1557
  }
1519
- function yl() {
1558
+ function _l() {
1520
1559
  return Tn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1521
1560
  }
1522
1561
  function Tn() {
1523
1562
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
1524
1563
  }
1525
- const wl = typeof Proxy == "function", _l = "devtools-plugin:setup", Tl = "plugin:settings:set";
1564
+ const Tl = typeof Proxy == "function", Sl = "devtools-plugin:setup", El = "plugin:settings:set";
1526
1565
  let _e, pt;
1527
- function El() {
1566
+ function $l() {
1528
1567
  var e;
1529
1568
  return _e !== void 0 || (typeof window < "u" && window.performance ? (_e = !0, pt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (_e = !0, pt = globalThis.perf_hooks.performance) : _e = !1), _e;
1530
1569
  }
1531
- function Sl() {
1532
- return El() ? pt.now() : Date.now();
1570
+ function Ol() {
1571
+ return $l() ? pt.now() : Date.now();
1533
1572
  }
1534
- class $l {
1573
+ class Il {
1535
1574
  constructor(n, t) {
1536
1575
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = n, this.hook = t;
1537
1576
  const o = {};
@@ -1559,9 +1598,9 @@ class $l {
1559
1598
  s = r;
1560
1599
  },
1561
1600
  now() {
1562
- return Sl();
1601
+ return Ol();
1563
1602
  }
1564
- }, t && t.on(Tl, (r, a) => {
1603
+ }, t && t.on(El, (r, a) => {
1565
1604
  r === this.plugin.id && this.fallbacks.setSettings(a);
1566
1605
  }), this.proxiedOn = new Proxy({}, {
1567
1606
  get: (r, a) => this.target ? this.target.on[a] : (...i) => {
@@ -1593,12 +1632,12 @@ class $l {
1593
1632
  t.resolve(await this.target[t.method](...t.args));
1594
1633
  }
1595
1634
  }
1596
- function En(e, n) {
1597
- const t = e, o = Tn(), l = yl(), s = wl && t.enableEarlyProxy;
1635
+ function Sn(e, n) {
1636
+ const t = e, o = Tn(), l = _l(), s = Tl && t.enableEarlyProxy;
1598
1637
  if (l && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
1599
- l.emit(_l, e, n);
1638
+ l.emit(Sl, e, n);
1600
1639
  else {
1601
- const r = s ? new $l(t, l) : null;
1640
+ const r = s ? new Il(t, l) : null;
1602
1641
  (o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
1603
1642
  pluginDescriptor: t,
1604
1643
  setupFn: n,
@@ -1612,7 +1651,7 @@ function En(e, n) {
1612
1651
  * @license MIT
1613
1652
  */
1614
1653
  let Me;
1615
- const Pe = (e) => Me = e, Sn = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
1654
+ const Pe = (e) => Me = e, En = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
1616
1655
  /* istanbul ignore next */
1617
1656
  Symbol()
1618
1657
  );
@@ -1624,7 +1663,7 @@ var ae;
1624
1663
  e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
1625
1664
  })(ae || (ae = {}));
1626
1665
  const lt = typeof window < "u", Ae = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && lt, zt = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
1627
- function Ol(e, { autoBom: n = !1 } = {}) {
1666
+ function Ll(e, { autoBom: n = !1 } = {}) {
1628
1667
  return n && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
1629
1668
  }
1630
1669
  function Lt(e, n, t) {
@@ -1654,16 +1693,16 @@ function Ge(e) {
1654
1693
  }
1655
1694
  const Je = typeof navigator == "object" ? navigator : { userAgent: "" }, On = /Macintosh/.test(Je.userAgent) && /AppleWebKit/.test(Je.userAgent) && !/Safari/.test(Je.userAgent), In = lt ? (
1656
1695
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
1657
- typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !On ? Il : (
1696
+ typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !On ? kl : (
1658
1697
  // Use msSaveOrOpenBlob as a second approach
1659
- "msSaveOrOpenBlob" in Je ? Ll : (
1698
+ "msSaveOrOpenBlob" in Je ? Ml : (
1660
1699
  // Fallback to using FileReader and a popup
1661
- kl
1700
+ Al
1662
1701
  )
1663
1702
  )
1664
1703
  ) : () => {
1665
1704
  };
1666
- function Il(e, n = "download", t) {
1705
+ function kl(e, n = "download", t) {
1667
1706
  const o = document.createElement("a");
1668
1707
  o.download = n, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin !== location.origin ? $n(o.href) ? Lt(e, n, t) : (o.target = "_blank", Ge(o)) : Ge(o)) : (o.href = URL.createObjectURL(e), setTimeout(function() {
1669
1708
  URL.revokeObjectURL(o.href);
@@ -1671,7 +1710,7 @@ function Il(e, n = "download", t) {
1671
1710
  Ge(o);
1672
1711
  }, 0));
1673
1712
  }
1674
- function Ll(e, n = "download", t) {
1713
+ function Ml(e, n = "download", t) {
1675
1714
  if (typeof e == "string")
1676
1715
  if ($n(e))
1677
1716
  Lt(e, n, t);
@@ -1682,9 +1721,9 @@ function Ll(e, n = "download", t) {
1682
1721
  });
1683
1722
  }
1684
1723
  else
1685
- navigator.msSaveOrOpenBlob(Ol(e, t), n);
1724
+ navigator.msSaveOrOpenBlob(Ll(e, t), n);
1686
1725
  }
1687
- function kl(e, n, t, o) {
1726
+ function Al(e, n, t, o) {
1688
1727
  if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof e == "string")
1689
1728
  return Lt(e, n, t);
1690
1729
  const l = e.type === "application/octet-stream", s = /constructor/i.test(String(zt.HTMLElement)) || "safari" in zt, r = /CriOS\/[\d]+/.test(navigator.userAgent);
@@ -1717,7 +1756,7 @@ function Ln() {
1717
1756
  function kn(e) {
1718
1757
  return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (U('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
1719
1758
  }
1720
- async function Ml(e) {
1759
+ async function Vl(e) {
1721
1760
  if (!Ln())
1722
1761
  try {
1723
1762
  await navigator.clipboard.writeText(JSON.stringify(e.state.value)), U("Global state copied to clipboard.");
@@ -1727,7 +1766,7 @@ async function Ml(e) {
1727
1766
  U("Failed to serialize the state. Check the console for more details.", "error"), console.error(n);
1728
1767
  }
1729
1768
  }
1730
- async function Al(e) {
1769
+ async function Dl(e) {
1731
1770
  if (!Ln())
1732
1771
  try {
1733
1772
  Mn(e, JSON.parse(await navigator.clipboard.readText())), U("Global state pasted from clipboard.");
@@ -1737,7 +1776,7 @@ async function Al(e) {
1737
1776
  U("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(n);
1738
1777
  }
1739
1778
  }
1740
- async function Vl(e) {
1779
+ async function Rl(e) {
1741
1780
  try {
1742
1781
  In(new Blob([JSON.stringify(e.state.value)], {
1743
1782
  type: "text/plain;charset=utf-8"
@@ -1747,7 +1786,7 @@ async function Vl(e) {
1747
1786
  }
1748
1787
  }
1749
1788
  let ie;
1750
- function Dl() {
1789
+ function Pl() {
1751
1790
  ie || (ie = document.createElement("input"), ie.type = "file", ie.accept = ".json");
1752
1791
  function e() {
1753
1792
  return new Promise((n, t) => {
@@ -1762,9 +1801,9 @@ function Dl() {
1762
1801
  }
1763
1802
  return e;
1764
1803
  }
1765
- async function Rl(e) {
1804
+ async function Nl(e) {
1766
1805
  try {
1767
- const t = await Dl()();
1806
+ const t = await Pl()();
1768
1807
  if (!t)
1769
1808
  return;
1770
1809
  const { text: o, file: l } = t;
@@ -1787,7 +1826,7 @@ function oe(e) {
1787
1826
  };
1788
1827
  }
1789
1828
  const An = "🍍 Pinia (root)", ht = "_root";
1790
- function Pl(e) {
1829
+ function Bl(e) {
1791
1830
  return kt(e) ? {
1792
1831
  id: ht,
1793
1832
  label: An
@@ -1796,7 +1835,7 @@ function Pl(e) {
1796
1835
  label: e.$id
1797
1836
  };
1798
1837
  }
1799
- function Nl(e) {
1838
+ function Fl(e) {
1800
1839
  if (kt(e)) {
1801
1840
  const t = Array.from(e._s.keys()), o = e._s;
1802
1841
  return {
@@ -1832,7 +1871,7 @@ function Nl(e) {
1832
1871
  value: e[t]
1833
1872
  }))), n;
1834
1873
  }
1835
- function Bl(e) {
1874
+ function jl(e) {
1836
1875
  return e ? Array.isArray(e) ? e.reduce((n, t) => (n.keys.push(t.key), n.operations.push(t.type), n.oldValue[t.key] = t.oldValue, n.newValue[t.key] = t.newValue, n), {
1837
1876
  oldValue: {},
1838
1877
  keys: [],
@@ -1845,7 +1884,7 @@ function Bl(e) {
1845
1884
  newValue: e.newValue
1846
1885
  } : {};
1847
1886
  }
1848
- function Fl(e) {
1887
+ function Hl(e) {
1849
1888
  switch (e) {
1850
1889
  case ae.direct:
1851
1890
  return "mutation";
@@ -1857,10 +1896,10 @@ function Fl(e) {
1857
1896
  return "unknown";
1858
1897
  }
1859
1898
  }
1860
- let Ee = !0;
1861
- const Ye = [], me = "pinia:mutations", G = "pinia", { assign: jl } = Object, Xe = (e) => "🍍 " + e;
1862
- function Hl(e, n) {
1863
- En({
1899
+ let Se = !0;
1900
+ const Ye = [], me = "pinia:mutations", J = "pinia", { assign: zl } = Object, Xe = (e) => "🍍 " + e;
1901
+ function Zl(e, n) {
1902
+ Sn({
1864
1903
  id: "dev.esm.pinia",
1865
1904
  label: "Pinia 🍍",
1866
1905
  logo: "https://pinia.vuejs.org/logo.svg",
@@ -1874,7 +1913,7 @@ function Hl(e, n) {
1874
1913
  label: "Pinia 🍍",
1875
1914
  color: 15064968
1876
1915
  }), t.addInspector({
1877
- id: G,
1916
+ id: J,
1878
1917
  label: "Pinia 🍍",
1879
1918
  icon: "storage",
1880
1919
  treeFilterPlaceholder: "Search stores",
@@ -1882,28 +1921,28 @@ function Hl(e, n) {
1882
1921
  {
1883
1922
  icon: "content_copy",
1884
1923
  action: () => {
1885
- Ml(n);
1924
+ Vl(n);
1886
1925
  },
1887
1926
  tooltip: "Serialize and copy the state"
1888
1927
  },
1889
1928
  {
1890
1929
  icon: "content_paste",
1891
1930
  action: async () => {
1892
- await Al(n), t.sendInspectorTree(G), t.sendInspectorState(G);
1931
+ await Dl(n), t.sendInspectorTree(J), t.sendInspectorState(J);
1893
1932
  },
1894
1933
  tooltip: "Replace the state with the content of your clipboard"
1895
1934
  },
1896
1935
  {
1897
1936
  icon: "save",
1898
1937
  action: () => {
1899
- Vl(n);
1938
+ Rl(n);
1900
1939
  },
1901
1940
  tooltip: "Save the state as a JSON file"
1902
1941
  },
1903
1942
  {
1904
1943
  icon: "folder_open",
1905
1944
  action: async () => {
1906
- await Rl(n), t.sendInspectorTree(G), t.sendInspectorState(G);
1945
+ await Nl(n), t.sendInspectorTree(J), t.sendInspectorState(J);
1907
1946
  },
1908
1947
  tooltip: "Import the state from a JSON file"
1909
1948
  }
@@ -1958,24 +1997,24 @@ function Hl(e, n) {
1958
1997
  });
1959
1998
  }
1960
1999
  }), t.on.getInspectorTree((o) => {
1961
- if (o.app === e && o.inspectorId === G) {
2000
+ if (o.app === e && o.inspectorId === J) {
1962
2001
  let l = [n];
1963
- l = l.concat(Array.from(n._s.values())), o.rootNodes = (o.filter ? l.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(o.filter.toLowerCase()) : An.toLowerCase().includes(o.filter.toLowerCase())) : l).map(Pl);
2002
+ l = l.concat(Array.from(n._s.values())), o.rootNodes = (o.filter ? l.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(o.filter.toLowerCase()) : An.toLowerCase().includes(o.filter.toLowerCase())) : l).map(Bl);
1964
2003
  }
1965
2004
  }), t.on.getInspectorState((o) => {
1966
- if (o.app === e && o.inspectorId === G) {
2005
+ if (o.app === e && o.inspectorId === J) {
1967
2006
  const l = o.nodeId === ht ? n : n._s.get(o.nodeId);
1968
2007
  if (!l)
1969
2008
  return;
1970
- l && (o.state = Nl(l));
2009
+ l && (o.state = Fl(l));
1971
2010
  }
1972
2011
  }), t.on.editInspectorState((o, l) => {
1973
- if (o.app === e && o.inspectorId === G) {
2012
+ if (o.app === e && o.inspectorId === J) {
1974
2013
  const s = o.nodeId === ht ? n : n._s.get(o.nodeId);
1975
2014
  if (!s)
1976
2015
  return U(`store "${o.nodeId}" not found`, "error");
1977
2016
  const { path: r } = o;
1978
- kt(s) ? r.unshift("state") : (r.length !== 1 || !s._customProperties.has(r[0]) || r[0] in s.$state) && r.unshift("$state"), Ee = !1, o.set(s, r, o.state.value), Ee = !0;
2017
+ kt(s) ? r.unshift("state") : (r.length !== 1 || !s._customProperties.has(r[0]) || r[0] in s.$state) && r.unshift("$state"), Se = !1, o.set(s, r, o.state.value), Se = !0;
1979
2018
  }
1980
2019
  }), t.on.editComponentState((o) => {
1981
2020
  if (o.type.startsWith("🍍")) {
@@ -1987,13 +2026,13 @@ function Hl(e, n) {
1987
2026
  return U(`Invalid path for store "${l}":
1988
2027
  ${r}
1989
2028
  Only state can be modified.`);
1990
- r[0] = "$state", Ee = !1, o.set(s, r, o.state.value), Ee = !0;
2029
+ r[0] = "$state", Se = !1, o.set(s, r, o.state.value), Se = !0;
1991
2030
  }
1992
2031
  });
1993
2032
  });
1994
2033
  }
1995
- function zl(e, n) {
1996
- Ye.includes(Xe(n.$id)) || Ye.push(Xe(n.$id)), En({
2034
+ function Ul(e, n) {
2035
+ Ye.includes(Xe(n.$id)) || Ye.push(Xe(n.$id)), Sn({
1997
2036
  id: "dev.esm.pinia",
1998
2037
  label: "Pinia 🍍",
1999
2038
  logo: "https://pinia.vuejs.org/logo.svg",
@@ -2066,7 +2105,7 @@ function zl(e, n) {
2066
2105
  });
2067
2106
  }, !0), n._customProperties.forEach((r) => {
2068
2107
  F(() => M(n[r]), (a, i) => {
2069
- t.notifyComponentUpdate(), t.sendInspectorState(G), Ee && t.addTimelineEvent({
2108
+ t.notifyComponentUpdate(), t.sendInspectorState(J), Se && t.addTimelineEvent({
2070
2109
  layerId: me,
2071
2110
  event: {
2072
2111
  time: o(),
@@ -2081,12 +2120,12 @@ function zl(e, n) {
2081
2120
  });
2082
2121
  }, { deep: !0 });
2083
2122
  }), n.$subscribe(({ events: r, type: a }, i) => {
2084
- if (t.notifyComponentUpdate(), t.sendInspectorState(G), !Ee)
2123
+ if (t.notifyComponentUpdate(), t.sendInspectorState(J), !Se)
2085
2124
  return;
2086
2125
  const u = {
2087
2126
  time: o(),
2088
- title: Fl(a),
2089
- data: jl({ store: oe(n.$id) }, Bl(r)),
2127
+ title: Hl(a),
2128
+ data: zl({ store: oe(n.$id) }, jl(r)),
2090
2129
  groupId: de
2091
2130
  };
2092
2131
  a === ae.patchFunction ? u.subtitle = "⤵️" : a === ae.patchObject ? u.subtitle = "🧩" : r && !Array.isArray(r) && (u.subtitle = r.type), r && (u.data["rawEvent(s)"] = {
@@ -2114,12 +2153,12 @@ function zl(e, n) {
2114
2153
  info: oe("HMR update")
2115
2154
  }
2116
2155
  }
2117
- }), t.notifyComponentUpdate(), t.sendInspectorTree(G), t.sendInspectorState(G);
2156
+ }), t.notifyComponentUpdate(), t.sendInspectorTree(J), t.sendInspectorState(J);
2118
2157
  });
2119
2158
  const { $dispose: s } = n;
2120
2159
  n.$dispose = () => {
2121
- s(), t.notifyComponentUpdate(), t.sendInspectorTree(G), t.sendInspectorState(G), t.getSettings().logStoreChanges && U(`Disposed "${n.$id}" store 🗑`);
2122
- }, t.notifyComponentUpdate(), t.sendInspectorTree(G), t.sendInspectorState(G), t.getSettings().logStoreChanges && U(`"${n.$id}" store installed 🆕`);
2160
+ s(), t.notifyComponentUpdate(), t.sendInspectorTree(J), t.sendInspectorState(J), t.getSettings().logStoreChanges && U(`Disposed "${n.$id}" store 🗑`);
2161
+ }, t.notifyComponentUpdate(), t.sendInspectorTree(J), t.sendInspectorState(J), t.getSettings().logStoreChanges && U(`"${n.$id}" store installed 🆕`);
2123
2162
  });
2124
2163
  }
2125
2164
  let Vn = 0, de;
@@ -2140,25 +2179,25 @@ function Zt(e, n, t) {
2140
2179
  return de = void 0, a;
2141
2180
  };
2142
2181
  }
2143
- function Zl({ app: e, store: n, options: t }) {
2182
+ function Wl({ app: e, store: n, options: t }) {
2144
2183
  if (n.$id.startsWith("__hot:"))
2145
2184
  return;
2146
2185
  n._isOptionsAPI = !!t.state, Zt(n, Object.keys(t.actions), n._isOptionsAPI);
2147
2186
  const o = n._hotUpdate;
2148
2187
  ne(n)._hotUpdate = function(l) {
2149
2188
  o.apply(this, arguments), Zt(n, Object.keys(l._hmrPayload.actions), !!n._isOptionsAPI);
2150
- }, zl(
2189
+ }, Ul(
2151
2190
  e,
2152
2191
  // FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
2153
2192
  n
2154
2193
  );
2155
2194
  }
2156
- function Ul() {
2195
+ function ql() {
2157
2196
  const e = un(!0), n = e.run(() => O({}));
2158
2197
  let t = [], o = [];
2159
2198
  const l = be({
2160
2199
  install(s) {
2161
- Pe(l), l._a = s, s.provide(Sn, l), s.config.globalProperties.$pinia = l, Ae && Hl(s, l), o.forEach((r) => t.push(r)), o = [];
2200
+ Pe(l), l._a = s, s.provide(En, l), s.config.globalProperties.$pinia = l, Ae && Zl(s, l), o.forEach((r) => t.push(r)), o = [];
2162
2201
  },
2163
2202
  use(s) {
2164
2203
  return this._a ? t.push(s) : o.push(s), this;
@@ -2171,7 +2210,7 @@ function Ul() {
2171
2210
  _s: /* @__PURE__ */ new Map(),
2172
2211
  state: n
2173
2212
  });
2174
- return Ae && typeof Proxy < "u" && l.use(Zl), l;
2213
+ return Ae && typeof Proxy < "u" && l.use(Wl), l;
2175
2214
  }
2176
2215
  function Dn(e, n) {
2177
2216
  for (const t in n) {
@@ -2179,7 +2218,7 @@ function Dn(e, n) {
2179
2218
  if (!(t in e))
2180
2219
  continue;
2181
2220
  const l = e[t];
2182
- Ce(l) && Ce(o) && !$e(o) && !Et(o) ? e[t] = Dn(l, o) : e[t] = o;
2221
+ Ce(l) && Ce(o) && !$e(o) && !St(o) ? e[t] = Dn(l, o) : e[t] = o;
2183
2222
  }
2184
2223
  return e;
2185
2224
  }
@@ -2198,23 +2237,23 @@ function Te(e, ...n) {
2198
2237
  t(...n);
2199
2238
  });
2200
2239
  }
2201
- const Wl = (e) => e();
2240
+ const Gl = (e) => e();
2202
2241
  function mt(e, n) {
2203
2242
  e instanceof Map && n instanceof Map && n.forEach((t, o) => e.set(o, t)), e instanceof Set && n instanceof Set && n.forEach(e.add, e);
2204
2243
  for (const t in n) {
2205
2244
  if (!n.hasOwnProperty(t))
2206
2245
  continue;
2207
2246
  const o = n[t], l = e[t];
2208
- Ce(l) && Ce(o) && e.hasOwnProperty(t) && !$e(o) && !Et(o) ? e[t] = mt(l, o) : e[t] = o;
2247
+ Ce(l) && Ce(o) && e.hasOwnProperty(t) && !$e(o) && !St(o) ? e[t] = mt(l, o) : e[t] = o;
2209
2248
  }
2210
2249
  return e;
2211
2250
  }
2212
- const ql = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
2251
+ const Jl = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
2213
2252
  /* istanbul ignore next */
2214
2253
  Symbol()
2215
2254
  );
2216
- function Gl(e) {
2217
- return !Ce(e) || !e.hasOwnProperty(ql);
2255
+ function Yl(e) {
2256
+ return !Ce(e) || !e.hasOwnProperty(Jl);
2218
2257
  }
2219
2258
  const { assign: te } = Object;
2220
2259
  function Wt(e) {
@@ -2247,7 +2286,7 @@ function gt(e, n, t = {}, o, l, s) {
2247
2286
  // flush: 'post',
2248
2287
  };
2249
2288
  process.env.NODE_ENV !== "production" && (i.onTrigger = (v) => {
2250
- u ? m = v : u == !1 && !E._hotUpdating && (Array.isArray(m) ? m.push(v) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
2289
+ u ? m = v : u == !1 && !S._hotUpdating && (Array.isArray(m) ? m.push(v) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
2251
2290
  });
2252
2291
  let u, c, d = [], x = [], m;
2253
2292
  const C = o.state.value[e];
@@ -2298,13 +2337,13 @@ function gt(e, n, t = {}, o, l, s) {
2298
2337
  Te(x, {
2299
2338
  args: k,
2300
2339
  name: v,
2301
- store: E,
2340
+ store: S,
2302
2341
  after: H,
2303
2342
  onError: K
2304
2343
  });
2305
2344
  let ee;
2306
2345
  try {
2307
- ee = p.apply(this && this.$id === e ? this : E, k);
2346
+ ee = p.apply(this && this.$id === e ? this : S, k);
2308
2347
  } catch (Z) {
2309
2348
  throw Te(j, Z), Z;
2310
2349
  }
@@ -2334,7 +2373,7 @@ function gt(e, n, t = {}, o, l, s) {
2334
2373
  return k;
2335
2374
  },
2336
2375
  $dispose: y
2337
- }, E = an(process.env.NODE_ENV !== "production" || Ae ? te(
2376
+ }, S = an(process.env.NODE_ENV !== "production" || Ae ? te(
2338
2377
  {
2339
2378
  _hmrPayload: T,
2340
2379
  _customProperties: be(/* @__PURE__ */ new Set())
@@ -2344,12 +2383,12 @@ function gt(e, n, t = {}, o, l, s) {
2344
2383
  // must be added later
2345
2384
  // setupStore
2346
2385
  ) : V);
2347
- o._s.set(e, E);
2348
- const D = (o._a && o._a.runWithContext || Wl)(() => o._e.run(() => (r = un()).run(n)));
2386
+ o._s.set(e, S);
2387
+ const D = (o._a && o._a.runWithContext || Gl)(() => o._e.run(() => (r = un()).run(n)));
2349
2388
  for (const v in D) {
2350
2389
  const p = D[v];
2351
- if ($e(p) && !Wt(p) || Et(p))
2352
- process.env.NODE_ENV !== "production" && l ? We(b.value, v, it(D, v)) : s || (C && Gl(p) && ($e(p) ? p.value = C[v] : mt(p, C[v])), o.state.value[e][v] = p), process.env.NODE_ENV !== "production" && T.state.push(v);
2390
+ if ($e(p) && !Wt(p) || St(p))
2391
+ process.env.NODE_ENV !== "production" && l ? We(b.value, v, it(D, v)) : s || (C && Yl(p) && ($e(p) ? p.value = C[v] : mt(p, C[v])), o.state.value[e][v] = p), process.env.NODE_ENV !== "production" && T.state.push(v);
2353
2392
  else if (typeof p == "function") {
2354
2393
  const k = process.env.NODE_ENV !== "production" && l ? p : _(v, p);
2355
2394
  D[v] = k, process.env.NODE_ENV !== "production" && (T.actions[v] = p), a.actions[v] = p;
@@ -2359,7 +2398,7 @@ function gt(e, n, t = {}, o, l, s) {
2359
2398
  ) : p, lt && (D._getters || // @ts-expect-error: same
2360
2399
  (D._getters = be([]))).push(v));
2361
2400
  }
2362
- if (te(E, D), te(ne(E), D), Object.defineProperty(E, "$state", {
2401
+ if (te(S, D), te(ne(S), D), Object.defineProperty(S, "$state", {
2363
2402
  get: () => process.env.NODE_ENV !== "production" && l ? b.value : o.state.value[e],
2364
2403
  set: (v) => {
2365
2404
  if (process.env.NODE_ENV !== "production" && l)
@@ -2368,34 +2407,34 @@ function gt(e, n, t = {}, o, l, s) {
2368
2407
  te(p, v);
2369
2408
  });
2370
2409
  }
2371
- }), process.env.NODE_ENV !== "production" && (E._hotUpdate = be((v) => {
2372
- E._hotUpdating = !0, v._hmrPayload.state.forEach((p) => {
2373
- if (p in E.$state) {
2374
- const k = v.$state[p], A = E.$state[p];
2410
+ }), process.env.NODE_ENV !== "production" && (S._hotUpdate = be((v) => {
2411
+ S._hotUpdating = !0, v._hmrPayload.state.forEach((p) => {
2412
+ if (p in S.$state) {
2413
+ const k = v.$state[p], A = S.$state[p];
2375
2414
  typeof k == "object" && Ce(k) && Ce(A) ? Dn(k, A) : v.$state[p] = A;
2376
2415
  }
2377
- We(E, p, it(v.$state, p));
2378
- }), Object.keys(E.$state).forEach((p) => {
2379
- p in v.$state || dt(E, p);
2416
+ We(S, p, it(v.$state, p));
2417
+ }), Object.keys(S.$state).forEach((p) => {
2418
+ p in v.$state || dt(S, p);
2380
2419
  }), u = !1, c = !1, o.state.value[e] = it(v._hmrPayload, "hotState"), c = !0, X().then(() => {
2381
2420
  u = !0;
2382
2421
  });
2383
2422
  for (const p in v._hmrPayload.actions) {
2384
2423
  const k = v[p];
2385
- We(E, p, _(p, k));
2424
+ We(S, p, _(p, k));
2386
2425
  }
2387
2426
  for (const p in v._hmrPayload.getters) {
2388
2427
  const k = v._hmrPayload.getters[p], A = s ? (
2389
2428
  // special handling of options api
2390
- L(() => (Pe(o), k.call(E, E)))
2429
+ L(() => (Pe(o), k.call(S, S)))
2391
2430
  ) : k;
2392
- We(E, p, A);
2431
+ We(S, p, A);
2393
2432
  }
2394
- Object.keys(E._hmrPayload.getters).forEach((p) => {
2395
- p in v._hmrPayload.getters || dt(E, p);
2396
- }), Object.keys(E._hmrPayload.actions).forEach((p) => {
2397
- p in v._hmrPayload.actions || dt(E, p);
2398
- }), E._hmrPayload = v._hmrPayload, E._getters = v._getters, E._hotUpdating = !1;
2433
+ Object.keys(S._hmrPayload.getters).forEach((p) => {
2434
+ p in v._hmrPayload.getters || dt(S, p);
2435
+ }), Object.keys(S._hmrPayload.actions).forEach((p) => {
2436
+ p in v._hmrPayload.actions || dt(S, p);
2437
+ }), S._hmrPayload = v._hmrPayload, S._getters = v._getters, S._hotUpdating = !1;
2399
2438
  })), Ae) {
2400
2439
  const v = {
2401
2440
  writable: !0,
@@ -2404,28 +2443,28 @@ function gt(e, n, t = {}, o, l, s) {
2404
2443
  enumerable: !1
2405
2444
  };
2406
2445
  ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((p) => {
2407
- Object.defineProperty(E, p, te({ value: E[p] }, v));
2446
+ Object.defineProperty(S, p, te({ value: S[p] }, v));
2408
2447
  });
2409
2448
  }
2410
2449
  return o._p.forEach((v) => {
2411
2450
  if (Ae) {
2412
2451
  const p = r.run(() => v({
2413
- store: E,
2452
+ store: S,
2414
2453
  app: o._a,
2415
2454
  pinia: o,
2416
2455
  options: a
2417
2456
  }));
2418
- Object.keys(p || {}).forEach((k) => E._customProperties.add(k)), te(E, p);
2457
+ Object.keys(p || {}).forEach((k) => S._customProperties.add(k)), te(S, p);
2419
2458
  } else
2420
- te(E, r.run(() => v({
2421
- store: E,
2459
+ te(S, r.run(() => v({
2460
+ store: S,
2422
2461
  app: o._a,
2423
2462
  pinia: o,
2424
2463
  options: a
2425
2464
  })));
2426
- }), process.env.NODE_ENV !== "production" && E.$state && typeof E.$state == "object" && typeof E.$state.constructor == "function" && !E.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
2465
+ }), process.env.NODE_ENV !== "production" && S.$state && typeof S.$state == "object" && typeof S.$state.constructor == "function" && !S.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
2427
2466
  state: () => new MyClass()
2428
- Found in store "${E.$id}".`), C && s && t.hydrate && t.hydrate(E.$state, C), u = !0, c = !0, E;
2467
+ Found in store "${S.$id}".`), C && s && t.hydrate && t.hydrate(S.$state, C), u = !0, c = !0, S;
2429
2468
  }
2430
2469
  function He(e, n, t) {
2431
2470
  let o, l;
@@ -2438,7 +2477,7 @@ function He(e, n, t) {
2438
2477
  const u = Wn();
2439
2478
  if (a = // in test mode, ignore the argument provided as we can always retrieve a
2440
2479
  // pinia instance with getActivePinia()
2441
- (process.env.NODE_ENV === "test" && Me && Me._testing ? null : a) || (u ? le(Sn, null) : null), a && Pe(a), process.env.NODE_ENV !== "production" && !Me)
2480
+ (process.env.NODE_ENV === "test" && Me && Me._testing ? null : a) || (u ? le(En, null) : null), a && Pe(a), process.env.NODE_ENV !== "production" && !Me)
2442
2481
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
2443
2482
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
2444
2483
  This will fail in production.`);
@@ -2487,7 +2526,7 @@ const xe = He("loader", () => {
2487
2526
  )), a = (i) => {
2488
2527
  i.target.value = "", l.value = "", s.value && s.value.$el.click();
2489
2528
  };
2490
- return (i, u) => (h(), W(M(vl), {
2529
+ return (i, u) => (h(), W(M(hl), {
2491
2530
  modelValue: o.value,
2492
2531
  "onUpdate:modelValue": u[3] || (u[3] = (c) => o.value = c),
2493
2532
  disabled: M(n).loading,
@@ -2495,19 +2534,19 @@ const xe = He("loader", () => {
2495
2534
  class: "relative mt-1"
2496
2535
  }, {
2497
2536
  default: ze(() => [
2498
- B(M(hl), {
2537
+ B(M(gl), {
2499
2538
  class: "w-full bg-base-100 border border-base-300 rounded py-2.5 pl-3 pr-10 text-sm text-base-content font-medium focus:outline-none focus:ring-0.5 focus:ring-primary focus:border-primary",
2500
2539
  onChange: u[0] || (u[0] = (c) => l.value = c.target.value),
2501
2540
  displayValue: (c) => e.languages[c],
2502
2541
  onFocus: u[1] || (u[1] = (c) => a(c))
2503
2542
  }, null, 8, ["displayValue"]),
2504
- B(M(pl), {
2543
+ B(M(ml), {
2505
2544
  ref_key: "btnSelect",
2506
2545
  ref: s,
2507
2546
  class: "absolute inset-y-0 right-0 flex items-center pr-2"
2508
2547
  }, {
2509
2548
  default: ze(() => [
2510
- B(M(Cl), {
2549
+ B(M(yl), {
2511
2550
  class: "h-5 w-5 text-base-content/50",
2512
2551
  "aria-hidden": "true",
2513
2552
  onClick: u[2] || (u[2] = (c) => a(c))
@@ -2515,22 +2554,22 @@ const xe = He("loader", () => {
2515
2554
  ]),
2516
2555
  _: 1
2517
2556
  }, 512),
2518
- B(M(ml), { class: "absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-base-100 py-1 text-base shadow-lg ring-1 ring-base-300 focus:outline-none sm:text-sm z-50" }, {
2557
+ B(M(bl), { class: "absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-base-100 py-1 text-base shadow-lg ring-1 ring-base-300 focus:outline-none sm:text-sm z-50" }, {
2519
2558
  default: ze(() => [
2520
- (h(!0), g(z, null, Y(r.value, ([c, d]) => (h(), W(M(gl), {
2559
+ (h(!0), g(z, null, Y(r.value, ([c, d]) => (h(), W(M(Cl), {
2521
2560
  key: c,
2522
2561
  value: c
2523
2562
  }, {
2524
2563
  default: ze(({ active: x, selected: m }) => [
2525
2564
  f("li", {
2526
- class: R([
2565
+ class: P([
2527
2566
  "relative cursor-default select-none py-2 pl-3 pr-9",
2528
2567
  x ? "bg-primary text-primary-content" : "text-base-content"
2529
2568
  ])
2530
2569
  }, [
2531
2570
  f("span", {
2532
- class: R(["block truncate", m && "font-semibold"])
2533
- }, J(d), 3)
2571
+ class: P(["block truncate", m && "font-semibold"])
2572
+ }, G(d), 3)
2534
2573
  ], 2)
2535
2574
  ]),
2536
2575
  _: 2
@@ -2542,11 +2581,11 @@ const xe = He("loader", () => {
2542
2581
  _: 1
2543
2582
  }, 8, ["modelValue", "disabled"]));
2544
2583
  }
2545
- }, Jl = ["disabled"], Yl = /* @__PURE__ */ Be('<svg class="w-4 h-4 text-primary" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.68688 2.3131C3.88214 2.50837 3.88214 2.82495 3.68688 3.02021L2.04043 4.66666L3.68688 6.3131C3.88214 6.50837 3.88214 6.82495 3.68688 7.02021C3.49162 7.21547 3.17504 7.21547 2.97977 7.02021L0.979775 5.02021C0.784513 4.82495 0.784513 4.50837 0.979775 4.3131L2.97977 2.3131C3.17504 2.11784 3.49162 2.11784 3.68688 2.3131Z" fill="currentColor"></path><path d="M12.3131 8.97977C12.5084 8.78451 12.825 8.78451 13.0202 8.97977L15.0202 10.9798C15.2155 11.175 15.2155 11.4916 15.0202 11.6869L13.0202 13.6869C12.825 13.8821 12.5084 13.8821 12.3131 13.6869C12.1178 13.4916 12.1178 13.175 12.3131 12.9798L13.9596 11.3333L12.3131 9.68688C12.1178 9.49161 12.1178 9.17503 12.3131 8.97977Z" fill="currentColor"></path><path d="M0.833328 4.66666C0.833328 4.39051 1.05719 4.16666 1.33333 4.16666H14.6667C14.9428 4.16666 15.1667 4.39051 15.1667 4.66666C15.1667 4.9428 14.9428 5.16666 14.6667 5.16666H1.33333C1.05719 5.16666 0.833328 4.9428 0.833328 4.66666Z" fill="currentColor"></path><path d="M0.833328 11.3333C0.833328 11.0572 1.05719 10.8333 1.33333 10.8333H14.6667C14.9428 10.8333 15.1667 11.0572 15.1667 11.3333C15.1667 11.6095 14.9428 11.8333 14.6667 11.8333H1.33333C1.05719 11.8333 0.833328 11.6095 0.833328 11.3333Z" fill="currentColor"></path></svg>', 1), Ql = [
2546
- Yl
2547
- ], Xl = ["disabled"], Kl = /* @__PURE__ */ Be('<svg class="w-4 h-4 text-primary" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.68688 2.3131C3.88214 2.50837 3.88214 2.82495 3.68688 3.02021L2.04043 4.66666L3.68688 6.3131C3.88214 6.50837 3.88214 6.82495 3.68688 7.02021C3.49162 7.21547 3.17504 7.21547 2.97977 7.02021L0.979775 5.02021C0.784513 4.82495 0.784513 4.50837 0.979775 4.3131L2.97977 2.3131C3.17504 2.11784 3.49162 2.11784 3.68688 2.3131Z" fill="currentColor"></path><path d="M12.3131 8.97977C12.5084 8.78451 12.825 8.78451 13.0202 8.97977L15.0202 10.9798C15.2155 11.175 15.2155 11.4916 15.0202 11.6869L13.0202 13.6869C12.825 13.8821 12.5084 13.8821 12.3131 13.6869C12.1178 13.4916 12.1178 13.175 12.3131 12.9798L13.9596 11.3333L12.3131 9.68688C12.1178 9.49161 12.1178 9.17503 12.3131 8.97977Z" fill="currentColor"></path><path d="M0.833328 4.66666C0.833328 4.39051 1.05719 4.16666 1.33333 4.16666H14.6667C14.9428 4.16666 15.1667 4.39051 15.1667 4.66666C15.1667 4.9428 14.9428 5.16666 14.6667 5.16666H1.33333C1.05719 5.16666 0.833328 4.9428 0.833328 4.66666Z" fill="currentColor"></path><path d="M0.833328 11.3333C0.833328 11.0572 1.05719 10.8333 1.33333 10.8333H14.6667C14.9428 10.8333 15.1667 11.0572 15.1667 11.3333C15.1667 11.6095 14.9428 11.8333 14.6667 11.8333H1.33333C1.05719 11.8333 0.833328 11.6095 0.833328 11.3333Z" fill="currentColor"></path></svg>', 1), es = [
2548
- Kl
2549
- ], ts = {
2584
+ }, Ql = ["disabled"], Xl = /* @__PURE__ */ Be('<svg class="w-4 h-4 text-primary" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.68688 2.3131C3.88214 2.50837 3.88214 2.82495 3.68688 3.02021L2.04043 4.66666L3.68688 6.3131C3.88214 6.50837 3.88214 6.82495 3.68688 7.02021C3.49162 7.21547 3.17504 7.21547 2.97977 7.02021L0.979775 5.02021C0.784513 4.82495 0.784513 4.50837 0.979775 4.3131L2.97977 2.3131C3.17504 2.11784 3.49162 2.11784 3.68688 2.3131Z" fill="currentColor"></path><path d="M12.3131 8.97977C12.5084 8.78451 12.825 8.78451 13.0202 8.97977L15.0202 10.9798C15.2155 11.175 15.2155 11.4916 15.0202 11.6869L13.0202 13.6869C12.825 13.8821 12.5084 13.8821 12.3131 13.6869C12.1178 13.4916 12.1178 13.175 12.3131 12.9798L13.9596 11.3333L12.3131 9.68688C12.1178 9.49161 12.1178 9.17503 12.3131 8.97977Z" fill="currentColor"></path><path d="M0.833328 4.66666C0.833328 4.39051 1.05719 4.16666 1.33333 4.16666H14.6667C14.9428 4.16666 15.1667 4.39051 15.1667 4.66666C15.1667 4.9428 14.9428 5.16666 14.6667 5.16666H1.33333C1.05719 5.16666 0.833328 4.9428 0.833328 4.66666Z" fill="currentColor"></path><path d="M0.833328 11.3333C0.833328 11.0572 1.05719 10.8333 1.33333 10.8333H14.6667C14.9428 10.8333 15.1667 11.0572 15.1667 11.3333C15.1667 11.6095 14.9428 11.8333 14.6667 11.8333H1.33333C1.05719 11.8333 0.833328 11.6095 0.833328 11.3333Z" fill="currentColor"></path></svg>', 1), Kl = [
2585
+ Xl
2586
+ ], es = ["disabled"], ts = /* @__PURE__ */ Be('<svg class="w-4 h-4 text-primary" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.68688 2.3131C3.88214 2.50837 3.88214 2.82495 3.68688 3.02021L2.04043 4.66666L3.68688 6.3131C3.88214 6.50837 3.88214 6.82495 3.68688 7.02021C3.49162 7.21547 3.17504 7.21547 2.97977 7.02021L0.979775 5.02021C0.784513 4.82495 0.784513 4.50837 0.979775 4.3131L2.97977 2.3131C3.17504 2.11784 3.49162 2.11784 3.68688 2.3131Z" fill="currentColor"></path><path d="M12.3131 8.97977C12.5084 8.78451 12.825 8.78451 13.0202 8.97977L15.0202 10.9798C15.2155 11.175 15.2155 11.4916 15.0202 11.6869L13.0202 13.6869C12.825 13.8821 12.5084 13.8821 12.3131 13.6869C12.1178 13.4916 12.1178 13.175 12.3131 12.9798L13.9596 11.3333L12.3131 9.68688C12.1178 9.49161 12.1178 9.17503 12.3131 8.97977Z" fill="currentColor"></path><path d="M0.833328 4.66666C0.833328 4.39051 1.05719 4.16666 1.33333 4.16666H14.6667C14.9428 4.16666 15.1667 4.39051 15.1667 4.66666C15.1667 4.9428 14.9428 5.16666 14.6667 5.16666H1.33333C1.05719 5.16666 0.833328 4.9428 0.833328 4.66666Z" fill="currentColor"></path><path d="M0.833328 11.3333C0.833328 11.0572 1.05719 10.8333 1.33333 10.8333H14.6667C14.9428 10.8333 15.1667 11.0572 15.1667 11.3333C15.1667 11.6095 14.9428 11.8333 14.6667 11.8333H1.33333C1.05719 11.8333 0.833328 11.6095 0.833328 11.3333Z" fill="currentColor"></path></svg>', 1), ns = [
2587
+ ts
2588
+ ], os = {
2550
2589
  __name: "SwapBtn",
2551
2590
  props: {
2552
2591
  isBidirect: {
@@ -2561,10 +2600,10 @@ const xe = He("loader", () => {
2561
2600
  key: 1,
2562
2601
  onClick: r[0] || (r[0] = (a) => l("swap")),
2563
2602
  disabled: o.value
2564
- }, es, 8, Xl)) : (h(), g("button", {
2603
+ }, ns, 8, es)) : (h(), g("button", {
2565
2604
  key: 0,
2566
2605
  disabled: o.value
2567
- }, Ql, 8, Jl));
2606
+ }, Kl, 8, Ql));
2568
2607
  }
2569
2608
  }, Oe = He("language", () => {
2570
2609
  const e = O("auto"), n = O("vi"), t = O({
@@ -2583,16 +2622,16 @@ const xe = He("loader", () => {
2583
2622
  return t.value.src[i] || t.value.target[i];
2584
2623
  }
2585
2624
  return { languages: t, src: e, target: n, srcLabel: o, targetLabel: l, init: s, swap: r, getLabel: a };
2586
- }), ns = {
2625
+ }), ls = {
2587
2626
  key: 0,
2588
2627
  class: "flex flex-col"
2589
- }, os = { class: "flex" }, ls = { class: "grow flex flex-col" }, ss = {
2628
+ }, ss = { class: "flex" }, as = { class: "grow flex flex-col" }, rs = {
2590
2629
  key: 0,
2591
2630
  class: "flex mt-1 space-x-1"
2592
- }, as = ["onClick"], rs = { class: "grow flex flex-col" }, is = {
2631
+ }, is = ["onClick"], us = { class: "grow flex flex-col" }, cs = {
2593
2632
  key: 0,
2594
2633
  class: "flex mt-1 space-x-1 justify-end"
2595
- }, us = ["onClick"], cs = { class: "flex" }, ds = { class: "grow flex flex-col" }, fs = { class: "grow flex flex-col" }, Jt = 3, vs = {
2634
+ }, ds = ["onClick"], fs = { class: "flex" }, vs = { class: "grow flex flex-col" }, ps = { class: "grow flex flex-col" }, Jt = 3, hs = {
2596
2635
  __name: "Selects",
2597
2636
  setup(e) {
2598
2637
  const n = Oe(), t = O([]), o = O([]);
@@ -2612,29 +2651,29 @@ const xe = He("loader", () => {
2612
2651
  (s) => {
2613
2652
  s && (o.value.includes(s) || (o.value.unshift(s), o.value = o.value.slice(0, Jt), Ze.setLocalStorage("recentTarget", o.value)));
2614
2653
  }
2615
- ), (s, r) => M(n).languages ? (h(), g("div", ns, [
2616
- f("div", os, [
2617
- f("div", ls, [
2618
- t.value.length > 0 ? (h(), g("div", ss, [
2654
+ ), (s, r) => M(n).languages ? (h(), g("div", ls, [
2655
+ f("div", ss, [
2656
+ f("div", as, [
2657
+ t.value.length > 0 ? (h(), g("div", rs, [
2619
2658
  (h(!0), g(z, null, Y(t.value, (a) => (h(), g("button", {
2620
2659
  key: a,
2621
2660
  class: "px-1 bg-base-100 border border-primary text-primary text-xs rounded hover:bg-primary hover:text-primary-content",
2622
2661
  onClick: (i) => M(n).src = a
2623
- }, J(M(n).languages.src[a]), 9, as))), 128))
2624
- ])) : P("", !0)
2662
+ }, G(M(n).languages.src[a]), 9, is))), 128))
2663
+ ])) : R("", !0)
2625
2664
  ]),
2626
- f("div", rs, [
2627
- o.value.length > 0 ? (h(), g("div", is, [
2665
+ f("div", us, [
2666
+ o.value.length > 0 ? (h(), g("div", cs, [
2628
2667
  (h(!0), g(z, null, Y(o.value, (a) => (h(), g("button", {
2629
2668
  key: a,
2630
2669
  class: "px-1 bg-base-100 border border-primary text-primary text-xs rounded hover:bg-primary hover:text-primary-content",
2631
2670
  onClick: (i) => M(n).target = a
2632
- }, J(M(n).languages.target[a]), 9, us))), 128))
2633
- ])) : P("", !0)
2671
+ }, G(M(n).languages.target[a]), 9, ds))), 128))
2672
+ ])) : R("", !0)
2634
2673
  ])
2635
2674
  ]),
2636
- f("div", cs, [
2637
- f("div", ds, [
2675
+ f("div", fs, [
2676
+ f("div", vs, [
2638
2677
  B(Gt, {
2639
2678
  modelValue: M(n).src,
2640
2679
  "onUpdate:modelValue": r[0] || (r[0] = (a) => M(n).src = a),
@@ -2642,12 +2681,12 @@ const xe = He("loader", () => {
2642
2681
  class: "grow"
2643
2682
  }, null, 8, ["modelValue", "languages"])
2644
2683
  ]),
2645
- B(ts, {
2684
+ B(os, {
2646
2685
  isBidirect: M(n).src !== "auto",
2647
2686
  class: "grow-0 mx-3 mt-4 self-start",
2648
2687
  onSwap: l
2649
2688
  }, null, 8, ["isBidirect"]),
2650
- f("div", fs, [
2689
+ f("div", ps, [
2651
2690
  B(Gt, {
2652
2691
  modelValue: M(n).target,
2653
2692
  "onUpdate:modelValue": r[1] || (r[1] = (a) => M(n).target = a),
@@ -2656,7 +2695,7 @@ const xe = He("loader", () => {
2656
2695
  }, null, 8, ["modelValue", "languages"])
2657
2696
  ])
2658
2697
  ])
2659
- ])) : P("", !0);
2698
+ ])) : R("", !0);
2660
2699
  }
2661
2700
  }, Ie = {
2662
2701
  INPUT_MAX_LENGTH: 5e3,
@@ -2668,11 +2707,11 @@ const xe = He("loader", () => {
2668
2707
  for (const [o, l] of n)
2669
2708
  t[o] = l;
2670
2709
  return t;
2671
- }, ps = {}, hs = { class: "mr-2 loading loading-dots loading-xs" };
2672
- function ms(e, n) {
2673
- return h(), g("span", hs);
2710
+ }, ms = {}, gs = { class: "mr-2 loading loading-dots loading-xs" };
2711
+ function bs(e, n) {
2712
+ return h(), g("span", gs);
2674
2713
  }
2675
- const Mt = /* @__PURE__ */ he(ps, [["render", ms]]), bt = He("tts", () => {
2714
+ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2676
2715
  const e = O({
2677
2716
  src: null,
2678
2717
  target: null
@@ -2696,12 +2735,12 @@ const Mt = /* @__PURE__ */ he(ps, [["render", ms]]), bt = He("tts", () => {
2696
2735
  get: t,
2697
2736
  reset: o
2698
2737
  };
2699
- }), gs = ["disabled"], bs = /* @__PURE__ */ f("path", {
2738
+ }), Cs = ["disabled"], xs = /* @__PURE__ */ f("path", {
2700
2739
  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",
2701
2740
  fill: "currentColor"
2702
- }, null, -1), Cs = [
2703
- bs
2704
- ], xs = /* @__PURE__ */ f("svg", {
2741
+ }, null, -1), ys = [
2742
+ xs
2743
+ ], ws = /* @__PURE__ */ f("svg", {
2705
2744
  class: "w-4 h-4 text-primary",
2706
2745
  fill: "none",
2707
2746
  xmlns: "http://www.w3.org/2000/svg",
@@ -2713,9 +2752,9 @@ const Mt = /* @__PURE__ */ he(ps, [["render", ms]]), bt = He("tts", () => {
2713
2752
  "clip-rule": "evenodd",
2714
2753
  fill: "currentColor"
2715
2754
  })
2716
- ], -1), ys = [
2717
- xs
2718
- ], ws = {
2755
+ ], -1), _s = [
2756
+ ws
2757
+ ], Ts = {
2719
2758
  __name: "SpeakBtn",
2720
2759
  props: {
2721
2760
  type: {
@@ -2761,9 +2800,9 @@ const Mt = /* @__PURE__ */ he(ps, [["render", ms]]), bt = He("tts", () => {
2761
2800
  key: 1,
2762
2801
  class: "btn btn-xs btn-circle",
2763
2802
  onClick: ft(d, ["prevent"])
2764
- }, ys)) : (h(), g("button", {
2803
+ }, _s)) : (h(), g("button", {
2765
2804
  key: 0,
2766
- class: R(["btn btn-xs btn-circle", [
2805
+ class: P(["btn btn-xs btn-circle", [
2767
2806
  { "btn-ghost": !e.disabled },
2768
2807
  { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
2769
2808
  ]]),
@@ -2771,75 +2810,75 @@ const Mt = /* @__PURE__ */ he(ps, [["render", ms]]), bt = He("tts", () => {
2771
2810
  onClick: ft(u, ["prevent"])
2772
2811
  }, [
2773
2812
  (h(), g("svg", {
2774
- class: R(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2813
+ class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2775
2814
  viewBox: "0 0 16 16",
2776
2815
  fill: "none",
2777
2816
  xmlns: "http://www.w3.org/2000/svg"
2778
- }, Cs, 2))
2779
- ], 10, gs));
2817
+ }, ys, 2))
2818
+ ], 10, Cs));
2780
2819
  }
2781
- }, _s = {
2820
+ }, Ss = {
2782
2821
  class: "tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2",
2783
2822
  "data-tip": "Clear"
2784
- }, Ts = ["disabled"], Es = /* @__PURE__ */ f("path", {
2823
+ }, Es = ["disabled"], $s = /* @__PURE__ */ f("path", {
2785
2824
  "fill-rule": "evenodd",
2786
2825
  "clip-rule": "evenodd",
2787
2826
  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",
2788
2827
  fill: "currentColor"
2789
- }, null, -1), Ss = /* @__PURE__ */ f("path", {
2828
+ }, null, -1), Os = /* @__PURE__ */ f("path", {
2790
2829
  "fill-rule": "evenodd",
2791
2830
  "clip-rule": "evenodd",
2792
2831
  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",
2793
2832
  fill: "currentColor"
2794
- }, null, -1), $s = [
2795
- Es,
2796
- Ss
2833
+ }, null, -1), Is = [
2834
+ $s,
2835
+ Os
2797
2836
  ], Pn = {
2798
2837
  __name: "ClearBtn",
2799
2838
  props: {
2800
2839
  disabled: Boolean
2801
2840
  },
2802
2841
  setup(e) {
2803
- return (n, t) => (h(), g("div", _s, [
2842
+ return (n, t) => (h(), g("div", Ss, [
2804
2843
  f("button", {
2805
- class: R(["btn btn-xs btn-circle", [
2844
+ class: P(["btn btn-xs btn-circle", [
2806
2845
  { "btn-ghost": !e.disabled },
2807
2846
  { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
2808
2847
  ]]),
2809
2848
  disabled: e.disabled
2810
2849
  }, [
2811
2850
  (h(), g("svg", {
2812
- class: R(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2851
+ class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2813
2852
  viewBox: "0 0 16 16",
2814
2853
  fill: "none",
2815
2854
  xmlns: "http://www.w3.org/2000/svg"
2816
- }, $s, 2))
2817
- ], 10, Ts)
2855
+ }, Is, 2))
2856
+ ], 10, Es)
2818
2857
  ]));
2819
2858
  }
2820
- }, Os = {
2859
+ }, Ls = {
2821
2860
  class: "tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2",
2822
2861
  "data-tip": "Favorite"
2823
- }, Is = ["disabled"], Ls = /* @__PURE__ */ f("path", {
2862
+ }, ks = ["disabled"], Ms = /* @__PURE__ */ f("path", {
2824
2863
  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",
2825
2864
  fill: "currentColor"
2826
- }, null, -1), ks = [
2827
- Ls
2828
- ], Ms = /* @__PURE__ */ f("path", {
2829
- 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",
2830
- fill: "currentColor"
2831
2865
  }, null, -1), As = [
2832
2866
  Ms
2833
- ], Vs = {
2867
+ ], Vs = /* @__PURE__ */ f("path", {
2868
+ 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",
2869
+ fill: "currentColor"
2870
+ }, null, -1), Ds = [
2871
+ Vs
2872
+ ], Rs = {
2834
2873
  __name: "FavoriteBtn",
2835
2874
  props: {
2836
2875
  disabled: Boolean,
2837
2876
  isFilled: Boolean
2838
2877
  },
2839
2878
  setup(e) {
2840
- return (n, t) => (h(), g("div", Os, [
2879
+ return (n, t) => (h(), g("div", Ls, [
2841
2880
  f("button", {
2842
- class: R(["btn btn-xs btn-circle", [
2881
+ class: P(["btn btn-xs btn-circle", [
2843
2882
  { "btn-ghost": !e.disabled },
2844
2883
  { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
2845
2884
  ]]),
@@ -2847,48 +2886,48 @@ const Mt = /* @__PURE__ */ he(ps, [["render", ms]]), bt = He("tts", () => {
2847
2886
  }, [
2848
2887
  e.isFilled ? (h(), g("svg", {
2849
2888
  key: 1,
2850
- class: R(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2889
+ class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2851
2890
  viewBox: "0 0 16 16",
2852
2891
  fill: "none",
2853
2892
  xmlns: "http://www.w3.org/2000/svg"
2854
- }, As, 2)) : (h(), g("svg", {
2893
+ }, Ds, 2)) : (h(), g("svg", {
2855
2894
  key: 0,
2856
- class: R(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2895
+ class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2857
2896
  viewBox: "0 0 16 16",
2858
2897
  fill: "none",
2859
2898
  xmlns: "http://www.w3.org/2000/svg"
2860
- }, ks, 2))
2861
- ], 10, Is)
2899
+ }, As, 2))
2900
+ ], 10, ks)
2862
2901
  ]));
2863
2902
  }
2864
- }, Ds = {
2903
+ }, Ps = {
2865
2904
  class: "tooltip tooltip-top tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!text-xs before:!py-1 before:!px-2",
2866
2905
  "data-tip": "AI Translate"
2867
- }, Rs = ["disabled"], Ps = /* @__PURE__ */ f("path", {
2906
+ }, Ns = ["disabled"], Bs = /* @__PURE__ */ f("path", {
2868
2907
  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",
2869
2908
  fill: "currentColor"
2870
- }, null, -1), Ns = /* @__PURE__ */ f("path", {
2909
+ }, null, -1), Fs = /* @__PURE__ */ f("path", {
2871
2910
  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",
2872
2911
  fill: "currentColor"
2873
- }, null, -1), Bs = /* @__PURE__ */ f("path", {
2912
+ }, null, -1), js = /* @__PURE__ */ f("path", {
2874
2913
  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",
2875
2914
  fill: "currentColor"
2876
- }, null, -1), Fs = [
2877
- Ps,
2878
- Ns,
2879
- Bs
2880
- ], js = /* @__PURE__ */ Be('<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><path d="M3.5 1L4.79904 2.5H2.20096L3.5 1Z" fill="currentColor"></path><path d="M6 3.5L4.5 4.79904L4.5 2.20096L6 3.5Z" fill="currentColor"></path><path d="M10.3697 6.67832L8.22108 7.01422L9.5776 4.65296L10.3697 6.67832Z" fill="currentColor"></path><path d="M8.27756 5.34149L10.768 6.00067L9.11199 7.77878L8.27756 5.34149Z" fill="currentColor"></path><path d="M1 3.5L2.5 2.20096L2.5 4.79904L1 3.5Z" fill="currentColor"></path><path d="M3.5 6L2.20096 4.5L4.79904 4.5L3.5 6Z" fill="currentColor"></path><circle cx="9" cy="6" r="1" fill="currentColor"></circle><path d="M5.49718 9.92495L4.03391 10.4693L3.96891 9.60573L5.49718 9.92495Z" fill="currentColor"></path><path d="M3.54089 9.71696L5.10212 9.72621L4.857 10.5568L3.54089 9.71696Z" fill="currentColor"></path><path d="M3.50071 9.96247L5.0159 9.58606L4.9834 10.4515L3.50071 9.96247Z" fill="currentColor"></path>', 15), Hs = [
2915
+ }, null, -1), Hs = [
2916
+ Bs,
2917
+ Fs,
2881
2918
  js
2882
- ], zs = {
2919
+ ], zs = /* @__PURE__ */ Be('<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><path d="M3.5 1L4.79904 2.5H2.20096L3.5 1Z" fill="currentColor"></path><path d="M6 3.5L4.5 4.79904L4.5 2.20096L6 3.5Z" fill="currentColor"></path><path d="M10.3697 6.67832L8.22108 7.01422L9.5776 4.65296L10.3697 6.67832Z" fill="currentColor"></path><path d="M8.27756 5.34149L10.768 6.00067L9.11199 7.77878L8.27756 5.34149Z" fill="currentColor"></path><path d="M1 3.5L2.5 2.20096L2.5 4.79904L1 3.5Z" fill="currentColor"></path><path d="M3.5 6L2.20096 4.5L4.79904 4.5L3.5 6Z" fill="currentColor"></path><circle cx="9" cy="6" r="1" fill="currentColor"></circle><path d="M5.49718 9.92495L4.03391 10.4693L3.96891 9.60573L5.49718 9.92495Z" fill="currentColor"></path><path d="M3.54089 9.71696L5.10212 9.72621L4.857 10.5568L3.54089 9.71696Z" fill="currentColor"></path><path d="M3.50071 9.96247L5.0159 9.58606L4.9834 10.4515L3.50071 9.96247Z" fill="currentColor"></path>', 15), Zs = [
2920
+ zs
2921
+ ], Us = {
2883
2922
  __name: "AIBtn",
2884
2923
  props: {
2885
2924
  disabled: Boolean,
2886
2925
  isFilled: Boolean
2887
2926
  },
2888
2927
  setup(e) {
2889
- return (n, t) => (h(), g("div", Ds, [
2928
+ return (n, t) => (h(), g("div", Ps, [
2890
2929
  f("button", {
2891
- class: R(["btn btn-xs btn-circle", [
2930
+ class: P(["btn btn-xs btn-circle", [
2892
2931
  { "btn-ghost": !e.disabled },
2893
2932
  { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
2894
2933
  ]]),
@@ -2896,25 +2935,25 @@ const Mt = /* @__PURE__ */ he(ps, [["render", ms]]), bt = He("tts", () => {
2896
2935
  }, [
2897
2936
  e.isFilled ? (h(), g("svg", {
2898
2937
  key: 1,
2899
- class: R(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2938
+ class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2900
2939
  viewBox: "0 0 12 12",
2901
2940
  fill: "none",
2902
2941
  xmlns: "http://www.w3.org/2000/svg"
2903
- }, Hs, 2)) : (h(), g("svg", {
2942
+ }, Zs, 2)) : (h(), g("svg", {
2904
2943
  key: 0,
2905
- class: R(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2944
+ class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2906
2945
  viewBox: "0 0 12 12",
2907
2946
  fill: "none",
2908
2947
  xmlns: "http://www.w3.org/2000/svg"
2909
- }, Fs, 2))
2910
- ], 10, Rs)
2948
+ }, Hs, 2))
2949
+ ], 10, Ns)
2911
2950
  ]));
2912
2951
  }
2913
- }, Zs = ["data-tip"], Us = ["disabled"], Ws = /* @__PURE__ */ f("path", {
2952
+ }, Ws = ["data-tip"], qs = ["disabled"], Gs = /* @__PURE__ */ f("path", {
2914
2953
  d: "M13.9023 3.26667L10.8093 0.1C10.7767 0.0666667 10.7116 0 10.5814 0H3.74419C3.12558 0 2.60465 0.533333 2.60465 1.16667V2.66667H1.13953C0.52093 2.66667 0 3.2 0 3.83333V14.8667C0 15.4667 0.52093 16 1.13953 16H10.2558C10.8744 16 11.3953 15.4667 11.3953 14.8333V13.3333H12.8605C13.4791 13.3333 14 12.8 14 12.1667V3.5C14 3.4 13.9674 3.3 13.9023 3.26667ZM12.893 3.16667H11.3954C11.1349 3.16667 10.907 2.93333 10.907 2.66667V1.13333L12.893 3.16667ZM10.2558 15.3333H1.13953C0.87907 15.3333 0.651163 15.1 0.651163 14.8333V3.83333C0.651163 3.53333 0.87907 3.33333 1.13953 3.33333H7.68372V5.33333C7.68372 5.96667 8.20465 6.5 8.82326 6.5H10.7767V14.8667C10.7442 15.1 10.5488 15.3333 10.2558 15.3333ZM9.31163 4.8L10.2884 5.8H8.7907C8.53023 5.8 8.30233 5.56667 8.30233 5.3V3.76667L9.31163 4.8ZM12.8605 12.6667H11.3953V6.13333C11.3953 6.06667 11.3628 5.96667 11.2977 5.9L8.20465 2.73333C8.17209 2.7 8.07442 2.66667 8.0093 2.66667H3.25581V1.16667C3.25581 0.9 3.45116 0.666666 3.74419 0.666666H10.2558V2.66667C10.2558 3.3 10.7767 3.83333 11.3954 3.83333H13.3488V12.2C13.3488 12.4667 13.1209 12.6667 12.8605 12.6667Z",
2915
2954
  fill: "currentColor"
2916
- }, null, -1), qs = [
2917
- Ws
2955
+ }, null, -1), Js = [
2956
+ Gs
2918
2957
  ], Nn = {
2919
2958
  __name: "CopyBtn",
2920
2959
  props: {
@@ -2931,7 +2970,7 @@ const Mt = /* @__PURE__ */ he(ps, [["render", ms]]), bt = He("tts", () => {
2931
2970
  "data-tip": n.value
2932
2971
  }, [
2933
2972
  f("button", {
2934
- class: R(["btn btn-xs btn-circle", [
2973
+ class: P(["btn btn-xs btn-circle", [
2935
2974
  { "btn-ghost": !e.disabled },
2936
2975
  { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
2937
2976
  ]]),
@@ -2939,18 +2978,18 @@ const Mt = /* @__PURE__ */ he(ps, [["render", ms]]), bt = He("tts", () => {
2939
2978
  onClick: t
2940
2979
  }, [
2941
2980
  (h(), g("svg", {
2942
- class: R(["w-3 h-3 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2981
+ class: P(["w-3 h-3 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2943
2982
  viewBox: "0 0 14 16",
2944
2983
  fill: "none",
2945
2984
  xmlns: "http://www.w3.org/2000/svg"
2946
- }, qs, 2))
2947
- ], 10, Us)
2948
- ], 8, Zs));
2985
+ }, Js, 2))
2986
+ ], 10, qs)
2987
+ ], 8, Ws));
2949
2988
  }
2950
- }, Gs = { class: "flex flex-row px-1 pr-10 pt-1 items-center bg-transparent relative" }, Js = { class: "ml-1 text-sm text-base-content/70" }, Ys = {
2989
+ }, Ys = { class: "flex flex-row px-1 pr-10 pt-1 items-center bg-transparent relative" }, Qs = { class: "ml-1 text-sm text-base-content/70" }, Xs = {
2951
2990
  key: 0,
2952
2991
  class: "italic"
2953
- }, Qs = { class: "absolute right-1 top-1 flex flex-col items-center gap-0" }, Xs = {
2992
+ }, Ks = { class: "absolute right-1 top-1 flex flex-col items-center gap-0" }, ea = {
2954
2993
  __name: "InputBtnGroup",
2955
2994
  props: {
2956
2995
  loading: {
@@ -3010,47 +3049,47 @@ const Mt = /* @__PURE__ */ he(ps, [["render", ms]]), bt = He("tts", () => {
3010
3049
  emits: ["clear", "favorite", "loadTTS", "aiTranslate", "copy"],
3011
3050
  setup(e, { emit: n }) {
3012
3051
  const t = n;
3013
- return (o, l) => (h(), g("div", Gs, [
3014
- e.src && e.isTTS ? (h(), W(ws, {
3052
+ return (o, l) => (h(), g("div", Ys, [
3053
+ e.src && e.isTTS ? (h(), W(Ts, {
3015
3054
  key: 0,
3016
3055
  type: e.type,
3017
3056
  onLoadTTS: l[0] || (l[0] = (s) => t("loadTTS"))
3018
- }, null, 8, ["type"])) : P("", !0),
3019
- f("div", Js, [
3020
- Se(J(e.srcLabel) + " ", 1),
3021
- e.phonetic ? (h(), g("span", Ys, "- " + J(e.phonetic), 1)) : P("", !0)
3057
+ }, null, 8, ["type"])) : R("", !0),
3058
+ f("div", Qs, [
3059
+ Ee(G(e.srcLabel) + " ", 1),
3060
+ e.phonetic ? (h(), g("span", Xs, "- " + G(e.phonetic), 1)) : R("", !0)
3022
3061
  ]),
3023
3062
  e.loading ? (h(), W(Mt, {
3024
3063
  key: 1,
3025
3064
  class: "absolute right-6 top-2"
3026
- })) : P("", !0),
3027
- f("div", Qs, [
3065
+ })) : R("", !0),
3066
+ f("div", Ks, [
3028
3067
  e.hasClearBtn ? (h(), W(Pn, {
3029
3068
  key: 0,
3030
3069
  onClick: l[1] || (l[1] = (s) => t("clear")),
3031
3070
  disabled: e.loading
3032
- }, null, 8, ["disabled"])) : P("", !0),
3033
- e.src && e.hasAIBtn ? (h(), W(zs, {
3071
+ }, null, 8, ["disabled"])) : R("", !0),
3072
+ e.src && e.hasAIBtn ? (h(), W(Us, {
3034
3073
  key: 1,
3035
3074
  isFilled: e.isAITranslate,
3036
3075
  onClick: l[2] || (l[2] = (s) => t("aiTranslate")),
3037
3076
  disabled: e.loading
3038
- }, null, 8, ["isFilled", "disabled"])) : P("", !0),
3039
- e.src && e.hasFavoriteBtn ? (h(), W(Vs, {
3077
+ }, null, 8, ["isFilled", "disabled"])) : R("", !0),
3078
+ e.src && e.hasFavoriteBtn ? (h(), W(Rs, {
3040
3079
  key: 2,
3041
3080
  isFilled: e.isFavorite,
3042
3081
  onClick: l[3] || (l[3] = (s) => t("favorite")),
3043
3082
  disabled: e.loading
3044
- }, null, 8, ["isFilled", "disabled"])) : P("", !0),
3083
+ }, null, 8, ["isFilled", "disabled"])) : R("", !0),
3045
3084
  e.src && e.hasCopyBtn ? (h(), W(Nn, {
3046
3085
  key: 3,
3047
3086
  onClick: l[4] || (l[4] = (s) => t("copy")),
3048
3087
  disabled: e.loading
3049
- }, null, 8, ["disabled"])) : P("", !0)
3088
+ }, null, 8, ["disabled"])) : R("", !0)
3050
3089
  ])
3051
3090
  ]));
3052
3091
  }
3053
- }, Bn = /* @__PURE__ */ he(Xs, [["__scopeId", "data-v-faca0157"]]), ve = He("translation", () => {
3092
+ }, Bn = /* @__PURE__ */ he(ea, [["__scopeId", "data-v-faca0157"]]), ve = He("translation", () => {
3054
3093
  const e = O(null), n = O(null), t = O(null), o = O({
3055
3094
  src: null,
3056
3095
  target: null
@@ -3087,17 +3126,17 @@ const Mt = /* @__PURE__ */ he(ps, [["render", ms]]), bt = He("tts", () => {
3087
3126
  reset: C
3088
3127
  };
3089
3128
  });
3090
- function Ks(e) {
3129
+ function ta(e) {
3091
3130
  return cn() ? (Tt(e), !0) : !1;
3092
3131
  }
3093
3132
  function Ke(e) {
3094
3133
  return typeof e == "function" ? e() : M(e);
3095
3134
  }
3096
- const ea = typeof window < "u" && typeof document < "u";
3135
+ const na = typeof window < "u" && typeof document < "u";
3097
3136
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
3098
3137
  const Yt = () => {
3099
3138
  };
3100
- function ta(e, n) {
3139
+ function oa(e, n) {
3101
3140
  function t(...o) {
3102
3141
  return new Promise((l, s) => {
3103
3142
  Promise.resolve(e(() => n.apply(this, o), { fn: n, thisArg: this, args: o })).then(l).catch(s);
@@ -3105,7 +3144,7 @@ function ta(e, n) {
3105
3144
  }
3106
3145
  return t;
3107
3146
  }
3108
- function na(e, n = {}) {
3147
+ function la(e, n = {}) {
3109
3148
  let t, o, l = Yt;
3110
3149
  const s = (a) => {
3111
3150
  clearTimeout(a), l(), l = Yt;
@@ -3121,9 +3160,9 @@ function na(e, n = {}) {
3121
3160
  });
3122
3161
  };
3123
3162
  }
3124
- function oa(e, n = 200, t = {}) {
3125
- return ta(
3126
- na(n, t),
3163
+ function sa(e, n = 200, t = {}) {
3164
+ return oa(
3165
+ la(n, t),
3127
3166
  e
3128
3167
  );
3129
3168
  }
@@ -3132,21 +3171,21 @@ function Qt(e) {
3132
3171
  const t = Ke(e);
3133
3172
  return (n = t == null ? void 0 : t.$el) != null ? n : t;
3134
3173
  }
3135
- const la = ea ? window : void 0;
3136
- function sa() {
3174
+ const aa = na ? window : void 0;
3175
+ function ra() {
3137
3176
  const e = O(!1), n = rn();
3138
3177
  return n && se(() => {
3139
3178
  e.value = !0;
3140
3179
  }, n), e;
3141
3180
  }
3142
- function aa(e) {
3143
- const n = sa();
3181
+ function ia(e) {
3182
+ const n = ra();
3144
3183
  return L(() => (n.value, !!e()));
3145
3184
  }
3146
- function ra(e, n, t = {}) {
3147
- const { window: o = la, ...l } = t;
3185
+ function ua(e, n, t = {}) {
3186
+ const { window: o = aa, ...l } = t;
3148
3187
  let s;
3149
- const r = aa(() => o && "ResizeObserver" in o), a = () => {
3188
+ const r = ia(() => o && "ResizeObserver" in o), a = () => {
3150
3189
  s && (s.disconnect(), s = void 0);
3151
3190
  }, i = L(() => Array.isArray(e) ? e.map((d) => Qt(d)) : [Qt(e)]), u = F(
3152
3191
  i,
@@ -3161,7 +3200,7 @@ function ra(e, n, t = {}) {
3161
3200
  ), c = () => {
3162
3201
  a(), u();
3163
3202
  };
3164
- return Ks(c), {
3203
+ return ta(c), {
3165
3204
  isSupported: r,
3166
3205
  stop: c
3167
3206
  };
@@ -3179,13 +3218,13 @@ function st(e) {
3179
3218
  return F([o, t], () => X(r), { immediate: !0 }), F(s, () => {
3180
3219
  var a;
3181
3220
  return (a = e == null ? void 0 : e.onResize) == null ? void 0 : a.call(e);
3182
- }), ra(t, () => r()), e != null && e.watch && F(e.watch, r, { immediate: !0, deep: !0 }), {
3221
+ }), ua(t, () => r()), e != null && e.watch && F(e.watch, r, { immediate: !0, deep: !0 }), {
3183
3222
  textarea: t,
3184
3223
  input: o,
3185
3224
  triggerResize: r
3186
3225
  };
3187
3226
  }
3188
- const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, ua = {
3227
+ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, da = {
3189
3228
  __name: "Input",
3190
3229
  props: {
3191
3230
  text: {
@@ -3202,7 +3241,7 @@ const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3202
3241
  const t = ve(), o = e, l = O(o.text), s = L(() => t.src), r = L(() => t.srcLabel), a = L(() => {
3203
3242
  var C;
3204
3243
  return (C = t.phonetic) == null ? void 0 : C.src;
3205
- }), { textarea: i } = st({ input: l, styleProp: "minHeight" }), u = n, c = oa(() => {
3244
+ }), { textarea: i } = st({ input: l, styleProp: "minHeight" }), u = n, c = sa(() => {
3206
3245
  u("change", l.value);
3207
3246
  }, Ie.INPUT_DEBOUNCE);
3208
3247
  se(() => {
@@ -3226,7 +3265,7 @@ const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3226
3265
  (C) => {
3227
3266
  l.value !== C && m(), l.value = C;
3228
3267
  }
3229
- ), (C, b) => (h(), g("div", ia, [
3268
+ ), (C, b) => (h(), g("div", ca, [
3230
3269
  B(Bn, {
3231
3270
  src: s.value,
3232
3271
  srcLabel: r.value,
@@ -3256,7 +3295,7 @@ const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3256
3295
  ])
3257
3296
  ]));
3258
3297
  }
3259
- }, ca = /* @__PURE__ */ he(ua, [["__scopeId", "data-v-66ae5655"]]), da = { class: "bg-base-100 relative z-10 rounded-md h-full" }, fa = { class: "bg-transparent" }, va = {
3298
+ }, fa = /* @__PURE__ */ he(da, [["__scopeId", "data-v-66ae5655"]]), va = { class: "bg-base-100 relative z-10 rounded-md h-full" }, pa = { class: "bg-transparent" }, ha = {
3260
3299
  __name: "Result",
3261
3300
  props: {
3262
3301
  isFavoriteFeatureEnabled: Boolean,
@@ -3275,14 +3314,14 @@ const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3275
3314
  return (x = t.phonetic) == null ? void 0 : x.target;
3276
3315
  }), a = xe(), i = L(() => a.isLoading("translation")), { textarea: u, input: c } = st({ input: o, styleProp: "minHeight" }), d = n;
3277
3316
  return (x, m) => (h(), g("div", {
3278
- class: R([
3317
+ class: P([
3279
3318
  "relative p-0.5 bg-[length:300%_300%] bg-[position:0%_50%] border border-base-300 rounded",
3280
3319
  {
3281
3320
  "bg-gradient-to-br from-[#8556f0] via-[#d6b379] via-[#6bedd1] to-[#439beb] animate-moveGradient border border-base-100": e.isAITranslate && !i.value
3282
3321
  }
3283
3322
  ])
3284
3323
  }, [
3285
- f("div", da, [
3324
+ f("div", va, [
3286
3325
  B(Bn, {
3287
3326
  loading: i.value,
3288
3327
  src: l.value,
@@ -3300,7 +3339,7 @@ const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3300
3339
  onAiTranslate: m[2] || (m[2] = (C) => d("aiTranslate")),
3301
3340
  onCopy: m[3] || (m[3] = (C) => d("copy"))
3302
3341
  }, null, 8, ["loading", "src", "srcLabel", "isTTS", "hasFavoriteBtn", "hasAIBtn", "isFavorite", "isAITranslate", "phonetic"]),
3303
- f("div", fa, [
3342
+ f("div", pa, [
3304
3343
  tt(f("textarea", {
3305
3344
  ref_key: "textarea",
3306
3345
  ref: u,
@@ -3316,24 +3355,24 @@ const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3316
3355
  ])
3317
3356
  ], 2));
3318
3357
  }
3319
- }, pa = /* @__PURE__ */ he(va, [["__scopeId", "data-v-88599360"]]), ha = { class: "btn btn-xs btn-circle btn-ghost" }, at = {
3358
+ }, ma = /* @__PURE__ */ he(ha, [["__scopeId", "data-v-88599360"]]), ga = { class: "btn btn-xs btn-circle btn-ghost" }, at = {
3320
3359
  __name: "ToggleBtn",
3321
3360
  props: {
3322
3361
  isExpanded: Boolean
3323
3362
  },
3324
3363
  setup(e) {
3325
3364
  const n = e;
3326
- return (t, o) => (h(), g("button", ha, [
3327
- n.isExpanded ? (h(), W(M(xl), {
3365
+ return (t, o) => (h(), g("button", ga, [
3366
+ n.isExpanded ? (h(), W(M(wl), {
3328
3367
  key: 0,
3329
3368
  class: "w-7 text-base-content/50"
3330
- })) : (h(), W(M(bl), {
3369
+ })) : (h(), W(M(xl), {
3331
3370
  key: 1,
3332
3371
  class: "w-7 text-base-content/50"
3333
3372
  }))
3334
3373
  ]));
3335
3374
  }
3336
- }, ma = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Dictionary", -1), ga = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, ba = { class: "list-none list-inside" }, Ca = ["onClick"], xa = { class: "text-sm font-normal text-base-content/80 leading-4" }, ya = {
3375
+ }, ba = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Dictionary", -1), Ca = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, xa = { class: "list-none list-inside" }, ya = ["onClick"], wa = { class: "text-sm font-normal text-base-content/80 leading-4" }, _a = {
3337
3376
  __name: "Dictionary",
3338
3377
  emits: ["translate"],
3339
3378
  setup(e, { emit: n }) {
@@ -3347,27 +3386,27 @@ const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3347
3386
  class: "flex justify-between items-center",
3348
3387
  onClick: a
3349
3388
  }, [
3350
- ma,
3389
+ ba,
3351
3390
  B(at, { isExpanded: t.value }, null, 8, ["isExpanded"])
3352
3391
  ]),
3353
3392
  f("div", {
3354
- class: R(["overflow-hidden", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3393
+ class: P(["overflow-hidden", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3355
3394
  }, [
3356
3395
  f("ul", null, [
3357
3396
  (h(!0), g(z, null, Y(s.value, (d, x) => (h(), g("li", {
3358
3397
  key: `${d.pos}-${x}`,
3359
3398
  class: "mb-2"
3360
3399
  }, [
3361
- f("h5", ga, J(d.pos), 1),
3362
- f("ul", ba, [
3400
+ f("h5", Ca, G(d.pos), 1),
3401
+ f("ul", xa, [
3363
3402
  (h(!0), g(z, null, Y(d.items, (m, C) => (h(), g("li", {
3364
3403
  key: `${m.word}-${C}`
3365
3404
  }, [
3366
3405
  f("span", {
3367
3406
  class: "m-0.5 font-normal badge badge-ghost bg-primary text-primary-content cursor-pointer border-0 rounded",
3368
3407
  onClick: (b) => i(m.word)
3369
- }, J(m.word), 9, Ca),
3370
- f("small", xa, " - " + J(m.reverse_translation.join(", ")), 1)
3408
+ }, G(m.word), 9, ya),
3409
+ f("small", wa, " - " + G(m.reverse_translation.join(", ")), 1)
3371
3410
  ]))), 128))
3372
3411
  ])
3373
3412
  ]))), 128))
@@ -3375,10 +3414,10 @@ const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3375
3414
  ], 2)
3376
3415
  ], 64));
3377
3416
  }
3378
- }, wa = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Definitions", -1), _a = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, Ta = { class: "text-sm text-base-content list-disc list-outside ml-5" }, Ea = /* @__PURE__ */ f("br", null, null, -1), Sa = {
3417
+ }, Ta = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Definitions", -1), Sa = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, Ea = { class: "text-sm text-base-content list-disc list-outside ml-5" }, $a = /* @__PURE__ */ f("br", null, null, -1), Oa = {
3379
3418
  key: 0,
3380
3419
  class: "italic text-base-content/70"
3381
- }, $a = {
3420
+ }, Ia = {
3382
3421
  __name: "Definition",
3383
3422
  setup(e) {
3384
3423
  const n = O(!0), t = ve(), o = L(() => t.definitions), l = () => {
@@ -3389,26 +3428,26 @@ const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3389
3428
  class: "flex justify-between items-center",
3390
3429
  onClick: l
3391
3430
  }, [
3392
- wa,
3431
+ Ta,
3393
3432
  B(at, { isExpanded: n.value }, null, 8, ["isExpanded"])
3394
3433
  ]),
3395
3434
  f("div", {
3396
- class: R(["overflow-hidden", n.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3435
+ class: P(["overflow-hidden", n.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3397
3436
  }, [
3398
3437
  f("ul", null, [
3399
3438
  (h(!0), g(z, null, Y(o.value, (a, i) => (h(), g("li", {
3400
3439
  key: `${a.pos}-${i}`,
3401
3440
  class: "mb-2"
3402
3441
  }, [
3403
- f("h5", _a, J(a.pos), 1),
3404
- f("ul", Ta, [
3442
+ f("h5", Sa, G(a.pos), 1),
3443
+ f("ul", Ea, [
3405
3444
  (h(!0), g(z, null, Y(a.items, (u, c) => (h(), g("li", {
3406
3445
  key: `${u.gloss}-${c}`,
3407
3446
  class: "mb-1"
3408
3447
  }, [
3409
- f("span", null, J(u.gloss), 1),
3410
- Ea,
3411
- u.example ? (h(), g("small", Sa, '"' + J(u.example) + '"', 1)) : P("", !0)
3448
+ f("span", null, G(u.gloss), 1),
3449
+ $a,
3450
+ u.example ? (h(), g("small", Oa, '"' + G(u.example) + '"', 1)) : R("", !0)
3412
3451
  ]))), 128))
3413
3452
  ])
3414
3453
  ]))), 128))
@@ -3416,7 +3455,7 @@ const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3416
3455
  ], 2)
3417
3456
  ], 64));
3418
3457
  }
3419
- }, Oa = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Examples", -1), Ia = { class: "text-base-content text-sm list-disc list-outside ml-5 my-2" }, La = ["innerHTML"], ka = {
3458
+ }, La = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Examples", -1), ka = { class: "text-base-content text-sm list-disc list-outside ml-5 my-2" }, Ma = ["innerHTML"], Aa = {
3420
3459
  __name: "Example",
3421
3460
  setup(e) {
3422
3461
  const n = O(!0), t = ve(), o = L(() => t.examples), l = () => {
@@ -3427,22 +3466,22 @@ const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3427
3466
  class: "flex justify-between items-center",
3428
3467
  onClick: l
3429
3468
  }, [
3430
- Oa,
3469
+ La,
3431
3470
  B(at, { isExpanded: n.value }, null, 8, ["isExpanded"])
3432
3471
  ]),
3433
3472
  f("div", {
3434
- class: R(["overflow-hidden", n.value ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3473
+ class: P(["overflow-hidden", n.value ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3435
3474
  }, [
3436
- f("ul", Ia, [
3475
+ f("ul", ka, [
3437
3476
  (h(!0), g(z, null, Y(o.value, (a, i) => (h(), g("li", {
3438
3477
  key: `${a.definition_id}-${i}`,
3439
3478
  innerHTML: a
3440
- }, null, 8, La))), 128))
3479
+ }, null, 8, Ma))), 128))
3441
3480
  ])
3442
3481
  ], 2)
3443
3482
  ], 64));
3444
3483
  }
3445
- }, Ma = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Synonyms", -1), Aa = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, Va = { class: "list-none list-inside" }, Da = { class: "flex flex-wrap" }, Ra = ["onClick"], Pa = {
3484
+ }, Va = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Synonyms", -1), Da = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, Ra = { class: "list-none list-inside" }, Pa = { class: "flex flex-wrap" }, Na = ["onClick"], Ba = {
3446
3485
  __name: "Synonyms",
3447
3486
  emits: ["translate"],
3448
3487
  setup(e, { emit: n }) {
@@ -3456,29 +3495,29 @@ const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3456
3495
  class: "flex justify-between items-center",
3457
3496
  onClick: r
3458
3497
  }, [
3459
- Ma,
3498
+ Va,
3460
3499
  B(at, { isExpanded: t.value }, null, 8, ["isExpanded"])
3461
3500
  ]),
3462
3501
  f("div", {
3463
- class: R(["overflow-hidden", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3502
+ class: P(["overflow-hidden", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3464
3503
  }, [
3465
3504
  f("ul", null, [
3466
3505
  (h(!0), g(z, null, Y(l.value, (c, d) => (h(), g("li", {
3467
3506
  key: `${c.pos}-${d}`,
3468
3507
  class: "mb-2"
3469
3508
  }, [
3470
- f("h5", Aa, J(c.pos), 1),
3471
- f("ul", Va, [
3509
+ f("h5", Da, G(c.pos), 1),
3510
+ f("ul", Ra, [
3472
3511
  (h(!0), g(z, null, Y(c.items, (x, m) => (h(), g("li", {
3473
3512
  key: `${x.word}-${m}`,
3474
3513
  class: "mb-2"
3475
3514
  }, [
3476
- f("div", Da, [
3515
+ f("div", Pa, [
3477
3516
  (h(!0), g(z, null, Y(x.synonym, (C, b) => (h(), g("span", {
3478
3517
  key: `${C}-${b}`,
3479
3518
  class: "m-0.5 ml-0 font-normal badge badge-ghost bg-primary text-primary-content cursor-pointer border-0 rounded",
3480
3519
  onClick: (I) => a(C)
3481
- }, J(C), 9, Ra))), 128))
3520
+ }, G(C), 9, Na))), 128))
3482
3521
  ])
3483
3522
  ]))), 128))
3484
3523
  ])
@@ -3487,27 +3526,27 @@ const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3487
3526
  ], 2)
3488
3527
  ], 64));
3489
3528
  }
3490
- }, Na = ["disabled"], Ba = /* @__PURE__ */ f("path", {
3529
+ }, Fa = ["disabled"], ja = /* @__PURE__ */ f("path", {
3491
3530
  stroke: "currentColor",
3492
3531
  "stroke-linecap": "round",
3493
3532
  "stroke-linejoin": "round",
3494
3533
  "stroke-width": "2",
3495
3534
  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"
3496
- }, null, -1), Fa = [
3497
- Ba
3498
- ], ja = /* @__PURE__ */ f("path", {
3535
+ }, null, -1), Ha = [
3536
+ ja
3537
+ ], za = /* @__PURE__ */ f("path", {
3499
3538
  fill: "currentColor",
3500
3539
  d: "M12 7a5 5 0 0 0-2 9.584V19h4v-2.416A5.001 5.001 0 0 0 12 7z"
3501
- }, null, -1), Ha = /* @__PURE__ */ f("path", {
3540
+ }, null, -1), Za = /* @__PURE__ */ f("path", {
3502
3541
  stroke: "currentColor",
3503
3542
  "stroke-linecap": "round",
3504
3543
  "stroke-linejoin": "round",
3505
3544
  "stroke-width": "2",
3506
3545
  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"
3507
- }, null, -1), za = [
3508
- ja,
3509
- Ha
3510
- ], Za = {
3546
+ }, null, -1), Ua = [
3547
+ za,
3548
+ Za
3549
+ ], Wa = {
3511
3550
  __name: "ChevronAIBtn",
3512
3551
  props: {
3513
3552
  disabled: Boolean,
@@ -3515,7 +3554,7 @@ const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3515
3554
  },
3516
3555
  setup(e) {
3517
3556
  return (n, t) => (h(), g("button", {
3518
- class: R(["btn btn-xs btn-circle", [
3557
+ class: P(["btn btn-xs btn-circle", [
3519
3558
  { "btn-ghost": !e.disabled },
3520
3559
  { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
3521
3560
  ]]),
@@ -3523,26 +3562,26 @@ const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3523
3562
  }, [
3524
3563
  e.isExpanded ? (h(), g("svg", {
3525
3564
  key: 1,
3526
- class: R(["w-6 h-6 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
3565
+ class: P(["w-6 h-6 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
3527
3566
  viewBox: "0 0 24 24",
3528
3567
  xmlns: "http://www.w3.org/2000/svg",
3529
3568
  fill: "none"
3530
- }, za, 2)) : (h(), g("svg", {
3569
+ }, Ua, 2)) : (h(), g("svg", {
3531
3570
  key: 0,
3532
- class: R(["w-6 h-6 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
3571
+ class: P(["w-6 h-6 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
3533
3572
  viewBox: "0 0 24 24",
3534
3573
  xmlns: "http://www.w3.org/2000/svg",
3535
3574
  fill: "none"
3536
- }, Fa, 2))
3537
- ], 10, Na));
3575
+ }, Ha, 2))
3576
+ ], 10, Fa));
3538
3577
  }
3539
- }, Ua = { class: "p-2 gap-0 relative z-10" }, Wa = { class: "flex justify-between items-center" }, qa = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "AI Summary", -1), Ga = { class: "flex items-center" }, Ja = {
3578
+ }, qa = { class: "p-2 gap-0 relative z-10" }, Ga = { class: "flex justify-between items-center" }, Ja = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "AI Summary", -1), Ya = { class: "flex items-center" }, Qa = {
3540
3579
  class: "tooltip tooltip-bottom tooltip-small before:!bg-base-100 before:!border before:!border-solid before:!border-base-300 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded before:!text-base-content/70 before:!top-[90%] before:!text-xs before:!py-1 before:!px-2",
3541
3580
  "data-tip": "AI Summarize"
3542
- }, Ya = {
3581
+ }, Xa = {
3543
3582
  key: 0,
3544
3583
  class: "text-base-content list-none list-outside"
3545
- }, Qa = ["innerHTML"], Xa = {
3584
+ }, Ka = ["innerHTML"], er = {
3546
3585
  __name: "AIExplanation",
3547
3586
  props: {
3548
3587
  isAIExplain: {
@@ -3563,13 +3602,13 @@ const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3563
3602
  }
3564
3603
  return (r, a) => {
3565
3604
  var i, u;
3566
- return h(), g("div", Ua, [
3567
- f("div", Wa, [
3568
- qa,
3569
- f("div", Ga, [
3570
- o.value ? (h(), W(Mt, { key: 0 })) : P("", !0),
3571
- f("div", Ja, [
3572
- B(Za, {
3605
+ return h(), g("div", qa, [
3606
+ f("div", Ga, [
3607
+ Ja,
3608
+ f("div", Ya, [
3609
+ o.value ? (h(), W(Mt, { key: 0 })) : R("", !0),
3610
+ f("div", Qa, [
3611
+ B(Wa, {
3573
3612
  isExpanded: e.isAIExplain,
3574
3613
  disabled: o.value,
3575
3614
  onClick: s
@@ -3578,54 +3617,54 @@ const ia = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3578
3617
  ])
3579
3618
  ]),
3580
3619
  f("div", {
3581
- class: R(["overflow-hidden", e.isAIExplain ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3620
+ class: P(["overflow-hidden", e.isAIExplain ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3582
3621
  }, [
3583
- (i = e.explanation) != null && i.result ? (h(), g("ul", Ya, [
3622
+ (i = e.explanation) != null && i.result ? (h(), g("ul", Xa, [
3584
3623
  (h(!0), g(z, null, Y(((u = e.explanation) == null ? void 0 : u.result.split(`
3585
3624
  `)) || [], (c, d) => (h(), g("li", {
3586
3625
  key: `${c}-${d}`,
3587
3626
  innerHTML: c
3588
- }, null, 8, Qa))), 128))
3589
- ])) : P("", !0)
3627
+ }, null, 8, Ka))), 128))
3628
+ ])) : R("", !0)
3590
3629
  ], 2)
3591
3630
  ]);
3592
3631
  };
3593
3632
  }
3594
3633
  };
3595
- function Ka() {
3634
+ function tr() {
3596
3635
  document.documentElement.setAttribute("dir", "rtl");
3597
3636
  }
3598
- function er() {
3637
+ function nr() {
3599
3638
  document.documentElement.removeAttribute("dir");
3600
3639
  }
3601
3640
  const Xt = {
3602
- supportRTL: Ka,
3603
- removeRTL: er
3604
- }, tr = ["ar", "fa", "iw", "yi", "ur", "pa"], nr = (e) => (St("data-v-cd193f17"), e = e(), $t(), e), or = { class: "pb-6" }, lr = { class: "flex flex-col lg:flex-row lg:gap-2" }, sr = {
3641
+ supportRTL: tr,
3642
+ removeRTL: nr
3643
+ }, or = ["ar", "fa", "iw", "yi", "ur", "pa"], lr = (e) => (Et("data-v-08f9cb53"), e = e(), $t(), e), sr = { class: "pb-6" }, ar = { class: "flex flex-col lg:flex-row lg:gap-2" }, rr = {
3605
3644
  id: "input",
3606
3645
  class: "w-full lg:w-[calc(50%-1rem)] flex mt-1"
3607
- }, ar = /* @__PURE__ */ nr(() => /* @__PURE__ */ f("div", { class: "w-6 h-4 mx-auto hidden lg:block" }, null, -1)), rr = { class: "w-full lg:w-[calc(50%-1rem)] flex mt-1" }, ir = {
3646
+ }, ir = /* @__PURE__ */ lr(() => /* @__PURE__ */ f("div", { class: "w-6 h-4 mx-auto hidden lg:block" }, null, -1)), ur = { class: "w-full lg:w-[calc(50%-1rem)] flex mt-1" }, cr = {
3608
3647
  key: 0,
3609
3648
  class: "masonry-container mt-1"
3610
- }, ur = {
3649
+ }, dr = {
3611
3650
  key: 0,
3612
3651
  class: "masonry-item border border-base-300 bg-base-100"
3613
- }, cr = {
3652
+ }, fr = {
3614
3653
  key: 1,
3615
3654
  class: "masonry-item border border-base-300 bg-base-100"
3616
- }, dr = { class: "p-2" }, fr = {
3655
+ }, vr = { class: "p-2" }, pr = {
3617
3656
  key: 2,
3618
3657
  class: "masonry-item border border-base-300 bg-base-100"
3619
- }, vr = { class: "p-2" }, pr = {
3658
+ }, hr = { class: "p-2" }, mr = {
3620
3659
  key: 3,
3621
3660
  class: "masonry-item border border-base-300 bg-base-100"
3622
- }, hr = { class: "p-2" }, mr = {
3661
+ }, gr = { class: "p-2" }, br = {
3623
3662
  key: 4,
3624
3663
  class: "masonry-item border border-base-300 bg-base-100"
3625
- }, gr = { class: "p-2" }, br = {
3664
+ }, Cr = { class: "p-2" }, xr = {
3626
3665
  key: 1,
3627
3666
  class: "text-base-content italic font-medium"
3628
- }, Cr = {
3667
+ }, yr = {
3629
3668
  __name: "TranslateTab",
3630
3669
  props: {
3631
3670
  opt: Object,
@@ -3653,7 +3692,7 @@ const Xt = {
3653
3692
  setup(e, { emit: n }) {
3654
3693
  const t = O(""), o = e, l = le("translationStore"), s = le("ttsStore"), r = le("languageStore"), a = le("loaderStore"), i = n, u = () => {
3655
3694
  const $ = o.opt.target;
3656
- tr.includes($) ? Xt.supportRTL() : Xt.removeRTL();
3695
+ or.includes($) ? Xt.supportRTL() : Xt.removeRTL();
3657
3696
  };
3658
3697
  F(
3659
3698
  () => o.translation,
@@ -3720,79 +3759,79 @@ const Xt = {
3720
3759
  $ && $.getBoundingClientRect().top < 0 && $.scrollIntoView({ behavior: "smooth" });
3721
3760
  }
3722
3761
  return ($, w) => {
3723
- var y, _, T, V, E;
3724
- return h(), g("div", or, [
3725
- B(vs),
3726
- f("div", lr, [
3727
- f("div", sr, [
3728
- B(ca, {
3762
+ var y, _, T, V, S;
3763
+ return h(), g("div", sr, [
3764
+ B(hs),
3765
+ f("div", ar, [
3766
+ f("div", rr, [
3767
+ B(fa, {
3729
3768
  text: t.value,
3730
3769
  isTTS: e.isTTS,
3731
3770
  onChange: d,
3732
3771
  onClear: c,
3733
- onLoadTTS: w[0] || (w[0] = (S) => x("src")),
3772
+ onLoadTTS: w[0] || (w[0] = (E) => x("src")),
3734
3773
  class: "flex-grow flex flex-col"
3735
3774
  }, null, 8, ["text", "isTTS"])
3736
3775
  ]),
3737
- ar,
3738
- f("div", rr, [
3739
- B(pa, {
3776
+ ir,
3777
+ f("div", ur, [
3778
+ B(ma, {
3740
3779
  isFavoriteFeatureEnabled: e.isFavoriteFeatureEnabled,
3741
3780
  isAITranslateFeatureEnabled: e.isAITranslateFeatureEnabled,
3742
3781
  isAITranslate: e.isAITranslate,
3743
3782
  isFavorite: e.isFavorite,
3744
3783
  isTTS: e.isTTS,
3745
- onCopy: w[1] || (w[1] = (S) => {
3784
+ onCopy: w[1] || (w[1] = (E) => {
3746
3785
  var D;
3747
3786
  return $.$emit("copy", (D = M(l)) == null ? void 0 : D.result);
3748
3787
  }),
3749
3788
  onAiTranslate: C,
3750
- onFavorite: w[2] || (w[2] = (S) => $.$emit("favorite")),
3751
- onLoadTTS: w[3] || (w[3] = (S) => x("target")),
3789
+ onFavorite: w[2] || (w[2] = (E) => $.$emit("favorite")),
3790
+ onLoadTTS: w[3] || (w[3] = (E) => x("target")),
3752
3791
  class: "flex-grow flex flex-col"
3753
3792
  }, null, 8, ["isFavoriteFeatureEnabled", "isAITranslateFeatureEnabled", "isAITranslate", "isFavorite", "isTTS"])
3754
3793
  ])
3755
3794
  ]),
3756
- e.translation ? (h(), g("div", ir, [
3757
- ((y = M(l).result) == null ? void 0 : y.length) > e.aiExplainMinLength ? (h(), g("div", ur, [
3758
- B(Xa, {
3795
+ e.translation ? (h(), g("div", cr, [
3796
+ ((y = M(l).result) == null ? void 0 : y.length) > e.aiExplainMinLength ? (h(), g("div", dr, [
3797
+ B(er, {
3759
3798
  isAIExplain: e.isAIExplain,
3760
3799
  explanation: e.explanation,
3761
3800
  onAiExplain: b
3762
3801
  }, null, 8, ["isAIExplain", "explanation"])
3763
- ])) : P("", !0),
3764
- (_ = M(l).dictionary) != null && _.length ? (h(), g("div", cr, [
3765
- f("div", dr, [
3766
- B(ya, { onTranslate: m })
3767
- ])
3768
- ])) : P("", !0),
3769
- (T = M(l).definitions) != null && T.length ? (h(), g("div", fr, [
3802
+ ])) : R("", !0),
3803
+ (_ = M(l).dictionary) != null && _.length ? (h(), g("div", fr, [
3770
3804
  f("div", vr, [
3771
- B($a)
3805
+ B(_a, { onTranslate: m })
3772
3806
  ])
3773
- ])) : P("", !0),
3774
- (V = M(l).synonyms) != null && V.length ? (h(), g("div", pr, [
3807
+ ])) : R("", !0),
3808
+ (T = M(l).definitions) != null && T.length ? (h(), g("div", pr, [
3775
3809
  f("div", hr, [
3776
- B(Pa, { onTranslate: m })
3810
+ B(Ia)
3777
3811
  ])
3778
- ])) : P("", !0),
3779
- (E = M(l).examples) != null && E.length ? (h(), g("div", mr, [
3812
+ ])) : R("", !0),
3813
+ (V = M(l).synonyms) != null && V.length ? (h(), g("div", mr, [
3780
3814
  f("div", gr, [
3781
- B(ka)
3815
+ B(Ba, { onTranslate: m })
3782
3816
  ])
3783
- ])) : P("", !0)
3784
- ])) : (h(), g("span", br, "Service unavailable"))
3817
+ ])) : R("", !0),
3818
+ (S = M(l).examples) != null && S.length ? (h(), g("div", br, [
3819
+ f("div", Cr, [
3820
+ B(Aa)
3821
+ ])
3822
+ ])) : R("", !0)
3823
+ ])) : (h(), g("span", xr, "Service unavailable"))
3785
3824
  ]);
3786
3825
  };
3787
3826
  }
3788
- }, xr = /* @__PURE__ */ he(Cr, [["__scopeId", "data-v-cd193f17"]]), yr = ["disabled"], wr = /* @__PURE__ */ f("path", {
3827
+ }, wr = /* @__PURE__ */ he(yr, [["__scopeId", "data-v-08f9cb53"]]), _r = ["disabled"], Tr = /* @__PURE__ */ f("path", {
3789
3828
  "stroke-linecap": "round",
3790
3829
  "stroke-linejoin": "round",
3791
3830
  "stroke-width": "2",
3792
3831
  d: "M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
3793
- }, null, -1), _r = [
3794
- wr
3795
- ], Tr = {
3832
+ }, null, -1), Sr = [
3833
+ Tr
3834
+ ], Er = {
3796
3835
  __name: "RetryBtn",
3797
3836
  props: {
3798
3837
  disabled: Boolean
@@ -3806,19 +3845,19 @@ const Xt = {
3806
3845
  "aria-label": "Retry"
3807
3846
  }, [
3808
3847
  (h(), g("svg", {
3809
- class: R(["h-5 w-5 text-primary", { "opacity-50": e.disabled }]),
3848
+ class: P(["h-5 w-5 text-primary", { "opacity-50": e.disabled }]),
3810
3849
  xmlns: "http://www.w3.org/2000/svg",
3811
3850
  fill: "none",
3812
3851
  viewBox: "0 0 24 24",
3813
3852
  stroke: "currentColor"
3814
- }, _r, 2))
3815
- ], 8, yr));
3853
+ }, Sr, 2))
3854
+ ], 8, _r));
3816
3855
  }
3817
- }, Er = ["data-tip"], Sr = ["disabled"], $r = /* @__PURE__ */ f("path", { d: "M2.293,21.707a1,1,0,0,0,1.414,0l3.2-3.2A9.581,9.581,0,0,0,12,20c4.325,0,8.227-3,9.938-7.654a.993.993,0,0,0,0-.692A12.6,12.6,0,0,0,18.7,6.719l3.012-3.012a1,1,0,1,0-1.414-1.414l-3.2,3.2A9.581,9.581,0,0,0,12,4C7.675,4,3.773,7,2.062,11.654a.993.993,0,0,0,0,.692,12.6,12.6,0,0,0,3.243,4.935L2.293,20.293A1,1,0,0,0,2.293,21.707ZM17.266,8.148A10.454,10.454,0,0,1,19.929,12c-1.478,3.657-4.556,6-7.929,6a7.52,7.52,0,0,1-3.632-.954l1.613-1.613A3.947,3.947,0,0,0,12,16a4,4,0,0,0,4-4,3.947,3.947,0,0,0-.567-2.019Zm-7.191,4.363A1.96,1.96,0,0,1,10,12a2,2,0,0,1,2-2,1.96,1.96,0,0,1,.511.075Zm3.85-1.022A1.96,1.96,0,0,1,14,12a2,2,0,0,1-2,2,1.96,1.96,0,0,1-.511-.075ZM4.071,12C5.549,8.343,8.627,6,12,6a7.52,7.52,0,0,1,3.632.954L14.019,8.567A3.947,3.947,0,0,0,12,8a4,4,0,0,0-4,4,3.947,3.947,0,0,0,.567,2.019L6.734,15.852A10.454,10.454,0,0,1,4.071,12Z" }, null, -1), Or = [
3818
- $r
3819
- ], Ir = /* @__PURE__ */ f("path", { d: "M12,7a4,4,0,1,0,4,4A4,4,0,0,0,12,7Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,13Zm6.5,2v1.5H20a1,1,0,0,1,0,2H18.5V20a1,1,0,0,1-2,0V18.5H15a1,1,0,0,1,0-2h1.5V15a1,1,0,0,1,2,0Zm3.438-4.345a.987.987,0,0,1,0,.69,13.339,13.339,0,0,1-1.08,2.264,1,1,0,1,1-1.715-1.028A11.3,11.3,0,0,0,19.928,11C18.451,7.343,15.373,5,12,5S5.549,7.343,4.072,11a9.315,9.315,0,0,0,6.167,5.787,1,1,0,1,1-.478,1.942,11.393,11.393,0,0,1-7.7-7.383.99.99,0,0,1,0-.691C3.773,6,7.674,3,12,3S20.227,6,21.938,10.655Z" }, null, -1), Lr = [
3856
+ }, $r = ["data-tip"], Or = ["disabled"], Ir = /* @__PURE__ */ f("path", { d: "M2.293,21.707a1,1,0,0,0,1.414,0l3.2-3.2A9.581,9.581,0,0,0,12,20c4.325,0,8.227-3,9.938-7.654a.993.993,0,0,0,0-.692A12.6,12.6,0,0,0,18.7,6.719l3.012-3.012a1,1,0,1,0-1.414-1.414l-3.2,3.2A9.581,9.581,0,0,0,12,4C7.675,4,3.773,7,2.062,11.654a.993.993,0,0,0,0,.692,12.6,12.6,0,0,0,3.243,4.935L2.293,20.293A1,1,0,0,0,2.293,21.707ZM17.266,8.148A10.454,10.454,0,0,1,19.929,12c-1.478,3.657-4.556,6-7.929,6a7.52,7.52,0,0,1-3.632-.954l1.613-1.613A3.947,3.947,0,0,0,12,16a4,4,0,0,0,4-4,3.947,3.947,0,0,0-.567-2.019Zm-7.191,4.363A1.96,1.96,0,0,1,10,12a2,2,0,0,1,2-2,1.96,1.96,0,0,1,.511.075Zm3.85-1.022A1.96,1.96,0,0,1,14,12a2,2,0,0,1-2,2,1.96,1.96,0,0,1-.511-.075ZM4.071,12C5.549,8.343,8.627,6,12,6a7.52,7.52,0,0,1,3.632.954L14.019,8.567A3.947,3.947,0,0,0,12,8a4,4,0,0,0-4,4,3.947,3.947,0,0,0,.567,2.019L6.734,15.852A10.454,10.454,0,0,1,4.071,12Z" }, null, -1), Lr = [
3820
3857
  Ir
3821
- ], kr = {
3858
+ ], kr = /* @__PURE__ */ f("path", { d: "M12,7a4,4,0,1,0,4,4A4,4,0,0,0,12,7Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,13Zm6.5,2v1.5H20a1,1,0,0,1,0,2H18.5V20a1,1,0,0,1-2,0V18.5H15a1,1,0,0,1,0-2h1.5V15a1,1,0,0,1,2,0Zm3.438-4.345a.987.987,0,0,1,0,.69,13.339,13.339,0,0,1-1.08,2.264,1,1,0,1,1-1.715-1.028A11.3,11.3,0,0,0,19.928,11C18.451,7.343,15.373,5,12,5S5.549,7.343,4.072,11a9.315,9.315,0,0,0,6.167,5.787,1,1,0,1,1-.478,1.942,11.393,11.393,0,0,1-7.7-7.383.99.99,0,0,1,0-.691C3.773,6,7.674,3,12,3S20.227,6,21.938,10.655Z" }, null, -1), Mr = [
3859
+ kr
3860
+ ], Ar = {
3822
3861
  __name: "ToggleDiffBtn",
3823
3862
  props: {
3824
3863
  disabled: Boolean,
@@ -3831,7 +3870,7 @@ const Xt = {
3831
3870
  "data-tip": e.isDiffMode ? "Hide Differences" : "Show Differences"
3832
3871
  }, [
3833
3872
  f("button", {
3834
- class: R(["btn btn-xs btn-circle", [
3873
+ class: P(["btn btn-xs btn-circle", [
3835
3874
  { "btn-ghost": !e.disabled },
3836
3875
  { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
3837
3876
  ]]),
@@ -3840,21 +3879,21 @@ const Xt = {
3840
3879
  }, [
3841
3880
  e.isDiffMode ? (h(), g("svg", {
3842
3881
  key: 1,
3843
- class: R(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
3882
+ class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
3844
3883
  fill: "currentColor",
3845
3884
  viewBox: "0 0 24 24",
3846
3885
  xmlns: "http://www.w3.org/2000/svg"
3847
- }, Lr, 2)) : (h(), g("svg", {
3886
+ }, Mr, 2)) : (h(), g("svg", {
3848
3887
  key: 0,
3849
- class: R(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
3888
+ class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
3850
3889
  fill: "currentColor",
3851
3890
  viewBox: "0 0 24 24",
3852
3891
  xmlns: "http://www.w3.org/2000/svg"
3853
- }, Or, 2))
3854
- ], 10, Sr)
3855
- ], 8, Er));
3892
+ }, Lr, 2))
3893
+ ], 10, Or)
3894
+ ], 8, $r));
3856
3895
  }
3857
- }, Mr = { class: "flex flex-row px-2 pr-10 items-center bg-transparent relative" }, Ar = { class: "absolute right-1 top-1 flex flex-col items-center gap-0" }, Fn = {
3896
+ }, Vr = { class: "flex flex-row px-2 pr-10 items-center bg-transparent relative" }, Dr = { class: "absolute right-1 top-1 flex flex-col items-center gap-0" }, Fn = {
3858
3897
  __name: "InputBtnGroup",
3859
3898
  props: {
3860
3899
  loading: {
@@ -3888,31 +3927,31 @@ const Xt = {
3888
3927
  },
3889
3928
  emits: ["copy", "clear", "toggleDiff", "info"],
3890
3929
  setup(e) {
3891
- return (n, t) => (h(), g("div", Mr, [
3930
+ return (n, t) => (h(), g("div", Vr, [
3892
3931
  e.loading ? (h(), W(Mt, {
3893
3932
  key: 0,
3894
3933
  class: "absolute right-6 top-2"
3895
- })) : P("", !0),
3896
- f("div", Ar, [
3897
- e.showDiffToggle ? (h(), W(kr, {
3934
+ })) : R("", !0),
3935
+ f("div", Dr, [
3936
+ e.showDiffToggle ? (h(), W(Ar, {
3898
3937
  key: 0,
3899
3938
  disabled: e.loading,
3900
3939
  isDiffMode: e.isDiffMode,
3901
3940
  onToggle: t[0] || (t[0] = (o) => n.$emit("toggleDiff"))
3902
- }, null, 8, ["disabled", "isDiffMode"])) : P("", !0),
3941
+ }, null, 8, ["disabled", "isDiffMode"])) : R("", !0),
3903
3942
  e.hasClearBtn && e.src ? (h(), W(Pn, {
3904
3943
  key: 1,
3905
3944
  onClick: t[1] || (t[1] = (o) => n.$emit("clear")),
3906
3945
  disabled: e.loading
3907
- }, null, 8, ["disabled"])) : P("", !0),
3946
+ }, null, 8, ["disabled"])) : R("", !0),
3908
3947
  e.hasCopyBtn && e.src ? (h(), W(Nn, {
3909
3948
  key: 2,
3910
3949
  onClick: t[2] || (t[2] = (o) => n.$emit("copy"))
3911
- })) : P("", !0)
3950
+ })) : R("", !0)
3912
3951
  ])
3913
3952
  ]));
3914
3953
  }
3915
- }, Vr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, Dr = ["onKeydown", "placeholder"], Rr = {
3954
+ }, Rr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, Pr = ["onKeydown", "placeholder"], Nr = {
3916
3955
  __name: "Input",
3917
3956
  props: {
3918
3957
  text: {
@@ -3948,7 +3987,7 @@ const Xt = {
3948
3987
  o.value = t.text, X(() => {
3949
3988
  l.value.focus(), i();
3950
3989
  });
3951
- }), (c, d) => (h(), g("div", Vr, [
3990
+ }), (c, d) => (h(), g("div", Rr, [
3952
3991
  B(Fn, {
3953
3992
  src: e.text,
3954
3993
  hasClearBtn: !0,
@@ -3967,7 +4006,7 @@ const Xt = {
3967
4006
  onFocus: i,
3968
4007
  onKeydown: Jn(ft(u, ["ctrl", "prevent"]), ["enter"]),
3969
4008
  placeholder: `Min ${M(Ie).IMPROVE_INPUT_MIN_LENGTH} characters. ${M(vt) ? "" : "Ctrl+Enter to improve"}`
3970
- }, null, 40, Dr), [
4009
+ }, null, 40, Pr), [
3971
4010
  [
3972
4011
  nt,
3973
4012
  o.value,
@@ -3977,7 +4016,7 @@ const Xt = {
3977
4016
  ])
3978
4017
  ]));
3979
4018
  }
3980
- }, Pr = /* @__PURE__ */ he(Rr, [["__scopeId", "data-v-66614870"]]);
4019
+ }, Br = /* @__PURE__ */ he(Nr, [["__scopeId", "data-v-66614870"]]);
3981
4020
  function re() {
3982
4021
  }
3983
4022
  re.prototype = {
@@ -4002,19 +4041,19 @@ re.prototype = {
4002
4041
  var I = -1 / 0, $ = 1 / 0;
4003
4042
  function w() {
4004
4043
  for (var _ = Math.max(I, -c); _ <= Math.min($, c); _ += 2) {
4005
- var T = void 0, V = C[_ - 1], E = C[_ + 1];
4044
+ var T = void 0, V = C[_ - 1], S = C[_ + 1];
4006
4045
  V && (C[_ - 1] = void 0);
4007
- var S = !1;
4008
- if (E) {
4009
- var D = E.oldPos - _;
4010
- S = E && 0 <= D && D < i;
4046
+ var E = !1;
4047
+ if (S) {
4048
+ var D = S.oldPos - _;
4049
+ E = S && 0 <= D && D < i;
4011
4050
  }
4012
4051
  var v = V && V.oldPos + 1 < u;
4013
- if (!S && !v) {
4052
+ if (!E && !v) {
4014
4053
  C[_] = void 0;
4015
4054
  continue;
4016
4055
  }
4017
- if (!v || S && V.oldPos < E.oldPos ? T = r.addToPath(E, !0, !1, 0, l) : T = r.addToPath(V, !1, !0, 1, l), b = r.extractCommon(T, t, n, _, l), T.oldPos + 1 >= u && b + 1 >= i)
4056
+ if (!v || E && V.oldPos < S.oldPos ? T = r.addToPath(S, !0, !1, 0, l) : T = r.addToPath(V, !1, !0, 1, l), b = r.extractCommon(T, t, n, _, l), T.oldPos + 1 >= u && b + 1 >= i)
4018
4057
  return a(Kt(r, T.lastComponent, t, n, r.useLongestToken));
4019
4058
  C[_] = T, T.oldPos + 1 >= u && ($ = Math.min($, _ - 1)), b + 1 >= i && (I = Math.max(I, _ + 1));
4020
4059
  }
@@ -4148,9 +4187,9 @@ function qe(e, n) {
4148
4187
  return xt(e, n, "");
4149
4188
  }
4150
4189
  function nn(e, n) {
4151
- return n.slice(0, Nr(e, n));
4190
+ return n.slice(0, Fr(e, n));
4152
4191
  }
4153
- function Nr(e, n) {
4192
+ function Fr(e, n) {
4154
4193
  var t = 0;
4155
4194
  e.length > n.length && (t = e.length - n.length);
4156
4195
  var o = n.length;
@@ -4170,7 +4209,7 @@ function Nr(e, n) {
4170
4209
  }
4171
4210
  return s;
4172
4211
  }
4173
- var et = "a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}", Br = new RegExp("[".concat(et, "]+|\\s+|[^").concat(et, "]"), "ug"), rt = new re();
4212
+ var et = "a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}", jr = new RegExp("[".concat(et, "]+|\\s+|[^").concat(et, "]"), "ug"), rt = new re();
4174
4213
  rt.equals = function(e, n, t) {
4175
4214
  return t.ignoreCase && (e = e.toLowerCase(), n = n.toLowerCase()), e.trim() === n.trim();
4176
4215
  };
@@ -4183,7 +4222,7 @@ rt.tokenize = function(e) {
4183
4222
  return s.segment;
4184
4223
  });
4185
4224
  } else
4186
- t = e.match(Br) || [];
4225
+ t = e.match(jr) || [];
4187
4226
  var o = [], l = null;
4188
4227
  return t.forEach(function(s) {
4189
4228
  /\s/.test(s) ? l == null ? o.push(s) : o.push(o.pop() + s) : /\s/.test(l) ? o[o.length - 1] == l ? o.push(o.pop() + s) : o.push(l + s) : o.push(s), l = s;
@@ -4233,7 +4272,7 @@ jn.tokenize = function(e) {
4233
4272
  var n = new RegExp("(\\r?\\n)|[".concat(et, "]+|[^\\S\\n\\r]+|[^").concat(et, "]"), "ug");
4234
4273
  return e.match(n) || [];
4235
4274
  };
4236
- function Fr(e, n, t) {
4275
+ function Hr(e, n, t) {
4237
4276
  return jn.diff(e, n, t);
4238
4277
  }
4239
4278
  var At = new re();
@@ -4255,12 +4294,12 @@ At.equals = function(e, n, t) {
4255
4294
  `) && (e = e.slice(0, -1)), n.endsWith(`
4256
4295
  `) && (n = n.slice(0, -1))), re.prototype.equals.call(this, e, n, t);
4257
4296
  };
4258
- var jr = new re();
4259
- jr.tokenize = function(e) {
4297
+ var zr = new re();
4298
+ zr.tokenize = function(e) {
4260
4299
  return e.split(/(\S.+?[.!?])(?=\s+|$)/);
4261
4300
  };
4262
- var Hr = new re();
4263
- Hr.tokenize = function(e) {
4301
+ var Zr = new re();
4302
+ Zr.tokenize = function(e) {
4264
4303
  return e.split(/([{}:;,]|\s+)/);
4265
4304
  };
4266
4305
  function yt(e) {
@@ -4314,7 +4353,7 @@ _t.tokenize = function(e) {
4314
4353
  _t.join = _t.removeEmpty = function(e) {
4315
4354
  return e;
4316
4355
  };
4317
- const zr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, Zr = { class: "flex justify-end items-center mb-1" }, Ur = { class: "bg-transparent" }, Wr = ["innerHTML"], qr = {
4356
+ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, Wr = { class: "flex justify-end items-center mb-1" }, qr = { class: "bg-transparent" }, Gr = ["innerHTML"], Jr = {
4318
4357
  __name: "Result",
4319
4358
  props: {
4320
4359
  text: {
@@ -4337,7 +4376,7 @@ const zr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4337
4376
  !l.value && s.value && u("copy", s.value);
4338
4377
  }
4339
4378
  function d(m, C) {
4340
- return Fr(m, C).map((I) => I.added ? `<span class="bg-addedBg inline leading-snug animate-addedText">${I.value}</span>` : I.removed ? `<span class="bg-removedBg inline leading-snug animate-removedText">${I.value}</span>` : I.value).join("");
4379
+ return Hr(m, C).map((I) => I.added ? `<span class="bg-addedBg inline leading-snug animate-addedText">${I.value}</span>` : I.removed ? `<span class="bg-removedBg inline leading-snug animate-removedText">${I.value}</span>` : I.value).join("");
4341
4380
  }
4342
4381
  function x() {
4343
4382
  a.value = !a.value, Ie.DEFAULT_DIFF_MODE = a.value;
@@ -4350,8 +4389,8 @@ const zr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4350
4389
  { immediate: !0 }
4351
4390
  ), F(s, (m) => {
4352
4391
  u("change", m);
4353
- }), (m, C) => (h(), g("div", zr, [
4354
- f("div", Zr, [
4392
+ }), (m, C) => (h(), g("div", Ur, [
4393
+ f("div", Wr, [
4355
4394
  B(Fn, {
4356
4395
  loading: l.value,
4357
4396
  src: s.value,
@@ -4362,7 +4401,7 @@ const zr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4362
4401
  onToggleDiff: x
4363
4402
  }, null, 8, ["loading", "src", "hasCopyBtn", "showDiffToggle", "isDiffMode"])
4364
4403
  ]),
4365
- f("div", Ur, [
4404
+ f("div", qr, [
4366
4405
  e.type !== "check" || !a.value ? tt((h(), g("textarea", {
4367
4406
  key: 0,
4368
4407
  ref_key: "textarea",
@@ -4377,27 +4416,27 @@ const zr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4377
4416
  key: 1,
4378
4417
  class: "w-full min-h-[80px] outline-none px-1 pr-8 bg-transparent text-base-content resize-none pb-3 overflow-x-hidden overflow-y-hidden whitespace-pre-wrap break-words font-sans text-base leading-normal",
4379
4418
  innerHTML: l.value ? "" : r.value
4380
- }, null, 8, Wr))
4419
+ }, null, 8, Gr))
4381
4420
  ])
4382
4421
  ]));
4383
4422
  }
4384
- }, Gr = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%3e%3cpath%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20d='M21%2012h1m-3.5-6.5%201-1M12%203V2M5.5%205.5l-1-1M3%2012H2m8%2010h4m3-10a5%205%200%201%200-7%204.584V19h4v-2.416A5.001%205.001%200%200%200%2017%2012z'/%3e%3c/svg%3e", Jr = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.8544%203.20309C5.39975%202.89815%204.26277%201.76117%203.95787%200.30649C3.92042%200.12792%203.76292%200%203.58041%200C3.3979%200%203.2404%200.12792%203.20297%200.30652C2.89805%201.76117%201.76107%202.89812%200.306418%203.20302C0.127818%203.24045%20-0.00012207%203.39798%20-0.00012207%203.58046C-0.00012207%203.76295%200.127798%203.92047%200.306418%203.9579C1.76105%204.26285%202.89798%205.3998%203.2029%206.85448C3.24033%207.03307%203.39783%207.16102%203.58034%207.16102C3.76282%207.16102%203.92035%207.0331%203.95778%206.85448C4.26272%205.39983%205.39973%204.26287%206.85438%203.95799C7.03297%203.92056%207.16092%203.76306%207.16092%203.58056C7.1609%203.39805%207.03297%203.24052%206.8544%203.20309ZM3.58036%205.60938C3.14292%204.73132%202.42956%204.01792%201.55151%203.58049C2.42958%203.14305%203.14297%202.42968%203.58041%201.55161C4.01785%202.4297%204.73122%203.14307%205.60926%203.58053C4.73119%204.01797%204.0178%204.73132%203.58036%205.60938Z'%20fill='currentColor'/%3e%3cpath%20d='M6.21683%209.574C5.53147%209.4303%204.99578%208.8947%204.85209%208.2093C4.81466%208.0307%204.65716%207.90271%204.47465%207.90271C4.29217%207.90271%204.13464%208.0306%204.09721%208.2092C3.95352%208.8946%203.4178%209.4303%202.73244%209.574C2.55385%209.6114%202.4259%209.7689%202.4259%209.9514C2.4259%2010.1339%202.55383%2010.2914%202.73244%2010.3288C3.41778%2010.4725%203.95349%2011.0082%204.09716%2011.6936C4.13459%2011.8722%204.2921%2012.0002%204.4746%2012.0002C4.65709%2012.0002%204.81461%2011.8723%204.85204%2011.6936C4.99574%2011.0082%205.53145%2010.4725%206.21683%2010.3289C6.39543%2010.2914%206.52337%2010.1339%206.52337%209.9514C6.52337%209.7689%206.39545%209.6114%206.21683%209.574ZM4.47463%2010.6408C4.29163%2010.3688%204.05725%2010.1345%203.78526%209.9515C4.0573%209.7684%204.29163%209.5341%204.47463%209.2621C4.65765%209.5341%204.892%209.7685%205.164%209.9515C4.892%2010.1345%204.65763%2010.3688%204.47463%2010.6408Z'%20fill='currentColor'/%3e%3cpath%20d='M11.4271%206.00324C10.5007%205.80904%209.7766%205.08496%209.5825%204.15859C9.545%203.98%209.3875%203.85205%209.205%203.85205C9.0225%203.85205%208.865%203.97995%208.8276%204.15857C8.6334%205.08496%207.90932%205.80902%206.98293%206.0032C6.80434%206.04063%206.67639%206.19815%206.67639%206.38064C6.67639%206.56312%206.80431%206.72062%206.98293%206.75807C7.9093%206.95228%208.6334%207.67633%208.8275%208.6027C8.865%208.7813%209.0225%208.9093%209.205%208.9093C9.3875%208.9093%209.545%208.7814%209.5824%208.6027C9.7766%207.67633%2010.5007%206.95228%2011.4271%206.75812C11.6057%206.72067%2011.7336%206.56317%2011.7336%206.38068C11.7336%206.1982%2011.6057%206.04067%2011.4271%206.00324ZM9.205%207.47681C8.9365%207.02634%208.5593%206.64914%208.1089%206.38066C8.5593%206.11218%208.9365%205.73502%209.205%205.28453C9.4735%205.73502%209.8507%206.11221%2010.3012%206.38068C9.8507%206.64916%209.4735%207.02636%209.205%207.47681Z'%20fill='currentColor'/%3e%3c/svg%3e", Yr = "data:image/svg+xml,%3csvg%20class='w-5%20h-5'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='currentColor'%20aria-hidden='true'%20%3e%3cpath%20fill-rule='evenodd'%20d='M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z'%20clip-rule='evenodd'%20/%3e%3c/svg%3e", Qr = "data:image/svg+xml,%3csvg%20class='w-5%20h-5'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='currentColor'%20aria-hidden='true'%20%3e%3cpath%20fill-rule='evenodd'%20d='M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z'%20clip-rule='evenodd'%20/%3e%3c/svg%3e", Vt = (e) => (St("data-v-345bc0b4"), e = e(), $t(), e), Xr = { class: "flex rounded-md w-full" }, Kr = ["disabled"], ei = { class: "flex items-center text-xs" }, ti = ["src"], ni = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("div", { class: "w-px bg-base-300" }, null, -1)), oi = { class: "relative block" }, li = ["aria-expanded", "disabled"], si = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("span", { class: "sr-only" }, "Open options", -1)), ai = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("img", {
4385
- src: Qr,
4423
+ }, Yr = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%3e%3cpath%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20d='M21%2012h1m-3.5-6.5%201-1M12%203V2M5.5%205.5l-1-1M3%2012H2m8%2010h4m3-10a5%205%200%201%200-7%204.584V19h4v-2.416A5.001%205.001%200%200%200%2017%2012z'/%3e%3c/svg%3e", Qr = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.8544%203.20309C5.39975%202.89815%204.26277%201.76117%203.95787%200.30649C3.92042%200.12792%203.76292%200%203.58041%200C3.3979%200%203.2404%200.12792%203.20297%200.30652C2.89805%201.76117%201.76107%202.89812%200.306418%203.20302C0.127818%203.24045%20-0.00012207%203.39798%20-0.00012207%203.58046C-0.00012207%203.76295%200.127798%203.92047%200.306418%203.9579C1.76105%204.26285%202.89798%205.3998%203.2029%206.85448C3.24033%207.03307%203.39783%207.16102%203.58034%207.16102C3.76282%207.16102%203.92035%207.0331%203.95778%206.85448C4.26272%205.39983%205.39973%204.26287%206.85438%203.95799C7.03297%203.92056%207.16092%203.76306%207.16092%203.58056C7.1609%203.39805%207.03297%203.24052%206.8544%203.20309ZM3.58036%205.60938C3.14292%204.73132%202.42956%204.01792%201.55151%203.58049C2.42958%203.14305%203.14297%202.42968%203.58041%201.55161C4.01785%202.4297%204.73122%203.14307%205.60926%203.58053C4.73119%204.01797%204.0178%204.73132%203.58036%205.60938Z'%20fill='currentColor'/%3e%3cpath%20d='M6.21683%209.574C5.53147%209.4303%204.99578%208.8947%204.85209%208.2093C4.81466%208.0307%204.65716%207.90271%204.47465%207.90271C4.29217%207.90271%204.13464%208.0306%204.09721%208.2092C3.95352%208.8946%203.4178%209.4303%202.73244%209.574C2.55385%209.6114%202.4259%209.7689%202.4259%209.9514C2.4259%2010.1339%202.55383%2010.2914%202.73244%2010.3288C3.41778%2010.4725%203.95349%2011.0082%204.09716%2011.6936C4.13459%2011.8722%204.2921%2012.0002%204.4746%2012.0002C4.65709%2012.0002%204.81461%2011.8723%204.85204%2011.6936C4.99574%2011.0082%205.53145%2010.4725%206.21683%2010.3289C6.39543%2010.2914%206.52337%2010.1339%206.52337%209.9514C6.52337%209.7689%206.39545%209.6114%206.21683%209.574ZM4.47463%2010.6408C4.29163%2010.3688%204.05725%2010.1345%203.78526%209.9515C4.0573%209.7684%204.29163%209.5341%204.47463%209.2621C4.65765%209.5341%204.892%209.7685%205.164%209.9515C4.892%2010.1345%204.65763%2010.3688%204.47463%2010.6408Z'%20fill='currentColor'/%3e%3cpath%20d='M11.4271%206.00324C10.5007%205.80904%209.7766%205.08496%209.5825%204.15859C9.545%203.98%209.3875%203.85205%209.205%203.85205C9.0225%203.85205%208.865%203.97995%208.8276%204.15857C8.6334%205.08496%207.90932%205.80902%206.98293%206.0032C6.80434%206.04063%206.67639%206.19815%206.67639%206.38064C6.67639%206.56312%206.80431%206.72062%206.98293%206.75807C7.9093%206.95228%208.6334%207.67633%208.8275%208.6027C8.865%208.7813%209.0225%208.9093%209.205%208.9093C9.3875%208.9093%209.545%208.7814%209.5824%208.6027C9.7766%207.67633%2010.5007%206.95228%2011.4271%206.75812C11.6057%206.72067%2011.7336%206.56317%2011.7336%206.38068C11.7336%206.1982%2011.6057%206.04067%2011.4271%206.00324ZM9.205%207.47681C8.9365%207.02634%208.5593%206.64914%208.1089%206.38066C8.5593%206.11218%208.9365%205.73502%209.205%205.28453C9.4735%205.73502%209.8507%206.11221%2010.3012%206.38068C9.8507%206.64916%209.4735%207.02636%209.205%207.47681Z'%20fill='currentColor'/%3e%3c/svg%3e", Xr = "data:image/svg+xml,%3csvg%20class='w-5%20h-5'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='currentColor'%20aria-hidden='true'%20%3e%3cpath%20fill-rule='evenodd'%20d='M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z'%20clip-rule='evenodd'%20/%3e%3c/svg%3e", Kr = "data:image/svg+xml,%3csvg%20class='w-5%20h-5'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='currentColor'%20aria-hidden='true'%20%3e%3cpath%20fill-rule='evenodd'%20d='M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z'%20clip-rule='evenodd'%20/%3e%3c/svg%3e", Vt = (e) => (Et("data-v-345bc0b4"), e = e(), $t(), e), ei = { class: "flex rounded-md w-full" }, ti = ["disabled"], ni = { class: "flex items-center text-xs" }, oi = ["src"], li = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("div", { class: "w-px bg-base-300" }, null, -1)), si = { class: "relative block" }, ai = ["aria-expanded", "disabled"], ri = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("span", { class: "sr-only" }, "Open options", -1)), ii = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("img", {
4424
+ src: Kr,
4386
4425
  alt: "Chevron down",
4387
4426
  class: "w-4 h-4 fill-current"
4388
- }, null, -1)), ri = [
4389
- si,
4390
- ai
4391
- ], ii = {
4427
+ }, null, -1)), ui = [
4428
+ ri,
4429
+ ii
4430
+ ], ci = {
4392
4431
  key: 0,
4393
4432
  class: "origin-top-right absolute left-0 mt-1 w-full rounded-md shadow-lg bg-base-100 ring-1 ring-base-300 focus:outline-none z-50",
4394
4433
  role: "menu",
4395
4434
  "aria-orientation": "vertical",
4396
4435
  "aria-labelledby": "options-menu"
4397
- }, ui = {
4436
+ }, di = {
4398
4437
  class: "py-1",
4399
4438
  role: "none"
4400
- }, ci = ["onClick"], di = { class: "flex items-center" }, fi = ["src"], vi = {
4439
+ }, fi = ["onClick"], vi = { class: "flex items-center" }, pi = ["src"], hi = {
4401
4440
  __name: "ButtonSelect",
4402
4441
  props: {
4403
4442
  modelValue: {
@@ -4434,7 +4473,7 @@ const zr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4434
4473
  m.value !== s.value && (s.value = m.value, o("update:modelValue", m.value)), l.value = !1;
4435
4474
  }
4436
4475
  function d(m) {
4437
- return new URL((/* @__PURE__ */ Object.assign({ "../../assets/icons/ai-explain.svg": Gr, "../../assets/icons/ai-translate.svg": Jr, "../../assets/icons/chevron-down.svg": Yr }))[`../../assets/icons/${m}.svg`], import.meta.url).href;
4476
+ return new URL((/* @__PURE__ */ Object.assign({ "../../assets/icons/ai-explain.svg": Yr, "../../assets/icons/ai-translate.svg": Qr, "../../assets/icons/chevron-down.svg": Xr }))[`../../assets/icons/${m}.svg`], import.meta.url).href;
4438
4477
  }
4439
4478
  function x(m) {
4440
4479
  r.value && !r.value.contains(m.target) && (l.value = !1);
@@ -4459,45 +4498,45 @@ const zr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4459
4498
  ref: r
4460
4499
  }, [
4461
4500
  f("div", {
4462
- class: R([
4501
+ class: P([
4463
4502
  "relative rounded-lg overflow-hidden border-2 shadow-lg",
4464
4503
  e.isTextEmpty || t.loading ? "border-base-300" : "border-primary"
4465
4504
  ])
4466
4505
  }, [
4467
- f("div", Xr, [
4506
+ f("div", ei, [
4468
4507
  f("button", {
4469
4508
  onClick: i,
4470
- class: R(["px-2 py-1 text-sm font-medium rounded-s focus:z-10 focus:outline-none flex-grow text-left relative", [
4509
+ class: P(["px-2 py-1 text-sm font-medium rounded-s focus:z-10 focus:outline-none flex-grow text-left relative", [
4471
4510
  e.isTextEmpty || t.loading ? "bg-base-300 text-base-content/50 cursor-not-allowed" : "bg-primary text-primary-content"
4472
4511
  ]]),
4473
4512
  disabled: e.isTextEmpty || t.loading
4474
4513
  }, [
4475
- f("div", ei, [
4514
+ f("div", ni, [
4476
4515
  f("img", {
4477
4516
  src: d(a.value.icon),
4478
4517
  alt: "",
4479
4518
  class: "w-4 h-4 mr-2"
4480
- }, null, 8, ti),
4481
- Se(" " + J(a.value.label), 1)
4519
+ }, null, 8, oi),
4520
+ Ee(" " + G(a.value.label), 1)
4482
4521
  ])
4483
- ], 10, Kr),
4484
- ni,
4485
- f("div", oi, [
4522
+ ], 10, ti),
4523
+ li,
4524
+ f("div", si, [
4486
4525
  f("button", {
4487
4526
  onClick: u,
4488
4527
  type: "button",
4489
- class: R(["h-full px-1 py-1 text-sm font-medium rounded-e focus:z-10 focus:outline-none", [
4528
+ class: P(["h-full px-1 py-1 text-sm font-medium rounded-e focus:z-10 focus:outline-none", [
4490
4529
  e.isTextEmpty || t.loading ? "bg-base-300 text-base-content/50 cursor-not-allowed" : "bg-primary text-primary-content"
4491
4530
  ]]),
4492
4531
  "aria-haspopup": "true",
4493
4532
  "aria-expanded": l.value,
4494
4533
  disabled: e.isTextEmpty || t.loading
4495
- }, ri, 10, li)
4534
+ }, ui, 10, ai)
4496
4535
  ])
4497
4536
  ])
4498
4537
  ], 2),
4499
- l.value ? (h(), g("div", ii, [
4500
- f("div", ui, [
4538
+ l.value ? (h(), g("div", ci, [
4539
+ f("div", di, [
4501
4540
  (h(!0), g(z, null, Y(e.options, (b) => (h(), g("a", {
4502
4541
  key: b.value,
4503
4542
  onClick: (I) => c(b),
@@ -4505,23 +4544,23 @@ const zr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4505
4544
  class: "block px-1 py-1 text-sm text-base-content hover:bg-base-200 hover:text-primary",
4506
4545
  role: "menuitem"
4507
4546
  }, [
4508
- f("div", di, [
4547
+ f("div", vi, [
4509
4548
  f("img", {
4510
4549
  src: d(b.icon),
4511
4550
  alt: "",
4512
4551
  class: "w-4 h-4 mr-2"
4513
- }, null, 8, fi),
4514
- Se(" " + J(b.label), 1)
4552
+ }, null, 8, pi),
4553
+ Ee(" " + G(b.label), 1)
4515
4554
  ])
4516
- ], 8, ci))), 128))
4555
+ ], 8, fi))), 128))
4517
4556
  ])
4518
- ])) : P("", !0)
4557
+ ])) : R("", !0)
4519
4558
  ], 512));
4520
4559
  }
4521
- }, pi = /* @__PURE__ */ he(vi, [["__scopeId", "data-v-345bc0b4"]]), hi = { class: "w-full mt-1" }, mi = { class: "flex flex-col lg:flex-row lg:items-stretch lg:space-x-4 lg:min-h-[50vh]" }, gi = { class: "lg:flex-grow lg:w-0 flex flex-col" }, bi = { class: "flex flex-row lg:flex-col items-center justify-center place-content-center min-h-full" }, Ci = {
4560
+ }, mi = /* @__PURE__ */ he(hi, [["__scopeId", "data-v-345bc0b4"]]), gi = { class: "w-full mt-1" }, bi = { class: "flex flex-col lg:flex-row lg:items-stretch lg:space-x-4 lg:min-h-[50vh]" }, Ci = { class: "lg:flex-grow lg:w-0 flex flex-col" }, xi = { class: "flex flex-row lg:flex-col items-center justify-center place-content-center min-h-full" }, yi = {
4522
4561
  class: "flex items-center",
4523
4562
  style: { "max-width": "300px" }
4524
- }, xi = { class: "lg:flex-grow lg:w-0 flex flex-col" }, yi = {
4563
+ }, wi = { class: "lg:flex-grow lg:w-0 flex flex-col" }, _i = {
4525
4564
  __name: "WriteTab",
4526
4565
  props: {
4527
4566
  opt: {
@@ -4590,10 +4629,10 @@ const zr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4590
4629
  }
4591
4630
  return (b, I) => {
4592
4631
  var $, w;
4593
- return h(), g("div", hi, [
4594
- f("div", mi, [
4595
- f("div", gi, [
4596
- B(Pr, {
4632
+ return h(), g("div", gi, [
4633
+ f("div", bi, [
4634
+ f("div", Ci, [
4635
+ B(Br, {
4597
4636
  class: "my-2 lg:my-0 w-full flex-grow lg:min-h-[50vh]",
4598
4637
  text: M(t).text,
4599
4638
  onChange: a,
@@ -4601,9 +4640,9 @@ const zr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4601
4640
  onImprove: d
4602
4641
  }, null, 8, ["text"])
4603
4642
  ]),
4604
- f("div", bi, [
4605
- f("div", Ci, [
4606
- B(pi, {
4643
+ f("div", xi, [
4644
+ f("div", yi, [
4645
+ B(mi, {
4607
4646
  class: "w-full",
4608
4647
  modelValue: l.opt.type,
4609
4648
  options: r,
@@ -4614,14 +4653,14 @@ const zr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4614
4653
  onAction: d
4615
4654
  }, null, 8, ["modelValue", "loading", "isTextEmpty", "hasResult"])
4616
4655
  ]),
4617
- B(Tr, {
4656
+ B(Er, {
4618
4657
  class: "ml-2 lg:m-2",
4619
4658
  disabled: ((w = M(t).text) == null ? void 0 : w.length) < 5 || !M(t).result,
4620
4659
  onClick: x
4621
4660
  }, null, 8, ["disabled"])
4622
4661
  ]),
4623
- f("div", xi, [
4624
- B(qr, {
4662
+ f("div", wi, [
4663
+ B(Jr, {
4625
4664
  class: "my-2 lg:my-0 w-full flex-grow lg:min-h-[50vh]",
4626
4665
  text: M(t).result,
4627
4666
  originalText: M(t).text,
@@ -4656,17 +4695,17 @@ const zr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4656
4695
  init: a,
4657
4696
  reset: i
4658
4697
  };
4659
- }), Hn = (e) => (St("data-v-4734eed4"), e = e(), $t(), e), wi = ["data-theme"], _i = { class: "flex-none py-2 pl-3 pr-2 shadow border border-base-300" }, Ti = { class: "flex-none" }, Ei = { class: "flex w-full border-b border-base-300 items-center" }, Si = {
4698
+ }), Hn = (e) => (Et("data-v-e4dbf9d3"), e = e(), $t(), e), Ti = ["data-theme"], Si = { class: "flex-none py-2 pl-3 pr-2 shadow border border-base-300" }, Ei = { class: "flex-none" }, $i = { class: "flex w-full border-b border-base-300 items-center" }, Oi = {
4660
4699
  key: 0,
4661
4700
  class: "text-xs text-base-content/40 ml-1 italic"
4662
- }, $i = /* @__PURE__ */ Hn(() => /* @__PURE__ */ f("small", null, "(Tab)", -1)), Oi = [
4663
- $i
4664
- ], Ii = {
4701
+ }, Ii = /* @__PURE__ */ Hn(() => /* @__PURE__ */ f("small", null, "(Tab)", -1)), Li = [
4702
+ Ii
4703
+ ], ki = {
4665
4704
  key: 0,
4666
4705
  class: "text-xs text-base-content/40 ml-1 italic"
4667
- }, Li = /* @__PURE__ */ Hn(() => /* @__PURE__ */ f("small", null, "(Tab)", -1)), ki = [
4668
- Li
4669
- ], Mi = { class: "flex-1 min-h-0" }, Ai = { class: "h-full overflow-y-auto overflow-x-hidden custom-scrollbar" }, Vi = {
4706
+ }, Mi = /* @__PURE__ */ Hn(() => /* @__PURE__ */ f("small", null, "(Tab)", -1)), Ai = [
4707
+ Mi
4708
+ ], Vi = { class: "flex-1 min-h-0" }, Di = { class: "h-full overflow-y-auto overflow-x-hidden custom-scrollbar" }, Ri = {
4670
4709
  __name: "Popup",
4671
4710
  props: {
4672
4711
  options: {
@@ -4708,7 +4747,7 @@ const zr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4708
4747
  },
4709
4748
  emits: ["nav", "translate", "write", "common"],
4710
4749
  setup(e, { emit: n }) {
4711
- const t = Ul();
4750
+ const t = ql();
4712
4751
  ve(t), bt(t), Oe(t), xe(t), ln(t);
4713
4752
  const o = ve(), l = bt(), s = Oe(), r = xe(), a = ln();
4714
4753
  ce("translationStore", o), ce("ttsStore", l), ce("languageStore", s), ce("loaderStore", r), ce("writingStore", a);
@@ -4753,44 +4792,45 @@ const zr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4753
4792
  "data-theme": e.theme,
4754
4793
  class: "h-screen flex flex-col bg-base-100"
4755
4794
  }, [
4756
- f("div", _i, [
4757
- B(bo, {
4795
+ f("div", Si, [
4796
+ B(xo, {
4758
4797
  "header-settings": e.headerSettings,
4759
4798
  "current-theme": e.theme,
4760
4799
  onReader: y[0] || (y[0] = (_) => u("reader")),
4761
- onSettings: y[1] || (y[1] = (_) => u("settings")),
4762
- onFullScreen: y[2] || (y[2] = (_) => u("fullscreen")),
4763
- onAccount: y[3] || (y[3] = (_) => u("account")),
4800
+ onLearn: y[1] || (y[1] = (_) => u("learn")),
4801
+ onSettings: y[2] || (y[2] = (_) => u("settings")),
4802
+ onFullScreen: y[3] || (y[3] = (_) => u("fullscreen")),
4803
+ onAccount: y[4] || (y[4] = (_) => u("account")),
4764
4804
  onThemeChange: c
4765
4805
  }, null, 8, ["header-settings", "current-theme"])
4766
4806
  ]),
4767
- f("div", Ti, [
4768
- f("div", Ei, [
4807
+ f("div", Ei, [
4808
+ f("div", $i, [
4769
4809
  f("button", {
4770
- class: R([
4810
+ class: P([
4771
4811
  "w-1/2 px-4 py-2 text-sm font-medium",
4772
4812
  I.value.activeTab === "translate" ? "text-primary border-b-2 border-primary" : "text-base-content/60 hover:text-primary"
4773
4813
  ]),
4774
- onClick: y[4] || (y[4] = (_) => u("activeTab", "translate"))
4814
+ onClick: y[5] || (y[5] = (_) => u("activeTab", "translate"))
4775
4815
  }, [
4776
- Se(" Translate "),
4777
- !M(vt) && I.value.activeTab !== "translate" ? (h(), g("span", Si, Oi)) : P("", !0)
4816
+ Ee(" Translate "),
4817
+ !M(vt) && I.value.activeTab !== "translate" ? (h(), g("span", Oi, Li)) : R("", !0)
4778
4818
  ], 2),
4779
4819
  f("button", {
4780
- class: R([
4820
+ class: P([
4781
4821
  "w-1/2 px-4 py-2 text-sm font-medium",
4782
4822
  I.value.activeTab === "write" ? "text-primary border-b-2 border-primary" : "text-base-content/60 hover:text-primary"
4783
4823
  ]),
4784
- onClick: y[5] || (y[5] = (_) => u("activeTab", "write"))
4824
+ onClick: y[6] || (y[6] = (_) => u("activeTab", "write"))
4785
4825
  }, [
4786
- Se(" Write "),
4787
- !M(vt) && I.value.activeTab !== "write" ? (h(), g("span", Ii, ki)) : P("", !0)
4826
+ Ee(" Write "),
4827
+ !M(vt) && I.value.activeTab !== "write" ? (h(), g("span", ki, Ai)) : R("", !0)
4788
4828
  ], 2)
4789
4829
  ])
4790
4830
  ]),
4791
- f("div", Mi, [
4792
- f("div", Ai, [
4793
- I.value.activeTab === "translate" ? (h(), W(xr, {
4831
+ f("div", Vi, [
4832
+ f("div", Di, [
4833
+ I.value.activeTab === "translate" ? (h(), W(wr, {
4794
4834
  key: 0,
4795
4835
  opt: I.value.translateOpts,
4796
4836
  languages: I.value.languages,
@@ -4804,28 +4844,28 @@ const zr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4804
4844
  isAITranslate: I.value.isAITranslate,
4805
4845
  isAIExplain: I.value.isAIExplain,
4806
4846
  aiExplainMinLength: I.value.aiExplainMinLength,
4807
- onOpt: y[6] || (y[6] = (_) => d("updateOpts", _)),
4808
- onTranslate: y[7] || (y[7] = (_) => d("translate", _)),
4809
- onLoadTTS: y[8] || (y[8] = (_) => d("loadTTS", _)),
4810
- onFavorite: y[9] || (y[9] = (_) => d("favorite")),
4811
- onAiTranslate: y[10] || (y[10] = (_) => d("aiTranslate", _)),
4812
- onAiExplain: y[11] || (y[11] = (_) => d("aiExplain", _)),
4813
- onCopy: y[12] || (y[12] = (_) => m("copy", _))
4814
- }, null, 8, ["opt", "languages", "translation", "explanation", "tts", "isTTS", "isFavoriteFeatureEnabled", "isAITranslateFeatureEnabled", "isFavorite", "isAITranslate", "isAIExplain", "aiExplainMinLength"])) : P("", !0),
4815
- I.value.activeTab === "write" ? (h(), W(yi, {
4847
+ onOpt: y[7] || (y[7] = (_) => d("updateOpts", _)),
4848
+ onTranslate: y[8] || (y[8] = (_) => d("translate", _)),
4849
+ onLoadTTS: y[9] || (y[9] = (_) => d("loadTTS", _)),
4850
+ onFavorite: y[10] || (y[10] = (_) => d("favorite")),
4851
+ onAiTranslate: y[11] || (y[11] = (_) => d("aiTranslate", _)),
4852
+ onAiExplain: y[12] || (y[12] = (_) => d("aiExplain", _)),
4853
+ onCopy: y[13] || (y[13] = (_) => m("copy", _))
4854
+ }, null, 8, ["opt", "languages", "translation", "explanation", "tts", "isTTS", "isFavoriteFeatureEnabled", "isAITranslateFeatureEnabled", "isFavorite", "isAITranslate", "isAIExplain", "aiExplainMinLength"])) : R("", !0),
4855
+ I.value.activeTab === "write" ? (h(), W(_i, {
4816
4856
  key: 1,
4817
4857
  opt: I.value.writeOpts,
4818
4858
  languages: I.value.languages,
4819
4859
  writing: e.data.writing,
4820
- onOpt: y[13] || (y[13] = (_) => x("updateOpts", _)),
4821
- onWrite: y[14] || (y[14] = (_) => x("write", _)),
4822
- onCopy: y[15] || (y[15] = (_) => m("copy", _))
4823
- }, null, 8, ["opt", "languages", "writing"])) : P("", !0)
4860
+ onOpt: y[14] || (y[14] = (_) => x("updateOpts", _)),
4861
+ onWrite: y[15] || (y[15] = (_) => x("write", _)),
4862
+ onCopy: y[16] || (y[16] = (_) => m("copy", _))
4863
+ }, null, 8, ["opt", "languages", "writing"])) : R("", !0)
4824
4864
  ])
4825
4865
  ])
4826
- ], 8, wi));
4866
+ ], 8, Ti));
4827
4867
  }
4828
- }, Pi = /* @__PURE__ */ he(Vi, [["__scopeId", "data-v-4734eed4"]]);
4868
+ }, Bi = /* @__PURE__ */ he(Ri, [["__scopeId", "data-v-e4dbf9d3"]]);
4829
4869
  export {
4830
- Pi as default
4870
+ Bi as default
4831
4871
  };