@ddict/popup 1.6.2 → 1.6.4

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 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";
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, createCommentVNode as R, createBlock as W, 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 = {
@@ -86,7 +86,10 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
86
86
  ])
87
87
  ]));
88
88
  }
89
- }, ao = { class: "flex justify-between" }, ro = /* @__PURE__ */ Be('<div class="flex flex-row"><svg class="w-24 text-primary" viewBox="0 0 96 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M40.151 8.94498H35.7256V23.055H40.151C44.7473 23.055 47.826 20.0825 47.826 15.9795C47.8267 11.8093 44.7678 8.94498 40.151 8.94498ZM40.1312 21.025H37.993V10.9974H40.1312C43.4217 10.9974 45.4972 12.9846 45.4972 15.9795C45.4965 18.9296 43.4012 21.025 40.1312 21.025Z" fill="currentColor"></path><path d="M54.5158 8.94498H50.0903V23.055H54.5158C59.1121 23.055 62.1908 20.0825 62.1908 15.9795C62.1914 11.8093 59.1351 8.94498 54.5158 8.94498ZM54.496 21.025H52.3578V10.9974H54.496C57.789 10.9974 59.8619 12.9846 59.8619 15.9795C59.8613 18.9296 57.766 21.025 54.496 21.025Z" fill="currentColor"></path><path d="M66.7237 8.94498H64.4575V23.055H66.7237V8.94498Z" fill="currentColor"></path><path d="M76.4301 10.7837C78.29 10.7837 79.7436 11.6603 80.7487 13.2207L82.4589 11.9591C81.2401 9.97057 78.9957 8.70953 76.409 8.70953C72.3898 8.64555 68.9048 11.9591 68.9906 16C68.9048 20.0403 72.3898 23.3544 76.409 23.2905C79.0385 23.2905 81.2618 22.0294 82.4589 20.0409L80.7487 18.7793C79.7436 20.3397 78.29 21.2163 76.4301 21.2163C73.544 21.2163 71.3418 18.993 71.3418 16C71.3418 13.007 73.5433 10.7837 76.4301 10.7837Z" fill="currentColor"></path><path d="M83.3135 8.94498V10.9757H88.0595V23.055H90.3256V10.9757H95.0934V8.94498H83.3135Z" fill="currentColor"></path><path d="M8.66351 4.7121H4.604V15.4427L6.87208 13.3839V6.79143H8.64559C11.4639 6.79143 13.2835 8.47857 13.2835 11.0877C13.2835 13.6916 11.421 15.4427 8.64559 15.4427H4.604V17.5016H8.66351C12.7531 17.5016 15.6098 14.8644 15.6098 11.0877C15.6104 7.27575 12.8196 4.7121 8.66351 4.7121Z" fill="currentColor"></path><path d="M26.2425 9.25528H21.5502L20.7537 14.293L21.4523 14.3308L21.4069 14.7294C21.3916 14.8656 21.3289 15.0448 21.112 15.1734C21.1017 15.9399 21.0845 17.0493 20.9706 18.1766H26.5937V19.8586H21.4677C22.4133 22.9424 24.1254 24.9648 26.5611 25.8669L27.1536 26.0864L26.6795 26.5048C26.4875 26.6737 26.2182 27.0141 26.0896 27.2489L25.9258 27.5438L25.6155 27.4152C23.167 26.4095 21.4223 24.4926 20.2905 21.563C19.3602 24.3365 17.5797 26.2553 14.8592 27.428L14.5438 27.5617L14.3775 27.2642C14.2764 27.08 14.0294 26.7876 13.8151 26.5989L13.3564 26.1951L13.9239 25.9655C16.4555 24.9392 18.064 23.1414 18.8228 20.4837C19.6647 19.8381 20.2099 18.8221 20.2169 17.6801V4.53231C20.2169 2.58349 18.6334 1 16.6846 1H3.53487C1.58349 1 0 2.58349 0 4.53231V17.6795C0 19.6283 1.58349 21.2143 3.53487 21.2143H8.25528V27.2431C8.25528 29.3135 9.93986 31 12.0096 31H26.2431C28.3161 31 29.9974 29.3129 29.9974 27.2431V13.0096C29.9974 10.9392 28.3154 9.25528 26.2425 9.25528ZM3.53487 19.4517C2.55662 19.4517 1.762 18.6603 1.762 17.6788V4.53231C1.762 3.55662 2.55598 2.762 3.53487 2.762H16.6839C17.6571 2.762 18.4517 3.55598 18.4517 4.53231V17.6795C18.4517 17.778 18.444 17.8733 18.4267 17.9667C18.3941 18.1811 18.3231 18.38 18.215 18.5592C17.9149 19.0934 17.3372 19.4517 16.6846 19.4517H3.53487Z" fill="currentColor"></path></svg></div>', 1), io = { class: "flex" }, uo = /* @__PURE__ */ f("svg", {
89
+ }, ao = { class: "flex justify-between" }, ro = { class: "flex flex-row items-center" }, io = /* @__PURE__ */ Be('<svg class="w-24 text-primary" viewBox="0 0 96 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M40.151 8.94498H35.7256V23.055H40.151C44.7473 23.055 47.826 20.0825 47.826 15.9795C47.8267 11.8093 44.7678 8.94498 40.151 8.94498ZM40.1312 21.025H37.993V10.9974H40.1312C43.4217 10.9974 45.4972 12.9846 45.4972 15.9795C45.4965 18.9296 43.4012 21.025 40.1312 21.025Z" fill="currentColor"></path><path d="M54.5158 8.94498H50.0903V23.055H54.5158C59.1121 23.055 62.1908 20.0825 62.1908 15.9795C62.1914 11.8093 59.1351 8.94498 54.5158 8.94498ZM54.496 21.025H52.3578V10.9974H54.496C57.789 10.9974 59.8619 12.9846 59.8619 15.9795C59.8613 18.9296 57.766 21.025 54.496 21.025Z" fill="currentColor"></path><path d="M66.7237 8.94498H64.4575V23.055H66.7237V8.94498Z" fill="currentColor"></path><path d="M76.4301 10.7837C78.29 10.7837 79.7436 11.6603 80.7487 13.2207L82.4589 11.9591C81.2401 9.97057 78.9957 8.70953 76.409 8.70953C72.3898 8.64555 68.9048 11.9591 68.9906 16C68.9048 20.0403 72.3898 23.3544 76.409 23.2905C79.0385 23.2905 81.2618 22.0294 82.4589 20.0409L80.7487 18.7793C79.7436 20.3397 78.29 21.2163 76.4301 21.2163C73.544 21.2163 71.3418 18.993 71.3418 16C71.3418 13.007 73.5433 10.7837 76.4301 10.7837Z" fill="currentColor"></path><path d="M83.3135 8.94498V10.9757H88.0595V23.055H90.3256V10.9757H95.0934V8.94498H83.3135Z" fill="currentColor"></path><path d="M8.66351 4.7121H4.604V15.4427L6.87208 13.3839V6.79143H8.64559C11.4639 6.79143 13.2835 8.47857 13.2835 11.0877C13.2835 13.6916 11.421 15.4427 8.64559 15.4427H4.604V17.5016H8.66351C12.7531 17.5016 15.6098 14.8644 15.6098 11.0877C15.6104 7.27575 12.8196 4.7121 8.66351 4.7121Z" fill="currentColor"></path><path d="M26.2425 9.25528H21.5502L20.7537 14.293L21.4523 14.3308L21.4069 14.7294C21.3916 14.8656 21.3289 15.0448 21.112 15.1734C21.1017 15.9399 21.0845 17.0493 20.9706 18.1766H26.5937V19.8586H21.4677C22.4133 22.9424 24.1254 24.9648 26.5611 25.8669L27.1536 26.0864L26.6795 26.5048C26.4875 26.6737 26.2182 27.0141 26.0896 27.2489L25.9258 27.5438L25.6155 27.4152C23.167 26.4095 21.4223 24.4926 20.2905 21.563C19.3602 24.3365 17.5797 26.2553 14.8592 27.428L14.5438 27.5617L14.3775 27.2642C14.2764 27.08 14.0294 26.7876 13.8151 26.5989L13.3564 26.1951L13.9239 25.9655C16.4555 24.9392 18.064 23.1414 18.8228 20.4837C19.6647 19.8381 20.2099 18.8221 20.2169 17.6801V4.53231C20.2169 2.58349 18.6334 1 16.6846 1H3.53487C1.58349 1 0 2.58349 0 4.53231V17.6795C0 19.6283 1.58349 21.2143 3.53487 21.2143H8.25528V27.2431C8.25528 29.3135 9.93986 31 12.0096 31H26.2431C28.3161 31 29.9974 29.3129 29.9974 27.2431V13.0096C29.9974 10.9392 28.3154 9.25528 26.2425 9.25528ZM3.53487 19.4517C2.55662 19.4517 1.762 18.6603 1.762 17.6788V4.53231C1.762 3.55662 2.55598 2.762 3.53487 2.762H16.6839C17.6571 2.762 18.4517 3.55598 18.4517 4.53231V17.6795C18.4517 17.778 18.444 17.8733 18.4267 17.9667C18.3941 18.1811 18.3231 18.38 18.215 18.5592C17.9149 19.0934 17.3372 19.4517 16.6846 19.4517H3.53487Z" fill="currentColor"></path></svg>', 1), uo = {
90
+ key: 0,
91
+ class: "ml-2 px-1.5 py-0.5 text-[10px] font-medium bg-primary/10 text-primary border border-primary/20 rounded-full"
92
+ }, co = { class: "flex" }, fo = /* @__PURE__ */ f("svg", {
90
93
  class: "w-6 h-6 text-primary",
91
94
  viewBox: "0 0 24 24",
92
95
  fill: "none",
@@ -110,9 +113,9 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
110
113
  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",
111
114
  fill: "currentColor"
112
115
  })
113
- ], -1), co = [
114
- uo
115
- ], fo = /* @__PURE__ */ f("svg", {
116
+ ], -1), vo = [
117
+ fo
118
+ ], po = /* @__PURE__ */ f("svg", {
116
119
  class: "w-6 h-6 text-primary",
117
120
  viewBox: "0 0 24 24",
118
121
  fill: "none",
@@ -139,10 +142,10 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
139
142
  "stroke-linecap": "round",
140
143
  "stroke-linejoin": "round"
141
144
  })
142
- ], -1), vo = {
145
+ ], -1), ho = {
143
146
  key: 0,
144
147
  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", {
148
+ }, mo = /* @__PURE__ */ f("svg", {
146
149
  class: "w-6 h-6 text-primary",
147
150
  viewBox: "0 0 24 24",
148
151
  fill: "none",
@@ -155,9 +158,9 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
155
158
  "stroke-linecap": "round",
156
159
  "stroke-linejoin": "round"
157
160
  })
158
- ], -1), ho = [
159
- po
160
- ], mo = /* @__PURE__ */ f("svg", {
161
+ ], -1), go = [
162
+ mo
163
+ ], bo = /* @__PURE__ */ f("svg", {
161
164
  class: "w-6 h-6 text-primary",
162
165
  viewBox: "0 0 24 24",
163
166
  fill: "none",
@@ -171,11 +174,11 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
171
174
  d: "M7.75 12C7.75 9.65278 9.65279 7.75 12 7.75C14.3472 7.75 16.25 9.65278 16.25 12C16.25 14.3472 14.3472 16.25 12 16.25C9.65279 16.25 7.75 14.3472 7.75 12ZM12 9.25C10.4812 9.25 9.25 10.4812 9.25 12C9.25 13.5188 10.4812 14.75 12 14.75C13.5188 14.75 14.75 13.5188 14.75 12C14.75 10.4812 13.5188 9.25 12 9.25Z",
172
175
  fill: "currentColor"
173
176
  })
