@ddict/popup 1.4.6 → 1.4.7

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 { openBlock as C, createElementBlock as y, createElementVNode as p, createCommentVNode as H, computed as T, unref as $, shallowRef as ze, watch as R, triggerRef as F0, onScopeDispose as _0, ref as I, onUnmounted as R2, inject as l2, watchEffect as f2, onMounted as s2, cloneVNode as le, h as V2, Fragment as j, defineComponent as p2, provide as c2, reactive as se, nextTick as Q, toRaw as n2, effectScope as ie, markRaw as C2, hasInjectionContext as Ue, getCurrentInstance as ae, isRef as S2, isReactive as E0, toRef as a0, getCurrentScope as re, toRefs as A0, mergeModels as We, useModel as qe, createBlock as q, withCtx as Z2, createVNode as D, renderList as X, normalizeClass as N, toDisplayString as J, withModifiers as d0, createTextVNode as F2, withDirectives as e0, vModelText as t0, pushScopeId as L0, popScopeId as S0, withKeys as Ge } from "vue";
1
+ import { openBlock as C, createElementBlock as y, createElementVNode as p, createCommentVNode as H, computed as $, unref as I, shallowRef as ze, watch as R, triggerRef as F0, onScopeDispose as _0, ref as S, onUnmounted as R2, inject as l2, watchEffect as f2, onMounted as s2, cloneVNode as le, h as V2, Fragment as j, defineComponent as p2, provide as c2, reactive as se, nextTick as Q, toRaw as n2, effectScope as ie, markRaw as C2, hasInjectionContext as Ue, getCurrentInstance as ae, isRef as S2, isReactive as E0, toRef as a0, getCurrentScope as re, toRefs as A0, mergeModels as We, useModel as qe, createBlock as q, withCtx as Z2, createVNode as D, renderList as X, normalizeClass as N, toDisplayString as J, withModifiers as d0, createTextVNode as F2, withDirectives as e0, vModelText as t0, pushScopeId as L0, popScopeId as S0, withKeys as Ge } from "vue";
2
2
  const f0 = navigator.userAgent.match(
3
3
  /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i
4
4
  ), j2 = {
@@ -349,14 +349,14 @@ class Et {
349
349
  this.options.measureElement(M, void 0, this)
350
350
  );
351
351
  });
352
- const h = s(d), b = this.options.lanes === 1 ? c[d - 1] : this.getFurthestMeasurement(c, d), g = b ? b.end + this.options.gap : o + l, V = i.get(h), w = typeof V == "number" ? V : this.options.estimateSize(d), m = g + w, S = b ? b.lane : d % this.options.lanes;
352
+ const h = s(d), b = this.options.lanes === 1 ? c[d - 1] : this.getFurthestMeasurement(c, d), g = b ? b.end + this.options.gap : o + l, V = i.get(h), w = typeof V == "number" ? V : this.options.estimateSize(d), m = g + w, T = b ? b.lane : d % this.options.lanes;
353
353
  c[d] = {
354
354
  index: d,
355
355
  start: g,
356
356
  size: w,
357
357
  end: m,
358
358
  key: h,
359
- lane: S,
359
+ lane: T,
360
360
  measureElement: x
361
361
  };
362
362
  }
