@ddict/bubble 1.0.9 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/icons/ai-explain-filled.svg +1 -0
- package/dist/assets/icons/ai-explain.svg +1 -0
- package/dist/assets/icons/ai-filled.svg +17 -0
- package/dist/assets/icons/ai.svg +5 -0
- package/dist/assets/icons/favorite.svg +1 -1
- package/dist/assets/icons/spinning.svg +1 -0
- package/dist/bubble.css +1 -1
- package/dist/bubble.es.js +1137 -978
- package/dist/bubble.umd.js +3 -2
- package/package.json +1 -1
package/dist/bubble.umd.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
(function(N,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(N=typeof globalThis<"u"?globalThis:N||self,i(N.Bubble={},N.Vue))})(this,function(N,i){"use strict";const qt="data:image/svg+xml,%3csvg%20width='14'%20height='9'%20viewBox='0%200%2014%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.36153%201.34067C6.15774%200.203232%207.84226%200.203229%208.63846%201.34066L14%209H0L5.36153%201.34067Z'%20fill='white'%20stroke-width='0.5'/%3e%3c/svg%3e",D=Math.min,S=Math.max,rt=Math.round,ct=Math.floor,G=t=>({x:t,y:t}),jt={left:"right",right:"left",bottom:"top",top:"bottom"},Zt={start:"end",end:"start"};function gt(t,e,n){return S(t,D(e,n))}function z(t,e){return typeof t=="function"?t(e):t}function J(t){return t.split("-")[0]}function $(t){return t.split("-")[1]}function It(t){return t==="x"?"y":"x"}function ut(t){return t==="y"?"height":"width"}function W(t){return["top","bottom"].includes(J(t))?"y":"x"}function mt(t){return It(W(t))}function Pt(t,e,n){n===void 0&&(n=!1);const o=$(t),s=mt(t),l=ut(s);let r=s==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[l]>e.floating[l]&&(r=at(r)),[r,at(r)]}function zt(t){const e=at(t);return[Ct(t),e,Ct(e)]}function Ct(t){return t.replace(/start|end/g,e=>Zt[e])}function $t(t,e,n){const o=["left","right"],s=["right","left"],l=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?s:o:e?o:s;case"left":case"right":return e?l:r;default:return[]}}function _t(t,e,n,o){const s=$(t);let l=$t(J(t),n==="start",o);return s&&(l=l.map(r=>r+"-"+s),e&&(l=l.concat(l.map(Ct)))),l}function at(t){return t.replace(/left|right|bottom|top/g,e=>jt[e])}function Xt(t){return{top:0,right:0,bottom:0,left:0,...t}}function bt(t){return typeof t!="number"?Xt(t):{top:t,right:t,bottom:t,left:t}}function ft(t){const{x:e,y:n,width:o,height:s}=t;return{width:o,height:s,top:n,left:e,right:e+o,bottom:n+s,x:e,y:n}}function St(t,e,n){let{reference:o,floating:s}=t;const l=W(e),r=mt(e),a=ut(r),c=J(e),f=l==="y",d=o.x+o.width/2-s.width/2,A=o.y+o.height/2-s.height/2,m=o[a]/2-s[a]/2;let g;switch(c){case"top":g={x:d,y:o.y-s.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:A};break;case"left":g={x:o.x-s.width,y:A};break;default:g={x:o.x,y:o.y}}switch($(e)){case"start":g[r]-=m*(n&&f?-1:1);break;case"end":g[r]+=m*(n&&f?-1:1);break}return g}const te=async(t,e,n)=>{const{placement:o="bottom",strategy:s="absolute",middleware:l=[],platform:r}=n,a=l.filter(Boolean),c=await(r.isRTL==null?void 0:r.isRTL(e));let f=await r.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:A}=St(f,o,c),m=o,g={},C=0;for(let h=0;h<a.length;h++){const{name:w,fn:B}=a[h],{x:E,y:x,data:p,reset:u}=await B({x:d,y:A,initialPlacement:o,placement:m,strategy:s,middlewareData:g,rects:f,platform:r,elements:{reference:t,floating:e}});d=E??d,A=x??A,g={...g,[w]:{...g[w],...p}},u&&C<=50&&(C++,typeof u=="object"&&(u.placement&&(m=u.placement),u.rects&&(f=u.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:s}):u.rects),{x:d,y:A}=St(f,m,c)),h=-1)}return{x:d,y:A,placement:m,strategy:s,middlewareData:g}};async function pt(t,e){var n;e===void 0&&(e={});const{x:o,y:s,platform:l,rects:r,elements:a,strategy:c}=t,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:A="floating",altBoundary:m=!1,padding:g=0}=z(e,t),C=bt(g),w=a[m?A==="floating"?"reference":"floating":A],B=ft(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(w)))==null||n?w:w.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(a.floating)),boundary:f,rootBoundary:d,strategy:c})),E=A==="floating"?{x:o,y:s,width:r.floating.width,height:r.floating.height}:r.reference,x=await(l.getOffsetParent==null?void 0:l.getOffsetParent(a.floating)),p=await(l.isElement==null?void 0:l.isElement(x))?await(l.getScale==null?void 0:l.getScale(x))||{x:1,y:1}:{x:1,y:1},u=ft(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:E,offsetParent:x,strategy:c}):E);return{top:(B.top-u.top+C.top)/p.y,bottom:(u.bottom-B.bottom+C.bottom)/p.y,left:(B.left-u.left+C.left)/p.x,right:(u.right-B.right+C.right)/p.x}}const ee=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:s,rects:l,platform:r,elements:a,middlewareData:c}=e,{element:f,padding:d=0}=z(t,e)||{};if(f==null)return{};const A=bt(d),m={x:n,y:o},g=mt(s),C=ut(g),h=await r.getDimensions(f),w=g==="y",B=w?"top":"left",E=w?"bottom":"right",x=w?"clientHeight":"clientWidth",p=l.reference[C]+l.reference[g]-m[g]-l.floating[C],u=m[g]-l.reference[g],I=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f));let y=I?I[x]:0;(!y||!await(r.isElement==null?void 0:r.isElement(I)))&&(y=a.floating[x]||l.floating[C]);const F=p/2-u/2,k=y/2-h[C]/2-1,v=D(A[B],k),V=D(A[E],k),P=v,lt=y-h[C]-V,b=y/2-h[C]/2+F,nt=gt(P,b,lt),O=!c.arrow&&$(s)!=null&&b!==nt&&l.reference[C]/2-(b<P?v:V)-h[C]/2<0,H=O?b<P?b-P:b-lt:0;return{[g]:m[g]+H,data:{[g]:nt,centerOffset:b-nt-H,...O&&{alignmentOffset:H}},reset:O}}}),ne=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:s,middlewareData:l,rects:r,initialPlacement:a,platform:c,elements:f}=e,{mainAxis:d=!0,crossAxis:A=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:h=!0,...w}=z(t,e);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const B=J(s),E=W(a),x=J(a)===a,p=await(c.isRTL==null?void 0:c.isRTL(f.floating)),u=m||(x||!h?[at(a)]:zt(a)),I=C!=="none";!m&&I&&u.push(..._t(a,h,C,p));const y=[a,...u],F=await pt(e,w),k=[];let v=((o=l.flip)==null?void 0:o.overflows)||[];if(d&&k.push(F[B]),A){const b=Pt(s,r,p);k.push(F[b[0]],F[b[1]])}if(v=[...v,{placement:s,overflows:k}],!k.every(b=>b<=0)){var V,P;const b=(((V=l.flip)==null?void 0:V.index)||0)+1,nt=y[b];if(nt)return{data:{index:b,overflows:v},reset:{placement:nt}};let O=(P=v.filter(H=>H.overflows[0]<=0).sort((H,Y)=>H.overflows[1]-Y.overflows[1])[0])==null?void 0:P.placement;if(!O)switch(g){case"bestFit":{var lt;const H=(lt=v.filter(Y=>{if(I){const K=W(Y.placement);return K===E||K==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(K=>K>0).reduce((K,T2)=>K+T2,0)]).sort((Y,K)=>Y[1]-K[1])[0])==null?void 0:lt[0];H&&(O=H);break}case"initialPlacement":O=a;break}if(s!==O)return{reset:{placement:O}}}return{}}}};async function oe(t,e){const{placement:n,platform:o,elements:s}=t,l=await(o.isRTL==null?void 0:o.isRTL(s.floating)),r=J(n),a=$(n),c=W(n)==="y",f=["left","top"].includes(r)?-1:1,d=l&&c?-1:1,A=z(e,t);let{mainAxis:m,crossAxis:g,alignmentAxis:C}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...A};return a&&typeof C=="number"&&(g=a==="end"?C*-1:C),c?{x:g*d,y:m*f}:{x:m*f,y:g*d}}const ie=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:s,y:l,placement:r,middlewareData:a}=e,c=await oe(e,t);return r===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:s+c.x,y:l+c.y,data:{...c,placement:r}}}}},se=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:s}=e,{mainAxis:l=!0,crossAxis:r=!1,limiter:a={fn:w=>{let{x:B,y:E}=w;return{x:B,y:E}}},...c}=z(t,e),f={x:n,y:o},d=await pt(e,c),A=W(J(s)),m=It(A);let g=f[m],C=f[A];if(l){const w=m==="y"?"top":"left",B=m==="y"?"bottom":"right",E=g+d[w],x=g-d[B];g=gt(E,g,x)}if(r){const w=A==="y"?"top":"left",B=A==="y"?"bottom":"right",E=C+d[w],x=C-d[B];C=gt(E,C,x)}const h=a.fn({...e,[m]:g,[A]:C});return{...h,data:{x:h.x-n,y:h.y-o}}}}},le=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:s,elements:l}=e,{apply:r=()=>{},...a}=z(t,e),c=await pt(e,a),f=J(n),d=$(n),A=W(n)==="y",{width:m,height:g}=o.floating;let C,h;f==="top"||f==="bottom"?(C=f,h=d===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(h=f,C=d==="end"?"top":"bottom");const w=g-c.top-c.bottom,B=m-c.left-c.right,E=D(g-c[C],w),x=D(m-c[h],B),p=!e.middlewareData.shift;let u=E,I=x;if(A?I=d||p?D(x,B):B:u=d||p?D(E,w):w,p&&!d){const F=S(c.left,0),k=S(c.right,0),v=S(c.top,0),V=S(c.bottom,0);A?I=m-2*(F!==0||k!==0?F+k:S(c.left,c.right)):u=g-2*(v!==0||V!==0?v+V:S(c.top,c.bottom))}await r({...e,availableWidth:I,availableHeight:u});const y=await s.getDimensions(l.floating);return m!==y.width||g!==y.height?{reset:{rects:!0}}:{}}}};function q(t){return ht(t)?(t.nodeName||"").toLowerCase():"#document"}function Q(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function T(t){var e;return(e=(ht(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ht(t){return t instanceof Node||t instanceof Q(t).Node}function R(t){return t instanceof Element||t instanceof Q(t).Element}function M(t){return t instanceof HTMLElement||t instanceof Q(t).HTMLElement}function Qt(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Q(t).ShadowRoot}function ot(t){const{overflow:e,overflowX:n,overflowY:o,display:s}=L(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(s)}function re(t){return["table","td","th"].includes(q(t))}function dt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function wt(t){const e=Bt(),n=L(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function ce(t){let e=U(t);for(;M(e)&&!_(e);){if(dt(e))return null;if(wt(e))return e;e=U(e)}return null}function Bt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function _(t){return["html","body","#document"].includes(q(t))}function L(t){return Q(t).getComputedStyle(t)}function At(t){return R(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function U(t){if(q(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Qt(t)&&t.host||T(t);return Qt(e)?e.host:e}function kt(t){const e=U(t);return _(e)?t.ownerDocument?t.ownerDocument.body:t.body:M(e)&&ot(e)?e:kt(e)}function it(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=kt(t),l=s===((o=t.ownerDocument)==null?void 0:o.body),r=Q(s);return l?e.concat(r,r.visualViewport||[],ot(s)?s:[],r.frameElement&&n?it(r.frameElement):[]):e.concat(s,it(s,[],n))}function Lt(t){const e=L(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const s=M(t),l=s?t.offsetWidth:n,r=s?t.offsetHeight:o,a=rt(n)!==l||rt(o)!==r;return a&&(n=l,o=r),{width:n,height:o,$:a}}function Et(t){return R(t)?t:t.contextElement}function X(t){const e=Et(t);if(!M(e))return G(1);const n=e.getBoundingClientRect(),{width:o,height:s,$:l}=Lt(e);let r=(l?rt(n.width):n.width)/o,a=(l?rt(n.height):n.height)/s;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}const ae=G(0);function Ft(t){const e=Q(t);return!Bt()||!e.visualViewport?ae:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function fe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Q(t)?!1:e}function j(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),l=Et(t);let r=G(1);e&&(o?R(o)&&(r=X(o)):r=X(t));const a=fe(l,n,o)?Ft(l):G(0);let c=(s.left+a.x)/r.x,f=(s.top+a.y)/r.y,d=s.width/r.x,A=s.height/r.y;if(l){const m=Q(l),g=o&&R(o)?Q(o):o;let C=m,h=C.frameElement;for(;h&&o&&g!==C;){const w=X(h),B=h.getBoundingClientRect(),E=L(h),x=B.left+(h.clientLeft+parseFloat(E.paddingLeft))*w.x,p=B.top+(h.clientTop+parseFloat(E.paddingTop))*w.y;c*=w.x,f*=w.y,d*=w.x,A*=w.y,c+=x,f+=p,C=Q(h),h=C.frameElement}}return ft({width:d,height:A,x:c,y:f})}function de(t){let{elements:e,rect:n,offsetParent:o,strategy:s}=t;const l=s==="fixed",r=T(o),a=e?dt(e.floating):!1;if(o===r||a&&l)return n;let c={scrollLeft:0,scrollTop:0},f=G(1);const d=G(0),A=M(o);if((A||!A&&!l)&&((q(o)!=="body"||ot(r))&&(c=At(o)),M(o))){const m=j(o);f=X(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+d.x,y:n.y*f.y-c.scrollTop*f.y+d.y}}function Ae(t){return Array.from(t.getClientRects())}function vt(t){return j(T(t)).left+At(t).scrollLeft}function ge(t){const e=T(t),n=At(t),o=t.ownerDocument.body,s=S(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),l=S(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+vt(t);const a=-n.scrollTop;return L(o).direction==="rtl"&&(r+=S(e.clientWidth,o.clientWidth)-s),{width:s,height:l,x:r,y:a}}function ue(t,e){const n=Q(t),o=T(t),s=n.visualViewport;let l=o.clientWidth,r=o.clientHeight,a=0,c=0;if(s){l=s.width,r=s.height;const f=Bt();(!f||f&&e==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:l,height:r,x:a,y:c}}function me(t,e){const n=j(t,!0,e==="fixed"),o=n.top+t.clientTop,s=n.left+t.clientLeft,l=M(t)?X(t):G(1),r=t.clientWidth*l.x,a=t.clientHeight*l.y,c=s*l.x,f=o*l.y;return{width:r,height:a,x:c,y:f}}function Dt(t,e,n){let o;if(e==="viewport")o=ue(t,n);else if(e==="document")o=ge(T(t));else if(R(e))o=me(e,n);else{const s=Ft(t);o={...e,x:e.x-s.x,y:e.y-s.y}}return ft(o)}function Rt(t,e){const n=U(t);return n===e||!R(n)||_(n)?!1:L(n).position==="fixed"||Rt(n,e)}function Ce(t,e){const n=e.get(t);if(n)return n;let o=it(t,[],!1).filter(a=>R(a)&&q(a)!=="body"),s=null;const l=L(t).position==="fixed";let r=l?U(t):t;for(;R(r)&&!_(r);){const a=L(r),c=wt(r);!c&&a.position==="fixed"&&(s=null),(l?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||ot(r)&&!c&&Rt(t,r))?o=o.filter(d=>d!==r):s=a,r=U(r)}return e.set(t,o),o}function pe(t){let{element:e,boundary:n,rootBoundary:o,strategy:s}=t;const r=[...n==="clippingAncestors"?dt(e)?[]:Ce(e,this._c):[].concat(n),o],a=r[0],c=r.reduce((f,d)=>{const A=Dt(e,d,s);return f.top=S(A.top,f.top),f.right=D(A.right,f.right),f.bottom=D(A.bottom,f.bottom),f.left=S(A.left,f.left),f},Dt(e,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function he(t){const{width:e,height:n}=Lt(t);return{width:e,height:n}}function we(t,e,n){const o=M(e),s=T(e),l=n==="fixed",r=j(t,!0,l,e);let a={scrollLeft:0,scrollTop:0};const c=G(0);if(o||!o&&!l)if((q(e)!=="body"||ot(s))&&(a=At(e)),o){const A=j(e,!0,l,e);c.x=A.x+e.clientLeft,c.y=A.y+e.clientTop}else s&&(c.x=vt(s));const f=r.left+a.scrollLeft-c.x,d=r.top+a.scrollTop-c.y;return{x:f,y:d,width:r.width,height:r.height}}function xt(t){return L(t).position==="static"}function Mt(t,e){return!M(t)||L(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ht(t,e){const n=Q(t);if(dt(t))return n;if(!M(t)){let s=U(t);for(;s&&!_(s);){if(R(s)&&!xt(s))return s;s=U(s)}return n}let o=Mt(t,e);for(;o&&re(o)&&xt(o);)o=Mt(o,e);return o&&_(o)&&xt(o)&&!wt(o)?n:o||ce(t)||n}const Be=async function(t){const e=this.getOffsetParent||Ht,n=this.getDimensions,o=await n(t.floating);return{reference:we(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ee(t){return L(t).direction==="rtl"}const xe={convertOffsetParentRelativeRectToViewportRelativeRect:de,getDocumentElement:T,getClippingRect:pe,getOffsetParent:Ht,getElementRects:Be,getClientRects:Ae,getDimensions:he,getScale:X,isElement:R,isRTL:Ee};function ye(t,e){let n=null,o;const s=T(t);function l(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function r(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),l();const{left:f,top:d,width:A,height:m}=t.getBoundingClientRect();if(a||e(),!A||!m)return;const g=ct(d),C=ct(s.clientWidth-(f+A)),h=ct(s.clientHeight-(d+m)),w=ct(f),E={rootMargin:-g+"px "+-C+"px "+-h+"px "+-w+"px",threshold:S(0,D(1,c))||1};let x=!0;function p(u){const I=u[0].intersectionRatio;if(I!==c){if(!x)return r();I?r(!1,I):o=setTimeout(()=>{r(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(p,{...E,root:s.ownerDocument})}catch{n=new IntersectionObserver(p,E)}n.observe(t)}return r(!0),l}function Ie(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=Et(t),d=s||l?[...f?it(f):[],...it(e)]:[];d.forEach(B=>{s&&B.addEventListener("scroll",n,{passive:!0}),l&&B.addEventListener("resize",n)});const A=f&&a?ye(f,n):null;let m=-1,g=null;r&&(g=new ResizeObserver(B=>{let[E]=B;E&&E.target===f&&g&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(e)})),n()}),f&&!c&&g.observe(f),g.observe(e));let C,h=c?j(t):null;c&&w();function w(){const B=j(t);h&&(B.x!==h.x||B.y!==h.y||B.width!==h.width||B.height!==h.height)&&n(),h=B,C=requestAnimationFrame(w)}return n(),()=>{var B;d.forEach(E=>{s&&E.removeEventListener("scroll",n),l&&E.removeEventListener("resize",n)}),A==null||A(),(B=g)==null||B.disconnect(),g=null,c&&cancelAnimationFrame(C)}}const be=ie,Se=se,Qe=ne,ke=le,Le=ee,Fe=(t,e,n)=>{const o=new Map,s={platform:xe,...n},l={...s.platform,_c:o};return te(t,e,{...s,platform:l})};function ve(t){return t!=null&&typeof t=="object"&&"$el"in t}function yt(t){if(ve(t)){const e=t.$el;return ht(e)&&q(e)==="#comment"?null:e}return t}function tt(t){return typeof t=="function"?t():i.unref(t)}function De(t){return{name:"arrow",options:t,fn(e){const n=yt(tt(t.element));return n==null?{}:Le({element:n,padding:t.padding}).fn(e)}}}function Tt(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Ot(t,e){const n=Tt(t);return Math.round(e*n)/n}function Re(t,e,n){n===void 0&&(n={});const o=n.whileElementsMounted,s=i.computed(()=>{var y;return(y=tt(n.open))!=null?y:!0}),l=i.computed(()=>tt(n.middleware)),r=i.computed(()=>{var y;return(y=tt(n.placement))!=null?y:"bottom"}),a=i.computed(()=>{var y;return(y=tt(n.strategy))!=null?y:"absolute"}),c=i.computed(()=>{var y;return(y=tt(n.transform))!=null?y:!0}),f=i.computed(()=>yt(t.value)),d=i.computed(()=>yt(e.value)),A=i.ref(0),m=i.ref(0),g=i.ref(a.value),C=i.ref(r.value),h=i.shallowRef({}),w=i.ref(!1),B=i.computed(()=>{const y={position:g.value,left:"0",top:"0"};if(!d.value)return y;const F=Ot(d.value,A.value),k=Ot(d.value,m.value);return c.value?{...y,transform:"translate("+F+"px, "+k+"px)",...Tt(d.value)>=1.5&&{willChange:"transform"}}:{position:g.value,left:F+"px",top:k+"px"}});let E;function x(){f.value==null||d.value==null||Fe(f.value,d.value,{middleware:l.value,placement:r.value,strategy:a.value}).then(y=>{A.value=y.x,m.value=y.y,g.value=y.strategy,C.value=y.placement,h.value=y.middlewareData,w.value=!0})}function p(){typeof E=="function"&&(E(),E=void 0)}function u(){if(p(),o===void 0){x();return}if(f.value!=null&&d.value!=null){E=o(f.value,d.value,x);return}}function I(){s.value||(w.value=!1)}return i.watch([l,r,a],x,{flush:"sync"}),i.watch([f,d],u,{flush:"sync"}),i.watch(s,I,{flush:"sync"}),i.getCurrentScope()&&i.onScopeDispose(p),{x:i.shallowReadonly(A),y:i.shallowReadonly(m),strategy:i.shallowReadonly(g),placement:i.shallowReadonly(C),middlewareData:i.shallowReadonly(h),isPositioned:i.shallowReadonly(w),floatingStyles:B,update:x}}const Me="data:image/svg+xml,%3csvg%20width='1324'%20height='1326'%20viewBox='0%200%201324%201326'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='141'%20y='78'%20width='1042'%20height='1170'%20fill='white'/%3e%3cpath%20d='M184.533%201.99984C135.867%207.19984%2089.8666%2029.8665%2056.4%2065.1998C29.6%2093.4665%2012.5333%20126.266%203.73329%20166.4L0.666626%20180V663.333V1146.67L3.73329%201160.27C12.5333%201200.4%2029.6%201233.2%2056.4%201261.47C90.4%201297.33%20135.333%201319.33%20185.6%201324.67C203.333%201326.53%201122.53%201326.4%201139.73%201324.53C1188.53%201319.33%201229.07%201299.73%201264.13%201264.8C1294.27%201234.67%201311.47%201202.67%201320.8%201159.33C1323.2%201148.4%201323.33%201130%201323.33%20663.333C1323.33%20196.667%201323.2%20178.266%201320.8%20167.333C1311.47%20124%201294.27%2091.9998%201264.13%2061.8664C1229.07%2026.9331%201188.53%207.33314%201139.73%202.13314C1124.67%200.399809%20200%200.399842%20184.533%201.99984ZM732.933%20151.466C746.8%20152.933%20763.333%20157.6%20774%20163.067C800.267%20176.267%20822.4%20200.4%20833.2%20227.333C841.867%20249.333%20841.467%20233.467%20841.067%20502C840.533%20777.6%20841.733%20750.267%20829.2%20776.133C822.133%20790.933%20810.667%20806.533%20800.267%20815.2C795.2%20819.6%20793.2%20822.267%20792%20827.067C786.133%20848.267%20768.667%20885.867%20755.2%20906.133C724.533%20952%20681.2%20986.133%20624%201009.33C615.6%201012.8%20608.4%201015.87%20608.133%201016.13C607.867%201016.27%20614.533%201023.33%20622.933%201031.6C633.467%201042.13%20639.333%201049.07%20642.133%201054.4C646.933%201063.87%20645.467%201064%20672.667%201050.8C724.933%201025.47%20762.933%20994.8%20794.933%20952C811.467%20929.867%20829.867%20895.333%20839.333%20868.267C841.333%20862.667%20843.467%20858%20844.133%20858C844.667%20858%20845.6%20859.333%20846.133%20860.933C848.267%20868.133%20863.333%20900.8%20870.133%20913.2C898%20963.867%20931.6%201001.2%20975.333%201030.27C989.867%201040%201017.2%201054.4%201031.6%201059.73L1037.2%201061.87L1041.33%201054.67C1048.4%201042.4%201056.67%201032.27%201067.87%201022.4L1078.67%201012.8L1071.6%201010.27C1067.87%201008.8%201060.53%201006%201055.6%201004.13C1040.93%20998.533%201013.73%20984%201000%20974.267C985.733%20964.133%20960.8%20940.667%20948.933%20926.267C935.067%20909.333%20921.467%20887.467%20910%20864C900.133%20844%20887.2%20812.133%20884.667%20801.6L883.733%20798H971.867H1060V769.333V740.667H963.333H866.533L867.333%20736.267C868.4%20729.867%20870.4%20693.067%20871.467%20662.933C872.267%20639.067%20872.533%20636.4%20874.8%20635.2C878.667%20633.2%20881.333%20626.667%20882.267%20617.333L883.067%20608.667H872.133C864.133%20608.667%20861.067%20608.133%20860.533%20606.8C860%20605.467%20881.2%20466%20886.133%20438.267L886.933%20433.867L977.867%20434.4C1066.67%20434.8%201068.93%20434.8%201079.87%20437.733C1124.8%20449.6%201158.67%20482.533%201172.93%20528L1176.67%20540V808V1076L1172.93%201087.73C1158.53%201133.6%201126.13%201164.93%201078.93%201178.4L1068.67%201181.33L812.667%201181.73C638.8%201182%20552.667%201181.73%20544.4%201180.67C488.667%201174.4%20443.2%201132.13%20432.533%201076.93C431.067%201068.93%20430.667%201046.4%20430.667%20956.667V846.133L340.4%20845.6C252.8%20845.2%20249.6%20845.067%20239.067%20842.267C196.533%20831.067%20164.533%20800.133%20151.067%20757.333L147.333%20745.333V499.333V253.333L150.4%20242C159.067%20209.067%20180.4%20181.866%20210.667%20164.933C221.2%20159.066%20240.4%20152.933%20252.667%20151.6C268.533%20149.733%20716.933%20149.6%20732.933%20151.466Z'%20fill='%233B5695'/%3e%3cpath%20d='M256.533%20213.333C232.933%20218.533%20214.133%20237.067%20209.333%20259.733C208.4%20264.533%20208%20337.2%20208.267%20502L208.667%20737.333L211.733%20744.933C218.533%20761.733%20231.733%20774.533%20248.667%20780.933L256.667%20784L490%20784.4C749.2%20784.8%20734.4%20785.333%20750.133%20776C764.267%20767.6%20775.467%20752.4%20778.667%20737.067C779.6%20732.8%20780%20652.133%20779.733%20494L779.333%20257.333L775.067%20248.267C767.2%20231.6%20756.933%20222%20740.133%20215.467L731.333%20212L498%20211.733C306.8%20211.6%20263.2%20211.867%20256.533%20213.333ZM492%20281.2C546.267%20290.267%20590.267%20311.2%20622.533%20343.333C653.867%20374.667%20671.867%20409.867%20680.267%20456.667C684.133%20478.533%20684.133%20516.267%20680.133%20538.533C665.467%20621.067%20606.933%20684.4%20524%20707.467C490%20716.933%20488.4%20716.933%20392.4%20717.6L305.333%20718.133V498V277.867L391.733%20278.4C465.733%20278.8%20480%20279.2%20492%20281.2Z'%20fill='%233B5695'/%3e%3cpath%20d='M384%20462.933V576.133L345.067%20611.467C306.533%20646.267%20306.133%20646.667%20310.667%20647.067C313.2%20647.333%20348.933%20647.333%20390%20646.933C472.667%20646.267%20477.6%20645.867%20503.6%20637.333C527.6%20629.333%20543.333%20620%20560.267%20603.6C590.133%20574.667%20604.4%20536.267%20602.267%20489.733C600.533%20450.267%20588.267%20420%20564%20395.333C546.8%20377.867%20531.6%20368.4%20506.267%20360C482.933%20352.133%20474.533%20351.2%20427.067%20350.4L384%20349.733V462.933Z'%20fill='%233B5695'/%3e%3c/svg%3e",Z=(t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n},He={name:"Logo"},Te={src:Me,alt:"DDict Logo",class:"w-6 h-6 cursor-pointer"};function Oe(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("img",Te)}const Ge=Z(He,[["render",Oe]]),Je="data:image/gif;base64,R0lGODlhQAAmAPQAAM3Nzerq6sbGxu3t7dnZ2eHh4bW1tfv7+/Ly8re3t7y8vPz8/MLCwvX19fj4+N7e3rq6ur6+vsDAwPb29tLS0vDw8MnJydzc3OTk5NTU1NDQ0NbW1ufn57Ozs////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAwAfACwAAAAAQAAmAAAF/6AnjmRpnmiqrmzrvnAsz3Rt33guL8vb67EFhwGosA4FCaUBbC0Glo40sWGehAJpB3JxNFMVgEGr5XpHT8uY3IkUDl/SJJNgs909hGZtlzI4cSIbfXYGRgCEbAZnX4OJZEZRj1KLgY6THZGYHZVxl5OamJ2Nm5kekpOjTZ+PoamMq6Wuj6pArISGp5u1OhVqjxAbcAECfH0KFz9xBxzFdgkaRiNIDH3BVk0LARvSDgXVlBYDPcwECCIOFxFa0NJIBBM5YXXXIhMXCgIccGljyPEeGmxQYCFAD23O3MCK0SADhDtd7J2poKEOGQkFzjTgN0AMmz9wYNxTkIjBGxECH7v2MaDvRwUKFgsVVLZigQRRGjxMWJeKgIcKJCclwODigLFEAjwgOEooZ4BSPlsY3ZR06SanUIsy7VN1qx2sm6Ie8cqm61UPT8NqpaqULBmwmMSumIrJLCa4k+SqoDupaim8j/SmWIAqkQGfDrIILaD05iQIgFwIASdznAgkPAtFG5Eu6LMM2F5g/siBJroLKsNZLjFhQ0xORWw4IPDQTUgUc+r8MV1CzxgBBnM0wLAwBQIMt1cMKB2ouYsQACH5BAUDAB8ALA8ABQARABMAAAVm4CeOX3NhB6mKzgV1HcMt63cUUTd2hjXQogWHAVvxNAibxaCriTqQh6Pp3FmmVdWVmv1su6Mv2Isdi8HnbMdyIHKNic2npSiqeIJZsLF57WIFKSsV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mTbMzARDGlPpAh4MnsjCQ+BJAQeFIUfBoSKH4eJhYyOj4iKk46Ql42KmpKchZ6BmJ2Wn5SHG4oQBagePxJ1GggTAHp7AmAfHg4XXCUGFgNOCwECPQo6YR4NGUoiEk3LBwVtJQkEKy0eFQAKD9onvL4iBrNhLQsL6OINGsJXJCEAIfkEBQMAHwAsGAASACIAFAAABcLgJ45kaY6Ld65eu5KDU1yT+n6ec1HBch8BgeEjKThsJc8BwxAlKBWkCOOoABIlAcc38iwGwhKEUBM5EBnIymAZqDxW7EryOHgekZsIkmk01HoGGx5NeiMPCIYiGoSKIoiOjIWKkIqSjh+VhpeOmnqclImWjZ2im6SUE3mBF6iGDx4TBIAmbD0eAZMvCkYiHg0UciMSGCm+BwWrJgkbZSRfAHsPRyY5BMIfBgAIUiULAQ8N3UkIGkMCA1w3LooeA1vjIQAh+QQFAwAfACwpABMAEQATAAAFZuAnjovTeGOaloUEbROqfsfCCcYYPY4sLgNAbibgLEQISmKWMlgGHguTCVlIp6qEFZvdckfa6/cTHovKZvRYCzB/FKWHgpvYnD6eCWGpMgAQPiIeCBpDHwIBR1NAAhEYB4GLC5EiIQAh+QQFQwAfACwpABMAEQATAAAFYuAnjp/nkSjpNQQ1nKnoOU8kQhsCj97BMQaU4uGAeQKWYOzDwCw+g8SSZCgcpyjCFTvSBrjdLdgLFpHL57GnogAbMKZGRhozAF48BEA5YgSeKQsBAiIKGAc7KT0YBUVlJkshADs=",Ue={name:"Loading"},Ve=t=>(i.pushScopeId("data-v-a0957544"),t=t(),i.popScopeId(),t),Ye={class:"rounded-lg bg-white p-1 border shadow-custom border-solid border-neutral-300"},Ke=[Ve(()=>i.createElementVNode("img",{src:Je,alt:"Loading",class:"w-12"},null,-1))];function Ne(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("div",Ye,Ke)}const We=Z(Ue,[["render",Ne],["__scopeId","data-v-a0957544"]]),qe={class:"capitalize text-base italic font-normal text-slate-400"},je={class:"text-base leading-6 text-textCustom"},Ze={__name:"Dict",props:{dictionary:Array},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.dictionary,(o,s)=>(i.openBlock(),i.createElementBlock("div",{key:s,class:"mt-2"},[i.createElementVNode("p",qe,i.toDisplayString(o.pos),1),i.createElementVNode("span",je,i.toDisplayString(o.terms.join(", ")),1)]))),128))]))}},Pe="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.33325%204.66667H3.51125C3.82693%204.6667%204.13239%204.55473%204.37325%204.35067L6.83392%202.26667C6.99592%202.12953%207.19374%202.04156%207.40407%202.01312C7.61441%201.98468%207.82849%202.01696%208.02109%202.10615C8.21369%202.19534%208.37678%202.33772%208.49114%202.51652C8.60551%202.69532%208.66638%202.90309%208.66659%203.11534V12.8847C8.66649%2013.097%208.60565%2013.305%208.49125%2013.4839C8.37685%2013.6628%208.21367%2013.8053%208.02094%2013.8945C7.82822%2013.9837%207.614%2014.0159%207.40356%2013.9874C7.19312%2013.9588%206.99523%2013.8707%206.83325%2013.7333L4.37325%2011.6487C4.13229%2011.4449%203.82685%2011.3331%203.51125%2011.3333H2.33325C2.06804%2011.3333%201.81368%2011.228%201.62615%2011.0404C1.43861%2010.8529%201.33325%2010.5986%201.33325%2010.3333V5.66667C1.33325%205.40145%201.43861%205.1471%201.62615%204.95956C1.81368%204.77203%202.06804%204.66667%202.33325%204.66667ZM11.1779%2011.18C11.5969%2010.763%2011.9294%2010.2674%2012.1562%209.72156C12.3831%209.17572%2012.4999%208.59044%2012.4999%207.99934C12.4999%207.40823%2012.3831%206.82295%2012.1562%206.27711C11.9294%205.73127%2011.5969%205.23564%2011.1779%204.81867C11.1317%204.77098%2011.0765%204.73297%2011.0155%204.70686C10.9544%204.68075%2010.8888%204.66705%2010.8224%204.66657C10.756%204.66609%2010.6902%204.67883%2010.6288%204.70406C10.5674%204.72929%2010.5116%204.76649%2010.4647%204.8135C10.4179%204.86051%2010.3808%204.91639%2010.3558%204.97787C10.3307%205.03935%2010.3181%205.10521%2010.3188%205.17159C10.3195%205.23798%2010.3334%205.30357%2010.3597%205.36453C10.3859%205.42549%2010.4241%205.48061%2010.4719%205.52667C10.7977%205.85079%2011.0562%206.23609%2011.2326%206.66043C11.409%207.08477%2011.4998%207.53979%2011.4998%207.99934C11.4998%208.45888%2011.409%208.9139%2011.2326%209.33824C11.0562%209.76258%2010.7977%2010.1479%2010.4719%2010.472C10.4241%2010.5181%2010.3859%2010.5732%2010.3597%2010.6341C10.3334%2010.6951%2010.3195%2010.7607%2010.3188%2010.8271C10.3181%2010.8935%2010.3307%2010.9593%2010.3558%2011.0208C10.3808%2011.0823%2010.4179%2011.1382%2010.4647%2011.1852C10.5116%2011.2322%2010.5674%2011.2694%2010.6288%2011.2946C10.6902%2011.3198%2010.756%2011.3326%2010.8224%2011.3321C10.8888%2011.3316%2010.9544%2011.3179%2011.0155%2011.2918C11.0765%2011.2657%2011.1317%2011.2277%2011.1779%2011.18ZM12.7113%2013.2127C12.6123%2013.2126%2012.5157%2013.1832%2012.4335%2013.1281C12.3513%2013.0731%2012.2873%2012.9949%2012.2495%2012.9035C12.2118%2012.8121%2012.202%2012.7115%2012.2214%2012.6146C12.2408%2012.5176%2012.2886%2012.4285%2012.3586%2012.3587C12.9317%2011.7866%2013.3865%2011.1071%2013.6967%2010.359C14.0069%209.61101%2014.1666%208.80915%2014.1666%207.99934C14.1666%207.18952%2014.0069%206.38766%2013.6967%205.63963C13.3865%204.8916%2012.9317%204.2121%2012.3586%203.64C12.3122%203.59351%2012.2754%203.53834%2012.2503%203.47764C12.2252%203.41693%2012.2124%203.35188%2012.2124%203.2862C12.2125%203.22052%2012.2255%203.15549%2012.2507%203.09483C12.2759%203.03417%2012.3128%202.97907%2012.3593%202.93267C12.4057%202.88627%2012.4609%202.84948%2012.5216%202.8244C12.5823%202.79932%2012.6474%202.78645%2012.7131%202.78651C12.7787%202.78657%2012.8438%202.79957%2012.9044%202.82476C12.9651%202.84995%2013.0202%202.88685%2013.0666%202.93334C13.7327%203.59825%2014.2612%204.38801%2014.6218%205.25741C14.9824%206.12681%2015.168%207.05879%2015.168%208C15.168%208.94122%2014.9824%209.87319%2014.6218%2010.7426C14.2612%2011.612%2013.7327%2012.4018%2013.0666%2013.0667C13.02%2013.1134%2012.9646%2013.1504%2012.9036%2013.1756C12.8426%2013.2007%2012.7772%2013.2129%2012.7113%2013.2127Z'%20fill='%233B5695'/%3e%3c/svg%3e",ze="data:image/svg+xml,%3csvg%20class='swap-on%20fill-current%20h-4%20w-4'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill-rule='evenodd'%20d='M4.5%207.5a3%203%200%200%201%203-3h9a3%203%200%200%201%203%203v9a3%203%200%200%201-3%203h-9a3%203%200%200%201-3-3v-9Z'%20clip-rule='evenodd'%20fill='%238595BE'/%3e%3c/svg%3e",$e=[i.createElementVNode("img",{class:"w-5",src:Pe,alt:"Play"},null,-1)],_e=[i.createElementVNode("img",{class:"w-5",src:ze,alt:"Stop"},null,-1)],Gt={__name:"Player",props:{tts:{type:String,default:""}},emits:["loadTTS"],setup(t,{emit:e}){const n=t,o=e,s=i.computed(()=>n.tts),l=i.ref(!1),r=new Audio;i.watch(s,()=>{if(!s.value){l.value=!1;return}c()},{immediate:!0}),i.onUnmounted(()=>{f(),r.src=""});function a(){if(s.value){c();return}l.value=!0,o("loadTTS")}function c(){s.value&&(r.src=s.value,l.value=!0,r.play().catch(()=>{l.value=!1}))}function f(){r.pause(),r.currentTime=0,l.value=!1}return r.onended=()=>{l.value=!1},(d,A)=>l.value?(i.openBlock(),i.createElementBlock("button",{key:1,class:"btn btn-xs btn-ghost btn-circle",onClick:f},_e)):(i.openBlock(),i.createElementBlock("button",{key:0,class:"btn btn-xs btn-ghost btn-circle",onClick:a},$e))}},Xe="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.47207%201.31905C7.57125%201.12371%207.77589%201%208.00001%201C8.22413%201%208.42877%201.12367%208.52795%201.31905L10.3721%204.95175L14.4959%205.53427C14.7177%205.5656%2014.9019%205.7166%2014.9712%205.9238C15.0404%206.13101%2014.9827%206.35843%2014.8222%206.51049L11.8382%209.33816L12.5427%2013.3309C12.5806%2013.5456%2012.4897%2013.7626%2012.3084%2013.8906C12.1272%2014.0187%2011.8868%2014.0356%2011.6884%2013.9342L8.00004%2012.0491L4.31158%2013.9343C4.11323%2014.0356%203.87286%2014.0187%203.69157%2013.8907C3.51028%2013.7627%203.4195%2013.5457%203.45736%2013.3309L4.1618%209.33819L1.17781%206.51052C1.01735%206.35846%200.959571%206.13101%201.02884%205.92383C1.09807%205.71663%201.28232%205.56563%201.50409%205.53431L5.62787%204.95178L7.47207%201.31905Z'%20fill='%23FFC857'/%3e%3c/svg%3e",t2="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.9491%205.89315C14.8278%205.53128%2014.5111%205.27252%2014.1226%205.21783L10.5264%204.7114L8.91813%201.55315C8.74435%201.21195%208.39257%201%207.99998%201C7.60739%201%207.25557%201.21195%207.08183%201.55315L5.47358%204.7114L1.8774%205.21783C1.48888%205.27252%201.17219%205.53128%201.05086%205.89315C0.929554%206.25501%201.02881%206.64477%201.30993%206.91038L3.91217%209.36871L3.29786%2012.8399C3.2315%2013.215%203.38755%2013.5868%203.7052%2013.8105C3.88128%2013.9344%204.08938%2014%204.30704%2014C4.47232%2014%204.63705%2013.9606%204.78341%2013.886L7.99995%2012.2471L11.2165%2013.886C11.3628%2013.9606%2011.5276%2014%2011.6929%2014C11.9106%2014%2012.1187%2013.9345%2012.2948%2013.8105C12.6124%2013.5868%2012.7685%2013.215%2012.7021%2012.84L12.0878%209.36871L14.6901%206.91035C14.9712%206.64477%2015.0704%206.25498%2014.9491%205.89315ZM14.0266%206.25082L11.2455%208.87813C11.1335%208.98392%2011.0824%209.13637%2011.1089%209.28575L11.7654%2012.9956C11.7701%2013.0226%2011.759%2013.0493%2011.7362%2013.0653C11.7202%2013.0766%2011.7038%2013.079%2011.6929%2013.079C11.6809%2013.079%2011.6694%2013.0762%2011.6587%2013.0708L8.22108%2011.3192C8.15189%2011.284%208.07593%2011.2663%207.99998%2011.2663C7.92402%2011.2663%207.84807%2011.284%207.77882%2011.3193L4.34118%2013.0708C4.33052%2013.0763%204.31904%2013.079%204.30701%2013.079C4.29611%2013.079%204.27969%2013.0767%204.26373%2013.0654C4.24092%2013.0494%204.22975%2013.0226%204.2345%2012.9957L4.89104%209.28584C4.91747%209.13646%204.86637%208.98401%204.75439%208.87822L1.97327%206.25091C1.95308%206.23184%201.94595%206.20383%201.95466%206.17786C1.9634%206.15185%201.98612%206.13326%202.01405%206.12933L5.85743%205.58807C6.0122%205.56626%206.14599%205.47208%206.21521%205.33616L7.93404%201.9608C7.94653%201.9363%207.97178%201.92107%207.99998%201.92107C8.02818%201.92107%208.05343%201.9363%208.06591%201.9608L9.78468%205.33607C9.85391%205.47199%209.9877%205.5662%2010.1425%205.58799L13.9859%206.12924C14.0138%206.1332%2014.0365%206.15176%2014.0452%206.17777C14.0539%206.20374%2014.0468%206.23175%2014.0266%206.25082Z'%20fill='%23FFC857'/%3e%3c/svg%3e",e2={name:"Favorite",props:["isFilled"]},n2={class:"btn btn-xs btn-circle btn-ghost"},o2={key:0,class:"w-5",src:Xe,alt:"Clear"},i2={key:1,class:"w-5",src:t2,alt:"Clear"};function s2(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("button",n2,[n.isFilled?(i.openBlock(),i.createElementBlock("img",o2)):(i.openBlock(),i.createElementBlock("img",i2))])}const Jt=Z(e2,[["render",s2]]),l2="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.12596%201.63869C9.46935%201.54364%209.83221%201.70329%209.99413%202.02068C10.3672%202.75191%2011.1261%203.25%2012%203.25C12.8739%203.25%2013.6328%202.75191%2014.0059%202.02068C14.1678%201.70329%2014.5307%201.54364%2014.874%201.63869C16.5585%202.10497%2018.0759%202.9704%2019.3184%204.12574C19.5611%204.35137%2019.6269%204.70948%2019.4804%205.00666C19.3331%205.30535%2019.25%205.6419%2019.25%206C19.25%207.24263%2020.2574%208.25%2021.5%208.25L21.5314%208.24977C21.8629%208.24504%2022.1583%208.45859%2022.2576%208.77495C22.5777%209.79397%2022.75%2010.8776%2022.75%2012C22.75%2012.7408%2022.6749%2013.4649%2022.5318%2014.1648C22.4548%2014.5411%2022.1059%2014.7985%2021.7237%2014.7609C21.6504%2014.7537%2021.5758%2014.75%2021.5%2014.75C20.2574%2014.75%2019.25%2015.7574%2019.25%2017C19.25%2017.5531%2019.4486%2018.0579%2019.7793%2018.4498C20.027%2018.7434%2020.0128%2019.1767%2019.7465%2019.4535C18.4777%2020.7719%2016.8745%2021.7678%2015.0721%2022.3044C14.6807%2022.4209%2014.2681%2022.2029%2014.1437%2021.814C13.8535%2020.906%2013.0024%2020.25%2012%2020.25C10.9976%2020.25%2010.1465%2020.906%209.85629%2021.814C9.73195%2022.2029%209.31927%2022.4209%208.92789%2022.3044C7.12545%2021.7678%205.52229%2020.7719%204.25353%2019.4535C3.98716%2019.1767%203.97299%2018.7434%204.22072%2018.4498C4.55139%2018.0579%204.75%2017.5531%204.75%2017C4.75%2015.7574%203.74264%2014.75%202.5%2014.75C2.42423%2014.75%202.34963%2014.7537%202.27634%2014.7609C1.89406%2014.7985%201.54519%2014.5411%201.46821%2014.1648C1.32505%2013.4649%201.25%2012.7408%201.25%2012C1.25%2010.8776%201.42227%209.79398%201.74236%208.77494C1.84173%208.45859%202.13705%208.24504%202.4686%208.24977L2.5%208.25C3.74264%208.25%204.75%207.24263%204.75%206C4.75%205.6419%204.66689%205.30535%204.51962%205.00666C4.3731%204.70948%204.43894%204.35137%204.68159%204.12574C5.92411%202.9704%207.44153%202.10497%209.12596%201.63869ZM6.08277%204.88991C6.19152%205.24123%206.25%205.61424%206.25%206C6.25%207.88945%204.85261%209.45253%203.03493%209.71213C2.84898%2010.4432%202.75%2011.2096%202.75%2012C2.75%2012.4294%202.77921%2012.8516%202.83567%2013.2648C4.74948%2013.4346%206.25%2015.0421%206.25%2017C6.25%2017.6669%206.0754%2018.2941%205.76971%2018.8372C6.62645%2019.6184%207.63002%2020.2404%208.73362%2020.657C9.37706%2019.5189%2010.598%2018.75%2012%2018.75C13.402%2018.75%2014.6229%2019.5189%2015.2664%2020.657C16.37%2020.2404%2017.3735%2019.6184%2018.2303%2018.8372C17.9246%2018.2941%2017.75%2017.6669%2017.75%2017C17.75%2015.0421%2019.2505%2013.4346%2021.1643%2013.2648C21.2208%2012.8516%2021.25%2012.4294%2021.25%2012C21.25%2011.2096%2021.151%2010.4432%2020.9651%209.71213C19.1474%209.45252%2017.75%207.88945%2017.75%206C17.75%205.61424%2017.8085%205.24123%2017.9172%204.88991C17.0618%204.1771%2016.0762%203.61614%2015.0018%203.24775C14.3184%204.15897%2013.2287%204.75%2012%204.75C10.7713%204.75%209.68158%204.15897%208.99819%203.24775C7.92382%203.61614%206.93823%204.1771%206.08277%204.88991Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M7.75%2012C7.75%209.65278%209.65279%207.75%2012%207.75C14.3472%207.75%2016.25%209.65278%2016.25%2012C16.25%2014.3472%2014.3472%2016.25%2012%2016.25C9.65279%2016.25%207.75%2014.3472%207.75%2012ZM12%209.25C10.4812%209.25%209.25%2010.4812%209.25%2012C9.25%2013.5188%2010.4812%2014.75%2012%2014.75C13.5188%2014.75%2014.75%2013.5188%2014.75%2012C14.75%2010.4812%2013.5188%209.25%2012%209.25Z'%20fill='%237E7E7E'/%3e%3c/svg%3e",r2={},c2={class:"btn btn-xs btn-ghost btn-circle"},a2=[i.createElementVNode("img",{class:"w-5",src:l2,alt:"Icon description"},null,-1)];function f2(t,e){return i.openBlock(),i.createElementBlock("button",c2,a2)}const Ut=Z(r2,[["render",f2]]),d2="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.19102%203.19102C3.44571%202.93633%203.85864%202.93633%204.11333%203.19102L12.809%2011.8867C13.0637%2012.1414%2013.0637%2012.5543%2012.809%2012.809C12.5543%2013.0637%2012.1414%2013.0637%2011.8867%2012.809L3.19102%204.11333C2.93633%203.85864%202.93633%203.44571%203.19102%203.19102Z'%20fill='%231A1F2A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.809%203.19102C13.0637%203.44571%2013.0637%203.85864%2012.809%204.11333L4.11333%2012.809C3.85864%2013.0637%203.44571%2013.0637%203.19102%2012.809C2.93633%2012.5543%202.93633%2012.1414%203.19102%2011.8867L11.8867%203.19102C12.1414%202.93633%2012.5543%202.93633%2012.809%203.19102Z'%20fill='%231A1F2A'/%3e%3c/svg%3e",A2={},g2={class:"btn btn-xs btn-circle btn-ghost"},u2=[i.createElementVNode("img",{class:"w-5",src:d2,alt:"Clear"},null,-1)];function m2(t,e){return i.openBlock(),i.createElementBlock("button",g2,u2)}const Vt=Z(A2,[["render",m2]]),C2={class:"flex flex-col gap-2"},p2={__name:"Sentences",props:{sentences:{type:String,default:""}},setup(t){const e=t,n=i.computed(()=>e.sentences.split(`
|
|
2
|
-
`));return(o,s)=>(i.openBlock(),i.createElementBlock("div",C2,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(l,r)=>(i.openBlock(),i.createElementBlock("p",{key:r,class:"text-base text-textCustom leading-tight p-0 mr-2"},i.toDisplayString(l),1))),128))]))}},h2={name:"Phonetic",props:["phonetic"]},w2={class:"p-0 m-0"},B2={class:"text-sm font-md text-slate-400"};function E2(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("p",w2,[i.createElementVNode("span",B2,"/"+i.toDisplayString(n.phonetic)+"/",1)])}const x2=Z(h2,[["render",E2]]),y2={class:"flex flex-col"},I2={key:0,class:"flex flex-row pb-2 pl-10"},Yt={__name:"Header",props:{tts:String,sentences:String,phonetic:String,isLongSentence:Boolean,isServiceUnavailable:Boolean,isFavorite:Boolean,isFavoriteFeatureEnabled:Boolean},emits:["favorite","setting","close","loadTTS"],setup(t,{emit:e}){const n=t,o=e;return(s,l)=>(i.openBlock(),i.createElementBlock("div",y2,[i.createElementVNode("div",{class:i.normalizeClass(["flex p-2 pt-2 pb-1",{"flex-row-reverse":n.isLongSentence,"flex-row justify-between":!n.isLongSentence}])},[i.createElementVNode("div",{class:i.normalizeClass(["flex flex-row gap-2",{"order-2":n.isLongSentence,"items-center":!n.isLongSentence}])},[t.isLongSentence?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(Gt,{key:0,tts:n.tts,onLoadTTS:l[0]||(l[0]=r=>s.$emit("loadTTS"))},null,8,["tts"])),i.createVNode(p2,{sentences:t.isServiceUnavailable?"Service Unavailable":n.sentences},null,8,["sentences"])],2),i.createElementVNode("div",{class:i.normalizeClass(["flex",{"flex-col items-end":n.isLongSentence,"flex-row justify-right items-center ml-2":!n.isLongSentence}])},[n.isLongSentence?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(Vt,{onClick:l[1]||(l[1]=r=>o("close"))}),i.createVNode(Gt,{tts:n.tts,onLoadTTS:l[2]||(l[2]=r=>s.$emit("loadTTS"))},null,8,["tts"]),!t.isServiceUnavailable&&n.isFavoriteFeatureEnabled?(i.openBlock(),i.createBlock(Jt,{key:0,isFilled:n.isFavorite,onClick:l[3]||(l[3]=r=>o("favorite"))},null,8,["isFilled"])):i.createCommentVNode("",!0),i.createVNode(Ut,{onClick:l[4]||(l[4]=r=>o("setting"))})],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[!t.isServiceUnavailable&&n.isFavoriteFeatureEnabled?(i.openBlock(),i.createBlock(Jt,{key:0,isFilled:n.isFavorite,onClick:l[5]||(l[5]=r=>o("favorite"))},null,8,["isFilled"])):i.createCommentVNode("",!0),i.createVNode(Ut,{onClick:l[6]||(l[6]=r=>o("setting"))}),i.createVNode(Vt,{onClick:l[7]||(l[7]=r=>o("close"))})],64))],2)],2),n.isLongSentence?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",I2,[n.phonetic?(i.openBlock(),i.createBlock(x2,{key:0,phonetic:n.phonetic},null,8,["phonetic"])):i.createCommentVNode("",!0)]))]))}},et={LOGO:"LOGO",LOADING:"LOADING",DATA:"DATA",ERROR:"ERROR",HIDDEN:"HIDDEN"},b2=["ar","fa","iw","yi","ur","pa"],S2={key:0,class:"flex justify-center"},Q2={key:1,class:"flex justify-center"},k2={key:2,class:"wrapper shadow-custom rounded-lg text-slate-900 bg-white text-sm border border-solid border-neutral-300"},L2=Z(Object.assign({name:"Bubble",props:["translation","tts","status","isFavorite","isFavoriteFeatureEnabled"],emits:["logo","favorite","settings","close","loadTTS"],data(){return{data:null,isLongSentence:!1,isServiceUnavailable:!1}},watch:{translation:{handler(){var t,e,n,o;try{this.data=this.translation,this.isLongSentence=!((e=(t=this.data)==null?void 0:t.phonetic)!=null&&e.src||((o=(n=this.data)==null?void 0:n.dictionary)==null?void 0:o.length)>0),this.isServiceUnavailable=!1}catch{this.isServiceUnavailable=!0}},immediate:!0},status(){this.status===et.ERROR&&(this.isServiceUnavailable=!0)}}},{setup(t){return(e,n)=>t.status===i.unref(et).LOGO?(i.openBlock(),i.createElementBlock("div",S2,[i.createVNode(Ge,{onClick:n[0]||(n[0]=o=>e.$emit("logo"))})])):t.status===i.unref(et).LOADING?(i.openBlock(),i.createElementBlock("div",Q2,[i.createVNode(We)])):t.status!==i.unref(et).HIDDEN?(i.openBlock(),i.createElementBlock("div",k2,[e.isServiceUnavailable?(i.openBlock(),i.createBlock(Yt,{key:0,isServiceUnavailable:e.isServiceUnavailable,isLongSentence:!1,onFavorite:n[1]||(n[1]=o=>e.$emit("favorite")),onSetting:n[2]||(n[2]=o=>e.$emit("settings")),onClose:n[3]||(n[3]=o=>e.$emit("close")),onLoadTTS:n[4]||(n[4]=o=>e.$emit("loadTTS"))},null,8,["isServiceUnavailable"])):(i.openBlock(),i.createBlock(Yt,{key:1,tts:t.tts,sentences:e.data.result,phonetic:e.data.phonetic.src,isFavorite:t.isFavorite,isFavoriteFeatureEnabled:t.isFavoriteFeatureEnabled,isLongSentence:e.isLongSentence,onFavorite:n[5]||(n[5]=o=>e.$emit("favorite")),onSetting:n[6]||(n[6]=o=>e.$emit("settings")),onClose:n[7]||(n[7]=o=>e.$emit("close")),onLoadTTS:n[8]||(n[8]=o=>e.$emit("loadTTS"))},null,8,["tts","sentences","phonetic","isFavorite","isFavoriteFeatureEnabled","isLongSentence"])),!e.isServiceUnavailable&&e.data.dictionary.length>0?(i.openBlock(),i.createBlock(Ze,{key:2,class:"p-3 pt-0 border-t border-[#D3D4D9]",dictionary:e.data.dictionary},null,8,["dictionary"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-5f316748"]]);function F2(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Kt={exports:{}};(function(t){(function(){var e=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],n=typeof window<"u",o=n&&window.mozInnerScreenX!=null;function s(l,r,a){if(!n)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var c=a&&a.debug||!1;if(c){var f=document.querySelector("#input-textarea-caret-position-mirror-div");f&&f.parentNode.removeChild(f)}var d=document.createElement("div");d.id="input-textarea-caret-position-mirror-div",document.body.appendChild(d);var A=d.style,m=window.getComputedStyle?window.getComputedStyle(l):l.currentStyle,g=l.nodeName==="INPUT";A.whiteSpace="pre-wrap",g||(A.wordWrap="break-word"),A.position="absolute",c||(A.visibility="hidden"),e.forEach(function(w){g&&w==="lineHeight"?A.lineHeight=m.height:A[w]=m[w]}),o?l.scrollHeight>parseInt(m.height)&&(A.overflowY="scroll"):A.overflow="hidden",d.textContent=l.value.substring(0,r),g&&(d.textContent=d.textContent.replace(/\s/g," "));var C=document.createElement("span");C.textContent=l.value.substring(r)||".",d.appendChild(C);var h={top:C.offsetTop+parseInt(m.borderTopWidth),left:C.offsetLeft+parseInt(m.borderLeftWidth),height:parseInt(m.lineHeight)};return c?C.style.backgroundColor="#aaa":document.body.removeChild(d),h}t.exports=s})()})(Kt);var v2=Kt.exports;const Nt=F2(v2);function st(t){const e=window.getSelection();let n=e+"";if(n=n.trim(),t&&t.type==="password"||!n.length&&(!(t&&t.selectionEnd)||(n=t.value.substring(t.selectionStart,t.selectionEnd),n=n.trim(),!n.length)))return!1;let s=e.getRangeAt(0).getBoundingClientRect(),{top:l,bottom:r,left:a,width:c,height:f}=s;if(!r&&!a){if(!t.selectionEnd)return!1;let d=Nt(t,t.selectionStart),A=Nt(t,t.selectionEnd);s=t.getBoundingClientRect(),a=s.left+d.left,c=A.left-d.left,d.top!=A.top&&(a=s.left,c=s.width),l=s.top+d.top,r=s.top+A.top+20}return f===0&&(f=r-l),{text:n,x:a,y:l,top:l,bottom:r,left:a,right:a+c,width:c,height:f}}function D2(){const t=document.getElementsByTagName("ddict-div");for(let e of t)if(!e.parentNode.matches('wrapper[dir="rtl"]')){const n=document.createElement("wrapper");n.setAttribute("dir","rtl"),e.parentNode.insertBefore(n,e),n.appendChild(e)}}function R2(){const t=document.querySelectorAll('wrapper[dir="rtl"]');for(let e of t){const n=e.querySelector("ddict-div");n&&(e.parentNode.insertBefore(n,e),e.remove())}}const Wt={supportRTL:D2,removeRTL:R2},M2={__name:"HotKeysListener",props:{textSelected:String},emits:["toggleKey","close"],setup(t,{emit:e}){const n=t,o=e,s=()=>{setTimeout(()=>{n.textSelected&&a("DoubleClick")},50)},l=c=>{(c.altKey&&c.key.toLowerCase()==="w"||c.key==="∑")&&n.textSelected&&(a("Alt+W"),c.preventDefault()),c.key==="Escape"&&(a("Escape"),c.preventDefault())},r=c=>{c.key==="Shift"&&n.textSelected&&a("Shift")},a=c=>{switch(c){case"DoubleClick":o("toggleKey","DoubleClick");break;case"Shift":o("toggleKey","Shift");break;case"Alt+W":o("toggleKey","Alt+W");break;case"Escape":o("close");break}};return i.onMounted(()=>{window.addEventListener("dblclick",s),window.addEventListener("keydown",l),window.addEventListener("keyup",r)}),i.onUnmounted(()=>{window.removeEventListener("dblclick",s),window.removeEventListener("keydown",l),window.removeEventListener("keyup",r)}),(c,f)=>(i.openBlock(),i.createElementBlock("div"))}},H2={__name:"BubbleWrapper",props:{translation:Object,isFavoriteFeatureEnabled:Boolean,isFavorite:Boolean,tts:String,status:String,scale:{type:Number,default:1}},emits:["toggleKey","logo","favorite","settings","close","loadTTS"],setup(t,{emit:e}){const n=t,o=e,s=i.ref(null),l=i.ref(null),r=i.ref(null),a=i.ref(!1),c=i.ref(""),f=i.computed(()=>typeof window>"u"||!r.value||!c.value?null:{getBoundingClientRect:()=>st(r.value),getClientRects:()=>st(r.value)}),d=i.computed(()=>{if(!g.value.arrow||n.status===et.LOGO)return{display:"none"};const{x:p,y:u}=g.value.arrow,I={top:"bottom",right:"left",bottom:"top",left:"right"}[g.value.offset.placement];return{left:p!=null?`${p}px`:"",top:u!=null?`${u}px`:"",[I]:"-8px",position:"absolute"}}),A=i.computed(()=>{var u;switch((u=g.value.offset)==null?void 0:u.placement){case"top":return{transform:"rotate(180deg)"};case"left":return{transform:"rotate(90deg)"};case"right":return{transform:"rotate(-90deg)"};default:return{}}}),{floatingStyles:m,middlewareData:g,update:C}=Re(f,s,{placement:"bottom",middleware:[be(8),Qe(),Se(),De({element:l}),ke({apply({rects:p,elements:u}){Object.assign(u.floating.style,{maxWidth:`${p.reference.width>250?p.reference.width/n.scale:250}px`,zIndex:9999})}})],whileElementsMounted(p,u,I){return Ie(p,u,I,{ancestorScroll:!0})}}),h=i.computed(()=>{if(n.scale===1)return m.value;const p=m.value.transform;return{...m.value,transform:`${p} scale(${n.scale})`}});i.onMounted(()=>{document.addEventListener("keyup",p=>{if(!st(p.target)){c.value="",E();return}}),document.documentElement.onclick=p=>{const u=st(p.target);if(!u){c.value="",E();return}w(u,p)},document.documentElement.ontouchend=p=>{const u=st(p.target);if(!u){c.value="",E();return}w(u,p)}}),i.onUnmounted(()=>{document.documentElement.onclick=null,document.documentElement.ontouchend=null});const w=(p,u)=>{n.status!==et.LOGO&&o("close"),r.value=u.target,c.value=p.text,a.value=!0,i.nextTick(C)},B=p=>{p.stopPropagation()},E=async()=>{a.value=!1,o("close")},x=()=>{var u;const p=(u=n==null?void 0:n.translation)==null?void 0:u.target;b2.includes(p)?Wt.supportRTL():Wt.removeRTL()};return i.watch(()=>n.status,()=>{a.value&&i.nextTick(C),x()}),(p,u)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[a.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"floatingEl",ref:s,style:i.normalizeStyle(h.value),onClick:B},[i.createElementVNode("div",{ref_key:"arrowEl",ref:l,style:i.normalizeStyle(d.value),class:"absolute transform z-10"},[i.createElementVNode("img",{style:i.normalizeStyle(A.value),class:"w-5",src:qt,alt:"arrow"},null,4)],4),i.createVNode(L2,{translation:n.translation,tts:n.tts,status:n.status,isFavorite:n.isFavorite,isFavoriteFeatureEnabled:n.isFavoriteFeatureEnabled,onLogo:u[0]||(u[0]=I=>o("logo")),onFavorite:u[1]||(u[1]=I=>o("favorite")),onSettings:u[2]||(u[2]=I=>o("settings")),onClose:E,onLoadTTS:u[3]||(u[3]=I=>o("loadTTS"))},null,8,["translation","tts","status","isFavorite","isFavoriteFeatureEnabled"])],4)):i.createCommentVNode("",!0),i.createVNode(M2,{textSelected:c.value,onToggleKey:u[4]||(u[4]=I=>o("toggleKey",I)),onClose:E},null,8,["textSelected"])],64))}};N.default=H2,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(K,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(K=typeof globalThis<"u"?globalThis:K||self,o(K.Bubble={},K.Vue))})(this,function(K,o){"use strict";const Y2="data:image/svg+xml,%3csvg%20width='14'%20height='9'%20viewBox='0%200%2014%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.36153%201.34067C6.15774%200.203232%207.84226%200.203229%208.63846%201.34066L14%209H0L5.36153%201.34067Z'%20fill='white'%20stroke-width='0.5'/%3e%3c/svg%3e",M=Math.min,L=Math.max,a2=Math.round,r2=Math.floor,G=e=>({x:e,y:e}),K2={left:"right",right:"left",bottom:"top",top:"bottom"},W2={start:"end",end:"start"};function g2(e,t,n){return L(e,M(t,n))}function z(e,t){return typeof e=="function"?e(t):e}function V(e){return e.split("-")[0]}function P(e){return e.split("-")[1]}function y2(e){return e==="x"?"y":"x"}function C2(e){return e==="y"?"height":"width"}function W(e){return["top","bottom"].includes(V(e))?"y":"x"}function m2(e){return y2(W(e))}function Z2(e,t,n){n===void 0&&(n=!1);const i=P(e),l=m2(e),s=C2(l);let a=l==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=c2(a)),[a,c2(a)]}function q2(e){const t=c2(e);return[u2(e),t,u2(t)]}function u2(e){return e.replace(/start|end/g,t=>W2[t])}function j2(e,t,n){const i=["left","right"],l=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?l:i:t?i:l;case"left":case"right":return t?s:a;default:return[]}}function z2(e,t,n,i){const l=P(e);let s=j2(V(e),n==="start",i);return l&&(s=s.map(a=>a+"-"+l),t&&(s=s.concat(s.map(u2)))),s}function c2(e){return e.replace(/left|right|bottom|top/g,t=>K2[t])}function P2(e){return{top:0,right:0,bottom:0,left:0,...e}}function I2(e){return typeof e!="number"?P2(e):{top:e,right:e,bottom:e,left:e}}function d2(e){const{x:t,y:n,width:i,height:l}=e;return{width:i,height:l,top:n,left:t,right:t+i,bottom:n+l,x:t,y:n}}function L2(e,t,n){let{reference:i,floating:l}=e;const s=W(t),a=m2(t),c=C2(a),r=V(t),d=s==="y",f=i.x+i.width/2-l.width/2,A=i.y+i.height/2-l.height/2,m=i[c]/2-l[c]/2;let g;switch(r){case"top":g={x:f,y:i.y-l.height};break;case"bottom":g={x:f,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:A};break;case"left":g={x:i.x-l.width,y:A};break;default:g={x:i.x,y:i.y}}switch(P(t)){case"start":g[a]-=m*(n&&d?-1:1);break;case"end":g[a]+=m*(n&&d?-1:1);break}return g}const $2=async(e,t,n)=>{const{placement:i="bottom",strategy:l="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),r=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:l}),{x:f,y:A}=L2(d,i,r),m=i,g={},u=0;for(let p=0;p<c.length;p++){const{name:w,fn:B}=c[p],{x,y:b,data:h,reset:C}=await B({x:f,y:A,initialPlacement:i,placement:m,strategy:l,middlewareData:g,rects:d,platform:a,elements:{reference:e,floating:t}});f=x??f,A=b??A,g={...g,[w]:{...g[w],...h}},C&&u<=50&&(u++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(d=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:l}):C.rects),{x:f,y:A}=L2(d,m,r)),p=-1)}return{x:f,y:A,placement:m,strategy:l,middlewareData:g}};async function h2(e,t){var n;t===void 0&&(t={});const{x:i,y:l,platform:s,rects:a,elements:c,strategy:r}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:A="floating",altBoundary:m=!1,padding:g=0}=z(t,e),u=I2(g),w=c[m?A==="floating"?"reference":"floating":A],B=d2(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:f,strategy:r})),x=A==="floating"?{x:i,y:l,width:a.floating.width,height:a.floating.height}:a.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),h=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},C=d2(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:r}):x);return{top:(B.top-C.top+u.top)/h.y,bottom:(C.bottom-B.bottom+u.bottom)/h.y,left:(B.left-C.left+u.left)/h.x,right:(C.right-B.right+u.right)/h.x}}const X2=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:l,rects:s,platform:a,elements:c,middlewareData:r}=t,{element:d,padding:f=0}=z(e,t)||{};if(d==null)return{};const A=I2(f),m={x:n,y:i},g=m2(l),u=C2(g),p=await a.getDimensions(d),w=g==="y",B=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",h=s.reference[u]+s.reference[g]-m[g]-s.floating[u],C=m[g]-s.reference[g],y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let E=y?y[b]:0;(!E||!await(a.isElement==null?void 0:a.isElement(y)))&&(E=c.floating[b]||s.floating[u]);const S=h/2-C/2,F=E/2-p[u]/2-1,v=M(A[B],F),N=M(A[x],F),j=v,s2=E-p[u]-N,I=E/2-p[u]/2+S,t2=g2(j,I,s2),O=!r.arrow&&P(l)!=null&&I!==t2&&s.reference[u]/2-(I<j?v:N)-p[u]/2<0,T=O?I<j?I-j:I-s2:0;return{[g]:m[g]+T,data:{[g]:t2,centerOffset:I-t2-T,...O&&{alignmentOffset:T}},reset:O}}}),_2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:l,middlewareData:s,rects:a,initialPlacement:c,platform:r,elements:d}=t,{mainAxis:f=!0,crossAxis:A=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:p=!0,...w}=z(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const B=V(l),x=W(c),b=V(c)===c,h=await(r.isRTL==null?void 0:r.isRTL(d.floating)),C=m||(b||!p?[c2(c)]:q2(c)),y=u!=="none";!m&&y&&C.push(...z2(c,p,u,h));const E=[c,...C],S=await h2(t,w),F=[];let v=((i=s.flip)==null?void 0:i.overflows)||[];if(f&&F.push(S[B]),A){const I=Z2(l,a,h);F.push(S[I[0]],S[I[1]])}if(v=[...v,{placement:l,overflows:F}],!F.every(I=>I<=0)){var N,j;const I=(((N=s.flip)==null?void 0:N.index)||0)+1,t2=E[I];if(t2)return{data:{index:I,overflows:v},reset:{placement:t2}};let O=(j=v.filter(T=>T.overflows[0]<=0).sort((T,U)=>T.overflows[1]-U.overflows[1])[0])==null?void 0:j.placement;if(!O)switch(g){case"bestFit":{var s2;const T=(s2=v.filter(U=>{if(y){const Y=W(U.placement);return Y===x||Y==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(Y=>Y>0).reduce((Y,lt)=>Y+lt,0)]).sort((U,Y)=>U[1]-Y[1])[0])==null?void 0:s2[0];T&&(O=T);break}case"initialPlacement":O=c;break}if(l!==O)return{reset:{placement:O}}}return{}}}};async function e0(e,t){const{placement:n,platform:i,elements:l}=e,s=await(i.isRTL==null?void 0:i.isRTL(l.floating)),a=V(n),c=P(n),r=W(n)==="y",d=["left","top"].includes(a)?-1:1,f=s&&r?-1:1,A=z(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:u}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...A};return c&&typeof u=="number"&&(g=c==="end"?u*-1:u),r?{x:g*f,y:m*d}:{x:m*d,y:g*f}}const t0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:l,y:s,placement:a,middlewareData:c}=t,r=await e0(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:l+r.x,y:s+r.y,data:{...r,placement:a}}}}},n0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:l}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:w=>{let{x:B,y:x}=w;return{x:B,y:x}}},...r}=z(e,t),d={x:n,y:i},f=await h2(t,r),A=W(V(l)),m=y2(A);let g=d[m],u=d[A];if(s){const w=m==="y"?"top":"left",B=m==="y"?"bottom":"right",x=g+f[w],b=g-f[B];g=g2(x,g,b)}if(a){const w=A==="y"?"top":"left",B=A==="y"?"bottom":"right",x=u+f[w],b=u-f[B];u=g2(x,u,b)}const p=c.fn({...t,[m]:g,[A]:u});return{...p,data:{x:p.x-n,y:p.y-i}}}}},o0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:l,elements:s}=t,{apply:a=()=>{},...c}=z(e,t),r=await h2(t,c),d=V(n),f=P(n),A=W(n)==="y",{width:m,height:g}=i.floating;let u,p;d==="top"||d==="bottom"?(u=d,p=f===(await(l.isRTL==null?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(p=d,u=f==="end"?"top":"bottom");const w=g-r.top-r.bottom,B=m-r.left-r.right,x=M(g-r[u],w),b=M(m-r[p],B),h=!t.middlewareData.shift;let C=x,y=b;if(A?y=f||h?M(b,B):B:C=f||h?M(x,w):w,h&&!f){const S=L(r.left,0),F=L(r.right,0),v=L(r.top,0),N=L(r.bottom,0);A?y=m-2*(S!==0||F!==0?S+F:L(r.left,r.right)):C=g-2*(v!==0||N!==0?v+N:L(r.top,r.bottom))}await a({...t,availableWidth:y,availableHeight:C});const E=await l.getDimensions(s.floating);return m!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};function Z(e){return p2(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function H(e){var t;return(t=(p2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function p2(e){return e instanceof Node||e instanceof k(e).Node}function D(e){return e instanceof Element||e instanceof k(e).Element}function R(e){return e instanceof HTMLElement||e instanceof k(e).HTMLElement}function k2(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof k(e).ShadowRoot}function n2(e){const{overflow:t,overflowX:n,overflowY:i,display:l}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(l)}function i0(e){return["table","td","th"].includes(Z(e))}function f2(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function w2(e){const t=B2(),n=Q(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function l0(e){let t=J(e);for(;R(t)&&!$(t);){if(f2(t))return null;if(w2(t))return t;t=J(t)}return null}function B2(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $(e){return["html","body","#document"].includes(Z(e))}function Q(e){return k(e).getComputedStyle(e)}function A2(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if(Z(e)==="html")return e;const t=e.assignedSlot||e.parentNode||k2(e)&&e.host||H(e);return k2(t)?t.host:t}function F2(e){const t=J(e);return $(t)?e.ownerDocument?e.ownerDocument.body:e.body:R(t)&&n2(t)?t:F2(t)}function o2(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const l=F2(e),s=l===((i=e.ownerDocument)==null?void 0:i.body),a=k(l);return s?t.concat(a,a.visualViewport||[],n2(l)?l:[],a.frameElement&&n?o2(a.frameElement):[]):t.concat(l,o2(l,[],n))}function Q2(e){const t=Q(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const l=R(e),s=l?e.offsetWidth:n,a=l?e.offsetHeight:i,c=a2(n)!==s||a2(i)!==a;return c&&(n=s,i=a),{width:n,height:i,$:c}}function x2(e){return D(e)?e:e.contextElement}function X(e){const t=x2(e);if(!R(t))return G(1);const n=t.getBoundingClientRect(),{width:i,height:l,$:s}=Q2(t);let a=(s?a2(n.width):n.width)/i,c=(s?a2(n.height):n.height)/l;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const s0=G(0);function S2(e){const t=k(e);return!B2()||!t.visualViewport?s0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function a0(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==k(e)?!1:t}function q(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect(),s=x2(e);let a=G(1);t&&(i?D(i)&&(a=X(i)):a=X(e));const c=a0(s,n,i)?S2(s):G(0);let r=(l.left+c.x)/a.x,d=(l.top+c.y)/a.y,f=l.width/a.x,A=l.height/a.y;if(s){const m=k(s),g=i&&D(i)?k(i):i;let u=m,p=u.frameElement;for(;p&&i&&g!==u;){const w=X(p),B=p.getBoundingClientRect(),x=Q(p),b=B.left+(p.clientLeft+parseFloat(x.paddingLeft))*w.x,h=B.top+(p.clientTop+parseFloat(x.paddingTop))*w.y;r*=w.x,d*=w.y,f*=w.x,A*=w.y,r+=b,d+=h,u=k(p),p=u.frameElement}}return d2({width:f,height:A,x:r,y:d})}function r0(e){let{elements:t,rect:n,offsetParent:i,strategy:l}=e;const s=l==="fixed",a=H(i),c=t?f2(t.floating):!1;if(i===a||c&&s)return n;let r={scrollLeft:0,scrollTop:0},d=G(1);const f=G(0),A=R(i);if((A||!A&&!s)&&((Z(i)!=="body"||n2(a))&&(r=A2(i)),R(i))){const m=q(i);d=X(i),f.x=m.x+i.clientLeft,f.y=m.y+i.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-r.scrollLeft*d.x+f.x,y:n.y*d.y-r.scrollTop*d.y+f.y}}function c0(e){return Array.from(e.getClientRects())}function v2(e){return q(H(e)).left+A2(e).scrollLeft}function d0(e){const t=H(e),n=A2(e),i=e.ownerDocument.body,l=L(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=L(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+v2(e);const c=-n.scrollTop;return Q(i).direction==="rtl"&&(a+=L(t.clientWidth,i.clientWidth)-l),{width:l,height:s,x:a,y:c}}function f0(e,t){const n=k(e),i=H(e),l=n.visualViewport;let s=i.clientWidth,a=i.clientHeight,c=0,r=0;if(l){s=l.width,a=l.height;const d=B2();(!d||d&&t==="fixed")&&(c=l.offsetLeft,r=l.offsetTop)}return{width:s,height:a,x:c,y:r}}function A0(e,t){const n=q(e,!0,t==="fixed"),i=n.top+e.clientTop,l=n.left+e.clientLeft,s=R(e)?X(e):G(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,r=l*s.x,d=i*s.y;return{width:a,height:c,x:r,y:d}}function M2(e,t,n){let i;if(t==="viewport")i=f0(e,n);else if(t==="document")i=d0(H(e));else if(D(t))i=A0(t,n);else{const l=S2(e);i={...t,x:t.x-l.x,y:t.y-l.y}}return d2(i)}function D2(e,t){const n=J(e);return n===t||!D(n)||$(n)?!1:Q(n).position==="fixed"||D2(n,t)}function g0(e,t){const n=t.get(e);if(n)return n;let i=o2(e,[],!1).filter(c=>D(c)&&Z(c)!=="body"),l=null;const s=Q(e).position==="fixed";let a=s?J(e):e;for(;D(a)&&!$(a);){const c=Q(a),r=w2(a);!r&&c.position==="fixed"&&(l=null),(s?!r&&!l:!r&&c.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||n2(a)&&!r&&D2(e,a))?i=i.filter(f=>f!==a):l=c,a=J(a)}return t.set(e,i),i}function C0(e){let{element:t,boundary:n,rootBoundary:i,strategy:l}=e;const a=[...n==="clippingAncestors"?f2(t)?[]:g0(t,this._c):[].concat(n),i],c=a[0],r=a.reduce((d,f)=>{const A=M2(t,f,l);return d.top=L(A.top,d.top),d.right=M(A.right,d.right),d.bottom=M(A.bottom,d.bottom),d.left=L(A.left,d.left),d},M2(t,c,l));return{width:r.right-r.left,height:r.bottom-r.top,x:r.left,y:r.top}}function m0(e){const{width:t,height:n}=Q2(e);return{width:t,height:n}}function u0(e,t,n){const i=R(t),l=H(t),s=n==="fixed",a=q(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const r=G(0);if(i||!i&&!s)if((Z(t)!=="body"||n2(l))&&(c=A2(t)),i){const A=q(t,!0,s,t);r.x=A.x+t.clientLeft,r.y=A.y+t.clientTop}else l&&(r.x=v2(l));const d=a.left+c.scrollLeft-r.x,f=a.top+c.scrollTop-r.y;return{x:d,y:f,width:a.width,height:a.height}}function b2(e){return Q(e).position==="static"}function R2(e,t){return!R(e)||Q(e).position==="fixed"?null:t?t(e):e.offsetParent}function T2(e,t){const n=k(e);if(f2(e))return n;if(!R(e)){let l=J(e);for(;l&&!$(l);){if(D(l)&&!b2(l))return l;l=J(l)}return n}let i=R2(e,t);for(;i&&i0(i)&&b2(i);)i=R2(i,t);return i&&$(i)&&b2(i)&&!w2(i)?n:i||l0(e)||n}const h0=async function(e){const t=this.getOffsetParent||T2,n=this.getDimensions,i=await n(e.floating);return{reference:u0(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function p0(e){return Q(e).direction==="rtl"}const w0={convertOffsetParentRelativeRectToViewportRelativeRect:r0,getDocumentElement:H,getClippingRect:C0,getOffsetParent:T2,getElementRects:h0,getClientRects:c0,getDimensions:m0,getScale:X,isElement:D,isRTL:p0};function B0(e,t){let n=null,i;const l=H(e);function s(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function a(c,r){c===void 0&&(c=!1),r===void 0&&(r=1),s();const{left:d,top:f,width:A,height:m}=e.getBoundingClientRect();if(c||t(),!A||!m)return;const g=r2(f),u=r2(l.clientWidth-(d+A)),p=r2(l.clientHeight-(f+m)),w=r2(d),x={rootMargin:-g+"px "+-u+"px "+-p+"px "+-w+"px",threshold:L(0,M(1,r))||1};let b=!0;function h(C){const y=C[0].intersectionRatio;if(y!==r){if(!b)return a();y?a(!1,y):i=setTimeout(()=>{a(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(h,{...x,root:l.ownerDocument})}catch{n=new IntersectionObserver(h,x)}n.observe(e)}return a(!0),s}function x0(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:r=!1}=i,d=x2(e),f=l||s?[...d?o2(d):[],...o2(t)]:[];f.forEach(B=>{l&&B.addEventListener("scroll",n,{passive:!0}),s&&B.addEventListener("resize",n)});const A=d&&c?B0(d,n):null;let m=-1,g=null;a&&(g=new ResizeObserver(B=>{let[x]=B;x&&x.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=g)==null||b.observe(t)})),n()}),d&&!r&&g.observe(d),g.observe(t));let u,p=r?q(e):null;r&&w();function w(){const B=q(e);p&&(B.x!==p.x||B.y!==p.y||B.width!==p.width||B.height!==p.height)&&n(),p=B,u=requestAnimationFrame(w)}return n(),()=>{var B;f.forEach(x=>{l&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),A==null||A(),(B=g)==null||B.disconnect(),g=null,r&&cancelAnimationFrame(u)}}const b0=t0,E0=n0,y0=_2,I0=o0,L0=X2,k0=(e,t,n)=>{const i=new Map,l={platform:w0,...n},s={...l.platform,_c:i};return $2(e,t,{...l,platform:s})};function F0(e){return e!=null&&typeof e=="object"&&"$el"in e}function E2(e){if(F0(e)){const t=e.$el;return p2(t)&&Z(t)==="#comment"?null:t}return e}function _(e){return typeof e=="function"?e():o.unref(e)}function Q0(e){return{name:"arrow",options:e,fn(t){const n=E2(_(e.element));return n==null?{}:L0({element:n,padding:e.padding}).fn(t)}}}function H2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function O2(e,t){const n=H2(e);return Math.round(t*n)/n}function S0(e,t,n){n===void 0&&(n={});const i=n.whileElementsMounted,l=o.computed(()=>{var E;return(E=_(n.open))!=null?E:!0}),s=o.computed(()=>_(n.middleware)),a=o.computed(()=>{var E;return(E=_(n.placement))!=null?E:"bottom"}),c=o.computed(()=>{var E;return(E=_(n.strategy))!=null?E:"absolute"}),r=o.computed(()=>{var E;return(E=_(n.transform))!=null?E:!0}),d=o.computed(()=>E2(e.value)),f=o.computed(()=>E2(t.value)),A=o.ref(0),m=o.ref(0),g=o.ref(c.value),u=o.ref(a.value),p=o.shallowRef({}),w=o.ref(!1),B=o.computed(()=>{const E={position:g.value,left:"0",top:"0"};if(!f.value)return E;const S=O2(f.value,A.value),F=O2(f.value,m.value);return r.value?{...E,transform:"translate("+S+"px, "+F+"px)",...H2(f.value)>=1.5&&{willChange:"transform"}}:{position:g.value,left:S+"px",top:F+"px"}});let x;function b(){d.value==null||f.value==null||k0(d.value,f.value,{middleware:s.value,placement:a.value,strategy:c.value}).then(E=>{A.value=E.x,m.value=E.y,g.value=E.strategy,u.value=E.placement,p.value=E.middlewareData,w.value=!0})}function h(){typeof x=="function"&&(x(),x=void 0)}function C(){if(h(),i===void 0){b();return}if(d.value!=null&&f.value!=null){x=i(d.value,f.value,b);return}}function y(){l.value||(w.value=!1)}return o.watch([s,a,c],b,{flush:"sync"}),o.watch([d,f],C,{flush:"sync"}),o.watch(l,y,{flush:"sync"}),o.getCurrentScope()&&o.onScopeDispose(h),{x:o.shallowReadonly(A),y:o.shallowReadonly(m),strategy:o.shallowReadonly(g),placement:o.shallowReadonly(u),middlewareData:o.shallowReadonly(p),isPositioned:o.shallowReadonly(w),floatingStyles:B,update:b}}const v0="data:image/svg+xml,%3csvg%20width='1324'%20height='1326'%20viewBox='0%200%201324%201326'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='141'%20y='78'%20width='1042'%20height='1170'%20fill='white'/%3e%3cpath%20d='M184.533%201.99984C135.867%207.19984%2089.8666%2029.8665%2056.4%2065.1998C29.6%2093.4665%2012.5333%20126.266%203.73329%20166.4L0.666626%20180V663.333V1146.67L3.73329%201160.27C12.5333%201200.4%2029.6%201233.2%2056.4%201261.47C90.4%201297.33%20135.333%201319.33%20185.6%201324.67C203.333%201326.53%201122.53%201326.4%201139.73%201324.53C1188.53%201319.33%201229.07%201299.73%201264.13%201264.8C1294.27%201234.67%201311.47%201202.67%201320.8%201159.33C1323.2%201148.4%201323.33%201130%201323.33%20663.333C1323.33%20196.667%201323.2%20178.266%201320.8%20167.333C1311.47%20124%201294.27%2091.9998%201264.13%2061.8664C1229.07%2026.9331%201188.53%207.33314%201139.73%202.13314C1124.67%200.399809%20200%200.399842%20184.533%201.99984ZM732.933%20151.466C746.8%20152.933%20763.333%20157.6%20774%20163.067C800.267%20176.267%20822.4%20200.4%20833.2%20227.333C841.867%20249.333%20841.467%20233.467%20841.067%20502C840.533%20777.6%20841.733%20750.267%20829.2%20776.133C822.133%20790.933%20810.667%20806.533%20800.267%20815.2C795.2%20819.6%20793.2%20822.267%20792%20827.067C786.133%20848.267%20768.667%20885.867%20755.2%20906.133C724.533%20952%20681.2%20986.133%20624%201009.33C615.6%201012.8%20608.4%201015.87%20608.133%201016.13C607.867%201016.27%20614.533%201023.33%20622.933%201031.6C633.467%201042.13%20639.333%201049.07%20642.133%201054.4C646.933%201063.87%20645.467%201064%20672.667%201050.8C724.933%201025.47%20762.933%20994.8%20794.933%20952C811.467%20929.867%20829.867%20895.333%20839.333%20868.267C841.333%20862.667%20843.467%20858%20844.133%20858C844.667%20858%20845.6%20859.333%20846.133%20860.933C848.267%20868.133%20863.333%20900.8%20870.133%20913.2C898%20963.867%20931.6%201001.2%20975.333%201030.27C989.867%201040%201017.2%201054.4%201031.6%201059.73L1037.2%201061.87L1041.33%201054.67C1048.4%201042.4%201056.67%201032.27%201067.87%201022.4L1078.67%201012.8L1071.6%201010.27C1067.87%201008.8%201060.53%201006%201055.6%201004.13C1040.93%20998.533%201013.73%20984%201000%20974.267C985.733%20964.133%20960.8%20940.667%20948.933%20926.267C935.067%20909.333%20921.467%20887.467%20910%20864C900.133%20844%20887.2%20812.133%20884.667%20801.6L883.733%20798H971.867H1060V769.333V740.667H963.333H866.533L867.333%20736.267C868.4%20729.867%20870.4%20693.067%20871.467%20662.933C872.267%20639.067%20872.533%20636.4%20874.8%20635.2C878.667%20633.2%20881.333%20626.667%20882.267%20617.333L883.067%20608.667H872.133C864.133%20608.667%20861.067%20608.133%20860.533%20606.8C860%20605.467%20881.2%20466%20886.133%20438.267L886.933%20433.867L977.867%20434.4C1066.67%20434.8%201068.93%20434.8%201079.87%20437.733C1124.8%20449.6%201158.67%20482.533%201172.93%20528L1176.67%20540V808V1076L1172.93%201087.73C1158.53%201133.6%201126.13%201164.93%201078.93%201178.4L1068.67%201181.33L812.667%201181.73C638.8%201182%20552.667%201181.73%20544.4%201180.67C488.667%201174.4%20443.2%201132.13%20432.533%201076.93C431.067%201068.93%20430.667%201046.4%20430.667%20956.667V846.133L340.4%20845.6C252.8%20845.2%20249.6%20845.067%20239.067%20842.267C196.533%20831.067%20164.533%20800.133%20151.067%20757.333L147.333%20745.333V499.333V253.333L150.4%20242C159.067%20209.067%20180.4%20181.866%20210.667%20164.933C221.2%20159.066%20240.4%20152.933%20252.667%20151.6C268.533%20149.733%20716.933%20149.6%20732.933%20151.466Z'%20fill='%233B5695'/%3e%3cpath%20d='M256.533%20213.333C232.933%20218.533%20214.133%20237.067%20209.333%20259.733C208.4%20264.533%20208%20337.2%20208.267%20502L208.667%20737.333L211.733%20744.933C218.533%20761.733%20231.733%20774.533%20248.667%20780.933L256.667%20784L490%20784.4C749.2%20784.8%20734.4%20785.333%20750.133%20776C764.267%20767.6%20775.467%20752.4%20778.667%20737.067C779.6%20732.8%20780%20652.133%20779.733%20494L779.333%20257.333L775.067%20248.267C767.2%20231.6%20756.933%20222%20740.133%20215.467L731.333%20212L498%20211.733C306.8%20211.6%20263.2%20211.867%20256.533%20213.333ZM492%20281.2C546.267%20290.267%20590.267%20311.2%20622.533%20343.333C653.867%20374.667%20671.867%20409.867%20680.267%20456.667C684.133%20478.533%20684.133%20516.267%20680.133%20538.533C665.467%20621.067%20606.933%20684.4%20524%20707.467C490%20716.933%20488.4%20716.933%20392.4%20717.6L305.333%20718.133V498V277.867L391.733%20278.4C465.733%20278.8%20480%20279.2%20492%20281.2Z'%20fill='%233B5695'/%3e%3cpath%20d='M384%20462.933V576.133L345.067%20611.467C306.533%20646.267%20306.133%20646.667%20310.667%20647.067C313.2%20647.333%20348.933%20647.333%20390%20646.933C472.667%20646.267%20477.6%20645.867%20503.6%20637.333C527.6%20629.333%20543.333%20620%20560.267%20603.6C590.133%20574.667%20604.4%20536.267%20602.267%20489.733C600.533%20450.267%20588.267%20420%20564%20395.333C546.8%20377.867%20531.6%20368.4%20506.267%20360C482.933%20352.133%20474.533%20351.2%20427.067%20350.4L384%20349.733V462.933Z'%20fill='%233B5695'/%3e%3c/svg%3e",i2=(e,t)=>{const n=e.__vccOpts||e;for(const[i,l]of t)n[i]=l;return n},M0={name:"Logo"},D0={src:v0,alt:"DDict Logo",class:"w-6 h-6 cursor-pointer"};function R0(e,t,n,i,l,s){return o.openBlock(),o.createElementBlock("img",D0)}const T0=i2(M0,[["render",R0]]),H0="data:image/gif;base64,R0lGODlhQAAmAPQ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JXJCEAIfkEBQMAHwAsGAASACIAFAAABcLgJ45kaY6Ld65eu5KDU1yT+n6ec1HBch8BgeEjKThsJc8BwxAlKBWkCOOoABIlAcc38iwGwhKEUBM5EBnIymAZqDxW7EryOHgekZsIkmk01HoGGx5NeiMPCIYiGoSKIoiOjIWKkIqSjh+VhpeOmnqclImWjZ2im6SUE3mBF6iGDx4TBIAmbD0eAZMvCkYiHg0UciMSGCm+BwWrJgkbZSRfAHsPRyY5BMIfBgAIUiULAQ8N3UkIGkMCA1w3LooeA1vjIQAh+QQFAwAfACwpABMAEQATAAAFZuAnjovTeGOaloUEbROqfsfCCcYYPY4sLgNAbibgLEQISmKWMlgGHguTCVlIp6qEFZvdckfa6/cTHovKZvRYCzB/FKWHgpvYnD6eCWGpMgAQPiIeCBpDHwIBR1NAAhEYB4GLC5EiIQAh+QQFQwAfACwpABMAEQATAAAFYuAnjp/nkSjpNQQ1nKnoOU8kQhsCj97BMQaU4uGAeQKWYOzDwCw+g8SSZCgcpyjCFTvSBrjdLdgLFpHL57GnogAbMKZGRhozAF48BEA5YgSeKQsBAiIKGAc7KT0YBUVlJkshADs=",O0={name:"Loading"},G0=e=>(o.pushScopeId("data-v-a0957544"),e=e(),o.popScopeId(),e),V0={class:"rounded-lg bg-white p-1 border shadow-custom border-solid border-neutral-300"},J0=[G0(()=>o.createElementVNode("img",{src:H0,alt:"Loading",class:"w-12"},null,-1))];function N0(e,t,n,i,l,s){return o.openBlock(),o.createElementBlock("div",V0,J0)}const U0=i2(O0,[["render",N0],["__scopeId","data-v-a0957544"]]),Y0={name:"Phonetic",props:["phonetic"]},K0={class:"p-0 m-0"},W0={class:"text-xs font-md text-slate-400"};function Z0(e,t,n,i,l,s){return o.openBlock(),o.createElementBlock("p",K0,[o.createElementVNode("span",W0,"/"+o.toDisplayString(n.phonetic)+"/",1)])}const q0=i2(Y0,[["render",Z0]]),j0={class:"flex flex-col gap-2"},z0={__name:"Sentences",props:{sentences:{type:String,default:""}},setup(e){const t=e,n=o.computed(()=>t.sentences.split(`
|
|
2
|
+
`));return(i,l)=>(o.openBlock(),o.createElementBlock("div",j0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(s,a)=>(o.openBlock(),o.createElementBlock("p",{key:a,class:"text-base text-textCustom leading-tight p-0 mr-2"},o.toDisplayString(s),1))),128))]))}},P0={class:"capitalize text-base italic font-normal text-slate-400"},$0={class:"text-base leading-6 text-textCustom"},X0={__name:"Dict",props:{dictionary:Array},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.dictionary,(i,l)=>(o.openBlock(),o.createElementBlock("div",{key:l,class:"mt-2"},[o.createElementVNode("p",P0,o.toDisplayString(i.pos),1),o.createElementVNode("span",$0,o.toDisplayString(i.terms.join(", ")),1)]))),128))]))}},_0={class:""},ee=o.createElementVNode("p",{class:"capitalize text-base italic font-normal text-slate-400 mt-2"},"AI Summary:",-1),te={key:0,class:"list-none list-outside mt-2"},ne=["innerHTML"],oe={__name:"Explanation",props:{explanation:Object},setup(e){return(t,n)=>{var i,l;return o.openBlock(),o.createElementBlock("div",_0,[ee,(i=e.explanation)!=null&&i.result?(o.openBlock(),o.createElementBlock("ul",te,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(((l=e.explanation)==null?void 0:l.result.split(`
|
|
3
|
+
`))||[],(s,a)=>(o.openBlock(),o.createElementBlock("li",{key:`${s}-${a}`,innerHTML:s,class:"text-base text-textCustom"},null,8,ne))),128))])):o.createCommentVNode("",!0)])}}},ie="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.33325%204.66667H3.51125C3.82693%204.6667%204.13239%204.55473%204.37325%204.35067L6.83392%202.26667C6.99592%202.12953%207.19374%202.04156%207.40407%202.01312C7.61441%201.98468%207.82849%202.01696%208.02109%202.10615C8.21369%202.19534%208.37678%202.33772%208.49114%202.51652C8.60551%202.69532%208.66638%202.90309%208.66659%203.11534V12.8847C8.66649%2013.097%208.60565%2013.305%208.49125%2013.4839C8.37685%2013.6628%208.21367%2013.8053%208.02094%2013.8945C7.82822%2013.9837%207.614%2014.0159%207.40356%2013.9874C7.19312%2013.9588%206.99523%2013.8707%206.83325%2013.7333L4.37325%2011.6487C4.13229%2011.4449%203.82685%2011.3331%203.51125%2011.3333H2.33325C2.06804%2011.3333%201.81368%2011.228%201.62615%2011.0404C1.43861%2010.8529%201.33325%2010.5986%201.33325%2010.3333V5.66667C1.33325%205.40145%201.43861%205.1471%201.62615%204.95956C1.81368%204.77203%202.06804%204.66667%202.33325%204.66667ZM11.1779%2011.18C11.5969%2010.763%2011.9294%2010.2674%2012.1562%209.72156C12.3831%209.17572%2012.4999%208.59044%2012.4999%207.99934C12.4999%207.40823%2012.3831%206.82295%2012.1562%206.27711C11.9294%205.73127%2011.5969%205.23564%2011.1779%204.81867C11.1317%204.77098%2011.0765%204.73297%2011.0155%204.70686C10.9544%204.68075%2010.8888%204.66705%2010.8224%204.66657C10.756%204.66609%2010.6902%204.67883%2010.6288%204.70406C10.5674%204.72929%2010.5116%204.76649%2010.4647%204.8135C10.4179%204.86051%2010.3808%204.91639%2010.3558%204.97787C10.3307%205.03935%2010.3181%205.10521%2010.3188%205.17159C10.3195%205.23798%2010.3334%205.30357%2010.3597%205.36453C10.3859%205.42549%2010.4241%205.48061%2010.4719%205.52667C10.7977%205.85079%2011.0562%206.23609%2011.2326%206.66043C11.409%207.08477%2011.4998%207.53979%2011.4998%207.99934C11.4998%208.45888%2011.409%208.9139%2011.2326%209.33824C11.0562%209.76258%2010.7977%2010.1479%2010.4719%2010.472C10.4241%2010.5181%2010.3859%2010.5732%2010.3597%2010.6341C10.3334%2010.6951%2010.3195%2010.7607%2010.3188%2010.8271C10.3181%2010.8935%2010.3307%2010.9593%2010.3558%2011.0208C10.3808%2011.0823%2010.4179%2011.1382%2010.4647%2011.1852C10.5116%2011.2322%2010.5674%2011.2694%2010.6288%2011.2946C10.6902%2011.3198%2010.756%2011.3326%2010.8224%2011.3321C10.8888%2011.3316%2010.9544%2011.3179%2011.0155%2011.2918C11.0765%2011.2657%2011.1317%2011.2277%2011.1779%2011.18ZM12.7113%2013.2127C12.6123%2013.2126%2012.5157%2013.1832%2012.4335%2013.1281C12.3513%2013.0731%2012.2873%2012.9949%2012.2495%2012.9035C12.2118%2012.8121%2012.202%2012.7115%2012.2214%2012.6146C12.2408%2012.5176%2012.2886%2012.4285%2012.3586%2012.3587C12.9317%2011.7866%2013.3865%2011.1071%2013.6967%2010.359C14.0069%209.61101%2014.1666%208.80915%2014.1666%207.99934C14.1666%207.18952%2014.0069%206.38766%2013.6967%205.63963C13.3865%204.8916%2012.9317%204.2121%2012.3586%203.64C12.3122%203.59351%2012.2754%203.53834%2012.2503%203.47764C12.2252%203.41693%2012.2124%203.35188%2012.2124%203.2862C12.2125%203.22052%2012.2255%203.15549%2012.2507%203.09483C12.2759%203.03417%2012.3128%202.97907%2012.3593%202.93267C12.4057%202.88627%2012.4609%202.84948%2012.5216%202.8244C12.5823%202.79932%2012.6474%202.78645%2012.7131%202.78651C12.7787%202.78657%2012.8438%202.79957%2012.9044%202.82476C12.9651%202.84995%2013.0202%202.88685%2013.0666%202.93334C13.7327%203.59825%2014.2612%204.38801%2014.6218%205.25741C14.9824%206.12681%2015.168%207.05879%2015.168%208C15.168%208.94122%2014.9824%209.87319%2014.6218%2010.7426C14.2612%2011.612%2013.7327%2012.4018%2013.0666%2013.0667C13.02%2013.1134%2012.9646%2013.1504%2012.9036%2013.1756C12.8426%2013.2007%2012.7772%2013.2129%2012.7113%2013.2127Z'%20fill='%233B5695'/%3e%3c/svg%3e",le="data:image/svg+xml,%3csvg%20class='swap-on%20fill-current%20h-4%20w-4'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill-rule='evenodd'%20d='M4.5%207.5a3%203%200%200%201%203-3h9a3%203%200%200%201%203%203v9a3%203%200%200%201-3%203h-9a3%203%200%200%201-3-3v-9Z'%20clip-rule='evenodd'%20fill='%238595BE'/%3e%3c/svg%3e",se=["disabled"],ae=["disabled"],re={__name:"Player",props:{tts:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["loadTTS"],setup(e,{emit:t}){const n=e,i=t,l=o.computed(()=>n.tts),s=o.ref(!1),a=new Audio;o.watch(l,()=>{if(!l.value){s.value=!1;return}r()},{immediate:!0}),o.onUnmounted(()=>{d(),a.src=""});function c(){if(l.value){r();return}s.value=!0,i("loadTTS")}function r(){l.value&&(a.src=l.value,s.value=!0,a.play().catch(()=>{s.value=!1}))}function d(){a.pause(),a.currentTime=0,s.value=!1}return a.onended=()=>{s.value=!1},(f,A)=>s.value?(o.openBlock(),o.createElementBlock("button",{key:1,class:o.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-white !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled,onClick:d},[o.createElementVNode("img",{class:o.normalizeClass(["w-5 transition-all duration-200",[{"opacity-100":!e.disabled},{"opacity-50 transform":e.disabled}]]),src:le,alt:"Stop"},null,2)],10,ae)):(o.openBlock(),o.createElementBlock("button",{key:0,class:o.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-white !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled,onClick:c},[o.createElementVNode("img",{class:o.normalizeClass(["w-5 transition-all duration-200",[{"opacity-100":!e.disabled},{"opacity-50 transform":e.disabled}]]),src:ie,alt:"Play"},null,2)],10,se))}},ce="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.9491%205.89315C14.8278%205.53128%2014.5111%205.27252%2014.1226%205.21783L10.5264%204.7114L8.91813%201.55315C8.74435%201.21195%208.39257%201%207.99998%201C7.60739%201%207.25557%201.21195%207.08183%201.55315L5.47358%204.7114L1.8774%205.21783C1.48888%205.27252%201.17219%205.53128%201.05086%205.89315C0.929554%206.25501%201.02881%206.64477%201.30993%206.91038L3.91217%209.36871L3.29786%2012.8399C3.2315%2013.215%203.38755%2013.5868%203.7052%2013.8105C3.88128%2013.9344%204.08938%2014%204.30704%2014C4.47232%2014%204.63705%2013.9606%204.78341%2013.886L7.99995%2012.2471L11.2165%2013.886C11.3628%2013.9606%2011.5276%2014%2011.6929%2014C11.9106%2014%2012.1187%2013.9345%2012.2948%2013.8105C12.6124%2013.5868%2012.7685%2013.215%2012.7021%2012.84L12.0878%209.36871L14.6901%206.91035C14.9712%206.64477%2015.0704%206.25498%2014.9491%205.89315ZM14.0266%206.25082L11.2455%208.87813C11.1335%208.98392%2011.0824%209.13637%2011.1089%209.28575L11.7654%2012.9956C11.7701%2013.0226%2011.759%2013.0493%2011.7362%2013.0653C11.7202%2013.0766%2011.7038%2013.079%2011.6929%2013.079C11.6809%2013.079%2011.6694%2013.0762%2011.6587%2013.0708L8.22108%2011.3192C8.15189%2011.284%208.07593%2011.2663%207.99998%2011.2663C7.92402%2011.2663%207.84807%2011.284%207.77882%2011.3193L4.34118%2013.0708C4.33052%2013.0763%204.31904%2013.079%204.30701%2013.079C4.29611%2013.079%204.27969%2013.0767%204.26373%2013.0654C4.24092%2013.0494%204.22975%2013.0226%204.2345%2012.9957L4.89104%209.28584C4.91747%209.13646%204.86637%208.98401%204.75439%208.87822L1.97327%206.25091C1.95308%206.23184%201.94595%206.20383%201.95466%206.17786C1.9634%206.15185%201.98612%206.13326%202.01405%206.12933L5.85743%205.58807C6.0122%205.56626%206.14599%205.47208%206.21521%205.33616L7.93404%201.9608C7.94653%201.9363%207.97178%201.92107%207.99998%201.92107C8.02818%201.92107%208.05343%201.9363%208.06591%201.9608L9.78468%205.33607C9.85391%205.47199%209.9877%205.5662%2010.1425%205.58799L13.9859%206.12924C14.0138%206.1332%2014.0365%206.15176%2014.0452%206.17777C14.0539%206.20374%2014.0468%206.23175%2014.0266%206.25082Z'%20fill='%231A1F2A'/%3e%3c/svg%3e",de="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.47207%201.31905C7.57125%201.12371%207.77589%201%208.00001%201C8.22413%201%208.42877%201.12367%208.52795%201.31905L10.3721%204.95175L14.4959%205.53427C14.7177%205.5656%2014.9019%205.7166%2014.9712%205.9238C15.0404%206.13101%2014.9827%206.35843%2014.8222%206.51049L11.8382%209.33816L12.5427%2013.3309C12.5806%2013.5456%2012.4897%2013.7626%2012.3084%2013.8906C12.1272%2014.0187%2011.8868%2014.0356%2011.6884%2013.9342L8.00004%2012.0491L4.31158%2013.9343C4.11323%2014.0356%203.87286%2014.0187%203.69157%2013.8907C3.51028%2013.7627%203.4195%2013.5457%203.45736%2013.3309L4.1618%209.33819L1.17781%206.51052C1.01735%206.35846%200.959571%206.13101%201.02884%205.92383C1.09807%205.71663%201.28232%205.56563%201.50409%205.53431L5.62787%204.95178L7.47207%201.31905Z'%20fill='%23FFC857'/%3e%3c/svg%3e",fe={class:"tooltip tooltip-bottom before:!bg-white 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%]","data-tip":"Favorite"},Ae=["disabled"],ge=["src","alt"],Ce={__name:"Favorite",props:{isFilled:Boolean,disabled:Boolean},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",fe,[o.createElementVNode("button",{class:o.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-transparent !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled},[o.createElementVNode("img",{src:e.isFilled?o.unref(de):o.unref(ce),alt:e.isFilled?"Unfavorite":"Favorite",class:o.normalizeClass(["w-5 transition-all duration-200",[{"opacity-100":!e.disabled},{"opacity-50 transform":e.disabled}]])},null,10,ge)],10,Ae)]))}},me="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3ccircle%20cx='18'%20cy='12'%20r='0'%20fill='currentColor'%3e%3canimate%20attributeName='r'%20begin='.67'%20calcMode='spline'%20dur='1.5s'%20keySplines='0.2%200.2%200.4%200.8;0.2%200.2%200.4%200.8;0.2%200.2%200.4%200.8'%20repeatCount='indefinite'%20values='0;2;0;0'/%3e%3c/circle%3e%3ccircle%20cx='12'%20cy='12'%20r='0'%20fill='currentColor'%3e%3canimate%20attributeName='r'%20begin='.33'%20calcMode='spline'%20dur='1.5s'%20keySplines='0.2%200.2%200.4%200.8;0.2%200.2%200.4%200.8;0.2%200.2%200.4%200.8'%20repeatCount='indefinite'%20values='0;2;0;0'/%3e%3c/circle%3e%3ccircle%20cx='6'%20cy='12'%20r='0'%20fill='currentColor'%3e%3canimate%20attributeName='r'%20begin='0'%20calcMode='spline'%20dur='1.5s'%20keySplines='0.2%200.2%200.4%200.8;0.2%200.2%200.4%200.8;0.2%200.2%200.4%200.8'%20repeatCount='indefinite'%20values='0;2;0;0'/%3e%3c/circle%3e%3c/svg%3e",ue=["src"],G2={__name:"Spinning",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("img",{src:o.unref(me),alt:"Loading",class:"w-6 h-6"},null,8,ue))}},he="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='%23FFC857'/%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='%23FFC857'/%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='%23FFC857'/%3e%3ccircle%20cx='3.5'%20cy='3.5'%20r='1.5'%20fill='%23FFC857'/%3e%3cellipse%20cx='4.5'%20cy='10'%20rx='0.5'%20ry='1'%20fill='%23FFC857'/%3e%3cpath%20d='M3.5%201L4.79904%202.5H2.20096L3.5%201Z'%20fill='%23FFC857'/%3e%3cpath%20d='M6%203.5L4.5%204.79904L4.5%202.20096L6%203.5Z'%20fill='%23FFC857'/%3e%3cpath%20d='M10.3697%206.67832L8.22108%207.01422L9.5776%204.65296L10.3697%206.67832Z'%20fill='%23FFC857'/%3e%3cpath%20d='M8.27756%205.34149L10.768%206.00067L9.11199%207.77878L8.27756%205.34149Z'%20fill='%23FFC857'/%3e%3cpath%20d='M1%203.5L2.5%202.20096L2.5%204.79904L1%203.5Z'%20fill='%23FFC857'/%3e%3cpath%20d='M3.5%206L2.20096%204.5L4.79904%204.5L3.5%206Z'%20fill='%23FFC857'/%3e%3ccircle%20cx='9'%20cy='6'%20r='1'%20fill='%23FFC857'/%3e%3cpath%20d='M5.49718%209.92495L4.03391%2010.4693L3.96891%209.60573L5.49718%209.92495Z'%20fill='%23FFC857'/%3e%3cpath%20d='M3.54089%209.71696L5.10212%209.72621L4.857%2010.5568L3.54089%209.71696Z'%20fill='%23FFC857'/%3e%3cpath%20d='M3.50071%209.96247L5.0159%209.58606L4.9834%2010.4515L3.50071%209.96247Z'%20fill='%23FFC857'/%3e%3c/svg%3e",pe="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='%23FFC857'/%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='%23FFC857'/%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='%23FFC857'/%3e%3c/svg%3e",we={class:"bg-white tooltip tooltip-bottom before:!bg-white 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%]","data-tip":"AI Translate"},Be=["disabled"],xe=["src"],be={__name:"AITranslateBtn",props:{isLoading:Boolean,disabled:Boolean,isFilled:Boolean},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",we,[e.isLoading?(o.openBlock(),o.createBlock(G2,{key:0,class:"inset-0 flex items-center justify-center"})):(o.openBlock(),o.createElementBlock("button",{key:1,class:o.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-transparent !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled},[o.createElementVNode("img",{src:e.isFilled?o.unref(he):o.unref(pe),alt:"AI",class:o.normalizeClass(["w-5 transition-all duration-200",[{"opacity-100":!e.disabled},{"opacity-50 transform ":e.disabled}]])},null,10,xe)],10,Be))]))}},Ee="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%20fill='%23FFC857'%20d='M12%207a5%205%200%200%200-2%209.584V19h4v-2.416A5.001%205.001%200%200%200%2012%207z'/%3e%3cpath%20stroke='%23FFC857'%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",ye="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='%23FFC857'%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",Ie={class:"bg-white tooltip tooltip-bottom before:!bg-white 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%]","data-tip":"AI Summarize"},Le=["disabled"],ke=["src"],Fe={__name:"AIExplainBtn",props:{isLoading:Boolean,disabled:Boolean,isFilled:Boolean},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",Ie,[e.isLoading?(o.openBlock(),o.createBlock(G2,{key:0})):(o.openBlock(),o.createElementBlock("button",{key:1,class:o.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-transparent !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled},[o.createElementVNode("img",{src:e.isFilled?o.unref(Ee):o.unref(ye),alt:"AI",class:o.normalizeClass(["w-6 transition-all duration-200",[{"opacity-100":!e.disabled},{"opacity-50 transform ":e.disabled}]])},null,10,ke)],10,Le))]))}},Qe="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.12596%201.63869C9.46935%201.54364%209.83221%201.70329%209.99413%202.02068C10.3672%202.75191%2011.1261%203.25%2012%203.25C12.8739%203.25%2013.6328%202.75191%2014.0059%202.02068C14.1678%201.70329%2014.5307%201.54364%2014.874%201.63869C16.5585%202.10497%2018.0759%202.9704%2019.3184%204.12574C19.5611%204.35137%2019.6269%204.70948%2019.4804%205.00666C19.3331%205.30535%2019.25%205.6419%2019.25%206C19.25%207.24263%2020.2574%208.25%2021.5%208.25L21.5314%208.24977C21.8629%208.24504%2022.1583%208.45859%2022.2576%208.77495C22.5777%209.79397%2022.75%2010.8776%2022.75%2012C22.75%2012.7408%2022.6749%2013.4649%2022.5318%2014.1648C22.4548%2014.5411%2022.1059%2014.7985%2021.7237%2014.7609C21.6504%2014.7537%2021.5758%2014.75%2021.5%2014.75C20.2574%2014.75%2019.25%2015.7574%2019.25%2017C19.25%2017.5531%2019.4486%2018.0579%2019.7793%2018.4498C20.027%2018.7434%2020.0128%2019.1767%2019.7465%2019.4535C18.4777%2020.7719%2016.8745%2021.7678%2015.0721%2022.3044C14.6807%2022.4209%2014.2681%2022.2029%2014.1437%2021.814C13.8535%2020.906%2013.0024%2020.25%2012%2020.25C10.9976%2020.25%2010.1465%2020.906%209.85629%2021.814C9.73195%2022.2029%209.31927%2022.4209%208.92789%2022.3044C7.12545%2021.7678%205.52229%2020.7719%204.25353%2019.4535C3.98716%2019.1767%203.97299%2018.7434%204.22072%2018.4498C4.55139%2018.0579%204.75%2017.5531%204.75%2017C4.75%2015.7574%203.74264%2014.75%202.5%2014.75C2.42423%2014.75%202.34963%2014.7537%202.27634%2014.7609C1.89406%2014.7985%201.54519%2014.5411%201.46821%2014.1648C1.32505%2013.4649%201.25%2012.7408%201.25%2012C1.25%2010.8776%201.42227%209.79398%201.74236%208.77494C1.84173%208.45859%202.13705%208.24504%202.4686%208.24977L2.5%208.25C3.74264%208.25%204.75%207.24263%204.75%206C4.75%205.6419%204.66689%205.30535%204.51962%205.00666C4.3731%204.70948%204.43894%204.35137%204.68159%204.12574C5.92411%202.9704%207.44153%202.10497%209.12596%201.63869ZM6.08277%204.88991C6.19152%205.24123%206.25%205.61424%206.25%206C6.25%207.88945%204.85261%209.45253%203.03493%209.71213C2.84898%2010.4432%202.75%2011.2096%202.75%2012C2.75%2012.4294%202.77921%2012.8516%202.83567%2013.2648C4.74948%2013.4346%206.25%2015.0421%206.25%2017C6.25%2017.6669%206.0754%2018.2941%205.76971%2018.8372C6.62645%2019.6184%207.63002%2020.2404%208.73362%2020.657C9.37706%2019.5189%2010.598%2018.75%2012%2018.75C13.402%2018.75%2014.6229%2019.5189%2015.2664%2020.657C16.37%2020.2404%2017.3735%2019.6184%2018.2303%2018.8372C17.9246%2018.2941%2017.75%2017.6669%2017.75%2017C17.75%2015.0421%2019.2505%2013.4346%2021.1643%2013.2648C21.2208%2012.8516%2021.25%2012.4294%2021.25%2012C21.25%2011.2096%2021.151%2010.4432%2020.9651%209.71213C19.1474%209.45252%2017.75%207.88945%2017.75%206C17.75%205.61424%2017.8085%205.24123%2017.9172%204.88991C17.0618%204.1771%2016.0762%203.61614%2015.0018%203.24775C14.3184%204.15897%2013.2287%204.75%2012%204.75C10.7713%204.75%209.68158%204.15897%208.99819%203.24775C7.92382%203.61614%206.93823%204.1771%206.08277%204.88991Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M7.75%2012C7.75%209.65278%209.65279%207.75%2012%207.75C14.3472%207.75%2016.25%209.65278%2016.25%2012C16.25%2014.3472%2014.3472%2016.25%2012%2016.25C9.65279%2016.25%207.75%2014.3472%207.75%2012ZM12%209.25C10.4812%209.25%209.25%2010.4812%209.25%2012C9.25%2013.5188%2010.4812%2014.75%2012%2014.75C13.5188%2014.75%2014.75%2013.5188%2014.75%2012C14.75%2010.4812%2013.5188%209.25%2012%209.25Z'%20fill='%237E7E7E'/%3e%3c/svg%3e",Se={},ve={class:"btn btn-xs btn-ghost btn-circle mb-1"},Me=[o.createElementVNode("img",{class:"w-5",src:Qe,alt:"Icon description"},null,-1)];function De(e,t){return o.openBlock(),o.createElementBlock("button",ve,Me)}const Re=i2(Se,[["render",De]]),Te="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.19102%203.19102C3.44571%202.93633%203.85864%202.93633%204.11333%203.19102L12.809%2011.8867C13.0637%2012.1414%2013.0637%2012.5543%2012.809%2012.809C12.5543%2013.0637%2012.1414%2013.0637%2011.8867%2012.809L3.19102%204.11333C2.93633%203.85864%202.93633%203.44571%203.19102%203.19102Z'%20fill='%231A1F2A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.809%203.19102C13.0637%203.44571%2013.0637%203.85864%2012.809%204.11333L4.11333%2012.809C3.85864%2013.0637%203.44571%2013.0637%203.19102%2012.809C2.93633%2012.5543%202.93633%2012.1414%203.19102%2011.8867L11.8867%203.19102C12.1414%202.93633%2012.5543%202.93633%2012.809%203.19102Z'%20fill='%231A1F2A'/%3e%3c/svg%3e",He={},Oe={class:"btn btn-xs btn-circle btn-ghost"},Ge=[o.createElementVNode("img",{class:"w-5",src:Te,alt:"Clear"},null,-1)];function Ve(e,t){return o.openBlock(),o.createElementBlock("button",Oe,Ge)}const Je=i2(He,[["render",Ve]]),Ne={class:"flex flex-col"},Ue={class:"flex p-2 pt-2 pb-1 flex-row justify-between"},Ye={class:"justify-start items-center"},Ke={class:"flex items-center gap-1"},We=o.createElementVNode("div",{class:"w-5"},null,-1),Ze={class:"justify-end items-center"},V2={__name:"Header",props:{tts:String,isServiceUnavailable:Boolean,isFavorite:Boolean,isFavoriteFeatureEnabled:Boolean,isAITranslate:Boolean,isAIExplain:Boolean,isAITranslationLoading:Boolean,isAIExplainLoading:Boolean},emits:["favorite","setting","close","loadTTS","aiTranslate","aiExplain"],setup(e,{emit:t}){const n=e,i=t;return(l,s)=>(o.openBlock(),o.createElementBlock("div",Ne,[o.createElementVNode("div",Ue,[o.createElementVNode("div",Ye,[o.createVNode(re,{disabled:e.isAITranslationLoading||e.isAIExplainLoading,tts:n.tts,onLoadTTS:s[0]||(s[0]=a=>l.$emit("loadTTS"))},null,8,["disabled","tts"])]),o.createElementVNode("div",Ke,[We,o.createVNode(be,{isLoading:e.isAITranslationLoading,isFilled:e.isAITranslate,onClick:s[1]||(s[1]=a=>i("aiTranslate"))},null,8,["isLoading","isFilled"]),o.createVNode(Fe,{isLoading:e.isAIExplainLoading,isFilled:e.isAIExplain,onClick:s[2]||(s[2]=a=>i("aiExplain"))},null,8,["isLoading","isFilled"]),!e.isServiceUnavailable&&n.isFavoriteFeatureEnabled?(o.openBlock(),o.createBlock(Ce,{key:0,isFilled:n.isFavorite,onClick:s[3]||(s[3]=a=>i("favorite")),disabled:e.isAITranslationLoading||e.isAIExplainLoading},null,8,["isFilled","disabled"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",Ze,[o.createVNode(Re,{onClick:s[4]||(s[4]=a=>i("setting"))}),o.createVNode(Je,{onClick:s[5]||(s[5]=a=>i("close"))})])])]))}},e2={LOGO:"LOGO",LOADING:"LOADING",DATA:"DATA",ERROR:"ERROR",HIDDEN:"HIDDEN"},qe=["ar","fa","iw","yi","ur","pa"],je={key:0,class:"flex justify-center"},ze={key:1,class:"flex justify-center"},Pe={class:o.normalizeClass(["bg-white rounded-md relative z-10"])},$e={class:"p-3 border-t border-[#D3D4D9]"},Xe=Object.assign({name:"Bubble",props:["translation","explanation","tts","status","isFavorite","isFavoriteFeatureEnabled","isAITranslate","isAIExplain"],emits:["logo","favorite","settings","close","loadTTS","aiTranslate","aiExplain"],data(){return{data:null,isLongSentence:!1,isServiceUnavailable:!1,isAITranslationLoading:!1,isAIExplainLoading:!1}},methods:{handleAITranslate(){this.isAITranslationLoading=!0,this.$emit("aiTranslate")},handleAIExplain(){this.isAIExplainLoading=!0,this.$emit("aiExplain")}},watch:{translation:{handler(){var e,t,n,i;try{this.data=this.translation,this.isLongSentence=!((t=(e=this.data)==null?void 0:e.phonetic)!=null&&t.src||((i=(n=this.data)==null?void 0:n.dictionary)==null?void 0:i.length)>0),this.isServiceUnavailable=!1}catch{this.isServiceUnavailable=!0}finally{this.isAITranslationLoading=!1,this.isAIExplainLoading=!1}},immediate:!0},explanation:{handler(){this.isAIExplainLoading=!1},immediate:!0},status(){this.status===e2.ERROR&&(this.isServiceUnavailable=!0)}}},{setup(e){return(t,n)=>{var i,l,s,a,c,r,d;return e.status===o.unref(e2).LOGO?(o.openBlock(),o.createElementBlock("div",je,[o.createVNode(T0,{onClick:n[0]||(n[0]=f=>t.$emit("logo"))})])):e.status===o.unref(e2).LOADING?(o.openBlock(),o.createElementBlock("div",ze,[o.createVNode(U0)])):e.status!==o.unref(e2).HIDDEN?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(["wrapper rounded-lg text-slate-900 text-sm shadow-lg relative transition-all duration-300 ease-in-out bg-[length:300%_300%] bg-[position:0%_50%]",{"p-0.5 bg-gradient-to-br from-[#8556f0] via-[#d6b379] via-[#6bedd1] to-[#439beb] animate-moveGradient":e.isAITranslate||e.isAIExplain,"p-0.5 bg-gray-100":!e.isAITranslate&&!e.isAIExplain}])},[o.createElementVNode("div",Pe,[t.isServiceUnavailable?(o.openBlock(),o.createBlock(V2,{key:0,isServiceUnavailable:t.isServiceUnavailable,isLongSentence:!1,onFavorite:n[1]||(n[1]=f=>t.$emit("favorite")),onSetting:n[2]||(n[2]=f=>t.$emit("settings")),onClose:n[3]||(n[3]=f=>t.$emit("close")),onLoadTTS:n[4]||(n[4]=f=>t.$emit("loadTTS"))},null,8,["isServiceUnavailable"])):(o.openBlock(),o.createBlock(V2,{key:1,tts:e.tts,isFavorite:e.isFavorite,isAITranslate:e.isAITranslate,isAIExplain:e.isAIExplain,isAITranslationLoading:t.isAITranslationLoading,isAIExplainLoading:t.isAIExplainLoading,isFavoriteFeatureEnabled:e.isFavoriteFeatureEnabled,isLongSentence:t.isLongSentence,onFavorite:n[5]||(n[5]=f=>t.$emit("favorite")),onSetting:n[6]||(n[6]=f=>t.$emit("settings")),onClose:n[7]||(n[7]=f=>t.$emit("close")),onLoadTTS:n[8]||(n[8]=f=>t.$emit("loadTTS")),onAiTranslate:t.handleAITranslate,onAiExplain:t.handleAIExplain},null,8,["tts","isFavorite","isAITranslate","isAIExplain","isAITranslationLoading","isAIExplainLoading","isFavoriteFeatureEnabled","isLongSentence","onAiTranslate","onAiExplain"])),o.createElementVNode("div",$e,[(l=(i=t.data)==null?void 0:i.phonetic)!=null&&l.src?(o.openBlock(),o.createBlock(q0,{key:0,phonetic:(a=(s=t.data)==null?void 0:s.phonetic)==null?void 0:a.src},null,8,["phonetic"])):o.createCommentVNode("",!0),o.createVNode(z0,{sentences:t.isServiceUnavailable?"Service Unavailable":(c=t.data)==null?void 0:c.result},null,8,["sentences"])]),!t.isServiceUnavailable&&((d=(r=t.data)==null?void 0:r.dictionary)==null?void 0:d.length)>0?(o.openBlock(),o.createBlock(X0,{key:2,class:"p-3 pt-0 border-t border-[#D3D4D9]",dictionary:t.data.dictionary},null,8,["dictionary"])):o.createCommentVNode("",!0),!t.isServiceUnavailable&&e.isAIExplain&&e.explanation?(o.openBlock(),o.createBlock(oe,{key:3,class:"p-3 pt-0 border-t border-[#D3D4D9]",explanation:e.explanation},null,8,["explanation"])):o.createCommentVNode("",!0)])],2)):o.createCommentVNode("",!0)}}});function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var J2={exports:{}};(function(e){(function(){var t=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],n=typeof window<"u",i=n&&window.mozInnerScreenX!=null;function l(s,a,c){if(!n)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var r=c&&c.debug||!1;if(r){var d=document.querySelector("#input-textarea-caret-position-mirror-div");d&&d.parentNode.removeChild(d)}var f=document.createElement("div");f.id="input-textarea-caret-position-mirror-div",document.body.appendChild(f);var A=f.style,m=window.getComputedStyle?window.getComputedStyle(s):s.currentStyle,g=s.nodeName==="INPUT";A.whiteSpace="pre-wrap",g||(A.wordWrap="break-word"),A.position="absolute",r||(A.visibility="hidden"),t.forEach(function(w){g&&w==="lineHeight"?A.lineHeight=m.height:A[w]=m[w]}),i?s.scrollHeight>parseInt(m.height)&&(A.overflowY="scroll"):A.overflow="hidden",f.textContent=s.value.substring(0,a),g&&(f.textContent=f.textContent.replace(/\s/g," "));var u=document.createElement("span");u.textContent=s.value.substring(a)||".",f.appendChild(u);var p={top:u.offsetTop+parseInt(m.borderTopWidth),left:u.offsetLeft+parseInt(m.borderLeftWidth),height:parseInt(m.lineHeight)};return r?u.style.backgroundColor="#aaa":document.body.removeChild(f),p}e.exports=l})()})(J2);var et=J2.exports;const N2=_e(et);function l2(e){const t=window.getSelection();let n=t+"";if(n=n.trim(),e&&e.type==="password"||!n.length&&(!(e&&e.selectionEnd)||(n=e.value.substring(e.selectionStart,e.selectionEnd),n=n.trim(),!n.length)))return!1;let l=t.getRangeAt(0).getBoundingClientRect(),{top:s,bottom:a,left:c,width:r,height:d}=l;if(!a&&!c){if(!e.selectionEnd)return!1;let f=N2(e,e.selectionStart),A=N2(e,e.selectionEnd);l=e.getBoundingClientRect(),c=l.left+f.left,r=A.left-f.left,f.top!=A.top&&(c=l.left,r=l.width),s=l.top+f.top,a=l.top+A.top+20}return d===0&&(d=a-s),{text:n,x:c,y:s,top:s,bottom:a,left:c,right:c+r,width:r,height:d}}function tt(){const e=document.getElementsByTagName("ddict-div");for(let t of e)if(!t.parentNode.matches('wrapper[dir="rtl"]')){const n=document.createElement("wrapper");n.setAttribute("dir","rtl"),t.parentNode.insertBefore(n,t),n.appendChild(t)}}function nt(){const e=document.querySelectorAll('wrapper[dir="rtl"]');for(let t of e){const n=t.querySelector("ddict-div");n&&(t.parentNode.insertBefore(n,t),t.remove())}}const U2={supportRTL:tt,removeRTL:nt},ot={__name:"HotKeysListener",props:{textSelected:String},emits:["toggleKey","close"],setup(e,{emit:t}){const n=e,i=t,l=()=>{setTimeout(()=>{n.textSelected&&c("DoubleClick")},50)},s=r=>{(r.altKey&&r.key.toLowerCase()==="w"||r.key==="∑")&&n.textSelected&&(c("Alt+W"),r.preventDefault()),r.key==="Escape"&&(c("Escape"),r.preventDefault())},a=r=>{r.key==="Shift"&&n.textSelected&&c("Shift")},c=r=>{switch(r){case"DoubleClick":i("toggleKey","DoubleClick");break;case"Shift":i("toggleKey","Shift");break;case"Alt+W":i("toggleKey","Alt+W");break;case"Escape":i("close");break}};return o.onMounted(()=>{window.addEventListener("dblclick",l),window.addEventListener("keydown",s),window.addEventListener("keyup",a)}),o.onUnmounted(()=>{window.removeEventListener("dblclick",l),window.removeEventListener("keydown",s),window.removeEventListener("keyup",a)}),(r,d)=>(o.openBlock(),o.createElementBlock("div"))}},it={__name:"BubbleWrapper",props:{translation:Object,explanation:Object,isFavoriteFeatureEnabled:Boolean,isAITranslate:Boolean,isAIExplain:Boolean,isFavorite:Boolean,tts:String,status:String,scale:{type:Number,default:1}},emits:["toggleKey","logo","favorite","settings","close","loadTTS","aiTranslate","aiExplain"],setup(e,{emit:t}){const n=e,i=t,l=o.ref(null),s=o.ref(null),a=o.ref(null),c=o.ref(!1),r=o.ref(""),d=o.computed(()=>typeof window>"u"||!a.value||!r.value?null:{getBoundingClientRect:()=>l2(a.value),getClientRects:()=>l2(a.value)}),f=o.computed(()=>{if(!g.value.arrow||n.status!==e2.DATA)return{display:"none"};const{x:h,y:C}=g.value.arrow,y={top:"bottom",right:"left",bottom:"top",left:"right"}[g.value.offset.placement.split("-")[0]];return{left:h!=null?`${h}px`:"",top:C!=null?`${C}px`:"",[y]:"-8px",position:"absolute"}}),A=o.computed(()=>{var C;switch((C=g.value.offset)==null?void 0:C.placement.split("-")[0]){case"top":return{transform:"rotate(180deg)"};case"left":return{transform:"rotate(90deg)"};case"right":return{transform:"rotate(-90deg)"};default:return{}}}),{floatingStyles:m,middlewareData:g,update:u}=S0(d,l,{placement:"bottom-end",middleware:[b0(8),y0(),E0(),Q0({element:s}),I0({apply({rects:h,elements:C}){Object.assign(C.floating.style,{maxWidth:`${h.reference.width>250?h.reference.width/n.scale:250}px`,zIndex:9999})}})],whileElementsMounted(h,C,y){return x0(h,C,y,{ancestorScroll:!0})}}),p=o.computed(()=>{if(n.scale===1)return m.value;const h=m.value.transform;return{...m.value,transform:`${h} scale(${n.scale})`}});o.onMounted(()=>{document.addEventListener("keyup",h=>{if(!l2(h.target)){r.value="",x();return}}),document.documentElement.onclick=h=>{const C=l2(h.target);if(!C){r.value="",x();return}w(C,h)},document.documentElement.ontouchend=h=>{const C=l2(h.target);if(!C){r.value="",x();return}w(C,h)}}),o.onUnmounted(()=>{document.documentElement.onclick=null,document.documentElement.ontouchend=null});const w=(h,C)=>{n.status!==e2.LOGO&&i("close"),a.value=C.target,r.value=h.text,c.value=!0,o.nextTick(u)},B=h=>{h.stopPropagation()},x=async()=>{c.value=!1,i("close")},b=()=>{var C;const h=(C=n==null?void 0:n.translation)==null?void 0:C.target;qe.includes(h)?U2.supportRTL():U2.removeRTL()};return o.watch(()=>n.status,()=>{c.value&&o.nextTick(u),b()}),(h,C)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[c.value?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"floatingEl",ref:l,style:o.normalizeStyle(p.value),onClick:B},[o.createElementVNode("div",{ref_key:"arrowEl",ref:s,style:o.normalizeStyle(f.value),class:"absolute transform"},[o.createElementVNode("img",{style:o.normalizeStyle(A.value),class:"w-5",src:Y2,alt:"arrow"},null,4)],4),o.createVNode(Xe,{translation:n.translation,explanation:n.explanation,tts:n.tts,status:n.status,isFavorite:n.isFavorite,isFavoriteFeatureEnabled:n.isFavoriteFeatureEnabled,isAITranslate:n.isAITranslate,isAIExplain:n.isAIExplain,onLogo:C[0]||(C[0]=y=>i("logo")),onFavorite:C[1]||(C[1]=y=>i("favorite")),onSettings:C[2]||(C[2]=y=>i("settings")),onClose:x,onLoadTTS:C[3]||(C[3]=y=>i("loadTTS")),onAiTranslate:C[4]||(C[4]=y=>i("aiTranslate")),onAiExplain:C[5]||(C[5]=y=>i("aiExplain"))},null,8,["translation","explanation","tts","status","isFavorite","isFavoriteFeatureEnabled","isAITranslate","isAIExplain"])],4)):o.createCommentVNode("",!0),o.createVNode(ot,{textSelected:r.value,onToggleKey:C[6]||(C[6]=y=>i("toggleKey",y)),onClose:x},null,8,["textSelected"])],64))}};K.default=it,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|