174
- ], -1), go = [
175
- mo
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
+ ], -1), Co = [
177
178
  bo
178
- ], xo = {
179
+ ], xo = /* @__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), yo = [
180
+ xo
181
+ ], wo = {
179
182
  __name: "Header",
180
183
  props: {
181
184
  headerSettings: {
@@ -193,6 +196,10 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
193
196
  currentTheme: {
194
197
  type: String,
195
198
  default: "lofi"
199
+ },
200
+ isPremium: {
201
+ type: Boolean,
202
+ default: !1
196
203
  }
197
204
  },
198
205
  emits: ["settings", "fullScreen", "reader", "learn", "account", "themeChange"],
@@ -201,8 +208,11 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
201
208
  t("themeChange", l);
202
209
  };
203
210
  return (l, s) => (h(), g("div", ao, [
204
- ro,
205
- f("div", io, [
211
+ f("div", ro, [
212
+ io,
213
+ e.isPremium ? (h(), g("span", uo, "Premium")) : R("", !0)
214
+ ]),
215
+ f("div", co, [
206
216
  e.headerSettings.showThemeSelector ? (h(), W(so, {
207
217
  key: 0,
208
218
  "current-theme": e.currentTheme,
@@ -212,30 +222,29 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
212
222
  key: 1,
213
223
  class: "btn btn-ghost btn-circle btn-sm",
214
224
  onClick: s[0] || (s[0] = (r) => t("reader"))
215
- }, co)) : R("", !0),
216
- e.headerSettings.showLearn > 0 ? (h(), g("button", {
217
- key: 2,
225
+ }, vo)) : R("", !0),
226
+ f("button", {
218
227
  class: "btn btn-ghost btn-circle btn-sm relative",
219
228
  onClick: s[1] || (s[1] = (r) => t("learn"))
220
229
  }, [
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),
230
+ po,
231
+ e.headerSettings.showLearn > 0 ? (h(), g("span", ho, G(e.headerSettings.showLearn > 999 ? "999+" : e.headerSettings.showLearn), 1)) : R("", !0)
232
+ ]),
224
233
  e.headerSettings.showAccount ? (h(), g("button", {
225
- key: 3,
234
+ key: 2,
226
235
  class: "btn btn-ghost btn-circle btn-sm",
227
236
  onClick: s[2] || (s[2] = (r) => t("account"))
228
- }, ho)) : R("", !0),
237
+ }, go)) : R("", !0),
229
238
  e.headerSettings.showSettings ? (h(), g("button", {
230
- key: 4,
239
+ key: 3,
231
240
  class: "btn btn-ghost btn-circle btn-sm",
232
241
  onClick: s[3] || (s[3] = (r) => t("settings"))
233
- }, go)) : R("", !0),
242
+ }, Co)) : R("", !0),
234
243
  e.headerSettings.showFullscreen ? (h(), g("button", {
235
- key: 5,
244
+ key: 4,
236
245
  class: "btn btn-ghost btn-circle btn-sm",
237
246
  onClick: s[4] || (s[4] = (r) => t("fullScreen"))
238
- }, Co)) : R("", !0)
247
+ }, yo)) : R("", !0)
239
248
  ])
240
249
  ]));
241
250
  }
@@ -277,17 +286,17 @@ function ut(e, n) {
277
286
  throw new Error("Unexpected undefined");
278
287
  return e;
279
288
  }
280
- const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
289
+ const _o = (e, n) => Math.abs(e - n) < 1, To = (e, n, t) => {
281
290
  let o;
282
291
  return function(...l) {
283
292
  e.clearTimeout(o), o = e.setTimeout(() => n.apply(this, l), t);
284
293
  };
285
- }, _o = (e) => e, To = (e) => {
294
+ }, So = (e) => e, Eo = (e) => {
286
295
  const n = Math.max(e.startIndex - e.overscan, 0), t = Math.min(e.endIndex + e.overscan, e.count - 1), o = [];
287
296
  for (let l = n; l <= t; l++)
288
297
  o.push(l);
289
298
  return o;
290
- }, So = (e, n) => {
299
+ }, $o = (e, n) => {
291
300
  const t = e.scrollElement;
292
301
  if (!t)
293
302
  return;
@@ -317,7 +326,7 @@ const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
317
326
  };
318
327
  }, Pt = {
319
328
  passive: !0
320
- }, Eo = typeof window > "u" ? !0 : "onscrollend" in window, $o = (e, n) => {
329
+ }, Oo = typeof window > "u" ? !0 : "onscrollend" in window, Io = (e, n) => {
321
330
  const t = e.scrollElement;
322
331
  if (!t)
323
332
  return;
@@ -325,8 +334,8 @@ const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
325
334
  if (!o)
326
335
  return;
327
336
  let l = 0;
328
- const s = Eo ? () => {
329
- } : wo(
337
+ const s = Oo ? () => {
338
+ } : To(
330
339
  o,
331
340
  () => {
332
341
  n(l, !1);
@@ -338,7 +347,7 @@ const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
338
347
  return i(), t.addEventListener("scroll", a, Pt), t.addEventListener("scrollend", i, Pt), () => {
339
348
  t.removeEventListener("scroll", a), t.removeEventListener("scrollend", i);
340
349
  };
341
- }, Oo = (e, n, t) => {
350
+ }, Lo = (e, n, t) => {
342
351
  if (n != null && n.borderBoxSize) {
343
352
  const o = n.borderBoxSize[0];
344
353
  if (o)
@@ -349,7 +358,7 @@ const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
349
358
  return Math.round(
350
359
  e.getBoundingClientRect()[t.options.horizontal ? "width" : "height"]
351
360
  );
352
- }, Io = (e, {
361
+ }, ko = (e, {
353
362
  adjustments: n = 0,
354
363
  behavior: t
355
364
  }, o) => {
@@ -360,7 +369,7 @@ const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
360
369
  behavior: t
361
370
  });
362
371
  };
363
- class Lo {
372
+ class Mo {
364
373
  constructor(n) {
365
374
  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__ */ (() => {
366
375
  let t = null;
@@ -395,11 +404,11 @@ class Lo {
395
404
  scrollPaddingStart: 0,
396
405
  scrollPaddingEnd: 0,
397
406
  horizontal: !1,
398
- getItemKey: _o,
399
- rangeExtractor: To,
407
+ getItemKey: So,
408
+ rangeExtractor: Eo,
400
409
  onChange: () => {
401
410
  },
402
- measureElement: Oo,
411
+ measureElement: Lo,
403
412
  initialRect: { width: 0, height: 0 },
404
413
  scrollMargin: 0,
405
414
  gap: 0,
@@ -519,7 +528,7 @@ class Lo {
519
528
  }
520
529
  ), this.calculateRange = Le(
521
530
  () => [this.getMeasurements(), this.getSize(), this.getScrollOffset()],
522
- (t, o, l) => this.range = t.length > 0 && o > 0 ? ko({
531
+ (t, o, l) => this.range = t.length > 0 && o > 0 ? Ao({
523
532
  measurements: t,
524
533
  outerSize: o,
525
534
  scrollOffset: l
@@ -639,7 +648,7 @@ class Lo {
639
648
  const [u] = ut(
640
649
  this.getOffsetForIndex(t, a)
641
650
  );
642
- yo(u, this.getScrollOffset()) || this.scrollToIndex(t, { align: a, behavior: l });
651
+ _o(u, this.getScrollOffset()) || this.scrollToIndex(t, { align: a, behavior: l });
643
652
  } else
644
653
  this.scrollToIndex(t, { align: a, behavior: l });
645
654
  }));
@@ -680,7 +689,7 @@ const dn = (e, n, t, o) => {
680
689
  }
681
690
  return e > 0 ? e - 1 : 0;
682
691
  };
683
- function ko({
692
+ function Ao({
684
693
  measurements: e,
685
694
  outerSize: n,
686
695
  scrollOffset: t
@@ -691,8 +700,8 @@ function ko({
691
700
  r++;
692
701
  return { startIndex: s, endIndex: r };
693
702
  }
694
- function Mo(e) {
695
- const n = new Lo(M(e)), t = Un(n), o = n._didMount();
703
+ function Vo(e) {
704
+ const n = new Mo(M(e)), t = Un(n), o = n._didMount();
696
705
  return F(
697
706
  () => M(e).getScrollElement(),
698
707
  (l) => {
@@ -717,23 +726,23 @@ function Mo(e) {
717
726
  }
718
727
  ), Tt(o), t;
719
728
  }
720
- function Ao(e) {
721
- return Mo(
729
+ function Do(e) {
730
+ return Vo(
722
731
  L(() => ({
723
- observeElementRect: So,
724
- observeElementOffset: $o,
725
- scrollToFn: Io,
732
+ observeElementRect: $o,
733
+ observeElementOffset: Io,
734
+ scrollToFn: ko,
726
735
  ...M(e)
727
736
  }))
728
737
  );
729
738
  }
730
- function Vo(e, n, t) {
739
+ function Ro(e, n, t) {
731
740
  let o = O(t == null ? void 0 : t.value), l = L(() => e.value !== void 0);
732
741
  return [L(() => l.value ? e.value : o.value), function(s) {
733
742
  return l.value || (o.value = s), n == null ? void 0 : n(s);
734
743
  }];
735
744
  }
736
- function Do(e) {
745
+ function Po(e) {
737
746
  typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((n) => setTimeout(() => {
738
747
  throw n;
739
748
  }));
@@ -753,7 +762,7 @@ function Qe() {
753
762
  n.add(() => clearTimeout(o));
754
763
  }, microTask(...t) {
755
764
  let o = { current: !0 };
756
- return Do(() => {
765
+ return Po(() => {
757
766
  o.current && t[0]();
758
767
  }), n.add(() => {
759
768
  o.current = !1;
@@ -776,19 +785,19 @@ function Qe() {
776
785
  } };
777
786
  return n;
778
787
  }
779
- function Ro() {
788
+ function No() {
780
789
  let e = Qe();
781
790
  return Fe(() => e.dispose()), e;
782
791
  }
783
- function Po() {
784
- let e = Ro();
792
+ function Bo() {
793
+ let e = No();
785
794
  return (n) => {
786
795
  e.dispose(), e.nextFrame(n);
787
796
  };
788
797
  }
789
- let No = Symbol("headlessui.useid"), Bo = 0;
798
+ let Fo = Symbol("headlessui.useid"), jo = 0;
790
799
  function je() {
791
- return le(No, () => `${++Bo}`)();
800
+ return le(Fo, () => `${++jo}`)();
792
801
  }
793
802
  function N(e) {
794
803
  var n;
@@ -804,8 +813,8 @@ function ue(e, n, ...t) {
804
813
  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(", ")}.`);
805
814
  throw Error.captureStackTrace && Error.captureStackTrace(o, ue), o;
806
815
  }
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 {
816
+ var Ho = Object.defineProperty, zo = (e, n, t) => n in e ? Ho(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, Nt = (e, n, t) => (zo(e, typeof n != "symbol" ? n + "" : n, t), t);
817
+ let Zo = class {
809
818
  constructor() {
810
819
  Nt(this, "current", this.detect()), Nt(this, "currentId", 0);
811
820
  }
@@ -827,7 +836,7 @@ let Ho = class {
827
836
  detect() {
828
837
  return typeof window > "u" || typeof document > "u" ? "server" : "client";
829
838
  }
830
- }, Ot = new Ho();
839
+ }, Ot = new Zo();
831
840
  function It(e) {
832
841
  if (Ot.isServer) return null;
833
842
  if (e instanceof Node) return e.ownerDocument;
@@ -838,8 +847,8 @@ function It(e) {
838
847
  return document;
839
848
  }
840
849
  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(",");
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) {
850
+ var Uo = ((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))(Uo || {}), Wo = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Wo || {}), qo = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(qo || {}), fn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(fn || {});
851
+ function Go(e, n = 0) {
843
852
  var t;
844
853
  return e === ((t = It(e)) == null ? void 0 : t.body) ? !1 : ue(n, { 0() {
845
854
  return e.matches(Bt);
@@ -852,13 +861,13 @@ function Wo(e, n = 0) {
852
861
  return !1;
853
862
  } });
854
863
  }
855
- var qo = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(qo || {});
864
+ var Jo = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(Jo || {});
856
865
  typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
857
866
  e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
858
867
  }, !0), document.addEventListener("click", (e) => {
859
868
  e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
860
869
  }, !0));
861
- function Go(e, n = (t) => t) {
870
+ function Yo(e, n = (t) => t) {
862
871
  return e.slice().sort((t, o) => {
863
872
  let l = n(t), s = n(o);
864
873
  if (l === null || s === null) return 0;
@@ -866,26 +875,26 @@ function Go(e, n = (t) => t) {
866
875
  return r & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : r & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
867
876
  });
868
877
  }
869
- function Jo() {
878
+ function Qo() {
870
879
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
871
880
  }
872
- function Yo() {
881
+ function Xo() {
873
882
  return /Android/gi.test(window.navigator.userAgent);
874
883
  }
875
884
  function vn() {
876
- return Jo() || Yo();
885
+ return Qo() || Xo();
877
886
  }
878
887
  function Ue(e, n, t) {
879
888
  Ot.isServer || fe((o) => {
880
889
  document.addEventListener(e, n, t), o(() => document.removeEventListener(e, n, t));
881
890
  });
882
891
  }
883
- function Qo(e, n, t) {
892
+ function Ko(e, n, t) {
884
893
  Ot.isServer || fe((o) => {
885
894
  window.addEventListener(e, n, t), o(() => window.removeEventListener(e, n, t));
886
895
  });
887
896
  }
888
- function Xo(e, n, t = L(() => !0)) {
897
+ function el(e, n, t = L(() => !0)) {
889
898
  function o(s, r) {
890
899
  if (!t.value || s.defaultPrevented) return;
891
900
  let a = r(s);
@@ -898,7 +907,7 @@ function Xo(e, n, t = L(() => !0)) {
898
907
  let c = u instanceof HTMLElement ? u : N(u);
899
908
  if (c != null && c.contains(a) || s.composed && s.composedPath().includes(c)) return;
900
909
  }
901
- return !Wo(a, fn.Loose) && a.tabIndex !== -1 && s.preventDefault(), n(s, a);
910
+ return !Go(a, fn.Loose) && a.tabIndex !== -1 && s.preventDefault(), n(s, a);
902
911
  }
903
912
  let l = O(null);
904
913
  Ue("pointerdown", (s) => {
@@ -909,14 +918,14 @@ function Xo(e, n, t = L(() => !0)) {
909
918
  t.value && (l.value = ((a = (r = s.composedPath) == null ? void 0 : r.call(s)) == null ? void 0 : a[0]) || s.target);
910
919
  }, !0), Ue("click", (s) => {
911
920
  vn() || l.value && (o(s, () => l.value), l.value = null);
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);
921
+ }, !0), Ue("touchend", (s) => o(s, () => s.target instanceof HTMLElement ? s.target : null), !0), Ko("blur", (s) => o(s, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
913
922
  }
914
923
  function Ft(e, n) {
915
924
  if (e) return e;
916
925
  let t = n ?? "button";
917
926
  if (typeof t == "string" && t.toLowerCase() === "button") return "button";
918
927
  }
919
- function Ko(e, n) {
928
+ function tl(e, n) {
920
929
  let t = O(Ft(e.value.type, e.value.as));
921
930
  return se(() => {
922
931
  t.value = Ft(e.value.type, e.value.as);
@@ -928,7 +937,7 @@ function Ko(e, n) {
928
937
  function jt(e) {
929
938
  return [e.screenX, e.screenY];
930
939
  }
931
- function el() {
940
+ function nl() {
932
941
  let e = O([-1, -1]);
933
942
  return { wasMoved(n) {
934
943
  let t = jt(n);
@@ -937,7 +946,7 @@ function el() {
937
946
  e.value = jt(n);
938
947
  } };
939
948
  }
940
- function tl({ container: e, accept: n, walk: t, enabled: o }) {
949
+ function ol({ container: e, accept: n, walk: t, enabled: o }) {
941
950
  fe(() => {
942
951
  let l = e.value;
943
952
  if (!l || o !== void 0 && !o.value) return;
@@ -947,7 +956,7 @@ function tl({ container: e, accept: n, walk: t, enabled: o }) {
947
956
  for (; a.nextNode(); ) t(a.currentNode);
948
957
  });
949
958
  }
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 || {});
959
+ var De = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(De || {}), ll = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(ll || {});
951
960
  function ye({ visible: e = !0, features: n = 0, ourProps: t, theirProps: o, ...l }) {
952
961
  var s;
953
962
  let r = hn(o, t), a = Object.assign(l, { props: r });
@@ -973,7 +982,7 @@ function ct({ props: e, attrs: n, slots: t, slot: o, name: l }) {
973
982
  if (a === "template") {
974
983
  if (u = pn(u ?? []), Object.keys(i).length > 0 || Object.keys(n).length > 0) {
975
984
  let [d, ...x] = u ?? [];
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(`
985
+ if (!al(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(`
977
986
  `), "", "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(`
978
987
  `)].join(`
979
988
  `));
@@ -1003,7 +1012,7 @@ function hn(...e) {
1003
1012
  } });
1004
1013
  return n;
1005
1014
  }
1006
- function ol(e) {
1015
+ function sl(e) {
1007
1016
  let n = Object.assign({}, e);
1008
1017
  for (let t in n) n[t] === void 0 && delete n[t];
1009
1018
  return n;
@@ -1013,11 +1022,11 @@ function ot(e, n = []) {
1013
1022
  for (let o of n) o in t && delete t[o];
1014
1023
  return t;
1015
1024
  }
1016
- function ll(e) {
1025
+ function al(e) {
1017
1026
  return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
1018
1027
  }
1019
1028
  var mn = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(mn || {});
1020
- let sl = pe({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: n, attrs: t }) {
1029
+ let rl = pe({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: n, attrs: t }) {
1021
1030
  return () => {
1022
1031
  var o;
1023
1032
  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" } } };
@@ -1025,27 +1034,27 @@ let sl = pe({ name: "Hidden", props: { as: { type: [Object, String], default: "d
1025
1034
  };
1026
1035
  } }), gn = Symbol("Context");
1027
1036
  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 || {});
1028
- function al() {
1037
+ function il() {
1029
1038
  return le(gn, null);
1030
1039
  }
1031
- function rl(e) {
1040
+ function ul(e) {
1032
1041
  ce(gn, e);
1033
1042
  }
1034
1043
  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 || {});
1035
- function il(e) {
1044
+ function cl(e) {
1036
1045
  function n() {
1037
1046
  document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", n));
1038
1047
  }
1039
1048
  typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", n), n());
1040
1049
  }
1041
1050
  let ge = [];
1042
- il(() => {
1051
+ cl(() => {
1043
1052
  function e(n) {
1044
1053
  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));
1045
1054
  }
1046
1055
  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 });
1047
1056
  });
1048
- function ul(e) {
1057
+ function dl(e) {
1049
1058
  throw new Error("Unexpected object: " + e);
1050
1059
  }
1051
1060
  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 || {});
@@ -1078,7 +1087,7 @@ function Ht(e, n) {
1078
1087
  case 5:
1079
1088
  return null;
1080
1089
  default:
1081
- ul(e);
1090
+ dl(e);
1082
1091
  }
1083
1092
  }
1084
1093
  function Cn(e = {}, n = null, t = []) {
@@ -1092,10 +1101,10 @@ function yn(e, n, t) {
1092
1101
  if (Array.isArray(t)) for (let [o, l] of t.entries()) yn(e, xn(n, o.toString()), l);
1093
1102
  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);
1094
1103
  }
1095
- function cl(e, n) {
1104
+ function fl(e, n) {
1096
1105
  return e === n;
1097
1106
  }
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 || {});
1107
+ var vl = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(vl || {}), pl = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(pl || {}), hl = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Focus = 1] = "Focus", e[e.Other = 2] = "Other", e))(hl || {});
1099
1108
  let wn = Symbol("ComboboxContext");
1100
1109
  function we(e) {
1101
1110
  let n = le(wn, null);
@@ -1105,13 +1114,13 @@ function we(e) {
1105
1114
  }
1106
1115
  return n;
1107
1116
  }
1108
- let _n = Symbol("VirtualContext"), pl = pe({ name: "VirtualProvider", setup(e, { slots: n }) {
1117
+ let _n = Symbol("VirtualContext"), ml = pe({ name: "VirtualProvider", setup(e, { slots: n }) {
1109
1118
  let t = we("VirtualProvider"), o = L(() => {
1110
1119
  let a = N(t.optionsRef);
1111
1120
  if (!a) return { start: 0, end: 0 };
1112
1121
  let i = window.getComputedStyle(a);
1113
1122
  return { start: parseFloat(i.paddingBlockStart || i.paddingTop), end: parseFloat(i.paddingBlockEnd || i.paddingBottom) };
1114
- }), l = Ao(L(() => ({ scrollPaddingStart: o.value.start, scrollPaddingEnd: o.value.end, count: t.virtual.value.options.length, estimateSize() {
1123
+ }), l = Do(L(() => ({ scrollPaddingStart: o.value.start, scrollPaddingEnd: o.value.end, count: t.virtual.value.options.length, estimateSize() {
1115
1124
  return 40;
1116
1125
  }, getScrollElement() {
1117
1126
  return N(t.optionsRef);
@@ -1127,13 +1136,13 @@ let _n = Symbol("VirtualContext"), pl = pe({ name: "VirtualProvider", setup(e, {
1127
1136
  t.activeOptionIndex.value !== null && t.virtual.value.options.length > t.activeOptionIndex.value && l.value.scrollToIndex(t.activeOptionIndex.value);
1128
1137
  }
1129
1138
  } }, 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" } })))];
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 }) {
1139
+ } }), gl = 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 }) {
1131
1140
  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);
1132
1141
  function C(v = (p) => p) {
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;
1142
+ 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) : Yo(k, (H) => N(H.dataRef.domRef)), j = p ? A.indexOf(p) : null;
1134
1143
  return j === -1 && (j = null), { options: A, activeOptionIndex: j };
1135
1144
  }
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;
1145
+ let b = L(() => e.multiple ? 1 : 0), I = L(() => e.nullable), [$, w] = Ro(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;
1137
1146
  function V(v) {
1138
1147
  return ue(b.value, { 0() {
1139
1148
  return w == null ? void 0 : w(v);
@@ -1155,7 +1164,7 @@ let _n = Symbol("VirtualContext"), pl = pe({ name: "VirtualProvider", setup(e, {
1155
1164
  let k = e.by;
1156
1165
  return (v == null ? void 0 : v[k]) === (p == null ? void 0 : p[k]);
1157
1166
  }
1158
- return e.by === null ? cl(v, p) : e.by(v, p);
1167
+ return e.by === null ? fl(v, p) : e.by(v, p);
1159
1168
  }, calculateIndex(v) {
1160
1169
  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));
1161
1170
  }, 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) {
@@ -1249,7 +1258,7 @@ let _n = Symbol("VirtualContext"), pl = pe({ name: "VirtualProvider", setup(e, {
1249
1258
  }, isActive(v) {
1250
1259
  return d.value === E.calculateIndex(v);
1251
1260
  } };
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 })));
1261
+ el([r, a, i], () => E.closeCombobox(), L(() => l.value === 0)), ce(wn, E), ul(L(() => ue(l.value, { 0: Re.Open, 1: Re.Closed })));
1253
1262
  let D = L(() => {
1254
1263
  var v;
1255
1264
  return (v = N(r)) == null ? void 0 : v.closest("form");
@@ -1268,7 +1277,7 @@ let _n = Symbol("VirtualContext"), pl = pe({ name: "VirtualProvider", setup(e, {
1268
1277
  }), () => {
1269
1278
  var v, p, k;
1270
1279
  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" })]);
1280
+ return Ve(z, [...A != null && y.value != null ? Cn({ [A]: y.value }).map(([Z, zn]) => Ve(rl, sl({ 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" })]);
1272
1281
  };
1273
1282
  } });
1274
1283
  pe({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: n, slots: t }) {
@@ -1283,7 +1292,7 @@ pe({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "lab
1283
1292
  return ye({ ourProps: u, theirProps: i, slot: a, attrs: n, slots: t, name: "ComboboxLabel" });
1284
1293
  };
1285
1294
  } });
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 }) {
1295
+ let bl = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: n, slots: t, expose: o }) {
1287
1296
  var l;
1288
1297
  let s = (l = e.id) != null ? l : `headlessui-combobox-button-${je()}`, r = we("ComboboxButton");
1289
1298
  o({ el: r.buttonRef, $el: r.buttonRef });
@@ -1318,13 +1327,13 @@ let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1318
1327
  return;
1319
1328
  }
1320
1329
  }
1321
- let u = Ko(L(() => ({ as: e.as, type: n.type })), r.buttonRef);
1330
+ let u = tl(L(() => ({ as: e.as, type: n.type })), r.buttonRef);
1322
1331
  return () => {
1323
1332
  var c, d;
1324
1333
  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 };
1325
1334
  return ye({ ourProps: C, theirProps: m, slot: x, attrs: n, slots: t, name: "ComboboxButton" });
1326
1335
  };
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 }) {
1336
+ } }), Cl = 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 }) {
1328
1337
  var s;
1329
1338
  let r = (s = e.id) != null ? s : `headlessui-combobox-input-${je()}`, a = we("ComboboxInput"), i = L(() => It(N(a.inputRef))), u = { value: !1 };
1330
1339
  l({ el: a.inputRef, $el: a.inputRef });
@@ -1367,7 +1376,7 @@ let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1367
1376
  x.value = !1;
1368
1377
  });
1369
1378
  }
1370
- let b = Po();
1379
+ let b = Bo();
1371
1380
  function I(T) {
1372
1381
  switch (u.value = !0, b(() => {
1373
1382
  u.value = !1;
@@ -1432,15 +1441,15 @@ let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1432
1441
  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 };
1433
1442
  return ye({ ourProps: K, theirProps: H, slot: k, attrs: t, slots: o, features: De.RenderStrategy | De.Static, name: "ComboboxInput" });
1434
1443
  };
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 }) {
1444
+ } }), xl = 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 }) {
1436
1445
  let l = we("ComboboxOptions"), s = `headlessui-combobox-options-${je()}`;
1437
1446
  o({ el: l.optionsRef, $el: l.optionsRef }), fe(() => {
1438
1447
  l.optionsPropsRef.value.static = e.static;
1439
1448
  }), fe(() => {
1440
1449
  l.optionsPropsRef.value.hold = e.hold;
1441
1450
  });
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) {
1451
+ let r = il(), a = L(() => r !== null ? (r.value & Re.Open) === Re.Open : l.comboboxState.value === 0);
1452
+ ol({ container: L(() => N(l.optionsRef)), enabled: L(() => l.comboboxState.value === 0), accept(u) {
1444
1453
  return u.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : u.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
1445
1454
  }, walk(u) {
1446
1455
  u.setAttribute("role", "none");
@@ -1451,9 +1460,9 @@ let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1451
1460
  return () => {
1452
1461
  var u, c, d;
1453
1462
  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"]);
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" });
1463
+ return ye({ ourProps: m, theirProps: C, slot: x, attrs: n, slots: l.virtual.value && l.comboboxState.value === 0 ? { ...t, default: () => [Ve(ml, {}, t.default)] } : t, features: De.RenderStrategy | De.Static, visible: a.value, name: "ComboboxOptions" });
1455
1464
  };
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 }) {
1465
+ } }), yl = 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 }) {
1457
1466
  let l = we("ComboboxOption"), s = `headlessui-combobox-option-${je()}`, r = O(null), a = L(() => e.disabled);
1458
1467
  o({ el: r, $el: r });
1459
1468
  let i = L(() => {
@@ -1481,7 +1490,7 @@ let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1481
1490
  let y = l.calculateIndex(e.value);
1482
1491
  l.goToOption(q.Specific, y);
1483
1492
  }
1484
- let C = el();
1493
+ let C = nl();
1485
1494
  function b(w) {
1486
1495
  C.update(w);
1487
1496
  }
@@ -1500,7 +1509,7 @@ let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1500
1509
  return ye({ ourProps: _, theirProps: T, slot: y, attrs: t, slots: n, name: "ComboboxOption" });
1501
1510
  };
1502
1511
  } });
1503
- function xl(e, n) {
1512
+ function wl(e, n) {
1504
1513
  return h(), g("svg", {
1505
1514
  xmlns: "http://www.w3.org/2000/svg",
1506
1515
  viewBox: "0 0 20 20",
@@ -1515,7 +1524,7 @@ function xl(e, n) {
1515
1524
  })
1516
1525
  ]);
1517
1526
  }
1518
- function yl(e, n) {
1527
+ function _l(e, n) {
1519
1528
  return h(), g("svg", {
1520
1529
  xmlns: "http://www.w3.org/2000/svg",
1521
1530
  viewBox: "0 0 20 20",
@@ -1530,7 +1539,7 @@ function yl(e, n) {
1530
1539
  })
1531
1540
  ]);
1532
1541
  }
1533
- function wl(e, n) {
1542
+ function Tl(e, n) {
1534
1543
  return h(), g("svg", {
1535
1544
  xmlns: "http://www.w3.org/2000/svg",
1536
1545
  viewBox: "0 0 20 20",
@@ -1555,22 +1564,22 @@ function dt(e, n) {
1555
1564
  }
1556
1565
  delete e[n];
1557
1566
  }
1558
- function _l() {
1567
+ function Sl() {
1559
1568
  return Tn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1560
1569
  }
1561
1570
  function Tn() {
1562
1571
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
1563
1572
  }
1564
- const Tl = typeof Proxy == "function", Sl = "devtools-plugin:setup", El = "plugin:settings:set";
1573
+ const El = typeof Proxy == "function", $l = "devtools-plugin:setup", Ol = "plugin:settings:set";
1565
1574
  let _e, pt;
1566
- function $l() {
1575
+ function Il() {
1567
1576
  var e;
1568
1577
  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;
1569
1578
  }
1570
- function Ol() {
1571
- return $l() ? pt.now() : Date.now();
1579
+ function Ll() {
1580
+ return Il() ? pt.now() : Date.now();
1572
1581
  }
1573
- class Il {
1582
+ class kl {
1574
1583
  constructor(n, t) {
1575
1584
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = n, this.hook = t;
1576
1585
  const o = {};
@@ -1598,9 +1607,9 @@ class Il {
1598
1607
  s = r;
1599
1608
  },
1600
1609
  now() {
1601
- return Ol();
1610
+ return Ll();
1602
1611
  }
1603
- }, t && t.on(El, (r, a) => {
1612
+ }, t && t.on(Ol, (r, a) => {
1604
1613
  r === this.plugin.id && this.fallbacks.setSettings(a);
1605
1614
  }), this.proxiedOn = new Proxy({}, {
1606
1615
  get: (r, a) => this.target ? this.target.on[a] : (...i) => {
@@ -1633,11 +1642,11 @@ class Il {
1633
1642
  }
1634
1643
  }
1635
1644
  function Sn(e, n) {
1636
- const t = e, o = Tn(), l = _l(), s = Tl && t.enableEarlyProxy;
1645
+ const t = e, o = Tn(), l = Sl(), s = El && t.enableEarlyProxy;
1637
1646
  if (l && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
1638
- l.emit(Sl, e, n);
1647
+ l.emit($l, e, n);
1639
1648
  else {
1640
- const r = s ? new Il(t, l) : null;
1649
+ const r = s ? new kl(t, l) : null;
1641
1650
  (o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
1642
1651
  pluginDescriptor: t,
1643
1652
  setupFn: n,
@@ -1663,7 +1672,7 @@ var ae;
1663
1672
  e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
1664
1673
  })(ae || (ae = {}));
1665
1674
  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 };
1666
- function Ll(e, { autoBom: n = !1 } = {}) {
1675
+ function Ml(e, { autoBom: n = !1 } = {}) {
1667
1676
  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;
1668
1677
  }
1669
1678
  function Lt(e, n, t) {
@@ -1693,16 +1702,16 @@ function Ge(e) {
1693
1702
  }
1694
1703
  const Je = typeof navigator == "object" ? navigator : { userAgent: "" }, On = /Macintosh/.test(Je.userAgent) && /AppleWebKit/.test(Je.userAgent) && !/Safari/.test(Je.userAgent), In = lt ? (
1695
1704
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
1696
- typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !On ? kl : (
1705
+ typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !On ? Al : (
1697
1706
  // Use msSaveOrOpenBlob as a second approach
1698
- "msSaveOrOpenBlob" in Je ? Ml : (
1707
+ "msSaveOrOpenBlob" in Je ? Vl : (
1699
1708
  // Fallback to using FileReader and a popup
1700
- Al
1709
+ Dl
1701
1710
  )
1702
1711
  )
1703
1712
  ) : () => {
1704
1713
  };
1705
- function kl(e, n = "download", t) {
1714
+ function Al(e, n = "download", t) {
1706
1715
  const o = document.createElement("a");
1707
1716
  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() {
1708
1717
  URL.revokeObjectURL(o.href);
@@ -1710,7 +1719,7 @@ function kl(e, n = "download", t) {
1710
1719
  Ge(o);
1711
1720
  }, 0));
1712
1721
  }
1713
- function Ml(e, n = "download", t) {
1722
+ function Vl(e, n = "download", t) {
1714
1723
  if (typeof e == "string")
1715
1724
  if ($n(e))
1716
1725
  Lt(e, n, t);
@@ -1721,9 +1730,9 @@ function Ml(e, n = "download", t) {
1721
1730
  });
1722
1731
  }
1723
1732
  else
1724
- navigator.msSaveOrOpenBlob(Ll(e, t), n);
1733
+ navigator.msSaveOrOpenBlob(Ml(e, t), n);
1725
1734
  }
1726
- function Al(e, n, t, o) {
1735
+ function Dl(e, n, t, o) {
1727
1736
  if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof e == "string")
1728
1737
  return Lt(e, n, t);
1729
1738
  const l = e.type === "application/octet-stream", s = /constructor/i.test(String(zt.HTMLElement)) || "safari" in zt, r = /CriOS\/[\d]+/.test(navigator.userAgent);
@@ -1756,7 +1765,7 @@ function Ln() {
1756
1765
  function kn(e) {
1757
1766
  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;
1758
1767
  }
1759
- async function Vl(e) {
1768
+ async function Rl(e) {
1760
1769
  if (!Ln())
1761
1770
  try {
1762
1771
  await navigator.clipboard.writeText(JSON.stringify(e.state.value)), U("Global state copied to clipboard.");
@@ -1766,7 +1775,7 @@ async function Vl(e) {
1766
1775
  U("Failed to serialize the state. Check the console for more details.", "error"), console.error(n);
1767
1776
  }
1768
1777
  }
1769
- async function Dl(e) {
1778
+ async function Pl(e) {
1770
1779
  if (!Ln())
1771
1780
  try {
1772
1781
  Mn(e, JSON.parse(await navigator.clipboard.readText())), U("Global state pasted from clipboard.");
@@ -1776,7 +1785,7 @@ async function Dl(e) {
1776
1785
  U("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(n);
1777
1786
  }
1778
1787
  }
1779
- async function Rl(e) {
1788
+ async function Nl(e) {
1780
1789
  try {
1781
1790
  In(new Blob([JSON.stringify(e.state.value)], {
1782
1791
  type: "text/plain;charset=utf-8"
@@ -1786,7 +1795,7 @@ async function Rl(e) {
1786
1795
  }
1787
1796
  }
1788
1797
  let ie;
1789
- function Pl() {
1798
+ function Bl() {
1790
1799
  ie || (ie = document.createElement("input"), ie.type = "file", ie.accept = ".json");
1791
1800
  function e() {
1792
1801
  return new Promise((n, t) => {
@@ -1801,9 +1810,9 @@ function Pl() {
1801
1810
  }
1802
1811
  return e;
1803
1812
  }
1804
- async function Nl(e) {
1813
+ async function Fl(e) {
1805
1814
  try {
1806
- const t = await Pl()();
1815
+ const t = await Bl()();
1807
1816
  if (!t)
1808
1817
  return;
1809
1818
  const { text: o, file: l } = t;
@@ -1826,7 +1835,7 @@ function oe(e) {
1826
1835
  };
1827
1836
  }
1828
1837
  const An = "🍍 Pinia (root)", ht = "_root";
1829
- function Bl(e) {
1838
+ function jl(e) {
1830
1839
  return kt(e) ? {
1831
1840
  id: ht,
1832
1841
  label: An
@@ -1835,7 +1844,7 @@ function Bl(e) {
1835
1844
  label: e.$id
1836
1845
  };
1837
1846
  }
1838
- function Fl(e) {
1847
+ function Hl(e) {
1839
1848
  if (kt(e)) {
1840
1849
  const t = Array.from(e._s.keys()), o = e._s;
1841
1850
  return {
@@ -1871,7 +1880,7 @@ function Fl(e) {
1871
1880
  value: e[t]
1872
1881
  }))), n;
1873
1882
  }
1874
- function jl(e) {
1883
+ function zl(e) {
1875
1884
  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), {
1876
1885
  oldValue: {},
1877
1886
  keys: [],
@@ -1884,7 +1893,7 @@ function jl(e) {
1884
1893
  newValue: e.newValue
1885
1894
  } : {};
1886
1895
  }
1887
- function Hl(e) {
1896
+ function Zl(e) {
1888
1897
  switch (e) {
1889
1898
  case ae.direct:
1890
1899
  return "mutation";
@@ -1897,8 +1906,8 @@ function Hl(e) {
1897
1906
  }
1898
1907
  }
1899
1908
  let Se = !0;
1900
- const Ye = [], me = "pinia:mutations", J = "pinia", { assign: zl } = Object, Xe = (e) => "🍍 " + e;
1901
- function Zl(e, n) {
1909
+ const Ye = [], me = "pinia:mutations", J = "pinia", { assign: Ul } = Object, Xe = (e) => "🍍 " + e;
1910
+ function Wl(e, n) {
1902
1911
  Sn({
1903
1912
  id: "dev.esm.pinia",
1904
1913
  label: "Pinia 🍍",
@@ -1921,28 +1930,28 @@ function Zl(e, n) {
1921
1930
  {
1922
1931
  icon: "content_copy",
1923
1932
  action: () => {
1924
- Vl(n);
1933
+ Rl(n);
1925
1934
  },
1926
1935
  tooltip: "Serialize and copy the state"
1927
1936
  },
1928
1937
  {
1929
1938
  icon: "content_paste",
1930
1939
  action: async () => {
1931
- await Dl(n), t.sendInspectorTree(J), t.sendInspectorState(J);
1940
+ await Pl(n), t.sendInspectorTree(J), t.sendInspectorState(J);
1932
1941
  },
1933
1942
  tooltip: "Replace the state with the content of your clipboard"
1934
1943
  },
1935
1944
  {
1936
1945
  icon: "save",
1937
1946
  action: () => {
1938
- Rl(n);
1947
+ Nl(n);
1939
1948
  },
1940
1949
  tooltip: "Save the state as a JSON file"
1941
1950
  },
1942
1951
  {
1943
1952
  icon: "folder_open",
1944
1953
  action: async () => {
1945
- await Nl(n), t.sendInspectorTree(J), t.sendInspectorState(J);
1954
+ await Fl(n), t.sendInspectorTree(J), t.sendInspectorState(J);
1946
1955
  },
1947
1956
  tooltip: "Import the state from a JSON file"
1948
1957
  }
@@ -1999,14 +2008,14 @@ function Zl(e, n) {
1999
2008
  }), t.on.getInspectorTree((o) => {
2000
2009
  if (o.app === e && o.inspectorId === J) {
2001
2010
  let l = [n];
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);
2011
+ 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(jl);
2003
2012
  }
2004
2013
  }), t.on.getInspectorState((o) => {
2005
2014
  if (o.app === e && o.inspectorId === J) {
2006
2015
  const l = o.nodeId === ht ? n : n._s.get(o.nodeId);
2007
2016
  if (!l)
2008
2017
  return;
2009
- l && (o.state = Fl(l));
2018
+ l && (o.state = Hl(l));
2010
2019
  }
2011
2020
  }), t.on.editInspectorState((o, l) => {
2012
2021
  if (o.app === e && o.inspectorId === J) {
@@ -2031,7 +2040,7 @@ Only state can be modified.`);
2031
2040
  });
2032
2041
  });
2033
2042
  }
2034
- function Ul(e, n) {
2043
+ function ql(e, n) {
2035
2044
  Ye.includes(Xe(n.$id)) || Ye.push(Xe(n.$id)), Sn({
2036
2045
  id: "dev.esm.pinia",
2037
2046
  label: "Pinia 🍍",
@@ -2124,8 +2133,8 @@ function Ul(e, n) {
2124
2133
  return;
2125
2134
  const u = {
2126
2135
  time: o(),
2127
- title: Hl(a),
2128
- data: zl({ store: oe(n.$id) }, jl(r)),
2136
+ title: Zl(a),
2137
+ data: Ul({ store: oe(n.$id) }, zl(r)),
2129
2138
  groupId: de
2130
2139
  };
2131
2140
  a === ae.patchFunction ? u.subtitle = "⤵️" : a === ae.patchObject ? u.subtitle = "🧩" : r && !Array.isArray(r) && (u.subtitle = r.type), r && (u.data["rawEvent(s)"] = {
@@ -2179,25 +2188,25 @@ function Zt(e, n, t) {
2179
2188
  return de = void 0, a;
2180
2189
  };
2181
2190
  }
2182
- function Wl({ app: e, store: n, options: t }) {
2191
+ function Gl({ app: e, store: n, options: t }) {
2183
2192
  if (n.$id.startsWith("__hot:"))
2184
2193
  return;
2185
2194
  n._isOptionsAPI = !!t.state, Zt(n, Object.keys(t.actions), n._isOptionsAPI);
2186
2195
  const o = n._hotUpdate;
2187
2196
  ne(n)._hotUpdate = function(l) {
2188
2197
  o.apply(this, arguments), Zt(n, Object.keys(l._hmrPayload.actions), !!n._isOptionsAPI);
2189
- }, Ul(
2198
+ }, ql(
2190
2199
  e,
2191
2200
  // FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
2192
2201
  n
2193
2202
  );
2194
2203
  }
2195
- function ql() {
2204
+ function Jl() {
2196
2205
  const e = un(!0), n = e.run(() => O({}));
2197
2206
  let t = [], o = [];
2198
2207
  const l = be({
2199
2208
  install(s) {
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 = [];
2209
+ Pe(l), l._a = s, s.provide(En, l), s.config.globalProperties.$pinia = l, Ae && Wl(s, l), o.forEach((r) => t.push(r)), o = [];
2201
2210
  },
2202
2211
  use(s) {
2203
2212
  return this._a ? t.push(s) : o.push(s), this;
@@ -2210,7 +2219,7 @@ function ql() {
2210
2219
  _s: /* @__PURE__ */ new Map(),
2211
2220
  state: n
2212
2221
  });
2213
- return Ae && typeof Proxy < "u" && l.use(Wl), l;
2222
+ return Ae && typeof Proxy < "u" && l.use(Gl), l;
2214
2223
  }
2215
2224
  function Dn(e, n) {
2216
2225
  for (const t in n) {
@@ -2237,7 +2246,7 @@ function Te(e, ...n) {
2237
2246
  t(...n);
2238
2247
  });
2239
2248
  }
2240
- const Gl = (e) => e();
2249
+ const Yl = (e) => e();
2241
2250
  function mt(e, n) {
2242
2251
  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);
2243
2252
  for (const t in n) {
@@ -2248,12 +2257,12 @@ function mt(e, n) {
2248
2257
  }
2249
2258
  return e;
2250
2259
  }
2251
- const Jl = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
2260
+ const Ql = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
2252
2261
  /* istanbul ignore next */
2253
2262
  Symbol()
2254
2263
  );
2255
- function Yl(e) {
2256
- return !Ce(e) || !e.hasOwnProperty(Jl);
2264
+ function Xl(e) {
2265
+ return !Ce(e) || !e.hasOwnProperty(Ql);
2257
2266
  }
2258
2267
  const { assign: te } = Object;
2259
2268
  function Wt(e) {
@@ -2384,11 +2393,11 @@ function gt(e, n, t = {}, o, l, s) {
2384
2393
  // setupStore
2385
2394
  ) : V);
2386
2395
  o._s.set(e, S);
2387
- const D = (o._a && o._a.runWithContext || Gl)(() => o._e.run(() => (r = un()).run(n)));
2396
+ const D = (o._a && o._a.runWithContext || Yl)(() => o._e.run(() => (r = un()).run(n)));
2388
2397
  for (const v in D) {
2389
2398
  const p = D[v];
2390
2399
  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);
2400
+ process.env.NODE_ENV !== "production" && l ? We(b.value, v, it(D, v)) : s || (C && Xl(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);
2392
2401
  else if (typeof p == "function") {
2393
2402
  const k = process.env.NODE_ENV !== "production" && l ? p : _(v, p);
2394
2403
  D[v] = k, process.env.NODE_ENV !== "production" && (T.actions[v] = p), a.actions[v] = p;
@@ -2526,7 +2535,7 @@ const xe = He("loader", () => {
2526
2535
  )), a = (i) => {
2527
2536
  i.target.value = "", l.value = "", s.value && s.value.$el.click();
2528
2537
  };
2529
- return (i, u) => (h(), W(M(hl), {
2538
+ return (i, u) => (h(), W(M(gl), {
2530
2539
  modelValue: o.value,
2531
2540
  "onUpdate:modelValue": u[3] || (u[3] = (c) => o.value = c),
2532
2541
  disabled: M(n).loading,
@@ -2534,19 +2543,19 @@ const xe = He("loader", () => {
2534
2543
  class: "relative mt-1"
2535
2544
  }, {
2536
2545
  default: ze(() => [
2537
- B(M(gl), {
2546
+ B(M(Cl), {
2538
2547
  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",
2539
2548
  onChange: u[0] || (u[0] = (c) => l.value = c.target.value),
2540
2549
  displayValue: (c) => e.languages[c],
2541
2550
  onFocus: u[1] || (u[1] = (c) => a(c))
2542
2551
  }, null, 8, ["displayValue"]),
2543
- B(M(ml), {
2552
+ B(M(bl), {
2544
2553
  ref_key: "btnSelect",
2545
2554
  ref: s,
2546
2555
  class: "absolute inset-y-0 right-0 flex items-center pr-2"
2547
2556
  }, {
2548
2557
  default: ze(() => [
2549
- B(M(yl), {
2558
+ B(M(_l), {
2550
2559
  class: "h-5 w-5 text-base-content/50",
2551
2560
  "aria-hidden": "true",
2552
2561
  onClick: u[2] || (u[2] = (c) => a(c))
@@ -2554,9 +2563,9 @@ const xe = He("loader", () => {
2554
2563
  ]),
2555
2564
  _: 1
2556
2565
  }, 512),
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" }, {
2566
+ B(M(xl), { 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" }, {
2558
2567
  default: ze(() => [
2559
- (h(!0), g(z, null, Y(r.value, ([c, d]) => (h(), W(M(Cl), {
2568
+ (h(!0), g(z, null, Y(r.value, ([c, d]) => (h(), W(M(yl), {
2560
2569
  key: c,
2561
2570
  value: c
2562
2571
  }, {
@@ -2581,11 +2590,11 @@ const xe = He("loader", () => {
2581
2590
  _: 1
2582
2591
  }, 8, ["modelValue", "disabled"]));
2583
2592
  }
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 = {
2593
+ }, Kl = ["disabled"], es = /* @__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), ts = [
2594
+ es
2595
+ ], ns = ["disabled"], os = /* @__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), ls = [
2596
+ os
2597
+ ], ss = {
2589
2598
  __name: "SwapBtn",
2590
2599
  props: {
2591
2600
  isBidirect: {
@@ -2600,10 +2609,10 @@ const xe = He("loader", () => {
2600
2609
  key: 1,
2601
2610
  onClick: r[0] || (r[0] = (a) => l("swap")),
2602
2611
  disabled: o.value
2603
- }, ns, 8, es)) : (h(), g("button", {
2612
+ }, ls, 8, ns)) : (h(), g("button", {
2604
2613
  key: 0,
2605
2614
  disabled: o.value
2606
- }, Kl, 8, Ql));
2615
+ }, ts, 8, Kl));
2607
2616
  }
2608
2617
  }, Oe = He("language", () => {
2609
2618
  const e = O("auto"), n = O("vi"), t = O({
@@ -2622,16 +2631,16 @@ const xe = He("loader", () => {
2622
2631
  return t.value.src[i] || t.value.target[i];
2623
2632
  }
2624
2633
  return { languages: t, src: e, target: n, srcLabel: o, targetLabel: l, init: s, swap: r, getLabel: a };
2625
- }), ls = {
2634
+ }), as = {
2626
2635
  key: 0,
2627
2636
  class: "flex flex-col"
2628
- }, ss = { class: "flex" }, as = { class: "grow flex flex-col" }, rs = {
2637
+ }, rs = { class: "flex" }, is = { class: "grow flex flex-col" }, us = {
2629
2638
  key: 0,
2630
2639
  class: "flex mt-1 space-x-1"
2631
- }, is = ["onClick"], us = { class: "grow flex flex-col" }, cs = {
2640
+ }, cs = ["onClick"], ds = { class: "grow flex flex-col" }, fs = {
2632
2641
  key: 0,
2633
2642
  class: "flex mt-1 space-x-1 justify-end"
2634
- }, ds = ["onClick"], fs = { class: "flex" }, vs = { class: "grow flex flex-col" }, ps = { class: "grow flex flex-col" }, Jt = 3, hs = {
2643
+ }, vs = ["onClick"], ps = { class: "flex" }, hs = { class: "grow flex flex-col" }, ms = { class: "grow flex flex-col" }, Jt = 3, gs = {
2635
2644
  __name: "Selects",
2636
2645
  setup(e) {
2637
2646
  const n = Oe(), t = O([]), o = O([]);
@@ -2651,29 +2660,29 @@ const xe = He("loader", () => {
2651
2660
  (s) => {
2652
2661
  s && (o.value.includes(s) || (o.value.unshift(s), o.value = o.value.slice(0, Jt), Ze.setLocalStorage("recentTarget", o.value)));
2653
2662
  }
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, [
2663
+ ), (s, r) => M(n).languages ? (h(), g("div", as, [
2664
+ f("div", rs, [
2665
+ f("div", is, [
2666
+ t.value.length > 0 ? (h(), g("div", us, [
2658
2667
  (h(!0), g(z, null, Y(t.value, (a) => (h(), g("button", {
2659
2668
  key: a,
2660
2669
  class: "px-1 bg-base-100 border border-primary text-primary text-xs rounded hover:bg-primary hover:text-primary-content",
2661
2670
  onClick: (i) => M(n).src = a
2662
- }, G(M(n).languages.src[a]), 9, is))), 128))
2671
+ }, G(M(n).languages.src[a]), 9, cs))), 128))
2663
2672
  ])) : R("", !0)
2664
2673
  ]),
2665
- f("div", us, [
2666
- o.value.length > 0 ? (h(), g("div", cs, [
2674
+ f("div", ds, [
2675
+ o.value.length > 0 ? (h(), g("div", fs, [
2667
2676
  (h(!0), g(z, null, Y(o.value, (a) => (h(), g("button", {
2668
2677
  key: a,
2669
2678
  class: "px-1 bg-base-100 border border-primary text-primary text-xs rounded hover:bg-primary hover:text-primary-content",
2670
2679
  onClick: (i) => M(n).target = a
2671
- }, G(M(n).languages.target[a]), 9, ds))), 128))
2680
+ }, G(M(n).languages.target[a]), 9, vs))), 128))
2672
2681
  ])) : R("", !0)
2673
2682
  ])
2674
2683
  ]),
2675
- f("div", fs, [
2676
- f("div", vs, [
2684
+ f("div", ps, [
2685
+ f("div", hs, [
2677
2686
  B(Gt, {
2678
2687
  modelValue: M(n).src,
2679
2688
  "onUpdate:modelValue": r[0] || (r[0] = (a) => M(n).src = a),
@@ -2681,12 +2690,12 @@ const xe = He("loader", () => {
2681
2690
  class: "grow"
2682
2691
  }, null, 8, ["modelValue", "languages"])
2683
2692
  ]),
2684
- B(os, {
2693
+ B(ss, {
2685
2694
  isBidirect: M(n).src !== "auto",
2686
2695
  class: "grow-0 mx-3 mt-4 self-start",
2687
2696
  onSwap: l
2688
2697
  }, null, 8, ["isBidirect"]),
2689
- f("div", ps, [
2698
+ f("div", ms, [
2690
2699
  B(Gt, {
2691
2700
  modelValue: M(n).target,
2692
2701
  "onUpdate:modelValue": r[1] || (r[1] = (a) => M(n).target = a),
@@ -2707,11 +2716,11 @@ const xe = He("loader", () => {
2707
2716
  for (const [o, l] of n)
2708
2717
  t[o] = l;
2709
2718
  return t;
2710
- }, ms = {}, gs = { class: "mr-2 loading loading-dots loading-xs" };
2711
- function bs(e, n) {
2712
- return h(), g("span", gs);
2719
+ }, bs = {}, Cs = { class: "mr-2 loading loading-dots loading-xs" };
2720
+ function xs(e, n) {
2721
+ return h(), g("span", Cs);
2713
2722
  }
2714
- const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2723
+ const Mt = /* @__PURE__ */ he(bs, [["render", xs]]), bt = He("tts", () => {
2715
2724
  const e = O({
2716
2725
  src: null,
2717
2726
  target: null
@@ -2735,12 +2744,12 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2735
2744
  get: t,
2736
2745
  reset: o
2737
2746
  };
2738
- }), Cs = ["disabled"], xs = /* @__PURE__ */ f("path", {
2747
+ }), ys = ["disabled"], ws = /* @__PURE__ */ f("path", {
2739
2748
  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",
2740
2749
  fill: "currentColor"
2741
- }, null, -1), ys = [
2742
- xs
2743
- ], ws = /* @__PURE__ */ f("svg", {
2750
+ }, null, -1), _s = [
2751
+ ws
2752
+ ], Ts = /* @__PURE__ */ f("svg", {
2744
2753
  class: "w-4 h-4 text-primary",
2745
2754
  fill: "none",
2746
2755
  xmlns: "http://www.w3.org/2000/svg",
@@ -2752,9 +2761,9 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2752
2761
  "clip-rule": "evenodd",
2753
2762
  fill: "currentColor"
2754
2763
  })
2755
- ], -1), _s = [
2756
- ws
2757
- ], Ts = {
2764
+ ], -1), Ss = [
2765
+ Ts
2766
+ ], Es = {
2758
2767
  __name: "SpeakBtn",
2759
2768
  props: {
2760
2769
  type: {
@@ -2800,7 +2809,7 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2800
2809
  key: 1,
2801
2810
  class: "btn btn-xs btn-circle",
2802
2811
  onClick: ft(d, ["prevent"])
2803
- }, _s)) : (h(), g("button", {
2812
+ }, Ss)) : (h(), g("button", {
2804
2813
  key: 0,
2805
2814
  class: P(["btn btn-xs btn-circle", [
2806
2815
  { "btn-ghost": !e.disabled },
@@ -2814,32 +2823,32 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2814
2823
  viewBox: "0 0 16 16",
2815
2824
  fill: "none",
2816
2825
  xmlns: "http://www.w3.org/2000/svg"
2817
- }, ys, 2))
2818
- ], 10, Cs));
2826
+ }, _s, 2))
2827
+ ], 10, ys));
2819
2828
  }
2820
- }, Ss = {
2829
+ }, $s = {
2821
2830
  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
2831
  "data-tip": "Clear"
2823
- }, Es = ["disabled"], $s = /* @__PURE__ */ f("path", {
2832
+ }, Os = ["disabled"], Is = /* @__PURE__ */ f("path", {
2824
2833
  "fill-rule": "evenodd",
2825
2834
  "clip-rule": "evenodd",
2826
2835
  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",
2827
2836
  fill: "currentColor"
2828
- }, null, -1), Os = /* @__PURE__ */ f("path", {
2837
+ }, null, -1), Ls = /* @__PURE__ */ f("path", {
2829
2838
  "fill-rule": "evenodd",
2830
2839
  "clip-rule": "evenodd",
2831
2840
  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",
2832
2841
  fill: "currentColor"
2833
- }, null, -1), Is = [
2834
- $s,
2835
- Os
2842
+ }, null, -1), ks = [
2843
+ Is,
2844
+ Ls
2836
2845
  ], Pn = {
2837
2846
  __name: "ClearBtn",
2838
2847
  props: {
2839
2848
  disabled: Boolean
2840
2849
  },
2841
2850
  setup(e) {
2842
- return (n, t) => (h(), g("div", Ss, [
2851
+ return (n, t) => (h(), g("div", $s, [
2843
2852
  f("button", {
2844
2853
  class: P(["btn btn-xs btn-circle", [
2845
2854
  { "btn-ghost": !e.disabled },
@@ -2852,31 +2861,31 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2852
2861
  viewBox: "0 0 16 16",
2853
2862
  fill: "none",
2854
2863
  xmlns: "http://www.w3.org/2000/svg"
2855
- }, Is, 2))
2856
- ], 10, Es)
2864
+ }, ks, 2))
2865
+ ], 10, Os)
2857
2866
  ]));
2858
2867
  }
2859
- }, Ls = {
2868
+ }, Ms = {
2860
2869
  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",
2861
2870
  "data-tip": "Favorite"
2862
- }, ks = ["disabled"], Ms = /* @__PURE__ */ f("path", {
2871
+ }, As = ["disabled"], Vs = /* @__PURE__ */ f("path", {
2863
2872
  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",
2864
2873
  fill: "currentColor"
2865
- }, null, -1), As = [
2866
- Ms
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
2874
  }, null, -1), Ds = [
2871
2875
  Vs
2872
- ], Rs = {
2876
+ ], Rs = /* @__PURE__ */ f("path", {
2877
+ 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",
2878
+ fill: "currentColor"
2879
+ }, null, -1), Ps = [
2880
+ Rs
2881
+ ], Ns = {
2873
2882
  __name: "FavoriteBtn",
2874
2883
  props: {
2875
2884
  disabled: Boolean,
2876
2885
  isFilled: Boolean
2877
2886
  },
2878
2887
  setup(e) {
2879
- return (n, t) => (h(), g("div", Ls, [
2888
+ return (n, t) => (h(), g("div", Ms, [
2880
2889
  f("button", {
2881
2890
  class: P(["btn btn-xs btn-circle", [
2882
2891
  { "btn-ghost": !e.disabled },
@@ -2890,42 +2899,42 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2890
2899
  viewBox: "0 0 16 16",
2891
2900
  fill: "none",
2892
2901
  xmlns: "http://www.w3.org/2000/svg"
2893
- }, Ds, 2)) : (h(), g("svg", {
2902
+ }, Ps, 2)) : (h(), g("svg", {
2894
2903
  key: 0,
2895
2904
  class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2896
2905
  viewBox: "0 0 16 16",
2897
2906
  fill: "none",
2898
2907
  xmlns: "http://www.w3.org/2000/svg"
2899
- }, As, 2))
2900
- ], 10, ks)
2908
+ }, Ds, 2))
2909
+ ], 10, As)
2901
2910
  ]));
2902
2911
  }
2903
- }, Ps = {
2912
+ }, Bs = {
2904
2913
  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",
2905
2914
  "data-tip": "AI Translate"
2906
- }, Ns = ["disabled"], Bs = /* @__PURE__ */ f("path", {
2915
+ }, Fs = ["disabled"], js = /* @__PURE__ */ f("path", {
2907
2916
  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",
2908
2917
  fill: "currentColor"
2909
- }, null, -1), Fs = /* @__PURE__ */ f("path", {
2918
+ }, null, -1), Hs = /* @__PURE__ */ f("path", {
2910
2919
  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",
2911
2920
  fill: "currentColor"
2912
- }, null, -1), js = /* @__PURE__ */ f("path", {
2921
+ }, null, -1), zs = /* @__PURE__ */ f("path", {
2913
2922
  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",
2914
2923
  fill: "currentColor"
2915
- }, null, -1), Hs = [
2916
- Bs,
2917
- Fs,
2918
- js
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 = [
2924
+ }, null, -1), Zs = [
2925
+ js,
2926
+ Hs,
2920
2927
  zs
2921
- ], Us = {
2928
+ ], Us = /* @__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), Ws = [
2929
+ Us
2930
+ ], qs = {
2922
2931
  __name: "AIBtn",
2923
2932
  props: {
2924
2933
  disabled: Boolean,
2925
2934
  isFilled: Boolean
2926
2935
  },
2927
2936
  setup(e) {
2928
- return (n, t) => (h(), g("div", Ps, [
2937
+ return (n, t) => (h(), g("div", Bs, [
2929
2938
  f("button", {
2930
2939
  class: P(["btn btn-xs btn-circle", [
2931
2940
  { "btn-ghost": !e.disabled },
@@ -2939,21 +2948,21 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2939
2948
  viewBox: "0 0 12 12",
2940
2949
  fill: "none",
2941
2950
  xmlns: "http://www.w3.org/2000/svg"
2942
- }, Zs, 2)) : (h(), g("svg", {
2951
+ }, Ws, 2)) : (h(), g("svg", {
2943
2952
  key: 0,
2944
2953
  class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2945
2954
  viewBox: "0 0 12 12",
2946
2955
  fill: "none",
2947
2956
  xmlns: "http://www.w3.org/2000/svg"
2948
- }, Hs, 2))
2949
- ], 10, Ns)
2957
+ }, Zs, 2))
2958
+ ], 10, Fs)
2950
2959
  ]));
2951
2960
  }
2952
- }, Ws = ["data-tip"], qs = ["disabled"], Gs = /* @__PURE__ */ f("path", {
2961
+ }, Gs = ["data-tip"], Js = ["disabled"], Ys = /* @__PURE__ */ f("path", {
2953
2962
  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",
2954
2963
  fill: "currentColor"
2955
- }, null, -1), Js = [
2956
- Gs
2964
+ }, null, -1), Qs = [
2965
+ Ys
2957
2966
  ], Nn = {
2958
2967
  __name: "CopyBtn",
2959
2968
  props: {
@@ -2982,14 +2991,14 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2982
2991
  viewBox: "0 0 14 16",
2983
2992
  fill: "none",
2984
2993
  xmlns: "http://www.w3.org/2000/svg"
2985
- }, Js, 2))
2986
- ], 10, qs)
2987
- ], 8, Ws));
2994
+ }, Qs, 2))
2995
+ ], 10, Js)
2996
+ ], 8, Gs));
2988
2997
  }
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 = {
2998
+ }, Xs = { class: "flex flex-row px-1 pr-10 pt-1 items-center bg-transparent relative" }, Ks = { class: "ml-1 text-sm text-base-content/70" }, ea = {
2990
2999
  key: 0,
2991
3000
  class: "italic"
2992
- }, Ks = { class: "absolute right-1 top-1 flex flex-col items-center gap-0" }, ea = {
3001
+ }, ta = { class: "absolute right-1 top-1 flex flex-col items-center gap-0" }, na = {
2993
3002
  __name: "InputBtnGroup",
2994
3003
  props: {
2995
3004
  loading: {
@@ -3049,33 +3058,33 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
3049
3058
  emits: ["clear", "favorite", "loadTTS", "aiTranslate", "copy"],
3050
3059
  setup(e, { emit: n }) {
3051
3060
  const t = n;
3052
- return (o, l) => (h(), g("div", Ys, [
3053
- e.src && e.isTTS ? (h(), W(Ts, {
3061
+ return (o, l) => (h(), g("div", Xs, [
3062
+ e.src && e.isTTS ? (h(), W(Es, {
3054
3063
  key: 0,
3055
3064
  type: e.type,
3056
3065
  onLoadTTS: l[0] || (l[0] = (s) => t("loadTTS"))
3057
3066
  }, null, 8, ["type"])) : R("", !0),
3058
- f("div", Qs, [
3067
+ f("div", Ks, [
3059
3068
  Ee(G(e.srcLabel) + " ", 1),
3060
- e.phonetic ? (h(), g("span", Xs, "- " + G(e.phonetic), 1)) : R("", !0)
3069
+ e.phonetic ? (h(), g("span", ea, "- " + G(e.phonetic), 1)) : R("", !0)
3061
3070
  ]),
3062
3071
  e.loading ? (h(), W(Mt, {
3063
3072
  key: 1,
3064
3073
  class: "absolute right-6 top-2"
3065
3074
  })) : R("", !0),
3066
- f("div", Ks, [
3075
+ f("div", ta, [
3067
3076
  e.hasClearBtn ? (h(), W(Pn, {
3068
3077
  key: 0,
3069
3078
  onClick: l[1] || (l[1] = (s) => t("clear")),
3070
3079
  disabled: e.loading
3071
3080
  }, null, 8, ["disabled"])) : R("", !0),
3072
- e.src && e.hasAIBtn ? (h(), W(Us, {
3081
+ e.src && e.hasAIBtn ? (h(), W(qs, {
3073
3082
  key: 1,
3074
3083
  isFilled: e.isAITranslate,
3075
3084
  onClick: l[2] || (l[2] = (s) => t("aiTranslate")),
3076
3085
  disabled: e.loading
3077
3086
  }, null, 8, ["isFilled", "disabled"])) : R("", !0),
3078
- e.src && e.hasFavoriteBtn ? (h(), W(Rs, {
3087
+ e.src && e.hasFavoriteBtn ? (h(), W(Ns, {
3079
3088
  key: 2,
3080
3089
  isFilled: e.isFavorite,
3081
3090
  onClick: l[3] || (l[3] = (s) => t("favorite")),
@@ -3089,7 +3098,7 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
3089
3098
  ])
3090
3099
  ]));
3091
3100
  }
3092
- }, Bn = /* @__PURE__ */ he(ea, [["__scopeId", "data-v-faca0157"]]), ve = He("translation", () => {
3101
+ }, Bn = /* @__PURE__ */ he(na, [["__scopeId", "data-v-faca0157"]]), ve = He("translation", () => {
3093
3102
  const e = O(null), n = O(null), t = O(null), o = O({
3094
3103
  src: null,
3095
3104
  target: null
@@ -3126,17 +3135,17 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
3126
3135
  reset: C
3127
3136
  };
3128
3137
  });
3129
- function ta(e) {
3138
+ function oa(e) {
3130
3139
  return cn() ? (Tt(e), !0) : !1;
3131
3140
  }
3132
3141
  function Ke(e) {
3133
3142
  return typeof e == "function" ? e() : M(e);
3134
3143
  }
3135
- const na = typeof window < "u" && typeof document < "u";
3144
+ const la = typeof window < "u" && typeof document < "u";
3136
3145
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
3137
3146
  const Yt = () => {
3138
3147
  };
3139
- function oa(e, n) {
3148
+ function sa(e, n) {
3140
3149
  function t(...o) {
3141
3150
  return new Promise((l, s) => {
3142
3151
  Promise.resolve(e(() => n.apply(this, o), { fn: n, thisArg: this, args: o })).then(l).catch(s);
@@ -3144,7 +3153,7 @@ function oa(e, n) {
3144
3153
  }
3145
3154
  return t;
3146
3155
  }
3147
- function la(e, n = {}) {
3156
+ function aa(e, n = {}) {
3148
3157
  let t, o, l = Yt;
3149
3158
  const s = (a) => {
3150
3159
  clearTimeout(a), l(), l = Yt;
@@ -3160,9 +3169,9 @@ function la(e, n = {}) {
3160
3169
  });
3161
3170
  };
3162
3171
  }
3163
- function sa(e, n = 200, t = {}) {
3164
- return oa(
3165
- la(n, t),
3172
+ function ra(e, n = 200, t = {}) {
3173
+ return sa(
3174
+ aa(n, t),
3166
3175
  e
3167
3176
  );
3168
3177
  }
@@ -3171,21 +3180,21 @@ function Qt(e) {
3171
3180
  const t = Ke(e);
3172
3181
  return (n = t == null ? void 0 : t.$el) != null ? n : t;
3173
3182
  }
3174
- const aa = na ? window : void 0;
3175
- function ra() {
3183
+ const ia = la ? window : void 0;
3184
+ function ua() {
3176
3185
  const e = O(!1), n = rn();
3177
3186
  return n && se(() => {
3178
3187
  e.value = !0;
3179
3188
  }, n), e;
3180
3189
  }
3181
- function ia(e) {
3182
- const n = ra();
3190
+ function ca(e) {
3191
+ const n = ua();
3183
3192
  return L(() => (n.value, !!e()));
3184
3193
  }
3185
- function ua(e, n, t = {}) {
3186
- const { window: o = aa, ...l } = t;
3194
+ function da(e, n, t = {}) {
3195
+ const { window: o = ia, ...l } = t;
3187
3196
  let s;
3188
- const r = ia(() => o && "ResizeObserver" in o), a = () => {
3197
+ const r = ca(() => o && "ResizeObserver" in o), a = () => {
3189
3198
  s && (s.disconnect(), s = void 0);
3190
3199
  }, i = L(() => Array.isArray(e) ? e.map((d) => Qt(d)) : [Qt(e)]), u = F(
3191
3200
  i,
@@ -3200,7 +3209,7 @@ function ua(e, n, t = {}) {
3200
3209
  ), c = () => {
3201
3210
  a(), u();
3202
3211
  };
3203
- return ta(c), {
3212
+ return oa(c), {
3204
3213
  isSupported: r,
3205
3214
  stop: c
3206
3215
  };
@@ -3218,13 +3227,13 @@ function st(e) {
3218
3227
  return F([o, t], () => X(r), { immediate: !0 }), F(s, () => {
3219
3228
  var a;
3220
3229
  return (a = e == null ? void 0 : e.onResize) == null ? void 0 : a.call(e);
3221
- }), ua(t, () => r()), e != null && e.watch && F(e.watch, r, { immediate: !0, deep: !0 }), {
3230
+ }), da(t, () => r()), e != null && e.watch && F(e.watch, r, { immediate: !0, deep: !0 }), {
3222
3231
  textarea: t,
3223
3232
  input: o,
3224
3233
  triggerResize: r
3225
3234
  };
3226
3235
  }
3227
- const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, da = {
3236
+ const fa = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, va = {
3228
3237
  __name: "Input",
3229
3238
  props: {
3230
3239
  text: {
@@ -3241,7 +3250,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3241
3250
  const t = ve(), o = e, l = O(o.text), s = L(() => t.src), r = L(() => t.srcLabel), a = L(() => {
3242
3251
  var C;
3243
3252
  return (C = t.phonetic) == null ? void 0 : C.src;
3244
- }), { textarea: i } = st({ input: l, styleProp: "minHeight" }), u = n, c = sa(() => {
3253
+ }), { textarea: i } = st({ input: l, styleProp: "minHeight" }), u = n, c = ra(() => {
3245
3254
  u("change", l.value);
3246
3255
  }, Ie.INPUT_DEBOUNCE);
3247
3256
  se(() => {
@@ -3265,7 +3274,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3265
3274
  (C) => {
3266
3275
  l.value !== C && m(), l.value = C;
3267
3276
  }
3268
- ), (C, b) => (h(), g("div", ca, [
3277
+ ), (C, b) => (h(), g("div", fa, [
3269
3278
  B(Bn, {
3270
3279
  src: s.value,
3271
3280
  srcLabel: r.value,
@@ -3295,7 +3304,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3295
3304
  ])
3296
3305
  ]));
3297
3306
  }
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 = {
3307
+ }, pa = /* @__PURE__ */ he(va, [["__scopeId", "data-v-66ae5655"]]), ha = { class: "bg-base-100 relative z-10 rounded-md h-full" }, ma = { class: "bg-transparent" }, ga = {
3299
3308
  __name: "Result",
3300
3309
  props: {
3301
3310
  isFavoriteFeatureEnabled: Boolean,
@@ -3321,7 +3330,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3321
3330
  }
3322
3331
  ])
3323
3332
  }, [
3324
- f("div", va, [
3333
+ f("div", ha, [
3325
3334
  B(Bn, {
3326
3335
  loading: i.value,
3327
3336
  src: l.value,
@@ -3339,7 +3348,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3339
3348
  onAiTranslate: m[2] || (m[2] = (C) => d("aiTranslate")),
3340
3349
  onCopy: m[3] || (m[3] = (C) => d("copy"))
3341
3350
  }, null, 8, ["loading", "src", "srcLabel", "isTTS", "hasFavoriteBtn", "hasAIBtn", "isFavorite", "isAITranslate", "phonetic"]),
3342
- f("div", pa, [
3351
+ f("div", ma, [
3343
3352
  tt(f("textarea", {
3344
3353
  ref_key: "textarea",
3345
3354
  ref: u,
@@ -3355,24 +3364,24 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3355
3364
  ])
3356
3365
  ], 2));
3357
3366
  }
3358
- }, ma = /* @__PURE__ */ he(ha, [["__scopeId", "data-v-88599360"]]), ga = { class: "btn btn-xs btn-circle btn-ghost" }, at = {
3367
+ }, ba = /* @__PURE__ */ he(ga, [["__scopeId", "data-v-88599360"]]), Ca = { class: "btn btn-xs btn-circle btn-ghost" }, at = {
3359
3368
  __name: "ToggleBtn",
3360
3369
  props: {
3361
3370
  isExpanded: Boolean
3362
3371
  },
3363
3372
  setup(e) {
3364
3373
  const n = e;
3365
- return (t, o) => (h(), g("button", ga, [
3366
- n.isExpanded ? (h(), W(M(wl), {
3374
+ return (t, o) => (h(), g("button", Ca, [
3375
+ n.isExpanded ? (h(), W(M(Tl), {
3367
3376
  key: 0,
3368
3377
  class: "w-7 text-base-content/50"
3369
- })) : (h(), W(M(xl), {
3378
+ })) : (h(), W(M(wl), {
3370
3379
  key: 1,
3371
3380
  class: "w-7 text-base-content/50"
3372
3381
  }))
3373
3382
  ]));
3374
3383
  }
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 = {
3384
+ }, xa = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Dictionary", -1), ya = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, wa = { class: "list-none list-inside" }, _a = ["onClick"], Ta = { class: "text-sm font-normal text-base-content/80 leading-4" }, Sa = {
3376
3385
  __name: "Dictionary",
3377
3386
  emits: ["translate"],
3378
3387
  setup(e, { emit: n }) {
@@ -3386,7 +3395,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3386
3395
  class: "flex justify-between items-center",
3387
3396
  onClick: a
3388
3397
  }, [
3389
- ba,
3398
+ xa,
3390
3399
  B(at, { isExpanded: t.value }, null, 8, ["isExpanded"])
3391
3400
  ]),
3392
3401
  f("div", {
@@ -3397,16 +3406,16 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3397
3406
  key: `${d.pos}-${x}`,
3398
3407
  class: "mb-2"
3399
3408
  }, [
3400
- f("h5", Ca, G(d.pos), 1),
3401
- f("ul", xa, [
3409
+ f("h5", ya, G(d.pos), 1),
3410
+ f("ul", wa, [
3402
3411
  (h(!0), g(z, null, Y(d.items, (m, C) => (h(), g("li", {
3403
3412
  key: `${m.word}-${C}`
3404
3413
  }, [
3405
3414
  f("span", {
3406
3415
  class: "m-0.5 font-normal badge badge-ghost bg-primary text-primary-content cursor-pointer border-0 rounded",
3407
3416
  onClick: (b) => i(m.word)
3408
- }, G(m.word), 9, ya),
3409
- f("small", wa, " - " + G(m.reverse_translation.join(", ")), 1)
3417
+ }, G(m.word), 9, _a),
3418
+ f("small", Ta, " - " + G(m.reverse_translation.join(", ")), 1)
3410
3419
  ]))), 128))
3411
3420
  ])
3412
3421
  ]))), 128))
@@ -3414,10 +3423,10 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3414
3423
  ], 2)
3415
3424
  ], 64));
3416
3425
  }
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 = {
3426
+ }, Ea = /* @__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" }, Oa = { class: "text-sm text-base-content list-disc list-outside ml-5" }, Ia = /* @__PURE__ */ f("br", null, null, -1), La = {
3418
3427
  key: 0,
3419
3428
  class: "italic text-base-content/70"
3420
- }, Ia = {
3429
+ }, ka = {
3421
3430
  __name: "Definition",
3422
3431
  setup(e) {
3423
3432
  const n = O(!0), t = ve(), o = L(() => t.definitions), l = () => {
@@ -3428,7 +3437,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3428
3437
  class: "flex justify-between items-center",
3429
3438
  onClick: l
3430
3439
  }, [
3431
- Ta,
3440
+ Ea,
3432
3441
  B(at, { isExpanded: n.value }, null, 8, ["isExpanded"])
3433
3442
  ]),
3434
3443
  f("div", {
@@ -3439,15 +3448,15 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3439
3448
  key: `${a.pos}-${i}`,
3440
3449
  class: "mb-2"
3441
3450
  }, [
3442
- f("h5", Sa, G(a.pos), 1),
3443
- f("ul", Ea, [
3451
+ f("h5", $a, G(a.pos), 1),
3452
+ f("ul", Oa, [
3444
3453
  (h(!0), g(z, null, Y(a.items, (u, c) => (h(), g("li", {
3445
3454
  key: `${u.gloss}-${c}`,
3446
3455
  class: "mb-1"
3447
3456
  }, [
3448
3457
  f("span", null, G(u.gloss), 1),
3449
- $a,
3450
- u.example ? (h(), g("small", Oa, '"' + G(u.example) + '"', 1)) : R("", !0)
3458
+ Ia,
3459
+ u.example ? (h(), g("small", La, '"' + G(u.example) + '"', 1)) : R("", !0)
3451
3460
  ]))), 128))
3452
3461
  ])
3453
3462
  ]))), 128))
@@ -3455,7 +3464,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3455
3464
  ], 2)
3456
3465
  ], 64));
3457
3466
  }
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 = {
3467
+ }, Ma = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Examples", -1), Aa = { class: "text-base-content text-sm list-disc list-outside ml-5 my-2" }, Va = ["innerHTML"], Da = {
3459
3468
  __name: "Example",
3460
3469
  setup(e) {
3461
3470
  const n = O(!0), t = ve(), o = L(() => t.examples), l = () => {
@@ -3466,22 +3475,22 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3466
3475
  class: "flex justify-between items-center",
3467
3476
  onClick: l
3468
3477
  }, [
3469
- La,
3478
+ Ma,
3470
3479
  B(at, { isExpanded: n.value }, null, 8, ["isExpanded"])
3471
3480
  ]),
3472
3481
  f("div", {
3473
3482
  class: P(["overflow-hidden", n.value ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3474
3483
  }, [
3475
- f("ul", ka, [
3484
+ f("ul", Aa, [
3476
3485
  (h(!0), g(z, null, Y(o.value, (a, i) => (h(), g("li", {
3477
3486
  key: `${a.definition_id}-${i}`,
3478
3487
  innerHTML: a
3479
- }, null, 8, Ma))), 128))
3488
+ }, null, 8, Va))), 128))
3480
3489
  ])
3481
3490
  ], 2)
3482
3491
  ], 64));
3483
3492
  }
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 = {
3493
+ }, Ra = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Synonyms", -1), Pa = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, Na = { class: "list-none list-inside" }, Ba = { class: "flex flex-wrap" }, Fa = ["onClick"], ja = {
3485
3494
  __name: "Synonyms",
3486
3495
  emits: ["translate"],
3487
3496
  setup(e, { emit: n }) {
@@ -3495,7 +3504,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3495
3504
  class: "flex justify-between items-center",
3496
3505
  onClick: r
3497
3506
  }, [
3498
- Va,
3507
+ Ra,
3499
3508
  B(at, { isExpanded: t.value }, null, 8, ["isExpanded"])
3500
3509
  ]),
3501
3510
  f("div", {
@@ -3506,18 +3515,18 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3506
3515
  key: `${c.pos}-${d}`,
3507
3516
  class: "mb-2"
3508
3517
  }, [
3509
- f("h5", Da, G(c.pos), 1),
3510
- f("ul", Ra, [
3518
+ f("h5", Pa, G(c.pos), 1),
3519
+ f("ul", Na, [
3511
3520
  (h(!0), g(z, null, Y(c.items, (x, m) => (h(), g("li", {
3512
3521
  key: `${x.word}-${m}`,
3513
3522
  class: "mb-2"
3514
3523
  }, [
3515
- f("div", Pa, [
3524
+ f("div", Ba, [
3516
3525
  (h(!0), g(z, null, Y(x.synonym, (C, b) => (h(), g("span", {
3517
3526
  key: `${C}-${b}`,
3518
3527
  class: "m-0.5 ml-0 font-normal badge badge-ghost bg-primary text-primary-content cursor-pointer border-0 rounded",
3519
3528
  onClick: (I) => a(C)
3520
- }, G(C), 9, Na))), 128))
3529
+ }, G(C), 9, Fa))), 128))
3521
3530
  ])
3522
3531
  ]))), 128))
3523
3532
  ])
@@ -3526,27 +3535,27 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3526
3535
  ], 2)
3527
3536
  ], 64));
3528
3537
  }
3529
- }, Fa = ["disabled"], ja = /* @__PURE__ */ f("path", {
3538
+ }, Ha = ["disabled"], za = /* @__PURE__ */ f("path", {
3530
3539
  stroke: "currentColor",
3531
3540
  "stroke-linecap": "round",
3532
3541
  "stroke-linejoin": "round",
3533
3542
  "stroke-width": "2",
3534
3543
  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"
3535
- }, null, -1), Ha = [
3536
- ja
3537
- ], za = /* @__PURE__ */ f("path", {
3544
+ }, null, -1), Za = [
3545
+ za
3546
+ ], Ua = /* @__PURE__ */ f("path", {
3538
3547
  fill: "currentColor",
3539
3548
  d: "M12 7a5 5 0 0 0-2 9.584V19h4v-2.416A5.001 5.001 0 0 0 12 7z"
3540
- }, null, -1), Za = /* @__PURE__ */ f("path", {
3549
+ }, null, -1), Wa = /* @__PURE__ */ f("path", {
3541
3550
  stroke: "currentColor",
3542
3551
  "stroke-linecap": "round",
3543
3552
  "stroke-linejoin": "round",
3544
3553
  "stroke-width": "2",
3545
3554
  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"
3546
- }, null, -1), Ua = [
3547
- za,
3548
- Za
3549
- ], Wa = {
3555
+ }, null, -1), qa = [
3556
+ Ua,
3557
+ Wa
3558
+ ], Ga = {
3550
3559
  __name: "ChevronAIBtn",
3551
3560
  props: {
3552
3561
  disabled: Boolean,
@@ -3566,22 +3575,22 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3566
3575
  viewBox: "0 0 24 24",
3567
3576
  xmlns: "http://www.w3.org/2000/svg",
3568
3577
  fill: "none"
3569
- }, Ua, 2)) : (h(), g("svg", {
3578
+ }, qa, 2)) : (h(), g("svg", {
3570
3579
  key: 0,
3571
3580
  class: P(["w-6 h-6 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
3572
3581
  viewBox: "0 0 24 24",
3573
3582
  xmlns: "http://www.w3.org/2000/svg",
3574
3583
  fill: "none"
3575
- }, Ha, 2))
3576
- ], 10, Fa));
3584
+ }, Za, 2))
3585
+ ], 10, Ha));
3577
3586
  }
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 = {
3587
+ }, Ja = { class: "p-2 gap-0 relative z-10" }, Ya = { class: "flex justify-between items-center" }, Qa = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "AI Summary", -1), Xa = { class: "flex items-center" }, Ka = {
3579
3588
  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",
3580
3589
  "data-tip": "AI Summarize"
3581
- }, Xa = {
3590
+ }, er = {
3582
3591
  key: 0,
3583
3592
  class: "text-base-content list-none list-outside"
3584
- }, Ka = ["innerHTML"], er = {
3593
+ }, tr = ["innerHTML"], nr = {
3585
3594
  __name: "AIExplanation",
3586
3595
  props: {
3587
3596
  isAIExplain: {
@@ -3602,13 +3611,13 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3602
3611
  }
3603
3612
  return (r, a) => {
3604
3613
  var i, u;
3605
- return h(), g("div", qa, [
3606
- f("div", Ga, [
3607
- Ja,
3608
- f("div", Ya, [
3614
+ return h(), g("div", Ja, [
3615
+ f("div", Ya, [
3616
+ Qa,
3617
+ f("div", Xa, [
3609
3618
  o.value ? (h(), W(Mt, { key: 0 })) : R("", !0),
3610
- f("div", Qa, [
3611
- B(Wa, {
3619
+ f("div", Ka, [
3620
+ B(Ga, {
3612
3621
  isExpanded: e.isAIExplain,
3613
3622
  disabled: o.value,
3614
3623
  onClick: s
@@ -3619,52 +3628,52 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3619
3628
  f("div", {
3620
3629
  class: P(["overflow-hidden", e.isAIExplain ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3621
3630
  }, [
3622
- (i = e.explanation) != null && i.result ? (h(), g("ul", Xa, [
3631
+ (i = e.explanation) != null && i.result ? (h(), g("ul", er, [
3623
3632
  (h(!0), g(z, null, Y(((u = e.explanation) == null ? void 0 : u.result.split(`
3624
3633
  `)) || [], (c, d) => (h(), g("li", {
3625
3634
  key: `${c}-${d}`,
3626
3635
  innerHTML: c
3627
- }, null, 8, Ka))), 128))
3636
+ }, null, 8, tr))), 128))
3628
3637
  ])) : R("", !0)
3629
3638
  ], 2)
3630
3639
  ]);
3631
3640
  };
3632
3641
  }
3633
3642
  };
3634
- function tr() {
3643
+ function or() {
3635
3644
  document.documentElement.setAttribute("dir", "rtl");
3636
3645
  }
3637
- function nr() {
3646
+ function lr() {
3638
3647
  document.documentElement.removeAttribute("dir");
3639
3648
  }
3640
3649
  const Xt = {
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 = {
3650
+ supportRTL: or,
3651
+ removeRTL: lr
3652
+ }, sr = ["ar", "fa", "iw", "yi", "ur", "pa"], ar = (e) => (Et("data-v-08f9cb53"), e = e(), $t(), e), rr = { class: "pb-6" }, ir = { class: "flex flex-col lg:flex-row lg:gap-2" }, ur = {
3644
3653
  id: "input",
3645
3654
  class: "w-full lg:w-[calc(50%-1rem)] flex mt-1"
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 = {
3655
+ }, cr = /* @__PURE__ */ ar(() => /* @__PURE__ */ f("div", { class: "w-6 h-4 mx-auto hidden lg:block" }, null, -1)), dr = { class: "w-full lg:w-[calc(50%-1rem)] flex mt-1" }, fr = {
3647
3656
  key: 0,
3648
3657
  class: "masonry-container mt-1"
3649
- }, dr = {
3658
+ }, vr = {
3650
3659
  key: 0,
3651
3660
  class: "masonry-item border border-base-300 bg-base-100"
3652
- }, fr = {
3661
+ }, pr = {
3653
3662
  key: 1,
3654
3663
  class: "masonry-item border border-base-300 bg-base-100"
3655
- }, vr = { class: "p-2" }, pr = {
3664
+ }, hr = { class: "p-2" }, mr = {
3656
3665
  key: 2,
3657
3666
  class: "masonry-item border border-base-300 bg-base-100"
3658
- }, hr = { class: "p-2" }, mr = {
3667
+ }, gr = { class: "p-2" }, br = {
3659
3668
  key: 3,
3660
3669
  class: "masonry-item border border-base-300 bg-base-100"
3661
- }, gr = { class: "p-2" }, br = {
3670
+ }, Cr = { class: "p-2" }, xr = {
3662
3671
  key: 4,
3663
3672
  class: "masonry-item border border-base-300 bg-base-100"
3664
- }, Cr = { class: "p-2" }, xr = {
3673
+ }, yr = { class: "p-2" }, wr = {
3665
3674
  key: 1,
3666
3675
  class: "text-base-content italic font-medium"
3667
- }, yr = {
3676
+ }, _r = {
3668
3677
  __name: "TranslateTab",
3669
3678
  props: {
3670
3679
  opt: Object,
@@ -3692,7 +3701,7 @@ const Xt = {
3692
3701
  setup(e, { emit: n }) {
3693
3702
  const t = O(""), o = e, l = le("translationStore"), s = le("ttsStore"), r = le("languageStore"), a = le("loaderStore"), i = n, u = () => {
3694
3703
  const $ = o.opt.target;
3695
- or.includes($) ? Xt.supportRTL() : Xt.removeRTL();
3704
+ sr.includes($) ? Xt.supportRTL() : Xt.removeRTL();
3696
3705
  };
3697
3706
  F(
3698
3707
  () => o.translation,
@@ -3760,11 +3769,11 @@ const Xt = {
3760
3769
  }
3761
3770
  return ($, w) => {
3762
3771
  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, {
3772
+ return h(), g("div", rr, [
3773
+ B(gs),
3774
+ f("div", ir, [
3775
+ f("div", ur, [
3776
+ B(pa, {
3768
3777
  text: t.value,
3769
3778
  isTTS: e.isTTS,
3770
3779
  onChange: d,
@@ -3773,9 +3782,9 @@ const Xt = {
3773
3782
  class: "flex-grow flex flex-col"
3774
3783
  }, null, 8, ["text", "isTTS"])
3775
3784
  ]),
3776
- ir,
3777
- f("div", ur, [
3778
- B(ma, {
3785
+ cr,
3786
+ f("div", dr, [
3787
+ B(ba, {
3779
3788
  isFavoriteFeatureEnabled: e.isFavoriteFeatureEnabled,
3780
3789
  isAITranslateFeatureEnabled: e.isAITranslateFeatureEnabled,
3781
3790
  isAITranslate: e.isAITranslate,
@@ -3792,46 +3801,46 @@ const Xt = {
3792
3801
  }, null, 8, ["isFavoriteFeatureEnabled", "isAITranslateFeatureEnabled", "isAITranslate", "isFavorite", "isTTS"])
3793
3802
  ])
3794
3803
  ]),
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, {
3804
+ e.translation ? (h(), g("div", fr, [
3805
+ ((y = M(l).result) == null ? void 0 : y.length) > e.aiExplainMinLength ? (h(), g("div", vr, [
3806
+ B(nr, {
3798
3807
  isAIExplain: e.isAIExplain,
3799
3808
  explanation: e.explanation,
3800
3809
  onAiExplain: b
3801
3810
  }, null, 8, ["isAIExplain", "explanation"])
3802
3811
  ])) : R("", !0),
3803
- (_ = M(l).dictionary) != null && _.length ? (h(), g("div", fr, [
3804
- f("div", vr, [
3805
- B(_a, { onTranslate: m })
3806
- ])
3807
- ])) : R("", !0),
3808
- (T = M(l).definitions) != null && T.length ? (h(), g("div", pr, [
3812
+ (_ = M(l).dictionary) != null && _.length ? (h(), g("div", pr, [
3809
3813
  f("div", hr, [
3810
- B(Ia)
3814
+ B(Sa, { onTranslate: m })
3811
3815
  ])
3812
3816
  ])) : R("", !0),
3813
- (V = M(l).synonyms) != null && V.length ? (h(), g("div", mr, [
3817
+ (T = M(l).definitions) != null && T.length ? (h(), g("div", mr, [
3814
3818
  f("div", gr, [
3815
- B(Ba, { onTranslate: m })
3819
+ B(ka)
3816
3820
  ])
3817
3821
  ])) : R("", !0),
3818
- (S = M(l).examples) != null && S.length ? (h(), g("div", br, [
3822
+ (V = M(l).synonyms) != null && V.length ? (h(), g("div", br, [
3819
3823
  f("div", Cr, [
3820
- B(Aa)
3824
+ B(ja, { onTranslate: m })
3825
+ ])
3826
+ ])) : R("", !0),
3827
+ (S = M(l).examples) != null && S.length ? (h(), g("div", xr, [
3828
+ f("div", yr, [
3829
+ B(Da)
3821
3830
  ])
3822
3831
  ])) : R("", !0)
3823
- ])) : (h(), g("span", xr, "Service unavailable"))
3832
+ ])) : (h(), g("span", wr, "Service unavailable"))
3824
3833
  ]);
3825
3834
  };
3826
3835
  }
3827
- }, wr = /* @__PURE__ */ he(yr, [["__scopeId", "data-v-08f9cb53"]]), _r = ["disabled"], Tr = /* @__PURE__ */ f("path", {
3836
+ }, Tr = /* @__PURE__ */ he(_r, [["__scopeId", "data-v-08f9cb53"]]), Sr = ["disabled"], Er = /* @__PURE__ */ f("path", {
3828
3837
  "stroke-linecap": "round",
3829
3838
  "stroke-linejoin": "round",
3830
3839
  "stroke-width": "2",
3831
3840
  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"
3832
- }, null, -1), Sr = [
3833
- Tr
3834
- ], Er = {
3841
+ }, null, -1), $r = [
3842
+ Er
3843
+ ], Or = {
3835
3844
  __name: "RetryBtn",
3836
3845
  props: {
3837
3846
  disabled: Boolean
@@ -3850,14 +3859,14 @@ const Xt = {
3850
3859
  fill: "none",
3851
3860
  viewBox: "0 0 24 24",
3852
3861
  stroke: "currentColor"
3853
- }, Sr, 2))
3854
- ], 8, _r));
3862
+ }, $r, 2))
3863
+ ], 8, Sr));
3855
3864
  }
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 = [
3857
- Ir
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 = [
3865
+ }, Ir = ["data-tip"], Lr = ["disabled"], kr = /* @__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), Mr = [
3859
3866
  kr
3860
- ], Ar = {
3867
+ ], Ar = /* @__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), Vr = [
3868
+ Ar
3869
+ ], Dr = {
3861
3870
  __name: "ToggleDiffBtn",
3862
3871
  props: {
3863
3872
  disabled: Boolean,
@@ -3883,17 +3892,17 @@ const Xt = {
3883
3892
  fill: "currentColor",
3884
3893
  viewBox: "0 0 24 24",
3885
3894
  xmlns: "http://www.w3.org/2000/svg"
3886
- }, Mr, 2)) : (h(), g("svg", {
3895
+ }, Vr, 2)) : (h(), g("svg", {
3887
3896
  key: 0,
3888
3897
  class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
3889
3898
  fill: "currentColor",
3890
3899
  viewBox: "0 0 24 24",
3891
3900
  xmlns: "http://www.w3.org/2000/svg"
3892
- }, Lr, 2))
3893
- ], 10, Or)
3894
- ], 8, $r));
3901
+ }, Mr, 2))
3902
+ ], 10, Lr)
3903
+ ], 8, Ir));
3895
3904
  }
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 = {
3905
+ }, Rr = { class: "flex flex-row px-2 pr-10 items-center bg-transparent relative" }, Pr = { class: "absolute right-1 top-1 flex flex-col items-center gap-0" }, Fn = {
3897
3906
  __name: "InputBtnGroup",
3898
3907
  props: {
3899
3908
  loading: {
@@ -3927,13 +3936,13 @@ const Xt = {
3927
3936
  },
3928
3937
  emits: ["copy", "clear", "toggleDiff", "info"],
3929
3938
  setup(e) {
3930
- return (n, t) => (h(), g("div", Vr, [
3939
+ return (n, t) => (h(), g("div", Rr, [
3931
3940
  e.loading ? (h(), W(Mt, {
3932
3941
  key: 0,
3933
3942
  class: "absolute right-6 top-2"
3934
3943
  })) : R("", !0),
3935
- f("div", Dr, [
3936
- e.showDiffToggle ? (h(), W(Ar, {
3944
+ f("div", Pr, [
3945
+ e.showDiffToggle ? (h(), W(Dr, {
3937
3946
  key: 0,
3938
3947
  disabled: e.loading,
3939
3948
  isDiffMode: e.isDiffMode,
@@ -3951,7 +3960,7 @@ const Xt = {
3951
3960
  ])
3952
3961
  ]));
3953
3962
  }
3954
- }, Rr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, Pr = ["onKeydown", "placeholder"], Nr = {
3963
+ }, Nr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, Br = ["onKeydown", "placeholder"], Fr = {
3955
3964
  __name: "Input",
3956
3965
  props: {
3957
3966
  text: {
@@ -3987,7 +3996,7 @@ const Xt = {
3987
3996
  o.value = t.text, X(() => {
3988
3997
  l.value.focus(), i();
3989
3998
  });
3990
- }), (c, d) => (h(), g("div", Rr, [
3999
+ }), (c, d) => (h(), g("div", Nr, [
3991
4000
  B(Fn, {
3992
4001
  src: e.text,
3993
4002
  hasClearBtn: !0,
@@ -4006,7 +4015,7 @@ const Xt = {
4006
4015
  onFocus: i,
4007
4016
  onKeydown: Jn(ft(u, ["ctrl", "prevent"]), ["enter"]),
4008
4017
  placeholder: `Min ${M(Ie).IMPROVE_INPUT_MIN_LENGTH} characters. ${M(vt) ? "" : "Ctrl+Enter to improve"}`
4009
- }, null, 40, Pr), [
4018
+ }, null, 40, Br), [
4010
4019
  [
4011
4020
  nt,
4012
4021
  o.value,
@@ -4016,7 +4025,7 @@ const Xt = {
4016
4025
  ])
4017
4026
  ]));
4018
4027
  }
4019
- }, Br = /* @__PURE__ */ he(Nr, [["__scopeId", "data-v-66614870"]]);
4028
+ }, jr = /* @__PURE__ */ he(Fr, [["__scopeId", "data-v-66614870"]]);
4020
4029
  function re() {
4021
4030
  }
4022
4031
  re.prototype = {
@@ -4187,9 +4196,9 @@ function qe(e, n) {
4187
4196
  return xt(e, n, "");
4188
4197
  }
4189
4198
  function nn(e, n) {
4190
- return n.slice(0, Fr(e, n));
4199
+ return n.slice(0, Hr(e, n));
4191
4200
  }
4192
- function Fr(e, n) {
4201
+ function Hr(e, n) {
4193
4202
  var t = 0;
4194
4203
  e.length > n.length && (t = e.length - n.length);
4195
4204
  var o = n.length;
@@ -4209,7 +4218,7 @@ function Fr(e, n) {
4209
4218
  }
4210
4219
  return s;
4211
4220
  }
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();
4221
+ 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}", zr = new RegExp("[".concat(et, "]+|\\s+|[^").concat(et, "]"), "ug"), rt = new re();
4213
4222
  rt.equals = function(e, n, t) {
4214
4223
  return t.ignoreCase && (e = e.toLowerCase(), n = n.toLowerCase()), e.trim() === n.trim();
4215
4224
  };
@@ -4222,7 +4231,7 @@ rt.tokenize = function(e) {
4222
4231
  return s.segment;
4223
4232
  });
4224
4233
  } else
4225
- t = e.match(jr) || [];
4234
+ t = e.match(zr) || [];
4226
4235
  var o = [], l = null;
4227
4236
  return t.forEach(function(s) {
4228
4237
  /\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;
@@ -4272,7 +4281,7 @@ jn.tokenize = function(e) {
4272
4281
  var n = new RegExp("(\\r?\\n)|[".concat(et, "]+|[^\\S\\n\\r]+|[^").concat(et, "]"), "ug");
4273
4282
  return e.match(n) || [];
4274
4283
  };
4275
- function Hr(e, n, t) {
4284
+ function Zr(e, n, t) {
4276
4285
  return jn.diff(e, n, t);
4277
4286
  }
4278
4287
  var At = new re();
@@ -4294,12 +4303,12 @@ At.equals = function(e, n, t) {
4294
4303
  `) && (e = e.slice(0, -1)), n.endsWith(`
4295
4304
  `) && (n = n.slice(0, -1))), re.prototype.equals.call(this, e, n, t);
4296
4305
  };
4297
- var zr = new re();
4298
- zr.tokenize = function(e) {
4306
+ var Ur = new re();
4307
+ Ur.tokenize = function(e) {
4299
4308
  return e.split(/(\S.+?[.!?])(?=\s+|$)/);
4300
4309
  };
4301
- var Zr = new re();
4302
- Zr.tokenize = function(e) {
4310
+ var Wr = new re();
4311
+ Wr.tokenize = function(e) {
4303
4312
  return e.split(/([{}:;,]|\s+)/);
4304
4313
  };
4305
4314
  function yt(e) {
@@ -4353,7 +4362,7 @@ _t.tokenize = function(e) {
4353
4362
  _t.join = _t.removeEmpty = function(e) {
4354
4363
  return e;
4355
4364
  };
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 = {
4365
+ const qr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, Gr = { class: "flex justify-end items-center mb-1" }, Jr = { class: "bg-transparent" }, Yr = ["innerHTML"], Qr = {
4357
4366
  __name: "Result",
4358
4367
  props: {
4359
4368
  text: {
@@ -4376,7 +4385,7 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4376
4385
  !l.value && s.value && u("copy", s.value);
4377
4386
  }
4378
4387
  function d(m, C) {
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("");
4388
+ return Zr(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("");
4380
4389
  }
4381
4390
  function x() {
4382
4391
  a.value = !a.value, Ie.DEFAULT_DIFF_MODE = a.value;
@@ -4389,8 +4398,8 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4389
4398
  { immediate: !0 }
4390
4399
  ), F(s, (m) => {
4391
4400
  u("change", m);
4392
- }), (m, C) => (h(), g("div", Ur, [
4393
- f("div", Wr, [
4401
+ }), (m, C) => (h(), g("div", qr, [
4402
+ f("div", Gr, [
4394
4403
  B(Fn, {
4395
4404
  loading: l.value,
4396
4405
  src: s.value,
@@ -4401,7 +4410,7 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4401
4410
  onToggleDiff: x
4402
4411
  }, null, 8, ["loading", "src", "hasCopyBtn", "showDiffToggle", "isDiffMode"])
4403
4412
  ]),
4404
- f("div", qr, [
4413
+ f("div", Jr, [
4405
4414
  e.type !== "check" || !a.value ? tt((h(), g("textarea", {
4406
4415
  key: 0,
4407
4416
  ref_key: "textarea",
@@ -4416,27 +4425,27 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4416
4425
  key: 1,
4417
4426
  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",
4418
4427
  innerHTML: l.value ? "" : r.value
4419
- }, null, 8, Gr))
4428
+ }, null, 8, Yr))
4420
4429
  ])
4421
4430
  ]));
4422
4431
  }
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,
4432
+ }, Xr = "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", Kr = "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", ei = "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", ti = "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), ni = { class: "flex rounded-md w-full" }, oi = ["disabled"], li = { class: "flex items-center text-xs" }, si = ["src"], ai = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("div", { class: "w-px bg-base-300" }, null, -1)), ri = { class: "relative block" }, ii = ["aria-expanded", "disabled"], ui = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("span", { class: "sr-only" }, "Open options", -1)), ci = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("img", {
4433
+ src: ti,
4425
4434
  alt: "Chevron down",
4426
4435
  class: "w-4 h-4 fill-current"
4427
- }, null, -1)), ui = [
4428
- ri,
4429
- ii
4430
- ], ci = {
4436
+ }, null, -1)), di = [
4437
+ ui,
4438
+ ci
4439
+ ], fi = {
4431
4440
  key: 0,
4432
4441
  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",
4433
4442
  role: "menu",
4434
4443
  "aria-orientation": "vertical",
4435
4444
  "aria-labelledby": "options-menu"
4436
- }, di = {
4445
+ }, vi = {
4437
4446
  class: "py-1",
4438
4447
  role: "none"
4439
- }, fi = ["onClick"], vi = { class: "flex items-center" }, pi = ["src"], hi = {
4448
+ }, pi = ["onClick"], hi = { class: "flex items-center" }, mi = ["src"], gi = {
4440
4449
  __name: "ButtonSelect",
4441
4450
  props: {
4442
4451
  modelValue: {
@@ -4473,7 +4482,7 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4473
4482
  m.value !== s.value && (s.value = m.value, o("update:modelValue", m.value)), l.value = !1;
4474
4483
  }
4475
4484
  function d(m) {
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;
4485
+ return new URL((/* @__PURE__ */ Object.assign({ "../../assets/icons/ai-explain.svg": Xr, "../../assets/icons/ai-translate.svg": Kr, "../../assets/icons/chevron-down.svg": ei }))[`../../assets/icons/${m}.svg`], import.meta.url).href;
4477
4486
  }
4478
4487
  function x(m) {
4479
4488
  r.value && !r.value.contains(m.target) && (l.value = !1);
@@ -4503,7 +4512,7 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4503
4512
  e.isTextEmpty || t.loading ? "border-base-300" : "border-primary"
4504
4513
  ])
4505
4514
  }, [
4506
- f("div", ei, [
4515
+ f("div", ni, [
4507
4516
  f("button", {
4508
4517
  onClick: i,
4509
4518
  class: P(["px-2 py-1 text-sm font-medium rounded-s focus:z-10 focus:outline-none flex-grow text-left relative", [
@@ -4511,17 +4520,17 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4511
4520
  ]]),
4512
4521
  disabled: e.isTextEmpty || t.loading
4513
4522
  }, [
4514
- f("div", ni, [
4523
+ f("div", li, [
4515
4524
  f("img", {
4516
4525
  src: d(a.value.icon),
4517
4526
  alt: "",
4518
4527
  class: "w-4 h-4 mr-2"
4519
- }, null, 8, oi),
4528
+ }, null, 8, si),
4520
4529
  Ee(" " + G(a.value.label), 1)
4521
4530
  ])
4522
- ], 10, ti),
4523
- li,
4524
- f("div", si, [
4531
+ ], 10, oi),
4532
+ ai,
4533
+ f("div", ri, [
4525
4534
  f("button", {
4526
4535
  onClick: u,
4527
4536
  type: "button",
@@ -4531,12 +4540,12 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4531
4540
  "aria-haspopup": "true",
4532
4541
  "aria-expanded": l.value,
4533
4542
  disabled: e.isTextEmpty || t.loading
4534
- }, ui, 10, ai)
4543
+ }, di, 10, ii)
4535
4544
  ])
4536
4545
  ])
4537
4546
  ], 2),
4538
- l.value ? (h(), g("div", ci, [
4539
- f("div", di, [
4547
+ l.value ? (h(), g("div", fi, [
4548
+ f("div", vi, [
4540
4549
  (h(!0), g(z, null, Y(e.options, (b) => (h(), g("a", {
4541
4550
  key: b.value,
4542
4551
  onClick: (I) => c(b),
@@ -4544,23 +4553,23 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4544
4553
  class: "block px-1 py-1 text-sm text-base-content hover:bg-base-200 hover:text-primary",
4545
4554
  role: "menuitem"
4546
4555
  }, [
4547
- f("div", vi, [
4556
+ f("div", hi, [
4548
4557
  f("img", {
4549
4558
  src: d(b.icon),
4550
4559
  alt: "",
4551
4560
  class: "w-4 h-4 mr-2"
4552
- }, null, 8, pi),
4561
+ }, null, 8, mi),
4553
4562
  Ee(" " + G(b.label), 1)
4554
4563
  ])
4555
- ], 8, fi))), 128))
4564
+ ], 8, pi))), 128))
4556
4565
  ])
4557
4566
  ])) : R("", !0)
4558
4567
  ], 512));
4559
4568
  }
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 = {
4569
+ }, bi = /* @__PURE__ */ he(gi, [["__scopeId", "data-v-345bc0b4"]]), Ci = { class: "w-full mt-1" }, xi = { class: "flex flex-col lg:flex-row lg:items-stretch lg:space-x-4 lg:min-h-[50vh]" }, yi = { class: "lg:flex-grow lg:w-0 flex flex-col" }, wi = { class: "flex flex-row lg:flex-col items-center justify-center place-content-center min-h-full" }, _i = {
4561
4570
  class: "flex items-center",
4562
4571
  style: { "max-width": "300px" }
4563
- }, wi = { class: "lg:flex-grow lg:w-0 flex flex-col" }, _i = {
4572
+ }, Ti = { class: "lg:flex-grow lg:w-0 flex flex-col" }, Si = {
4564
4573
  __name: "WriteTab",
4565
4574
  props: {
4566
4575
  opt: {
@@ -4581,7 +4590,8 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4581
4590
  const t = le("writingStore"), o = le("loaderStore"), l = e, s = n, r = [
4582
4591
  { value: "check", label: "Check", icon: "ai-translate" },
4583
4592
  { value: "improve", label: "Improve", icon: "ai-explain" },
4584
- { value: "improve-plus", label: "Improve +++", icon: "ai-explain" },
4593
+ { value: "improve-plus", label: "Academy", icon: "ai-explain" },
4594
+ { value: "friendly", label: "Friendly", icon: "ai-translate" },
4585
4595
  { value: "simplify", label: "Simplify", icon: "ai-translate" },
4586
4596
  { value: "more-detailed", label: "More detailed", icon: "ai-explain" }
4587
4597
  ];
@@ -4629,10 +4639,10 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4629
4639
  }
4630
4640
  return (b, I) => {
4631
4641
  var $, w;
4632
- return h(), g("div", gi, [
4633
- f("div", bi, [
4634
- f("div", Ci, [
4635
- B(Br, {
4642
+ return h(), g("div", Ci, [
4643
+ f("div", xi, [
4644
+ f("div", yi, [
4645
+ B(jr, {
4636
4646
  class: "my-2 lg:my-0 w-full flex-grow lg:min-h-[50vh]",
4637
4647
  text: M(t).text,
4638
4648
  onChange: a,
@@ -4640,9 +4650,9 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4640
4650
  onImprove: d
4641
4651
  }, null, 8, ["text"])
4642
4652
  ]),
4643
- f("div", xi, [
4644
- f("div", yi, [
4645
- B(mi, {
4653
+ f("div", wi, [
4654
+ f("div", _i, [
4655
+ B(bi, {
4646
4656
  class: "w-full",
4647
4657
  modelValue: l.opt.type,
4648
4658
  options: r,
@@ -4653,14 +4663,14 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4653
4663
  onAction: d
4654
4664
  }, null, 8, ["modelValue", "loading", "isTextEmpty", "hasResult"])
4655
4665
  ]),
4656
- B(Er, {
4666
+ B(Or, {
4657
4667
  class: "ml-2 lg:m-2",
4658
4668
  disabled: ((w = M(t).text) == null ? void 0 : w.length) < 5 || !M(t).result,
4659
4669
  onClick: x
4660
4670
  }, null, 8, ["disabled"])
4661
4671
  ]),
4662
- f("div", wi, [
4663
- B(Jr, {
4672
+ f("div", Ti, [
4673
+ B(Qr, {
4664
4674
  class: "my-2 lg:my-0 w-full flex-grow lg:min-h-[50vh]",
4665
4675
  text: M(t).result,
4666
4676
  originalText: M(t).text,
@@ -4695,17 +4705,17 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4695
4705
  init: a,
4696
4706
  reset: i
4697
4707
  };
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 = {
4708
+ }), Hn = (e) => (Et("data-v-8885ead1"), e = e(), $t(), e), Ei = ["data-theme"], $i = { class: "flex-none py-2 pl-3 pr-2 shadow border border-base-300" }, Oi = { class: "flex-none" }, Ii = { class: "flex w-full border-b border-base-300 items-center" }, Li = {
4699
4709
  key: 0,
4700
4710
  class: "text-xs text-base-content/40 ml-1 italic"
4701
- }, Ii = /* @__PURE__ */ Hn(() => /* @__PURE__ */ f("small", null, "(Tab)", -1)), Li = [
4702
- Ii
4703
- ], ki = {
4711
+ }, ki = /* @__PURE__ */ Hn(() => /* @__PURE__ */ f("small", null, "(Tab)", -1)), Mi = [
4712
+ ki
4713
+ ], Ai = {
4704
4714
  key: 0,
4705
4715
  class: "text-xs text-base-content/40 ml-1 italic"
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 = {
4716
+ }, Vi = /* @__PURE__ */ Hn(() => /* @__PURE__ */ f("small", null, "(Tab)", -1)), Di = [
4717
+ Vi
4718
+ ], Ri = { class: "flex-1 min-h-0" }, Pi = { class: "h-full overflow-y-auto overflow-x-hidden custom-scrollbar" }, Ni = {
4709
4719
  __name: "Popup",
4710
4720
  props: {
4711
4721
  options: {
@@ -4743,11 +4753,15 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4743
4753
  theme: {
4744
4754
  type: String,
4745
4755
  default: "light"
4756
+ },
4757
+ isPremium: {
4758
+ type: Boolean,
4759
+ default: !1
4746
4760
  }
4747
4761
  },
4748
4762
  emits: ["nav", "translate", "write", "common"],
4749
4763
  setup(e, { emit: n }) {
4750
- const t = ql();
4764
+ const t = Jl();
4751
4765
  ve(t), bt(t), Oe(t), xe(t), ln(t);
4752
4766
  const o = ve(), l = bt(), s = Oe(), r = xe(), a = ln();
4753
4767
  ce("translationStore", o), ce("ttsStore", l), ce("languageStore", s), ce("loaderStore", r), ce("writingStore", a);
@@ -4792,20 +4806,21 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4792
4806
  "data-theme": e.theme,
4793
4807
  class: "h-screen flex flex-col bg-base-100"
4794
4808
  }, [
4795
- f("div", Si, [
4796
- B(xo, {
4809
+ f("div", $i, [
4810
+ B(wo, {
4797
4811
  "header-settings": e.headerSettings,
4798
4812
  "current-theme": e.theme,
4813
+ "is-premium": e.isPremium,
4799
4814
  onReader: y[0] || (y[0] = (_) => u("reader")),
4800
4815
  onLearn: y[1] || (y[1] = (_) => u("learn")),
4801
4816
  onSettings: y[2] || (y[2] = (_) => u("settings")),
4802
4817
  onFullScreen: y[3] || (y[3] = (_) => u("fullscreen")),
4803
4818
  onAccount: y[4] || (y[4] = (_) => u("account")),
4804
4819
  onThemeChange: c
4805
- }, null, 8, ["header-settings", "current-theme"])
4820
+ }, null, 8, ["header-settings", "current-theme", "is-premium"])
4806
4821
  ]),
4807
- f("div", Ei, [
4808
- f("div", $i, [
4822
+ f("div", Oi, [
4823
+ f("div", Ii, [
4809
4824
  f("button", {
4810
4825
  class: P([
4811
4826
  "w-1/2 px-4 py-2 text-sm font-medium",
@@ -4814,7 +4829,7 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4814
4829
  onClick: y[5] || (y[5] = (_) => u("activeTab", "translate"))
4815
4830
  }, [
4816
4831
  Ee(" Translate "),
4817
- !M(vt) && I.value.activeTab !== "translate" ? (h(), g("span", Oi, Li)) : R("", !0)
4832
+ !M(vt) && I.value.activeTab !== "translate" ? (h(), g("span", Li, Mi)) : R("", !0)
4818
4833
  ], 2),
4819
4834
  f("button", {
4820
4835
  class: P([
@@ -4824,13 +4839,13 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4824
4839
  onClick: y[6] || (y[6] = (_) => u("activeTab", "write"))
4825
4840
  }, [
4826
4841
  Ee(" Write "),
4827
- !M(vt) && I.value.activeTab !== "write" ? (h(), g("span", ki, Ai)) : R("", !0)
4842
+ !M(vt) && I.value.activeTab !== "write" ? (h(), g("span", Ai, Di)) : R("", !0)
4828
4843
  ], 2)
4829
4844
  ])
4830
4845
  ]),
4831
- f("div", Vi, [
4832
- f("div", Di, [
4833
- I.value.activeTab === "translate" ? (h(), W(wr, {
4846
+ f("div", Ri, [
4847
+ f("div", Pi, [
4848
+ I.value.activeTab === "translate" ? (h(), W(Tr, {
4834
4849
  key: 0,
4835
4850
  opt: I.value.translateOpts,
4836
4851
  languages: I.value.languages,
@@ -4852,7 +4867,7 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4852
4867
  onAiExplain: y[12] || (y[12] = (_) => d("aiExplain", _)),
4853
4868
  onCopy: y[13] || (y[13] = (_) => m("copy", _))
4854
4869
  }, null, 8, ["opt", "languages", "translation", "explanation", "tts", "isTTS", "isFavoriteFeatureEnabled", "isAITranslateFeatureEnabled", "isFavorite", "isAITranslate", "isAIExplain", "aiExplainMinLength"])) : R("", !0),
4855
- I.value.activeTab === "write" ? (h(), W(_i, {
4870
+ I.value.activeTab === "write" ? (h(), W(Si, {
4856
4871
  key: 1,
4857
4872
  opt: I.value.writeOpts,
4858
4873
  languages: I.value.languages,
@@ -4863,9 +4878,9 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4863
4878
  }, null, 8, ["opt", "languages", "writing"])) : R("", !0)
4864
4879
  ])
4865
4880
  ])
4866
- ], 8, Ti));
4881
+ ], 8, Ei));
4867
4882
  }
4868
- }, Bi = /* @__PURE__ */ he(Ri, [["__scopeId", "data-v-e4dbf9d3"]]);
4883
+ }, ji = /* @__PURE__ */ he(Ni, [["__scopeId", "data-v-8885ead1"]]);
4869
4884
  export {
4870
- Bi as default
4885
+ ji as default
4871
4886
  };