@@ -541,9 +541,9 @@ function Lt({
541
541
  return { startIndex: s, endIndex: a };
542
542
  }
543
543
  function St(e) {
544
- const n = new Et($(e)), t = ze(n), o = n._didMount();
544
+ const n = new Et(I(e)), t = ze(n), o = n._didMount();
545
545
  return R(
546
- () => $(e).getScrollElement(),
546
+ () => I(e).getScrollElement(),
547
547
  (l) => {
548
548
  l && n._willUpdate();
549
549
  },
@@ -551,7 +551,7 @@ function St(e) {
551
551
  immediate: !0
552
552
  }
553
553
  ), R(
554
- () => $(e),
554
+ () => I(e),
555
555
  (l) => {
556
556
  n.setOptions({
557
557
  ...l,
@@ -568,17 +568,17 @@ function St(e) {
568
568
  }
569
569
  function Tt(e) {
570
570
  return St(
571
- T(() => ({
571
+ $(() => ({
572
572
  observeElementRect: bt,
573
573
  observeElementOffset: wt,
574
574
  scrollToFn: _t,
575
- ...$(e)
575
+ ...I(e)
576
576
  }))
577
577
  );
578
578
  }
579
579
  function $t(e, n, t) {
580
- let o = I(t == null ? void 0 : t.value), l = T(() => e.value !== void 0);
581
- return [T(() => l.value ? e.value : o.value), function(s) {
580
+ let o = S(t == null ? void 0 : t.value), l = $(() => e.value !== void 0);
581
+ return [$(() => l.value ? e.value : o.value), function(s) {
582
582
  return l.value || (o.value = s), n == null ? void 0 : n(s);
583
583
  }];
584
584
  }
@@ -734,7 +734,7 @@ function Ut(e, n, t) {
734
734
  window.addEventListener(e, n, t), o(() => window.removeEventListener(e, n, t));
735
735
  });
736
736
  }
737
- function Wt(e, n, t = T(() => !0)) {
737
+ function Wt(e, n, t = $(() => !0)) {
738
738
  function o(s, a) {
739
739
  if (!t.value || s.defaultPrevented) return;
740
740
  let i = a(s);
@@ -749,7 +749,7 @@ function Wt(e, n, t = T(() => !0)) {
749
749
  }
750
750
  return !Pt(i, ce.Loose) && i.tabIndex !== -1 && s.preventDefault(), n(s, i);
751
751
  }
752
- let l = I(null);
752
+ let l = S(null);
753
753
  z2("pointerdown", (s) => {
754
754
  var a, i;
755
755
  t.value && (l.value = ((i = (a = s.composedPath) == null ? void 0 : a.call(s)) == null ? void 0 : i[0]) || s.target);
@@ -766,7 +766,7 @@ function R0(e, n) {
766
766
  if (typeof t == "string" && t.toLowerCase() === "button") return "button";
767
767
  }
768
768
  function qt(e, n) {
769
- let t = I(R0(e.value.type, e.value.as));
769
+ let t = S(R0(e.value.type, e.value.as));
770
770
  return s2(() => {
771
771
  t.value = R0(e.value.type, e.value.as);
772
772
  }), f2(() => {
@@ -778,7 +778,7 @@ function P0(e) {
778
778
  return [e.screenX, e.screenY];
779
779
  }
780
780
  function Gt() {
781
- let e = I([-1, -1]);
781
+ let e = S([-1, -1]);
782
782
  return { wasMoved(n) {
783
783
  let t = P0(n);
784
784
  return e.value[0] === t[0] && e.value[1] === t[1] ? !1 : (e.value = t, !0);
@@ -955,19 +955,19 @@ function y2(e) {
955
955
  return n;
956
956
  }
957
957
  let we = Symbol("VirtualContext"), r1 = p2({ name: "VirtualProvider", setup(e, { slots: n }) {
958
- let t = y2("VirtualProvider"), o = T(() => {
958
+ let t = y2("VirtualProvider"), o = $(() => {
959
959
  let i = B(t.optionsRef);
960
960
  if (!i) return { start: 0, end: 0 };
961
961
  let r = window.getComputedStyle(i);
962
962
  return { start: parseFloat(r.paddingBlockStart || r.paddingTop), end: parseFloat(r.paddingBlockEnd || r.paddingBottom) };
963
- }), l = Tt(T(() => ({ scrollPaddingStart: o.value.start, scrollPaddingEnd: o.value.end, count: t.virtual.value.options.length, estimateSize() {
963
+ }), l = Tt($(() => ({ scrollPaddingStart: o.value.start, scrollPaddingEnd: o.value.end, count: t.virtual.value.options.length, estimateSize() {
964
964
  return 40;
965
965
  }, getScrollElement() {
966
966
  return B(t.optionsRef);
967
- }, overscan: 12 }))), s = T(() => {
967
+ }, overscan: 12 }))), s = $(() => {
968
968
  var i;
969
969
  return (i = t.virtual.value) == null ? void 0 : i.options;
970
- }), a = I(0);
970
+ }), a = S(0);
971
971
  return R([s], () => {
972
972
  a.value += 1;
973
973
  }), c2(we, t.virtual.value ? l : null), () => [V2("div", { style: { position: "relative", width: "100%", height: `${l.value.getTotalSize()}px` }, ref: (i) => {
@@ -977,12 +977,12 @@ let we = Symbol("VirtualContext"), r1 = p2({ name: "VirtualProvider", setup(e, {
977
977
  }
978
978
  } }, l.value.getVirtualItems().map((i) => le(n.default({ option: t.virtual.value.options[i.index], open: t.comboboxState.value === 0 })[0], { key: `${a.value}-${i.index}`, "data-index": i.index, "aria-setsize": t.virtual.value.options.length, "aria-posinset": i.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${i.start}px)`, overflowAnchor: "none" } })))];
979
979
  } }), u1 = p2({ 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 }) {
980
- let l = I(1), s = I(null), a = I(null), i = I(null), r = I(null), u = I({ static: !1, hold: !1 }), c = I([]), d = I(null), x = I(2), h = I(!1);
980
+ let l = S(1), s = S(null), a = S(null), i = S(null), r = S(null), u = S({ static: !1, hold: !1 }), c = S([]), d = S(null), x = S(2), h = S(!1);
981
981
  function b(f = (v) => v) {
982
982
  let v = d.value !== null ? c.value[d.value] : null, O = f(c.value.slice()), k = O.length > 0 && O[0].dataRef.order.value !== null ? O.sort((Z, K) => Z.dataRef.order.value - K.dataRef.order.value) : Zt(O, (Z) => B(Z.dataRef.domRef)), P = v ? k.indexOf(v) : null;
983
983
  return P === -1 && (P = null), { options: k, activeOptionIndex: P };
984
984
  }
985
- let g = T(() => e.multiple ? 1 : 0), V = T(() => e.nullable), [w, m] = $t(T(() => e.modelValue), (f) => o("update:modelValue", f), T(() => e.defaultValue)), S = T(() => w.value === void 0 ? u2(g.value, { 1: [], 0: void 0 }) : w.value), M = null, _ = null;
985
+ let g = $(() => e.multiple ? 1 : 0), V = $(() => e.nullable), [w, m] = $t($(() => e.modelValue), (f) => o("update:modelValue", f), $(() => e.defaultValue)), T = $(() => w.value === void 0 ? u2(g.value, { 1: [], 0: void 0 }) : w.value), M = null, _ = null;
986
986
  function F(f) {
987
987
  return u2(g.value, { 0() {
988
988
  return m == null ? void 0 : m(f);
@@ -991,7 +991,7 @@ let we = Symbol("VirtualContext"), r1 = p2({ name: "VirtualProvider", setup(e, {
991
991
  return k === -1 ? v.push(O) : v.splice(k, 1), m == null ? void 0 : m(v);
992
992
  } });
993
993
  }
994
- let E = T(() => {
994
+ let E = $(() => {
995
995
  });
996
996
  R([E], ([f], [v]) => {
997
997
  if (L.virtual.value && f && v && d.value !== null) {
@@ -999,7 +999,7 @@ let we = Symbol("VirtualContext"), r1 = p2({ name: "VirtualProvider", setup(e, {
999
999
  O !== -1 ? d.value = O : d.value = null;
1000
1000
  }
1001
1001
  });
1002
- let L = { comboboxState: l, value: S, mode: g, compare(f, v) {
1002
+ let L = { comboboxState: l, value: T, mode: g, compare(f, v) {
1003
1003
  if (typeof e.by == "string") {
1004
1004
  let O = e.by;
1005
1005
  return (f == null ? void 0 : f[O]) === (v == null ? void 0 : v[O]);
@@ -1007,9 +1007,9 @@ let we = Symbol("VirtualContext"), r1 = p2({ name: "VirtualProvider", setup(e, {
1007
1007
  return e.by === null ? l1(f, v) : e.by(f, v);
1008
1008
  }, calculateIndex(f) {
1009
1009
  return L.virtual.value ? e.by === null ? L.virtual.value.options.indexOf(f) : L.virtual.value.options.findIndex((v) => L.compare(v, f)) : c.value.findIndex((v) => L.compare(v.dataRef.value, f));
1010
- }, defaultValue: T(() => e.defaultValue), nullable: V, immediate: T(() => !1), virtual: T(() => null), inputRef: a, labelRef: s, buttonRef: i, optionsRef: r, disabled: T(() => e.disabled), options: c, change(f) {
1010
+ }, defaultValue: $(() => e.defaultValue), nullable: V, immediate: $(() => !1), virtual: $(() => null), inputRef: a, labelRef: s, buttonRef: i, optionsRef: r, disabled: $(() => e.disabled), options: c, change(f) {
1011
1011
  m(f);
1012
- }, activeOptionIndex: T(() => {
1012
+ }, activeOptionIndex: $(() => {
1013
1013
  if (h.value && d.value === null && (L.virtual.value ? L.virtual.value.options.length > 0 : c.value.length > 0)) {
1014
1014
  if (L.virtual.value) {
1015
1015
  let v = L.virtual.value.options.findIndex((O) => {
@@ -1098,8 +1098,8 @@ let we = Symbol("VirtualContext"), r1 = p2({ name: "VirtualProvider", setup(e, {
1098
1098
  }, isActive(f) {
1099
1099
  return d.value === L.calculateIndex(f);
1100
1100
  } };
1101
- Wt([a, i, r], () => L.closeCombobox(), T(() => l.value === 0)), c2(xe, L), t1(T(() => u2(l.value, { 0: B2.Open, 1: B2.Closed })));
1102
- let A = T(() => {
1101
+ Wt([a, i, r], () => L.closeCombobox(), $(() => l.value === 0)), c2(xe, L), t1($(() => u2(l.value, { 0: B2.Open, 1: B2.Closed })));
1102
+ let A = $(() => {
1103
1103
  var f;
1104
1104
  return (f = B(a)) == null ? void 0 : f.closest("form");
1105
1105
  });
@@ -1116,8 +1116,8 @@ let we = Symbol("VirtualContext"), r1 = p2({ name: "VirtualProvider", setup(e, {
1116
1116
  }, { immediate: !0 });
1117
1117
  }), () => {
1118
1118
  var f, v, O;
1119
- let { name: k, disabled: P, form: Z, ...K } = e, e2 = { open: l.value === 0, disabled: P, activeIndex: L.activeOptionIndex.value, activeOption: L.activeOptionIndex.value === null ? null : L.virtual.value ? L.virtual.value.options[(f = L.activeOptionIndex.value) != null ? f : 0] : (O = (v = L.options.value[L.activeOptionIndex.value]) == null ? void 0 : v.dataRef.value) != null ? O : null, value: S.value };
1120
- return V2(j, [...k != null && S.value != null ? me({ [k]: S.value }).map(([z, je]) => V2(Kt, Qt({ features: pe.Hidden, key: z, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: Z, disabled: P, name: z, value: je }))) : [], w2({ theirProps: { ...t, ...n0(K, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: e2, slots: n, attrs: t, name: "Combobox" })]);
1119
+ let { name: k, disabled: P, form: Z, ...K } = e, e2 = { open: l.value === 0, disabled: P, activeIndex: L.activeOptionIndex.value, activeOption: L.activeOptionIndex.value === null ? null : L.virtual.value ? L.virtual.value.options[(f = L.activeOptionIndex.value) != null ? f : 0] : (O = (v = L.options.value[L.activeOptionIndex.value]) == null ? void 0 : v.dataRef.value) != null ? O : null, value: T.value };
1120
+ return V2(j, [...k != null && T.value != null ? me({ [k]: T.value }).map(([z, je]) => V2(Kt, Qt({ features: pe.Hidden, key: z, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: Z, disabled: P, name: z, value: je }))) : [], w2({ theirProps: { ...t, ...n0(K, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: e2, slots: n, attrs: t, name: "Combobox" })]);
1121
1121
  };
1122
1122
  } });
1123
1123
  p2({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: n, slots: t }) {
@@ -1167,7 +1167,7 @@ let c1 = p2({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1167
1167
  return;
1168
1168
  }
1169
1169
  }
1170
- let u = qt(T(() => ({ as: e.as, type: n.type })), a.buttonRef);
1170
+ let u = qt($(() => ({ as: e.as, type: n.type })), a.buttonRef);
1171
1171
  return () => {
1172
1172
  var c, d;
1173
1173
  let x = { open: a.comboboxState.value === 0, disabled: a.disabled.value, value: a.value.value }, { ...h } = e, b = { ref: a.buttonRef, id: s, type: u.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (c = B(a.optionsRef)) == null ? void 0 : c.id, "aria-expanded": a.comboboxState.value === 0, "aria-labelledby": a.labelRef.value ? [(d = B(a.labelRef)) == null ? void 0 : d.id, s].join(" ") : void 0, disabled: a.disabled.value === !0 ? !0 : void 0, onKeydown: r, onClick: i };
@@ -1175,14 +1175,14 @@ let c1 = p2({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1175
1175
  };
1176
1176
  } }), d1 = p2({ 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 }) {
1177
1177
  var s;
1178
- let a = (s = e.id) != null ? s : `headlessui-combobox-input-${P2()}`, i = y2("ComboboxInput"), r = T(() => $0(B(i.inputRef))), u = { value: !1 };
1178
+ let a = (s = e.id) != null ? s : `headlessui-combobox-input-${P2()}`, i = y2("ComboboxInput"), r = $(() => $0(B(i.inputRef))), u = { value: !1 };
1179
1179
  l({ el: i.inputRef, $el: i.inputRef });
1180
1180
  function c() {
1181
1181
  i.change(null);
1182
1182
  let _ = B(i.optionsRef);
1183
1183
  _ && (_.scrollTop = 0), i.goToOption(W.Nothing);
1184
1184
  }
1185
- let d = T(() => {
1185
+ let d = $(() => {
1186
1186
  var _;
1187
1187
  let F = i.value.value;
1188
1188
  return B(i.inputRef) ? typeof e.displayValue < "u" && F !== void 0 ? (_ = e.displayValue(F)) != null ? _ : "" : typeof F == "string" ? F : "" : "";
@@ -1207,7 +1207,7 @@ let c1 = p2({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1207
1207
  }
1208
1208
  });
1209
1209
  });
1210
- let x = I(!1);
1210
+ let x = S(!1);
1211
1211
  function h() {
1212
1212
  x.value = !0;
1213
1213
  }
@@ -1265,20 +1265,20 @@ let c1 = p2({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1265
1265
  let A = (F = _.relatedTarget) != null ? F : m2.find((f) => f !== _.currentTarget);
1266
1266
  if (u.value = !1, !((E = B(i.optionsRef)) != null && E.contains(A)) && !((L = B(i.buttonRef)) != null && L.contains(A)) && i.comboboxState.value === 0) return _.preventDefault(), i.mode.value === 0 && (i.nullable.value && i.value.value === null ? c() : i.activationTrigger.value !== 1 && i.selectActiveOption()), i.closeCombobox();
1267
1267
  }
1268
- function S(_) {
1268
+ function T(_) {
1269
1269
  var F, E, L;
1270
1270
  let A = (F = _.relatedTarget) != null ? F : m2.find((f) => f !== _.currentTarget);
1271
1271
  (E = B(i.buttonRef)) != null && E.contains(A) || (L = B(i.optionsRef)) != null && L.contains(A) || i.disabled.value || i.immediate.value && i.comboboxState.value !== 0 && (i.openCombobox(), Y2().nextFrame(() => {
1272
1272
  i.setActivationTrigger(1);
1273
1273
  }));
1274
1274
  }
1275
- let M = T(() => {
1275
+ let M = $(() => {
1276
1276
  var _, F, E, L;
1277
1277
  return (L = (E = (F = e.defaultValue) != null ? F : i.defaultValue.value !== void 0 ? (_ = e.displayValue) == null ? void 0 : _.call(e, i.defaultValue.value) : null) != null ? E : i.defaultValue.value) != null ? L : "";
1278
1278
  });
1279
1279
  return () => {
1280
1280
  var _, F, E, L, A, f, v;
1281
- let O = { open: i.comboboxState.value === 0 }, { displayValue: k, onChange: P, ...Z } = e, K = { "aria-controls": (_ = i.optionsRef.value) == null ? void 0 : _.id, "aria-expanded": i.comboboxState.value === 0, "aria-activedescendant": i.activeOptionIndex.value === null ? void 0 : i.virtual.value ? (F = i.options.value.find((e2) => !i.virtual.value.disabled(e2.dataRef.value) && i.compare(e2.dataRef.value, i.virtual.value.options[i.activeOptionIndex.value]))) == null ? void 0 : F.id : (E = i.options.value[i.activeOptionIndex.value]) == null ? void 0 : E.id, "aria-labelledby": (f = (L = B(i.labelRef)) == null ? void 0 : L.id) != null ? f : (A = B(i.buttonRef)) == null ? void 0 : A.id, "aria-autocomplete": "list", id: a, onCompositionstart: h, onCompositionend: b, onKeydown: V, onInput: w, onFocus: S, onBlur: m, role: "combobox", type: (v = t.type) != null ? v : "text", tabIndex: 0, ref: i.inputRef, defaultValue: M.value, disabled: i.disabled.value === !0 ? !0 : void 0 };
1281
+ let O = { open: i.comboboxState.value === 0 }, { displayValue: k, onChange: P, ...Z } = e, K = { "aria-controls": (_ = i.optionsRef.value) == null ? void 0 : _.id, "aria-expanded": i.comboboxState.value === 0, "aria-activedescendant": i.activeOptionIndex.value === null ? void 0 : i.virtual.value ? (F = i.options.value.find((e2) => !i.virtual.value.disabled(e2.dataRef.value) && i.compare(e2.dataRef.value, i.virtual.value.options[i.activeOptionIndex.value]))) == null ? void 0 : F.id : (E = i.options.value[i.activeOptionIndex.value]) == null ? void 0 : E.id, "aria-labelledby": (f = (L = B(i.labelRef)) == null ? void 0 : L.id) != null ? f : (A = B(i.buttonRef)) == null ? void 0 : A.id, "aria-autocomplete": "list", id: a, onCompositionstart: h, onCompositionend: b, onKeydown: V, onInput: w, onFocus: T, onBlur: m, role: "combobox", type: (v = t.type) != null ? v : "text", tabIndex: 0, ref: i.inputRef, defaultValue: M.value, disabled: i.disabled.value === !0 ? !0 : void 0 };
1282
1282
  return w2({ ourProps: K, theirProps: Z, slot: O, attrs: t, slots: o, features: A2.RenderStrategy | A2.Static, name: "ComboboxInput" });
1283
1283
  };
1284
1284
  } }), f1 = p2({ 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 }) {
@@ -1288,8 +1288,8 @@ let c1 = p2({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1288
1288
  }), f2(() => {
1289
1289
  l.optionsPropsRef.value.hold = e.hold;
1290
1290
  });
1291
- let a = e1(), i = T(() => a !== null ? (a.value & B2.Open) === B2.Open : l.comboboxState.value === 0);
1292
- Jt({ container: T(() => B(l.optionsRef)), enabled: T(() => l.comboboxState.value === 0), accept(u) {
1291
+ let a = e1(), i = $(() => a !== null ? (a.value & B2.Open) === B2.Open : l.comboboxState.value === 0);
1292
+ Jt({ container: $(() => B(l.optionsRef)), enabled: $(() => l.comboboxState.value === 0), accept(u) {
1293
1293
  return u.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : u.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
1294
1294
  }, walk(u) {
1295
1295
  u.setAttribute("role", "none");
@@ -1303,50 +1303,50 @@ let c1 = p2({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1303
1303
  return w2({ ourProps: h, theirProps: b, slot: x, attrs: n, slots: l.virtual.value && l.comboboxState.value === 0 ? { ...t, default: () => [V2(r1, {}, t.default)] } : t, features: A2.RenderStrategy | A2.Static, visible: i.value, name: "ComboboxOptions" });
1304
1304
  };
1305
1305
  } }), v1 = p2({ 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 }) {
1306
- let l = y2("ComboboxOption"), s = `headlessui-combobox-option-${P2()}`, a = I(null), i = T(() => e.disabled);
1306
+ let l = y2("ComboboxOption"), s = `headlessui-combobox-option-${P2()}`, a = S(null), i = $(() => e.disabled);
1307
1307
  o({ el: a, $el: a });
1308
- let r = T(() => {
1308
+ let r = $(() => {
1309
1309
  var m;
1310
1310
  return l.virtual.value ? l.activeOptionIndex.value === l.calculateIndex(e.value) : l.activeOptionIndex.value === null ? !1 : ((m = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : m.id) === s;
1311
- }), u = T(() => l.isSelected(e.value)), c = l2(we, null), d = T(() => ({ disabled: e.disabled, value: e.value, domRef: a, order: T(() => e.order) }));
1311
+ }), u = $(() => l.isSelected(e.value)), c = l2(we, null), d = $(() => ({ disabled: e.disabled, value: e.value, domRef: a, order: $(() => e.order) }));
1312
1312
  s2(() => l.registerOption(s, d)), R2(() => l.unregisterOption(s, r.value)), f2(() => {
1313
1313
  let m = B(a);
1314
1314
  m && (c == null || c.value.measureElement(m));
1315
1315
  }), f2(() => {
1316
1316
  l.comboboxState.value === 0 && r.value && (l.virtual.value || l.activationTrigger.value !== 0 && Q(() => {
1317
- var m, S;
1318
- return (S = (m = B(a)) == null ? void 0 : m.scrollIntoView) == null ? void 0 : S.call(m, { block: "nearest" });
1317
+ var m, T;
1318
+ return (T = (m = B(a)) == null ? void 0 : m.scrollIntoView) == null ? void 0 : T.call(m, { block: "nearest" });
1319
1319
  }));
1320
1320
  });
1321
1321
  function x(m) {
1322
1322
  m.preventDefault(), m.button === ge.Left && (i.value || (l.selectOption(s), de() || requestAnimationFrame(() => {
1323
- var S;
1324
- return (S = B(l.inputRef)) == null ? void 0 : S.focus({ preventScroll: !0 });
1323
+ var T;
1324
+ return (T = B(l.inputRef)) == null ? void 0 : T.focus({ preventScroll: !0 });
1325
1325
  }), l.mode.value === 0 && l.closeCombobox()));
1326
1326
  }
1327
1327
  function h() {
1328
1328
  var m;
1329
1329
  if (e.disabled || (m = l.virtual.value) != null && m.disabled(e.value)) return l.goToOption(W.Nothing);
1330
- let S = l.calculateIndex(e.value);
1331
- l.goToOption(W.Specific, S);
1330
+ let T = l.calculateIndex(e.value);
1331
+ l.goToOption(W.Specific, T);
1332
1332
  }
1333
1333
  let b = Gt();
1334
1334
  function g(m) {
1335
1335
  b.update(m);
1336
1336
  }
1337
1337
  function V(m) {
1338
- var S;
1339
- if (!b.wasMoved(m) || e.disabled || (S = l.virtual.value) != null && S.disabled(e.value) || r.value) return;
1338
+ var T;
1339
+ if (!b.wasMoved(m) || e.disabled || (T = l.virtual.value) != null && T.disabled(e.value) || r.value) return;
1340
1340
  let M = l.calculateIndex(e.value);
1341
1341
  l.goToOption(W.Specific, M, 0);
1342
1342
  }
1343
1343
  function w(m) {
1344
- var S;
1345
- b.wasMoved(m) && (e.disabled || (S = l.virtual.value) != null && S.disabled(e.value) || r.value && (l.optionsPropsRef.value.hold || l.goToOption(W.Nothing)));
1344
+ var T;
1345
+ b.wasMoved(m) && (e.disabled || (T = l.virtual.value) != null && T.disabled(e.value) || r.value && (l.optionsPropsRef.value.hold || l.goToOption(W.Nothing)));
1346
1346
  }
1347
1347
  return () => {
1348
- let { disabled: m } = e, S = { active: r.value, selected: u.value, disabled: m }, M = { id: s, ref: a, role: "option", tabIndex: m === !0 ? void 0 : -1, "aria-disabled": m === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onMousedown: x, onFocus: h, onPointerenter: g, onMouseenter: g, onPointermove: V, onMousemove: V, onPointerleave: w, onMouseleave: w }, _ = n0(e, ["order", "value"]);
1349
- return w2({ ourProps: M, theirProps: _, slot: S, attrs: t, slots: n, name: "ComboboxOption" });
1348
+ let { disabled: m } = e, T = { active: r.value, selected: u.value, disabled: m }, M = { id: s, ref: a, role: "option", tabIndex: m === !0 ? void 0 : -1, "aria-disabled": m === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onMousedown: x, onFocus: h, onPointerenter: g, onMouseenter: g, onPointermove: V, onMousemove: V, onPointerleave: w, onMouseleave: w }, _ = n0(e, ["order", "value"]);
1349
+ return w2({ ourProps: M, theirProps: _, slot: T, attrs: t, slots: n, name: "ComboboxOption" });
1350
1350
  };
1351
1351
  } });
1352
1352
  function p1(e, n) {
@@ -1954,7 +1954,7 @@ function R1(e, n) {
1954
1954
  });
1955
1955
  });
1956
1956
  }, !0), n._customProperties.forEach((a) => {
1957
- R(() => $(n[a]), (i, r) => {
1957
+ R(() => I(n[a]), (i, r) => {
1958
1958
  t.notifyComponentUpdate(), t.sendInspectorState(G), L2 && t.addTimelineEvent({
1959
1959
  layerId: g2,
1960
1960
  event: {
@@ -2043,7 +2043,7 @@ function P1({ app: e, store: n, options: t }) {
2043
2043
  );
2044
2044
  }
2045
2045
  function N1() {
2046
- const e = ie(!0), n = e.run(() => I({}));
2046
+ const e = ie(!0), n = e.run(() => S({}));
2047
2047
  let t = [], o = [];
2048
2048
  const l = C2({
2049
2049
  install(s) {
@@ -2116,9 +2116,9 @@ function W0(e, n, t, o) {
2116
2116
  !i && (process.env.NODE_ENV === "production" || !o) && (t.state.value[e] = l ? l() : {});
2117
2117
  const c = process.env.NODE_ENV !== "production" && o ? (
2118
2118
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
2119
- A0(I(l ? l() : {}).value)
2119
+ A0(S(l ? l() : {}).value)
2120
2120
  ) : A0(t.state.value[e]);
2121
- return t2(c, s, Object.keys(a || {}).reduce((d, x) => (process.env.NODE_ENV !== "production" && x in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${x}" in store "${e}".`), d[x] = C2(T(() => {
2121
+ return t2(c, s, Object.keys(a || {}).reduce((d, x) => (process.env.NODE_ENV !== "production" && x in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${x}" in store "${e}".`), d[x] = C2($(() => {
2122
2122
  H2(t);
2123
2123
  const h = t._s.get(e);
2124
2124
  return a[x].call(h, h);
@@ -2141,7 +2141,7 @@ function g0(e, n, t = {}, o, l, s) {
2141
2141
  let u, c, d = [], x = [], h;
2142
2142
  const b = o.state.value[e];
2143
2143
  !s && !b && (process.env.NODE_ENV === "production" || !l) && (o.state.value[e] = {});
2144
- const g = I({});
2144
+ const g = S({});
2145
2145
  let V;
2146
2146
  function w(f) {
2147
2147
  let v;
@@ -2171,7 +2171,7 @@ function g0(e, n, t = {}, o, l, s) {
2171
2171
  throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
2172
2172
  } : Ae
2173
2173
  );
2174
- function S() {
2174
+ function T() {
2175
2175
  a.stop(), d = [], x = [], o._s.delete(e);
2176
2176
  }
2177
2177
  function M(f, v) {
@@ -2222,7 +2222,7 @@ function g0(e, n, t = {}, o, l, s) {
2222
2222
  }, t2({}, r, v)));
2223
2223
  return O;
2224
2224
  },
2225
- $dispose: S
2225
+ $dispose: T
2226
2226
  }, E = se(process.env.NODE_ENV !== "production" || k2 ? t2(
2227
2227
  {
2228
2228
  _hmrPayload: _,
@@ -2276,7 +2276,7 @@ function g0(e, n, t = {}, o, l, s) {
2276
2276
  for (const v in f._hmrPayload.getters) {
2277
2277
  const O = f._hmrPayload.getters[v], k = s ? (
2278
2278
  // special handling of options api
2279
- T(() => (H2(o), O.call(E, E)))
2279
+ $(() => (H2(o), O.call(E, E)))
2280
2280
  ) : O;
2281
2281
  U2(E, v, k);
2282
2282
  }
@@ -2350,7 +2350,7 @@ This will fail in production.`);
2350
2350
  return a.$id = o, a;
2351
2351
  }
2352
2352
  const x2 = N2("loader", () => {
2353
- const e = I({
2353
+ const e = S({
2354
2354
  translation: !1,
2355
2355
  aiExplanation: !1,
2356
2356
  writing: !1
@@ -2371,32 +2371,32 @@ const x2 = N2("loader", () => {
2371
2371
  }),
2372
2372
  emits: ["update:modelValue"],
2373
2373
  setup(e) {
2374
- const n = x2(), t = e, o = qe(e, "modelValue"), l = I(""), s = I(null), a = T(() => Object.entries(t.languages).filter(
2374
+ const n = x2(), t = e, o = qe(e, "modelValue"), l = S(""), s = S(null), a = $(() => Object.entries(t.languages).filter(
2375
2375
  ([, r]) => r.toLowerCase().includes(l.value.toLowerCase())
2376
2376
  )), i = (r) => {
2377
2377
  r.target.value = "", l.value = "", s.value && s.value.$el.click();
2378
2378
  };
2379
- return (r, u) => (C(), q($(u1), {
2379
+ return (r, u) => (C(), q(I(u1), {
2380
2380
  modelValue: o.value,
2381
2381
  "onUpdate:modelValue": u[3] || (u[3] = (c) => o.value = c),
2382
- disabled: $(n).loading,
2382
+ disabled: I(n).loading,
2383
2383
  as: "div",
2384
2384
  class: "relative mt-1"
2385
2385
  }, {
2386
2386
  default: Z2(() => [
2387
- D($(d1), {
2387
+ D(I(d1), {
2388
2388
  class: "w-full bg-white border border-gray-300 rounded py-2.5 pl-3 pr-10 text-sm text-gray-800 font-medium focus:outline-none focus:ring-0.5 focus:ring-gray-400 focus:border-gray-400",
2389
2389
  onChange: u[0] || (u[0] = (c) => l.value = c.target.value),
2390
2390
  displayValue: (c) => e.languages[c],
2391
2391
  onFocus: u[1] || (u[1] = (c) => i(c))
2392
2392
  }, null, 8, ["displayValue"]),
2393
- D($(c1), {
2393
+ D(I(c1), {
2394
2394
  ref_key: "btnSelect",
2395
2395
  ref: s,
2396
2396
  class: "absolute inset-y-0 right-0 flex items-center pr-2"
2397
2397
  }, {
2398
2398
  default: Z2(() => [
2399
- D($(h1), {
2399
+ D(I(h1), {
2400
2400
  class: "h-5 w-5 text-gray-400",
2401
2401
  "aria-hidden": "true",
2402
2402
  onClick: u[2] || (u[2] = (c) => i(c))
@@ -2404,9 +2404,9 @@ const x2 = N2("loader", () => {
2404
2404
  ]),
2405
2405
  _: 1
2406
2406
  }, 512),
2407
- D($(f1), { class: "absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm z-50" }, {
2407
+ D(I(f1), { class: "absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm z-50" }, {
2408
2408
  default: Z2(() => [
2409
- (C(!0), y(j, null, X(a.value, ([c, d]) => (C(), q($(v1), {
2409
+ (C(!0), y(j, null, X(a.value, ([c, d]) => (C(), q(I(v1), {
2410
2410
  key: c,
2411
2411
  value: c
2412
2412
  }, {
@@ -2453,7 +2453,7 @@ const x2 = N2("loader", () => {
2453
2453
  },
2454
2454
  emits: ["swap"],
2455
2455
  setup(e, { emit: n }) {
2456
- const t = x2(), o = T(() => t.isLoading("translation")), l = n;
2456
+ const t = x2(), o = $(() => t.isLoading("translation")), l = n;
2457
2457
  return (s, a) => e.isBidirect ? (C(), y("button", {
2458
2458
  key: 1,
2459
2459
  onClick: a[0] || (a[0] = (i) => l("swap")),
@@ -2464,10 +2464,10 @@ const x2 = N2("loader", () => {
2464
2464
  }, q1, 8, U1));
2465
2465
  }
2466
2466
  }, T2 = N2("language", () => {
2467
- const e = I("auto"), n = I("vi"), t = I({
2467
+ const e = S("auto"), n = S("vi"), t = S({
2468
2468
  src: [],
2469
2469
  target: []
2470
- }), o = T(() => t.value.src[e.value]), l = T(() => t.value.target[n.value]);
2470
+ }), o = $(() => t.value.src[e.value]), l = $(() => t.value.target[n.value]);
2471
2471
  function s(r, u) {
2472
2472
  e.value = r == null ? void 0 : r.src, n.value = r == null ? void 0 : r.target, t.value = u;
2473
2473
  }
@@ -2492,7 +2492,7 @@ const x2 = N2("loader", () => {
2492
2492
  }, sn = ["onClick"], an = { class: "flex" }, rn = { class: "grow flex flex-col" }, un = { class: "grow flex flex-col" }, G0 = 3, cn = {
2493
2493
  __name: "Selects",
2494
2494
  setup(e) {
2495
- const n = T2(), t = I([]), o = I([]);
2495
+ const n = T2(), t = S([]), o = S([]);
2496
2496
  function l() {
2497
2497
  n.swap();
2498
2498
  }
@@ -2509,15 +2509,15 @@ const x2 = N2("loader", () => {
2509
2509
  (s) => {
2510
2510
  s && (o.value.includes(s) || (o.value.unshift(s), o.value = o.value.slice(0, G0), j2.setLocalStorage("recentTarget", o.value)));
2511
2511
  }
2512
- ), (s, a) => $(n).languages ? (C(), y("div", X1, [
2512
+ ), (s, a) => I(n).languages ? (C(), y("div", X1, [
2513
2513
  p("div", K1, [
2514
2514
  p("div", en, [
2515
2515
  t.value.length > 0 ? (C(), y("div", tn, [
2516
2516
  (C(!0), y(j, null, X(t.value, (i) => (C(), y("button", {
2517
2517
  key: i,
2518
2518
  class: "px-1 bg-baseColor border border-primaryColor text-primaryColor text-xs rounded hover:bg-primaryColor hover:text-baseColor",
2519
- onClick: (r) => $(n).src = i
2520
- }, J($(n).languages.src[i]), 9, nn))), 128))
2519
+ onClick: (r) => I(n).src = i
2520
+ }, J(I(n).languages.src[i]), 9, nn))), 128))
2521
2521
  ])) : H("", !0)
2522
2522
  ]),
2523
2523
  p("div", on, [
@@ -2525,30 +2525,30 @@ const x2 = N2("loader", () => {
2525
2525
  (C(!0), y(j, null, X(o.value, (i) => (C(), y("button", {
2526
2526
  key: i,
2527
2527
  class: "px-1 bg-baseColor border border-primaryColor text-primaryColor text-xs rounded hover:bg-primaryColor hover:text-baseColor",
2528
- onClick: (r) => $(n).target = i
2529
- }, J($(n).languages.target[i]), 9, sn))), 128))
2528
+ onClick: (r) => I(n).target = i
2529
+ }, J(I(n).languages.target[i]), 9, sn))), 128))
2530
2530
  ])) : H("", !0)
2531
2531
  ])
2532
2532
  ]),
2533
2533
  p("div", an, [
2534
2534
  p("div", rn, [
2535
2535
  D(q0, {
2536
- modelValue: $(n).src,
2537
- "onUpdate:modelValue": a[0] || (a[0] = (i) => $(n).src = i),
2538
- languages: $(n).languages.src,
2536
+ modelValue: I(n).src,
2537
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => I(n).src = i),
2538
+ languages: I(n).languages.src,
2539
2539
  class: "grow"
2540
2540
  }, null, 8, ["modelValue", "languages"])
2541
2541
  ]),
2542
2542
  D(Q1, {
2543
- isBidirect: $(n).src !== "auto",
2543
+ isBidirect: I(n).src !== "auto",
2544
2544
  class: "grow-0 mx-3 mt-4 self-start",
2545
2545
  onSwap: l
2546
2546
  }, null, 8, ["isBidirect"]),
2547
2547
  p("div", un, [
2548
2548
  D(q0, {
2549
- modelValue: $(n).target,
2550
- "onUpdate:modelValue": a[1] || (a[1] = (i) => $(n).target = i),
2551
- languages: $(n).languages.target,
2549
+ modelValue: I(n).target,
2550
+ "onUpdate:modelValue": a[1] || (a[1] = (i) => I(n).target = i),
2551
+ languages: I(n).languages.target,
2552
2552
  class: "grow"
2553
2553
  }, null, 8, ["modelValue", "languages"])
2554
2554
  ])
@@ -2570,7 +2570,7 @@ function vn(e, n) {
2570
2570
  return C(), y("span", fn);
2571
2571
  }
2572
2572
  const M0 = /* @__PURE__ */ h2(dn, [["render", vn]]), m0 = N2("tts", () => {
2573
- const e = I({
2573
+ const e = S({
2574
2574
  src: null,
2575
2575
  target: null
2576
2576
  });
@@ -2604,7 +2604,7 @@ const M0 = /* @__PURE__ */ h2(dn, [["render", vn]]), m0 = N2("tts", () => {
2604
2604
  },
2605
2605
  emits: ["loadTTS"],
2606
2606
  setup(e, { emit: n }) {
2607
- const t = m0(), o = e, l = n, s = T(() => t.tts[o.type]), a = I(!1), i = new Audio();
2607
+ const t = m0(), o = e, l = n, s = $(() => t.tts[o.type]), a = S(!1), i = new Audio(), r = S(!1);
2608
2608
  R(
2609
2609
  s,
2610
2610
  () => {
@@ -2612,36 +2612,36 @@ const M0 = /* @__PURE__ */ h2(dn, [["render", vn]]), m0 = N2("tts", () => {
2612
2612
  a.value = !1;
2613
2613
  return;
2614
2614
  }
2615
- u();
2615
+ r.value && (r.value = !1, c());
2616
2616
  },
2617
2617
  { immediate: !0 }
2618
2618
  ), R2(() => {
2619
- c(), i.src = "";
2619
+ d(), i.src = "";
2620
2620
  });
2621
- function r() {
2621
+ function u() {
2622
2622
  if (s.value) {
2623
- u();
2623
+ c();
2624
2624
  return;
2625
2625
  }
2626
- a.value = !0, l("loadTTS");
2626
+ r.value = !0, a.value = !0, l("loadTTS");
2627
2627
  }
2628
- function u() {
2629
- s.value && (i.src = s.value, a.value = !0, i.play().catch(() => {
2628
+ function c() {
2629
+ s.value && (i.src = s.value, i.playbackRate = 0.7, a.value = !0, i.play().catch(() => {
2630
2630
  a.value = !1;
2631
2631
  }));
2632
2632
  }
2633
- function c() {
2633
+ function d() {
2634
2634
  i.pause(), i.currentTime = 0, a.value = !1;
2635
2635
  }
2636
2636
  return i.onended = () => {
2637
2637
  a.value = !1;
2638
- }, (d, x) => a.value ? (C(), y("button", {
2638
+ }, (x, h) => a.value ? (C(), y("button", {
2639
2639
  key: 1,
2640
2640
  class: "btn btn-xs btn-circle",
2641
- onClick: d0(c, ["prevent"])
2641
+ onClick: d0(d, ["prevent"])
2642
2642
  }, [
2643
2643
  p("img", {
2644
- src: $(hn),
2644
+ src: I(hn),
2645
2645
  alt: "Stop",
2646
2646
  class: "w-4"
2647
2647
  }, null, 8, Cn)
@@ -2652,10 +2652,10 @@ const M0 = /* @__PURE__ */ h2(dn, [["render", vn]]), m0 = N2("tts", () => {
2652
2652
  { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
2653
2653
  ]]),
2654
2654
  disabled: e.disabled,
2655
- onClick: d0(r, ["prevent"])
2655
+ onClick: d0(u, ["prevent"])
2656
2656
  }, [
2657
2657
  p("img", {
2658
- src: $(pn),
2658
+ src: I(pn),
2659
2659
  alt: "Play",
2660
2660
  class: N(["w-4", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2661
2661
  }, null, 10, mn)
@@ -2679,7 +2679,7 @@ const M0 = /* @__PURE__ */ h2(dn, [["render", vn]]), m0 = N2("tts", () => {
2679
2679
  disabled: e.disabled
2680
2680
  }, [
2681
2681
  p("img", {
2682
- src: $(xn),
2682
+ src: I(xn),
2683
2683
  alt: "Clear",
2684
2684
  class: N(["w-4", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2685
2685
  }, null, 10, _n)
@@ -2705,7 +2705,7 @@ const M0 = /* @__PURE__ */ h2(dn, [["render", vn]]), m0 = N2("tts", () => {
2705
2705
  disabled: e.disabled
2706
2706
  }, [
2707
2707
  p("img", {
2708
- src: e.isFilled ? $(En) : $(Ln),
2708
+ src: e.isFilled ? I(En) : I(Ln),
2709
2709
  alt: "Favorite",
2710
2710
  class: N(["w-4", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2711
2711
  }, null, 10, $n)
@@ -2731,7 +2731,7 @@ const M0 = /* @__PURE__ */ h2(dn, [["render", vn]]), m0 = N2("tts", () => {
2731
2731
  disabled: e.disabled
2732
2732
  }, [
2733
2733
  p("img", {
2734
- src: e.isFilled ? $(On) : $(Mn),
2734
+ src: e.isFilled ? I(On) : I(Mn),
2735
2735
  alt: "AI",
2736
2736
  class: N(["w-4", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2737
2737
  }, null, 10, Fn)
@@ -2744,7 +2744,7 @@ const M0 = /* @__PURE__ */ h2(dn, [["render", vn]]), m0 = N2("tts", () => {
2744
2744
  disabled: Boolean
2745
2745
  },
2746
2746
  setup(e) {
2747
- const n = I("Copy"), t = () => {
2747
+ const n = S("Copy"), t = () => {
2748
2748
  n.value = "Copied", setTimeout(() => {
2749
2749
  n.value = "Copy";
2750
2750
  }, 1e3);
@@ -2762,7 +2762,7 @@ const M0 = /* @__PURE__ */ h2(dn, [["render", vn]]), m0 = N2("tts", () => {
2762
2762
  onClick: t
2763
2763
  }, [
2764
2764
  p("img", {
2765
- src: $(Bn),
2765
+ src: I(Bn),
2766
2766
  alt: "Copy",
2767
2767
  class: N(["w-3", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2768
2768
  }, null, 10, Rn)
@@ -2873,13 +2873,13 @@ const M0 = /* @__PURE__ */ h2(dn, [["render", vn]]), m0 = N2("tts", () => {
2873
2873
  ]));
2874
2874
  }
2875
2875
  }, Re = /* @__PURE__ */ h2(zn, [["__scopeId", "data-v-a687b916"]]), v2 = N2("translation", () => {
2876
- const e = I(null), n = I(null), t = I(null), o = I({
2876
+ const e = S(null), n = S(null), t = S(null), o = S({
2877
2877
  src: null,
2878
2878
  target: null
2879
- }), l = I(null), s = I([]), a = I([]), i = I([]), r = I([]), u = I({
2879
+ }), l = S(null), s = S([]), a = S([]), i = S([]), r = S([]), u = S({
2880
2880
  src: null,
2881
2881
  target: null
2882
- }), c = T2(), d = T(() => c.getLabel(e.value)), x = T(() => c.getLabel(n.value));
2882
+ }), c = T2(), d = $(() => c.getLabel(e.value)), x = $(() => c.getLabel(n.value));
2883
2883
  function h(g) {
2884
2884
  e.value = g.src, n.value = g.target, t.value = g.text, o.value = g.phonetic, l.value = g.result, s.value = g.dictionary, a.value = g.definitions, i.value = g.synonyms, r.value = g.examples, u.value = g.tts;
2885
2885
  }
@@ -2913,7 +2913,7 @@ function Un(e) {
2913
2913
  return re() ? (_0(e), !0) : !1;
2914
2914
  }
2915
2915
  function X2(e) {
2916
- return typeof e == "function" ? e() : $(e);
2916
+ return typeof e == "function" ? e() : I(e);
2917
2917
  }
2918
2918
  const Wn = typeof window < "u" && typeof document < "u";
2919
2919
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -2956,21 +2956,21 @@ function Y0(e) {
2956
2956
  }
2957
2957
  const Yn = Wn ? window : void 0;
2958
2958
  function Qn() {
2959
- const e = I(!1), n = ae();
2959
+ const e = S(!1), n = ae();
2960
2960
  return n && s2(() => {
2961
2961
  e.value = !0;
2962
2962
  }, n), e;
2963
2963
  }
2964
2964
  function Xn(e) {
2965
2965
  const n = Qn();
2966
- return T(() => (n.value, !!e()));
2966
+ return $(() => (n.value, !!e()));
2967
2967
  }
2968
2968
  function Kn(e, n, t = {}) {
2969
2969
  const { window: o = Yn, ...l } = t;
2970
2970
  let s;
2971
2971
  const a = Xn(() => o && "ResizeObserver" in o), i = () => {
2972
2972
  s && (s.disconnect(), s = void 0);
2973
- }, r = T(() => Array.isArray(e) ? e.map((d) => Y0(d)) : [Y0(e)]), u = R(
2973
+ }, r = $(() => Array.isArray(e) ? e.map((d) => Y0(d)) : [Y0(e)]), u = R(
2974
2974
  r,
2975
2975
  (d) => {
2976
2976
  if (i(), a.value && o) {
@@ -2990,7 +2990,7 @@ function Kn(e, n, t = {}) {
2990
2990
  }
2991
2991
  function l0(e) {
2992
2992
  var n;
2993
- const t = I(e == null ? void 0 : e.element), o = I(e == null ? void 0 : e.input), l = (n = e == null ? void 0 : e.styleProp) != null ? n : "height", s = I(1);
2993
+ const t = S(e == null ? void 0 : e.element), o = S(e == null ? void 0 : e.input), l = (n = e == null ? void 0 : e.styleProp) != null ? n : "height", s = S(1);
2994
2994
  function a() {
2995
2995
  var i;
2996
2996
  if (!t.value)
@@ -3021,7 +3021,7 @@ const eo = { class: "bg-white relative z-10 border rounded" }, to = {
3021
3021
  },
3022
3022
  emits: ["change", "clear", "loadTTS"],
3023
3023
  setup(e, { emit: n }) {
3024
- const t = v2(), o = e, l = I(o.text), s = T(() => t.src), a = T(() => t.srcLabel), i = T(() => {
3024
+ const t = v2(), o = e, l = S(o.text), s = $(() => t.src), a = $(() => t.srcLabel), i = $(() => {
3025
3025
  var b;
3026
3026
  return (b = t.phonetic) == null ? void 0 : b.src;
3027
3027
  }), { textarea: r } = l0({ input: l, styleProp: "minHeight" }), u = n, c = Jn(() => {
@@ -3092,10 +3092,10 @@ const eo = { class: "bg-white relative z-10 border rounded" }, to = {
3092
3092
  },
3093
3093
  emits: ["loadTTS", "favorite", "aiTranslate", "copy"],
3094
3094
  setup(e, { emit: n }) {
3095
- const t = v2(), o = T(() => t.result), l = T(() => t.target), s = T(() => t.targetLabel), a = T(() => {
3095
+ const t = v2(), o = $(() => t.result), l = $(() => t.target), s = $(() => t.targetLabel), a = $(() => {
3096
3096
  var x;
3097
3097
  return (x = t.phonetic) == null ? void 0 : x.target;
3098
- }), i = x2(), r = T(() => i.isLoading("translation")), { textarea: u, input: c } = l0({ input: o, styleProp: "minHeight" }), d = n;
3098
+ }), i = x2(), r = $(() => i.isLoading("translation")), { textarea: u, input: c } = l0({ input: o, styleProp: "minHeight" }), d = n;
3099
3099
  return (x, h) => (C(), y("div", {
3100
3100
  class: N([
3101
3101
  "relative p-0.5 bg-[length:300%_300%] bg-[position:0%_50%] border rounded",
@@ -3132,7 +3132,7 @@ const eo = { class: "bg-white relative z-10 border rounded" }, to = {
3132
3132
  rows: "2",
3133
3133
  spellcheck: "false"
3134
3134
  }, null, 512), [
3135
- [t0, $(c)]
3135
+ [t0, I(c)]
3136
3136
  ])
3137
3137
  ])
3138
3138
  ])
@@ -3146,10 +3146,10 @@ const eo = { class: "bg-white relative z-10 border rounded" }, to = {
3146
3146
  setup(e) {
3147
3147
  const n = e;
3148
3148
  return (t, o) => (C(), y("button", ao, [
3149
- n.isExpanded ? (C(), q($(g1), {
3149
+ n.isExpanded ? (C(), q(I(g1), {
3150
3150
  key: 0,
3151
3151
  class: "w-7 text-gray-400"
3152
- })) : (C(), q($(p1), {
3152
+ })) : (C(), q(I(p1), {
3153
3153
  key: 1,
3154
3154
  class: "w-7 text-gray-400"
3155
3155
  }))
@@ -3159,7 +3159,7 @@ const eo = { class: "bg-white relative z-10 border rounded" }, to = {
3159
3159
  __name: "Dictionary",
3160
3160
  emits: ["translate"],
3161
3161
  setup(e, { emit: n }) {
3162
- const t = I(!0), o = v2(), l = T2(), s = T(() => o.dictionary), a = n, i = () => {
3162
+ const t = S(!0), o = v2(), l = T2(), s = $(() => o.dictionary), a = n, i = () => {
3163
3163
  t.value = !t.value;
3164
3164
  }, r = (u) => {
3165
3165
  a("translate", u, o.target, o.src), l.src = o.target, l.target = o.src, window.scrollTo(0, 0);
@@ -3203,7 +3203,7 @@ const eo = { class: "bg-white relative z-10 border rounded" }, to = {
3203
3203
  }, xo = {
3204
3204
  __name: "Definition",
3205
3205
  setup(e) {
3206
- const n = I(!0), t = v2(), o = T(() => t.definitions), l = () => {
3206
+ const n = S(!0), t = v2(), o = $(() => t.definitions), l = () => {
3207
3207
  n.value = !n.value;
3208
3208
  };
3209
3209
  return (s, a) => (C(), y(j, null, [
@@ -3241,7 +3241,7 @@ const eo = { class: "bg-white relative z-10 border rounded" }, to = {
3241
3241
  }, wo = /* @__PURE__ */ p("h2", { class: "card-title text-base font-bold text-textCustom" }, "Examples", -1), yo = { class: "text-textCustom text-sm list-disc list-outside ml-5 my-2" }, _o = ["innerHTML"], Eo = {
3242
3242
  __name: "Example",
3243
3243
  setup(e) {
3244
- const n = I(!0), t = v2(), o = T(() => t.examples), l = () => {
3244
+ const n = S(!0), t = v2(), o = $(() => t.examples), l = () => {
3245
3245
  n.value = !n.value;
3246
3246
  };
3247
3247
  return (s, a) => (C(), y(j, null, [
@@ -3268,7 +3268,7 @@ const eo = { class: "bg-white relative z-10 border rounded" }, to = {
3268
3268
  __name: "Synonyms",
3269
3269
  emits: ["translate"],
3270
3270
  setup(e, { emit: n }) {
3271
- const t = I(!0), o = v2(), l = T(() => o.synonyms), s = n, a = () => {
3271
+ const t = S(!0), o = v2(), l = $(() => o.synonyms), s = n, a = () => {
3272
3272
  t.value = !t.value;
3273
3273
  }, i = (r) => {
3274
3274
  s("translate", r), window.scrollTo(0, 0);
@@ -3324,7 +3324,7 @@ const eo = { class: "bg-white relative z-10 border rounded" }, to = {
3324
3324
  disabled: e.disabled
3325
3325
  }, [
3326
3326
  p("img", {
3327
- src: e.isExpanded ? $(Mo) : $(ko),
3327
+ src: e.isExpanded ? I(Mo) : I(ko),
3328
3328
  alt: "AI",
3329
3329
  class: N(["w-6", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
3330
3330
  }, null, 10, Fo)
@@ -3351,7 +3351,7 @@ const eo = { class: "bg-white relative z-10 border rounded" }, to = {
3351
3351
  },
3352
3352
  emits: ["aiExplain"],
3353
3353
  setup(e, { emit: n }) {
3354
- const t = x2(), o = T(() => t.isLoading("aiExplanation")), l = n;
3354
+ const t = x2(), o = $(() => t.isLoading("aiExplanation")), l = n;
3355
3355
  function s() {
3356
3356
  l("aiExplain");
3357
3357
  }
@@ -3445,7 +3445,7 @@ const Q0 = {
3445
3445
  "copy"
3446
3446
  ],
3447
3447
  setup(e, { emit: n }) {
3448
- const t = I(""), o = e, l = l2("translationStore"), s = l2("ttsStore"), a = l2("languageStore"), i = l2("loaderStore"), r = n, u = () => {
3448
+ const t = S(""), o = e, l = l2("translationStore"), s = l2("ttsStore"), a = l2("languageStore"), i = l2("loaderStore"), r = n, u = () => {
3449
3449
  const w = o.opt.target;
3450
3450
  Wo.includes(w) ? Q0.supportRTL() : Q0.removeRTL();
3451
3451
  };
@@ -3488,10 +3488,10 @@ const Q0 = {
3488
3488
  const m = w === "src" ? l.text : l.result;
3489
3489
  r("loadTTS", { type: w, data: m });
3490
3490
  }
3491
- function h(w, m = a.src, S = a.target) {
3491
+ function h(w, m = a.src, T = a.target) {
3492
3492
  w && (V(), t.value = w, i.setLoading("translation", !0), r("translate", {
3493
3493
  src: m,
3494
- target: S,
3494
+ target: T,
3495
3495
  text: w
3496
3496
  }));
3497
3497
  }
@@ -3514,7 +3514,7 @@ const Q0 = {
3514
3514
  w && w.getBoundingClientRect().top < 0 && w.scrollIntoView({ behavior: "smooth" });
3515
3515
  }
3516
3516
  return (w, m) => {
3517
- var S, M, _, F, E;
3517
+ var T, M, _, F, E;
3518
3518
  return C(), y("div", Go, [
3519
3519
  D(cn),
3520
3520
  p("div", Jo, [
@@ -3538,7 +3538,7 @@ const Q0 = {
3538
3538
  isTTS: e.isTTS,
3539
3539
  onCopy: m[1] || (m[1] = (L) => {
3540
3540
  var A;
3541
- return w.$emit("copy", (A = $(l)) == null ? void 0 : A.result);
3541
+ return w.$emit("copy", (A = I(l)) == null ? void 0 : A.result);
3542
3542
  }),
3543
3543
  onAiTranslate: b,
3544
3544
  onFavorite: m[2] || (m[2] = (L) => w.$emit("favorite")),
@@ -3548,29 +3548,29 @@ const Q0 = {
3548
3548
  ])
3549
3549
  ]),
3550
3550
  e.translation ? (C(), y("div", Ko, [
3551
- ((S = $(l).result) == null ? void 0 : S.length) > e.aiExplainMinLength ? (C(), y("div", el, [
3551
+ ((T = I(l).result) == null ? void 0 : T.length) > e.aiExplainMinLength ? (C(), y("div", el, [
3552
3552
  D(jo, {
3553
3553
  isAIExplain: e.isAIExplain,
3554
3554
  explanation: e.explanation,
3555
3555
  onAiExplain: g
3556
3556
  }, null, 8, ["isAIExplain", "explanation"])
3557
3557
  ])) : H("", !0),
3558
- (M = $(l).dictionary) != null && M.length ? (C(), y("div", tl, [
3558
+ (M = I(l).dictionary) != null && M.length ? (C(), y("div", tl, [
3559
3559
  p("div", nl, [
3560
3560
  D(po, { onTranslate: h })
3561
3561
  ])
3562
3562
  ])) : H("", !0),
3563
- (_ = $(l).definitions) != null && _.length ? (C(), y("div", ol, [
3563
+ (_ = I(l).definitions) != null && _.length ? (C(), y("div", ol, [
3564
3564
  p("div", ll, [
3565
3565
  D(xo)
3566
3566
  ])
3567
3567
  ])) : H("", !0),
3568
- (F = $(l).synonyms) != null && F.length ? (C(), y("div", sl, [
3568
+ (F = I(l).synonyms) != null && F.length ? (C(), y("div", sl, [
3569
3569
  p("div", il, [
3570
3570
  D(Oo, { onTranslate: h })
3571
3571
  ])
3572
3572
  ])) : H("", !0),
3573
- (E = $(l).examples) != null && E.length ? (C(), y("div", al, [
3573
+ (E = I(l).examples) != null && E.length ? (C(), y("div", al, [
3574
3574
  p("div", rl, [
3575
3575
  D(Eo)
3576
3576
  ])
@@ -3593,7 +3593,7 @@ const Q0 = {
3593
3593
  "aria-label": "Retry"
3594
3594
  }, [
3595
3595
  p("img", {
3596
- src: $(fl),
3596
+ src: I(fl),
3597
3597
  alt: "Retry",
3598
3598
  class: N(["h-5 w-5 text-primaryColor", { "opacity-50": e.disabled }])
3599
3599
  }, null, 10, pl)
@@ -3620,7 +3620,7 @@ const Q0 = {
3620
3620
  onClick: t[0] || (t[0] = (o) => n.$emit("toggle"))
3621
3621
  }, [
3622
3622
  p("img", {
3623
- src: e.isDiffMode ? $(gl) : $(ml),
3623
+ src: e.isDiffMode ? I(gl) : I(ml),
3624
3624
  alt: e.isDiffMode ? "Hide Differences" : "Show Differences",
3625
3625
  class: N(["w-4", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
3626
3626
  }, null, 10, xl)
@@ -3695,7 +3695,7 @@ const Q0 = {
3695
3695
  },
3696
3696
  emits: ["change", "clear", "improve"],
3697
3697
  setup(e, { emit: n }) {
3698
- const t = e, o = I(t.text), { textarea: l } = l0({ input: o, styleProp: "minHeight" }), s = n;
3698
+ const t = e, o = S(t.text), { textarea: l } = l0({ input: o, styleProp: "minHeight" }), s = n;
3699
3699
  function a() {
3700
3700
  if (!o.value) {
3701
3701
  i();
@@ -3739,7 +3739,7 @@ const Q0 = {
3739
3739
  onInput: a,
3740
3740
  onFocus: r,
3741
3741
  onKeydown: Ge(d0(u, ["ctrl", "prevent"]), ["enter"]),
3742
- placeholder: `Min ${$($2).IMPROVE_INPUT_MIN_LENGTH} characters. ${$(f0) ? "" : "Ctrl+Enter to improve"}`
3742
+ placeholder: `Min ${I($2).IMPROVE_INPUT_MIN_LENGTH} characters. ${I(f0) ? "" : "Ctrl+Enter to improve"}`
3743
3743
  }, null, 40, Ll), [
3744
3744
  [
3745
3745
  t0,
@@ -3803,9 +3803,9 @@ a2.prototype = {
3803
3803
  })();
3804
3804
  else
3805
3805
  for (; c <= d && Date.now() <= h; ) {
3806
- var S = m();
3807
- if (S)
3808
- return S;
3806
+ var T = m();
3807
+ if (T)
3808
+ return T;
3809
3809
  }
3810
3810
  },
3811
3811
  addToPath: function(n, t, o, l, s) {
@@ -3997,7 +3997,7 @@ function ne(e, n, t, o) {
3997
3997
  var g = o.value.match(/^\s*/)[0], V = n.value.match(/\s*$/)[0], w = te(V, g);
3998
3998
  n.value = W2(n.value, w);
3999
3999
  } else if (e) {
4000
- var m = e.value.match(/\s*$/)[0], S = n.value.match(/^\s*/)[0], M = te(m, S);
4000
+ var m = e.value.match(/\s*$/)[0], T = n.value.match(/^\s*/)[0], M = te(m, T);
4001
4001
  n.value = O2(n.value, M);
4002
4002
  }
4003
4003
  }
@@ -4105,7 +4105,7 @@ const Vl = { class: "bg-white relative z-10 border rounded" }, Fl = { class: "fl
4105
4105
  },
4106
4106
  emits: ["copy", "change", "clear"],
4107
4107
  setup(e, { emit: n }) {
4108
- const t = e, o = x2(), l = T(() => o.isLoading("writing")), s = T(() => l.value ? "" : t.text), a = I(""), i = I($2.DEFAULT_DIFF_MODE), { textarea: r } = l0({ input: s, styleProp: "minHeight" }), u = n;
4108
+ const t = e, o = x2(), l = $(() => o.isLoading("writing")), s = $(() => l.value ? "" : t.text), a = S(""), i = S($2.DEFAULT_DIFF_MODE), { textarea: r } = l0({ input: s, styleProp: "minHeight" }), u = n;
4109
4109
  function c() {
4110
4110
  !l.value && s.value && u("copy", s.value);
4111
4111
  }
@@ -4196,7 +4196,7 @@ const Vl = { class: "bg-white relative z-10 border rounded" }, Fl = { class: "fl
4196
4196
  },
4197
4197
  emits: ["update:modelValue", "action"],
4198
4198
  setup(e, { emit: n }) {
4199
- const t = e, o = n, l = I(!1), s = I(t.modelValue), a = I(null), i = T(() => t.options.find((h) => h.value === s.value) || t.options[0]);
4199
+ const t = e, o = n, l = S(!1), s = S(t.modelValue), a = S(null), i = $(() => t.options.find((h) => h.value === s.value) || t.options[0]);
4200
4200
  function r() {
4201
4201
  o("action");
4202
4202
  }
@@ -4368,7 +4368,7 @@ const Vl = { class: "bg-white relative z-10 border rounded" }, Fl = { class: "fl
4368
4368
  p("div", Ts, [
4369
4369
  D(Tl, {
4370
4370
  class: "my-2 lg:my-0 w-full flex-grow lg:min-h-[50vh]",
4371
- text: $(t).text,
4371
+ text: I(t).text,
4372
4372
  onChange: i,
4373
4373
  onClear: r,
4374
4374
  onImprove: d
@@ -4380,30 +4380,30 @@ const Vl = { class: "bg-white relative z-10 border rounded" }, Fl = { class: "fl
4380
4380
  class: "w-full",
4381
4381
  modelValue: l.opt.type,
4382
4382
  options: a,
4383
- loading: $(o).isLoading("writing"),
4384
- isTextEmpty: $(t).text && ((w = $(t).text) == null ? void 0 : w.length) < $($2).IMPROVE_INPUT_MIN_LENGTH,
4385
- hasResult: !!$(t).result,
4383
+ loading: I(o).isLoading("writing"),
4384
+ isTextEmpty: I(t).text && ((w = I(t).text) == null ? void 0 : w.length) < I($2).IMPROVE_INPUT_MIN_LENGTH,
4385
+ hasResult: !!I(t).result,
4386
4386
  "onUpdate:modelValue": b,
4387
4387
  onAction: d
4388
4388
  }, null, 8, ["modelValue", "loading", "isTextEmpty", "hasResult"])
4389
4389
  ]),
4390
4390
  D(hl, {
4391
4391
  class: "ml-2 lg:m-2",
4392
- disabled: ((m = $(t).text) == null ? void 0 : m.length) < 5 || !$(t).result,
4392
+ disabled: ((m = I(t).text) == null ? void 0 : m.length) < 5 || !I(t).result,
4393
4393
  onClick: x
4394
4394
  }, null, 8, ["disabled"])
4395
4395
  ]),
4396
4396
  p("div", Os, [
4397
4397
  D(Hl, {
4398
4398
  class: "my-2 lg:my-0 w-full flex-grow lg:min-h-[50vh]",
4399
- text: $(t).result,
4400
- originalText: $(t).text,
4399
+ text: I(t).result,
4400
+ originalText: I(t).text,
4401
4401
  type: l.opt.type,
4402
4402
  onChange: u,
4403
4403
  onClear: c,
4404
- onCopy: V[0] || (V[0] = (S) => {
4404
+ onCopy: V[0] || (V[0] = (T) => {
4405
4405
  var M;
4406
- return s("copy", (M = $(t)) == null ? void 0 : M.result);
4406
+ return s("copy", (M = I(t)) == null ? void 0 : M.result);
4407
4407
  })
4408
4408
  }, null, 8, ["text", "originalText", "type"])
4409
4409
  ])
@@ -4412,7 +4412,7 @@ const Vl = { class: "bg-white relative z-10 border rounded" }, Fl = { class: "fl
4412
4412
  };
4413
4413
  }
4414
4414
  }, oe = N2("writing", () => {
4415
- const e = I(null), n = I(""), t = I(""), o = I([]), l = I(null), s = T2(), a = T(() => s.getLabel(e.value));
4415
+ const e = S(null), n = S(""), t = S(""), o = S([]), l = S(null), s = T2(), a = $(() => s.getLabel(e.value));
4416
4416
  function i(u) {
4417
4417
  e.value = u.src, n.value = u.text, t.value = u.result, o.value = u.suggestions, l.value = u.action;
4418
4418
  }
@@ -4505,7 +4505,7 @@ const Vl = { class: "bg-white relative z-10 border rounded" }, Fl = { class: "fl
4505
4505
  isAIExplain: !1,
4506
4506
  aiExplainMinLength: 5,
4507
4507
  isTTS: !0
4508
- }, g = T(() => Object.assign({}, b, h.options)), V = (w) => {
4508
+ }, g = $(() => Object.assign({}, b, h.options)), V = (w) => {
4509
4509
  if (w.ctrlKey)
4510
4510
  switch (w.key) {
4511
4511
  case "1":
@@ -4524,10 +4524,10 @@ const Vl = { class: "bg-white relative z-10 border rounded" }, Fl = { class: "fl
4524
4524
  p("div", Vs, [
4525
4525
  D(pt, {
4526
4526
  "header-settings": e.headerSettings,
4527
- onReader: m[0] || (m[0] = (S) => u("reader")),
4528
- onSettings: m[1] || (m[1] = (S) => u("settings")),
4529
- onFullScreen: m[2] || (m[2] = (S) => u("fullscreen")),
4530
- onAccount: m[3] || (m[3] = (S) => u("account"))
4527
+ onReader: m[0] || (m[0] = (T) => u("reader")),
4528
+ onSettings: m[1] || (m[1] = (T) => u("settings")),
4529
+ onFullScreen: m[2] || (m[2] = (T) => u("fullscreen")),
4530
+ onAccount: m[3] || (m[3] = (T) => u("account"))
4531
4531
  }, null, 8, ["header-settings"])
4532
4532
  ]),
4533
4533
  p("div", Fs, [
@@ -4537,20 +4537,20 @@ const Vl = { class: "bg-white relative z-10 border rounded" }, Fl = { class: "fl
4537
4537
  "w-1/2 px-4 py-2 text-sm font-medium",
4538
4538
  g.value.activeTab === "translate" ? "text-primaryColor border-b-2 border-primaryColor" : "text-textSecondary hover:text-primaryColor"
4539
4539
  ]),
4540
- onClick: m[4] || (m[4] = (S) => u("activeTab", "translate"))
4540
+ onClick: m[4] || (m[4] = (T) => u("activeTab", "translate"))
4541
4541
  }, [
4542
4542
  F2(" Translate "),
4543
- $(f0) ? H("", !0) : (C(), y("span", Bs, Ds))
4543
+ I(f0) ? H("", !0) : (C(), y("span", Bs, Ds))
4544
4544
  ], 2),
4545
4545
  p("button", {
4546
4546
  class: N([
4547
4547
  "w-1/2 px-4 py-2 text-sm font-medium",
4548
4548
  g.value.activeTab === "write" ? "text-primaryColor border-b-2 border-primaryColor" : "text-textSecondary hover:text-primaryColor"
4549
4549
  ]),
4550
- onClick: m[5] || (m[5] = (S) => u("activeTab", "write"))
4550
+ onClick: m[5] || (m[5] = (T) => u("activeTab", "write"))
4551
4551
  }, [
4552
4552
  F2(" Write "),
4553
- $(f0) ? H("", !0) : (C(), y("span", Rs, Ns))
4553
+ I(f0) ? H("", !0) : (C(), y("span", Rs, Ns))
4554
4554
  ], 2)
4555
4555
  ])
4556
4556
  ]),
@@ -4570,22 +4570,22 @@ const Vl = { class: "bg-white relative z-10 border rounded" }, Fl = { class: "fl
4570
4570
  isAITranslate: g.value.isAITranslate,
4571
4571
  isAIExplain: g.value.isAIExplain,
4572
4572
  aiExplainMinLength: g.value.aiExplainMinLength,
4573
- onOpt: m[6] || (m[6] = (S) => c("updateOpts", S)),
4574
- onTranslate: m[7] || (m[7] = (S) => c("translate", S)),
4575
- onLoadTTS: m[8] || (m[8] = (S) => c("loadTTS", S)),
4576
- onFavorite: m[9] || (m[9] = (S) => c("favorite")),
4577
- onAiTranslate: m[10] || (m[10] = (S) => c("aiTranslate", S)),
4578
- onAiExplain: m[11] || (m[11] = (S) => c("aiExplain", S)),
4579
- onCopy: m[12] || (m[12] = (S) => x("copy", S))
4573
+ onOpt: m[6] || (m[6] = (T) => c("updateOpts", T)),
4574
+ onTranslate: m[7] || (m[7] = (T) => c("translate", T)),
4575
+ onLoadTTS: m[8] || (m[8] = (T) => c("loadTTS", T)),
4576
+ onFavorite: m[9] || (m[9] = (T) => c("favorite")),
4577
+ onAiTranslate: m[10] || (m[10] = (T) => c("aiTranslate", T)),
4578
+ onAiExplain: m[11] || (m[11] = (T) => c("aiExplain", T)),
4579
+ onCopy: m[12] || (m[12] = (T) => x("copy", T))
4580
4580
  }, null, 8, ["opt", "languages", "translation", "explanation", "tts", "isTTS", "isFavoriteFeatureEnabled", "isAITranslateFeatureEnabled", "isFavorite", "isAITranslate", "isAIExplain", "aiExplainMinLength"])) : H("", !0),
4581
4581
  g.value.activeTab === "write" ? (C(), q(Ms, {
4582
4582
  key: 1,
4583
4583
  opt: g.value.writeOpts,
4584
4584
  languages: g.value.languages,
4585
4585
  writing: e.data.writing,
4586
- onOpt: m[13] || (m[13] = (S) => d("updateOpts", S)),
4587
- onWrite: m[14] || (m[14] = (S) => d("write", S)),
4588
- onCopy: m[15] || (m[15] = (S) => x("copy", S))
4586
+ onOpt: m[13] || (m[13] = (T) => d("updateOpts", T)),
4587
+ onWrite: m[14] || (m[14] = (T) => d("write", T)),
4588
+ onCopy: m[15] || (m[15] = (T) => x("copy", T))
4589
4589
  }, null, 8, ["opt", "languages", "writing"])) : H("", !0)
4590
4590
  ])
4591
4591
  ])