@ddict/popup 1.4.6 → 1.5.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/popup.umd.js CHANGED
@@ -1,23 +1,23 @@
1
- (function(Y,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(Y=typeof globalThis<"u"?globalThis:Y||self,t(Y.Popup={},Y.Vue))})(this,function(Y,t){"use strict";var O2=typeof document<"u"?document.currentScript:null;const N2=navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i),b2={isRTL:l0,setLocalStorage:a0,getLocalStorage:s0};function l0(e){return["ar","fa","iw","yi","ur","pa"].indexOf(e)>-1}function a0(e,o){localStorage.setItem(e,JSON.stringify(o))}function s0(e){return JSON.parse(localStorage.getItem(e))}const r0="data:image/svg+xml,%3csvg%20width='96'%20height='32'%20viewBox='0%200%2096%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M40.151%208.94498H35.7256V23.055H40.151C44.7473%2023.055%2047.826%2020.0825%2047.826%2015.9795C47.8267%2011.8093%2044.7678%208.94498%2040.151%208.94498ZM40.1312%2021.025H37.993V10.9974H40.1312C43.4217%2010.9974%2045.4972%2012.9846%2045.4972%2015.9795C45.4965%2018.9296%2043.4012%2021.025%2040.1312%2021.025Z'%20fill='%233B5695'/%3e%3cpath%20d='M54.5158%208.94498H50.0903V23.055H54.5158C59.1121%2023.055%2062.1908%2020.0825%2062.1908%2015.9795C62.1914%2011.8093%2059.1351%208.94498%2054.5158%208.94498ZM54.496%2021.025H52.3578V10.9974H54.496C57.789%2010.9974%2059.8619%2012.9846%2059.8619%2015.9795C59.8613%2018.9296%2057.766%2021.025%2054.496%2021.025Z'%20fill='%233B5695'/%3e%3cpath%20d='M66.7237%208.94498H64.4575V23.055H66.7237V8.94498Z'%20fill='%233B5695'/%3e%3cpath%20d='M76.4301%2010.7837C78.29%2010.7837%2079.7436%2011.6603%2080.7487%2013.2207L82.4589%2011.9591C81.2401%209.97057%2078.9957%208.70953%2076.409%208.70953C72.3898%208.64555%2068.9048%2011.9591%2068.9906%2016C68.9048%2020.0403%2072.3898%2023.3544%2076.409%2023.2905C79.0385%2023.2905%2081.2618%2022.0294%2082.4589%2020.0409L80.7487%2018.7793C79.7436%2020.3397%2078.29%2021.2163%2076.4301%2021.2163C73.544%2021.2163%2071.3418%2018.993%2071.3418%2016C71.3418%2013.007%2073.5433%2010.7837%2076.4301%2010.7837Z'%20fill='%233B5695'/%3e%3cpath%20d='M83.3135%208.94498V10.9757H88.0595V23.055H90.3256V10.9757H95.0934V8.94498H83.3135Z'%20fill='%233B5695'/%3e%3cpath%20d='M8.66351%204.7121H4.604V15.4427L6.87208%2013.3839V6.79143H8.64559C11.4639%206.79143%2013.2835%208.47857%2013.2835%2011.0877C13.2835%2013.6916%2011.421%2015.4427%208.64559%2015.4427H4.604V17.5016H8.66351C12.7531%2017.5016%2015.6098%2014.8644%2015.6098%2011.0877C15.6104%207.27575%2012.8196%204.7121%208.66351%204.7121Z'%20fill='%233B5695'/%3e%3cpath%20d='M26.2425%209.25528H21.5502L20.7537%2014.293L21.4523%2014.3308L21.4069%2014.7294C21.3916%2014.8656%2021.3289%2015.0448%2021.112%2015.1734C21.1017%2015.9399%2021.0845%2017.0493%2020.9706%2018.1766H26.5937V19.8586H21.4677C22.4133%2022.9424%2024.1254%2024.9648%2026.5611%2025.8669L27.1536%2026.0864L26.6795%2026.5048C26.4875%2026.6737%2026.2182%2027.0141%2026.0896%2027.2489L25.9258%2027.5438L25.6155%2027.4152C23.167%2026.4095%2021.4223%2024.4926%2020.2905%2021.563C19.3602%2024.3365%2017.5797%2026.2553%2014.8592%2027.428L14.5438%2027.5617L14.3775%2027.2642C14.2764%2027.08%2014.0294%2026.7876%2013.8151%2026.5989L13.3564%2026.1951L13.9239%2025.9655C16.4555%2024.9392%2018.064%2023.1414%2018.8228%2020.4837C19.6647%2019.8381%2020.2099%2018.8221%2020.2169%2017.6801V4.53231C20.2169%202.58349%2018.6334%201%2016.6846%201H3.53487C1.58349%201%200%202.58349%200%204.53231V17.6795C0%2019.6283%201.58349%2021.2143%203.53487%2021.2143H8.25528V27.2431C8.25528%2029.3135%209.93986%2031%2012.0096%2031H26.2431C28.3161%2031%2029.9974%2029.3129%2029.9974%2027.2431V13.0096C29.9974%2010.9392%2028.3154%209.25528%2026.2425%209.25528ZM3.53487%2019.4517C2.55662%2019.4517%201.762%2018.6603%201.762%2017.6788V4.53231C1.762%203.55662%202.55598%202.762%203.53487%202.762H16.6839C17.6571%202.762%2018.4517%203.55598%2018.4517%204.53231V17.6795C18.4517%2017.778%2018.444%2017.8733%2018.4267%2017.9667C18.3941%2018.1811%2018.3231%2018.38%2018.215%2018.5592C17.9149%2019.0934%2017.3372%2019.4517%2016.6846%2019.4517H3.53487Z'%20fill='%233B5695'/%3e%3c/svg%3e",i0="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.3163%2019.4384C5.92462%2018.0052%207.34492%2017%209%2017H15C16.6551%2017%2018.0754%2018.0052%2018.6837%2019.4384M16%209.5C16%2011.7091%2014.2091%2013.5%2012%2013.5C9.79086%2013.5%208%2011.7091%208%209.5C8%207.29086%209.79086%205.5%2012%205.5C14.2091%205.5%2016%207.29086%2016%209.5ZM22%2012C22%2017.5228%2017.5228%2022%2012%2022C6.47715%2022%202%2017.5228%202%2012C2%206.47715%206.47715%202%2012%202C17.5228%202%2022%206.47715%2022%2012Z'%20stroke='%233B5695'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",c0="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%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.5%203.25C5.25736%203.25%204.25%204.25736%204.25%205.5H3.5H2.75C2.75%203.42893%204.42893%201.75%206.5%201.75H17.5C17.9142%201.75%2018.25%202.08579%2018.25%202.5V15.5C18.25%2015.9142%2017.9142%2016.25%2017.5%2016.25H6.5C5.26293%2016.25%204.25%2017.2576%204.25%2018.5C4.25%2018.9142%203.91421%2019.25%203.5%2019.25C3.08579%2019.25%202.75%2018.9142%202.75%2018.5V5.5C2.75%205.49993%202.75%205.5%203.5%205.5C4.25%205.5%204.25%205.49993%204.25%205.5V15.5017C4.87779%2015.0296%205.65755%2014.75%206.5%2014.75H16.75V3.25H6.5Z'%20fill='%233B5695'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.5%202.75C20.9142%202.75%2021.25%203.08579%2021.25%203.5V21.5C21.25%2021.9142%2020.9142%2022.25%2020.5%2022.25H6.5C4.42893%2022.25%202.75%2020.5711%202.75%2018.5C2.75%2016.4289%204.42893%2014.75%206.5%2014.75H17.4995C17.4996%2014.75%2017.5%2014.75%2017.5%2015.5C17.5%2016.25%2017.5001%2016.25%2017.5%2016.25H6.5C5.25736%2016.25%204.25%2017.2574%204.25%2018.5C4.25%2019.7426%205.25736%2020.75%206.5%2020.75H19.75V3.5C19.75%203.08579%2020.0858%202.75%2020.5%202.75ZM18.25%2015.5C18.25%2015.9142%2017.9142%2016.25%2017.5%2016.25V15.5L17.4995%2014.75C17.9137%2014.75%2018.25%2015.0858%2018.25%2015.5Z'%20fill='%233B5695'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.25%2018.5C6.25%2018.0858%206.58579%2017.75%207%2017.75H17C17.4142%2017.75%2017.75%2018.0858%2017.75%2018.5C17.75%2018.9142%2017.4142%2019.25%2017%2019.25H7C6.58579%2019.25%206.25%2018.9142%206.25%2018.5Z'%20fill='%233B5695'/%3e%3c/svg%3e",d0="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='M2.467%202.47236C2.75841%202.17799%203.23328%202.17559%203.52764%202.467L8.52765%207.41675C8.82201%207.70816%208.82441%208.18303%208.533%208.4774C8.24159%208.77176%207.76672%208.77416%207.47235%208.48275L2.47236%203.533C2.17799%203.24159%202.17559%202.76672%202.467%202.47236Z'%20fill='%233B5695'/%3e%3cpath%20d='M8.533%2015.4724C8.82441%2015.7667%208.82201%2016.2416%208.52765%2016.533L3.52765%2021.4828C3.23328%2021.7742%202.75841%2021.7718%202.467%2021.4774C2.17559%2021.183%202.17799%2020.7082%202.47236%2020.4167L7.47235%2015.467C7.76672%2015.1756%208.24159%2015.178%208.533%2015.4724Z'%20fill='%233B5695'/%3e%3cpath%20d='M15.52%2015.4697C15.8129%2015.1768%2016.2877%2015.1768%2016.5806%2015.4697L21.5304%2020.4194C21.8233%2020.7123%2021.8233%2021.1872%2021.5304%2021.4801C21.2375%2021.773%2020.7626%2021.773%2020.4697%2021.4801L15.52%2016.5303C15.2271%2016.2374%2015.2271%2015.7626%2015.52%2015.4697Z'%20fill='%233B5695'/%3e%3cpath%20d='M21.4801%202.46967C21.773%202.76256%2021.773%203.23744%2021.4801%203.53033L16.5303%208.48008C16.2374%208.77297%2015.7626%208.77297%2015.4697%208.48008C15.1768%208.18719%2015.1768%207.71231%2015.4697%207.41942L20.4194%202.46967C20.7123%202.17678%2021.1872%202.17678%2021.4801%202.46967Z'%20fill='%233B5695'/%3e%3cpath%20d='M15.75%203C15.75%202.58579%2016.0858%202.25%2016.5%202.25H21C21.4142%202.25%2021.75%202.58579%2021.75%203V7.5C21.75%207.91421%2021.4142%208.25%2021%208.25C20.5858%208.25%2020.25%207.91421%2020.25%207.5V3.75H16.5C16.0858%203.75%2015.75%203.41421%2015.75%203Z'%20fill='%233B5695'/%3e%3cpath%20d='M21%2015.75C21.4142%2015.75%2021.75%2016.0858%2021.75%2016.5V21C21.75%2021.4142%2021.4142%2021.75%2021%2021.75H16.5C16.0858%2021.75%2015.75%2021.4142%2015.75%2021C15.75%2020.5858%2016.0858%2020.25%2016.5%2020.25H20.25V16.5C20.25%2016.0858%2020.5858%2015.75%2021%2015.75Z'%20fill='%233B5695'/%3e%3cpath%20d='M3%2015.75C3.41421%2015.75%203.75%2016.0858%203.75%2016.5V20.25H7.5C7.91421%2020.25%208.25%2020.5858%208.25%2021C8.25%2021.4142%207.91421%2021.75%207.5%2021.75H3C2.58579%2021.75%202.25%2021.4142%202.25%2021V16.5C2.25%2016.0858%202.58579%2015.75%203%2015.75Z'%20fill='%233B5695'/%3e%3cpath%20d='M2.25%203C2.25%202.58579%202.58579%202.25%203%202.25H7.5C7.91421%202.25%208.25%202.58579%208.25%203C8.25%203.41421%207.91421%203.75%207.5%203.75H3.75V7.5C3.75%207.91421%203.41421%208.25%203%208.25C2.58579%208.25%202.25%207.91421%202.25%207.5V3Z'%20fill='%233B5695'/%3e%3c/svg%3e",u0="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='%233B5695'/%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='%233B5695'/%3e%3c/svg%3e",f0={class:"flex justify-between"},p0=t.createElementVNode("div",{class:"flex flex-row"},[t.createElementVNode("img",{src:r0,alt:"Ddict logo",class:"w-24"})],-1),m0={class:"flex"},h0=[t.createElementVNode("img",{src:i0,alt:"User",class:"w-6"},null,-1)],g0=[t.createElementVNode("img",{src:c0,alt:"Reader",class:"w-6"},null,-1)],C0=[t.createElementVNode("img",{src:d0,alt:"Full screen",class:"w-6"},null,-1)],b0=[t.createElementVNode("img",{src:u0,alt:"Setting",class:"w-6"},null,-1)],v0={__name:"Header",props:{headerSettings:{type:Object,required:!0,default:()=>({showAccount:!0,showReader:!0,showFullscreen:!0,showSettings:!0})}},emits:["settings","fullScreen","reader","account"],setup(e,{emit:o}){const n=o;return(l,a)=>(t.openBlock(),t.createElementBlock("div",f0,[p0,t.createElementVNode("div",m0,[e.headerSettings.showAccount?(t.openBlock(),t.createElementBlock("button",{key:0,class:"btn btn-ghost btn-circle btn-sm",onClick:a[0]||(a[0]=s=>n("account"))},h0)):t.createCommentVNode("",!0),e.headerSettings.showReader?(t.openBlock(),t.createElementBlock("button",{key:1,class:"btn btn-ghost btn-circle btn-sm",onClick:a[1]||(a[1]=s=>n("reader"))},g0)):t.createCommentVNode("",!0),e.headerSettings.showFullscreen?(t.openBlock(),t.createElementBlock("button",{key:2,class:"btn btn-ghost btn-circle btn-sm",onClick:a[2]||(a[2]=s=>n("fullScreen"))},C0)):t.createCommentVNode("",!0),e.headerSettings.showSettings?(t.openBlock(),t.createElementBlock("button",{key:3,class:"btn btn-ghost btn-circle btn-sm",onClick:a[3]||(a[3]=s=>n("settings"))},b0)):t.createCommentVNode("",!0)])]))}};function i2(e,o,n){let l=n.initialDeps??[],a;return()=>{var s,i,r,c;let d;n.key&&((s=n.debug)!=null&&s.call(n))&&(d=Date.now());const u=e();if(!(u.length!==l.length||u.some((h,b)=>l[b]!==h)))return a;l=u;let v;if(n.key&&((i=n.debug)!=null&&i.call(n))&&(v=Date.now()),a=o(...u),n.key&&((r=n.debug)!=null&&r.call(n))){const h=Math.round((Date.now()-d)*100)/100,b=Math.round((Date.now()-v)*100)/100,g=b/16,V=(x,C)=>{for(x=String(x);x.length<C;)x=" "+x;return x};console.info(`%c⏱ ${V(b,5)} /${V(h,5)} ms`,`
1
+ (function(Y,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(Y=typeof globalThis<"u"?globalThis:Y||self,t(Y.Popup={},Y.Vue))})(this,function(Y,t){"use strict";var O2=typeof document<"u"?document.currentScript:null;const N2=navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i),b2={isRTL:o0,setLocalStorage:l0,getLocalStorage:a0};function o0(e){return["ar","fa","iw","yi","ur","pa"].indexOf(e)>-1}function l0(e,o){localStorage.setItem(e,JSON.stringify(o))}function a0(e){return JSON.parse(localStorage.getItem(e))}const s0="data:image/svg+xml,%3csvg%20width='96'%20height='32'%20viewBox='0%200%2096%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M40.151%208.94498H35.7256V23.055H40.151C44.7473%2023.055%2047.826%2020.0825%2047.826%2015.9795C47.8267%2011.8093%2044.7678%208.94498%2040.151%208.94498ZM40.1312%2021.025H37.993V10.9974H40.1312C43.4217%2010.9974%2045.4972%2012.9846%2045.4972%2015.9795C45.4965%2018.9296%2043.4012%2021.025%2040.1312%2021.025Z'%20fill='%233B5695'/%3e%3cpath%20d='M54.5158%208.94498H50.0903V23.055H54.5158C59.1121%2023.055%2062.1908%2020.0825%2062.1908%2015.9795C62.1914%2011.8093%2059.1351%208.94498%2054.5158%208.94498ZM54.496%2021.025H52.3578V10.9974H54.496C57.789%2010.9974%2059.8619%2012.9846%2059.8619%2015.9795C59.8613%2018.9296%2057.766%2021.025%2054.496%2021.025Z'%20fill='%233B5695'/%3e%3cpath%20d='M66.7237%208.94498H64.4575V23.055H66.7237V8.94498Z'%20fill='%233B5695'/%3e%3cpath%20d='M76.4301%2010.7837C78.29%2010.7837%2079.7436%2011.6603%2080.7487%2013.2207L82.4589%2011.9591C81.2401%209.97057%2078.9957%208.70953%2076.409%208.70953C72.3898%208.64555%2068.9048%2011.9591%2068.9906%2016C68.9048%2020.0403%2072.3898%2023.3544%2076.409%2023.2905C79.0385%2023.2905%2081.2618%2022.0294%2082.4589%2020.0409L80.7487%2018.7793C79.7436%2020.3397%2078.29%2021.2163%2076.4301%2021.2163C73.544%2021.2163%2071.3418%2018.993%2071.3418%2016C71.3418%2013.007%2073.5433%2010.7837%2076.4301%2010.7837Z'%20fill='%233B5695'/%3e%3cpath%20d='M83.3135%208.94498V10.9757H88.0595V23.055H90.3256V10.9757H95.0934V8.94498H83.3135Z'%20fill='%233B5695'/%3e%3cpath%20d='M8.66351%204.7121H4.604V15.4427L6.87208%2013.3839V6.79143H8.64559C11.4639%206.79143%2013.2835%208.47857%2013.2835%2011.0877C13.2835%2013.6916%2011.421%2015.4427%208.64559%2015.4427H4.604V17.5016H8.66351C12.7531%2017.5016%2015.6098%2014.8644%2015.6098%2011.0877C15.6104%207.27575%2012.8196%204.7121%208.66351%204.7121Z'%20fill='%233B5695'/%3e%3cpath%20d='M26.2425%209.25528H21.5502L20.7537%2014.293L21.4523%2014.3308L21.4069%2014.7294C21.3916%2014.8656%2021.3289%2015.0448%2021.112%2015.1734C21.1017%2015.9399%2021.0845%2017.0493%2020.9706%2018.1766H26.5937V19.8586H21.4677C22.4133%2022.9424%2024.1254%2024.9648%2026.5611%2025.8669L27.1536%2026.0864L26.6795%2026.5048C26.4875%2026.6737%2026.2182%2027.0141%2026.0896%2027.2489L25.9258%2027.5438L25.6155%2027.4152C23.167%2026.4095%2021.4223%2024.4926%2020.2905%2021.563C19.3602%2024.3365%2017.5797%2026.2553%2014.8592%2027.428L14.5438%2027.5617L14.3775%2027.2642C14.2764%2027.08%2014.0294%2026.7876%2013.8151%2026.5989L13.3564%2026.1951L13.9239%2025.9655C16.4555%2024.9392%2018.064%2023.1414%2018.8228%2020.4837C19.6647%2019.8381%2020.2099%2018.8221%2020.2169%2017.6801V4.53231C20.2169%202.58349%2018.6334%201%2016.6846%201H3.53487C1.58349%201%200%202.58349%200%204.53231V17.6795C0%2019.6283%201.58349%2021.2143%203.53487%2021.2143H8.25528V27.2431C8.25528%2029.3135%209.93986%2031%2012.0096%2031H26.2431C28.3161%2031%2029.9974%2029.3129%2029.9974%2027.2431V13.0096C29.9974%2010.9392%2028.3154%209.25528%2026.2425%209.25528ZM3.53487%2019.4517C2.55662%2019.4517%201.762%2018.6603%201.762%2017.6788V4.53231C1.762%203.55662%202.55598%202.762%203.53487%202.762H16.6839C17.6571%202.762%2018.4517%203.55598%2018.4517%204.53231V17.6795C18.4517%2017.778%2018.444%2017.8733%2018.4267%2017.9667C18.3941%2018.1811%2018.3231%2018.38%2018.215%2018.5592C17.9149%2019.0934%2017.3372%2019.4517%2016.6846%2019.4517H3.53487Z'%20fill='%233B5695'/%3e%3c/svg%3e",r0="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.3163%2019.4384C5.92462%2018.0052%207.34492%2017%209%2017H15C16.6551%2017%2018.0754%2018.0052%2018.6837%2019.4384M16%209.5C16%2011.7091%2014.2091%2013.5%2012%2013.5C9.79086%2013.5%208%2011.7091%208%209.5C8%207.29086%209.79086%205.5%2012%205.5C14.2091%205.5%2016%207.29086%2016%209.5ZM22%2012C22%2017.5228%2017.5228%2022%2012%2022C6.47715%2022%202%2017.5228%202%2012C2%206.47715%206.47715%202%2012%202C17.5228%202%2022%206.47715%2022%2012Z'%20stroke='%233B5695'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",i0="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%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.5%203.25C5.25736%203.25%204.25%204.25736%204.25%205.5H3.5H2.75C2.75%203.42893%204.42893%201.75%206.5%201.75H17.5C17.9142%201.75%2018.25%202.08579%2018.25%202.5V15.5C18.25%2015.9142%2017.9142%2016.25%2017.5%2016.25H6.5C5.26293%2016.25%204.25%2017.2576%204.25%2018.5C4.25%2018.9142%203.91421%2019.25%203.5%2019.25C3.08579%2019.25%202.75%2018.9142%202.75%2018.5V5.5C2.75%205.49993%202.75%205.5%203.5%205.5C4.25%205.5%204.25%205.49993%204.25%205.5V15.5017C4.87779%2015.0296%205.65755%2014.75%206.5%2014.75H16.75V3.25H6.5Z'%20fill='%233B5695'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.5%202.75C20.9142%202.75%2021.25%203.08579%2021.25%203.5V21.5C21.25%2021.9142%2020.9142%2022.25%2020.5%2022.25H6.5C4.42893%2022.25%202.75%2020.5711%202.75%2018.5C2.75%2016.4289%204.42893%2014.75%206.5%2014.75H17.4995C17.4996%2014.75%2017.5%2014.75%2017.5%2015.5C17.5%2016.25%2017.5001%2016.25%2017.5%2016.25H6.5C5.25736%2016.25%204.25%2017.2574%204.25%2018.5C4.25%2019.7426%205.25736%2020.75%206.5%2020.75H19.75V3.5C19.75%203.08579%2020.0858%202.75%2020.5%202.75ZM18.25%2015.5C18.25%2015.9142%2017.9142%2016.25%2017.5%2016.25V15.5L17.4995%2014.75C17.9137%2014.75%2018.25%2015.0858%2018.25%2015.5Z'%20fill='%233B5695'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.25%2018.5C6.25%2018.0858%206.58579%2017.75%207%2017.75H17C17.4142%2017.75%2017.75%2018.0858%2017.75%2018.5C17.75%2018.9142%2017.4142%2019.25%2017%2019.25H7C6.58579%2019.25%206.25%2018.9142%206.25%2018.5Z'%20fill='%233B5695'/%3e%3c/svg%3e",c0="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='M2.467%202.47236C2.75841%202.17799%203.23328%202.17559%203.52764%202.467L8.52765%207.41675C8.82201%207.70816%208.82441%208.18303%208.533%208.4774C8.24159%208.77176%207.76672%208.77416%207.47235%208.48275L2.47236%203.533C2.17799%203.24159%202.17559%202.76672%202.467%202.47236Z'%20fill='%233B5695'/%3e%3cpath%20d='M8.533%2015.4724C8.82441%2015.7667%208.82201%2016.2416%208.52765%2016.533L3.52765%2021.4828C3.23328%2021.7742%202.75841%2021.7718%202.467%2021.4774C2.17559%2021.183%202.17799%2020.7082%202.47236%2020.4167L7.47235%2015.467C7.76672%2015.1756%208.24159%2015.178%208.533%2015.4724Z'%20fill='%233B5695'/%3e%3cpath%20d='M15.52%2015.4697C15.8129%2015.1768%2016.2877%2015.1768%2016.5806%2015.4697L21.5304%2020.4194C21.8233%2020.7123%2021.8233%2021.1872%2021.5304%2021.4801C21.2375%2021.773%2020.7626%2021.773%2020.4697%2021.4801L15.52%2016.5303C15.2271%2016.2374%2015.2271%2015.7626%2015.52%2015.4697Z'%20fill='%233B5695'/%3e%3cpath%20d='M21.4801%202.46967C21.773%202.76256%2021.773%203.23744%2021.4801%203.53033L16.5303%208.48008C16.2374%208.77297%2015.7626%208.77297%2015.4697%208.48008C15.1768%208.18719%2015.1768%207.71231%2015.4697%207.41942L20.4194%202.46967C20.7123%202.17678%2021.1872%202.17678%2021.4801%202.46967Z'%20fill='%233B5695'/%3e%3cpath%20d='M15.75%203C15.75%202.58579%2016.0858%202.25%2016.5%202.25H21C21.4142%202.25%2021.75%202.58579%2021.75%203V7.5C21.75%207.91421%2021.4142%208.25%2021%208.25C20.5858%208.25%2020.25%207.91421%2020.25%207.5V3.75H16.5C16.0858%203.75%2015.75%203.41421%2015.75%203Z'%20fill='%233B5695'/%3e%3cpath%20d='M21%2015.75C21.4142%2015.75%2021.75%2016.0858%2021.75%2016.5V21C21.75%2021.4142%2021.4142%2021.75%2021%2021.75H16.5C16.0858%2021.75%2015.75%2021.4142%2015.75%2021C15.75%2020.5858%2016.0858%2020.25%2016.5%2020.25H20.25V16.5C20.25%2016.0858%2020.5858%2015.75%2021%2015.75Z'%20fill='%233B5695'/%3e%3cpath%20d='M3%2015.75C3.41421%2015.75%203.75%2016.0858%203.75%2016.5V20.25H7.5C7.91421%2020.25%208.25%2020.5858%208.25%2021C8.25%2021.4142%207.91421%2021.75%207.5%2021.75H3C2.58579%2021.75%202.25%2021.4142%202.25%2021V16.5C2.25%2016.0858%202.58579%2015.75%203%2015.75Z'%20fill='%233B5695'/%3e%3cpath%20d='M2.25%203C2.25%202.58579%202.58579%202.25%203%202.25H7.5C7.91421%202.25%208.25%202.58579%208.25%203C8.25%203.41421%207.91421%203.75%207.5%203.75H3.75V7.5C3.75%207.91421%203.41421%208.25%203%208.25C2.58579%208.25%202.25%207.91421%202.25%207.5V3Z'%20fill='%233B5695'/%3e%3c/svg%3e",d0="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='%233B5695'/%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='%233B5695'/%3e%3c/svg%3e",u0={class:"flex justify-between"},f0=t.createElementVNode("div",{class:"flex flex-row"},[t.createElementVNode("img",{src:s0,alt:"Ddict logo",class:"w-24"})],-1),p0={class:"flex"},m0=[t.createElementVNode("img",{src:r0,alt:"User",class:"w-6"},null,-1)],h0=[t.createElementVNode("img",{src:i0,alt:"Reader",class:"w-6"},null,-1)],g0=[t.createElementVNode("img",{src:c0,alt:"Full screen",class:"w-6"},null,-1)],C0=[t.createElementVNode("img",{src:d0,alt:"Setting",class:"w-6"},null,-1)],b0={__name:"Header",props:{headerSettings:{type:Object,required:!0,default:()=>({showAccount:!0,showReader:!0,showFullscreen:!0,showSettings:!0})}},emits:["settings","fullScreen","reader","account"],setup(e,{emit:o}){const n=o;return(l,a)=>(t.openBlock(),t.createElementBlock("div",u0,[f0,t.createElementVNode("div",p0,[e.headerSettings.showAccount?(t.openBlock(),t.createElementBlock("button",{key:0,class:"btn btn-ghost btn-circle btn-sm",onClick:a[0]||(a[0]=s=>n("account"))},m0)):t.createCommentVNode("",!0),e.headerSettings.showReader?(t.openBlock(),t.createElementBlock("button",{key:1,class:"btn btn-ghost btn-circle btn-sm",onClick:a[1]||(a[1]=s=>n("reader"))},h0)):t.createCommentVNode("",!0),e.headerSettings.showFullscreen?(t.openBlock(),t.createElementBlock("button",{key:2,class:"btn btn-ghost btn-circle btn-sm",onClick:a[2]||(a[2]=s=>n("fullScreen"))},g0)):t.createCommentVNode("",!0),e.headerSettings.showSettings?(t.openBlock(),t.createElementBlock("button",{key:3,class:"btn btn-ghost btn-circle btn-sm",onClick:a[3]||(a[3]=s=>n("settings"))},C0)):t.createCommentVNode("",!0)])]))}};function i2(e,o,n){let l=n.initialDeps??[],a;return()=>{var s,i,r,c;let d;n.key&&((s=n.debug)!=null&&s.call(n))&&(d=Date.now());const u=e();if(!(u.length!==l.length||u.some((g,b)=>l[b]!==g)))return a;l=u;let v;if(n.key&&((i=n.debug)!=null&&i.call(n))&&(v=Date.now()),a=o(...u),n.key&&((r=n.debug)!=null&&r.call(n))){const g=Math.round((Date.now()-d)*100)/100,b=Math.round((Date.now()-v)*100)/100,h=b/16,T=(x,C)=>{for(x=String(x);x.length<C;)x=" "+x;return x};console.info(`%c⏱ ${T(b,5)} /${T(g,5)} ms`,`
2
2
  font-size: .6rem;
3
3
  font-weight: bold;
4
- color: hsl(${Math.max(0,Math.min(120-120*g,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(c=n==null?void 0:n.onChange)==null||c.call(n,a),a}}function F2(e,o){if(e===void 0)throw new Error("Unexpected undefined");return e}const x0=(e,o)=>Math.abs(e-o)<1,w0=(e,o,n)=>{let l;return function(...a){e.clearTimeout(l),l=e.setTimeout(()=>o.apply(this,a),n)}},y0=e=>e,E0=e=>{const o=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),l=[];for(let a=o;a<=n;a++)l.push(a);return l},_0=(e,o)=>{const n=e.scrollElement;if(!n)return;const l=e.targetWindow;if(!l)return;const a=i=>{const{width:r,height:c}=i;o({width:Math.round(r),height:Math.round(c)})};if(a(n.getBoundingClientRect()),!l.ResizeObserver)return()=>{};const s=new l.ResizeObserver(i=>{const r=i[0];if(r!=null&&r.borderBoxSize){const c=r.borderBoxSize[0];if(c){a({width:c.inlineSize,height:c.blockSize});return}}a(n.getBoundingClientRect())});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},ne={passive:!0},k0=typeof window>"u"?!0:"onscrollend"in window,S0=(e,o)=>{const n=e.scrollElement;if(!n)return;const l=e.targetWindow;if(!l)return;let a=0;const s=k0?()=>{}:w0(l,()=>{o(a,!1)},e.options.isScrollingResetDelay),i=d=>()=>{a=n[e.options.horizontal?"scrollLeft":"scrollTop"],s(),o(a,d)},r=i(!0),c=i(!1);return c(),n.addEventListener("scroll",r,ne),n.addEventListener("scrollend",c,ne),()=>{n.removeEventListener("scroll",r),n.removeEventListener("scrollend",c)}},L0=(e,o,n)=>{if(o!=null&&o.borderBoxSize){const l=o.borderBoxSize[0];if(l)return Math.round(l[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},V0=(e,{adjustments:o=0,behavior:n},l)=>{var a,s;const i=e+o;(s=(a=l.scrollElement)==null?void 0:a.scrollTo)==null||s.call(a,{[l.options.horizontal?"left":"top"]:i,behavior:n})};class T0{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const l=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(a=>{a.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var a;return(a=l())==null?void 0:a.disconnect()},observe:a=>{var s;return(s=l())==null?void 0:s.observe(a,{box:"border-box"})},unobserve:a=>{var s;return(s=l())==null?void 0:s.unobserve(a)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([l,a])=>{typeof a>"u"&&delete n[l]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:y0,rangeExtractor:E0,onChange:()=>{},measureElement:L0,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,...n}},this.notify=(n,l)=>{var a,s;const{startIndex:i,endIndex:r}=this.range??{startIndex:void 0,endIndex:void 0},c=this.calculateRange();(n||i!==(c==null?void 0:c.startIndex)||r!==(c==null?void 0:c.endIndex))&&((s=(a=this.options).onChange)==null||s.call(a,this,l))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const l=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==l){if(this.cleanup(),!l){this.notify(!1,!1);return}this.scrollElement=l,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a;const i=this.isScrolling;this.isScrolling=s,this.notify(i!==s,s)}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,l)=>{const a=new Map,s=new Map;for(let i=l-1;i>=0;i--){const r=n[i];if(a.has(r.lane))continue;const c=s.get(r.lane);if(c==null||r.end>c.end?s.set(r.lane,r):r.end<c.end&&a.set(r.lane,!0),a.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((i,r)=>i.end===r.end?i.index-r.index:i.end-r.end)[0]:void 0},this.getMeasurementOptions=i2(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,l,a,s,i)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:l,scrollMargin:a,getItemKey:s,enabled:i}),{key:!1}),this.getMeasurements=i2(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:l,scrollMargin:a,getItemKey:s,enabled:i},r)=>{var c;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(f=>{this.itemSizeCache.set(f.key,f.size)}));const d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,d);for(let f=d;f<n;f++){let v=(c=this.measurementsCache[f])==null?void 0:c.measureElement;v||(v=S=>{const w=s(f),T=this.elementsCache.get(w);if(!S){T&&(this.observer.unobserve(T),this.elementsCache.delete(w));return}T!==S&&(T&&this.observer.unobserve(T),this.observer.observe(S),this.elementsCache.set(w,S)),S.isConnected&&this.resizeItem(f,this.options.measureElement(S,void 0,this))});const h=s(f),b=this.options.lanes===1?u[f-1]:this.getFurthestMeasurement(u,f),g=b?b.end+this.options.gap:l+a,V=r.get(h),x=typeof V=="number"?V:this.options.estimateSize(f),C=g+x,_=b?b.lane:f%this.options.lanes;u[f]={index:f,start:g,size:x,end:C,key:h,lane:_,measureElement:v}}return this.measurementsCache=u,u},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=i2(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,l,a)=>this.range=n.length>0&&l>0?B0({measurements:n,outerSize:l,scrollOffset:a}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=i2(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,l,a,s)=>l===null?[]:n({startIndex:l.startIndex,endIndex:l.endIndex,overscan:a,count:s}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=n=>{const l=this.options.indexAttribute,a=n.getAttribute(l);return a?parseInt(a,10):(console.warn(`Missing attribute name '${l}={index}' on measured element.`),-1)},this._measureElement=(n,l)=>{const a=this.indexFromElement(n),s=this.getMeasurements()[a];if(!s||!n.isConnected){this.elementsCache.forEach((r,c)=>{r===n&&(this.observer.unobserve(n),this.elementsCache.delete(c))});return}const i=this.elementsCache.get(s.key);i!==n&&(i&&this.observer.unobserve(i),this.observer.observe(n),this.elementsCache.set(s.key,n)),this.resizeItem(a,this.options.measureElement(n,l,this))},this.resizeItem=(n,l)=>{const a=this.getMeasurements()[n];if(!a)return;const s=this.itemSizeCache.get(a.key)??a.size,i=l-s;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,i,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",i),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,l)),this.notify(!0,!1))},this.measureElement=n=>{n&&this._measureElement(n,void 0)},this.getVirtualItems=i2(()=>[this.getIndexes(),this.getMeasurements()],(n,l)=>{const a=[];for(let s=0,i=n.length;s<i;s++){const r=n[s],c=l[r];a.push(c)}return a},{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const l=this.getMeasurements();if(l.length!==0)return F2(l[oe(0,l.length-1,a=>F2(l[a]).start,n)])},this.getOffsetForAlignment=(n,l)=>{const a=this.getSize(),s=this.getScrollOffset();l==="auto"&&(n<=s?l="start":n>=s+a?l="end":l="start"),l==="start"?n=n:l==="end"?n=n-a:l==="center"&&(n=n-a/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",c=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-a;return Math.max(Math.min(c,n),0)},this.getOffsetForIndex=(n,l="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const a=this.getMeasurements()[n];if(!a)return;const s=this.getSize(),i=this.getScrollOffset();if(l==="auto")if(a.end>=i+s-this.options.scrollPaddingEnd)l="end";else if(a.start<=i+this.options.scrollPaddingStart)l="start";else return[i,l];const r=l==="end"?a.end+this.options.scrollPaddingEnd:a.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(r,l),l]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:l="start",behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,l),{adjustments:void 0,behavior:a})},this.scrollToIndex=(n,{align:l="auto",behavior:a}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const s=this.getOffsetForIndex(n,l);if(!s)return;const[i,r]=s;this._scrollToOffset(i,{adjustments:void 0,behavior:a}),a!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[d]=F2(this.getOffsetForIndex(n,r));x0(d,this.getScrollOffset())||this.scrollToIndex(n,{align:r,behavior:a})}else this.scrollToIndex(n,{align:r,behavior:a})}))},this.scrollBy=(n,{behavior:l}={})=>{this.cancelScrollToIndex(),l==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:l})},this.getTotalSize=()=>{var n;const l=this.getMeasurements();let a;return l.length===0?a=this.options.paddingStart:a=this.options.lanes===1?((n=l[l.length-1])==null?void 0:n.end)??0:Math.max(...l.slice(-this.options.lanes).map(s=>s.end)),a-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(n,{adjustments:l,behavior:a})=>{this.options.scrollToFn(n,{behavior:a,adjustments:l},this)},this.measure=()=>{var n,l;this.itemSizeCache=new Map,(l=(n=this.options).onChange)==null||l.call(n,this,!1)},this.setOptions(o)}}const oe=(e,o,n,l)=>{for(;e<=o;){const a=(e+o)/2|0,s=n(a);if(s<l)e=a+1;else if(s>l)o=a-1;else return a}return e>0?e-1:0};function B0({measurements:e,outerSize:o,scrollOffset:n}){const l=e.length-1,s=oe(0,l,r=>e[r].start,n);let i=s;for(;i<l&&e[i].end<n+o;)i++;return{startIndex:s,endIndex:i}}function $0(e){const o=new T0(t.unref(e)),n=t.shallowRef(o),l=o._didMount();return t.watch(()=>t.unref(e).getScrollElement(),a=>{a&&o._willUpdate()},{immediate:!0}),t.watch(()=>t.unref(e),a=>{o.setOptions({...a,onChange:(s,i)=>{var r;t.triggerRef(n),(r=a.onChange)==null||r.call(a,s,i)}}),o._willUpdate(),t.triggerRef(n)},{immediate:!0}),t.onScopeDispose(l),n}function I0(e){return $0(t.computed(()=>({observeElementRect:_0,observeElementOffset:S0,scrollToFn:V0,...t.unref(e)})))}function M0(e,o,n){let l=t.ref(n==null?void 0:n.value),a=t.computed(()=>e.value!==void 0);return[t.computed(()=>a.value?e.value:l.value),function(s){return a.value||(l.value=s),o==null?void 0:o(s)}]}function O0(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(o=>setTimeout(()=>{throw o}))}function v2(){let e=[],o={addEventListener(n,l,a,s){return n.addEventListener(l,a,s),o.add(()=>n.removeEventListener(l,a,s))},requestAnimationFrame(...n){let l=requestAnimationFrame(...n);o.add(()=>cancelAnimationFrame(l))},nextFrame(...n){o.requestAnimationFrame(()=>{o.requestAnimationFrame(...n)})},setTimeout(...n){let l=setTimeout(...n);o.add(()=>clearTimeout(l))},microTask(...n){let l={current:!0};return O0(()=>{l.current&&n[0]()}),o.add(()=>{l.current=!1})},style(n,l,a){let s=n.style.getPropertyValue(l);return Object.assign(n.style,{[l]:a}),this.add(()=>{Object.assign(n.style,{[l]:s})})},group(n){let l=v2();return n(l),this.add(()=>l.dispose())},add(n){return e.push(n),()=>{let l=e.indexOf(n);if(l>=0)for(let a of e.splice(l,1))a()}},dispose(){for(let n of e.splice(0))n()}};return o}function N0(){let e=v2();return t.onUnmounted(()=>e.dispose()),e}function F0(){let e=N0();return o=>{e.dispose(),e.nextFrame(o)}}let A0=Symbol("headlessui.useid"),R0=0;function c2(){return t.inject(A0,()=>`${++R0}`)()}function $(e){var o;if(e==null||e.value==null)return null;let n=(o=e.value.$el)!=null?o:e.value;return n instanceof Node?n:null}function U(e,o,...n){if(e in o){let a=o[e];return typeof a=="function"?a(...n):a}let l=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(o).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,U),l}var D0=Object.defineProperty,H0=(e,o,n)=>o in e?D0(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,le=(e,o,n)=>(H0(e,typeof o!="symbol"?o+"":o,n),n);let P0=class{constructor(){le(this,"current",this.detect()),le(this,"currentId",0)}set(o){this.current!==o&&(this.currentId=0,this.current=o)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},A2=new P0;function R2(e){if(A2.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let o=$(e);if(o)return o.ownerDocument}return document}let ae=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Z0=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Z0||{}),j0=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(j0||{}),z0=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(z0||{}),se=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(se||{});function U0(e,o=0){var n;return e===((n=R2(e))==null?void 0:n.body)?!1:U(o,{0(){return e.matches(ae)},1(){let l=e;for(;l!==null;){if(l.matches(ae))return!0;l=l.parentElement}return!1}})}var W0=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(W0||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function q0(e,o=n=>n){return e.slice().sort((n,l)=>{let a=o(n),s=o(l);if(a===null||s===null)return 0;let i=a.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function G0(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function J0(){return/Android/gi.test(window.navigator.userAgent)}function re(){return G0()||J0()}function x2(e,o,n){A2.isServer||t.watchEffect(l=>{document.addEventListener(e,o,n),l(()=>document.removeEventListener(e,o,n))})}function Y0(e,o,n){A2.isServer||t.watchEffect(l=>{window.addEventListener(e,o,n),l(()=>window.removeEventListener(e,o,n))})}function Q0(e,o,n=t.computed(()=>!0)){function l(s,i){if(!n.value||s.defaultPrevented)return;let r=i(s);if(r===null||!r.getRootNode().contains(r))return;let c=function d(u){return typeof u=="function"?d(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let d of c){if(d===null)continue;let u=d instanceof HTMLElement?d:$(d);if(u!=null&&u.contains(r)||s.composed&&s.composedPath().includes(u))return}return!U0(r,se.Loose)&&r.tabIndex!==-1&&s.preventDefault(),o(s,r)}let a=t.ref(null);x2("pointerdown",s=>{var i,r;n.value&&(a.value=((r=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:r[0])||s.target)},!0),x2("mousedown",s=>{var i,r;n.value&&(a.value=((r=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:r[0])||s.target)},!0),x2("click",s=>{re()||a.value&&(l(s,()=>a.value),a.value=null)},!0),x2("touchend",s=>l(s,()=>s.target instanceof HTMLElement?s.target:null),!0),Y0("blur",s=>l(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function ie(e,o){if(e)return e;let n=o??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function X0(e,o){let n=t.ref(ie(e.value.type,e.value.as));return t.onMounted(()=>{n.value=ie(e.value.type,e.value.as)}),t.watchEffect(()=>{var l;n.value||$(o)&&$(o)instanceof HTMLButtonElement&&!((l=$(o))!=null&&l.hasAttribute("type"))&&(n.value="button")}),n}function ce(e){return[e.screenX,e.screenY]}function K0(){let e=t.ref([-1,-1]);return{wasMoved(o){let n=ce(o);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(o){e.value=ce(o)}}}function et({container:e,accept:o,walk:n,enabled:l}){t.watchEffect(()=>{let a=e.value;if(!a||l!==void 0&&!l.value)return;let s=R2(e);if(!s)return;let i=Object.assign(c=>o(c),{acceptNode:o}),r=s.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,i,!1);for(;r.nextNode();)n(r.currentNode)})}var d2=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(d2||{}),tt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(tt||{});function Q({visible:e=!0,features:o=0,ourProps:n,theirProps:l,...a}){var s;let i=ue(l,n),r=Object.assign(a,{props:i});if(e||o&2&&i.static)return D2(r);if(o&1){let c=(s=i.unmount)==null||s?0:1;return U(c,{0(){return null},1(){return D2({...a,props:{...i,hidden:!0,style:{display:"none"}}})}})}return D2(r)}function D2({props:e,attrs:o,slots:n,slot:l,name:a}){var s,i;let{as:r,...c}=w2(e,["unmount","static"]),d=(s=n.default)==null?void 0:s.call(n,l),u={};if(l){let f=!1,v=[];for(let[h,b]of Object.entries(l))typeof b=="boolean"&&(f=!0),b===!0&&v.push(h);f&&(u["data-headlessui-state"]=v.join(" "))}if(r==="template"){if(d=de(d??[]),Object.keys(c).length>0||Object.keys(o).length>0){let[f,...v]=d??[];if(!ot(f)||v.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${a} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(o)).map(g=>g.trim()).filter((g,V,x)=>x.indexOf(g)===V).sort((g,V)=>g.localeCompare(V)).map(g=>` - ${g}`).join(`
5
- `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(g=>` - ${g}`).join(`
4
+ color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(c=n==null?void 0:n.onChange)==null||c.call(n,a),a}}function F2(e,o){if(e===void 0)throw new Error("Unexpected undefined");return e}const v0=(e,o)=>Math.abs(e-o)<1,x0=(e,o,n)=>{let l;return function(...a){e.clearTimeout(l),l=e.setTimeout(()=>o.apply(this,a),n)}},w0=e=>e,y0=e=>{const o=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),l=[];for(let a=o;a<=n;a++)l.push(a);return l},E0=(e,o)=>{const n=e.scrollElement;if(!n)return;const l=e.targetWindow;if(!l)return;const a=i=>{const{width:r,height:c}=i;o({width:Math.round(r),height:Math.round(c)})};if(a(n.getBoundingClientRect()),!l.ResizeObserver)return()=>{};const s=new l.ResizeObserver(i=>{const r=i[0];if(r!=null&&r.borderBoxSize){const c=r.borderBoxSize[0];if(c){a({width:c.inlineSize,height:c.blockSize});return}}a(n.getBoundingClientRect())});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},ne={passive:!0},_0=typeof window>"u"?!0:"onscrollend"in window,k0=(e,o)=>{const n=e.scrollElement;if(!n)return;const l=e.targetWindow;if(!l)return;let a=0;const s=_0?()=>{}:x0(l,()=>{o(a,!1)},e.options.isScrollingResetDelay),i=d=>()=>{a=n[e.options.horizontal?"scrollLeft":"scrollTop"],s(),o(a,d)},r=i(!0),c=i(!1);return c(),n.addEventListener("scroll",r,ne),n.addEventListener("scrollend",c,ne),()=>{n.removeEventListener("scroll",r),n.removeEventListener("scrollend",c)}},L0=(e,o,n)=>{if(o!=null&&o.borderBoxSize){const l=o.borderBoxSize[0];if(l)return Math.round(l[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},S0=(e,{adjustments:o=0,behavior:n},l)=>{var a,s;const i=e+o;(s=(a=l.scrollElement)==null?void 0:a.scrollTo)==null||s.call(a,{[l.options.horizontal?"left":"top"]:i,behavior:n})};class T0{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const l=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(a=>{a.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var a;return(a=l())==null?void 0:a.disconnect()},observe:a=>{var s;return(s=l())==null?void 0:s.observe(a,{box:"border-box"})},unobserve:a=>{var s;return(s=l())==null?void 0:s.unobserve(a)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([l,a])=>{typeof a>"u"&&delete n[l]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:w0,rangeExtractor:y0,onChange:()=>{},measureElement:L0,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,...n}},this.notify=(n,l)=>{var a,s;const{startIndex:i,endIndex:r}=this.range??{startIndex:void 0,endIndex:void 0},c=this.calculateRange();(n||i!==(c==null?void 0:c.startIndex)||r!==(c==null?void 0:c.endIndex))&&((s=(a=this.options).onChange)==null||s.call(a,this,l))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const l=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==l){if(this.cleanup(),!l){this.notify(!1,!1);return}this.scrollElement=l,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a;const i=this.isScrolling;this.isScrolling=s,this.notify(i!==s,s)}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,l)=>{const a=new Map,s=new Map;for(let i=l-1;i>=0;i--){const r=n[i];if(a.has(r.lane))continue;const c=s.get(r.lane);if(c==null||r.end>c.end?s.set(r.lane,r):r.end<c.end&&a.set(r.lane,!0),a.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((i,r)=>i.end===r.end?i.index-r.index:i.end-r.end)[0]:void 0},this.getMeasurementOptions=i2(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,l,a,s,i)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:l,scrollMargin:a,getItemKey:s,enabled:i}),{key:!1}),this.getMeasurements=i2(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:l,scrollMargin:a,getItemKey:s,enabled:i},r)=>{var c;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(f=>{this.itemSizeCache.set(f.key,f.size)}));const d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,d);for(let f=d;f<n;f++){let v=(c=this.measurementsCache[f])==null?void 0:c.measureElement;v||(v=L=>{const w=s(f),V=this.elementsCache.get(w);if(!L){V&&(this.observer.unobserve(V),this.elementsCache.delete(w));return}V!==L&&(V&&this.observer.unobserve(V),this.observer.observe(L),this.elementsCache.set(w,L)),L.isConnected&&this.resizeItem(f,this.options.measureElement(L,void 0,this))});const g=s(f),b=this.options.lanes===1?u[f-1]:this.getFurthestMeasurement(u,f),h=b?b.end+this.options.gap:l+a,T=r.get(g),x=typeof T=="number"?T:this.options.estimateSize(f),C=h+x,_=b?b.lane:f%this.options.lanes;u[f]={index:f,start:h,size:x,end:C,key:g,lane:_,measureElement:v}}return this.measurementsCache=u,u},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=i2(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,l,a)=>this.range=n.length>0&&l>0?V0({measurements:n,outerSize:l,scrollOffset:a}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=i2(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,l,a,s)=>l===null?[]:n({startIndex:l.startIndex,endIndex:l.endIndex,overscan:a,count:s}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=n=>{const l=this.options.indexAttribute,a=n.getAttribute(l);return a?parseInt(a,10):(console.warn(`Missing attribute name '${l}={index}' on measured element.`),-1)},this._measureElement=(n,l)=>{const a=this.indexFromElement(n),s=this.getMeasurements()[a];if(!s||!n.isConnected){this.elementsCache.forEach((r,c)=>{r===n&&(this.observer.unobserve(n),this.elementsCache.delete(c))});return}const i=this.elementsCache.get(s.key);i!==n&&(i&&this.observer.unobserve(i),this.observer.observe(n),this.elementsCache.set(s.key,n)),this.resizeItem(a,this.options.measureElement(n,l,this))},this.resizeItem=(n,l)=>{const a=this.getMeasurements()[n];if(!a)return;const s=this.itemSizeCache.get(a.key)??a.size,i=l-s;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,i,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",i),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,l)),this.notify(!0,!1))},this.measureElement=n=>{n&&this._measureElement(n,void 0)},this.getVirtualItems=i2(()=>[this.getIndexes(),this.getMeasurements()],(n,l)=>{const a=[];for(let s=0,i=n.length;s<i;s++){const r=n[s],c=l[r];a.push(c)}return a},{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const l=this.getMeasurements();if(l.length!==0)return F2(l[oe(0,l.length-1,a=>F2(l[a]).start,n)])},this.getOffsetForAlignment=(n,l)=>{const a=this.getSize(),s=this.getScrollOffset();l==="auto"&&(n<=s?l="start":n>=s+a?l="end":l="start"),l==="start"?n=n:l==="end"?n=n-a:l==="center"&&(n=n-a/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",c=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-a;return Math.max(Math.min(c,n),0)},this.getOffsetForIndex=(n,l="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const a=this.getMeasurements()[n];if(!a)return;const s=this.getSize(),i=this.getScrollOffset();if(l==="auto")if(a.end>=i+s-this.options.scrollPaddingEnd)l="end";else if(a.start<=i+this.options.scrollPaddingStart)l="start";else return[i,l];const r=l==="end"?a.end+this.options.scrollPaddingEnd:a.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(r,l),l]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:l="start",behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,l),{adjustments:void 0,behavior:a})},this.scrollToIndex=(n,{align:l="auto",behavior:a}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const s=this.getOffsetForIndex(n,l);if(!s)return;const[i,r]=s;this._scrollToOffset(i,{adjustments:void 0,behavior:a}),a!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[d]=F2(this.getOffsetForIndex(n,r));v0(d,this.getScrollOffset())||this.scrollToIndex(n,{align:r,behavior:a})}else this.scrollToIndex(n,{align:r,behavior:a})}))},this.scrollBy=(n,{behavior:l}={})=>{this.cancelScrollToIndex(),l==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:l})},this.getTotalSize=()=>{var n;const l=this.getMeasurements();let a;return l.length===0?a=this.options.paddingStart:a=this.options.lanes===1?((n=l[l.length-1])==null?void 0:n.end)??0:Math.max(...l.slice(-this.options.lanes).map(s=>s.end)),a-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(n,{adjustments:l,behavior:a})=>{this.options.scrollToFn(n,{behavior:a,adjustments:l},this)},this.measure=()=>{var n,l;this.itemSizeCache=new Map,(l=(n=this.options).onChange)==null||l.call(n,this,!1)},this.setOptions(o)}}const oe=(e,o,n,l)=>{for(;e<=o;){const a=(e+o)/2|0,s=n(a);if(s<l)e=a+1;else if(s>l)o=a-1;else return a}return e>0?e-1:0};function V0({measurements:e,outerSize:o,scrollOffset:n}){const l=e.length-1,s=oe(0,l,r=>e[r].start,n);let i=s;for(;i<l&&e[i].end<n+o;)i++;return{startIndex:s,endIndex:i}}function B0(e){const o=new T0(t.unref(e)),n=t.shallowRef(o),l=o._didMount();return t.watch(()=>t.unref(e).getScrollElement(),a=>{a&&o._willUpdate()},{immediate:!0}),t.watch(()=>t.unref(e),a=>{o.setOptions({...a,onChange:(s,i)=>{var r;t.triggerRef(n),(r=a.onChange)==null||r.call(a,s,i)}}),o._willUpdate(),t.triggerRef(n)},{immediate:!0}),t.onScopeDispose(l),n}function $0(e){return B0(t.computed(()=>({observeElementRect:E0,observeElementOffset:k0,scrollToFn:S0,...t.unref(e)})))}function I0(e,o,n){let l=t.ref(n==null?void 0:n.value),a=t.computed(()=>e.value!==void 0);return[t.computed(()=>a.value?e.value:l.value),function(s){return a.value||(l.value=s),o==null?void 0:o(s)}]}function M0(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(o=>setTimeout(()=>{throw o}))}function v2(){let e=[],o={addEventListener(n,l,a,s){return n.addEventListener(l,a,s),o.add(()=>n.removeEventListener(l,a,s))},requestAnimationFrame(...n){let l=requestAnimationFrame(...n);o.add(()=>cancelAnimationFrame(l))},nextFrame(...n){o.requestAnimationFrame(()=>{o.requestAnimationFrame(...n)})},setTimeout(...n){let l=setTimeout(...n);o.add(()=>clearTimeout(l))},microTask(...n){let l={current:!0};return M0(()=>{l.current&&n[0]()}),o.add(()=>{l.current=!1})},style(n,l,a){let s=n.style.getPropertyValue(l);return Object.assign(n.style,{[l]:a}),this.add(()=>{Object.assign(n.style,{[l]:s})})},group(n){let l=v2();return n(l),this.add(()=>l.dispose())},add(n){return e.push(n),()=>{let l=e.indexOf(n);if(l>=0)for(let a of e.splice(l,1))a()}},dispose(){for(let n of e.splice(0))n()}};return o}function O0(){let e=v2();return t.onUnmounted(()=>e.dispose()),e}function N0(){let e=O0();return o=>{e.dispose(),e.nextFrame(o)}}let F0=Symbol("headlessui.useid"),A0=0;function c2(){return t.inject(F0,()=>`${++A0}`)()}function $(e){var o;if(e==null||e.value==null)return null;let n=(o=e.value.$el)!=null?o:e.value;return n instanceof Node?n:null}function U(e,o,...n){if(e in o){let a=o[e];return typeof a=="function"?a(...n):a}let l=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(o).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,U),l}var R0=Object.defineProperty,D0=(e,o,n)=>o in e?R0(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,le=(e,o,n)=>(D0(e,typeof o!="symbol"?o+"":o,n),n);let H0=class{constructor(){le(this,"current",this.detect()),le(this,"currentId",0)}set(o){this.current!==o&&(this.currentId=0,this.current=o)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},A2=new H0;function R2(e){if(A2.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let o=$(e);if(o)return o.ownerDocument}return document}let ae=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var P0=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(P0||{}),Z0=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Z0||{}),j0=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(j0||{}),se=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(se||{});function z0(e,o=0){var n;return e===((n=R2(e))==null?void 0:n.body)?!1:U(o,{0(){return e.matches(ae)},1(){let l=e;for(;l!==null;){if(l.matches(ae))return!0;l=l.parentElement}return!1}})}var U0=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(U0||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function W0(e,o=n=>n){return e.slice().sort((n,l)=>{let a=o(n),s=o(l);if(a===null||s===null)return 0;let i=a.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function q0(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function G0(){return/Android/gi.test(window.navigator.userAgent)}function re(){return q0()||G0()}function x2(e,o,n){A2.isServer||t.watchEffect(l=>{document.addEventListener(e,o,n),l(()=>document.removeEventListener(e,o,n))})}function J0(e,o,n){A2.isServer||t.watchEffect(l=>{window.addEventListener(e,o,n),l(()=>window.removeEventListener(e,o,n))})}function Y0(e,o,n=t.computed(()=>!0)){function l(s,i){if(!n.value||s.defaultPrevented)return;let r=i(s);if(r===null||!r.getRootNode().contains(r))return;let c=function d(u){return typeof u=="function"?d(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let d of c){if(d===null)continue;let u=d instanceof HTMLElement?d:$(d);if(u!=null&&u.contains(r)||s.composed&&s.composedPath().includes(u))return}return!z0(r,se.Loose)&&r.tabIndex!==-1&&s.preventDefault(),o(s,r)}let a=t.ref(null);x2("pointerdown",s=>{var i,r;n.value&&(a.value=((r=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:r[0])||s.target)},!0),x2("mousedown",s=>{var i,r;n.value&&(a.value=((r=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:r[0])||s.target)},!0),x2("click",s=>{re()||a.value&&(l(s,()=>a.value),a.value=null)},!0),x2("touchend",s=>l(s,()=>s.target instanceof HTMLElement?s.target:null),!0),J0("blur",s=>l(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function ie(e,o){if(e)return e;let n=o??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Q0(e,o){let n=t.ref(ie(e.value.type,e.value.as));return t.onMounted(()=>{n.value=ie(e.value.type,e.value.as)}),t.watchEffect(()=>{var l;n.value||$(o)&&$(o)instanceof HTMLButtonElement&&!((l=$(o))!=null&&l.hasAttribute("type"))&&(n.value="button")}),n}function ce(e){return[e.screenX,e.screenY]}function X0(){let e=t.ref([-1,-1]);return{wasMoved(o){let n=ce(o);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(o){e.value=ce(o)}}}function K0({container:e,accept:o,walk:n,enabled:l}){t.watchEffect(()=>{let a=e.value;if(!a||l!==void 0&&!l.value)return;let s=R2(e);if(!s)return;let i=Object.assign(c=>o(c),{acceptNode:o}),r=s.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,i,!1);for(;r.nextNode();)n(r.currentNode)})}var d2=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(d2||{}),et=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(et||{});function Q({visible:e=!0,features:o=0,ourProps:n,theirProps:l,...a}){var s;let i=ue(l,n),r=Object.assign(a,{props:i});if(e||o&2&&i.static)return D2(r);if(o&1){let c=(s=i.unmount)==null||s?0:1;return U(c,{0(){return null},1(){return D2({...a,props:{...i,hidden:!0,style:{display:"none"}}})}})}return D2(r)}function D2({props:e,attrs:o,slots:n,slot:l,name:a}){var s,i;let{as:r,...c}=w2(e,["unmount","static"]),d=(s=n.default)==null?void 0:s.call(n,l),u={};if(l){let f=!1,v=[];for(let[g,b]of Object.entries(l))typeof b=="boolean"&&(f=!0),b===!0&&v.push(g);f&&(u["data-headlessui-state"]=v.join(" "))}if(r==="template"){if(d=de(d??[]),Object.keys(c).length>0||Object.keys(o).length>0){let[f,...v]=d??[];if(!nt(f)||v.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${a} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(o)).map(h=>h.trim()).filter((h,T,x)=>x.indexOf(h)===T).sort((h,T)=>h.localeCompare(T)).map(h=>` - ${h}`).join(`
5
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>` - ${h}`).join(`
6
6
  `)].join(`
7
- `));let h=ue((i=f.props)!=null?i:{},c,u),b=t.cloneVNode(f,h,!0);for(let g in h)g.startsWith("on")&&(b.props||(b.props={}),b.props[g]=h[g]);return b}return Array.isArray(d)&&d.length===1?d[0]:d}return t.h(r,Object.assign({},c,u),{default:()=>d})}function de(e){return e.flatMap(o=>o.type===t.Fragment?de(o.children):[o])}function ue(...e){if(e.length===0)return{};if(e.length===1)return e[0];let o={},n={};for(let l of e)for(let a in l)a.startsWith("on")&&typeof l[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(l[a])):o[a]=l[a];if(o.disabled||o["aria-disabled"])return Object.assign(o,Object.fromEntries(Object.keys(n).map(l=>[l,void 0])));for(let l in n)Object.assign(o,{[l](a,...s){let i=n[l];for(let r of i){if(a instanceof Event&&a.defaultPrevented)return;r(a,...s)}}});return o}function nt(e){let o=Object.assign({},e);for(let n in o)o[n]===void 0&&delete o[n];return o}function w2(e,o=[]){let n=Object.assign({},e);for(let l of o)l in n&&delete n[l];return n}function ot(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var fe=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(fe||{});let lt=t.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:o,attrs:n}){return()=>{var l;let{features:a,...s}=e,i={"aria-hidden":(a&2)===2?!0:(l=s["aria-hidden"])!=null?l:void 0,hidden:(a&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(a&4)===4&&(a&2)!==2&&{display:"none"}}};return Q({ourProps:i,theirProps:s,slot:{},attrs:n,slots:o,name:"Hidden"})}}}),pe=Symbol("Context");var u2=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(u2||{});function at(){return t.inject(pe,null)}function st(e){t.provide(pe,e)}var R=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(R||{}),me=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(me||{});function rt(e){function o(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",o))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",o),o())}let X=[];rt(()=>{function e(o){o.target instanceof HTMLElement&&o.target!==document.body&&X[0]!==o.target&&(X.unshift(o.target),X=X.filter(n=>n!=null&&n.isConnected),X.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function it(e){throw new Error("Unexpected object: "+e)}var F=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(F||{});function he(e,o){let n=o.resolveItems();if(n.length<=0)return null;let l=o.resolveActiveIndex(),a=l??-1;switch(e.focus){case 0:{for(let s=0;s<n.length;++s)if(!o.resolveDisabled(n[s],s,n))return s;return l}case 1:{a===-1&&(a=n.length);for(let s=a-1;s>=0;--s)if(!o.resolveDisabled(n[s],s,n))return s;return l}case 2:{for(let s=a+1;s<n.length;++s)if(!o.resolveDisabled(n[s],s,n))return s;return l}case 3:{for(let s=n.length-1;s>=0;--s)if(!o.resolveDisabled(n[s],s,n))return s;return l}case 4:{for(let s=0;s<n.length;++s)if(o.resolveId(n[s],s,n)===e.id)return s;return l}case 5:return null;default:it(e)}}function ge(e={},o=null,n=[]){for(let[l,a]of Object.entries(e))be(n,Ce(o,l),a);return n}function Ce(e,o){return e?e+"["+o+"]":o}function be(e,o,n){if(Array.isArray(n))for(let[l,a]of n.entries())be(e,Ce(o,l.toString()),a);else n instanceof Date?e.push([o,n.toISOString()]):typeof n=="boolean"?e.push([o,n?"1":"0"]):typeof n=="string"?e.push([o,n]):typeof n=="number"?e.push([o,`${n}`]):n==null?e.push([o,""]):ge(n,o,e)}function ct(e,o){return e===o}var dt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(dt||{}),ut=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(ut||{}),ft=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(ft||{});let ve=Symbol("ComboboxContext");function K(e){let o=t.inject(ve,null);if(o===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,K),n}return o}let xe=Symbol("VirtualContext"),pt=t.defineComponent({name:"VirtualProvider",setup(e,{slots:o}){let n=K("VirtualProvider"),l=t.computed(()=>{let r=$(n.optionsRef);if(!r)return{start:0,end:0};let c=window.getComputedStyle(r);return{start:parseFloat(c.paddingBlockStart||c.paddingTop),end:parseFloat(c.paddingBlockEnd||c.paddingBottom)}}),a=I0(t.computed(()=>({scrollPaddingStart:l.value.start,scrollPaddingEnd:l.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return $(n.optionsRef)},overscan:12}))),s=t.computed(()=>{var r;return(r=n.virtual.value)==null?void 0:r.options}),i=t.ref(0);return t.watch([s],()=>{i.value+=1}),t.provide(xe,n.virtual.value?a:null),()=>[t.h("div",{style:{position:"relative",width:"100%",height:`${a.value.getTotalSize()}px`},ref:r=>{if(r){if(typeof process<"u"&&process.env.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&a.value.scrollToIndex(n.activeOptionIndex.value)}}},a.value.getVirtualItems().map(r=>t.cloneVNode(o.default({option:n.virtual.value.options[r.index],open:n.comboboxState.value===0})[0],{key:`${i.value}-${r.index}`,"data-index":r.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":r.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${r.start}px)`,overflowAnchor:"none"}})))]}}),mt=t.defineComponent({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:o,attrs:n,emit:l}){let a=t.ref(1),s=t.ref(null),i=t.ref(null),r=t.ref(null),c=t.ref(null),d=t.ref({static:!1,hold:!1}),u=t.ref([]),f=t.ref(null),v=t.ref(2),h=t.ref(!1);function b(p=m=>m){let m=f.value!==null?u.value[f.value]:null,k=p(u.value.slice()),L=k.length>0&&k[0].dataRef.order.value!==null?k.sort((M,H)=>M.dataRef.order.value-H.dataRef.order.value):q0(k,M=>$(M.dataRef.domRef)),I=m?L.indexOf(m):null;return I===-1&&(I=null),{options:L,activeOptionIndex:I}}let g=t.computed(()=>e.multiple?1:0),V=t.computed(()=>e.nullable),[x,C]=M0(t.computed(()=>e.modelValue),p=>l("update:modelValue",p),t.computed(()=>e.defaultValue)),_=t.computed(()=>x.value===void 0?U(g.value,{1:[],0:void 0}):x.value),S=null,w=null;function T(p){return U(g.value,{0(){return C==null?void 0:C(p)},1:()=>{let m=t.toRaw(E.value.value).slice(),k=t.toRaw(p),L=m.findIndex(I=>E.compare(k,t.toRaw(I)));return L===-1?m.push(k):m.splice(L,1),C==null?void 0:C(m)}})}let y=t.computed(()=>{});t.watch([y],([p],[m])=>{if(E.virtual.value&&p&&m&&f.value!==null){let k=p.indexOf(m[f.value]);k!==-1?f.value=k:f.value=null}});let E={comboboxState:a,value:_,mode:g,compare(p,m){if(typeof e.by=="string"){let k=e.by;return(p==null?void 0:p[k])===(m==null?void 0:m[k])}return e.by===null?ct(p,m):e.by(p,m)},calculateIndex(p){return E.virtual.value?e.by===null?E.virtual.value.options.indexOf(p):E.virtual.value.options.findIndex(m=>E.compare(m,p)):u.value.findIndex(m=>E.compare(m.dataRef.value,p))},defaultValue:t.computed(()=>e.defaultValue),nullable:V,immediate:t.computed(()=>!1),virtual:t.computed(()=>null),inputRef:i,labelRef:s,buttonRef:r,optionsRef:c,disabled:t.computed(()=>e.disabled),options:u,change(p){C(p)},activeOptionIndex:t.computed(()=>{if(h.value&&f.value===null&&(E.virtual.value?E.virtual.value.options.length>0:u.value.length>0)){if(E.virtual.value){let m=E.virtual.value.options.findIndex(k=>{var L;return!((L=E.virtual.value)!=null&&L.disabled(k))});if(m!==-1)return m}let p=u.value.findIndex(m=>!m.dataRef.disabled);if(p!==-1)return p}return f.value}),activationTrigger:v,optionsPropsRef:d,closeCombobox(){h.value=!1,!e.disabled&&a.value!==1&&(a.value=1,f.value=null)},openCombobox(){if(h.value=!0,!e.disabled&&a.value!==0){if(E.value.value){let p=E.calculateIndex(E.value.value);p!==-1&&(f.value=p)}a.value=0}},setActivationTrigger(p){v.value=p},goToOption(p,m,k){h.value=!1,S!==null&&cancelAnimationFrame(S),S=requestAnimationFrame(()=>{if(e.disabled||c.value&&!d.value.static&&a.value===1)return;if(E.virtual.value){f.value=p===F.Specific?m:he({focus:p},{resolveItems:()=>E.virtual.value.options,resolveActiveIndex:()=>{var M,H;return(H=(M=E.activeOptionIndex.value)!=null?M:E.virtual.value.options.findIndex(P=>{var N;return!((N=E.virtual.value)!=null&&N.disabled(P))}))!=null?H:null},resolveDisabled:M=>E.virtual.value.disabled(M),resolveId(){throw new Error("Function not implemented.")}}),v.value=k??2;return}let L=b();if(L.activeOptionIndex===null){let M=L.options.findIndex(H=>!H.dataRef.disabled);M!==-1&&(L.activeOptionIndex=M)}let I=p===F.Specific?m:he({focus:p},{resolveItems:()=>L.options,resolveActiveIndex:()=>L.activeOptionIndex,resolveId:M=>M.id,resolveDisabled:M=>M.dataRef.disabled});f.value=I,v.value=k??2,u.value=L.options})},selectOption(p){let m=u.value.find(L=>L.id===p);if(!m)return;let{dataRef:k}=m;T(k.value)},selectActiveOption(){if(E.activeOptionIndex.value!==null){if(E.virtual.value)T(E.virtual.value.options[E.activeOptionIndex.value]);else{let{dataRef:p}=u.value[E.activeOptionIndex.value];T(p.value)}E.goToOption(F.Specific,E.activeOptionIndex.value)}},registerOption(p,m){let k=t.reactive({id:p,dataRef:m});if(E.virtual.value){u.value.push(k);return}w&&cancelAnimationFrame(w);let L=b(I=>(I.push(k),I));f.value===null&&E.isSelected(m.value.value)&&(L.activeOptionIndex=L.options.indexOf(k)),u.value=L.options,f.value=L.activeOptionIndex,v.value=2,L.options.some(I=>!$(I.dataRef.domRef))&&(w=requestAnimationFrame(()=>{let I=b();u.value=I.options,f.value=I.activeOptionIndex}))},unregisterOption(p,m){if(S!==null&&cancelAnimationFrame(S),m&&(h.value=!0),E.virtual.value){u.value=u.value.filter(L=>L.id!==p);return}let k=b(L=>{let I=L.findIndex(M=>M.id===p);return I!==-1&&L.splice(I,1),L});u.value=k.options,f.value=k.activeOptionIndex,v.value=2},isSelected(p){return U(g.value,{0:()=>E.compare(t.toRaw(E.value.value),t.toRaw(p)),1:()=>t.toRaw(E.value.value).some(m=>E.compare(t.toRaw(m),t.toRaw(p)))})},isActive(p){return f.value===E.calculateIndex(p)}};Q0([i,r,c],()=>E.closeCombobox(),t.computed(()=>a.value===0)),t.provide(ve,E),st(t.computed(()=>U(a.value,{0:u2.Open,1:u2.Closed})));let B=t.computed(()=>{var p;return(p=$(i))==null?void 0:p.closest("form")});return t.onMounted(()=>{t.watch([B],()=>{if(!B.value||e.defaultValue===void 0)return;function p(){E.change(e.defaultValue)}return B.value.addEventListener("reset",p),()=>{var m;(m=B.value)==null||m.removeEventListener("reset",p)}},{immediate:!0})}),()=>{var p,m,k;let{name:L,disabled:I,form:M,...H}=e,P={open:a.value===0,disabled:I,activeIndex:E.activeOptionIndex.value,activeOption:E.activeOptionIndex.value===null?null:E.virtual.value?E.virtual.value.options[(p=E.activeOptionIndex.value)!=null?p:0]:(k=(m=E.options.value[E.activeOptionIndex.value])==null?void 0:m.dataRef.value)!=null?k:null,value:_.value};return t.h(t.Fragment,[...L!=null&&_.value!=null?ge({[L]:_.value}).map(([N,Rl])=>t.h(lt,nt({features:fe.Hidden,key:N,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:M,disabled:I,name:N,value:Rl}))):[],Q({theirProps:{...n,...w2(H,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:P,slots:o,attrs:n,name:"Combobox"})])}}});t.defineComponent({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:o,slots:n}){var l;let a=(l=e.id)!=null?l:`headlessui-combobox-label-${c2()}`,s=K("ComboboxLabel");function i(){var r;(r=$(s.inputRef))==null||r.focus({preventScroll:!0})}return()=>{let r={open:s.comboboxState.value===0,disabled:s.disabled.value},{...c}=e,d={id:a,ref:s.labelRef,onClick:i};return Q({ourProps:d,theirProps:c,slot:r,attrs:o,slots:n,name:"ComboboxLabel"})}}});let ht=t.defineComponent({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:o,slots:n,expose:l}){var a;let s=(a=e.id)!=null?a:`headlessui-combobox-button-${c2()}`,i=K("ComboboxButton");l({el:i.buttonRef,$el:i.buttonRef});function r(u){i.disabled.value||(i.comboboxState.value===0?i.closeCombobox():(u.preventDefault(),i.openCombobox()),t.nextTick(()=>{var f;return(f=$(i.inputRef))==null?void 0:f.focus({preventScroll:!0})}))}function c(u){switch(u.key){case R.ArrowDown:u.preventDefault(),u.stopPropagation(),i.comboboxState.value===1&&i.openCombobox(),t.nextTick(()=>{var f;return(f=i.inputRef.value)==null?void 0:f.focus({preventScroll:!0})});return;case R.ArrowUp:u.preventDefault(),u.stopPropagation(),i.comboboxState.value===1&&(i.openCombobox(),t.nextTick(()=>{i.value.value||i.goToOption(F.Last)})),t.nextTick(()=>{var f;return(f=i.inputRef.value)==null?void 0:f.focus({preventScroll:!0})});return;case R.Escape:if(i.comboboxState.value!==0)return;u.preventDefault(),i.optionsRef.value&&!i.optionsPropsRef.value.static&&u.stopPropagation(),i.closeCombobox(),t.nextTick(()=>{var f;return(f=i.inputRef.value)==null?void 0:f.focus({preventScroll:!0})});return}}let d=X0(t.computed(()=>({as:e.as,type:o.type})),i.buttonRef);return()=>{var u,f;let v={open:i.comboboxState.value===0,disabled:i.disabled.value,value:i.value.value},{...h}=e,b={ref:i.buttonRef,id:s,type:d.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(u=$(i.optionsRef))==null?void 0:u.id,"aria-expanded":i.comboboxState.value===0,"aria-labelledby":i.labelRef.value?[(f=$(i.labelRef))==null?void 0:f.id,s].join(" "):void 0,disabled:i.disabled.value===!0?!0:void 0,onKeydown:c,onClick:r};return Q({ourProps:b,theirProps:h,slot:v,attrs:o,slots:n,name:"ComboboxButton"})}}}),gt=t.defineComponent({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:o,attrs:n,slots:l,expose:a}){var s;let i=(s=e.id)!=null?s:`headlessui-combobox-input-${c2()}`,r=K("ComboboxInput"),c=t.computed(()=>R2($(r.inputRef))),d={value:!1};a({el:r.inputRef,$el:r.inputRef});function u(){r.change(null);let w=$(r.optionsRef);w&&(w.scrollTop=0),r.goToOption(F.Nothing)}let f=t.computed(()=>{var w;let T=r.value.value;return $(r.inputRef)?typeof e.displayValue<"u"&&T!==void 0?(w=e.displayValue(T))!=null?w:"":typeof T=="string"?T:"":""});t.onMounted(()=>{t.watch([f,r.comboboxState,c],([w,T],[y,E])=>{if(d.value)return;let B=$(r.inputRef);B&&((E===0&&T===1||w!==y)&&(B.value=w),requestAnimationFrame(()=>{var p;if(d.value||!B||((p=c.value)==null?void 0:p.activeElement)!==B)return;let{selectionStart:m,selectionEnd:k}=B;Math.abs((k??0)-(m??0))===0&&m===0&&B.setSelectionRange(B.value.length,B.value.length)}))},{immediate:!0}),t.watch([r.comboboxState],([w],[T])=>{if(w===0&&T===1){if(d.value)return;let y=$(r.inputRef);if(!y)return;let E=y.value,{selectionStart:B,selectionEnd:p,selectionDirection:m}=y;y.value="",y.value=E,m!==null?y.setSelectionRange(B,p,m):y.setSelectionRange(B,p)}})});let v=t.ref(!1);function h(){v.value=!0}function b(){v2().nextFrame(()=>{v.value=!1})}let g=F0();function V(w){switch(d.value=!0,g(()=>{d.value=!1}),w.key){case R.Enter:if(d.value=!1,r.comboboxState.value!==0||v.value)return;if(w.preventDefault(),w.stopPropagation(),r.activeOptionIndex.value===null){r.closeCombobox();return}r.selectActiveOption(),r.mode.value===0&&r.closeCombobox();break;case R.ArrowDown:return d.value=!1,w.preventDefault(),w.stopPropagation(),U(r.comboboxState.value,{0:()=>r.goToOption(F.Next),1:()=>r.openCombobox()});case R.ArrowUp:return d.value=!1,w.preventDefault(),w.stopPropagation(),U(r.comboboxState.value,{0:()=>r.goToOption(F.Previous),1:()=>{r.openCombobox(),t.nextTick(()=>{r.value.value||r.goToOption(F.Last)})}});case R.Home:if(w.shiftKey)break;return d.value=!1,w.preventDefault(),w.stopPropagation(),r.goToOption(F.First);case R.PageUp:return d.value=!1,w.preventDefault(),w.stopPropagation(),r.goToOption(F.First);case R.End:if(w.shiftKey)break;return d.value=!1,w.preventDefault(),w.stopPropagation(),r.goToOption(F.Last);case R.PageDown:return d.value=!1,w.preventDefault(),w.stopPropagation(),r.goToOption(F.Last);case R.Escape:if(d.value=!1,r.comboboxState.value!==0)return;w.preventDefault(),r.optionsRef.value&&!r.optionsPropsRef.value.static&&w.stopPropagation(),r.nullable.value&&r.mode.value===0&&r.value.value===null&&u(),r.closeCombobox();break;case R.Tab:if(d.value=!1,r.comboboxState.value!==0)return;r.mode.value===0&&r.activationTrigger.value!==1&&r.selectActiveOption(),r.closeCombobox();break}}function x(w){o("change",w),r.nullable.value&&r.mode.value===0&&w.target.value===""&&u(),r.openCombobox()}function C(w){var T,y,E;let B=(T=w.relatedTarget)!=null?T:X.find(p=>p!==w.currentTarget);if(d.value=!1,!((y=$(r.optionsRef))!=null&&y.contains(B))&&!((E=$(r.buttonRef))!=null&&E.contains(B))&&r.comboboxState.value===0)return w.preventDefault(),r.mode.value===0&&(r.nullable.value&&r.value.value===null?u():r.activationTrigger.value!==1&&r.selectActiveOption()),r.closeCombobox()}function _(w){var T,y,E;let B=(T=w.relatedTarget)!=null?T:X.find(p=>p!==w.currentTarget);(y=$(r.buttonRef))!=null&&y.contains(B)||(E=$(r.optionsRef))!=null&&E.contains(B)||r.disabled.value||r.immediate.value&&r.comboboxState.value!==0&&(r.openCombobox(),v2().nextFrame(()=>{r.setActivationTrigger(1)}))}let S=t.computed(()=>{var w,T,y,E;return(E=(y=(T=e.defaultValue)!=null?T:r.defaultValue.value!==void 0?(w=e.displayValue)==null?void 0:w.call(e,r.defaultValue.value):null)!=null?y:r.defaultValue.value)!=null?E:""});return()=>{var w,T,y,E,B,p,m;let k={open:r.comboboxState.value===0},{displayValue:L,onChange:I,...M}=e,H={"aria-controls":(w=r.optionsRef.value)==null?void 0:w.id,"aria-expanded":r.comboboxState.value===0,"aria-activedescendant":r.activeOptionIndex.value===null?void 0:r.virtual.value?(T=r.options.value.find(P=>!r.virtual.value.disabled(P.dataRef.value)&&r.compare(P.dataRef.value,r.virtual.value.options[r.activeOptionIndex.value])))==null?void 0:T.id:(y=r.options.value[r.activeOptionIndex.value])==null?void 0:y.id,"aria-labelledby":(p=(E=$(r.labelRef))==null?void 0:E.id)!=null?p:(B=$(r.buttonRef))==null?void 0:B.id,"aria-autocomplete":"list",id:i,onCompositionstart:h,onCompositionend:b,onKeydown:V,onInput:x,onFocus:_,onBlur:C,role:"combobox",type:(m=n.type)!=null?m:"text",tabIndex:0,ref:r.inputRef,defaultValue:S.value,disabled:r.disabled.value===!0?!0:void 0};return Q({ourProps:H,theirProps:M,slot:k,attrs:n,slots:l,features:d2.RenderStrategy|d2.Static,name:"ComboboxInput"})}}}),Ct=t.defineComponent({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:o,slots:n,expose:l}){let a=K("ComboboxOptions"),s=`headlessui-combobox-options-${c2()}`;l({el:a.optionsRef,$el:a.optionsRef}),t.watchEffect(()=>{a.optionsPropsRef.value.static=e.static}),t.watchEffect(()=>{a.optionsPropsRef.value.hold=e.hold});let i=at(),r=t.computed(()=>i!==null?(i.value&u2.Open)===u2.Open:a.comboboxState.value===0);et({container:t.computed(()=>$(a.optionsRef)),enabled:t.computed(()=>a.comboboxState.value===0),accept(d){return d.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function c(d){d.preventDefault()}return()=>{var d,u,f;let v={open:a.comboboxState.value===0},h={"aria-labelledby":(f=(d=$(a.labelRef))==null?void 0:d.id)!=null?f:(u=$(a.buttonRef))==null?void 0:u.id,id:s,ref:a.optionsRef,role:"listbox","aria-multiselectable":a.mode.value===1?!0:void 0,onMousedown:c},b=w2(e,["hold"]);return Q({ourProps:h,theirProps:b,slot:v,attrs:o,slots:a.virtual.value&&a.comboboxState.value===0?{...n,default:()=>[t.h(pt,{},n.default)]}:n,features:d2.RenderStrategy|d2.Static,visible:r.value,name:"ComboboxOptions"})}}}),bt=t.defineComponent({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:o,attrs:n,expose:l}){let a=K("ComboboxOption"),s=`headlessui-combobox-option-${c2()}`,i=t.ref(null),r=t.computed(()=>e.disabled);l({el:i,$el:i});let c=t.computed(()=>{var C;return a.virtual.value?a.activeOptionIndex.value===a.calculateIndex(e.value):a.activeOptionIndex.value===null?!1:((C=a.options.value[a.activeOptionIndex.value])==null?void 0:C.id)===s}),d=t.computed(()=>a.isSelected(e.value)),u=t.inject(xe,null),f=t.computed(()=>({disabled:e.disabled,value:e.value,domRef:i,order:t.computed(()=>e.order)}));t.onMounted(()=>a.registerOption(s,f)),t.onUnmounted(()=>a.unregisterOption(s,c.value)),t.watchEffect(()=>{let C=$(i);C&&(u==null||u.value.measureElement(C))}),t.watchEffect(()=>{a.comboboxState.value===0&&c.value&&(a.virtual.value||a.activationTrigger.value!==0&&t.nextTick(()=>{var C,_;return(_=(C=$(i))==null?void 0:C.scrollIntoView)==null?void 0:_.call(C,{block:"nearest"})}))});function v(C){C.preventDefault(),C.button===me.Left&&(r.value||(a.selectOption(s),re()||requestAnimationFrame(()=>{var _;return(_=$(a.inputRef))==null?void 0:_.focus({preventScroll:!0})}),a.mode.value===0&&a.closeCombobox()))}function h(){var C;if(e.disabled||(C=a.virtual.value)!=null&&C.disabled(e.value))return a.goToOption(F.Nothing);let _=a.calculateIndex(e.value);a.goToOption(F.Specific,_)}let b=K0();function g(C){b.update(C)}function V(C){var _;if(!b.wasMoved(C)||e.disabled||(_=a.virtual.value)!=null&&_.disabled(e.value)||c.value)return;let S=a.calculateIndex(e.value);a.goToOption(F.Specific,S,0)}function x(C){var _;b.wasMoved(C)&&(e.disabled||(_=a.virtual.value)!=null&&_.disabled(e.value)||c.value&&(a.optionsPropsRef.value.hold||a.goToOption(F.Nothing)))}return()=>{let{disabled:C}=e,_={active:c.value,selected:d.value,disabled:C},S={id:s,ref:i,role:"option",tabIndex:C===!0?void 0:-1,"aria-disabled":C===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onMousedown:v,onFocus:h,onPointerenter:g,onMouseenter:g,onPointermove:V,onMousemove:V,onPointerleave:x,onMouseleave:x},w=w2(e,["order","value"]);return Q({ourProps:S,theirProps:w,slot:_,attrs:n,slots:o,name:"ComboboxOption"})}}});function vt(e,o){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function xt(e,o){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M10.53 3.47a.75.75 0 0 0-1.06 0L6.22 6.72a.75.75 0 0 0 1.06 1.06L10 5.06l2.72 2.72a.75.75 0 1 0 1.06-1.06l-3.25-3.25Zm-4.31 9.81 3.25 3.25a.75.75 0 0 0 1.06 0l3.25-3.25a.75.75 0 1 0-1.06-1.06L10 14.94l-2.72-2.72a.75.75 0 0 0-1.06 1.06Z","clip-rule":"evenodd"})])}function wt(e,o){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z","clip-rule":"evenodd"})])}var we=!1;function y2(e,o,n){return Array.isArray(e)?(e.length=Math.max(e.length,o),e.splice(o,1,n),n):(e[o]=n,n)}function H2(e,o){if(Array.isArray(e)){e.splice(o,1);return}delete e[o]}function yt(){return ye().__VUE_DEVTOOLS_GLOBAL_HOOK__}function ye(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Et=typeof Proxy=="function",_t="devtools-plugin:setup",kt="plugin:settings:set";let o2,P2;function St(){var e;return o2!==void 0||(typeof window<"u"&&window.performance?(o2=!0,P2=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(o2=!0,P2=globalThis.perf_hooks.performance):o2=!1),o2}function Lt(){return St()?P2.now():Date.now()}class Vt{constructor(o,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=o,this.hook=n;const l={};if(o.settings)for(const i in o.settings){const r=o.settings[i];l[i]=r.defaultValue}const a=`__vue-devtools-plugin-settings__${o.id}`;let s=Object.assign({},l);try{const i=localStorage.getItem(a),r=JSON.parse(i);Object.assign(s,r)}catch{}this.fallbacks={getSettings(){return s},setSettings(i){try{localStorage.setItem(a,JSON.stringify(i))}catch{}s=i},now(){return Lt()}},n&&n.on(kt,(i,r)=>{i===this.plugin.id&&this.fallbacks.setSettings(r)}),this.proxiedOn=new Proxy({},{get:(i,r)=>this.target?this.target.on[r]:(...c)=>{this.onQueue.push({method:r,args:c})}}),this.proxiedTarget=new Proxy({},{get:(i,r)=>this.target?this.target[r]:r==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(r)?(...c)=>(this.targetQueue.push({method:r,args:c,resolve:()=>{}}),this.fallbacks[r](...c)):(...c)=>new Promise(d=>{this.targetQueue.push({method:r,args:c,resolve:d})})})}async setRealTarget(o){this.target=o;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Ee(e,o){const n=e,l=ye(),a=yt(),s=Et&&n.enableEarlyProxy;if(a&&(l.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))a.emit(_t,e,o);else{const i=s?new Vt(n,a):null;(l.__VUE_DEVTOOLS_PLUGINS__=l.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:o,proxy:i}),i&&o(i.proxiedTarget)}}/*!
7
+ `));let g=ue((i=f.props)!=null?i:{},c,u),b=t.cloneVNode(f,g,!0);for(let h in g)h.startsWith("on")&&(b.props||(b.props={}),b.props[h]=g[h]);return b}return Array.isArray(d)&&d.length===1?d[0]:d}return t.h(r,Object.assign({},c,u),{default:()=>d})}function de(e){return e.flatMap(o=>o.type===t.Fragment?de(o.children):[o])}function ue(...e){if(e.length===0)return{};if(e.length===1)return e[0];let o={},n={};for(let l of e)for(let a in l)a.startsWith("on")&&typeof l[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(l[a])):o[a]=l[a];if(o.disabled||o["aria-disabled"])return Object.assign(o,Object.fromEntries(Object.keys(n).map(l=>[l,void 0])));for(let l in n)Object.assign(o,{[l](a,...s){let i=n[l];for(let r of i){if(a instanceof Event&&a.defaultPrevented)return;r(a,...s)}}});return o}function tt(e){let o=Object.assign({},e);for(let n in o)o[n]===void 0&&delete o[n];return o}function w2(e,o=[]){let n=Object.assign({},e);for(let l of o)l in n&&delete n[l];return n}function nt(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var fe=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(fe||{});let ot=t.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:o,attrs:n}){return()=>{var l;let{features:a,...s}=e,i={"aria-hidden":(a&2)===2?!0:(l=s["aria-hidden"])!=null?l:void 0,hidden:(a&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(a&4)===4&&(a&2)!==2&&{display:"none"}}};return Q({ourProps:i,theirProps:s,slot:{},attrs:n,slots:o,name:"Hidden"})}}}),pe=Symbol("Context");var u2=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(u2||{});function lt(){return t.inject(pe,null)}function at(e){t.provide(pe,e)}var R=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(R||{}),me=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(me||{});function st(e){function o(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",o))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",o),o())}let X=[];st(()=>{function e(o){o.target instanceof HTMLElement&&o.target!==document.body&&X[0]!==o.target&&(X.unshift(o.target),X=X.filter(n=>n!=null&&n.isConnected),X.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function rt(e){throw new Error("Unexpected object: "+e)}var F=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(F||{});function he(e,o){let n=o.resolveItems();if(n.length<=0)return null;let l=o.resolveActiveIndex(),a=l??-1;switch(e.focus){case 0:{for(let s=0;s<n.length;++s)if(!o.resolveDisabled(n[s],s,n))return s;return l}case 1:{a===-1&&(a=n.length);for(let s=a-1;s>=0;--s)if(!o.resolveDisabled(n[s],s,n))return s;return l}case 2:{for(let s=a+1;s<n.length;++s)if(!o.resolveDisabled(n[s],s,n))return s;return l}case 3:{for(let s=n.length-1;s>=0;--s)if(!o.resolveDisabled(n[s],s,n))return s;return l}case 4:{for(let s=0;s<n.length;++s)if(o.resolveId(n[s],s,n)===e.id)return s;return l}case 5:return null;default:rt(e)}}function ge(e={},o=null,n=[]){for(let[l,a]of Object.entries(e))be(n,Ce(o,l),a);return n}function Ce(e,o){return e?e+"["+o+"]":o}function be(e,o,n){if(Array.isArray(n))for(let[l,a]of n.entries())be(e,Ce(o,l.toString()),a);else n instanceof Date?e.push([o,n.toISOString()]):typeof n=="boolean"?e.push([o,n?"1":"0"]):typeof n=="string"?e.push([o,n]):typeof n=="number"?e.push([o,`${n}`]):n==null?e.push([o,""]):ge(n,o,e)}function it(e,o){return e===o}var ct=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ct||{}),dt=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(dt||{}),ut=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(ut||{});let ve=Symbol("ComboboxContext");function K(e){let o=t.inject(ve,null);if(o===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,K),n}return o}let xe=Symbol("VirtualContext"),ft=t.defineComponent({name:"VirtualProvider",setup(e,{slots:o}){let n=K("VirtualProvider"),l=t.computed(()=>{let r=$(n.optionsRef);if(!r)return{start:0,end:0};let c=window.getComputedStyle(r);return{start:parseFloat(c.paddingBlockStart||c.paddingTop),end:parseFloat(c.paddingBlockEnd||c.paddingBottom)}}),a=$0(t.computed(()=>({scrollPaddingStart:l.value.start,scrollPaddingEnd:l.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return $(n.optionsRef)},overscan:12}))),s=t.computed(()=>{var r;return(r=n.virtual.value)==null?void 0:r.options}),i=t.ref(0);return t.watch([s],()=>{i.value+=1}),t.provide(xe,n.virtual.value?a:null),()=>[t.h("div",{style:{position:"relative",width:"100%",height:`${a.value.getTotalSize()}px`},ref:r=>{if(r){if(typeof process<"u"&&process.env.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&a.value.scrollToIndex(n.activeOptionIndex.value)}}},a.value.getVirtualItems().map(r=>t.cloneVNode(o.default({option:n.virtual.value.options[r.index],open:n.comboboxState.value===0})[0],{key:`${i.value}-${r.index}`,"data-index":r.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":r.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${r.start}px)`,overflowAnchor:"none"}})))]}}),pt=t.defineComponent({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:o,attrs:n,emit:l}){let a=t.ref(1),s=t.ref(null),i=t.ref(null),r=t.ref(null),c=t.ref(null),d=t.ref({static:!1,hold:!1}),u=t.ref([]),f=t.ref(null),v=t.ref(2),g=t.ref(!1);function b(p=m=>m){let m=f.value!==null?u.value[f.value]:null,k=p(u.value.slice()),S=k.length>0&&k[0].dataRef.order.value!==null?k.sort((M,H)=>M.dataRef.order.value-H.dataRef.order.value):W0(k,M=>$(M.dataRef.domRef)),I=m?S.indexOf(m):null;return I===-1&&(I=null),{options:S,activeOptionIndex:I}}let h=t.computed(()=>e.multiple?1:0),T=t.computed(()=>e.nullable),[x,C]=I0(t.computed(()=>e.modelValue),p=>l("update:modelValue",p),t.computed(()=>e.defaultValue)),_=t.computed(()=>x.value===void 0?U(h.value,{1:[],0:void 0}):x.value),L=null,w=null;function V(p){return U(h.value,{0(){return C==null?void 0:C(p)},1:()=>{let m=t.toRaw(E.value.value).slice(),k=t.toRaw(p),S=m.findIndex(I=>E.compare(k,t.toRaw(I)));return S===-1?m.push(k):m.splice(S,1),C==null?void 0:C(m)}})}let y=t.computed(()=>{});t.watch([y],([p],[m])=>{if(E.virtual.value&&p&&m&&f.value!==null){let k=p.indexOf(m[f.value]);k!==-1?f.value=k:f.value=null}});let E={comboboxState:a,value:_,mode:h,compare(p,m){if(typeof e.by=="string"){let k=e.by;return(p==null?void 0:p[k])===(m==null?void 0:m[k])}return e.by===null?it(p,m):e.by(p,m)},calculateIndex(p){return E.virtual.value?e.by===null?E.virtual.value.options.indexOf(p):E.virtual.value.options.findIndex(m=>E.compare(m,p)):u.value.findIndex(m=>E.compare(m.dataRef.value,p))},defaultValue:t.computed(()=>e.defaultValue),nullable:T,immediate:t.computed(()=>!1),virtual:t.computed(()=>null),inputRef:i,labelRef:s,buttonRef:r,optionsRef:c,disabled:t.computed(()=>e.disabled),options:u,change(p){C(p)},activeOptionIndex:t.computed(()=>{if(g.value&&f.value===null&&(E.virtual.value?E.virtual.value.options.length>0:u.value.length>0)){if(E.virtual.value){let m=E.virtual.value.options.findIndex(k=>{var S;return!((S=E.virtual.value)!=null&&S.disabled(k))});if(m!==-1)return m}let p=u.value.findIndex(m=>!m.dataRef.disabled);if(p!==-1)return p}return f.value}),activationTrigger:v,optionsPropsRef:d,closeCombobox(){g.value=!1,!e.disabled&&a.value!==1&&(a.value=1,f.value=null)},openCombobox(){if(g.value=!0,!e.disabled&&a.value!==0){if(E.value.value){let p=E.calculateIndex(E.value.value);p!==-1&&(f.value=p)}a.value=0}},setActivationTrigger(p){v.value=p},goToOption(p,m,k){g.value=!1,L!==null&&cancelAnimationFrame(L),L=requestAnimationFrame(()=>{if(e.disabled||c.value&&!d.value.static&&a.value===1)return;if(E.virtual.value){f.value=p===F.Specific?m:he({focus:p},{resolveItems:()=>E.virtual.value.options,resolveActiveIndex:()=>{var M,H;return(H=(M=E.activeOptionIndex.value)!=null?M:E.virtual.value.options.findIndex(P=>{var N;return!((N=E.virtual.value)!=null&&N.disabled(P))}))!=null?H:null},resolveDisabled:M=>E.virtual.value.disabled(M),resolveId(){throw new Error("Function not implemented.")}}),v.value=k??2;return}let S=b();if(S.activeOptionIndex===null){let M=S.options.findIndex(H=>!H.dataRef.disabled);M!==-1&&(S.activeOptionIndex=M)}let I=p===F.Specific?m:he({focus:p},{resolveItems:()=>S.options,resolveActiveIndex:()=>S.activeOptionIndex,resolveId:M=>M.id,resolveDisabled:M=>M.dataRef.disabled});f.value=I,v.value=k??2,u.value=S.options})},selectOption(p){let m=u.value.find(S=>S.id===p);if(!m)return;let{dataRef:k}=m;V(k.value)},selectActiveOption(){if(E.activeOptionIndex.value!==null){if(E.virtual.value)V(E.virtual.value.options[E.activeOptionIndex.value]);else{let{dataRef:p}=u.value[E.activeOptionIndex.value];V(p.value)}E.goToOption(F.Specific,E.activeOptionIndex.value)}},registerOption(p,m){let k=t.reactive({id:p,dataRef:m});if(E.virtual.value){u.value.push(k);return}w&&cancelAnimationFrame(w);let S=b(I=>(I.push(k),I));f.value===null&&E.isSelected(m.value.value)&&(S.activeOptionIndex=S.options.indexOf(k)),u.value=S.options,f.value=S.activeOptionIndex,v.value=2,S.options.some(I=>!$(I.dataRef.domRef))&&(w=requestAnimationFrame(()=>{let I=b();u.value=I.options,f.value=I.activeOptionIndex}))},unregisterOption(p,m){if(L!==null&&cancelAnimationFrame(L),m&&(g.value=!0),E.virtual.value){u.value=u.value.filter(S=>S.id!==p);return}let k=b(S=>{let I=S.findIndex(M=>M.id===p);return I!==-1&&S.splice(I,1),S});u.value=k.options,f.value=k.activeOptionIndex,v.value=2},isSelected(p){return U(h.value,{0:()=>E.compare(t.toRaw(E.value.value),t.toRaw(p)),1:()=>t.toRaw(E.value.value).some(m=>E.compare(t.toRaw(m),t.toRaw(p)))})},isActive(p){return f.value===E.calculateIndex(p)}};Y0([i,r,c],()=>E.closeCombobox(),t.computed(()=>a.value===0)),t.provide(ve,E),at(t.computed(()=>U(a.value,{0:u2.Open,1:u2.Closed})));let B=t.computed(()=>{var p;return(p=$(i))==null?void 0:p.closest("form")});return t.onMounted(()=>{t.watch([B],()=>{if(!B.value||e.defaultValue===void 0)return;function p(){E.change(e.defaultValue)}return B.value.addEventListener("reset",p),()=>{var m;(m=B.value)==null||m.removeEventListener("reset",p)}},{immediate:!0})}),()=>{var p,m,k;let{name:S,disabled:I,form:M,...H}=e,P={open:a.value===0,disabled:I,activeIndex:E.activeOptionIndex.value,activeOption:E.activeOptionIndex.value===null?null:E.virtual.value?E.virtual.value.options[(p=E.activeOptionIndex.value)!=null?p:0]:(k=(m=E.options.value[E.activeOptionIndex.value])==null?void 0:m.dataRef.value)!=null?k:null,value:_.value};return t.h(t.Fragment,[...S!=null&&_.value!=null?ge({[S]:_.value}).map(([N,Al])=>t.h(ot,tt({features:fe.Hidden,key:N,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:M,disabled:I,name:N,value:Al}))):[],Q({theirProps:{...n,...w2(H,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:P,slots:o,attrs:n,name:"Combobox"})])}}});t.defineComponent({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:o,slots:n}){var l;let a=(l=e.id)!=null?l:`headlessui-combobox-label-${c2()}`,s=K("ComboboxLabel");function i(){var r;(r=$(s.inputRef))==null||r.focus({preventScroll:!0})}return()=>{let r={open:s.comboboxState.value===0,disabled:s.disabled.value},{...c}=e,d={id:a,ref:s.labelRef,onClick:i};return Q({ourProps:d,theirProps:c,slot:r,attrs:o,slots:n,name:"ComboboxLabel"})}}});let mt=t.defineComponent({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:o,slots:n,expose:l}){var a;let s=(a=e.id)!=null?a:`headlessui-combobox-button-${c2()}`,i=K("ComboboxButton");l({el:i.buttonRef,$el:i.buttonRef});function r(u){i.disabled.value||(i.comboboxState.value===0?i.closeCombobox():(u.preventDefault(),i.openCombobox()),t.nextTick(()=>{var f;return(f=$(i.inputRef))==null?void 0:f.focus({preventScroll:!0})}))}function c(u){switch(u.key){case R.ArrowDown:u.preventDefault(),u.stopPropagation(),i.comboboxState.value===1&&i.openCombobox(),t.nextTick(()=>{var f;return(f=i.inputRef.value)==null?void 0:f.focus({preventScroll:!0})});return;case R.ArrowUp:u.preventDefault(),u.stopPropagation(),i.comboboxState.value===1&&(i.openCombobox(),t.nextTick(()=>{i.value.value||i.goToOption(F.Last)})),t.nextTick(()=>{var f;return(f=i.inputRef.value)==null?void 0:f.focus({preventScroll:!0})});return;case R.Escape:if(i.comboboxState.value!==0)return;u.preventDefault(),i.optionsRef.value&&!i.optionsPropsRef.value.static&&u.stopPropagation(),i.closeCombobox(),t.nextTick(()=>{var f;return(f=i.inputRef.value)==null?void 0:f.focus({preventScroll:!0})});return}}let d=Q0(t.computed(()=>({as:e.as,type:o.type})),i.buttonRef);return()=>{var u,f;let v={open:i.comboboxState.value===0,disabled:i.disabled.value,value:i.value.value},{...g}=e,b={ref:i.buttonRef,id:s,type:d.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(u=$(i.optionsRef))==null?void 0:u.id,"aria-expanded":i.comboboxState.value===0,"aria-labelledby":i.labelRef.value?[(f=$(i.labelRef))==null?void 0:f.id,s].join(" "):void 0,disabled:i.disabled.value===!0?!0:void 0,onKeydown:c,onClick:r};return Q({ourProps:b,theirProps:g,slot:v,attrs:o,slots:n,name:"ComboboxButton"})}}}),ht=t.defineComponent({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:o,attrs:n,slots:l,expose:a}){var s;let i=(s=e.id)!=null?s:`headlessui-combobox-input-${c2()}`,r=K("ComboboxInput"),c=t.computed(()=>R2($(r.inputRef))),d={value:!1};a({el:r.inputRef,$el:r.inputRef});function u(){r.change(null);let w=$(r.optionsRef);w&&(w.scrollTop=0),r.goToOption(F.Nothing)}let f=t.computed(()=>{var w;let V=r.value.value;return $(r.inputRef)?typeof e.displayValue<"u"&&V!==void 0?(w=e.displayValue(V))!=null?w:"":typeof V=="string"?V:"":""});t.onMounted(()=>{t.watch([f,r.comboboxState,c],([w,V],[y,E])=>{if(d.value)return;let B=$(r.inputRef);B&&((E===0&&V===1||w!==y)&&(B.value=w),requestAnimationFrame(()=>{var p;if(d.value||!B||((p=c.value)==null?void 0:p.activeElement)!==B)return;let{selectionStart:m,selectionEnd:k}=B;Math.abs((k??0)-(m??0))===0&&m===0&&B.setSelectionRange(B.value.length,B.value.length)}))},{immediate:!0}),t.watch([r.comboboxState],([w],[V])=>{if(w===0&&V===1){if(d.value)return;let y=$(r.inputRef);if(!y)return;let E=y.value,{selectionStart:B,selectionEnd:p,selectionDirection:m}=y;y.value="",y.value=E,m!==null?y.setSelectionRange(B,p,m):y.setSelectionRange(B,p)}})});let v=t.ref(!1);function g(){v.value=!0}function b(){v2().nextFrame(()=>{v.value=!1})}let h=N0();function T(w){switch(d.value=!0,h(()=>{d.value=!1}),w.key){case R.Enter:if(d.value=!1,r.comboboxState.value!==0||v.value)return;if(w.preventDefault(),w.stopPropagation(),r.activeOptionIndex.value===null){r.closeCombobox();return}r.selectActiveOption(),r.mode.value===0&&r.closeCombobox();break;case R.ArrowDown:return d.value=!1,w.preventDefault(),w.stopPropagation(),U(r.comboboxState.value,{0:()=>r.goToOption(F.Next),1:()=>r.openCombobox()});case R.ArrowUp:return d.value=!1,w.preventDefault(),w.stopPropagation(),U(r.comboboxState.value,{0:()=>r.goToOption(F.Previous),1:()=>{r.openCombobox(),t.nextTick(()=>{r.value.value||r.goToOption(F.Last)})}});case R.Home:if(w.shiftKey)break;return d.value=!1,w.preventDefault(),w.stopPropagation(),r.goToOption(F.First);case R.PageUp:return d.value=!1,w.preventDefault(),w.stopPropagation(),r.goToOption(F.First);case R.End:if(w.shiftKey)break;return d.value=!1,w.preventDefault(),w.stopPropagation(),r.goToOption(F.Last);case R.PageDown:return d.value=!1,w.preventDefault(),w.stopPropagation(),r.goToOption(F.Last);case R.Escape:if(d.value=!1,r.comboboxState.value!==0)return;w.preventDefault(),r.optionsRef.value&&!r.optionsPropsRef.value.static&&w.stopPropagation(),r.nullable.value&&r.mode.value===0&&r.value.value===null&&u(),r.closeCombobox();break;case R.Tab:if(d.value=!1,r.comboboxState.value!==0)return;r.mode.value===0&&r.activationTrigger.value!==1&&r.selectActiveOption(),r.closeCombobox();break}}function x(w){o("change",w),r.nullable.value&&r.mode.value===0&&w.target.value===""&&u(),r.openCombobox()}function C(w){var V,y,E;let B=(V=w.relatedTarget)!=null?V:X.find(p=>p!==w.currentTarget);if(d.value=!1,!((y=$(r.optionsRef))!=null&&y.contains(B))&&!((E=$(r.buttonRef))!=null&&E.contains(B))&&r.comboboxState.value===0)return w.preventDefault(),r.mode.value===0&&(r.nullable.value&&r.value.value===null?u():r.activationTrigger.value!==1&&r.selectActiveOption()),r.closeCombobox()}function _(w){var V,y,E;let B=(V=w.relatedTarget)!=null?V:X.find(p=>p!==w.currentTarget);(y=$(r.buttonRef))!=null&&y.contains(B)||(E=$(r.optionsRef))!=null&&E.contains(B)||r.disabled.value||r.immediate.value&&r.comboboxState.value!==0&&(r.openCombobox(),v2().nextFrame(()=>{r.setActivationTrigger(1)}))}let L=t.computed(()=>{var w,V,y,E;return(E=(y=(V=e.defaultValue)!=null?V:r.defaultValue.value!==void 0?(w=e.displayValue)==null?void 0:w.call(e,r.defaultValue.value):null)!=null?y:r.defaultValue.value)!=null?E:""});return()=>{var w,V,y,E,B,p,m;let k={open:r.comboboxState.value===0},{displayValue:S,onChange:I,...M}=e,H={"aria-controls":(w=r.optionsRef.value)==null?void 0:w.id,"aria-expanded":r.comboboxState.value===0,"aria-activedescendant":r.activeOptionIndex.value===null?void 0:r.virtual.value?(V=r.options.value.find(P=>!r.virtual.value.disabled(P.dataRef.value)&&r.compare(P.dataRef.value,r.virtual.value.options[r.activeOptionIndex.value])))==null?void 0:V.id:(y=r.options.value[r.activeOptionIndex.value])==null?void 0:y.id,"aria-labelledby":(p=(E=$(r.labelRef))==null?void 0:E.id)!=null?p:(B=$(r.buttonRef))==null?void 0:B.id,"aria-autocomplete":"list",id:i,onCompositionstart:g,onCompositionend:b,onKeydown:T,onInput:x,onFocus:_,onBlur:C,role:"combobox",type:(m=n.type)!=null?m:"text",tabIndex:0,ref:r.inputRef,defaultValue:L.value,disabled:r.disabled.value===!0?!0:void 0};return Q({ourProps:H,theirProps:M,slot:k,attrs:n,slots:l,features:d2.RenderStrategy|d2.Static,name:"ComboboxInput"})}}}),gt=t.defineComponent({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:o,slots:n,expose:l}){let a=K("ComboboxOptions"),s=`headlessui-combobox-options-${c2()}`;l({el:a.optionsRef,$el:a.optionsRef}),t.watchEffect(()=>{a.optionsPropsRef.value.static=e.static}),t.watchEffect(()=>{a.optionsPropsRef.value.hold=e.hold});let i=lt(),r=t.computed(()=>i!==null?(i.value&u2.Open)===u2.Open:a.comboboxState.value===0);K0({container:t.computed(()=>$(a.optionsRef)),enabled:t.computed(()=>a.comboboxState.value===0),accept(d){return d.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function c(d){d.preventDefault()}return()=>{var d,u,f;let v={open:a.comboboxState.value===0},g={"aria-labelledby":(f=(d=$(a.labelRef))==null?void 0:d.id)!=null?f:(u=$(a.buttonRef))==null?void 0:u.id,id:s,ref:a.optionsRef,role:"listbox","aria-multiselectable":a.mode.value===1?!0:void 0,onMousedown:c},b=w2(e,["hold"]);return Q({ourProps:g,theirProps:b,slot:v,attrs:o,slots:a.virtual.value&&a.comboboxState.value===0?{...n,default:()=>[t.h(ft,{},n.default)]}:n,features:d2.RenderStrategy|d2.Static,visible:r.value,name:"ComboboxOptions"})}}}),Ct=t.defineComponent({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:o,attrs:n,expose:l}){let a=K("ComboboxOption"),s=`headlessui-combobox-option-${c2()}`,i=t.ref(null),r=t.computed(()=>e.disabled);l({el:i,$el:i});let c=t.computed(()=>{var C;return a.virtual.value?a.activeOptionIndex.value===a.calculateIndex(e.value):a.activeOptionIndex.value===null?!1:((C=a.options.value[a.activeOptionIndex.value])==null?void 0:C.id)===s}),d=t.computed(()=>a.isSelected(e.value)),u=t.inject(xe,null),f=t.computed(()=>({disabled:e.disabled,value:e.value,domRef:i,order:t.computed(()=>e.order)}));t.onMounted(()=>a.registerOption(s,f)),t.onUnmounted(()=>a.unregisterOption(s,c.value)),t.watchEffect(()=>{let C=$(i);C&&(u==null||u.value.measureElement(C))}),t.watchEffect(()=>{a.comboboxState.value===0&&c.value&&(a.virtual.value||a.activationTrigger.value!==0&&t.nextTick(()=>{var C,_;return(_=(C=$(i))==null?void 0:C.scrollIntoView)==null?void 0:_.call(C,{block:"nearest"})}))});function v(C){C.preventDefault(),C.button===me.Left&&(r.value||(a.selectOption(s),re()||requestAnimationFrame(()=>{var _;return(_=$(a.inputRef))==null?void 0:_.focus({preventScroll:!0})}),a.mode.value===0&&a.closeCombobox()))}function g(){var C;if(e.disabled||(C=a.virtual.value)!=null&&C.disabled(e.value))return a.goToOption(F.Nothing);let _=a.calculateIndex(e.value);a.goToOption(F.Specific,_)}let b=X0();function h(C){b.update(C)}function T(C){var _;if(!b.wasMoved(C)||e.disabled||(_=a.virtual.value)!=null&&_.disabled(e.value)||c.value)return;let L=a.calculateIndex(e.value);a.goToOption(F.Specific,L,0)}function x(C){var _;b.wasMoved(C)&&(e.disabled||(_=a.virtual.value)!=null&&_.disabled(e.value)||c.value&&(a.optionsPropsRef.value.hold||a.goToOption(F.Nothing)))}return()=>{let{disabled:C}=e,_={active:c.value,selected:d.value,disabled:C},L={id:s,ref:i,role:"option",tabIndex:C===!0?void 0:-1,"aria-disabled":C===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onMousedown:v,onFocus:g,onPointerenter:h,onMouseenter:h,onPointermove:T,onMousemove:T,onPointerleave:x,onMouseleave:x},w=w2(e,["order","value"]);return Q({ourProps:L,theirProps:w,slot:_,attrs:n,slots:o,name:"ComboboxOption"})}}});function bt(e,o){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function vt(e,o){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M10.53 3.47a.75.75 0 0 0-1.06 0L6.22 6.72a.75.75 0 0 0 1.06 1.06L10 5.06l2.72 2.72a.75.75 0 1 0 1.06-1.06l-3.25-3.25Zm-4.31 9.81 3.25 3.25a.75.75 0 0 0 1.06 0l3.25-3.25a.75.75 0 1 0-1.06-1.06L10 14.94l-2.72-2.72a.75.75 0 0 0-1.06 1.06Z","clip-rule":"evenodd"})])}function xt(e,o){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z","clip-rule":"evenodd"})])}function y2(e,o,n){return Array.isArray(e)?(e.length=Math.max(e.length,o),e.splice(o,1,n),n):(e[o]=n,n)}function H2(e,o){if(Array.isArray(e)){e.splice(o,1);return}delete e[o]}function wt(){return we().__VUE_DEVTOOLS_GLOBAL_HOOK__}function we(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const yt=typeof Proxy=="function",Et="devtools-plugin:setup",_t="plugin:settings:set";let o2,P2;function kt(){var e;return o2!==void 0||(typeof window<"u"&&window.performance?(o2=!0,P2=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(o2=!0,P2=globalThis.perf_hooks.performance):o2=!1),o2}function Lt(){return kt()?P2.now():Date.now()}class St{constructor(o,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=o,this.hook=n;const l={};if(o.settings)for(const i in o.settings){const r=o.settings[i];l[i]=r.defaultValue}const a=`__vue-devtools-plugin-settings__${o.id}`;let s=Object.assign({},l);try{const i=localStorage.getItem(a),r=JSON.parse(i);Object.assign(s,r)}catch{}this.fallbacks={getSettings(){return s},setSettings(i){try{localStorage.setItem(a,JSON.stringify(i))}catch{}s=i},now(){return Lt()}},n&&n.on(_t,(i,r)=>{i===this.plugin.id&&this.fallbacks.setSettings(r)}),this.proxiedOn=new Proxy({},{get:(i,r)=>this.target?this.target.on[r]:(...c)=>{this.onQueue.push({method:r,args:c})}}),this.proxiedTarget=new Proxy({},{get:(i,r)=>this.target?this.target[r]:r==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(r)?(...c)=>(this.targetQueue.push({method:r,args:c,resolve:()=>{}}),this.fallbacks[r](...c)):(...c)=>new Promise(d=>{this.targetQueue.push({method:r,args:c,resolve:d})})})}async setRealTarget(o){this.target=o;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function ye(e,o){const n=e,l=we(),a=wt(),s=yt&&n.enableEarlyProxy;if(a&&(l.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))a.emit(Et,e,o);else{const i=s?new St(n,a):null;(l.__VUE_DEVTOOLS_PLUGINS__=l.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:o,proxy:i}),i&&o(i.proxiedTarget)}}/*!
8
8
  * pinia v2.1.7
9
9
  * (c) 2023 Eduardo San Martin Morote
10
10
  * @license MIT
11
- */let f2;const p2=e=>f2=e,_e=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function e2(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var j;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(j||(j={}));const E2=typeof window<"u",m2=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&E2,ke=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Tt(e,{autoBom:o=!1}={}){return o&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function Z2(e,o,n){const l=new XMLHttpRequest;l.open("GET",e),l.responseType="blob",l.onload=function(){Ve(l.response,o,n)},l.onerror=function(){console.error("could not download file")},l.send()}function Se(e){const o=new XMLHttpRequest;o.open("HEAD",e,!1);try{o.send()}catch{}return o.status>=200&&o.status<=299}function _2(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const k2=typeof navigator=="object"?navigator:{userAgent:""},Le=/Macintosh/.test(k2.userAgent)&&/AppleWebKit/.test(k2.userAgent)&&!/Safari/.test(k2.userAgent),Ve=E2?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Le?Bt:"msSaveOrOpenBlob"in k2?$t:It:()=>{};function Bt(e,o="download",n){const l=document.createElement("a");l.download=o,l.rel="noopener",typeof e=="string"?(l.href=e,l.origin!==location.origin?Se(l.href)?Z2(e,o,n):(l.target="_blank",_2(l)):_2(l)):(l.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(l.href)},4e4),setTimeout(function(){_2(l)},0))}function $t(e,o="download",n){if(typeof e=="string")if(Se(e))Z2(e,o,n);else{const l=document.createElement("a");l.href=e,l.target="_blank",setTimeout(function(){_2(l)})}else navigator.msSaveOrOpenBlob(Tt(e,n),o)}function It(e,o,n,l){if(l=l||open("","_blank"),l&&(l.document.title=l.document.body.innerText="downloading..."),typeof e=="string")return Z2(e,o,n);const a=e.type==="application/octet-stream",s=/constructor/i.test(String(ke.HTMLElement))||"safari"in ke,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||a&&s||Le)&&typeof FileReader<"u"){const r=new FileReader;r.onloadend=function(){let c=r.result;if(typeof c!="string")throw l=null,new Error("Wrong reader.result type");c=i?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),l?l.location.href=c:location.assign(c),l=null},r.readAsDataURL(e)}else{const r=URL.createObjectURL(e);l?l.location.assign(r):location.href=r,l=null,setTimeout(function(){URL.revokeObjectURL(r)},4e4)}}function O(e,o){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,o):o==="error"?console.error(n):o==="warn"?console.warn(n):console.log(n)}function j2(e){return"_a"in e&&"install"in e}function Te(){if(!("clipboard"in navigator))return O("Your browser doesn't support the Clipboard API","error"),!0}function Be(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(O('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Mt(e){if(!Te())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),O("Global state copied to clipboard.")}catch(o){if(Be(o))return;O("Failed to serialize the state. Check the console for more details.","error"),console.error(o)}}async function Ot(e){if(!Te())try{$e(e,JSON.parse(await navigator.clipboard.readText())),O("Global state pasted from clipboard.")}catch(o){if(Be(o))return;O("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(o)}}async function Nt(e){try{Ve(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(o){O("Failed to export the state as JSON. Check the console for more details.","error"),console.error(o)}}let W;function Ft(){W||(W=document.createElement("input"),W.type="file",W.accept=".json");function e(){return new Promise((o,n)=>{W.onchange=async()=>{const l=W.files;if(!l)return o(null);const a=l.item(0);return o(a?{text:await a.text(),file:a}:null)},W.oncancel=()=>o(null),W.onerror=n,W.click()})}return e}async function At(e){try{const n=await Ft()();if(!n)return;const{text:l,file:a}=n;$e(e,JSON.parse(l)),O(`Global state imported from "${a.name}".`)}catch(o){O("Failed to import the state from JSON. Check the console for more details.","error"),console.error(o)}}function $e(e,o){for(const n in o){const l=e.state.value[n];l?Object.assign(l,o[n]):e.state.value[n]=o[n]}}function Z(e){return{_custom:{display:e}}}const Ie="🍍 Pinia (root)",z2="_root";function Rt(e){return j2(e)?{id:z2,label:Ie}:{id:e.$id,label:e.$id}}function Dt(e){if(j2(e)){const n=Array.from(e._s.keys()),l=e._s;return{state:n.map(s=>({editable:!0,key:s,value:e.state.value[s]})),getters:n.filter(s=>l.get(s)._getters).map(s=>{const i=l.get(s);return{editable:!1,key:s,value:i._getters.reduce((r,c)=>(r[c]=i[c],r),{})}})}}const o={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(o.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(o.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),o}function Ht(e){return e?Array.isArray(e)?e.reduce((o,n)=>(o.keys.push(n.key),o.operations.push(n.type),o.oldValue[n.key]=n.oldValue,o.newValue[n.key]=n.newValue,o),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Z(e.type),key:Z(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Pt(e){switch(e){case j.direct:return"mutation";case j.patchFunction:return"$patch";case j.patchObject:return"$patch";default:return"unknown"}}let l2=!0;const S2=[],t2="pinia:mutations",A="pinia",{assign:Zt}=Object,L2=e=>"🍍 "+e;function jt(e,o){Ee({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:S2,app:e},n=>{typeof n.now!="function"&&O("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:t2,label:"Pinia 🍍",color:15064968}),n.addInspector({id:A,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Mt(o)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Ot(o),n.sendInspectorTree(A),n.sendInspectorState(A)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Nt(o)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await At(o),n.sendInspectorTree(A),n.sendInspectorState(A)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:l=>{const a=o._s.get(l);a?typeof a.$reset!="function"?O(`Cannot reset "${l}" store because it doesn't have a "$reset" method implemented.`,"warn"):(a.$reset(),O(`Store "${l}" reset.`)):O(`Cannot reset "${l}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((l,a)=>{const s=l.componentInstance&&l.componentInstance.proxy;if(s&&s._pStores){const i=l.componentInstance.proxy._pStores;Object.values(i).forEach(r=>{l.instanceData.state.push({type:L2(r.$id),key:"state",editable:!0,value:r._isOptionsAPI?{_custom:{value:t.toRaw(r.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>r.$reset()}]}}:Object.keys(r.$state).reduce((c,d)=>(c[d]=r.$state[d],c),{})}),r._getters&&r._getters.length&&l.instanceData.state.push({type:L2(r.$id),key:"getters",editable:!1,value:r._getters.reduce((c,d)=>{try{c[d]=r[d]}catch(u){c[d]=u}return c},{})})})}}),n.on.getInspectorTree(l=>{if(l.app===e&&l.inspectorId===A){let a=[o];a=a.concat(Array.from(o._s.values())),l.rootNodes=(l.filter?a.filter(s=>"$id"in s?s.$id.toLowerCase().includes(l.filter.toLowerCase()):Ie.toLowerCase().includes(l.filter.toLowerCase())):a).map(Rt)}}),n.on.getInspectorState(l=>{if(l.app===e&&l.inspectorId===A){const a=l.nodeId===z2?o:o._s.get(l.nodeId);if(!a)return;a&&(l.state=Dt(a))}}),n.on.editInspectorState((l,a)=>{if(l.app===e&&l.inspectorId===A){const s=l.nodeId===z2?o:o._s.get(l.nodeId);if(!s)return O(`store "${l.nodeId}" not found`,"error");const{path:i}=l;j2(s)?i.unshift("state"):(i.length!==1||!s._customProperties.has(i[0])||i[0]in s.$state)&&i.unshift("$state"),l2=!1,l.set(s,i,l.state.value),l2=!0}}),n.on.editComponentState(l=>{if(l.type.startsWith("🍍")){const a=l.type.replace(/^🍍\s*/,""),s=o._s.get(a);if(!s)return O(`store "${a}" not found`,"error");const{path:i}=l;if(i[0]!=="state")return O(`Invalid path for store "${a}":
11
+ */let f2;const p2=e=>f2=e,Ee=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function e2(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var j;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(j||(j={}));const E2=typeof window<"u",m2=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&E2,_e=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Tt(e,{autoBom:o=!1}={}){return o&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function Z2(e,o,n){const l=new XMLHttpRequest;l.open("GET",e),l.responseType="blob",l.onload=function(){Se(l.response,o,n)},l.onerror=function(){console.error("could not download file")},l.send()}function ke(e){const o=new XMLHttpRequest;o.open("HEAD",e,!1);try{o.send()}catch{}return o.status>=200&&o.status<=299}function _2(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const k2=typeof navigator=="object"?navigator:{userAgent:""},Le=/Macintosh/.test(k2.userAgent)&&/AppleWebKit/.test(k2.userAgent)&&!/Safari/.test(k2.userAgent),Se=E2?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Le?Vt:"msSaveOrOpenBlob"in k2?Bt:$t:()=>{};function Vt(e,o="download",n){const l=document.createElement("a");l.download=o,l.rel="noopener",typeof e=="string"?(l.href=e,l.origin!==location.origin?ke(l.href)?Z2(e,o,n):(l.target="_blank",_2(l)):_2(l)):(l.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(l.href)},4e4),setTimeout(function(){_2(l)},0))}function Bt(e,o="download",n){if(typeof e=="string")if(ke(e))Z2(e,o,n);else{const l=document.createElement("a");l.href=e,l.target="_blank",setTimeout(function(){_2(l)})}else navigator.msSaveOrOpenBlob(Tt(e,n),o)}function $t(e,o,n,l){if(l=l||open("","_blank"),l&&(l.document.title=l.document.body.innerText="downloading..."),typeof e=="string")return Z2(e,o,n);const a=e.type==="application/octet-stream",s=/constructor/i.test(String(_e.HTMLElement))||"safari"in _e,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||a&&s||Le)&&typeof FileReader<"u"){const r=new FileReader;r.onloadend=function(){let c=r.result;if(typeof c!="string")throw l=null,new Error("Wrong reader.result type");c=i?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),l?l.location.href=c:location.assign(c),l=null},r.readAsDataURL(e)}else{const r=URL.createObjectURL(e);l?l.location.assign(r):location.href=r,l=null,setTimeout(function(){URL.revokeObjectURL(r)},4e4)}}function O(e,o){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,o):o==="error"?console.error(n):o==="warn"?console.warn(n):console.log(n)}function j2(e){return"_a"in e&&"install"in e}function Te(){if(!("clipboard"in navigator))return O("Your browser doesn't support the Clipboard API","error"),!0}function Ve(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(O('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function It(e){if(!Te())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),O("Global state copied to clipboard.")}catch(o){if(Ve(o))return;O("Failed to serialize the state. Check the console for more details.","error"),console.error(o)}}async function Mt(e){if(!Te())try{Be(e,JSON.parse(await navigator.clipboard.readText())),O("Global state pasted from clipboard.")}catch(o){if(Ve(o))return;O("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(o)}}async function Ot(e){try{Se(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(o){O("Failed to export the state as JSON. Check the console for more details.","error"),console.error(o)}}let W;function Nt(){W||(W=document.createElement("input"),W.type="file",W.accept=".json");function e(){return new Promise((o,n)=>{W.onchange=async()=>{const l=W.files;if(!l)return o(null);const a=l.item(0);return o(a?{text:await a.text(),file:a}:null)},W.oncancel=()=>o(null),W.onerror=n,W.click()})}return e}async function Ft(e){try{const n=await Nt()();if(!n)return;const{text:l,file:a}=n;Be(e,JSON.parse(l)),O(`Global state imported from "${a.name}".`)}catch(o){O("Failed to import the state from JSON. Check the console for more details.","error"),console.error(o)}}function Be(e,o){for(const n in o){const l=e.state.value[n];l?Object.assign(l,o[n]):e.state.value[n]=o[n]}}function Z(e){return{_custom:{display:e}}}const $e="🍍 Pinia (root)",z2="_root";function At(e){return j2(e)?{id:z2,label:$e}:{id:e.$id,label:e.$id}}function Rt(e){if(j2(e)){const n=Array.from(e._s.keys()),l=e._s;return{state:n.map(s=>({editable:!0,key:s,value:e.state.value[s]})),getters:n.filter(s=>l.get(s)._getters).map(s=>{const i=l.get(s);return{editable:!1,key:s,value:i._getters.reduce((r,c)=>(r[c]=i[c],r),{})}})}}const o={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(o.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(o.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),o}function Dt(e){return e?Array.isArray(e)?e.reduce((o,n)=>(o.keys.push(n.key),o.operations.push(n.type),o.oldValue[n.key]=n.oldValue,o.newValue[n.key]=n.newValue,o),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Z(e.type),key:Z(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Ht(e){switch(e){case j.direct:return"mutation";case j.patchFunction:return"$patch";case j.patchObject:return"$patch";default:return"unknown"}}let l2=!0;const L2=[],t2="pinia:mutations",A="pinia",{assign:Pt}=Object,S2=e=>"🍍 "+e;function Zt(e,o){ye({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:L2,app:e},n=>{typeof n.now!="function"&&O("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:t2,label:"Pinia 🍍",color:15064968}),n.addInspector({id:A,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{It(o)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Mt(o),n.sendInspectorTree(A),n.sendInspectorState(A)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Ot(o)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Ft(o),n.sendInspectorTree(A),n.sendInspectorState(A)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:l=>{const a=o._s.get(l);a?typeof a.$reset!="function"?O(`Cannot reset "${l}" store because it doesn't have a "$reset" method implemented.`,"warn"):(a.$reset(),O(`Store "${l}" reset.`)):O(`Cannot reset "${l}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((l,a)=>{const s=l.componentInstance&&l.componentInstance.proxy;if(s&&s._pStores){const i=l.componentInstance.proxy._pStores;Object.values(i).forEach(r=>{l.instanceData.state.push({type:S2(r.$id),key:"state",editable:!0,value:r._isOptionsAPI?{_custom:{value:t.toRaw(r.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>r.$reset()}]}}:Object.keys(r.$state).reduce((c,d)=>(c[d]=r.$state[d],c),{})}),r._getters&&r._getters.length&&l.instanceData.state.push({type:S2(r.$id),key:"getters",editable:!1,value:r._getters.reduce((c,d)=>{try{c[d]=r[d]}catch(u){c[d]=u}return c},{})})})}}),n.on.getInspectorTree(l=>{if(l.app===e&&l.inspectorId===A){let a=[o];a=a.concat(Array.from(o._s.values())),l.rootNodes=(l.filter?a.filter(s=>"$id"in s?s.$id.toLowerCase().includes(l.filter.toLowerCase()):$e.toLowerCase().includes(l.filter.toLowerCase())):a).map(At)}}),n.on.getInspectorState(l=>{if(l.app===e&&l.inspectorId===A){const a=l.nodeId===z2?o:o._s.get(l.nodeId);if(!a)return;a&&(l.state=Rt(a))}}),n.on.editInspectorState((l,a)=>{if(l.app===e&&l.inspectorId===A){const s=l.nodeId===z2?o:o._s.get(l.nodeId);if(!s)return O(`store "${l.nodeId}" not found`,"error");const{path:i}=l;j2(s)?i.unshift("state"):(i.length!==1||!s._customProperties.has(i[0])||i[0]in s.$state)&&i.unshift("$state"),l2=!1,l.set(s,i,l.state.value),l2=!0}}),n.on.editComponentState(l=>{if(l.type.startsWith("🍍")){const a=l.type.replace(/^🍍\s*/,""),s=o._s.get(a);if(!s)return O(`store "${a}" not found`,"error");const{path:i}=l;if(i[0]!=="state")return O(`Invalid path for store "${a}":
12
12
  ${i}
13
- Only state can be modified.`);i[0]="$state",l2=!1,l.set(s,i,l.state.value),l2=!0}})})}function zt(e,o){S2.includes(L2(o.$id))||S2.push(L2(o.$id)),Ee({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:S2,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const l=typeof n.now=="function"?n.now.bind(n):Date.now;o.$onAction(({after:i,onError:r,name:c,args:d})=>{const u=Me++;n.addTimelineEvent({layerId:t2,event:{time:l(),title:"🛫 "+c,subtitle:"start",data:{store:Z(o.$id),action:Z(c),args:d},groupId:u}}),i(f=>{q=void 0,n.addTimelineEvent({layerId:t2,event:{time:l(),title:"🛬 "+c,subtitle:"end",data:{store:Z(o.$id),action:Z(c),args:d,result:f},groupId:u}})}),r(f=>{q=void 0,n.addTimelineEvent({layerId:t2,event:{time:l(),logType:"error",title:"💥 "+c,subtitle:"end",data:{store:Z(o.$id),action:Z(c),args:d,error:f},groupId:u}})})},!0),o._customProperties.forEach(i=>{t.watch(()=>t.unref(o[i]),(r,c)=>{n.notifyComponentUpdate(),n.sendInspectorState(A),l2&&n.addTimelineEvent({layerId:t2,event:{time:l(),title:"Change",subtitle:i,data:{newValue:r,oldValue:c},groupId:q}})},{deep:!0})}),o.$subscribe(({events:i,type:r},c)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(A),!l2)return;const d={time:l(),title:Pt(r),data:Zt({store:Z(o.$id)},Ht(i)),groupId:q};r===j.patchFunction?d.subtitle="⤵️":r===j.patchObject?d.subtitle="🧩":i&&!Array.isArray(i)&&(d.subtitle=i.type),i&&(d.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:t2,event:d})},{detached:!0,flush:"sync"});const a=o._hotUpdate;o._hotUpdate=t.markRaw(i=>{a(i),n.addTimelineEvent({layerId:t2,event:{time:l(),title:"🔥 "+o.$id,subtitle:"HMR update",data:{store:Z(o.$id),info:Z("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(A),n.sendInspectorState(A)});const{$dispose:s}=o;o.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(A),n.sendInspectorState(A),n.getSettings().logStoreChanges&&O(`Disposed "${o.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(A),n.sendInspectorState(A),n.getSettings().logStoreChanges&&O(`"${o.$id}" store installed 🆕`)})}let Me=0,q;function Oe(e,o,n){const l=o.reduce((a,s)=>(a[s]=t.toRaw(e)[s],a),{});for(const a in l)e[a]=function(){const s=Me,i=n?new Proxy(e,{get(...c){return q=s,Reflect.get(...c)},set(...c){return q=s,Reflect.set(...c)}}):e;q=s;const r=l[a].apply(i,arguments);return q=void 0,r}}function Ut({app:e,store:o,options:n}){if(o.$id.startsWith("__hot:"))return;o._isOptionsAPI=!!n.state,Oe(o,Object.keys(n.actions),o._isOptionsAPI);const l=o._hotUpdate;t.toRaw(o)._hotUpdate=function(a){l.apply(this,arguments),Oe(o,Object.keys(a._hmrPayload.actions),!!o._isOptionsAPI)},zt(e,o)}function Wt(){const e=t.effectScope(!0),o=e.run(()=>t.ref({}));let n=[],l=[];const a=t.markRaw({install(s){p2(a),a._a=s,s.provide(_e,a),s.config.globalProperties.$pinia=a,m2&&jt(s,a),l.forEach(i=>n.push(i)),l=[]},use(s){return!this._a&&!we?l.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:o});return m2&&typeof Proxy<"u"&&a.use(Ut),a}function Ne(e,o){for(const n in o){const l=o[n];if(!(n in e))continue;const a=e[n];e2(a)&&e2(l)&&!t.isRef(l)&&!t.isReactive(l)?e[n]=Ne(a,l):e[n]=l}return e}const Fe=()=>{};function Ae(e,o,n,l=Fe){e.push(o);const a=()=>{const s=e.indexOf(o);s>-1&&(e.splice(s,1),l())};return!n&&t.getCurrentScope()&&t.onScopeDispose(a),a}function a2(e,...o){e.slice().forEach(n=>{n(...o)})}const qt=e=>e();function U2(e,o){e instanceof Map&&o instanceof Map&&o.forEach((n,l)=>e.set(l,n)),e instanceof Set&&o instanceof Set&&o.forEach(e.add,e);for(const n in o){if(!o.hasOwnProperty(n))continue;const l=o[n],a=e[n];e2(a)&&e2(l)&&e.hasOwnProperty(n)&&!t.isRef(l)&&!t.isReactive(l)?e[n]=U2(a,l):e[n]=l}return e}const Gt=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Jt(e){return!e2(e)||!e.hasOwnProperty(Gt)}const{assign:D}=Object;function Re(e){return!!(t.isRef(e)&&e.effect)}function De(e,o,n,l){const{state:a,actions:s,getters:i}=o,r=n.state.value[e];let c;function d(){!r&&(process.env.NODE_ENV==="production"||!l)&&(n.state.value[e]=a?a():{});const u=process.env.NODE_ENV!=="production"&&l?t.toRefs(t.ref(a?a():{}).value):t.toRefs(n.state.value[e]);return D(u,s,Object.keys(i||{}).reduce((f,v)=>(process.env.NODE_ENV!=="production"&&v in u&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${v}" in store "${e}".`),f[v]=t.markRaw(t.computed(()=>{p2(n);const h=n._s.get(e);return i[v].call(h,h)})),f),{}))}return c=W2(e,d,o,n,l,!0),c}function W2(e,o,n={},l,a,s){let i;const r=D({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!l._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&!we&&(c.onTrigger=p=>{d?h=p:d==!1&&!y._hotUpdating&&(Array.isArray(h)?h.push(p):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let d,u,f=[],v=[],h;const b=l.state.value[e];!s&&!b&&(process.env.NODE_ENV==="production"||!a)&&(l.state.value[e]={});const g=t.ref({});let V;function x(p){let m;d=u=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof p=="function"?(p(l.state.value[e]),m={type:j.patchFunction,storeId:e,events:h}):(U2(l.state.value[e],p),m={type:j.patchObject,payload:p,storeId:e,events:h});const k=V=Symbol();t.nextTick().then(()=>{V===k&&(d=!0)}),u=!0,a2(f,m,l.state.value[e])}const C=s?function(){const{state:m}=n,k=m?m():{};this.$patch(L=>{D(L,k)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Fe;function _(){i.stop(),f=[],v=[],l._s.delete(e)}function S(p,m){return function(){p2(l);const k=Array.from(arguments),L=[],I=[];function M(N){L.push(N)}function H(N){I.push(N)}a2(v,{args:k,name:p,store:y,after:M,onError:H});let P;try{P=m.apply(this&&this.$id===e?this:y,k)}catch(N){throw a2(I,N),N}return P instanceof Promise?P.then(N=>(a2(L,N),N)).catch(N=>(a2(I,N),Promise.reject(N))):(a2(L,P),P)}}const w=t.markRaw({actions:{},getters:{},state:[],hotState:g}),T={_p:l,$id:e,$onAction:Ae.bind(null,v),$patch:x,$reset:C,$subscribe(p,m={}){const k=Ae(f,p,m.detached,()=>L()),L=i.run(()=>t.watch(()=>l.state.value[e],I=>{(m.flush==="sync"?u:d)&&p({storeId:e,type:j.direct,events:h},I)},D({},c,m)));return k},$dispose:_},y=t.reactive(process.env.NODE_ENV!=="production"||m2?D({_hmrPayload:w,_customProperties:t.markRaw(new Set)},T):T);l._s.set(e,y);const B=(l._a&&l._a.runWithContext||qt)(()=>l._e.run(()=>(i=t.effectScope()).run(o)));for(const p in B){const m=B[p];if(t.isRef(m)&&!Re(m)||t.isReactive(m))process.env.NODE_ENV!=="production"&&a?y2(g.value,p,t.toRef(B,p)):s||(b&&Jt(m)&&(t.isRef(m)?m.value=b[p]:U2(m,b[p])),l.state.value[e][p]=m),process.env.NODE_ENV!=="production"&&w.state.push(p);else if(typeof m=="function"){const k=process.env.NODE_ENV!=="production"&&a?m:S(p,m);B[p]=k,process.env.NODE_ENV!=="production"&&(w.actions[p]=m),r.actions[p]=m}else process.env.NODE_ENV!=="production"&&Re(m)&&(w.getters[p]=s?n.getters[p]:m,E2&&(B._getters||(B._getters=t.markRaw([]))).push(p))}if(D(y,B),D(t.toRaw(y),B),Object.defineProperty(y,"$state",{get:()=>process.env.NODE_ENV!=="production"&&a?g.value:l.state.value[e],set:p=>{if(process.env.NODE_ENV!=="production"&&a)throw new Error("cannot set hotState");x(m=>{D(m,p)})}}),process.env.NODE_ENV!=="production"&&(y._hotUpdate=t.markRaw(p=>{y._hotUpdating=!0,p._hmrPayload.state.forEach(m=>{if(m in y.$state){const k=p.$state[m],L=y.$state[m];typeof k=="object"&&e2(k)&&e2(L)?Ne(k,L):p.$state[m]=L}y2(y,m,t.toRef(p.$state,m))}),Object.keys(y.$state).forEach(m=>{m in p.$state||H2(y,m)}),d=!1,u=!1,l.state.value[e]=t.toRef(p._hmrPayload,"hotState"),u=!0,t.nextTick().then(()=>{d=!0});for(const m in p._hmrPayload.actions){const k=p[m];y2(y,m,S(m,k))}for(const m in p._hmrPayload.getters){const k=p._hmrPayload.getters[m],L=s?t.computed(()=>(p2(l),k.call(y,y))):k;y2(y,m,L)}Object.keys(y._hmrPayload.getters).forEach(m=>{m in p._hmrPayload.getters||H2(y,m)}),Object.keys(y._hmrPayload.actions).forEach(m=>{m in p._hmrPayload.actions||H2(y,m)}),y._hmrPayload=p._hmrPayload,y._getters=p._getters,y._hotUpdating=!1})),m2){const p={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(m=>{Object.defineProperty(y,m,D({value:y[m]},p))})}return l._p.forEach(p=>{if(m2){const m=i.run(()=>p({store:y,app:l._a,pinia:l,options:r}));Object.keys(m||{}).forEach(k=>y._customProperties.add(k)),D(y,m)}else D(y,i.run(()=>p({store:y,app:l._a,pinia:l,options:r})))}),process.env.NODE_ENV!=="production"&&y.$state&&typeof y.$state=="object"&&typeof y.$state.constructor=="function"&&!y.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
13
+ Only state can be modified.`);i[0]="$state",l2=!1,l.set(s,i,l.state.value),l2=!0}})})}function jt(e,o){L2.includes(S2(o.$id))||L2.push(S2(o.$id)),ye({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:L2,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const l=typeof n.now=="function"?n.now.bind(n):Date.now;o.$onAction(({after:i,onError:r,name:c,args:d})=>{const u=Ie++;n.addTimelineEvent({layerId:t2,event:{time:l(),title:"🛫 "+c,subtitle:"start",data:{store:Z(o.$id),action:Z(c),args:d},groupId:u}}),i(f=>{q=void 0,n.addTimelineEvent({layerId:t2,event:{time:l(),title:"🛬 "+c,subtitle:"end",data:{store:Z(o.$id),action:Z(c),args:d,result:f},groupId:u}})}),r(f=>{q=void 0,n.addTimelineEvent({layerId:t2,event:{time:l(),logType:"error",title:"💥 "+c,subtitle:"end",data:{store:Z(o.$id),action:Z(c),args:d,error:f},groupId:u}})})},!0),o._customProperties.forEach(i=>{t.watch(()=>t.unref(o[i]),(r,c)=>{n.notifyComponentUpdate(),n.sendInspectorState(A),l2&&n.addTimelineEvent({layerId:t2,event:{time:l(),title:"Change",subtitle:i,data:{newValue:r,oldValue:c},groupId:q}})},{deep:!0})}),o.$subscribe(({events:i,type:r},c)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(A),!l2)return;const d={time:l(),title:Ht(r),data:Pt({store:Z(o.$id)},Dt(i)),groupId:q};r===j.patchFunction?d.subtitle="⤵️":r===j.patchObject?d.subtitle="🧩":i&&!Array.isArray(i)&&(d.subtitle=i.type),i&&(d.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:t2,event:d})},{detached:!0,flush:"sync"});const a=o._hotUpdate;o._hotUpdate=t.markRaw(i=>{a(i),n.addTimelineEvent({layerId:t2,event:{time:l(),title:"🔥 "+o.$id,subtitle:"HMR update",data:{store:Z(o.$id),info:Z("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(A),n.sendInspectorState(A)});const{$dispose:s}=o;o.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(A),n.sendInspectorState(A),n.getSettings().logStoreChanges&&O(`Disposed "${o.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(A),n.sendInspectorState(A),n.getSettings().logStoreChanges&&O(`"${o.$id}" store installed 🆕`)})}let Ie=0,q;function Me(e,o,n){const l=o.reduce((a,s)=>(a[s]=t.toRaw(e)[s],a),{});for(const a in l)e[a]=function(){const s=Ie,i=n?new Proxy(e,{get(...c){return q=s,Reflect.get(...c)},set(...c){return q=s,Reflect.set(...c)}}):e;q=s;const r=l[a].apply(i,arguments);return q=void 0,r}}function zt({app:e,store:o,options:n}){if(o.$id.startsWith("__hot:"))return;o._isOptionsAPI=!!n.state,Me(o,Object.keys(n.actions),o._isOptionsAPI);const l=o._hotUpdate;t.toRaw(o)._hotUpdate=function(a){l.apply(this,arguments),Me(o,Object.keys(a._hmrPayload.actions),!!o._isOptionsAPI)},jt(e,o)}function Ut(){const e=t.effectScope(!0),o=e.run(()=>t.ref({}));let n=[],l=[];const a=t.markRaw({install(s){p2(a),a._a=s,s.provide(Ee,a),s.config.globalProperties.$pinia=a,m2&&Zt(s,a),l.forEach(i=>n.push(i)),l=[]},use(s){return this._a?n.push(s):l.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:o});return m2&&typeof Proxy<"u"&&a.use(zt),a}function Oe(e,o){for(const n in o){const l=o[n];if(!(n in e))continue;const a=e[n];e2(a)&&e2(l)&&!t.isRef(l)&&!t.isReactive(l)?e[n]=Oe(a,l):e[n]=l}return e}const Ne=()=>{};function Fe(e,o,n,l=Ne){e.push(o);const a=()=>{const s=e.indexOf(o);s>-1&&(e.splice(s,1),l())};return!n&&t.getCurrentScope()&&t.onScopeDispose(a),a}function a2(e,...o){e.slice().forEach(n=>{n(...o)})}const Wt=e=>e();function U2(e,o){e instanceof Map&&o instanceof Map&&o.forEach((n,l)=>e.set(l,n)),e instanceof Set&&o instanceof Set&&o.forEach(e.add,e);for(const n in o){if(!o.hasOwnProperty(n))continue;const l=o[n],a=e[n];e2(a)&&e2(l)&&e.hasOwnProperty(n)&&!t.isRef(l)&&!t.isReactive(l)?e[n]=U2(a,l):e[n]=l}return e}const qt=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Gt(e){return!e2(e)||!e.hasOwnProperty(qt)}const{assign:D}=Object;function Ae(e){return!!(t.isRef(e)&&e.effect)}function Re(e,o,n,l){const{state:a,actions:s,getters:i}=o,r=n.state.value[e];let c;function d(){!r&&(process.env.NODE_ENV==="production"||!l)&&(n.state.value[e]=a?a():{});const u=process.env.NODE_ENV!=="production"&&l?t.toRefs(t.ref(a?a():{}).value):t.toRefs(n.state.value[e]);return D(u,s,Object.keys(i||{}).reduce((f,v)=>(process.env.NODE_ENV!=="production"&&v in u&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${v}" in store "${e}".`),f[v]=t.markRaw(t.computed(()=>{p2(n);const g=n._s.get(e);return i[v].call(g,g)})),f),{}))}return c=W2(e,d,o,n,l,!0),c}function W2(e,o,n={},l,a,s){let i;const r=D({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!l._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&(c.onTrigger=p=>{d?g=p:d==!1&&!y._hotUpdating&&(Array.isArray(g)?g.push(p):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let d,u,f=[],v=[],g;const b=l.state.value[e];!s&&!b&&(process.env.NODE_ENV==="production"||!a)&&(l.state.value[e]={});const h=t.ref({});let T;function x(p){let m;d=u=!1,process.env.NODE_ENV!=="production"&&(g=[]),typeof p=="function"?(p(l.state.value[e]),m={type:j.patchFunction,storeId:e,events:g}):(U2(l.state.value[e],p),m={type:j.patchObject,payload:p,storeId:e,events:g});const k=T=Symbol();t.nextTick().then(()=>{T===k&&(d=!0)}),u=!0,a2(f,m,l.state.value[e])}const C=s?function(){const{state:m}=n,k=m?m():{};this.$patch(S=>{D(S,k)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Ne;function _(){i.stop(),f=[],v=[],l._s.delete(e)}function L(p,m){return function(){p2(l);const k=Array.from(arguments),S=[],I=[];function M(N){S.push(N)}function H(N){I.push(N)}a2(v,{args:k,name:p,store:y,after:M,onError:H});let P;try{P=m.apply(this&&this.$id===e?this:y,k)}catch(N){throw a2(I,N),N}return P instanceof Promise?P.then(N=>(a2(S,N),N)).catch(N=>(a2(I,N),Promise.reject(N))):(a2(S,P),P)}}const w=t.markRaw({actions:{},getters:{},state:[],hotState:h}),V={_p:l,$id:e,$onAction:Fe.bind(null,v),$patch:x,$reset:C,$subscribe(p,m={}){const k=Fe(f,p,m.detached,()=>S()),S=i.run(()=>t.watch(()=>l.state.value[e],I=>{(m.flush==="sync"?u:d)&&p({storeId:e,type:j.direct,events:g},I)},D({},c,m)));return k},$dispose:_},y=t.reactive(process.env.NODE_ENV!=="production"||m2?D({_hmrPayload:w,_customProperties:t.markRaw(new Set)},V):V);l._s.set(e,y);const B=(l._a&&l._a.runWithContext||Wt)(()=>l._e.run(()=>(i=t.effectScope()).run(o)));for(const p in B){const m=B[p];if(t.isRef(m)&&!Ae(m)||t.isReactive(m))process.env.NODE_ENV!=="production"&&a?y2(h.value,p,t.toRef(B,p)):s||(b&&Gt(m)&&(t.isRef(m)?m.value=b[p]:U2(m,b[p])),l.state.value[e][p]=m),process.env.NODE_ENV!=="production"&&w.state.push(p);else if(typeof m=="function"){const k=process.env.NODE_ENV!=="production"&&a?m:L(p,m);B[p]=k,process.env.NODE_ENV!=="production"&&(w.actions[p]=m),r.actions[p]=m}else process.env.NODE_ENV!=="production"&&Ae(m)&&(w.getters[p]=s?n.getters[p]:m,E2&&(B._getters||(B._getters=t.markRaw([]))).push(p))}if(D(y,B),D(t.toRaw(y),B),Object.defineProperty(y,"$state",{get:()=>process.env.NODE_ENV!=="production"&&a?h.value:l.state.value[e],set:p=>{if(process.env.NODE_ENV!=="production"&&a)throw new Error("cannot set hotState");x(m=>{D(m,p)})}}),process.env.NODE_ENV!=="production"&&(y._hotUpdate=t.markRaw(p=>{y._hotUpdating=!0,p._hmrPayload.state.forEach(m=>{if(m in y.$state){const k=p.$state[m],S=y.$state[m];typeof k=="object"&&e2(k)&&e2(S)?Oe(k,S):p.$state[m]=S}y2(y,m,t.toRef(p.$state,m))}),Object.keys(y.$state).forEach(m=>{m in p.$state||H2(y,m)}),d=!1,u=!1,l.state.value[e]=t.toRef(p._hmrPayload,"hotState"),u=!0,t.nextTick().then(()=>{d=!0});for(const m in p._hmrPayload.actions){const k=p[m];y2(y,m,L(m,k))}for(const m in p._hmrPayload.getters){const k=p._hmrPayload.getters[m],S=s?t.computed(()=>(p2(l),k.call(y,y))):k;y2(y,m,S)}Object.keys(y._hmrPayload.getters).forEach(m=>{m in p._hmrPayload.getters||H2(y,m)}),Object.keys(y._hmrPayload.actions).forEach(m=>{m in p._hmrPayload.actions||H2(y,m)}),y._hmrPayload=p._hmrPayload,y._getters=p._getters,y._hotUpdating=!1})),m2){const p={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(m=>{Object.defineProperty(y,m,D({value:y[m]},p))})}return l._p.forEach(p=>{if(m2){const m=i.run(()=>p({store:y,app:l._a,pinia:l,options:r}));Object.keys(m||{}).forEach(k=>y._customProperties.add(k)),D(y,m)}else D(y,i.run(()=>p({store:y,app:l._a,pinia:l,options:r})))}),process.env.NODE_ENV!=="production"&&y.$state&&typeof y.$state=="object"&&typeof y.$state.constructor=="function"&&!y.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
14
14
  state: () => new MyClass()
15
- Found in store "${y.$id}".`),b&&s&&n.hydrate&&n.hydrate(y.$state,b),d=!0,u=!0,y}function h2(e,o,n){let l,a;const s=typeof o=="function";if(typeof e=="string")l=e,a=s?n:o;else if(a=e,l=e.id,process.env.NODE_ENV!=="production"&&typeof l!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function i(r,c){const d=t.hasInjectionContext();if(r=(process.env.NODE_ENV==="test"&&f2&&f2._testing?null:r)||(d?t.inject(_e,null):null),r&&p2(r),process.env.NODE_ENV!=="production"&&!f2)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
15
+ Found in store "${y.$id}".`),b&&s&&n.hydrate&&n.hydrate(y.$state,b),d=!0,u=!0,y}function h2(e,o,n){let l,a;const s=typeof o=="function";if(typeof e=="string")l=e,a=s?n:o;else if(a=e,l=e.id,process.env.NODE_ENV!=="production"&&typeof l!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function i(r,c){const d=t.hasInjectionContext();if(r=(process.env.NODE_ENV==="test"&&f2&&f2._testing?null:r)||(d?t.inject(Ee,null):null),r&&p2(r),process.env.NODE_ENV!=="production"&&!f2)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
16
16
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
17
- This will fail in production.`);r=f2,r._s.has(l)||(s?W2(l,o,a,r):De(l,a,r),process.env.NODE_ENV!=="production"&&(i._pinia=r));const u=r._s.get(l);if(process.env.NODE_ENV!=="production"&&c){const f="__hot:"+l,v=s?W2(f,o,a,r,!0):De(f,D({},a),r,!0);c._hotUpdate(v),delete r.state.value[f],r._s.delete(f)}if(process.env.NODE_ENV!=="production"&&E2){const f=t.getCurrentInstance();if(f&&f.proxy&&!c){const v=f.proxy,h="_pStores"in v?v._pStores:v._pStores={};h[l]=u}}return u}return i.$id=l,i}const n2=h2("loader",()=>{const e=t.ref({translation:!1,aiExplanation:!1,writing:!1});return{loadingStates:e,setLoading:(l,a)=>{e.value[l]=a},isLoading:l=>e.value[l]}}),He={__name:"Select",props:t.mergeModels({languages:{type:Object,required:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const o=n2(),n=e,l=t.useModel(e,"modelValue"),a=t.ref(""),s=t.ref(null),i=t.computed(()=>Object.entries(n.languages).filter(([,c])=>c.toLowerCase().includes(a.value.toLowerCase()))),r=c=>{c.target.value="",a.value="",s.value&&s.value.$el.click()};return(c,d)=>(t.openBlock(),t.createBlock(t.unref(mt),{modelValue:l.value,"onUpdate:modelValue":d[3]||(d[3]=u=>l.value=u),disabled:t.unref(o).loading,as:"div",class:"relative mt-1"},{default:t.withCtx(()=>[t.createVNode(t.unref(gt),{class:"w-full bg-white border border-gray-300 rounded py-2.5 pl-3 pr-10 text-sm text-gray-800 font-medium focus:outline-none focus:ring-0.5 focus:ring-gray-400 focus:border-gray-400",onChange:d[0]||(d[0]=u=>a.value=u.target.value),displayValue:u=>e.languages[u],onFocus:d[1]||(d[1]=u=>r(u))},null,8,["displayValue"]),t.createVNode(t.unref(ht),{ref_key:"btnSelect",ref:s,class:"absolute inset-y-0 right-0 flex items-center pr-2"},{default:t.withCtx(()=>[t.createVNode(t.unref(xt),{class:"h-5 w-5 text-gray-400","aria-hidden":"true",onClick:d[2]||(d[2]=u=>r(u))})]),_:1},512),t.createVNode(t.unref(Ct),{class:"absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm z-50"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,([u,f])=>(t.openBlock(),t.createBlock(t.unref(bt),{key:u,value:u},{default:t.withCtx(({active:v,selected:h})=>[t.createElementVNode("li",{class:t.normalizeClass(["relative cursor-default select-none py-2 pl-3 pr-9",v?"bg-[#3B5695] text-white":"text-textCustom"])},[t.createElementVNode("span",{class:t.normalizeClass(["block truncate",h&&"font-semibold"])},t.toDisplayString(f),3)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue","disabled"]))}},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='M3.68688%202.3131C3.88214%202.50837%203.88214%202.82495%203.68688%203.02021L2.04043%204.66666L3.68688%206.3131C3.88214%206.50837%203.88214%206.82495%203.68688%207.02021C3.49162%207.21547%203.17504%207.21547%202.97977%207.02021L0.979775%205.02021C0.784513%204.82495%200.784513%204.50837%200.979775%204.3131L2.97977%202.3131C3.17504%202.11784%203.49162%202.11784%203.68688%202.3131Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M12.3131%208.97977C12.5084%208.78451%2012.825%208.78451%2013.0202%208.97977L15.0202%2010.9798C15.2155%2011.175%2015.2155%2011.4916%2015.0202%2011.6869L13.0202%2013.6869C12.825%2013.8821%2012.5084%2013.8821%2012.3131%2013.6869C12.1178%2013.4916%2012.1178%2013.175%2012.3131%2012.9798L13.9596%2011.3333L12.3131%209.68688C12.1178%209.49161%2012.1178%209.17503%2012.3131%208.97977Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M0.833328%204.66666C0.833328%204.39051%201.05719%204.16666%201.33333%204.16666H14.6667C14.9428%204.16666%2015.1667%204.39051%2015.1667%204.66666C15.1667%204.9428%2014.9428%205.16666%2014.6667%205.16666H1.33333C1.05719%205.16666%200.833328%204.9428%200.833328%204.66666Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M0.833328%2011.3333C0.833328%2011.0572%201.05719%2010.8333%201.33333%2010.8333H14.6667C14.9428%2010.8333%2015.1667%2011.0572%2015.1667%2011.3333C15.1667%2011.6095%2014.9428%2011.8333%2014.6667%2011.8333H1.33333C1.05719%2011.8333%200.833328%2011.6095%200.833328%2011.3333Z'%20fill='%237E7E7E'/%3e%3c/svg%3e",Yt=["disabled"],Qt=[t.createElementVNode("img",{src:Pe,alt:"swap",class:"w-4"},null,-1)],Xt=["disabled"],Kt=[t.createElementVNode("img",{src:Pe,alt:"swap",class:"w-4"},null,-1)],e1={__name:"SwapBtn",props:{isBidirect:{type:Boolean,default:!1}},emits:["swap"],setup(e,{emit:o}){const n=n2(),l=t.computed(()=>n.isLoading("translation")),a=o;return(s,i)=>e.isBidirect?(t.openBlock(),t.createElementBlock("button",{key:1,onClick:i[0]||(i[0]=r=>a("swap")),disabled:l.value},Kt,8,Xt)):(t.openBlock(),t.createElementBlock("button",{key:0,disabled:l.value},Qt,8,Yt))}},s2=h2("language",()=>{const e=t.ref("auto"),o=t.ref("vi"),n=t.ref({src:[],target:[]}),l=t.computed(()=>n.value.src[e.value]),a=t.computed(()=>n.value.target[o.value]);function s(c,d){e.value=c==null?void 0:c.src,o.value=c==null?void 0:c.target,n.value=d}function i(){if(!n.value.src[o.value]||!n.value.target[e.value])return;const c=e.value;e.value=o.value,o.value=c}function r(c){return n.value.src[c]||n.value.target[c]}return{languages:n,src:e,target:o,srcLabel:l,targetLabel:a,init:s,swap:i,getLabel:r}}),t1={key:0,class:"flex flex-col"},n1={class:"flex"},o1={class:"grow flex flex-col"},l1={key:0,class:"flex mt-1 space-x-1"},a1=["onClick"],s1={class:"grow flex flex-col"},r1={key:0,class:"flex mt-1 space-x-1 justify-end"},i1=["onClick"],c1={class:"flex"},d1={class:"grow flex flex-col"},u1={class:"grow flex flex-col"},Ze=3,f1={__name:"Selects",setup(e){const o=s2(),n=t.ref([]),l=t.ref([]);function a(){o.swap()}return t.onMounted(()=>{var s,i;n.value=((s=b2.getLocalStorage("recentSrc"))==null?void 0:s.filter(r=>!!r))||[],l.value=((i=b2.getLocalStorage("recentTarget"))==null?void 0:i.filter(r=>!!r))||[]}),t.watch(()=>o.src,s=>{s&&(n.value.includes(s)||(n.value.unshift(s),n.value=n.value.slice(0,Ze),b2.setLocalStorage("recentSrc",n.value)))}),t.watch(()=>o.target,s=>{s&&(l.value.includes(s)||(l.value.unshift(s),l.value=l.value.slice(0,Ze),b2.setLocalStorage("recentTarget",l.value)))}),(s,i)=>t.unref(o).languages?(t.openBlock(),t.createElementBlock("div",t1,[t.createElementVNode("div",n1,[t.createElementVNode("div",o1,[n.value.length>0?(t.openBlock(),t.createElementBlock("div",l1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,r=>(t.openBlock(),t.createElementBlock("button",{key:r,class:"px-1 bg-baseColor border border-primaryColor text-primaryColor text-xs rounded hover:bg-primaryColor hover:text-baseColor",onClick:c=>t.unref(o).src=r},t.toDisplayString(t.unref(o).languages.src[r]),9,a1))),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",s1,[l.value.length>0?(t.openBlock(),t.createElementBlock("div",r1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,r=>(t.openBlock(),t.createElementBlock("button",{key:r,class:"px-1 bg-baseColor border border-primaryColor text-primaryColor text-xs rounded hover:bg-primaryColor hover:text-baseColor",onClick:c=>t.unref(o).target=r},t.toDisplayString(t.unref(o).languages.target[r]),9,i1))),128))])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",c1,[t.createElementVNode("div",d1,[t.createVNode(He,{modelValue:t.unref(o).src,"onUpdate:modelValue":i[0]||(i[0]=r=>t.unref(o).src=r),languages:t.unref(o).languages.src,class:"grow"},null,8,["modelValue","languages"])]),t.createVNode(e1,{isBidirect:t.unref(o).src!=="auto",class:"grow-0 mx-3 mt-4 self-start",onSwap:a},null,8,["isBidirect"]),t.createElementVNode("div",u1,[t.createVNode(He,{modelValue:t.unref(o).target,"onUpdate:modelValue":i[1]||(i[1]=r=>t.unref(o).target=r),languages:t.unref(o).languages.target,class:"grow"},null,8,["modelValue","languages"])])])])):t.createCommentVNode("",!0)}},r2={INPUT_MAX_LENGTH:5e3,INPUT_DEBOUNCE:1e3,IMPROVE_INPUT_MIN_LENGTH:4,DEFAULT_DIFF_MODE:!0},G=(e,o)=>{const n=e.__vccOpts||e;for(const[l,a]of o)n[l]=a;return n},p1={},m1={class:"mr-2 loading loading-dots loading-xs"};function h1(e,o){return t.openBlock(),t.createElementBlock("span",m1)}const q2=G(p1,[["render",h1]]),G2=h2("tts",()=>{const e=t.ref({src:null,target:null});function o(a){a.src&&(e.value.src=a.src),a.target&&(e.value.target=a.target)}function n(a){if(a==="src")return e.value.src;if(a==="target")return e.value.target}function l(){e.value={src:null,target:null}}return{tts:e,set:o,get:n,reset:l}}),g1="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",C1="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",b1=["disabled"],v1=["src"],x1=["src"],w1={__name:"SpeakBtn",props:{type:{type:String,default:""},disabled:Boolean},emits:["loadTTS"],setup(e,{emit:o}){const n=G2(),l=e,a=o,s=t.computed(()=>n.tts[l.type]),i=t.ref(!1),r=new Audio;t.watch(s,()=>{if(!s.value){i.value=!1;return}d()},{immediate:!0}),t.onUnmounted(()=>{u(),r.src=""});function c(){if(s.value){d();return}i.value=!0,a("loadTTS")}function d(){s.value&&(r.src=s.value,i.value=!0,r.play().catch(()=>{i.value=!1}))}function u(){r.pause(),r.currentTime=0,i.value=!1}return r.onended=()=>{i.value=!1},(f,v)=>i.value?(t.openBlock(),t.createElementBlock("button",{key:1,class:"btn btn-xs btn-circle",onClick:t.withModifiers(u,["prevent"])},[t.createElementVNode("img",{src:t.unref(C1),alt:"Stop",class:"w-4"},null,8,x1)])):(t.openBlock(),t.createElementBlock("button",{key:0,class:t.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-transparent !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled,onClick:t.withModifiers(c,["prevent"])},[t.createElementVNode("img",{src:t.unref(g1),alt:"Play",class:t.normalizeClass(["w-4",[{"opacity-100":!e.disabled},{"opacity-50 transform ":e.disabled}]])},null,10,v1)],10,b1))}},y1="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",E1={class:"tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2","data-tip":"Clear"},_1=["disabled"],k1=["src"],je={__name:"ClearBtn",props:{disabled:Boolean},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("div",E1,[t.createElementVNode("button",{class:t.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-transparent !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled},[t.createElementVNode("img",{src:t.unref(y1),alt:"Clear",class:t.normalizeClass(["w-4",[{"opacity-100":!e.disabled},{"opacity-50 transform ":e.disabled}]])},null,10,k1)],10,_1)]))}},S1="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",L1="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",V1={class:"tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2","data-tip":"Favorite"},T1=["disabled"],B1=["src"],$1={__name:"FavoriteBtn",props:{disabled:Boolean,isFilled:Boolean},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("div",V1,[t.createElementVNode("button",{class:t.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-transparent !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled},[t.createElementVNode("img",{src:e.isFilled?t.unref(S1):t.unref(L1),alt:"Favorite",class:t.normalizeClass(["w-4",[{"opacity-100":!e.disabled},{"opacity-50 transform ":e.disabled}]])},null,10,B1)],10,T1)]))}},I1="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",M1="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",O1={class:"tooltip tooltip-top tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!text-xs before:!py-1 before:!px-2","data-tip":"AI Translate"},N1=["disabled"],F1=["src"],A1={__name:"AIBtn",props:{disabled:Boolean,isFilled:Boolean},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("div",O1,[t.createElementVNode("button",{class:t.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-transparent !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled},[t.createElementVNode("img",{src:e.isFilled?t.unref(I1):t.unref(M1),alt:"AI",class:t.normalizeClass(["w-4",[{"opacity-100":!e.disabled},{"opacity-50 transform ":e.disabled}]])},null,10,F1)],10,N1)]))}},R1="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.9023%203.26667L10.8093%200.1C10.7767%200.0666667%2010.7116%200%2010.5814%200H3.74419C3.12558%200%202.60465%200.533333%202.60465%201.16667V2.66667H1.13953C0.52093%202.66667%200%203.2%200%203.83333V14.8667C0%2015.4667%200.52093%2016%201.13953%2016H10.2558C10.8744%2016%2011.3953%2015.4667%2011.3953%2014.8333V13.3333H12.8605C13.4791%2013.3333%2014%2012.8%2014%2012.1667V3.5C14%203.4%2013.9674%203.3%2013.9023%203.26667ZM12.893%203.16667H11.3954C11.1349%203.16667%2010.907%202.93333%2010.907%202.66667V1.13333L12.893%203.16667ZM10.2558%2015.3333H1.13953C0.87907%2015.3333%200.651163%2015.1%200.651163%2014.8333V3.83333C0.651163%203.53333%200.87907%203.33333%201.13953%203.33333H7.68372V5.33333C7.68372%205.96667%208.20465%206.5%208.82326%206.5H10.7767V14.8667C10.7442%2015.1%2010.5488%2015.3333%2010.2558%2015.3333ZM9.31163%204.8L10.2884%205.8H8.7907C8.53023%205.8%208.30233%205.56667%208.30233%205.3V3.76667L9.31163%204.8ZM12.8605%2012.6667H11.3953V6.13333C11.3953%206.06667%2011.3628%205.96667%2011.2977%205.9L8.20465%202.73333C8.17209%202.7%208.07442%202.66667%208.0093%202.66667H3.25581V1.16667C3.25581%200.9%203.45116%200.666666%203.74419%200.666666H10.2558V2.66667C10.2558%203.3%2010.7767%203.83333%2011.3954%203.83333H13.3488V12.2C13.3488%2012.4667%2013.1209%2012.6667%2012.8605%2012.6667Z'%20fill='%233B5695'/%3e%3c/svg%3e",D1=["data-tip"],H1=["disabled"],P1=["src"],ze={__name:"CopyBtn",props:{disabled:Boolean},setup(e){const o=t.ref("Copy"),n=()=>{o.value="Copied",setTimeout(()=>{o.value="Copy"},1e3)};return(l,a)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2","data-tip":o.value},[t.createElementVNode("button",{class:t.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-transparent !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled,onClick:n},[t.createElementVNode("img",{src:t.unref(R1),alt:"Copy",class:t.normalizeClass(["w-3",[{"opacity-100":!e.disabled},{"opacity-50 transform ":e.disabled}]])},null,10,P1)],10,H1)],8,D1))}},Z1={class:"flex flex-row px-1 pr-10 pt-1 items-center bg-transparent relative"},j1={class:"ml-1 text-sm text-gray-600"},z1={key:0,class:"italic"},U1={class:"absolute right-1 top-1 flex flex-col items-center gap-0"},Ue=G({__name:"InputBtnGroup",props:{loading:{type:Boolean,default:!1},isTTS:{type:Boolean,default:!0},src:{type:String,default:""},srcLabel:{type:String,default:""},type:{type:String,default:""},phonetic:{type:String,default:""},hasClearBtn:{type:Boolean,default:!1},hasFavoriteBtn:{type:Boolean,default:!1},hasAIBtn:{type:Boolean,default:!1},hasCopyBtn:{type:Boolean,default:!1},isFavorite:{type:Boolean,default:!1},isAITranslate:{type:Boolean,default:!1},onFavorite:{type:Function,default:()=>{}}},emits:["clear","favorite","loadTTS","aiTranslate","copy"],setup(e,{emit:o}){const n=o;return(l,a)=>(t.openBlock(),t.createElementBlock("div",Z1,[e.src&&e.isTTS?(t.openBlock(),t.createBlock(w1,{key:0,type:e.type,onLoadTTS:a[0]||(a[0]=s=>n("loadTTS"))},null,8,["type"])):t.createCommentVNode("",!0),t.createElementVNode("div",j1,[t.createTextVNode(t.toDisplayString(e.srcLabel)+" ",1),e.phonetic?(t.openBlock(),t.createElementBlock("span",z1,"- "+t.toDisplayString(e.phonetic),1)):t.createCommentVNode("",!0)]),e.loading?(t.openBlock(),t.createBlock(q2,{key:1,class:"absolute right-6 top-2"})):t.createCommentVNode("",!0),t.createElementVNode("div",U1,[e.hasClearBtn?(t.openBlock(),t.createBlock(je,{key:0,onClick:a[1]||(a[1]=s=>n("clear")),disabled:e.loading},null,8,["disabled"])):t.createCommentVNode("",!0),e.src&&e.hasAIBtn?(t.openBlock(),t.createBlock(A1,{key:1,isFilled:e.isAITranslate,onClick:a[2]||(a[2]=s=>n("aiTranslate")),disabled:e.loading},null,8,["isFilled","disabled"])):t.createCommentVNode("",!0),e.src&&e.hasFavoriteBtn?(t.openBlock(),t.createBlock($1,{key:2,isFilled:e.isFavorite,onClick:a[3]||(a[3]=s=>n("favorite")),disabled:e.loading},null,8,["isFilled","disabled"])):t.createCommentVNode("",!0),e.src&&e.hasCopyBtn?(t.openBlock(),t.createBlock(ze,{key:3,onClick:a[4]||(a[4]=s=>n("copy")),disabled:e.loading},null,8,["disabled"])):t.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-a687b916"]]),J=h2("translation",()=>{const e=t.ref(null),o=t.ref(null),n=t.ref(null),l=t.ref({src:null,target:null}),a=t.ref(null),s=t.ref([]),i=t.ref([]),r=t.ref([]),c=t.ref([]),d=t.ref({src:null,target:null}),u=s2(),f=t.computed(()=>u.getLabel(e.value)),v=t.computed(()=>u.getLabel(o.value));function h(g){e.value=g.src,o.value=g.target,n.value=g.text,l.value=g.phonetic,a.value=g.result,s.value=g.dictionary,i.value=g.definitions,r.value=g.synonyms,c.value=g.examples,d.value=g.tts}function b(){e.value=null,o.value=null,n.value=null,l.value={src:null,target:null},a.value=null,s.value=[],i.value=[],r.value=[],c.value=[],d.value={src:null,target:null}}return{src:e,srcLabel:f,target:o,targetLabel:v,phonetic:l,text:n,result:a,dictionary:s,definitions:i,synonyms:r,examples:c,tts:d,init:h,reset:b}});function W1(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function V2(e){return typeof e=="function"?e():t.unref(e)}const q1=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const We=()=>{};function G1(e,o){function n(...l){return new Promise((a,s)=>{Promise.resolve(e(()=>o.apply(this,l),{fn:o,thisArg:this,args:l})).then(a).catch(s)})}return n}function J1(e,o={}){let n,l,a=We;const s=r=>{clearTimeout(r),a(),a=We};return r=>{const c=V2(e),d=V2(o.maxWait);return n&&s(n),c<=0||d!==void 0&&d<=0?(l&&(s(l),l=null),Promise.resolve(r())):new Promise((u,f)=>{a=o.rejectOnCancel?f:u,d&&!l&&(l=setTimeout(()=>{n&&s(n),l=null,u(r())},d)),n=setTimeout(()=>{l&&s(l),l=null,u(r())},c)})}}function Y1(e,o=200,n={}){return G1(J1(o,n),e)}function qe(e){var o;const n=V2(e);return(o=n==null?void 0:n.$el)!=null?o:n}const Q1=q1?window:void 0;function X1(){const e=t.ref(!1),o=t.getCurrentInstance();return o&&t.onMounted(()=>{e.value=!0},o),e}function K1(e){const o=X1();return t.computed(()=>(o.value,!!e()))}function en(e,o,n={}){const{window:l=Q1,...a}=n;let s;const i=K1(()=>l&&"ResizeObserver"in l),r=()=>{s&&(s.disconnect(),s=void 0)},c=t.computed(()=>Array.isArray(e)?e.map(f=>qe(f)):[qe(e)]),d=t.watch(c,f=>{if(r(),i.value&&l){s=new ResizeObserver(o);for(const v of f)v&&s.observe(v,a)}},{immediate:!0,flush:"post"}),u=()=>{r(),d()};return W1(u),{isSupported:i,stop:u}}function T2(e){var o;const n=t.ref(e==null?void 0:e.element),l=t.ref(e==null?void 0:e.input),a=(o=e==null?void 0:e.styleProp)!=null?o:"height",s=t.ref(1);function i(){var r;if(!n.value)return;let c="";n.value.style[a]="1px",s.value=(r=n.value)==null?void 0:r.scrollHeight,e!=null&&e.styleTarget?V2(e.styleTarget).style[a]=`${s.value}px`:c=`${s.value}px`,n.value.style[a]=c}return t.watch([l,n],()=>t.nextTick(i),{immediate:!0}),t.watch(s,()=>{var r;return(r=e==null?void 0:e.onResize)==null?void 0:r.call(e)}),en(n,()=>i()),e!=null&&e.watch&&t.watch(e.watch,i,{immediate:!0,deep:!0}),{textarea:n,input:l,triggerResize:i}}const tn={class:"bg-white relative z-10 border rounded"},nn=G({__name:"Input",props:{text:{type:String,default:""},isTTS:{type:Boolean,default:!0}},emits:["change","clear","loadTTS"],setup(e,{emit:o}){const n=J(),l=e,a=t.ref(l.text),s=t.computed(()=>n.src),i=t.computed(()=>n.srcLabel),r=t.computed(()=>{var b;return(b=n.phonetic)==null?void 0:b.src}),{textarea:c}=T2({input:a,styleProp:"minHeight"}),d=o,u=Y1(()=>{d("change",a.value)},r2.INPUT_DEBOUNCE);t.onMounted(()=>{h()});function f(){if(!a.value){v();return}u()}function v(){d("clear"),a.value="",c.value.focus()}async function h(){await t.nextTick(),c.value.select()}return t.watch(()=>l.text,b=>{a.value!==b&&h(),a.value=b}),(b,g)=>(t.openBlock(),t.createElementBlock("div",tn,[t.createVNode(Ue,{src:s.value,srcLabel:i.value,isTTS:e.isTTS,type:"src",phonetic:r.value,hasClearBtn:a.value.length>0,onClear:v,onLoadTTS:g[0]||(g[0]=V=>d("loadTTS"))},null,8,["src","srcLabel","isTTS","phonetic","hasClearBtn"]),t.withDirectives(t.createElementVNode("textarea",{ref_key:"textarea",ref:c,"onUpdate:modelValue":g[1]||(g[1]=V=>a.value=V),class:"w-full outline-none px-2 pr-8 bg-transparent text-gray-800 resize-none pb-3 overflow-x-hidden overflow-y-hidden",autofocus:"",rows:"2",onInput:f,onFocus:h},null,544),[[t.vModelText,a.value,void 0,{trim:!0}]])]))}},[["__scopeId","data-v-0133ec1c"]]),on={class:"bg-white relative z-10 rounded-md h-full"},ln={class:"bg-transparent"},an=G({__name:"Result",props:{isFavoriteFeatureEnabled:Boolean,isAITranslateFeatureEnabled:Boolean,isAITranslate:Boolean,isFavorite:Boolean,isTTS:{type:Boolean,default:!0}},emits:["loadTTS","favorite","aiTranslate","copy"],setup(e,{emit:o}){const n=J(),l=t.computed(()=>n.result),a=t.computed(()=>n.target),s=t.computed(()=>n.targetLabel),i=t.computed(()=>{var v;return(v=n.phonetic)==null?void 0:v.target}),r=n2(),c=t.computed(()=>r.isLoading("translation")),{textarea:d,input:u}=T2({input:l,styleProp:"minHeight"}),f=o;return(v,h)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["relative p-0.5 bg-[length:300%_300%] bg-[position:0%_50%] border rounded",{"bg-gradient-to-br from-[#8556f0] via-[#d6b379] via-[#6bedd1] to-[#439beb] animate-moveGradient border border-white":e.isAITranslate&&!c.value}])},[t.createElementVNode("div",on,[t.createVNode(Ue,{loading:c.value,src:a.value,srcLabel:s.value,isTTS:e.isTTS,type:"target",hasFavoriteBtn:e.isFavoriteFeatureEnabled,hasAIBtn:e.isAITranslateFeatureEnabled,hasCopyBtn:!0,isFavorite:e.isFavorite,isAITranslate:e.isAITranslate,phonetic:i.value,onFavorite:h[0]||(h[0]=b=>f("favorite")),onLoadTTS:h[1]||(h[1]=b=>f("loadTTS")),onAiTranslate:h[2]||(h[2]=b=>f("aiTranslate")),onCopy:h[3]||(h[3]=b=>f("copy"))},null,8,["loading","src","srcLabel","isTTS","hasFavoriteBtn","hasAIBtn","isFavorite","isAITranslate","phonetic"]),t.createElementVNode("div",ln,[t.withDirectives(t.createElementVNode("textarea",{ref_key:"textarea",ref:d,"onUpdate:modelValue":h[4]||(h[4]=b=>t.isRef(u)?u.value=b:null),class:"w-full outline-none px-2 pr-8 bg-transparent text-gray-800 resize-none pb-3 overflow-x-hidden overflow-y-hidden",readonly:"",rows:"2",spellcheck:"false"},null,512),[[t.vModelText,t.unref(u)]])])])],2))}},[["__scopeId","data-v-439ecf6b"]]),sn={class:"btn btn-xs btn-circle btn-ghost"},B2={__name:"ToggleBtn",props:{isExpanded:Boolean},setup(e){const o=e;return(n,l)=>(t.openBlock(),t.createElementBlock("button",sn,[o.isExpanded?(t.openBlock(),t.createBlock(t.unref(wt),{key:0,class:"w-7 text-gray-400"})):(t.openBlock(),t.createBlock(t.unref(vt),{key:1,class:"w-7 text-gray-400"}))]))}},rn=t.createElementVNode("h2",{class:"card-title text-base font-bold text-textCustom"},"Dictionary",-1),cn={class:"capitalize text-xs font-normal text-textSecondary mb-1"},dn={class:"list-none list-inside"},un=["onClick"],fn={class:"text-sm font-normal text-gray-800 leading-4"},pn={__name:"Dictionary",emits:["translate"],setup(e,{emit:o}){const n=t.ref(!0),l=J(),a=s2(),s=t.computed(()=>l.dictionary),i=o,r=()=>{n.value=!n.value},c=d=>{i("translate",d,l.target,l.src),a.src=l.target,a.target=l.src,window.scrollTo(0,0)};return(d,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:"flex justify-between items-center",onClick:r},[rn,t.createVNode(B2,{isExpanded:n.value},null,8,["isExpanded"])]),t.createElementVNode("div",{class:t.normalizeClass(["overflow-hidden",n.value?"max-h-[2000px] opacity-100":"max-h-0 opacity-0"])},[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(f,v)=>(t.openBlock(),t.createElementBlock("li",{key:`${f.pos}-${v}`,class:"mb-2"},[t.createElementVNode("h5",cn,t.toDisplayString(f.pos),1),t.createElementVNode("ul",dn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.items,(h,b)=>(t.openBlock(),t.createElementBlock("li",{key:`${h.word}-${b}`},[t.createElementVNode("span",{class:"m-0.5 font-normal badge badge-ghost bg-primaryColor text-white cursor-pointer border-0 rounded",onClick:g=>c(h.word)},t.toDisplayString(h.word),9,un),t.createElementVNode("small",fn," - "+t.toDisplayString(h.reverse_translation.join(", ")),1)]))),128))])]))),128))])],2)],64))}},mn=t.createElementVNode("h2",{class:"card-title text-base font-bold text-textCustom"},"Definitions",-1),hn={class:"capitalize text-xs font-normal text-textSecondary mb-1"},gn={class:"text-sm text-textCustom list-disc list-outside ml-5"},Cn=t.createElementVNode("br",null,null,-1),bn={key:0,class:"italic text-textSecondary"},vn={__name:"Definition",setup(e){const o=t.ref(!0),n=J(),l=t.computed(()=>n.definitions),a=()=>{o.value=!o.value};return(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:"flex justify-between items-center",onClick:a},[mn,t.createVNode(B2,{isExpanded:o.value},null,8,["isExpanded"])]),t.createElementVNode("div",{class:t.normalizeClass(["overflow-hidden",o.value?"max-h-[2000px] opacity-100":"max-h-0 opacity-0"])},[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(r,c)=>(t.openBlock(),t.createElementBlock("li",{key:`${r.pos}-${c}`,class:"mb-2"},[t.createElementVNode("h5",hn,t.toDisplayString(r.pos),1),t.createElementVNode("ul",gn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.items,(d,u)=>(t.openBlock(),t.createElementBlock("li",{key:`${d.gloss}-${u}`,class:"mb-1"},[t.createElementVNode("span",null,t.toDisplayString(d.gloss),1),Cn,d.example?(t.openBlock(),t.createElementBlock("small",bn,'"'+t.toDisplayString(d.example)+'"',1)):t.createCommentVNode("",!0)]))),128))])]))),128))])],2)],64))}},xn=t.createElementVNode("h2",{class:"card-title text-base font-bold text-textCustom"},"Examples",-1),wn={class:"text-textCustom text-sm list-disc list-outside ml-5 my-2"},yn=["innerHTML"],En={__name:"Example",setup(e){const o=t.ref(!0),n=J(),l=t.computed(()=>n.examples),a=()=>{o.value=!o.value};return(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:"flex justify-between items-center",onClick:a},[xn,t.createVNode(B2,{isExpanded:o.value},null,8,["isExpanded"])]),t.createElementVNode("div",{class:t.normalizeClass(["overflow-hidden",o.value?"max-h-[1000px] opacity-100":"max-h-0 opacity-0"])},[t.createElementVNode("ul",wn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(r,c)=>(t.openBlock(),t.createElementBlock("li",{key:`${r.definition_id}-${c}`,innerHTML:r},null,8,yn))),128))])],2)],64))}},_n=t.createElementVNode("h2",{class:"card-title text-base font-bold text-textCustom"},"Synonyms",-1),kn={class:"capitalize text-xs font-normal text-textSecondary mb-1"},Sn={class:"list-none list-inside"},Ln={class:"flex flex-wrap"},Vn=["onClick"],Tn={__name:"Synonyms",emits:["translate"],setup(e,{emit:o}){const n=t.ref(!0),l=J(),a=t.computed(()=>l.synonyms),s=o,i=()=>{n.value=!n.value},r=c=>{s("translate",c),window.scrollTo(0,0)};return(c,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:"flex justify-between items-center",onClick:i},[_n,t.createVNode(B2,{isExpanded:n.value},null,8,["isExpanded"])]),t.createElementVNode("div",{class:t.normalizeClass(["overflow-hidden",n.value?"max-h-[2000px] opacity-100":"max-h-0 opacity-0"])},[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(u,f)=>(t.openBlock(),t.createElementBlock("li",{key:`${u.pos}-${f}`,class:"mb-2"},[t.createElementVNode("h5",kn,t.toDisplayString(u.pos),1),t.createElementVNode("ul",Sn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.items,(v,h)=>(t.openBlock(),t.createElementBlock("li",{key:`${v.word}-${h}`,class:"mb-2"},[t.createElementVNode("div",Ln,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.synonym,(b,g)=>(t.openBlock(),t.createElementBlock("span",{key:`${b}-${g}`,class:"m-0.5 ml-0 font-normal badge badge-ghost bg-primaryColor text-white cursor-pointer border-0 rounded",onClick:V=>r(b)},t.toDisplayString(b),9,Vn))),128))])]))),128))])]))),128))])],2)],64))}},Bn="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",$n="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",In=["disabled"],Mn=["src"],On={__name:"ChevronAIBtn",props:{disabled:Boolean,isExpanded:Boolean},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-transparent !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled},[t.createElementVNode("img",{src:e.isExpanded?t.unref(Bn):t.unref($n),alt:"AI",class:t.normalizeClass(["w-6",[{"opacity-100":!e.disabled},{"opacity-50 transform ":e.disabled}]])},null,10,Mn)],10,In))}},Nn={class:"card-body bg-white pl-2 pr-1 py-1 gap-0 relative z-10 rounded"},Fn={class:"flex justify-between items-center"},An=t.createElementVNode("h2",{class:"card-title text-base font-bold text-textCustom"},"AI Summary",-1),Rn={class:"flex items-center"},Dn={class:"tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2","data-tip":"AI Summarize"},Hn={key:0,class:"text-textCustom list-none list-outside"},Pn=["innerHTML"],Zn={__name:"AIExplanation",props:{isAIExplain:{type:Boolean,default:!1,required:!0},explanation:{type:Object,required:!0}},emits:["aiExplain"],setup(e,{emit:o}){const n=n2(),l=t.computed(()=>n.isLoading("aiExplanation")),a=o;function s(){a("aiExplain")}return(i,r)=>{var c,d;return t.openBlock(),t.createElementBlock("div",Nn,[t.createElementVNode("div",Fn,[An,t.createElementVNode("div",Rn,[l.value?(t.openBlock(),t.createBlock(q2,{key:0})):t.createCommentVNode("",!0),t.createElementVNode("div",Dn,[t.createVNode(On,{isExpanded:e.isAIExplain,disabled:l.value,onClick:s},null,8,["isExpanded","disabled"])])])]),t.createElementVNode("div",{class:t.normalizeClass(["overflow-hidden",e.isAIExplain?"max-h-[1000px] opacity-100":"max-h-0 opacity-0"])},[(c=e.explanation)!=null&&c.result?(t.openBlock(),t.createElementBlock("ul",Hn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(((d=e.explanation)==null?void 0:d.result.split(`
18
- `))||[],(u,f)=>(t.openBlock(),t.createElementBlock("li",{key:`${u}-${f}`,innerHTML:u},null,8,Pn))),128))])):t.createCommentVNode("",!0)],2)])}}};function jn(){document.documentElement.setAttribute("dir","rtl")}function zn(){document.documentElement.removeAttribute("dir")}const Ge={supportRTL:jn,removeRTL:zn},Un=["ar","fa","iw","yi","ur","pa"],Wn=e=>(t.pushScopeId("data-v-77944531"),e=e(),t.popScopeId(),e),qn={class:"pb-6"},Gn={class:"flex flex-col lg:flex-row lg:gap-2"},Jn={id:"input",class:"w-full lg:w-[calc(50%-1rem)] flex mt-1"},Yn=Wn(()=>t.createElementVNode("div",{class:"w-6 h-4 mx-auto hidden lg:block"},null,-1)),Qn={class:"w-full lg:w-[calc(50%-1rem)] flex mt-1"},Xn={key:0,class:"masonry-container mt-1"},Kn={key:0,class:"masonry-item"},eo={key:1,class:"masonry-item"},to={class:"p-2"},no={key:2,class:"masonry-item"},oo={class:"p-2"},lo={key:3,class:"masonry-item"},ao={class:"p-2"},so={key:4,class:"masonry-item"},ro={class:"p-2"},io={key:1,class:"text-textCustom italic font-medium"},co=G({__name:"TranslateTab",props:{opt:Object,languages:Object,translation:Object,explanation:Object,tts:Object,isTTS:Boolean,isFavoriteFeatureEnabled:Boolean,isAITranslateFeatureEnabled:Boolean,isFavorite:Boolean,isAITranslate:Boolean,isAIExplain:Boolean,aiExplainMinLength:Number},emits:["opt","translate","loadTTS","favorite","aiTranslate","aiExplain","copy"],setup(e,{emit:o}){const n=t.ref(""),l=e,a=t.inject("translationStore"),s=t.inject("ttsStore"),i=t.inject("languageStore"),r=t.inject("loaderStore"),c=o,d=()=>{const x=l.opt.target;Un.includes(x)?Ge.supportRTL():Ge.removeRTL()};t.watch(()=>l.translation,x=>{r.setLoading("translation",!1),x&&(n.value=x.text,a.init(x),s.reset())},{immediate:!0}),t.watch([()=>l.explanation,()=>l.isAIExplain],([x])=>{x!=null&&x.result&&r.setLoading("aiExplanation",!1)},{immediate:!0,deep:!0}),t.watch(()=>l.tts,x=>{if(!x){s.reset();return}s.set(x)},{immediate:!0}),t.watch([()=>l.opt,()=>l.languages],([x,C])=>{i.init(x,C),d()}),t.watch([()=>i.src,()=>i.target],([x,C])=>{c("opt",{src:x,target:C}),h(n.value)}),t.onMounted(()=>{i.init(l.opt,l.languages),d()});function u(){n.value="",l.isAITranslate&&b(),a.reset()}function f(x){n.value=x,h(x)}function v(x){const C=x==="src"?a.text:a.result;c("loadTTS",{type:x,data:C})}function h(x,C=i.src,_=i.target){x&&(V(),n.value=x,r.setLoading("translation",!0),c("translate",{src:C,target:_,text:x}))}function b(){l.isAITranslate||r.setLoading("translation",!0),c("aiTranslate",{src:i.src,target:i.target,text:n.value})}function g(){l.isAIExplain||r.setLoading("aiExplanation",!0),c("aiExplain",{src:i.src,target:i.target,text:n.value})}function V(){const x=document.getElementById("input");x&&x.getBoundingClientRect().top<0&&x.scrollIntoView({behavior:"smooth"})}return(x,C)=>{var _,S,w,T,y;return t.openBlock(),t.createElementBlock("div",qn,[t.createVNode(f1),t.createElementVNode("div",Gn,[t.createElementVNode("div",Jn,[t.createVNode(nn,{text:n.value,isTTS:e.isTTS,onChange:f,onClear:u,onLoadTTS:C[0]||(C[0]=E=>v("src")),class:"flex-grow flex flex-col"},null,8,["text","isTTS"])]),Yn,t.createElementVNode("div",Qn,[t.createVNode(an,{isFavoriteFeatureEnabled:e.isFavoriteFeatureEnabled,isAITranslateFeatureEnabled:e.isAITranslateFeatureEnabled,isAITranslate:e.isAITranslate,isFavorite:e.isFavorite,isTTS:e.isTTS,onCopy:C[1]||(C[1]=E=>{var B;return x.$emit("copy",(B=t.unref(a))==null?void 0:B.result)}),onAiTranslate:b,onFavorite:C[2]||(C[2]=E=>x.$emit("favorite")),onLoadTTS:C[3]||(C[3]=E=>v("target")),class:"flex-grow flex flex-col"},null,8,["isFavoriteFeatureEnabled","isAITranslateFeatureEnabled","isAITranslate","isFavorite","isTTS"])])]),e.translation?(t.openBlock(),t.createElementBlock("div",Xn,[((_=t.unref(a).result)==null?void 0:_.length)>e.aiExplainMinLength?(t.openBlock(),t.createElementBlock("div",Kn,[t.createVNode(Zn,{isAIExplain:e.isAIExplain,explanation:e.explanation,onAiExplain:g},null,8,["isAIExplain","explanation"])])):t.createCommentVNode("",!0),(S=t.unref(a).dictionary)!=null&&S.length?(t.openBlock(),t.createElementBlock("div",eo,[t.createElementVNode("div",to,[t.createVNode(pn,{onTranslate:h})])])):t.createCommentVNode("",!0),(w=t.unref(a).definitions)!=null&&w.length?(t.openBlock(),t.createElementBlock("div",no,[t.createElementVNode("div",oo,[t.createVNode(vn)])])):t.createCommentVNode("",!0),(T=t.unref(a).synonyms)!=null&&T.length?(t.openBlock(),t.createElementBlock("div",lo,[t.createElementVNode("div",ao,[t.createVNode(Tn,{onTranslate:h})])])):t.createCommentVNode("",!0),(y=t.unref(a).examples)!=null&&y.length?(t.openBlock(),t.createElementBlock("div",so,[t.createElementVNode("div",ro,[t.createVNode(En)])])):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",io,"Service unavailable"))])}}},[["__scopeId","data-v-77944531"]]),uo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke='%233B5695'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20d='M4%204v5h.582m15.356%202A8.001%208.001%200%20004.582%209m0%200H9m11%2011v-5h-.581m0%200a8.003%208.003%200%2001-15.357-2m15.357%202H15'%20/%3e%3c/svg%3e",fo=["disabled"],po=["src"],mo={__name:"RetryBtn",props:{disabled:Boolean},emits:["click"],setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("button",{class:"bg-white rounded-full hover:bg-gray-100 focus:outline-none active:scale-95",onClick:n[0]||(n[0]=l=>o.$emit("click")),disabled:e.disabled,"aria-label":"Retry"},[t.createElementVNode("img",{src:t.unref(uo),alt:"Retry",class:t.normalizeClass(["h-5 w-5 text-primaryColor",{"opacity-50":e.disabled}])},null,10,po)],8,fo))}},ho="data:image/svg+xml,%3csvg%20fill='%233B5695'%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12,7a4,4,0,1,0,4,4A4,4,0,0,0,12,7Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,13Zm6.5,2v1.5H20a1,1,0,0,1,0,2H18.5V20a1,1,0,0,1-2,0V18.5H15a1,1,0,0,1,0-2h1.5V15a1,1,0,0,1,2,0Zm3.438-4.345a.987.987,0,0,1,0,.69,13.339,13.339,0,0,1-1.08,2.264,1,1,0,1,1-1.715-1.028A11.3,11.3,0,0,0,19.928,11C18.451,7.343,15.373,5,12,5S5.549,7.343,4.072,11a9.315,9.315,0,0,0,6.167,5.787,1,1,0,1,1-.478,1.942,11.393,11.393,0,0,1-7.7-7.383.99.99,0,0,1,0-.691C3.773,6,7.674,3,12,3S20.227,6,21.938,10.655Z'/%3e%3c/svg%3e",go="data:image/svg+xml,%3csvg%20fill='%233B5695'%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.293,21.707a1,1,0,0,0,1.414,0l3.2-3.2A9.581,9.581,0,0,0,12,20c4.325,0,8.227-3,9.938-7.654a.993.993,0,0,0,0-.692A12.6,12.6,0,0,0,18.7,6.719l3.012-3.012a1,1,0,1,0-1.414-1.414l-3.2,3.2A9.581,9.581,0,0,0,12,4C7.675,4,3.773,7,2.062,11.654a.993.993,0,0,0,0,.692,12.6,12.6,0,0,0,3.243,4.935L2.293,20.293A1,1,0,0,0,2.293,21.707ZM17.266,8.148A10.454,10.454,0,0,1,19.929,12c-1.478,3.657-4.556,6-7.929,6a7.52,7.52,0,0,1-3.632-.954l1.613-1.613A3.947,3.947,0,0,0,12,16a4,4,0,0,0,4-4,3.947,3.947,0,0,0-.567-2.019Zm-7.191,4.363A1.96,1.96,0,0,1,10,12a2,2,0,0,1,2-2,1.96,1.96,0,0,1,.511.075Zm3.85-1.022A1.96,1.96,0,0,1,14,12a2,2,0,0,1-2,2,1.96,1.96,0,0,1-.511-.075ZM4.071,12C5.549,8.343,8.627,6,12,6a7.52,7.52,0,0,1,3.632.954L14.019,8.567A3.947,3.947,0,0,0,12,8a4,4,0,0,0-4,4,3.947,3.947,0,0,0,.567,2.019L6.734,15.852A10.454,10.454,0,0,1,4.071,12Z'/%3e%3c/svg%3e",Co=["data-tip"],bo=["disabled"],vo=["src","alt"],xo={__name:"ToggleDiffBtn",props:{disabled:Boolean,isDiffMode:Boolean},emits:["toggle"],setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2","data-tip":e.isDiffMode?"Hide Differences":"Show Differences"},[t.createElementVNode("button",{class:t.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-transparent !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled,onClick:n[0]||(n[0]=l=>o.$emit("toggle"))},[t.createElementVNode("img",{src:e.isDiffMode?t.unref(ho):t.unref(go),alt:e.isDiffMode?"Hide Differences":"Show Differences",class:t.normalizeClass(["w-4",[{"opacity-100":!e.disabled},{"opacity-50 transform ":e.disabled}]])},null,10,vo)],10,bo)],8,Co))}},wo={class:"flex flex-row px-2 pr-10 items-center bg-transparent relative"},yo={class:"absolute right-1 top-1 flex flex-col items-center gap-0"},Je={__name:"InputBtnGroup",props:{loading:{type:Boolean,default:!1},src:{type:String,default:""},hasCopyBtn:{type:Boolean,default:!1},hasClearBtn:{type:Boolean,default:!1},showDiffToggle:{type:Boolean,default:!1},isDiffMode:{type:Boolean,default:!1},hasInfoBtn:{type:Boolean,default:!1}},emits:["copy","clear","toggleDiff","info"],setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("div",wo,[e.loading?(t.openBlock(),t.createBlock(q2,{key:0,class:"absolute right-6 top-2"})):t.createCommentVNode("",!0),t.createElementVNode("div",yo,[e.showDiffToggle?(t.openBlock(),t.createBlock(xo,{key:0,disabled:e.loading,isDiffMode:e.isDiffMode,onToggle:n[0]||(n[0]=l=>o.$emit("toggleDiff"))},null,8,["disabled","isDiffMode"])):t.createCommentVNode("",!0),e.hasClearBtn&&e.src?(t.openBlock(),t.createBlock(je,{key:1,onClick:n[1]||(n[1]=l=>o.$emit("clear")),disabled:e.loading},null,8,["disabled"])):t.createCommentVNode("",!0),e.hasCopyBtn&&e.src?(t.openBlock(),t.createBlock(ze,{key:2,onClick:n[2]||(n[2]=l=>o.$emit("copy"))})):t.createCommentVNode("",!0)])]))}},Eo={class:"bg-white relative z-10 border rounded"},_o=["onKeydown","placeholder"],ko=G({__name:"Input",props:{text:{type:String,default:""}},emits:["change","clear","improve"],setup(e,{emit:o}){const n=e,l=t.ref(n.text),{textarea:a}=T2({input:l,styleProp:"minHeight"}),s=o;function i(){if(!l.value){r();return}s("change",l.value)}function r(){s("clear"),l.value="",a.value.focus()}function c(){a.value&&a.value.select()}function d(){l.value&&s("improve",l.value)}return t.watch(()=>n.text,u=>{l.value!==u&&(l.value=u,t.nextTick(c))}),t.onMounted(()=>{l.value=n.text,t.nextTick(()=>{a.value.focus(),c()})}),(u,f)=>(t.openBlock(),t.createElementBlock("div",Eo,[t.createVNode(Je,{src:e.text,hasClearBtn:!0,hasInfoBtn:!0,onClear:r,class:"mb-1"},null,8,["src"]),t.withDirectives(t.createElementVNode("textarea",{ref_key:"textarea",ref:a,"onUpdate:modelValue":f[0]||(f[0]=v=>l.value=v),class:"w-full outline-none px-2 pr-8 bg-transparent text-gray-800 resize-none pb-3 overflow-x-hidden overflow-y-hidden h-full",autofocus:"",rows:"2",onInput:i,onFocus:c,onKeydown:t.withKeys(t.withModifiers(d,["ctrl","prevent"]),["enter"]),placeholder:`Min ${t.unref(r2).IMPROVE_INPUT_MIN_LENGTH} characters. ${t.unref(N2)?"":"Ctrl+Enter to improve"}`},null,40,_o),[[t.vModelText,l.value,void 0,{trim:!0}]])]))}},[["__scopeId","data-v-0b6444b1"]]);function z(){}z.prototype={diff:function(o,n){var l,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.callback;typeof a=="function"&&(s=a,a={});var i=this;function r(S){return S=i.postProcess(S,a),s?(setTimeout(function(){s(S)},0),!0):S}o=this.castInput(o,a),n=this.castInput(n,a),o=this.removeEmpty(this.tokenize(o,a)),n=this.removeEmpty(this.tokenize(n,a));var c=n.length,d=o.length,u=1,f=c+d;a.maxEditLength!=null&&(f=Math.min(f,a.maxEditLength));var v=(l=a.timeout)!==null&&l!==void 0?l:1/0,h=Date.now()+v,b=[{oldPos:-1,lastComponent:void 0}],g=this.extractCommon(b[0],n,o,0,a);if(b[0].oldPos+1>=d&&g+1>=c)return r(Ye(i,b[0].lastComponent,n,o,i.useLongestToken));var V=-1/0,x=1/0;function C(){for(var S=Math.max(V,-u);S<=Math.min(x,u);S+=2){var w=void 0,T=b[S-1],y=b[S+1];T&&(b[S-1]=void 0);var E=!1;if(y){var B=y.oldPos-S;E=y&&0<=B&&B<c}var p=T&&T.oldPos+1<d;if(!E&&!p){b[S]=void 0;continue}if(!p||E&&T.oldPos<y.oldPos?w=i.addToPath(y,!0,!1,0,a):w=i.addToPath(T,!1,!0,1,a),g=i.extractCommon(w,n,o,S,a),w.oldPos+1>=d&&g+1>=c)return r(Ye(i,w.lastComponent,n,o,i.useLongestToken));b[S]=w,w.oldPos+1>=d&&(x=Math.min(x,S-1)),g+1>=c&&(V=Math.max(V,S+1))}u++}if(s)(function S(){setTimeout(function(){if(u>f||Date.now()>h)return s();C()||S()},0)})();else for(;u<=f&&Date.now()<=h;){var _=C();if(_)return _}},addToPath:function(o,n,l,a,s){var i=o.lastComponent;return i&&!s.oneChangePerToken&&i.added===n&&i.removed===l?{oldPos:o.oldPos+a,lastComponent:{count:i.count+1,added:n,removed:l,previousComponent:i.previousComponent}}:{oldPos:o.oldPos+a,lastComponent:{count:1,added:n,removed:l,previousComponent:i}}},extractCommon:function(o,n,l,a,s){for(var i=n.length,r=l.length,c=o.oldPos,d=c-a,u=0;d+1<i&&c+1<r&&this.equals(l[c+1],n[d+1],s);)d++,c++,u++,s.oneChangePerToken&&(o.lastComponent={count:1,previousComponent:o.lastComponent,added:!1,removed:!1});return u&&!s.oneChangePerToken&&(o.lastComponent={count:u,previousComponent:o.lastComponent,added:!1,removed:!1}),o.oldPos=c,d},equals:function(o,n,l){return l.comparator?l.comparator(o,n):o===n||l.ignoreCase&&o.toLowerCase()===n.toLowerCase()},removeEmpty:function(o){for(var n=[],l=0;l<o.length;l++)o[l]&&n.push(o[l]);return n},castInput:function(o){return o},tokenize:function(o){return Array.from(o)},join:function(o){return o.join("")},postProcess:function(o){return o}};function Ye(e,o,n,l,a){for(var s=[],i;o;)s.push(o),i=o.previousComponent,delete o.previousComponent,o=i;s.reverse();for(var r=0,c=s.length,d=0,u=0;r<c;r++){var f=s[r];if(f.removed)f.value=e.join(l.slice(u,u+f.count)),u+=f.count;else{if(!f.added&&a){var v=n.slice(d,d+f.count);v=v.map(function(h,b){var g=l[u+b];return g.length>h.length?g:h}),f.value=e.join(v)}else f.value=e.join(n.slice(d,d+f.count));d+=f.count,f.added||(u+=f.count)}}return s}function Qe(e,o){var n;for(n=0;n<e.length&&n<o.length;n++)if(e[n]!=o[n])return e.slice(0,n);return e.slice(0,n)}function Xe(e,o){var n;if(!e||!o||e[e.length-1]!=o[o.length-1])return"";for(n=0;n<e.length&&n<o.length;n++)if(e[e.length-(n+1)]!=o[o.length-(n+1)])return e.slice(-n);return e.slice(-n)}function J2(e,o,n){if(e.slice(0,o.length)!=o)throw Error("string ".concat(JSON.stringify(e)," doesn't start with prefix ").concat(JSON.stringify(o),"; this is a bug"));return n+e.slice(o.length)}function Y2(e,o,n){if(!o)return e+n;if(e.slice(-o.length)!=o)throw Error("string ".concat(JSON.stringify(e)," doesn't end with suffix ").concat(JSON.stringify(o),"; this is a bug"));return e.slice(0,-o.length)+n}function g2(e,o){return J2(e,o,"")}function $2(e,o){return Y2(e,o,"")}function Ke(e,o){return o.slice(0,So(e,o))}function So(e,o){var n=0;e.length>o.length&&(n=e.length-o.length);var l=o.length;e.length<o.length&&(l=e.length);var a=Array(l),s=0;a[0]=0;for(var i=1;i<l;i++){for(o[i]==o[s]?a[i]=a[s]:a[i]=s;s>0&&o[i]!=o[s];)s=a[s];o[i]==o[s]&&s++}s=0;for(var r=n;r<e.length;r++){for(;s>0&&e[r]!=o[s];)s=a[s];e[r]==o[s]&&s++}return s}var I2="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",Lo=new RegExp("[".concat(I2,"]+|\\s+|[^").concat(I2,"]"),"ug"),M2=new z;M2.equals=function(e,o,n){return n.ignoreCase&&(e=e.toLowerCase(),o=o.toLowerCase()),e.trim()===o.trim()},M2.tokenize=function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n;if(o.intlSegmenter){if(o.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');n=Array.from(o.intlSegmenter.segment(e),function(s){return s.segment})}else n=e.match(Lo)||[];var l=[],a=null;return n.forEach(function(s){/\s/.test(s)?a==null?l.push(s):l.push(l.pop()+s):/\s/.test(a)?l[l.length-1]==a?l.push(l.pop()+s):l.push(a+s):l.push(s),a=s}),l},M2.join=function(e){return e.map(function(o,n){return n==0?o:o.replace(/^\s+/,"")}).join("")},M2.postProcess=function(e,o){if(!e||o.oneChangePerToken)return e;var n=null,l=null,a=null;return e.forEach(function(s){s.added?l=s:s.removed?a=s:((l||a)&&e0(n,a,l,s),n=s,l=null,a=null)}),(l||a)&&e0(n,a,l,null),e};function e0(e,o,n,l){if(o&&n){var a=o.value.match(/^\s*/)[0],s=o.value.match(/\s*$/)[0],i=n.value.match(/^\s*/)[0],r=n.value.match(/\s*$/)[0];if(e){var c=Qe(a,i);e.value=Y2(e.value,i,c),o.value=g2(o.value,c),n.value=g2(n.value,c)}if(l){var d=Xe(s,r);l.value=J2(l.value,r,d),o.value=$2(o.value,d),n.value=$2(n.value,d)}}else if(n)e&&(n.value=n.value.replace(/^\s*/,"")),l&&(l.value=l.value.replace(/^\s*/,""));else if(e&&l){var u=l.value.match(/^\s*/)[0],f=o.value.match(/^\s*/)[0],v=o.value.match(/\s*$/)[0],h=Qe(u,f);o.value=g2(o.value,h);var b=Xe(g2(u,h),v);o.value=$2(o.value,b),l.value=J2(l.value,u,b),e.value=Y2(e.value,u,u.slice(0,u.length-b.length))}else if(l){var g=l.value.match(/^\s*/)[0],V=o.value.match(/\s*$/)[0],x=Ke(V,g);o.value=$2(o.value,x)}else if(e){var C=e.value.match(/\s*$/)[0],_=o.value.match(/^\s*/)[0],S=Ke(C,_);o.value=g2(o.value,S)}}var t0=new z;t0.tokenize=function(e){var o=new RegExp("(\\r?\\n)|[".concat(I2,"]+|[^\\S\\n\\r]+|[^").concat(I2,"]"),"ug");return e.match(o)||[]};function Vo(e,o,n){return t0.diff(e,o,n)}var Q2=new z;Q2.tokenize=function(e,o){o.stripTrailingCr&&(e=e.replace(/\r\n/g,`
17
+ This will fail in production.`);r=f2,r._s.has(l)||(s?W2(l,o,a,r):Re(l,a,r),process.env.NODE_ENV!=="production"&&(i._pinia=r));const u=r._s.get(l);if(process.env.NODE_ENV!=="production"&&c){const f="__hot:"+l,v=s?W2(f,o,a,r,!0):Re(f,D({},a),r,!0);c._hotUpdate(v),delete r.state.value[f],r._s.delete(f)}if(process.env.NODE_ENV!=="production"&&E2){const f=t.getCurrentInstance();if(f&&f.proxy&&!c){const v=f.proxy,g="_pStores"in v?v._pStores:v._pStores={};g[l]=u}}return u}return i.$id=l,i}const n2=h2("loader",()=>{const e=t.ref({translation:!1,aiExplanation:!1,writing:!1});return{loadingStates:e,setLoading:(l,a)=>{e.value[l]=a},isLoading:l=>e.value[l]}}),De={__name:"Select",props:t.mergeModels({languages:{type:Object,required:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const o=n2(),n=e,l=t.useModel(e,"modelValue"),a=t.ref(""),s=t.ref(null),i=t.computed(()=>Object.entries(n.languages).filter(([,c])=>c.toLowerCase().includes(a.value.toLowerCase()))),r=c=>{c.target.value="",a.value="",s.value&&s.value.$el.click()};return(c,d)=>(t.openBlock(),t.createBlock(t.unref(pt),{modelValue:l.value,"onUpdate:modelValue":d[3]||(d[3]=u=>l.value=u),disabled:t.unref(o).loading,as:"div",class:"relative mt-1"},{default:t.withCtx(()=>[t.createVNode(t.unref(ht),{class:"w-full bg-base-100 border border-base-300 rounded py-2.5 pl-3 pr-10 text-sm text-base-content font-medium focus:outline-none focus:ring-0.5 focus:ring-primary focus:border-primary",onChange:d[0]||(d[0]=u=>a.value=u.target.value),displayValue:u=>e.languages[u],onFocus:d[1]||(d[1]=u=>r(u))},null,8,["displayValue"]),t.createVNode(t.unref(mt),{ref_key:"btnSelect",ref:s,class:"absolute inset-y-0 right-0 flex items-center pr-2"},{default:t.withCtx(()=>[t.createVNode(t.unref(vt),{class:"h-5 w-5 text-base-content/50","aria-hidden":"true",onClick:d[2]||(d[2]=u=>r(u))})]),_:1},512),t.createVNode(t.unref(gt),{class:"absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-base-100 py-1 text-base shadow-lg ring-1 ring-base-300 focus:outline-none sm:text-sm z-50"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,([u,f])=>(t.openBlock(),t.createBlock(t.unref(Ct),{key:u,value:u},{default:t.withCtx(({active:v,selected:g})=>[t.createElementVNode("li",{class:t.normalizeClass(["relative cursor-default select-none py-2 pl-3 pr-9",v?"bg-primary text-primary-content":"text-base-content"])},[t.createElementVNode("span",{class:t.normalizeClass(["block truncate",g&&"font-semibold"])},t.toDisplayString(f),3)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue","disabled"]))}},He="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='M3.68688%202.3131C3.88214%202.50837%203.88214%202.82495%203.68688%203.02021L2.04043%204.66666L3.68688%206.3131C3.88214%206.50837%203.88214%206.82495%203.68688%207.02021C3.49162%207.21547%203.17504%207.21547%202.97977%207.02021L0.979775%205.02021C0.784513%204.82495%200.784513%204.50837%200.979775%204.3131L2.97977%202.3131C3.17504%202.11784%203.49162%202.11784%203.68688%202.3131Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M12.3131%208.97977C12.5084%208.78451%2012.825%208.78451%2013.0202%208.97977L15.0202%2010.9798C15.2155%2011.175%2015.2155%2011.4916%2015.0202%2011.6869L13.0202%2013.6869C12.825%2013.8821%2012.5084%2013.8821%2012.3131%2013.6869C12.1178%2013.4916%2012.1178%2013.175%2012.3131%2012.9798L13.9596%2011.3333L12.3131%209.68688C12.1178%209.49161%2012.1178%209.17503%2012.3131%208.97977Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M0.833328%204.66666C0.833328%204.39051%201.05719%204.16666%201.33333%204.16666H14.6667C14.9428%204.16666%2015.1667%204.39051%2015.1667%204.66666C15.1667%204.9428%2014.9428%205.16666%2014.6667%205.16666H1.33333C1.05719%205.16666%200.833328%204.9428%200.833328%204.66666Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M0.833328%2011.3333C0.833328%2011.0572%201.05719%2010.8333%201.33333%2010.8333H14.6667C14.9428%2010.8333%2015.1667%2011.0572%2015.1667%2011.3333C15.1667%2011.6095%2014.9428%2011.8333%2014.6667%2011.8333H1.33333C1.05719%2011.8333%200.833328%2011.6095%200.833328%2011.3333Z'%20fill='%237E7E7E'/%3e%3c/svg%3e",Jt=["disabled"],Yt=[t.createElementVNode("img",{src:He,alt:"swap",class:"w-4"},null,-1)],Qt=["disabled"],Xt=[t.createElementVNode("img",{src:He,alt:"swap",class:"w-4"},null,-1)],Kt={__name:"SwapBtn",props:{isBidirect:{type:Boolean,default:!1}},emits:["swap"],setup(e,{emit:o}){const n=n2(),l=t.computed(()=>n.isLoading("translation")),a=o;return(s,i)=>e.isBidirect?(t.openBlock(),t.createElementBlock("button",{key:1,onClick:i[0]||(i[0]=r=>a("swap")),disabled:l.value},Xt,8,Qt)):(t.openBlock(),t.createElementBlock("button",{key:0,disabled:l.value},Yt,8,Jt))}},s2=h2("language",()=>{const e=t.ref("auto"),o=t.ref("vi"),n=t.ref({src:[],target:[]}),l=t.computed(()=>n.value.src[e.value]),a=t.computed(()=>n.value.target[o.value]);function s(c,d){e.value=c==null?void 0:c.src,o.value=c==null?void 0:c.target,n.value=d}function i(){if(!n.value.src[o.value]||!n.value.target[e.value])return;const c=e.value;e.value=o.value,o.value=c}function r(c){return n.value.src[c]||n.value.target[c]}return{languages:n,src:e,target:o,srcLabel:l,targetLabel:a,init:s,swap:i,getLabel:r}}),en={key:0,class:"flex flex-col"},tn={class:"flex"},nn={class:"grow flex flex-col"},on={key:0,class:"flex mt-1 space-x-1"},ln=["onClick"],an={class:"grow flex flex-col"},sn={key:0,class:"flex mt-1 space-x-1 justify-end"},rn=["onClick"],cn={class:"flex"},dn={class:"grow flex flex-col"},un={class:"grow flex flex-col"},Pe=3,fn={__name:"Selects",setup(e){const o=s2(),n=t.ref([]),l=t.ref([]);function a(){o.swap()}return t.onMounted(()=>{var s,i;n.value=((s=b2.getLocalStorage("recentSrc"))==null?void 0:s.filter(r=>!!r))||[],l.value=((i=b2.getLocalStorage("recentTarget"))==null?void 0:i.filter(r=>!!r))||[]}),t.watch(()=>o.src,s=>{s&&(n.value.includes(s)||(n.value.unshift(s),n.value=n.value.slice(0,Pe),b2.setLocalStorage("recentSrc",n.value)))}),t.watch(()=>o.target,s=>{s&&(l.value.includes(s)||(l.value.unshift(s),l.value=l.value.slice(0,Pe),b2.setLocalStorage("recentTarget",l.value)))}),(s,i)=>t.unref(o).languages?(t.openBlock(),t.createElementBlock("div",en,[t.createElementVNode("div",tn,[t.createElementVNode("div",nn,[n.value.length>0?(t.openBlock(),t.createElementBlock("div",on,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,r=>(t.openBlock(),t.createElementBlock("button",{key:r,class:"px-1 bg-base-100 border border-primary text-primary text-xs rounded hover:bg-primary hover:text-primary-content",onClick:c=>t.unref(o).src=r},t.toDisplayString(t.unref(o).languages.src[r]),9,ln))),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",an,[l.value.length>0?(t.openBlock(),t.createElementBlock("div",sn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,r=>(t.openBlock(),t.createElementBlock("button",{key:r,class:"px-1 bg-base-100 border border-primary text-primary text-xs rounded hover:bg-primary hover:text-primary-content",onClick:c=>t.unref(o).target=r},t.toDisplayString(t.unref(o).languages.target[r]),9,rn))),128))])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",cn,[t.createElementVNode("div",dn,[t.createVNode(De,{modelValue:t.unref(o).src,"onUpdate:modelValue":i[0]||(i[0]=r=>t.unref(o).src=r),languages:t.unref(o).languages.src,class:"grow"},null,8,["modelValue","languages"])]),t.createVNode(Kt,{isBidirect:t.unref(o).src!=="auto",class:"grow-0 mx-3 mt-4 self-start",onSwap:a},null,8,["isBidirect"]),t.createElementVNode("div",un,[t.createVNode(De,{modelValue:t.unref(o).target,"onUpdate:modelValue":i[1]||(i[1]=r=>t.unref(o).target=r),languages:t.unref(o).languages.target,class:"grow"},null,8,["modelValue","languages"])])])])):t.createCommentVNode("",!0)}},r2={INPUT_MAX_LENGTH:5e3,INPUT_DEBOUNCE:1e3,IMPROVE_INPUT_MIN_LENGTH:4,DEFAULT_DIFF_MODE:!0},G=(e,o)=>{const n=e.__vccOpts||e;for(const[l,a]of o)n[l]=a;return n},pn={},mn={class:"mr-2 loading loading-dots loading-xs"};function hn(e,o){return t.openBlock(),t.createElementBlock("span",mn)}const q2=G(pn,[["render",hn]]),G2=h2("tts",()=>{const e=t.ref({src:null,target:null});function o(a){a.src&&(e.value.src=a.src),a.target&&(e.value.target=a.target)}function n(a){if(a==="src")return e.value.src;if(a==="target")return e.value.target}function l(){e.value={src:null,target:null}}return{tts:e,set:o,get:n,reset:l}}),gn="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",Cn="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",bn=["disabled"],vn=["src"],xn=["src"],wn={__name:"SpeakBtn",props:{type:{type:String,default:""},disabled:Boolean},emits:["loadTTS"],setup(e,{emit:o}){const n=G2(),l=e,a=o,s=t.computed(()=>n.tts[l.type]),i=t.ref(!1),r=new Audio,c=t.ref(!1);t.watch(s,()=>{if(!s.value){i.value=!1;return}c.value&&(c.value=!1,u())},{immediate:!0}),t.onUnmounted(()=>{f(),r.src=""});function d(){if(s.value){u();return}c.value=!0,i.value=!0,a("loadTTS")}function u(){s.value&&(r.src=s.value,r.playbackRate=.7,i.value=!0,r.play().catch(()=>{i.value=!1}))}function f(){r.pause(),r.currentTime=0,i.value=!1}return r.onended=()=>{i.value=!1},(v,g)=>i.value?(t.openBlock(),t.createElementBlock("button",{key:1,class:"btn btn-xs btn-circle",onClick:t.withModifiers(f,["prevent"])},[t.createElementVNode("img",{src:t.unref(Cn),alt:"Stop",class:"w-4"},null,8,xn)])):(t.openBlock(),t.createElementBlock("button",{key:0,class:t.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-transparent !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled,onClick:t.withModifiers(d,["prevent"])},[t.createElementVNode("img",{src:t.unref(gn),alt:"Play",class:t.normalizeClass(["w-4",[{"opacity-100":!e.disabled},{"opacity-50 transform ":e.disabled}]])},null,10,vn)],10,bn))}},yn="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",En={class:"tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2","data-tip":"Clear"},_n=["disabled"],kn=["src"],Ze={__name:"ClearBtn",props:{disabled:Boolean},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("div",En,[t.createElementVNode("button",{class:t.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-transparent !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled},[t.createElementVNode("img",{src:t.unref(yn),alt:"Clear",class:t.normalizeClass(["w-4",[{"opacity-100":!e.disabled},{"opacity-50 transform ":e.disabled}]])},null,10,kn)],10,_n)]))}},Ln="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",Sn="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='%233B5695'/%3e%3c/svg%3e",Tn={class:"tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2","data-tip":"Favorite"},Vn=["disabled"],Bn=["src"],$n={__name:"FavoriteBtn",props:{disabled:Boolean,isFilled:Boolean},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("div",Tn,[t.createElementVNode("button",{class:t.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-transparent !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled},[t.createElementVNode("img",{src:e.isFilled?t.unref(Ln):t.unref(Sn),alt:"Favorite",class:t.normalizeClass(["w-4",[{"opacity-100":!e.disabled},{"opacity-50 transform ":e.disabled}]])},null,10,Bn)],10,Vn)]))}},In="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",Mn="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",On={class:"tooltip tooltip-top tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!text-xs before:!py-1 before:!px-2","data-tip":"AI Translate"},Nn=["disabled"],Fn=["src"],An={__name:"AIBtn",props:{disabled:Boolean,isFilled:Boolean},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("div",On,[t.createElementVNode("button",{class:t.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-transparent !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled},[t.createElementVNode("img",{src:e.isFilled?t.unref(In):t.unref(Mn),alt:"AI",class:t.normalizeClass(["w-4",[{"opacity-100":!e.disabled},{"opacity-50 transform ":e.disabled}]])},null,10,Fn)],10,Nn)]))}},Rn="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.9023%203.26667L10.8093%200.1C10.7767%200.0666667%2010.7116%200%2010.5814%200H3.74419C3.12558%200%202.60465%200.533333%202.60465%201.16667V2.66667H1.13953C0.52093%202.66667%200%203.2%200%203.83333V14.8667C0%2015.4667%200.52093%2016%201.13953%2016H10.2558C10.8744%2016%2011.3953%2015.4667%2011.3953%2014.8333V13.3333H12.8605C13.4791%2013.3333%2014%2012.8%2014%2012.1667V3.5C14%203.4%2013.9674%203.3%2013.9023%203.26667ZM12.893%203.16667H11.3954C11.1349%203.16667%2010.907%202.93333%2010.907%202.66667V1.13333L12.893%203.16667ZM10.2558%2015.3333H1.13953C0.87907%2015.3333%200.651163%2015.1%200.651163%2014.8333V3.83333C0.651163%203.53333%200.87907%203.33333%201.13953%203.33333H7.68372V5.33333C7.68372%205.96667%208.20465%206.5%208.82326%206.5H10.7767V14.8667C10.7442%2015.1%2010.5488%2015.3333%2010.2558%2015.3333ZM9.31163%204.8L10.2884%205.8H8.7907C8.53023%205.8%208.30233%205.56667%208.30233%205.3V3.76667L9.31163%204.8ZM12.8605%2012.6667H11.3953V6.13333C11.3953%206.06667%2011.3628%205.96667%2011.2977%205.9L8.20465%202.73333C8.17209%202.7%208.07442%202.66667%208.0093%202.66667H3.25581V1.16667C3.25581%200.9%203.45116%200.666666%203.74419%200.666666H10.2558V2.66667C10.2558%203.3%2010.7767%203.83333%2011.3954%203.83333H13.3488V12.2C13.3488%2012.4667%2013.1209%2012.6667%2012.8605%2012.6667Z'%20fill='%233B5695'/%3e%3c/svg%3e",Dn=["data-tip"],Hn=["disabled"],Pn=["src"],je={__name:"CopyBtn",props:{disabled:Boolean},setup(e){const o=t.ref("Copy"),n=()=>{o.value="Copied",setTimeout(()=>{o.value="Copy"},1e3)};return(l,a)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2","data-tip":o.value},[t.createElementVNode("button",{class:t.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-transparent !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled,onClick:n},[t.createElementVNode("img",{src:t.unref(Rn),alt:"Copy",class:t.normalizeClass(["w-3",[{"opacity-100":!e.disabled},{"opacity-50 transform ":e.disabled}]])},null,10,Pn)],10,Hn)],8,Dn))}},Zn={class:"flex flex-row px-1 pr-10 pt-1 items-center bg-transparent relative"},jn={class:"ml-1 text-sm text-base-content/70"},zn={key:0,class:"italic"},Un={class:"absolute right-1 top-1 flex flex-col items-center gap-0"},ze=G({__name:"InputBtnGroup",props:{loading:{type:Boolean,default:!1},isTTS:{type:Boolean,default:!0},src:{type:String,default:""},srcLabel:{type:String,default:""},type:{type:String,default:""},phonetic:{type:String,default:""},hasClearBtn:{type:Boolean,default:!1},hasFavoriteBtn:{type:Boolean,default:!1},hasAIBtn:{type:Boolean,default:!1},hasCopyBtn:{type:Boolean,default:!1},isFavorite:{type:Boolean,default:!1},isAITranslate:{type:Boolean,default:!1},onFavorite:{type:Function,default:()=>{}}},emits:["clear","favorite","loadTTS","aiTranslate","copy"],setup(e,{emit:o}){const n=o;return(l,a)=>(t.openBlock(),t.createElementBlock("div",Zn,[e.src&&e.isTTS?(t.openBlock(),t.createBlock(wn,{key:0,type:e.type,onLoadTTS:a[0]||(a[0]=s=>n("loadTTS"))},null,8,["type"])):t.createCommentVNode("",!0),t.createElementVNode("div",jn,[t.createTextVNode(t.toDisplayString(e.srcLabel)+" ",1),e.phonetic?(t.openBlock(),t.createElementBlock("span",zn,"- "+t.toDisplayString(e.phonetic),1)):t.createCommentVNode("",!0)]),e.loading?(t.openBlock(),t.createBlock(q2,{key:1,class:"absolute right-6 top-2"})):t.createCommentVNode("",!0),t.createElementVNode("div",Un,[e.hasClearBtn?(t.openBlock(),t.createBlock(Ze,{key:0,onClick:a[1]||(a[1]=s=>n("clear")),disabled:e.loading},null,8,["disabled"])):t.createCommentVNode("",!0),e.src&&e.hasAIBtn?(t.openBlock(),t.createBlock(An,{key:1,isFilled:e.isAITranslate,onClick:a[2]||(a[2]=s=>n("aiTranslate")),disabled:e.loading},null,8,["isFilled","disabled"])):t.createCommentVNode("",!0),e.src&&e.hasFavoriteBtn?(t.openBlock(),t.createBlock($n,{key:2,isFilled:e.isFavorite,onClick:a[3]||(a[3]=s=>n("favorite")),disabled:e.loading},null,8,["isFilled","disabled"])):t.createCommentVNode("",!0),e.src&&e.hasCopyBtn?(t.openBlock(),t.createBlock(je,{key:3,onClick:a[4]||(a[4]=s=>n("copy")),disabled:e.loading},null,8,["disabled"])):t.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-faca0157"]]),J=h2("translation",()=>{const e=t.ref(null),o=t.ref(null),n=t.ref(null),l=t.ref({src:null,target:null}),a=t.ref(null),s=t.ref([]),i=t.ref([]),r=t.ref([]),c=t.ref([]),d=t.ref({src:null,target:null}),u=s2(),f=t.computed(()=>u.getLabel(e.value)),v=t.computed(()=>u.getLabel(o.value));function g(h){e.value=h.src,o.value=h.target,n.value=h.text,l.value=h.phonetic,a.value=h.result,s.value=h.dictionary,i.value=h.definitions,r.value=h.synonyms,c.value=h.examples,d.value=h.tts}function b(){e.value=null,o.value=null,n.value=null,l.value={src:null,target:null},a.value=null,s.value=[],i.value=[],r.value=[],c.value=[],d.value={src:null,target:null}}return{src:e,srcLabel:f,target:o,targetLabel:v,phonetic:l,text:n,result:a,dictionary:s,definitions:i,synonyms:r,examples:c,tts:d,init:g,reset:b}});function Wn(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function T2(e){return typeof e=="function"?e():t.unref(e)}const qn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ue=()=>{};function Gn(e,o){function n(...l){return new Promise((a,s)=>{Promise.resolve(e(()=>o.apply(this,l),{fn:o,thisArg:this,args:l})).then(a).catch(s)})}return n}function Jn(e,o={}){let n,l,a=Ue;const s=r=>{clearTimeout(r),a(),a=Ue};return r=>{const c=T2(e),d=T2(o.maxWait);return n&&s(n),c<=0||d!==void 0&&d<=0?(l&&(s(l),l=null),Promise.resolve(r())):new Promise((u,f)=>{a=o.rejectOnCancel?f:u,d&&!l&&(l=setTimeout(()=>{n&&s(n),l=null,u(r())},d)),n=setTimeout(()=>{l&&s(l),l=null,u(r())},c)})}}function Yn(e,o=200,n={}){return Gn(Jn(o,n),e)}function We(e){var o;const n=T2(e);return(o=n==null?void 0:n.$el)!=null?o:n}const Qn=qn?window:void 0;function Xn(){const e=t.ref(!1),o=t.getCurrentInstance();return o&&t.onMounted(()=>{e.value=!0},o),e}function Kn(e){const o=Xn();return t.computed(()=>(o.value,!!e()))}function e1(e,o,n={}){const{window:l=Qn,...a}=n;let s;const i=Kn(()=>l&&"ResizeObserver"in l),r=()=>{s&&(s.disconnect(),s=void 0)},c=t.computed(()=>Array.isArray(e)?e.map(f=>We(f)):[We(e)]),d=t.watch(c,f=>{if(r(),i.value&&l){s=new ResizeObserver(o);for(const v of f)v&&s.observe(v,a)}},{immediate:!0,flush:"post"}),u=()=>{r(),d()};return Wn(u),{isSupported:i,stop:u}}function V2(e){var o;const n=t.ref(e==null?void 0:e.element),l=t.ref(e==null?void 0:e.input),a=(o=e==null?void 0:e.styleProp)!=null?o:"height",s=t.ref(1);function i(){var r;if(!n.value)return;let c="";n.value.style[a]="1px",s.value=(r=n.value)==null?void 0:r.scrollHeight,e!=null&&e.styleTarget?T2(e.styleTarget).style[a]=`${s.value}px`:c=`${s.value}px`,n.value.style[a]=c}return t.watch([l,n],()=>t.nextTick(i),{immediate:!0}),t.watch(s,()=>{var r;return(r=e==null?void 0:e.onResize)==null?void 0:r.call(e)}),e1(n,()=>i()),e!=null&&e.watch&&t.watch(e.watch,i,{immediate:!0,deep:!0}),{textarea:n,input:l,triggerResize:i}}const t1={class:"bg-base-100 relative z-10 border border-base-300 rounded"},n1=G({__name:"Input",props:{text:{type:String,default:""},isTTS:{type:Boolean,default:!0}},emits:["change","clear","loadTTS"],setup(e,{emit:o}){const n=J(),l=e,a=t.ref(l.text),s=t.computed(()=>n.src),i=t.computed(()=>n.srcLabel),r=t.computed(()=>{var b;return(b=n.phonetic)==null?void 0:b.src}),{textarea:c}=V2({input:a,styleProp:"minHeight"}),d=o,u=Yn(()=>{d("change",a.value)},r2.INPUT_DEBOUNCE);t.onMounted(()=>{g()});function f(){if(!a.value){v();return}u()}function v(){d("clear"),a.value="",c.value.focus()}async function g(){await t.nextTick(),c.value.select()}return t.watch(()=>l.text,b=>{a.value!==b&&g(),a.value=b}),(b,h)=>(t.openBlock(),t.createElementBlock("div",t1,[t.createVNode(ze,{src:s.value,srcLabel:i.value,isTTS:e.isTTS,type:"src",phonetic:r.value,hasClearBtn:a.value.length>0,onClear:v,onLoadTTS:h[0]||(h[0]=T=>d("loadTTS"))},null,8,["src","srcLabel","isTTS","phonetic","hasClearBtn"]),t.withDirectives(t.createElementVNode("textarea",{ref_key:"textarea",ref:c,"onUpdate:modelValue":h[1]||(h[1]=T=>a.value=T),class:"w-full outline-none px-2 pr-8 bg-transparent text-base-content resize-none pb-3 overflow-x-hidden overflow-y-hidden",autofocus:"",rows:"2",onInput:f,onFocus:g},null,544),[[t.vModelText,a.value,void 0,{trim:!0}]])]))}},[["__scopeId","data-v-66ae5655"]]),o1={class:"bg-base-100 relative z-10 rounded-md h-full"},l1={class:"bg-transparent"},a1=G({__name:"Result",props:{isFavoriteFeatureEnabled:Boolean,isAITranslateFeatureEnabled:Boolean,isAITranslate:Boolean,isFavorite:Boolean,isTTS:{type:Boolean,default:!0}},emits:["loadTTS","favorite","aiTranslate","copy"],setup(e,{emit:o}){const n=J(),l=t.computed(()=>n.result),a=t.computed(()=>n.target),s=t.computed(()=>n.targetLabel),i=t.computed(()=>{var v;return(v=n.phonetic)==null?void 0:v.target}),r=n2(),c=t.computed(()=>r.isLoading("translation")),{textarea:d,input:u}=V2({input:l,styleProp:"minHeight"}),f=o;return(v,g)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["relative p-0.5 bg-[length:300%_300%] bg-[position:0%_50%] border border-base-300 rounded",{"bg-gradient-to-br from-[#8556f0] via-[#d6b379] via-[#6bedd1] to-[#439beb] animate-moveGradient border border-base-100":e.isAITranslate&&!c.value}])},[t.createElementVNode("div",o1,[t.createVNode(ze,{loading:c.value,src:a.value,srcLabel:s.value,isTTS:e.isTTS,type:"target",hasFavoriteBtn:e.isFavoriteFeatureEnabled,hasAIBtn:e.isAITranslateFeatureEnabled,hasCopyBtn:!0,isFavorite:e.isFavorite,isAITranslate:e.isAITranslate,phonetic:i.value,onFavorite:g[0]||(g[0]=b=>f("favorite")),onLoadTTS:g[1]||(g[1]=b=>f("loadTTS")),onAiTranslate:g[2]||(g[2]=b=>f("aiTranslate")),onCopy:g[3]||(g[3]=b=>f("copy"))},null,8,["loading","src","srcLabel","isTTS","hasFavoriteBtn","hasAIBtn","isFavorite","isAITranslate","phonetic"]),t.createElementVNode("div",l1,[t.withDirectives(t.createElementVNode("textarea",{ref_key:"textarea",ref:d,"onUpdate:modelValue":g[4]||(g[4]=b=>t.isRef(u)?u.value=b:null),class:"w-full outline-none px-2 pr-8 bg-transparent text-base-content resize-none pb-3 overflow-x-hidden overflow-y-hidden",readonly:"",rows:"2",spellcheck:"false"},null,512),[[t.vModelText,t.unref(u)]])])])],2))}},[["__scopeId","data-v-88599360"]]),s1={class:"btn btn-xs btn-circle btn-ghost"},B2={__name:"ToggleBtn",props:{isExpanded:Boolean},setup(e){const o=e;return(n,l)=>(t.openBlock(),t.createElementBlock("button",s1,[o.isExpanded?(t.openBlock(),t.createBlock(t.unref(xt),{key:0,class:"w-7 text-base-content/50"})):(t.openBlock(),t.createBlock(t.unref(bt),{key:1,class:"w-7 text-base-content/50"}))]))}},r1=t.createElementVNode("h2",{class:"card-title text-base font-bold text-base-content"},"Dictionary",-1),i1={class:"capitalize text-xs font-normal text-base-content/70 mb-1"},c1={class:"list-none list-inside"},d1=["onClick"],u1={class:"text-sm font-normal text-base-content/80 leading-4"},f1={__name:"Dictionary",emits:["translate"],setup(e,{emit:o}){const n=t.ref(!0),l=J(),a=s2(),s=t.computed(()=>l.dictionary),i=o,r=()=>{n.value=!n.value},c=d=>{i("translate",d,l.target,l.src),a.src=l.target,a.target=l.src,window.scrollTo(0,0)};return(d,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:"flex justify-between items-center",onClick:r},[r1,t.createVNode(B2,{isExpanded:n.value},null,8,["isExpanded"])]),t.createElementVNode("div",{class:t.normalizeClass(["overflow-hidden",n.value?"max-h-[2000px] opacity-100":"max-h-0 opacity-0"])},[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(f,v)=>(t.openBlock(),t.createElementBlock("li",{key:`${f.pos}-${v}`,class:"mb-2"},[t.createElementVNode("h5",i1,t.toDisplayString(f.pos),1),t.createElementVNode("ul",c1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.items,(g,b)=>(t.openBlock(),t.createElementBlock("li",{key:`${g.word}-${b}`},[t.createElementVNode("span",{class:"m-0.5 font-normal badge badge-ghost bg-primary text-primary-content cursor-pointer border-0 rounded",onClick:h=>c(g.word)},t.toDisplayString(g.word),9,d1),t.createElementVNode("small",u1," - "+t.toDisplayString(g.reverse_translation.join(", ")),1)]))),128))])]))),128))])],2)],64))}},p1=t.createElementVNode("h2",{class:"card-title text-base font-bold text-base-content"},"Definitions",-1),m1={class:"capitalize text-xs font-normal text-base-content/70 mb-1"},h1={class:"text-sm text-base-content list-disc list-outside ml-5"},g1=t.createElementVNode("br",null,null,-1),C1={key:0,class:"italic text-base-content/70"},b1={__name:"Definition",setup(e){const o=t.ref(!0),n=J(),l=t.computed(()=>n.definitions),a=()=>{o.value=!o.value};return(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:"flex justify-between items-center",onClick:a},[p1,t.createVNode(B2,{isExpanded:o.value},null,8,["isExpanded"])]),t.createElementVNode("div",{class:t.normalizeClass(["overflow-hidden",o.value?"max-h-[2000px] opacity-100":"max-h-0 opacity-0"])},[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(r,c)=>(t.openBlock(),t.createElementBlock("li",{key:`${r.pos}-${c}`,class:"mb-2"},[t.createElementVNode("h5",m1,t.toDisplayString(r.pos),1),t.createElementVNode("ul",h1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.items,(d,u)=>(t.openBlock(),t.createElementBlock("li",{key:`${d.gloss}-${u}`,class:"mb-1"},[t.createElementVNode("span",null,t.toDisplayString(d.gloss),1),g1,d.example?(t.openBlock(),t.createElementBlock("small",C1,'"'+t.toDisplayString(d.example)+'"',1)):t.createCommentVNode("",!0)]))),128))])]))),128))])],2)],64))}},v1=t.createElementVNode("h2",{class:"card-title text-base font-bold text-base-content"},"Examples",-1),x1={class:"text-base-content text-sm list-disc list-outside ml-5 my-2"},w1=["innerHTML"],y1={__name:"Example",setup(e){const o=t.ref(!0),n=J(),l=t.computed(()=>n.examples),a=()=>{o.value=!o.value};return(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:"flex justify-between items-center",onClick:a},[v1,t.createVNode(B2,{isExpanded:o.value},null,8,["isExpanded"])]),t.createElementVNode("div",{class:t.normalizeClass(["overflow-hidden",o.value?"max-h-[1000px] opacity-100":"max-h-0 opacity-0"])},[t.createElementVNode("ul",x1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(r,c)=>(t.openBlock(),t.createElementBlock("li",{key:`${r.definition_id}-${c}`,innerHTML:r},null,8,w1))),128))])],2)],64))}},E1=t.createElementVNode("h2",{class:"card-title text-base font-bold text-base-content"},"Synonyms",-1),_1={class:"capitalize text-xs font-normal text-base-content/70 mb-1"},k1={class:"list-none list-inside"},L1={class:"flex flex-wrap"},S1=["onClick"],T1={__name:"Synonyms",emits:["translate"],setup(e,{emit:o}){const n=t.ref(!0),l=J(),a=t.computed(()=>l.synonyms),s=o,i=()=>{n.value=!n.value},r=c=>{s("translate",c),window.scrollTo(0,0)};return(c,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:"flex justify-between items-center",onClick:i},[E1,t.createVNode(B2,{isExpanded:n.value},null,8,["isExpanded"])]),t.createElementVNode("div",{class:t.normalizeClass(["overflow-hidden",n.value?"max-h-[2000px] opacity-100":"max-h-0 opacity-0"])},[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(u,f)=>(t.openBlock(),t.createElementBlock("li",{key:`${u.pos}-${f}`,class:"mb-2"},[t.createElementVNode("h5",_1,t.toDisplayString(u.pos),1),t.createElementVNode("ul",k1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.items,(v,g)=>(t.openBlock(),t.createElementBlock("li",{key:`${v.word}-${g}`,class:"mb-2"},[t.createElementVNode("div",L1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.synonym,(b,h)=>(t.openBlock(),t.createElementBlock("span",{key:`${b}-${h}`,class:"m-0.5 ml-0 font-normal badge badge-ghost bg-primary text-primary-content cursor-pointer border-0 rounded",onClick:T=>r(b)},t.toDisplayString(b),9,S1))),128))])]))),128))])]))),128))])],2)],64))}},V1="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",B1="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",$1=["disabled"],I1=["src"],M1={__name:"ChevronAIBtn",props:{disabled:Boolean,isExpanded:Boolean},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-transparent !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled},[t.createElementVNode("img",{src:e.isExpanded?t.unref(V1):t.unref(B1),alt:"AI",class:t.normalizeClass(["w-6",[{"opacity-100":!e.disabled},{"opacity-50 transform ":e.disabled}]])},null,10,I1)],10,$1))}},O1={class:"card-body bg-base-100 pl-2 pr-1 py-1 gap-0 relative z-10 rounded"},N1={class:"flex justify-between items-center"},F1=t.createElementVNode("h2",{class:"card-title text-base font-bold text-base-content"},"AI Summary",-1),A1={class:"flex items-center"},R1={class:"tooltip tooltip-bottom tooltip-small before:!bg-base-100 before:!border before:!border-solid before:!border-base-300 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded before:!text-base-content/70 before:!top-[90%] before:!text-xs before:!py-1 before:!px-2","data-tip":"AI Summarize"},D1={key:0,class:"text-base-content list-none list-outside"},H1=["innerHTML"],P1={__name:"AIExplanation",props:{isAIExplain:{type:Boolean,default:!1,required:!0},explanation:{type:Object,required:!0}},emits:["aiExplain"],setup(e,{emit:o}){const n=n2(),l=t.computed(()=>n.isLoading("aiExplanation")),a=o;function s(){a("aiExplain")}return(i,r)=>{var c,d;return t.openBlock(),t.createElementBlock("div",O1,[t.createElementVNode("div",N1,[F1,t.createElementVNode("div",A1,[l.value?(t.openBlock(),t.createBlock(q2,{key:0})):t.createCommentVNode("",!0),t.createElementVNode("div",R1,[t.createVNode(M1,{isExpanded:e.isAIExplain,disabled:l.value,onClick:s},null,8,["isExpanded","disabled"])])])]),t.createElementVNode("div",{class:t.normalizeClass(["overflow-hidden",e.isAIExplain?"max-h-[1000px] opacity-100":"max-h-0 opacity-0"])},[(c=e.explanation)!=null&&c.result?(t.openBlock(),t.createElementBlock("ul",D1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(((d=e.explanation)==null?void 0:d.result.split(`
18
+ `))||[],(u,f)=>(t.openBlock(),t.createElementBlock("li",{key:`${u}-${f}`,innerHTML:u},null,8,H1))),128))])):t.createCommentVNode("",!0)],2)])}}};function Z1(){document.documentElement.setAttribute("dir","rtl")}function j1(){document.documentElement.removeAttribute("dir")}const qe={supportRTL:Z1,removeRTL:j1},z1=["ar","fa","iw","yi","ur","pa"],U1=e=>(t.pushScopeId("data-v-868afa45"),e=e(),t.popScopeId(),e),W1={class:"pb-6"},q1={class:"flex flex-col lg:flex-row lg:gap-2"},G1={id:"input",class:"w-full lg:w-[calc(50%-1rem)] flex mt-1"},J1=U1(()=>t.createElementVNode("div",{class:"w-6 h-4 mx-auto hidden lg:block"},null,-1)),Y1={class:"w-full lg:w-[calc(50%-1rem)] flex mt-1"},Q1={key:0,class:"masonry-container mt-1"},X1={key:0,class:"masonry-item"},K1={key:1,class:"masonry-item border border-base-300 bg-base-100"},eo={class:"p-2"},to={key:2,class:"masonry-item border border-base-300 bg-base-100"},no={class:"p-2"},oo={key:3,class:"masonry-item border border-base-300 bg-base-100"},lo={class:"p-2"},ao={key:4,class:"masonry-item border border-base-300 bg-base-100"},so={class:"p-2"},ro={key:1,class:"text-base-content italic font-medium"},io=G({__name:"TranslateTab",props:{opt:Object,languages:Object,translation:Object,explanation:Object,tts:Object,isTTS:Boolean,isFavoriteFeatureEnabled:Boolean,isAITranslateFeatureEnabled:Boolean,isFavorite:Boolean,isAITranslate:Boolean,isAIExplain:Boolean,aiExplainMinLength:Number},emits:["opt","translate","loadTTS","favorite","aiTranslate","aiExplain","copy"],setup(e,{emit:o}){const n=t.ref(""),l=e,a=t.inject("translationStore"),s=t.inject("ttsStore"),i=t.inject("languageStore"),r=t.inject("loaderStore"),c=o,d=()=>{const x=l.opt.target;z1.includes(x)?qe.supportRTL():qe.removeRTL()};t.watch(()=>l.translation,x=>{r.setLoading("translation",!1),x&&(n.value=x.text,a.init(x),s.reset())},{immediate:!0}),t.watch([()=>l.explanation,()=>l.isAIExplain],([x])=>{x!=null&&x.result&&r.setLoading("aiExplanation",!1)},{immediate:!0,deep:!0}),t.watch(()=>l.tts,x=>{if(!x){s.reset();return}s.set(x)},{immediate:!0}),t.watch([()=>l.opt,()=>l.languages],([x,C])=>{i.init(x,C),d()}),t.watch([()=>i.src,()=>i.target],([x,C])=>{c("opt",{src:x,target:C}),g(n.value)}),t.onMounted(()=>{i.init(l.opt,l.languages),d()});function u(){n.value="",l.isAITranslate&&b(),a.reset()}function f(x){n.value=x,g(x)}function v(x){const C=x==="src"?a.text:a.result;c("loadTTS",{type:x,data:C})}function g(x,C=i.src,_=i.target){x&&(T(),n.value=x,r.setLoading("translation",!0),c("translate",{src:C,target:_,text:x}))}function b(){l.isAITranslate||r.setLoading("translation",!0),c("aiTranslate",{src:i.src,target:i.target,text:n.value})}function h(){l.isAIExplain||r.setLoading("aiExplanation",!0),c("aiExplain",{src:i.src,target:i.target,text:n.value})}function T(){const x=document.getElementById("input");x&&x.getBoundingClientRect().top<0&&x.scrollIntoView({behavior:"smooth"})}return(x,C)=>{var _,L,w,V,y;return t.openBlock(),t.createElementBlock("div",W1,[t.createVNode(fn),t.createElementVNode("div",q1,[t.createElementVNode("div",G1,[t.createVNode(n1,{text:n.value,isTTS:e.isTTS,onChange:f,onClear:u,onLoadTTS:C[0]||(C[0]=E=>v("src")),class:"flex-grow flex flex-col"},null,8,["text","isTTS"])]),J1,t.createElementVNode("div",Y1,[t.createVNode(a1,{isFavoriteFeatureEnabled:e.isFavoriteFeatureEnabled,isAITranslateFeatureEnabled:e.isAITranslateFeatureEnabled,isAITranslate:e.isAITranslate,isFavorite:e.isFavorite,isTTS:e.isTTS,onCopy:C[1]||(C[1]=E=>{var B;return x.$emit("copy",(B=t.unref(a))==null?void 0:B.result)}),onAiTranslate:b,onFavorite:C[2]||(C[2]=E=>x.$emit("favorite")),onLoadTTS:C[3]||(C[3]=E=>v("target")),class:"flex-grow flex flex-col"},null,8,["isFavoriteFeatureEnabled","isAITranslateFeatureEnabled","isAITranslate","isFavorite","isTTS"])])]),e.translation?(t.openBlock(),t.createElementBlock("div",Q1,[((_=t.unref(a).result)==null?void 0:_.length)>e.aiExplainMinLength?(t.openBlock(),t.createElementBlock("div",X1,[t.createVNode(P1,{isAIExplain:e.isAIExplain,explanation:e.explanation,onAiExplain:h},null,8,["isAIExplain","explanation"])])):t.createCommentVNode("",!0),(L=t.unref(a).dictionary)!=null&&L.length?(t.openBlock(),t.createElementBlock("div",K1,[t.createElementVNode("div",eo,[t.createVNode(f1,{onTranslate:g})])])):t.createCommentVNode("",!0),(w=t.unref(a).definitions)!=null&&w.length?(t.openBlock(),t.createElementBlock("div",to,[t.createElementVNode("div",no,[t.createVNode(b1)])])):t.createCommentVNode("",!0),(V=t.unref(a).synonyms)!=null&&V.length?(t.openBlock(),t.createElementBlock("div",oo,[t.createElementVNode("div",lo,[t.createVNode(T1,{onTranslate:g})])])):t.createCommentVNode("",!0),(y=t.unref(a).examples)!=null&&y.length?(t.openBlock(),t.createElementBlock("div",ao,[t.createElementVNode("div",so,[t.createVNode(y1)])])):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",ro,"Service unavailable"))])}}},[["__scopeId","data-v-868afa45"]]),co="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke='%233B5695'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20d='M4%204v5h.582m15.356%202A8.001%208.001%200%20004.582%209m0%200H9m11%2011v-5h-.581m0%200a8.003%208.003%200%2001-15.357-2m15.357%202H15'%20/%3e%3c/svg%3e",uo=["disabled"],fo=["src"],po={__name:"RetryBtn",props:{disabled:Boolean},emits:["click"],setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("button",{class:"bg-base-100 rounded-full hover:bg-base-200 focus:outline-none active:scale-95",onClick:n[0]||(n[0]=l=>o.$emit("click")),disabled:e.disabled,"aria-label":"Retry"},[t.createElementVNode("img",{src:t.unref(co),alt:"Retry",class:t.normalizeClass(["h-5 w-5 text-primary",{"opacity-50":e.disabled}])},null,10,fo)],8,uo))}},mo="data:image/svg+xml,%3csvg%20fill='%233B5695'%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12,7a4,4,0,1,0,4,4A4,4,0,0,0,12,7Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,13Zm6.5,2v1.5H20a1,1,0,0,1,0,2H18.5V20a1,1,0,0,1-2,0V18.5H15a1,1,0,0,1,0-2h1.5V15a1,1,0,0,1,2,0Zm3.438-4.345a.987.987,0,0,1,0,.69,13.339,13.339,0,0,1-1.08,2.264,1,1,0,1,1-1.715-1.028A11.3,11.3,0,0,0,19.928,11C18.451,7.343,15.373,5,12,5S5.549,7.343,4.072,11a9.315,9.315,0,0,0,6.167,5.787,1,1,0,1,1-.478,1.942,11.393,11.393,0,0,1-7.7-7.383.99.99,0,0,1,0-.691C3.773,6,7.674,3,12,3S20.227,6,21.938,10.655Z'/%3e%3c/svg%3e",ho="data:image/svg+xml,%3csvg%20fill='%233B5695'%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.293,21.707a1,1,0,0,0,1.414,0l3.2-3.2A9.581,9.581,0,0,0,12,20c4.325,0,8.227-3,9.938-7.654a.993.993,0,0,0,0-.692A12.6,12.6,0,0,0,18.7,6.719l3.012-3.012a1,1,0,1,0-1.414-1.414l-3.2,3.2A9.581,9.581,0,0,0,12,4C7.675,4,3.773,7,2.062,11.654a.993.993,0,0,0,0,.692,12.6,12.6,0,0,0,3.243,4.935L2.293,20.293A1,1,0,0,0,2.293,21.707ZM17.266,8.148A10.454,10.454,0,0,1,19.929,12c-1.478,3.657-4.556,6-7.929,6a7.52,7.52,0,0,1-3.632-.954l1.613-1.613A3.947,3.947,0,0,0,12,16a4,4,0,0,0,4-4,3.947,3.947,0,0,0-.567-2.019Zm-7.191,4.363A1.96,1.96,0,0,1,10,12a2,2,0,0,1,2-2,1.96,1.96,0,0,1,.511.075Zm3.85-1.022A1.96,1.96,0,0,1,14,12a2,2,0,0,1-2,2,1.96,1.96,0,0,1-.511-.075ZM4.071,12C5.549,8.343,8.627,6,12,6a7.52,7.52,0,0,1,3.632.954L14.019,8.567A3.947,3.947,0,0,0,12,8a4,4,0,0,0-4,4,3.947,3.947,0,0,0,.567,2.019L6.734,15.852A10.454,10.454,0,0,1,4.071,12Z'/%3e%3c/svg%3e",go=["data-tip"],Co=["disabled"],bo=["src","alt"],vo={__name:"ToggleDiffBtn",props:{disabled:Boolean,isDiffMode:Boolean},emits:["toggle"],setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2","data-tip":e.isDiffMode?"Hide Differences":"Show Differences"},[t.createElementVNode("button",{class:t.normalizeClass(["btn btn-xs btn-circle",[{"btn-ghost":!e.disabled},{"!bg-transparent !border-none !shadow-none !ring-0":e.disabled}]]),disabled:e.disabled,onClick:n[0]||(n[0]=l=>o.$emit("toggle"))},[t.createElementVNode("img",{src:e.isDiffMode?t.unref(mo):t.unref(ho),alt:e.isDiffMode?"Hide Differences":"Show Differences",class:t.normalizeClass(["w-4",[{"opacity-100":!e.disabled},{"opacity-50 transform ":e.disabled}]])},null,10,bo)],10,Co)],8,go))}},xo={class:"flex flex-row px-2 pr-10 items-center bg-transparent relative"},wo={class:"absolute right-1 top-1 flex flex-col items-center gap-0"},Ge={__name:"InputBtnGroup",props:{loading:{type:Boolean,default:!1},src:{type:String,default:""},hasCopyBtn:{type:Boolean,default:!1},hasClearBtn:{type:Boolean,default:!1},showDiffToggle:{type:Boolean,default:!1},isDiffMode:{type:Boolean,default:!1},hasInfoBtn:{type:Boolean,default:!1}},emits:["copy","clear","toggleDiff","info"],setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("div",xo,[e.loading?(t.openBlock(),t.createBlock(q2,{key:0,class:"absolute right-6 top-2"})):t.createCommentVNode("",!0),t.createElementVNode("div",wo,[e.showDiffToggle?(t.openBlock(),t.createBlock(vo,{key:0,disabled:e.loading,isDiffMode:e.isDiffMode,onToggle:n[0]||(n[0]=l=>o.$emit("toggleDiff"))},null,8,["disabled","isDiffMode"])):t.createCommentVNode("",!0),e.hasClearBtn&&e.src?(t.openBlock(),t.createBlock(Ze,{key:1,onClick:n[1]||(n[1]=l=>o.$emit("clear")),disabled:e.loading},null,8,["disabled"])):t.createCommentVNode("",!0),e.hasCopyBtn&&e.src?(t.openBlock(),t.createBlock(je,{key:2,onClick:n[2]||(n[2]=l=>o.$emit("copy"))})):t.createCommentVNode("",!0)])]))}},yo={class:"bg-base-100 relative z-10 border border-base-300 rounded"},Eo=["onKeydown","placeholder"],_o=G({__name:"Input",props:{text:{type:String,default:""}},emits:["change","clear","improve"],setup(e,{emit:o}){const n=e,l=t.ref(n.text),{textarea:a}=V2({input:l,styleProp:"minHeight"}),s=o;function i(){if(!l.value){r();return}s("change",l.value)}function r(){s("clear"),l.value="",a.value.focus()}function c(){a.value&&a.value.select()}function d(){l.value&&s("improve",l.value)}return t.watch(()=>n.text,u=>{l.value!==u&&(l.value=u,t.nextTick(c))}),t.onMounted(()=>{l.value=n.text,t.nextTick(()=>{a.value.focus(),c()})}),(u,f)=>(t.openBlock(),t.createElementBlock("div",yo,[t.createVNode(Ge,{src:e.text,hasClearBtn:!0,hasInfoBtn:!0,onClear:r,class:"mb-1"},null,8,["src"]),t.withDirectives(t.createElementVNode("textarea",{ref_key:"textarea",ref:a,"onUpdate:modelValue":f[0]||(f[0]=v=>l.value=v),class:"w-full outline-none px-2 pr-8 bg-transparent text-base-content resize-none pb-3 overflow-x-hidden overflow-y-hidden h-full",autofocus:"",rows:"2",onInput:i,onFocus:c,onKeydown:t.withKeys(t.withModifiers(d,["ctrl","prevent"]),["enter"]),placeholder:`Min ${t.unref(r2).IMPROVE_INPUT_MIN_LENGTH} characters. ${t.unref(N2)?"":"Ctrl+Enter to improve"}`},null,40,Eo),[[t.vModelText,l.value,void 0,{trim:!0}]])]))}},[["__scopeId","data-v-66614870"]]);function z(){}z.prototype={diff:function(o,n){var l,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.callback;typeof a=="function"&&(s=a,a={});var i=this;function r(L){return L=i.postProcess(L,a),s?(setTimeout(function(){s(L)},0),!0):L}o=this.castInput(o,a),n=this.castInput(n,a),o=this.removeEmpty(this.tokenize(o,a)),n=this.removeEmpty(this.tokenize(n,a));var c=n.length,d=o.length,u=1,f=c+d;a.maxEditLength!=null&&(f=Math.min(f,a.maxEditLength));var v=(l=a.timeout)!==null&&l!==void 0?l:1/0,g=Date.now()+v,b=[{oldPos:-1,lastComponent:void 0}],h=this.extractCommon(b[0],n,o,0,a);if(b[0].oldPos+1>=d&&h+1>=c)return r(Je(i,b[0].lastComponent,n,o,i.useLongestToken));var T=-1/0,x=1/0;function C(){for(var L=Math.max(T,-u);L<=Math.min(x,u);L+=2){var w=void 0,V=b[L-1],y=b[L+1];V&&(b[L-1]=void 0);var E=!1;if(y){var B=y.oldPos-L;E=y&&0<=B&&B<c}var p=V&&V.oldPos+1<d;if(!E&&!p){b[L]=void 0;continue}if(!p||E&&V.oldPos<y.oldPos?w=i.addToPath(y,!0,!1,0,a):w=i.addToPath(V,!1,!0,1,a),h=i.extractCommon(w,n,o,L,a),w.oldPos+1>=d&&h+1>=c)return r(Je(i,w.lastComponent,n,o,i.useLongestToken));b[L]=w,w.oldPos+1>=d&&(x=Math.min(x,L-1)),h+1>=c&&(T=Math.max(T,L+1))}u++}if(s)(function L(){setTimeout(function(){if(u>f||Date.now()>g)return s();C()||L()},0)})();else for(;u<=f&&Date.now()<=g;){var _=C();if(_)return _}},addToPath:function(o,n,l,a,s){var i=o.lastComponent;return i&&!s.oneChangePerToken&&i.added===n&&i.removed===l?{oldPos:o.oldPos+a,lastComponent:{count:i.count+1,added:n,removed:l,previousComponent:i.previousComponent}}:{oldPos:o.oldPos+a,lastComponent:{count:1,added:n,removed:l,previousComponent:i}}},extractCommon:function(o,n,l,a,s){for(var i=n.length,r=l.length,c=o.oldPos,d=c-a,u=0;d+1<i&&c+1<r&&this.equals(l[c+1],n[d+1],s);)d++,c++,u++,s.oneChangePerToken&&(o.lastComponent={count:1,previousComponent:o.lastComponent,added:!1,removed:!1});return u&&!s.oneChangePerToken&&(o.lastComponent={count:u,previousComponent:o.lastComponent,added:!1,removed:!1}),o.oldPos=c,d},equals:function(o,n,l){return l.comparator?l.comparator(o,n):o===n||l.ignoreCase&&o.toLowerCase()===n.toLowerCase()},removeEmpty:function(o){for(var n=[],l=0;l<o.length;l++)o[l]&&n.push(o[l]);return n},castInput:function(o){return o},tokenize:function(o){return Array.from(o)},join:function(o){return o.join("")},postProcess:function(o){return o}};function Je(e,o,n,l,a){for(var s=[],i;o;)s.push(o),i=o.previousComponent,delete o.previousComponent,o=i;s.reverse();for(var r=0,c=s.length,d=0,u=0;r<c;r++){var f=s[r];if(f.removed)f.value=e.join(l.slice(u,u+f.count)),u+=f.count;else{if(!f.added&&a){var v=n.slice(d,d+f.count);v=v.map(function(g,b){var h=l[u+b];return h.length>g.length?h:g}),f.value=e.join(v)}else f.value=e.join(n.slice(d,d+f.count));d+=f.count,f.added||(u+=f.count)}}return s}function Ye(e,o){var n;for(n=0;n<e.length&&n<o.length;n++)if(e[n]!=o[n])return e.slice(0,n);return e.slice(0,n)}function Qe(e,o){var n;if(!e||!o||e[e.length-1]!=o[o.length-1])return"";for(n=0;n<e.length&&n<o.length;n++)if(e[e.length-(n+1)]!=o[o.length-(n+1)])return e.slice(-n);return e.slice(-n)}function J2(e,o,n){if(e.slice(0,o.length)!=o)throw Error("string ".concat(JSON.stringify(e)," doesn't start with prefix ").concat(JSON.stringify(o),"; this is a bug"));return n+e.slice(o.length)}function Y2(e,o,n){if(!o)return e+n;if(e.slice(-o.length)!=o)throw Error("string ".concat(JSON.stringify(e)," doesn't end with suffix ").concat(JSON.stringify(o),"; this is a bug"));return e.slice(0,-o.length)+n}function g2(e,o){return J2(e,o,"")}function $2(e,o){return Y2(e,o,"")}function Xe(e,o){return o.slice(0,ko(e,o))}function ko(e,o){var n=0;e.length>o.length&&(n=e.length-o.length);var l=o.length;e.length<o.length&&(l=e.length);var a=Array(l),s=0;a[0]=0;for(var i=1;i<l;i++){for(o[i]==o[s]?a[i]=a[s]:a[i]=s;s>0&&o[i]!=o[s];)s=a[s];o[i]==o[s]&&s++}s=0;for(var r=n;r<e.length;r++){for(;s>0&&e[r]!=o[s];)s=a[s];e[r]==o[s]&&s++}return s}var I2="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",Lo=new RegExp("[".concat(I2,"]+|\\s+|[^").concat(I2,"]"),"ug"),M2=new z;M2.equals=function(e,o,n){return n.ignoreCase&&(e=e.toLowerCase(),o=o.toLowerCase()),e.trim()===o.trim()},M2.tokenize=function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n;if(o.intlSegmenter){if(o.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');n=Array.from(o.intlSegmenter.segment(e),function(s){return s.segment})}else n=e.match(Lo)||[];var l=[],a=null;return n.forEach(function(s){/\s/.test(s)?a==null?l.push(s):l.push(l.pop()+s):/\s/.test(a)?l[l.length-1]==a?l.push(l.pop()+s):l.push(a+s):l.push(s),a=s}),l},M2.join=function(e){return e.map(function(o,n){return n==0?o:o.replace(/^\s+/,"")}).join("")},M2.postProcess=function(e,o){if(!e||o.oneChangePerToken)return e;var n=null,l=null,a=null;return e.forEach(function(s){s.added?l=s:s.removed?a=s:((l||a)&&Ke(n,a,l,s),n=s,l=null,a=null)}),(l||a)&&Ke(n,a,l,null),e};function Ke(e,o,n,l){if(o&&n){var a=o.value.match(/^\s*/)[0],s=o.value.match(/\s*$/)[0],i=n.value.match(/^\s*/)[0],r=n.value.match(/\s*$/)[0];if(e){var c=Ye(a,i);e.value=Y2(e.value,i,c),o.value=g2(o.value,c),n.value=g2(n.value,c)}if(l){var d=Qe(s,r);l.value=J2(l.value,r,d),o.value=$2(o.value,d),n.value=$2(n.value,d)}}else if(n)e&&(n.value=n.value.replace(/^\s*/,"")),l&&(l.value=l.value.replace(/^\s*/,""));else if(e&&l){var u=l.value.match(/^\s*/)[0],f=o.value.match(/^\s*/)[0],v=o.value.match(/\s*$/)[0],g=Ye(u,f);o.value=g2(o.value,g);var b=Qe(g2(u,g),v);o.value=$2(o.value,b),l.value=J2(l.value,u,b),e.value=Y2(e.value,u,u.slice(0,u.length-b.length))}else if(l){var h=l.value.match(/^\s*/)[0],T=o.value.match(/\s*$/)[0],x=Xe(T,h);o.value=$2(o.value,x)}else if(e){var C=e.value.match(/\s*$/)[0],_=o.value.match(/^\s*/)[0],L=Xe(C,_);o.value=g2(o.value,L)}}var e0=new z;e0.tokenize=function(e){var o=new RegExp("(\\r?\\n)|[".concat(I2,"]+|[^\\S\\n\\r]+|[^").concat(I2,"]"),"ug");return e.match(o)||[]};function So(e,o,n){return e0.diff(e,o,n)}var Q2=new z;Q2.tokenize=function(e,o){o.stripTrailingCr&&(e=e.replace(/\r\n/g,`
19
19
  `));var n=[],l=e.split(/(\n|\r\n)/);l[l.length-1]||l.pop();for(var a=0;a<l.length;a++){var s=l[a];a%2&&!o.newlineIsToken?n[n.length-1]+=s:n.push(s)}return n},Q2.equals=function(e,o,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
20
20
  `))&&(e=e.trim()),(!n.newlineIsToken||!o.includes(`
21
21
  `))&&(o=o.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
22
22
  `)&&(e=e.slice(0,-1)),o.endsWith(`
23
- `)&&(o=o.slice(0,-1))),z.prototype.equals.call(this,e,o,n)};var To=new z;To.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var Bo=new z;Bo.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function X2(e){"@babel/helpers - typeof";return X2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},X2(e)}var C2=new z;C2.useLongestToken=!0,C2.tokenize=Q2.tokenize,C2.castInput=function(e,o){var n=o.undefinedReplacement,l=o.stringifyReplacer,a=l===void 0?function(s,i){return typeof i>"u"?n:i}:l;return typeof e=="string"?e:JSON.stringify(K2(e,null,null,a),a," ")},C2.equals=function(e,o,n){return z.prototype.equals.call(C2,e.replace(/,([\r\n])/g,"$1"),o.replace(/,([\r\n])/g,"$1"),n)};function K2(e,o,n,l,a){o=o||[],n=n||[],l&&(e=l(a,e));var s;for(s=0;s<o.length;s+=1)if(o[s]===e)return n[s];var i;if(Object.prototype.toString.call(e)==="[object Array]"){for(o.push(e),i=new Array(e.length),n.push(i),s=0;s<e.length;s+=1)i[s]=K2(e[s],o,n,l,a);return o.pop(),n.pop(),i}if(e&&e.toJSON&&(e=e.toJSON()),X2(e)==="object"&&e!==null){o.push(e),i={},n.push(i);var r=[],c;for(c in e)Object.prototype.hasOwnProperty.call(e,c)&&r.push(c);for(r.sort(),s=0;s<r.length;s+=1)c=r[s],i[c]=K2(e[c],o,n,l,c);o.pop(),n.pop()}else i=e;return i}var ee=new z;ee.tokenize=function(e){return e.slice()},ee.join=ee.removeEmpty=function(e){return e};const $o={class:"bg-white relative z-10 border rounded"},Io={class:"flex justify-end items-center mb-1"},Mo={class:"bg-transparent"},Oo=["innerHTML"],No={__name:"Result",props:{text:{type:String,default:""},originalText:{type:String,default:""},type:{type:String,default:"improve"}},emits:["copy","change","clear"],setup(e,{emit:o}){const n=e,l=n2(),a=t.computed(()=>l.isLoading("writing")),s=t.computed(()=>a.value?"":n.text),i=t.ref(""),r=t.ref(r2.DEFAULT_DIFF_MODE),{textarea:c}=T2({input:s,styleProp:"minHeight"}),d=o;function u(){!a.value&&s.value&&d("copy",s.value)}function f(h,b){return Vo(h,b).map(V=>V.added?`<span class="bg-addedBg inline leading-snug animate-addedText">${V.value}</span>`:V.removed?`<span class="bg-removedBg inline leading-snug animate-removedText">${V.value}</span>`:V.value).join("")}function v(){r.value=!r.value,r2.DEFAULT_DIFF_MODE=r.value}return t.watch(()=>n.text,h=>{n.type==="check"&&(i.value=f(n.originalText,h))},{immediate:!0}),t.watch(s,h=>{d("change",h)}),(h,b)=>(t.openBlock(),t.createElementBlock("div",$o,[t.createElementVNode("div",Io,[t.createVNode(Je,{loading:a.value,src:s.value,hasCopyBtn:!a.value&&!!s.value,showDiffToggle:e.type==="check",isDiffMode:r.value,onCopy:u,onToggleDiff:v},null,8,["loading","src","hasCopyBtn","showDiffToggle","isDiffMode"])]),t.createElementVNode("div",Mo,[e.type!=="check"||!r.value?t.withDirectives((t.openBlock(),t.createElementBlock("textarea",{key:0,ref_key:"textarea",ref:c,"onUpdate:modelValue":b[0]||(b[0]=g=>s.value=g),class:"w-full outline-none px-1 pr-8 bg-transparent text-textCustom resize-none pb-3 overflow-x-hidden overflow-y-hidden font-sans text-base leading-normal",readonly:"",spellcheck:"false"},null,512)),[[t.vModelText,s.value]]):(t.openBlock(),t.createElementBlock("pre",{key:1,class:"w-full min-h-[80px] outline-none px-1 pr-8 bg-transparent text-textCustom resize-none pb-3 overflow-x-hidden overflow-y-hidden whitespace-pre-wrap break-words font-sans text-base leading-normal",innerHTML:a.value?"":i.value},null,8,Oo))])]))}},Fo="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",Ao="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",Ro="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",Do="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",Ho="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='M2.467%202.47236C2.75841%202.17799%203.23328%202.17559%203.52764%202.467L8.52765%207.41675C8.82201%207.70816%208.82441%208.18303%208.533%208.4774C8.24159%208.77176%207.76672%208.77416%207.47235%208.48275L2.47236%203.533C2.17799%203.24159%202.17559%202.76672%202.467%202.47236Z'%20fill='%233B5695'/%3e%3cpath%20d='M8.533%2015.4724C8.82441%2015.7667%208.82201%2016.2416%208.52765%2016.533L3.52765%2021.4828C3.23328%2021.7742%202.75841%2021.7718%202.467%2021.4774C2.17559%2021.183%202.17799%2020.7082%202.47236%2020.4167L7.47235%2015.467C7.76672%2015.1756%208.24159%2015.178%208.533%2015.4724Z'%20fill='%233B5695'/%3e%3cpath%20d='M15.52%2015.4697C15.8129%2015.1768%2016.2877%2015.1768%2016.5806%2015.4697L21.5304%2020.4194C21.8233%2020.7123%2021.8233%2021.1872%2021.5304%2021.4801C21.2375%2021.773%2020.7626%2021.773%2020.4697%2021.4801L15.52%2016.5303C15.2271%2016.2374%2015.2271%2015.7626%2015.52%2015.4697Z'%20fill='%233B5695'/%3e%3cpath%20d='M21.4801%202.46967C21.773%202.76256%2021.773%203.23744%2021.4801%203.53033L16.5303%208.48008C16.2374%208.77297%2015.7626%208.77297%2015.4697%208.48008C15.1768%208.18719%2015.1768%207.71231%2015.4697%207.41942L20.4194%202.46967C20.7123%202.17678%2021.1872%202.17678%2021.4801%202.46967Z'%20fill='%233B5695'/%3e%3cpath%20d='M15.75%203C15.75%202.58579%2016.0858%202.25%2016.5%202.25H21C21.4142%202.25%2021.75%202.58579%2021.75%203V7.5C21.75%207.91421%2021.4142%208.25%2021%208.25C20.5858%208.25%2020.25%207.91421%2020.25%207.5V3.75H16.5C16.0858%203.75%2015.75%203.41421%2015.75%203Z'%20fill='%233B5695'/%3e%3cpath%20d='M21%2015.75C21.4142%2015.75%2021.75%2016.0858%2021.75%2016.5V21C21.75%2021.4142%2021.4142%2021.75%2021%2021.75H16.5C16.0858%2021.75%2015.75%2021.4142%2015.75%2021C15.75%2020.5858%2016.0858%2020.25%2016.5%2020.25H20.25V16.5C20.25%2016.0858%2020.5858%2015.75%2021%2015.75Z'%20fill='%233B5695'/%3e%3cpath%20d='M3%2015.75C3.41421%2015.75%203.75%2016.0858%203.75%2016.5V20.25H7.5C7.91421%2020.25%208.25%2020.5858%208.25%2021C8.25%2021.4142%207.91421%2021.75%207.5%2021.75H3C2.58579%2021.75%202.25%2021.4142%202.25%2021V16.5C2.25%2016.0858%202.58579%2015.75%203%2015.75Z'%20fill='%233B5695'/%3e%3cpath%20d='M2.25%203C2.25%202.58579%202.58579%202.25%203%202.25H7.5C7.91421%202.25%208.25%202.58579%208.25%203C8.25%203.41421%207.91421%203.75%207.5%203.75H3.75V7.5C3.75%207.91421%203.41421%208.25%203%208.25C2.58579%208.25%202.25%207.91421%202.25%207.5V3Z'%20fill='%233B5695'/%3e%3c/svg%3e",Po="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%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.5%203.25C5.25736%203.25%204.25%204.25736%204.25%205.5H3.5H2.75C2.75%203.42893%204.42893%201.75%206.5%201.75H17.5C17.9142%201.75%2018.25%202.08579%2018.25%202.5V15.5C18.25%2015.9142%2017.9142%2016.25%2017.5%2016.25H6.5C5.26293%2016.25%204.25%2017.2576%204.25%2018.5C4.25%2018.9142%203.91421%2019.25%203.5%2019.25C3.08579%2019.25%202.75%2018.9142%202.75%2018.5V5.5C2.75%205.49993%202.75%205.5%203.5%205.5C4.25%205.5%204.25%205.49993%204.25%205.5V15.5017C4.87779%2015.0296%205.65755%2014.75%206.5%2014.75H16.75V3.25H6.5Z'%20fill='%233B5695'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.5%202.75C20.9142%202.75%2021.25%203.08579%2021.25%203.5V21.5C21.25%2021.9142%2020.9142%2022.25%2020.5%2022.25H6.5C4.42893%2022.25%202.75%2020.5711%202.75%2018.5C2.75%2016.4289%204.42893%2014.75%206.5%2014.75H17.4995C17.4996%2014.75%2017.5%2014.75%2017.5%2015.5C17.5%2016.25%2017.5001%2016.25%2017.5%2016.25H6.5C5.25736%2016.25%204.25%2017.2574%204.25%2018.5C4.25%2019.7426%205.25736%2020.75%206.5%2020.75H19.75V3.5C19.75%203.08579%2020.0858%202.75%2020.5%202.75ZM18.25%2015.5C18.25%2015.9142%2017.9142%2016.25%2017.5%2016.25V15.5L17.4995%2014.75C17.9137%2014.75%2018.25%2015.0858%2018.25%2015.5Z'%20fill='%233B5695'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.25%2018.5C6.25%2018.0858%206.58579%2017.75%207%2017.75H17C17.4142%2017.75%2017.75%2018.0858%2017.75%2018.5C17.75%2018.9142%2017.4142%2019.25%2017%2019.25H7C6.58579%2019.25%206.25%2018.9142%206.25%2018.5Z'%20fill='%233B5695'/%3e%3c/svg%3e",Zo="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",jo="data:image/svg+xml,%3csvg%20class='w-5%20h-5'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='white'%20aria-hidden='true'%20%3e%3cpath%20fill-rule='evenodd'%20d='M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z'%20clip-rule='evenodd'%20/%3e%3c/svg%3e",zo="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.9023%203.26667L10.8093%200.1C10.7767%200.0666667%2010.7116%200%2010.5814%200H3.74419C3.12558%200%202.60465%200.533333%202.60465%201.16667V2.66667H1.13953C0.52093%202.66667%200%203.2%200%203.83333V14.8667C0%2015.4667%200.52093%2016%201.13953%2016H10.2558C10.8744%2016%2011.3953%2015.4667%2011.3953%2014.8333V13.3333H12.8605C13.4791%2013.3333%2014%2012.8%2014%2012.1667V3.5C14%203.4%2013.9674%203.3%2013.9023%203.26667ZM12.893%203.16667H11.3954C11.1349%203.16667%2010.907%202.93333%2010.907%202.66667V1.13333L12.893%203.16667ZM10.2558%2015.3333H1.13953C0.87907%2015.3333%200.651163%2015.1%200.651163%2014.8333V3.83333C0.651163%203.53333%200.87907%203.33333%201.13953%203.33333H7.68372V5.33333C7.68372%205.96667%208.20465%206.5%208.82326%206.5H10.7767V14.8667C10.7442%2015.1%2010.5488%2015.3333%2010.2558%2015.3333ZM9.31163%204.8L10.2884%205.8H8.7907C8.53023%205.8%208.30233%205.56667%208.30233%205.3V3.76667L9.31163%204.8ZM12.8605%2012.6667H11.3953V6.13333C11.3953%206.06667%2011.3628%205.96667%2011.2977%205.9L8.20465%202.73333C8.17209%202.7%208.07442%202.66667%208.0093%202.66667H3.25581V1.16667C3.25581%200.9%203.45116%200.666666%203.74419%200.666666H10.2558V2.66667C10.2558%203.3%2010.7767%203.83333%2011.3954%203.83333H13.3488V12.2C13.3488%2012.4667%2013.1209%2012.6667%2012.8605%2012.6667Z'%20fill='%233B5695'/%3e%3c/svg%3e",Uo="data:image/svg+xml,%3csvg%20fill='%233B5695'%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.293,21.707a1,1,0,0,0,1.414,0l3.2-3.2A9.581,9.581,0,0,0,12,20c4.325,0,8.227-3,9.938-7.654a.993.993,0,0,0,0-.692A12.6,12.6,0,0,0,18.7,6.719l3.012-3.012a1,1,0,1,0-1.414-1.414l-3.2,3.2A9.581,9.581,0,0,0,12,4C7.675,4,3.773,7,2.062,11.654a.993.993,0,0,0,0,.692,12.6,12.6,0,0,0,3.243,4.935L2.293,20.293A1,1,0,0,0,2.293,21.707ZM17.266,8.148A10.454,10.454,0,0,1,19.929,12c-1.478,3.657-4.556,6-7.929,6a7.52,7.52,0,0,1-3.632-.954l1.613-1.613A3.947,3.947,0,0,0,12,16a4,4,0,0,0,4-4,3.947,3.947,0,0,0-.567-2.019Zm-7.191,4.363A1.96,1.96,0,0,1,10,12a2,2,0,0,1,2-2,1.96,1.96,0,0,1,.511.075Zm3.85-1.022A1.96,1.96,0,0,1,14,12a2,2,0,0,1-2,2,1.96,1.96,0,0,1-.511-.075ZM4.071,12C5.549,8.343,8.627,6,12,6a7.52,7.52,0,0,1,3.632.954L14.019,8.567A3.947,3.947,0,0,0,12,8a4,4,0,0,0-4,4,3.947,3.947,0,0,0,.567,2.019L6.734,15.852A10.454,10.454,0,0,1,4.071,12Z'/%3e%3c/svg%3e",Wo="data:image/svg+xml,%3csvg%20fill='%233B5695'%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12,7a4,4,0,1,0,4,4A4,4,0,0,0,12,7Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,13Zm6.5,2v1.5H20a1,1,0,0,1,0,2H18.5V20a1,1,0,0,1-2,0V18.5H15a1,1,0,0,1,0-2h1.5V15a1,1,0,0,1,2,0Zm3.438-4.345a.987.987,0,0,1,0,.69,13.339,13.339,0,0,1-1.08,2.264,1,1,0,1,1-1.715-1.028A11.3,11.3,0,0,0,19.928,11C18.451,7.343,15.373,5,12,5S5.549,7.343,4.072,11a9.315,9.315,0,0,0,6.167,5.787,1,1,0,1,1-.478,1.942,11.393,11.393,0,0,1-7.7-7.383.99.99,0,0,1,0-.691C3.773,6,7.674,3,12,3S20.227,6,21.938,10.655Z'/%3e%3c/svg%3e",qo="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",Go="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",Jo="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='M13.2018%204.409H8.2373L7.46364%202H2.79867C2.35907%202%202%202.3595%202%202.7995V10.937C2%2011.376%202.36008%2011.7355%202.79867%2011.7355H7.79971L8.53636%2014H13.2013C13.6404%2014%2014%2013.6465%2014%2013.214V5.195C14%204.7625%2013.6404%204.409%2013.2018%204.409ZM5.3702%208.749C4.33499%208.749%203.49481%207.909%203.49481%206.874C3.49481%205.839%204.33499%204.999%205.3702%204.999C5.87631%204.999%206.3004%205.1865%206.62646%205.487L6.13136%205.963C5.9244%205.77181%205.65196%205.66729%205.3702%205.671C4.71757%205.671%204.18846%206.211%204.18846%206.8755C4.18846%207.54%204.71757%208.08%205.3697%208.08C6.12336%208.08%206.43492%207.54%206.46493%207.176L5.3707%207.175V6.533H7.12607C7.15107%206.648%207.17108%206.7615%207.17108%206.915C7.17108%207.9885%206.45393%208.7495%205.3697%208.7495L5.3702%208.749ZM13.7504%2013.214C13.7504%2013.509%2013.5044%2013.75%2013.2018%2013.75H8.76341L10.5883%2011.735H10.5908L10.2207%2010.584L10.2237%2010.5815C10.2237%2010.5815%2010.5078%2010.3375%2010.8623%209.9615C11.2184%2010.347%2011.6775%2010.811%2012.2716%2011.364L12.6572%2010.978C12.0211%2010.401%2011.555%209.943%2011.2119%209.5755C11.6715%209.032%2012.1381%208.348%2012.2366%207.722H13.2538V7.723H13.2548V7.253H10.9884V6.493H10.2527V7.253H9.15049L8.31432%204.648L8.31732%204.659H13.2018C13.5044%204.659%2013.7504%204.899%2013.7504%205.195V13.214ZM10.5078%209.5585C10.2397%209.8325%2010.0362%209.995%2010.0362%209.995L10.0322%209.997L9.30202%207.723H11.6845C11.531%208.265%2011.1904%208.777%2010.8588%209.175C10.2707%208.479%2010.2687%208.253%2010.2687%208.253H9.6576C9.6576%208.253%209.6826%208.5925%2010.5078%209.5585Z'%20fill='%237E7E7E'/%3e%3c/svg%3e",Yo="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2017V11'%20stroke='%231C274C'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3ccircle%20cx='1'%20cy='1'%20r='1'%20transform='matrix(1%200%200%20-1%2011%209)'%20fill='%231C274C'/%3e%3cpath%20d='M7%203.33782C8.47087%202.48697%2010.1786%202%2012%202C17.5228%202%2022%206.47715%2022%2012C22%2017.5228%2017.5228%2022%2012%2022C6.47715%2022%202%2017.5228%202%2012C2%2010.1786%202.48697%208.47087%203.33782%207'%20stroke='%231C274C'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",Qo="data:image/svg+xml,%3csvg%20width='96'%20height='32'%20viewBox='0%200%2096%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M40.151%208.94498H35.7256V23.055H40.151C44.7473%2023.055%2047.826%2020.0825%2047.826%2015.9795C47.8267%2011.8093%2044.7678%208.94498%2040.151%208.94498ZM40.1312%2021.025H37.993V10.9974H40.1312C43.4217%2010.9974%2045.4972%2012.9846%2045.4972%2015.9795C45.4965%2018.9296%2043.4012%2021.025%2040.1312%2021.025Z'%20fill='%233B5695'/%3e%3cpath%20d='M54.5158%208.94498H50.0903V23.055H54.5158C59.1121%2023.055%2062.1908%2020.0825%2062.1908%2015.9795C62.1914%2011.8093%2059.1351%208.94498%2054.5158%208.94498ZM54.496%2021.025H52.3578V10.9974H54.496C57.789%2010.9974%2059.8619%2012.9846%2059.8619%2015.9795C59.8613%2018.9296%2057.766%2021.025%2054.496%2021.025Z'%20fill='%233B5695'/%3e%3cpath%20d='M66.7237%208.94498H64.4575V23.055H66.7237V8.94498Z'%20fill='%233B5695'/%3e%3cpath%20d='M76.4301%2010.7837C78.29%2010.7837%2079.7436%2011.6603%2080.7487%2013.2207L82.4589%2011.9591C81.2401%209.97057%2078.9957%208.70953%2076.409%208.70953C72.3898%208.64555%2068.9048%2011.9591%2068.9906%2016C68.9048%2020.0403%2072.3898%2023.3544%2076.409%2023.2905C79.0385%2023.2905%2081.2618%2022.0294%2082.4589%2020.0409L80.7487%2018.7793C79.7436%2020.3397%2078.29%2021.2163%2076.4301%2021.2163C73.544%2021.2163%2071.3418%2018.993%2071.3418%2016C71.3418%2013.007%2073.5433%2010.7837%2076.4301%2010.7837Z'%20fill='%233B5695'/%3e%3cpath%20d='M83.3135%208.94498V10.9757H88.0595V23.055H90.3256V10.9757H95.0934V8.94498H83.3135Z'%20fill='%233B5695'/%3e%3cpath%20d='M8.66351%204.7121H4.604V15.4427L6.87208%2013.3839V6.79143H8.64559C11.4639%206.79143%2013.2835%208.47857%2013.2835%2011.0877C13.2835%2013.6916%2011.421%2015.4427%208.64559%2015.4427H4.604V17.5016H8.66351C12.7531%2017.5016%2015.6098%2014.8644%2015.6098%2011.0877C15.6104%207.27575%2012.8196%204.7121%208.66351%204.7121Z'%20fill='%233B5695'/%3e%3cpath%20d='M26.2425%209.25528H21.5502L20.7537%2014.293L21.4523%2014.3308L21.4069%2014.7294C21.3916%2014.8656%2021.3289%2015.0448%2021.112%2015.1734C21.1017%2015.9399%2021.0845%2017.0493%2020.9706%2018.1766H26.5937V19.8586H21.4677C22.4133%2022.9424%2024.1254%2024.9648%2026.5611%2025.8669L27.1536%2026.0864L26.6795%2026.5048C26.4875%2026.6737%2026.2182%2027.0141%2026.0896%2027.2489L25.9258%2027.5438L25.6155%2027.4152C23.167%2026.4095%2021.4223%2024.4926%2020.2905%2021.563C19.3602%2024.3365%2017.5797%2026.2553%2014.8592%2027.428L14.5438%2027.5617L14.3775%2027.2642C14.2764%2027.08%2014.0294%2026.7876%2013.8151%2026.5989L13.3564%2026.1951L13.9239%2025.9655C16.4555%2024.9392%2018.064%2023.1414%2018.8228%2020.4837C19.6647%2019.8381%2020.2099%2018.8221%2020.2169%2017.6801V4.53231C20.2169%202.58349%2018.6334%201%2016.6846%201H3.53487C1.58349%201%200%202.58349%200%204.53231V17.6795C0%2019.6283%201.58349%2021.2143%203.53487%2021.2143H8.25528V27.2431C8.25528%2029.3135%209.93986%2031%2012.0096%2031H26.2431C28.3161%2031%2029.9974%2029.3129%2029.9974%2027.2431V13.0096C29.9974%2010.9392%2028.3154%209.25528%2026.2425%209.25528ZM3.53487%2019.4517C2.55662%2019.4517%201.762%2018.6603%201.762%2017.6788V4.53231C1.762%203.55662%202.55598%202.762%203.53487%202.762H16.6839C17.6571%202.762%2018.4517%203.55598%2018.4517%204.53231V17.6795C18.4517%2017.778%2018.444%2017.8733%2018.4267%2017.9667C18.3941%2018.1811%2018.3231%2018.38%2018.215%2018.5592C17.9149%2019.0934%2017.3372%2019.4517%2016.6846%2019.4517H3.53487Z'%20fill='%233B5695'/%3e%3c/svg%3e",Xo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke='%233B5695'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20d='M4%204v5h.582m15.356%202A8.001%208.001%200%20004.582%209m0%200H9m11%2011v-5h-.581m0%200a8.003%208.003%200%2001-15.357-2m15.357%202H15'%20/%3e%3c/svg%3e",Ko="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='%233B5695'/%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='%233B5695'/%3e%3c/svg%3e",el="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%20fill='%233B5695'%20class='bi%20bi-list-stars%20fill-primaryColor'%3e%3cpath%20fill-rule='evenodd'%20d='M5%2011.5a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5zm0-4a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5zm0-4a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5z'/%3e%3cpath%20d='M2.242%202.194a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.256-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53zm0%204a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.255-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53zm0%204a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.255-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53z'/%3e%3c/svg%3e",tl="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='M3.68688%202.3131C3.88214%202.50837%203.88214%202.82495%203.68688%203.02021L2.04043%204.66666L3.68688%206.3131C3.88214%206.50837%203.88214%206.82495%203.68688%207.02021C3.49162%207.21547%203.17504%207.21547%202.97977%207.02021L0.979775%205.02021C0.784513%204.82495%200.784513%204.50837%200.979775%204.3131L2.97977%202.3131C3.17504%202.11784%203.49162%202.11784%203.68688%202.3131Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M12.3131%208.97977C12.5084%208.78451%2012.825%208.78451%2013.0202%208.97977L15.0202%2010.9798C15.2155%2011.175%2015.2155%2011.4916%2015.0202%2011.6869L13.0202%2013.6869C12.825%2013.8821%2012.5084%2013.8821%2012.3131%2013.6869C12.1178%2013.4916%2012.1178%2013.175%2012.3131%2012.9798L13.9596%2011.3333L12.3131%209.68688C12.1178%209.49161%2012.1178%209.17503%2012.3131%208.97977Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M0.833328%204.66666C0.833328%204.39051%201.05719%204.16666%201.33333%204.16666H14.6667C14.9428%204.16666%2015.1667%204.39051%2015.1667%204.66666C15.1667%204.9428%2014.9428%205.16666%2014.6667%205.16666H1.33333C1.05719%205.16666%200.833328%204.9428%200.833328%204.66666Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M0.833328%2011.3333C0.833328%2011.0572%201.05719%2010.8333%201.33333%2010.8333H14.6667C14.9428%2010.8333%2015.1667%2011.0572%2015.1667%2011.3333C15.1667%2011.6095%2014.9428%2011.8333%2014.6667%2011.8333H1.33333C1.05719%2011.8333%200.833328%2011.6095%200.833328%2011.3333Z'%20fill='%237E7E7E'/%3e%3c/svg%3e",nl="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.3163%2019.4384C5.92462%2018.0052%207.34492%2017%209%2017H15C16.6551%2017%2018.0754%2018.0052%2018.6837%2019.4384M16%209.5C16%2011.7091%2014.2091%2013.5%2012%2013.5C9.79086%2013.5%208%2011.7091%208%209.5C8%207.29086%209.79086%205.5%2012%205.5C14.2091%205.5%2016%207.29086%2016%209.5ZM22%2012C22%2017.5228%2017.5228%2022%2012%2022C6.47715%2022%202%2017.5228%202%2012C2%206.47715%206.47715%202%2012%202C17.5228%202%2022%206.47715%2022%2012Z'%20stroke='%233B5695'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ol="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",ll="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",al="data:image/svg+xml,%3csvg%20class='w-5%20h-5'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='white'%20aria-hidden='true'%20%3e%3cpath%20fill-rule='evenodd'%20d='M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z'%20clip-rule='evenodd'%20/%3e%3c/svg%3e",te=e=>(t.pushScopeId("data-v-9c9633b7"),e=e(),t.popScopeId(),e),sl={class:"flex rounded-md w-full"},rl=["disabled"],il={class:"flex items-center text-xs"},cl=["src"],dl=te(()=>t.createElementVNode("div",{class:"w-px bg-gray-300"},null,-1)),ul={class:"relative block"},fl=["aria-expanded","disabled"],pl=[te(()=>t.createElementVNode("span",{class:"sr-only"},"Open options",-1)),te(()=>t.createElementVNode("img",{src:al,alt:"Chevron down",class:"w-4 h-4 fill-white"},null,-1))],ml={key:0,class:"origin-top-right absolute left-0 mt-1 w-full rounded-md shadow-lg bg-baseColor ring-1 ring-black ring-opacity-5 focus:outline-none z-50",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu"},hl={class:"py-1",role:"none"},gl=["onClick"],Cl={class:"flex items-center"},bl=["src"],vl=G({__name:"ButtonSelect",props:{modelValue:{type:String,required:!0},options:{type:Array,required:!0},isTextEmpty:{type:Boolean,default:!0},hasResult:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["update:modelValue","action"],setup(e,{emit:o}){const n=e,l=o,a=t.ref(!1),s=t.ref(n.modelValue),i=t.ref(null),r=t.computed(()=>n.options.find(h=>h.value===s.value)||n.options[0]);function c(){l("action")}function d(){n.loading||(a.value=!a.value)}function u(h){h.value!==s.value&&(s.value=h.value,l("update:modelValue",h.value)),a.value=!1}function f(h){return new URL(Object.assign({"../../assets/icons/ai-explain-filled.svg":Fo,"../../assets/icons/ai-explain.svg":Ao,"../../assets/icons/ai-translate-filled.svg":Ro,"../../assets/icons/ai-translate.svg":Do,"../../assets/icons/arrow-full-screen.svg":Ho,"../../assets/icons/book-one.svg":Po,"../../assets/icons/cancel.svg":Zo,"../../assets/icons/chevron-down.svg":jo,"../../assets/icons/copy.svg":zo,"../../assets/icons/eye-off.svg":Uo,"../../assets/icons/eye-on.svg":Wo,"../../assets/icons/favorite-filled.svg":qo,"../../assets/icons/favorite.svg":Go,"../../assets/icons/google-translate.svg":Jo,"../../assets/icons/info.svg":Yo,"../../assets/icons/logo.svg":Qo,"../../assets/icons/retry.svg":Xo,"../../assets/icons/setting.svg":Ko,"../../assets/icons/star-list.svg":el,"../../assets/icons/transfer.svg":tl,"../../assets/icons/user.svg":nl,"../../assets/icons/volume-stop.svg":ol,"../../assets/icons/volume.svg":ll})[`../../assets/icons/${h}.svg`],typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:O2&&O2.tagName.toUpperCase()==="SCRIPT"&&O2.src||new URL("popup.umd.js",document.baseURI).href).href}function v(h){i.value&&!i.value.contains(h.target)&&(a.value=!1)}return t.watch(()=>n.modelValue,h=>{h!==s.value&&(s.value=h)}),t.watch(()=>n.isTextEmpty,h=>{h&&(a.value=!1)}),t.onMounted(()=>{document.addEventListener("click",v)}),t.onUnmounted(()=>{document.removeEventListener("click",v)}),(h,b)=>(t.openBlock(),t.createElementBlock("div",{class:"relative inline-block text-left flex-1",ref_key:"dropdownRef",ref:i},[t.createElementVNode("div",{class:t.normalizeClass(["relative rounded-lg overflow-hidden border-2 shadow-[0px_10px_60px_rgba(59,86,149,0.25)]",e.isTextEmpty||n.loading?"border-gray-400":"border-[#3B5695]"])},[t.createElementVNode("div",sl,[t.createElementVNode("button",{onClick:c,class:t.normalizeClass(["px-2 py-1 text-sm font-medium rounded-s focus:z-10 focus:outline-none flex-grow text-left relative",[e.isTextEmpty||n.loading?"bg-gray-400 text-gray-500 cursor-not-allowed":"bg-[#3B5695] text-white"]]),disabled:e.isTextEmpty||n.loading},[t.createElementVNode("div",il,[t.createElementVNode("img",{src:f(r.value.icon),alt:"",class:"w-4 h-4 mr-2"},null,8,cl),t.createTextVNode(" "+t.toDisplayString(r.value.label),1)])],10,rl),dl,t.createElementVNode("div",ul,[t.createElementVNode("button",{onClick:d,type:"button",class:t.normalizeClass(["h-full px-1 py-1 text-sm font-medium rounded-e focus:z-10 focus:outline-none",[e.isTextEmpty||n.loading?"bg-gray-400 text-gray-500 cursor-not-allowed":"bg-[#3B5695] text-white"]]),"aria-haspopup":"true","aria-expanded":a.value,disabled:e.isTextEmpty||n.loading},pl,10,fl)])])],2),a.value?(t.openBlock(),t.createElementBlock("div",ml,[t.createElementVNode("div",hl,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,g=>(t.openBlock(),t.createElementBlock("a",{key:g.value,onClick:V=>u(g),href:"#",class:"block px-1 py-1 text-sm text-textCustom hover:bg-gray-100 hover:text-primaryColor",role:"menuitem"},[t.createElementVNode("div",Cl,[t.createElementVNode("img",{src:f(g.icon),alt:"",class:"w-4 h-4 mr-2"},null,8,bl),t.createTextVNode(" "+t.toDisplayString(g.label),1)])],8,gl))),128))])])):t.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-9c9633b7"]]),xl={class:"w-full mt-1"},wl={class:"flex flex-col lg:flex-row lg:items-stretch lg:space-x-4 lg:min-h-[50vh]"},yl={class:"lg:flex-grow lg:w-0 flex flex-col"},El={class:"flex flex-row lg:flex-col items-center justify-center place-content-center min-h-full"},_l={class:"flex items-center",style:{"max-width":"300px"}},kl={class:"lg:flex-grow lg:w-0 flex flex-col"},Sl={__name:"WriteTab",props:{opt:{type:Object,required:!0},languages:{type:Object,required:!0},writing:{type:Object,default:null}},emits:["opt","write","copy"],setup(e,{emit:o}){const n=t.inject("writingStore"),l=t.inject("loaderStore"),a=e,s=o,i=[{value:"check",label:"Check",icon:"ai-translate"},{value:"improve",label:"Improve",icon:"ai-explain"},{value:"improve-plus",label:"Improve +++",icon:"ai-explain"},{value:"simplify",label:"Simplify",icon:"ai-translate"},{value:"more-detailed",label:"More detailed",icon:"ai-explain"}];t.watch(()=>a.writing,g=>{l.setLoading("writing",!1),g&&(n.reset(),n.init(g))},{immediate:!0}),t.watch(()=>a.opt,g=>{g.src!==n.src&&n.init({...n.$state,src:g.src})},{deep:!0});function r(g){n.init({...n.$state,text:g})}function c(){n.reset()}function d(g){n.init({...n.$state,result:g})}function u(){n.init({...n.$state,result:"",suggestions:[]})}function f(g=null){n.text.length<r2.IMPROVE_INPUT_MIN_LENGTH||(l.setLoading("writing",!0),h(n.text,a.opt.type,g))}function v(){f("retry")}function h(g,V=a.opt.type,x){g&&(l.setLoading("writing",!0),s("write",{src:a.opt.src,text:g,action:V,flag:x}))}function b(g){l.setLoading("writing",!0),s("opt",{...a.opt,type:g,text:n.text})}return(g,V)=>{var x,C;return t.openBlock(),t.createElementBlock("div",xl,[t.createElementVNode("div",wl,[t.createElementVNode("div",yl,[t.createVNode(ko,{class:"my-2 lg:my-0 w-full flex-grow lg:min-h-[50vh]",text:t.unref(n).text,onChange:r,onClear:c,onImprove:f},null,8,["text"])]),t.createElementVNode("div",El,[t.createElementVNode("div",_l,[t.createVNode(vl,{class:"w-full",modelValue:a.opt.type,options:i,loading:t.unref(l).isLoading("writing"),isTextEmpty:t.unref(n).text&&((x=t.unref(n).text)==null?void 0:x.length)<t.unref(r2).IMPROVE_INPUT_MIN_LENGTH,hasResult:!!t.unref(n).result,"onUpdate:modelValue":b,onAction:f},null,8,["modelValue","loading","isTextEmpty","hasResult"])]),t.createVNode(mo,{class:"ml-2 lg:m-2",disabled:((C=t.unref(n).text)==null?void 0:C.length)<5||!t.unref(n).result,onClick:v},null,8,["disabled"])]),t.createElementVNode("div",kl,[t.createVNode(No,{class:"my-2 lg:my-0 w-full flex-grow lg:min-h-[50vh]",text:t.unref(n).result,originalText:t.unref(n).text,type:a.opt.type,onChange:d,onClear:u,onCopy:V[0]||(V[0]=_=>{var S;return s("copy",(S=t.unref(n))==null?void 0:S.result)})},null,8,["text","originalText","type"])])])])}}},n0=h2("writing",()=>{const e=t.ref(null),o=t.ref(""),n=t.ref(""),l=t.ref([]),a=t.ref(null),s=s2(),i=t.computed(()=>s.getLabel(e.value));function r(d){e.value=d.src,o.value=d.text,n.value=d.result,l.value=d.suggestions,a.value=d.action}function c(){e.value=null,o.value="",n.value="",l.value=[],a.value=null}return{src:e,srcLabel:i,text:o,result:n,suggestions:l,action:a,init:r,reset:c}}),o0=e=>(t.pushScopeId("data-v-e46db1a9"),e=e(),t.popScopeId(),e),Ll={class:"h-screen flex flex-col bg-baseColor"},Vl={class:"flex-none py-2 pl-3 pr-2 shadow border"},Tl={class:"flex-none"},Bl={class:"flex w-full border-b border-gray-200 items-center"},$l={key:0,class:"text-xs text-gray-400 ml-1 italic"},Il=[o0(()=>t.createElementVNode("small",null,"(Ctrl+1)",-1))],Ml={key:0,class:"text-xs text-gray-400 ml-1 italic"},Ol=[o0(()=>t.createElementVNode("small",null,"(Ctrl+2)",-1))],Nl={class:"flex-1 min-h-0"},Fl={class:"h-full overflow-y-auto overflow-x-hidden custom-scrollbar"},Al=G({__name:"Popup",props:{options:{type:Object,default:()=>({})},data:{type:Object,default:()=>({translation:{text:"",result:"",dict:[]},writing:{text:"",result:"",suggestions:[]},explanation:{result:""},tts:{}})},headerSettings:{type:Object,default:()=>({showAccount:!0,showReader:!0,showFullscreen:!0,showSettings:!0})}},emits:["nav","translate","write","common"],setup(e,{emit:o}){const n=Wt();J(n),G2(n),s2(n),n2(n),n0(n);const l=J(),a=G2(),s=s2(),i=n2(),r=n0();t.provide("translationStore",l),t.provide("ttsStore",a),t.provide("languageStore",s),t.provide("loaderStore",i),t.provide("writingStore",r);const c=o,d=(x,C)=>{c("nav",{action:x,payload:C})},u=(x,C={})=>{c("translate",{action:x,payload:C})},f=(x,C={})=>{c("write",{action:x,payload:C})},v=(x,C={})=>{c("common",{action:x,payload:C})},h=e,b={activeTab:"translate",translateOpts:{src:"auto",target:"en"},writeOpts:{type:"check"},languages:{src:{code:"auto",name:"Auto Detect"},target:{code:"en",name:"English"}},isFavoriteFeatureEnabled:!1,isAITranslateFeatureEnabled:!1,isImprovementFeatureEnabled:!1,isFavorite:!1,isAITranslate:!1,isAIExplain:!1,aiExplainMinLength:5,isTTS:!0},g=t.computed(()=>Object.assign({},b,h.options)),V=x=>{if(x.ctrlKey)switch(x.key){case"1":d("activeTab","translate");break;case"2":d("activeTab","write");break}};return t.onMounted(()=>{window.addEventListener("keydown",V)}),t.onUnmounted(()=>{window.removeEventListener("keydown",V)}),(x,C)=>(t.openBlock(),t.createElementBlock("div",Ll,[t.createElementVNode("div",Vl,[t.createVNode(v0,{"header-settings":e.headerSettings,onReader:C[0]||(C[0]=_=>d("reader")),onSettings:C[1]||(C[1]=_=>d("settings")),onFullScreen:C[2]||(C[2]=_=>d("fullscreen")),onAccount:C[3]||(C[3]=_=>d("account"))},null,8,["header-settings"])]),t.createElementVNode("div",Tl,[t.createElementVNode("div",Bl,[t.createElementVNode("button",{class:t.normalizeClass(["w-1/2 px-4 py-2 text-sm font-medium",g.value.activeTab==="translate"?"text-primaryColor border-b-2 border-primaryColor":"text-textSecondary hover:text-primaryColor"]),onClick:C[4]||(C[4]=_=>d("activeTab","translate"))},[t.createTextVNode(" Translate "),t.unref(N2)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",$l,Il))],2),t.createElementVNode("button",{class:t.normalizeClass(["w-1/2 px-4 py-2 text-sm font-medium",g.value.activeTab==="write"?"text-primaryColor border-b-2 border-primaryColor":"text-textSecondary hover:text-primaryColor"]),onClick:C[5]||(C[5]=_=>d("activeTab","write"))},[t.createTextVNode(" Write "),t.unref(N2)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Ml,Ol))],2)])]),t.createElementVNode("div",Nl,[t.createElementVNode("div",Fl,[g.value.activeTab==="translate"?(t.openBlock(),t.createBlock(co,{key:0,opt:g.value.translateOpts,languages:g.value.languages,translation:e.data.translation,explanation:e.data.explanation,tts:e.data.tts,isTTS:g.value.isTTS,isFavoriteFeatureEnabled:g.value.isFavoriteFeatureEnabled,isAITranslateFeatureEnabled:g.value.isAITranslateFeatureEnabled,isFavorite:g.value.isFavorite,isAITranslate:g.value.isAITranslate,isAIExplain:g.value.isAIExplain,aiExplainMinLength:g.value.aiExplainMinLength,onOpt:C[6]||(C[6]=_=>u("updateOpts",_)),onTranslate:C[7]||(C[7]=_=>u("translate",_)),onLoadTTS:C[8]||(C[8]=_=>u("loadTTS",_)),onFavorite:C[9]||(C[9]=_=>u("favorite")),onAiTranslate:C[10]||(C[10]=_=>u("aiTranslate",_)),onAiExplain:C[11]||(C[11]=_=>u("aiExplain",_)),onCopy:C[12]||(C[12]=_=>v("copy",_))},null,8,["opt","languages","translation","explanation","tts","isTTS","isFavoriteFeatureEnabled","isAITranslateFeatureEnabled","isFavorite","isAITranslate","isAIExplain","aiExplainMinLength"])):t.createCommentVNode("",!0),g.value.activeTab==="write"?(t.openBlock(),t.createBlock(Sl,{key:1,opt:g.value.writeOpts,languages:g.value.languages,writing:e.data.writing,onOpt:C[13]||(C[13]=_=>f("updateOpts",_)),onWrite:C[14]||(C[14]=_=>f("write",_)),onCopy:C[15]||(C[15]=_=>v("copy",_))},null,8,["opt","languages","writing"])):t.createCommentVNode("",!0)])])]))}},[["__scopeId","data-v-e46db1a9"]]);Y.default=Al,Object.defineProperties(Y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
23
+ `)&&(o=o.slice(0,-1))),z.prototype.equals.call(this,e,o,n)};var To=new z;To.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var Vo=new z;Vo.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function X2(e){"@babel/helpers - typeof";return X2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},X2(e)}var C2=new z;C2.useLongestToken=!0,C2.tokenize=Q2.tokenize,C2.castInput=function(e,o){var n=o.undefinedReplacement,l=o.stringifyReplacer,a=l===void 0?function(s,i){return typeof i>"u"?n:i}:l;return typeof e=="string"?e:JSON.stringify(K2(e,null,null,a),a," ")},C2.equals=function(e,o,n){return z.prototype.equals.call(C2,e.replace(/,([\r\n])/g,"$1"),o.replace(/,([\r\n])/g,"$1"),n)};function K2(e,o,n,l,a){o=o||[],n=n||[],l&&(e=l(a,e));var s;for(s=0;s<o.length;s+=1)if(o[s]===e)return n[s];var i;if(Object.prototype.toString.call(e)==="[object Array]"){for(o.push(e),i=new Array(e.length),n.push(i),s=0;s<e.length;s+=1)i[s]=K2(e[s],o,n,l,a);return o.pop(),n.pop(),i}if(e&&e.toJSON&&(e=e.toJSON()),X2(e)==="object"&&e!==null){o.push(e),i={},n.push(i);var r=[],c;for(c in e)Object.prototype.hasOwnProperty.call(e,c)&&r.push(c);for(r.sort(),s=0;s<r.length;s+=1)c=r[s],i[c]=K2(e[c],o,n,l,c);o.pop(),n.pop()}else i=e;return i}var ee=new z;ee.tokenize=function(e){return e.slice()},ee.join=ee.removeEmpty=function(e){return e};const Bo={class:"bg-base-100 relative z-10 border border-base-300 rounded"},$o={class:"flex justify-end items-center mb-1"},Io={class:"bg-transparent"},Mo=["innerHTML"],Oo={__name:"Result",props:{text:{type:String,default:""},originalText:{type:String,default:""},type:{type:String,default:"improve"}},emits:["copy","change","clear"],setup(e,{emit:o}){const n=e,l=n2(),a=t.computed(()=>l.isLoading("writing")),s=t.computed(()=>a.value?"":n.text),i=t.ref(""),r=t.ref(r2.DEFAULT_DIFF_MODE),{textarea:c}=V2({input:s,styleProp:"minHeight"}),d=o;function u(){!a.value&&s.value&&d("copy",s.value)}function f(g,b){return So(g,b).map(T=>T.added?`<span class="bg-addedBg inline leading-snug animate-addedText">${T.value}</span>`:T.removed?`<span class="bg-removedBg inline leading-snug animate-removedText">${T.value}</span>`:T.value).join("")}function v(){r.value=!r.value,r2.DEFAULT_DIFF_MODE=r.value}return t.watch(()=>n.text,g=>{n.type==="check"&&(i.value=f(n.originalText,g))},{immediate:!0}),t.watch(s,g=>{d("change",g)}),(g,b)=>(t.openBlock(),t.createElementBlock("div",Bo,[t.createElementVNode("div",$o,[t.createVNode(Ge,{loading:a.value,src:s.value,hasCopyBtn:!a.value&&!!s.value,showDiffToggle:e.type==="check",isDiffMode:r.value,onCopy:u,onToggleDiff:v},null,8,["loading","src","hasCopyBtn","showDiffToggle","isDiffMode"])]),t.createElementVNode("div",Io,[e.type!=="check"||!r.value?t.withDirectives((t.openBlock(),t.createElementBlock("textarea",{key:0,ref_key:"textarea",ref:c,"onUpdate:modelValue":b[0]||(b[0]=h=>s.value=h),class:"w-full outline-none px-1 pr-8 bg-transparent text-base-content resize-none pb-3 overflow-x-hidden overflow-y-hidden font-sans text-base leading-normal",readonly:"",spellcheck:"false"},null,512)),[[t.vModelText,s.value]]):(t.openBlock(),t.createElementBlock("pre",{key:1,class:"w-full min-h-[80px] outline-none px-1 pr-8 bg-transparent text-base-content resize-none pb-3 overflow-x-hidden overflow-y-hidden whitespace-pre-wrap break-words font-sans text-base leading-normal",innerHTML:a.value?"":i.value},null,8,Mo))])]))}},No="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",Fo="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",Ao="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",Ro="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",Do="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='M2.467%202.47236C2.75841%202.17799%203.23328%202.17559%203.52764%202.467L8.52765%207.41675C8.82201%207.70816%208.82441%208.18303%208.533%208.4774C8.24159%208.77176%207.76672%208.77416%207.47235%208.48275L2.47236%203.533C2.17799%203.24159%202.17559%202.76672%202.467%202.47236Z'%20fill='%233B5695'/%3e%3cpath%20d='M8.533%2015.4724C8.82441%2015.7667%208.82201%2016.2416%208.52765%2016.533L3.52765%2021.4828C3.23328%2021.7742%202.75841%2021.7718%202.467%2021.4774C2.17559%2021.183%202.17799%2020.7082%202.47236%2020.4167L7.47235%2015.467C7.76672%2015.1756%208.24159%2015.178%208.533%2015.4724Z'%20fill='%233B5695'/%3e%3cpath%20d='M15.52%2015.4697C15.8129%2015.1768%2016.2877%2015.1768%2016.5806%2015.4697L21.5304%2020.4194C21.8233%2020.7123%2021.8233%2021.1872%2021.5304%2021.4801C21.2375%2021.773%2020.7626%2021.773%2020.4697%2021.4801L15.52%2016.5303C15.2271%2016.2374%2015.2271%2015.7626%2015.52%2015.4697Z'%20fill='%233B5695'/%3e%3cpath%20d='M21.4801%202.46967C21.773%202.76256%2021.773%203.23744%2021.4801%203.53033L16.5303%208.48008C16.2374%208.77297%2015.7626%208.77297%2015.4697%208.48008C15.1768%208.18719%2015.1768%207.71231%2015.4697%207.41942L20.4194%202.46967C20.7123%202.17678%2021.1872%202.17678%2021.4801%202.46967Z'%20fill='%233B5695'/%3e%3cpath%20d='M15.75%203C15.75%202.58579%2016.0858%202.25%2016.5%202.25H21C21.4142%202.25%2021.75%202.58579%2021.75%203V7.5C21.75%207.91421%2021.4142%208.25%2021%208.25C20.5858%208.25%2020.25%207.91421%2020.25%207.5V3.75H16.5C16.0858%203.75%2015.75%203.41421%2015.75%203Z'%20fill='%233B5695'/%3e%3cpath%20d='M21%2015.75C21.4142%2015.75%2021.75%2016.0858%2021.75%2016.5V21C21.75%2021.4142%2021.4142%2021.75%2021%2021.75H16.5C16.0858%2021.75%2015.75%2021.4142%2015.75%2021C15.75%2020.5858%2016.0858%2020.25%2016.5%2020.25H20.25V16.5C20.25%2016.0858%2020.5858%2015.75%2021%2015.75Z'%20fill='%233B5695'/%3e%3cpath%20d='M3%2015.75C3.41421%2015.75%203.75%2016.0858%203.75%2016.5V20.25H7.5C7.91421%2020.25%208.25%2020.5858%208.25%2021C8.25%2021.4142%207.91421%2021.75%207.5%2021.75H3C2.58579%2021.75%202.25%2021.4142%202.25%2021V16.5C2.25%2016.0858%202.58579%2015.75%203%2015.75Z'%20fill='%233B5695'/%3e%3cpath%20d='M2.25%203C2.25%202.58579%202.58579%202.25%203%202.25H7.5C7.91421%202.25%208.25%202.58579%208.25%203C8.25%203.41421%207.91421%203.75%207.5%203.75H3.75V7.5C3.75%207.91421%203.41421%208.25%203%208.25C2.58579%208.25%202.25%207.91421%202.25%207.5V3Z'%20fill='%233B5695'/%3e%3c/svg%3e",Ho="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%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.5%203.25C5.25736%203.25%204.25%204.25736%204.25%205.5H3.5H2.75C2.75%203.42893%204.42893%201.75%206.5%201.75H17.5C17.9142%201.75%2018.25%202.08579%2018.25%202.5V15.5C18.25%2015.9142%2017.9142%2016.25%2017.5%2016.25H6.5C5.26293%2016.25%204.25%2017.2576%204.25%2018.5C4.25%2018.9142%203.91421%2019.25%203.5%2019.25C3.08579%2019.25%202.75%2018.9142%202.75%2018.5V5.5C2.75%205.49993%202.75%205.5%203.5%205.5C4.25%205.5%204.25%205.49993%204.25%205.5V15.5017C4.87779%2015.0296%205.65755%2014.75%206.5%2014.75H16.75V3.25H6.5Z'%20fill='%233B5695'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.5%202.75C20.9142%202.75%2021.25%203.08579%2021.25%203.5V21.5C21.25%2021.9142%2020.9142%2022.25%2020.5%2022.25H6.5C4.42893%2022.25%202.75%2020.5711%202.75%2018.5C2.75%2016.4289%204.42893%2014.75%206.5%2014.75H17.4995C17.4996%2014.75%2017.5%2014.75%2017.5%2015.5C17.5%2016.25%2017.5001%2016.25%2017.5%2016.25H6.5C5.25736%2016.25%204.25%2017.2574%204.25%2018.5C4.25%2019.7426%205.25736%2020.75%206.5%2020.75H19.75V3.5C19.75%203.08579%2020.0858%202.75%2020.5%202.75ZM18.25%2015.5C18.25%2015.9142%2017.9142%2016.25%2017.5%2016.25V15.5L17.4995%2014.75C17.9137%2014.75%2018.25%2015.0858%2018.25%2015.5Z'%20fill='%233B5695'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.25%2018.5C6.25%2018.0858%206.58579%2017.75%207%2017.75H17C17.4142%2017.75%2017.75%2018.0858%2017.75%2018.5C17.75%2018.9142%2017.4142%2019.25%2017%2019.25H7C6.58579%2019.25%206.25%2018.9142%206.25%2018.5Z'%20fill='%233B5695'/%3e%3c/svg%3e",Po="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",Zo="data:image/svg+xml,%3csvg%20class='w-5%20h-5'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='white'%20aria-hidden='true'%20%3e%3cpath%20fill-rule='evenodd'%20d='M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z'%20clip-rule='evenodd'%20/%3e%3c/svg%3e",jo="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.9023%203.26667L10.8093%200.1C10.7767%200.0666667%2010.7116%200%2010.5814%200H3.74419C3.12558%200%202.60465%200.533333%202.60465%201.16667V2.66667H1.13953C0.52093%202.66667%200%203.2%200%203.83333V14.8667C0%2015.4667%200.52093%2016%201.13953%2016H10.2558C10.8744%2016%2011.3953%2015.4667%2011.3953%2014.8333V13.3333H12.8605C13.4791%2013.3333%2014%2012.8%2014%2012.1667V3.5C14%203.4%2013.9674%203.3%2013.9023%203.26667ZM12.893%203.16667H11.3954C11.1349%203.16667%2010.907%202.93333%2010.907%202.66667V1.13333L12.893%203.16667ZM10.2558%2015.3333H1.13953C0.87907%2015.3333%200.651163%2015.1%200.651163%2014.8333V3.83333C0.651163%203.53333%200.87907%203.33333%201.13953%203.33333H7.68372V5.33333C7.68372%205.96667%208.20465%206.5%208.82326%206.5H10.7767V14.8667C10.7442%2015.1%2010.5488%2015.3333%2010.2558%2015.3333ZM9.31163%204.8L10.2884%205.8H8.7907C8.53023%205.8%208.30233%205.56667%208.30233%205.3V3.76667L9.31163%204.8ZM12.8605%2012.6667H11.3953V6.13333C11.3953%206.06667%2011.3628%205.96667%2011.2977%205.9L8.20465%202.73333C8.17209%202.7%208.07442%202.66667%208.0093%202.66667H3.25581V1.16667C3.25581%200.9%203.45116%200.666666%203.74419%200.666666H10.2558V2.66667C10.2558%203.3%2010.7767%203.83333%2011.3954%203.83333H13.3488V12.2C13.3488%2012.4667%2013.1209%2012.6667%2012.8605%2012.6667Z'%20fill='%233B5695'/%3e%3c/svg%3e",zo="data:image/svg+xml,%3csvg%20fill='%233B5695'%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.293,21.707a1,1,0,0,0,1.414,0l3.2-3.2A9.581,9.581,0,0,0,12,20c4.325,0,8.227-3,9.938-7.654a.993.993,0,0,0,0-.692A12.6,12.6,0,0,0,18.7,6.719l3.012-3.012a1,1,0,1,0-1.414-1.414l-3.2,3.2A9.581,9.581,0,0,0,12,4C7.675,4,3.773,7,2.062,11.654a.993.993,0,0,0,0,.692,12.6,12.6,0,0,0,3.243,4.935L2.293,20.293A1,1,0,0,0,2.293,21.707ZM17.266,8.148A10.454,10.454,0,0,1,19.929,12c-1.478,3.657-4.556,6-7.929,6a7.52,7.52,0,0,1-3.632-.954l1.613-1.613A3.947,3.947,0,0,0,12,16a4,4,0,0,0,4-4,3.947,3.947,0,0,0-.567-2.019Zm-7.191,4.363A1.96,1.96,0,0,1,10,12a2,2,0,0,1,2-2,1.96,1.96,0,0,1,.511.075Zm3.85-1.022A1.96,1.96,0,0,1,14,12a2,2,0,0,1-2,2,1.96,1.96,0,0,1-.511-.075ZM4.071,12C5.549,8.343,8.627,6,12,6a7.52,7.52,0,0,1,3.632.954L14.019,8.567A3.947,3.947,0,0,0,12,8a4,4,0,0,0-4,4,3.947,3.947,0,0,0,.567,2.019L6.734,15.852A10.454,10.454,0,0,1,4.071,12Z'/%3e%3c/svg%3e",Uo="data:image/svg+xml,%3csvg%20fill='%233B5695'%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12,7a4,4,0,1,0,4,4A4,4,0,0,0,12,7Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,13Zm6.5,2v1.5H20a1,1,0,0,1,0,2H18.5V20a1,1,0,0,1-2,0V18.5H15a1,1,0,0,1,0-2h1.5V15a1,1,0,0,1,2,0Zm3.438-4.345a.987.987,0,0,1,0,.69,13.339,13.339,0,0,1-1.08,2.264,1,1,0,1,1-1.715-1.028A11.3,11.3,0,0,0,19.928,11C18.451,7.343,15.373,5,12,5S5.549,7.343,4.072,11a9.315,9.315,0,0,0,6.167,5.787,1,1,0,1,1-.478,1.942,11.393,11.393,0,0,1-7.7-7.383.99.99,0,0,1,0-.691C3.773,6,7.674,3,12,3S20.227,6,21.938,10.655Z'/%3e%3c/svg%3e",Wo="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",qo="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='%233B5695'/%3e%3c/svg%3e",Go="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='M13.2018%204.409H8.2373L7.46364%202H2.79867C2.35907%202%202%202.3595%202%202.7995V10.937C2%2011.376%202.36008%2011.7355%202.79867%2011.7355H7.79971L8.53636%2014H13.2013C13.6404%2014%2014%2013.6465%2014%2013.214V5.195C14%204.7625%2013.6404%204.409%2013.2018%204.409ZM5.3702%208.749C4.33499%208.749%203.49481%207.909%203.49481%206.874C3.49481%205.839%204.33499%204.999%205.3702%204.999C5.87631%204.999%206.3004%205.1865%206.62646%205.487L6.13136%205.963C5.9244%205.77181%205.65196%205.66729%205.3702%205.671C4.71757%205.671%204.18846%206.211%204.18846%206.8755C4.18846%207.54%204.71757%208.08%205.3697%208.08C6.12336%208.08%206.43492%207.54%206.46493%207.176L5.3707%207.175V6.533H7.12607C7.15107%206.648%207.17108%206.7615%207.17108%206.915C7.17108%207.9885%206.45393%208.7495%205.3697%208.7495L5.3702%208.749ZM13.7504%2013.214C13.7504%2013.509%2013.5044%2013.75%2013.2018%2013.75H8.76341L10.5883%2011.735H10.5908L10.2207%2010.584L10.2237%2010.5815C10.2237%2010.5815%2010.5078%2010.3375%2010.8623%209.9615C11.2184%2010.347%2011.6775%2010.811%2012.2716%2011.364L12.6572%2010.978C12.0211%2010.401%2011.555%209.943%2011.2119%209.5755C11.6715%209.032%2012.1381%208.348%2012.2366%207.722H13.2538V7.723H13.2548V7.253H10.9884V6.493H10.2527V7.253H9.15049L8.31432%204.648L8.31732%204.659H13.2018C13.5044%204.659%2013.7504%204.899%2013.7504%205.195V13.214ZM10.5078%209.5585C10.2397%209.8325%2010.0362%209.995%2010.0362%209.995L10.0322%209.997L9.30202%207.723H11.6845C11.531%208.265%2011.1904%208.777%2010.8588%209.175C10.2707%208.479%2010.2687%208.253%2010.2687%208.253H9.6576C9.6576%208.253%209.6826%208.5925%2010.5078%209.5585Z'%20fill='%237E7E7E'/%3e%3c/svg%3e",Jo="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2017V11'%20stroke='%231C274C'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3ccircle%20cx='1'%20cy='1'%20r='1'%20transform='matrix(1%200%200%20-1%2011%209)'%20fill='%231C274C'/%3e%3cpath%20d='M7%203.33782C8.47087%202.48697%2010.1786%202%2012%202C17.5228%202%2022%206.47715%2022%2012C22%2017.5228%2017.5228%2022%2012%2022C6.47715%2022%202%2017.5228%202%2012C2%2010.1786%202.48697%208.47087%203.33782%207'%20stroke='%231C274C'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",Yo="data:image/svg+xml,%3csvg%20width='96'%20height='32'%20viewBox='0%200%2096%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M40.151%208.94498H35.7256V23.055H40.151C44.7473%2023.055%2047.826%2020.0825%2047.826%2015.9795C47.8267%2011.8093%2044.7678%208.94498%2040.151%208.94498ZM40.1312%2021.025H37.993V10.9974H40.1312C43.4217%2010.9974%2045.4972%2012.9846%2045.4972%2015.9795C45.4965%2018.9296%2043.4012%2021.025%2040.1312%2021.025Z'%20fill='%233B5695'/%3e%3cpath%20d='M54.5158%208.94498H50.0903V23.055H54.5158C59.1121%2023.055%2062.1908%2020.0825%2062.1908%2015.9795C62.1914%2011.8093%2059.1351%208.94498%2054.5158%208.94498ZM54.496%2021.025H52.3578V10.9974H54.496C57.789%2010.9974%2059.8619%2012.9846%2059.8619%2015.9795C59.8613%2018.9296%2057.766%2021.025%2054.496%2021.025Z'%20fill='%233B5695'/%3e%3cpath%20d='M66.7237%208.94498H64.4575V23.055H66.7237V8.94498Z'%20fill='%233B5695'/%3e%3cpath%20d='M76.4301%2010.7837C78.29%2010.7837%2079.7436%2011.6603%2080.7487%2013.2207L82.4589%2011.9591C81.2401%209.97057%2078.9957%208.70953%2076.409%208.70953C72.3898%208.64555%2068.9048%2011.9591%2068.9906%2016C68.9048%2020.0403%2072.3898%2023.3544%2076.409%2023.2905C79.0385%2023.2905%2081.2618%2022.0294%2082.4589%2020.0409L80.7487%2018.7793C79.7436%2020.3397%2078.29%2021.2163%2076.4301%2021.2163C73.544%2021.2163%2071.3418%2018.993%2071.3418%2016C71.3418%2013.007%2073.5433%2010.7837%2076.4301%2010.7837Z'%20fill='%233B5695'/%3e%3cpath%20d='M83.3135%208.94498V10.9757H88.0595V23.055H90.3256V10.9757H95.0934V8.94498H83.3135Z'%20fill='%233B5695'/%3e%3cpath%20d='M8.66351%204.7121H4.604V15.4427L6.87208%2013.3839V6.79143H8.64559C11.4639%206.79143%2013.2835%208.47857%2013.2835%2011.0877C13.2835%2013.6916%2011.421%2015.4427%208.64559%2015.4427H4.604V17.5016H8.66351C12.7531%2017.5016%2015.6098%2014.8644%2015.6098%2011.0877C15.6104%207.27575%2012.8196%204.7121%208.66351%204.7121Z'%20fill='%233B5695'/%3e%3cpath%20d='M26.2425%209.25528H21.5502L20.7537%2014.293L21.4523%2014.3308L21.4069%2014.7294C21.3916%2014.8656%2021.3289%2015.0448%2021.112%2015.1734C21.1017%2015.9399%2021.0845%2017.0493%2020.9706%2018.1766H26.5937V19.8586H21.4677C22.4133%2022.9424%2024.1254%2024.9648%2026.5611%2025.8669L27.1536%2026.0864L26.6795%2026.5048C26.4875%2026.6737%2026.2182%2027.0141%2026.0896%2027.2489L25.9258%2027.5438L25.6155%2027.4152C23.167%2026.4095%2021.4223%2024.4926%2020.2905%2021.563C19.3602%2024.3365%2017.5797%2026.2553%2014.8592%2027.428L14.5438%2027.5617L14.3775%2027.2642C14.2764%2027.08%2014.0294%2026.7876%2013.8151%2026.5989L13.3564%2026.1951L13.9239%2025.9655C16.4555%2024.9392%2018.064%2023.1414%2018.8228%2020.4837C19.6647%2019.8381%2020.2099%2018.8221%2020.2169%2017.6801V4.53231C20.2169%202.58349%2018.6334%201%2016.6846%201H3.53487C1.58349%201%200%202.58349%200%204.53231V17.6795C0%2019.6283%201.58349%2021.2143%203.53487%2021.2143H8.25528V27.2431C8.25528%2029.3135%209.93986%2031%2012.0096%2031H26.2431C28.3161%2031%2029.9974%2029.3129%2029.9974%2027.2431V13.0096C29.9974%2010.9392%2028.3154%209.25528%2026.2425%209.25528ZM3.53487%2019.4517C2.55662%2019.4517%201.762%2018.6603%201.762%2017.6788V4.53231C1.762%203.55662%202.55598%202.762%203.53487%202.762H16.6839C17.6571%202.762%2018.4517%203.55598%2018.4517%204.53231V17.6795C18.4517%2017.778%2018.444%2017.8733%2018.4267%2017.9667C18.3941%2018.1811%2018.3231%2018.38%2018.215%2018.5592C17.9149%2019.0934%2017.3372%2019.4517%2016.6846%2019.4517H3.53487Z'%20fill='%233B5695'/%3e%3c/svg%3e",Qo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke='%233B5695'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20d='M4%204v5h.582m15.356%202A8.001%208.001%200%20004.582%209m0%200H9m11%2011v-5h-.581m0%200a8.003%208.003%200%2001-15.357-2m15.357%202H15'%20/%3e%3c/svg%3e",Xo="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='%233B5695'/%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='%233B5695'/%3e%3c/svg%3e",Ko="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%20fill='%233B5695'%20class='bi%20bi-list-stars%20fill-primaryColor'%3e%3cpath%20fill-rule='evenodd'%20d='M5%2011.5a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5zm0-4a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5zm0-4a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5z'/%3e%3cpath%20d='M2.242%202.194a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.256-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53zm0%204a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.255-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53zm0%204a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.255-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53z'/%3e%3c/svg%3e",el="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='M3.68688%202.3131C3.88214%202.50837%203.88214%202.82495%203.68688%203.02021L2.04043%204.66666L3.68688%206.3131C3.88214%206.50837%203.88214%206.82495%203.68688%207.02021C3.49162%207.21547%203.17504%207.21547%202.97977%207.02021L0.979775%205.02021C0.784513%204.82495%200.784513%204.50837%200.979775%204.3131L2.97977%202.3131C3.17504%202.11784%203.49162%202.11784%203.68688%202.3131Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M12.3131%208.97977C12.5084%208.78451%2012.825%208.78451%2013.0202%208.97977L15.0202%2010.9798C15.2155%2011.175%2015.2155%2011.4916%2015.0202%2011.6869L13.0202%2013.6869C12.825%2013.8821%2012.5084%2013.8821%2012.3131%2013.6869C12.1178%2013.4916%2012.1178%2013.175%2012.3131%2012.9798L13.9596%2011.3333L12.3131%209.68688C12.1178%209.49161%2012.1178%209.17503%2012.3131%208.97977Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M0.833328%204.66666C0.833328%204.39051%201.05719%204.16666%201.33333%204.16666H14.6667C14.9428%204.16666%2015.1667%204.39051%2015.1667%204.66666C15.1667%204.9428%2014.9428%205.16666%2014.6667%205.16666H1.33333C1.05719%205.16666%200.833328%204.9428%200.833328%204.66666Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M0.833328%2011.3333C0.833328%2011.0572%201.05719%2010.8333%201.33333%2010.8333H14.6667C14.9428%2010.8333%2015.1667%2011.0572%2015.1667%2011.3333C15.1667%2011.6095%2014.9428%2011.8333%2014.6667%2011.8333H1.33333C1.05719%2011.8333%200.833328%2011.6095%200.833328%2011.3333Z'%20fill='%237E7E7E'/%3e%3c/svg%3e",tl="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.3163%2019.4384C5.92462%2018.0052%207.34492%2017%209%2017H15C16.6551%2017%2018.0754%2018.0052%2018.6837%2019.4384M16%209.5C16%2011.7091%2014.2091%2013.5%2012%2013.5C9.79086%2013.5%208%2011.7091%208%209.5C8%207.29086%209.79086%205.5%2012%205.5C14.2091%205.5%2016%207.29086%2016%209.5ZM22%2012C22%2017.5228%2017.5228%2022%2012%2022C6.47715%2022%202%2017.5228%202%2012C2%206.47715%206.47715%202%2012%202C17.5228%202%2022%206.47715%2022%2012Z'%20stroke='%233B5695'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",nl="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",ol="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",ll="data:image/svg+xml,%3csvg%20class='w-5%20h-5'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='white'%20aria-hidden='true'%20%3e%3cpath%20fill-rule='evenodd'%20d='M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z'%20clip-rule='evenodd'%20/%3e%3c/svg%3e",te=e=>(t.pushScopeId("data-v-345bc0b4"),e=e(),t.popScopeId(),e),al={class:"flex rounded-md w-full"},sl=["disabled"],rl={class:"flex items-center text-xs"},il=["src"],cl=te(()=>t.createElementVNode("div",{class:"w-px bg-base-300"},null,-1)),dl={class:"relative block"},ul=["aria-expanded","disabled"],fl=[te(()=>t.createElementVNode("span",{class:"sr-only"},"Open options",-1)),te(()=>t.createElementVNode("img",{src:ll,alt:"Chevron down",class:"w-4 h-4 fill-current"},null,-1))],pl={key:0,class:"origin-top-right absolute left-0 mt-1 w-full rounded-md shadow-lg bg-base-100 ring-1 ring-base-300 focus:outline-none z-50",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu"},ml={class:"py-1",role:"none"},hl=["onClick"],gl={class:"flex items-center"},Cl=["src"],bl=G({__name:"ButtonSelect",props:{modelValue:{type:String,required:!0},options:{type:Array,required:!0},isTextEmpty:{type:Boolean,default:!0},hasResult:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["update:modelValue","action"],setup(e,{emit:o}){const n=e,l=o,a=t.ref(!1),s=t.ref(n.modelValue),i=t.ref(null),r=t.computed(()=>n.options.find(g=>g.value===s.value)||n.options[0]);function c(){l("action")}function d(){n.loading||(a.value=!a.value)}function u(g){g.value!==s.value&&(s.value=g.value,l("update:modelValue",g.value)),a.value=!1}function f(g){return new URL(Object.assign({"../../assets/icons/ai-explain-filled.svg":No,"../../assets/icons/ai-explain.svg":Fo,"../../assets/icons/ai-translate-filled.svg":Ao,"../../assets/icons/ai-translate.svg":Ro,"../../assets/icons/arrow-full-screen.svg":Do,"../../assets/icons/book-one.svg":Ho,"../../assets/icons/cancel.svg":Po,"../../assets/icons/chevron-down.svg":Zo,"../../assets/icons/copy.svg":jo,"../../assets/icons/eye-off.svg":zo,"../../assets/icons/eye-on.svg":Uo,"../../assets/icons/favorite-filled.svg":Wo,"../../assets/icons/favorite.svg":qo,"../../assets/icons/google-translate.svg":Go,"../../assets/icons/info.svg":Jo,"../../assets/icons/logo.svg":Yo,"../../assets/icons/retry.svg":Qo,"../../assets/icons/setting.svg":Xo,"../../assets/icons/star-list.svg":Ko,"../../assets/icons/transfer.svg":el,"../../assets/icons/user.svg":tl,"../../assets/icons/volume-stop.svg":nl,"../../assets/icons/volume.svg":ol})[`../../assets/icons/${g}.svg`],typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:O2&&O2.tagName.toUpperCase()==="SCRIPT"&&O2.src||new URL("popup.umd.js",document.baseURI).href).href}function v(g){i.value&&!i.value.contains(g.target)&&(a.value=!1)}return t.watch(()=>n.modelValue,g=>{g!==s.value&&(s.value=g)}),t.watch(()=>n.isTextEmpty,g=>{g&&(a.value=!1)}),t.onMounted(()=>{document.addEventListener("click",v)}),t.onUnmounted(()=>{document.removeEventListener("click",v)}),(g,b)=>(t.openBlock(),t.createElementBlock("div",{class:"relative inline-block text-left flex-1",ref_key:"dropdownRef",ref:i},[t.createElementVNode("div",{class:t.normalizeClass(["relative rounded-lg overflow-hidden border-2 shadow-lg",e.isTextEmpty||n.loading?"border-base-300":"border-primary"])},[t.createElementVNode("div",al,[t.createElementVNode("button",{onClick:c,class:t.normalizeClass(["px-2 py-1 text-sm font-medium rounded-s focus:z-10 focus:outline-none flex-grow text-left relative",[e.isTextEmpty||n.loading?"bg-base-300 text-base-content/50 cursor-not-allowed":"bg-primary text-primary-content"]]),disabled:e.isTextEmpty||n.loading},[t.createElementVNode("div",rl,[t.createElementVNode("img",{src:f(r.value.icon),alt:"",class:"w-4 h-4 mr-2"},null,8,il),t.createTextVNode(" "+t.toDisplayString(r.value.label),1)])],10,sl),cl,t.createElementVNode("div",dl,[t.createElementVNode("button",{onClick:d,type:"button",class:t.normalizeClass(["h-full px-1 py-1 text-sm font-medium rounded-e focus:z-10 focus:outline-none",[e.isTextEmpty||n.loading?"bg-base-300 text-base-content/50 cursor-not-allowed":"bg-primary text-primary-content"]]),"aria-haspopup":"true","aria-expanded":a.value,disabled:e.isTextEmpty||n.loading},fl,10,ul)])])],2),a.value?(t.openBlock(),t.createElementBlock("div",pl,[t.createElementVNode("div",ml,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,h=>(t.openBlock(),t.createElementBlock("a",{key:h.value,onClick:T=>u(h),href:"#",class:"block px-1 py-1 text-sm text-base-content hover:bg-base-200 hover:text-primary",role:"menuitem"},[t.createElementVNode("div",gl,[t.createElementVNode("img",{src:f(h.icon),alt:"",class:"w-4 h-4 mr-2"},null,8,Cl),t.createTextVNode(" "+t.toDisplayString(h.label),1)])],8,hl))),128))])])):t.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-345bc0b4"]]),vl={class:"w-full mt-1"},xl={class:"flex flex-col lg:flex-row lg:items-stretch lg:space-x-4 lg:min-h-[50vh]"},wl={class:"lg:flex-grow lg:w-0 flex flex-col"},yl={class:"flex flex-row lg:flex-col items-center justify-center place-content-center min-h-full"},El={class:"flex items-center",style:{"max-width":"300px"}},_l={class:"lg:flex-grow lg:w-0 flex flex-col"},kl={__name:"WriteTab",props:{opt:{type:Object,required:!0},languages:{type:Object,required:!0},writing:{type:Object,default:null}},emits:["opt","write","copy"],setup(e,{emit:o}){const n=t.inject("writingStore"),l=t.inject("loaderStore"),a=e,s=o,i=[{value:"check",label:"Check",icon:"ai-translate"},{value:"improve",label:"Improve",icon:"ai-explain"},{value:"improve-plus",label:"Improve +++",icon:"ai-explain"},{value:"simplify",label:"Simplify",icon:"ai-translate"},{value:"more-detailed",label:"More detailed",icon:"ai-explain"}];t.watch(()=>a.writing,h=>{l.setLoading("writing",!1),h&&(n.reset(),n.init(h))},{immediate:!0}),t.watch(()=>a.opt,h=>{h.src!==n.src&&n.init({...n.$state,src:h.src})},{deep:!0});function r(h){n.init({...n.$state,text:h})}function c(){n.reset()}function d(h){n.init({...n.$state,result:h})}function u(){n.init({...n.$state,result:"",suggestions:[]})}function f(h=null){n.text.length<r2.IMPROVE_INPUT_MIN_LENGTH||(l.setLoading("writing",!0),g(n.text,a.opt.type,h))}function v(){f("retry")}function g(h,T=a.opt.type,x){h&&(l.setLoading("writing",!0),s("write",{src:a.opt.src,text:h,action:T,flag:x}))}function b(h){l.setLoading("writing",!0),s("opt",{...a.opt,type:h,text:n.text})}return(h,T)=>{var x,C;return t.openBlock(),t.createElementBlock("div",vl,[t.createElementVNode("div",xl,[t.createElementVNode("div",wl,[t.createVNode(_o,{class:"my-2 lg:my-0 w-full flex-grow lg:min-h-[50vh]",text:t.unref(n).text,onChange:r,onClear:c,onImprove:f},null,8,["text"])]),t.createElementVNode("div",yl,[t.createElementVNode("div",El,[t.createVNode(bl,{class:"w-full",modelValue:a.opt.type,options:i,loading:t.unref(l).isLoading("writing"),isTextEmpty:t.unref(n).text&&((x=t.unref(n).text)==null?void 0:x.length)<t.unref(r2).IMPROVE_INPUT_MIN_LENGTH,hasResult:!!t.unref(n).result,"onUpdate:modelValue":b,onAction:f},null,8,["modelValue","loading","isTextEmpty","hasResult"])]),t.createVNode(po,{class:"ml-2 lg:m-2",disabled:((C=t.unref(n).text)==null?void 0:C.length)<5||!t.unref(n).result,onClick:v},null,8,["disabled"])]),t.createElementVNode("div",_l,[t.createVNode(Oo,{class:"my-2 lg:my-0 w-full flex-grow lg:min-h-[50vh]",text:t.unref(n).result,originalText:t.unref(n).text,type:a.opt.type,onChange:d,onClear:u,onCopy:T[0]||(T[0]=_=>{var L;return s("copy",(L=t.unref(n))==null?void 0:L.result)})},null,8,["text","originalText","type"])])])])}}},t0=h2("writing",()=>{const e=t.ref(null),o=t.ref(""),n=t.ref(""),l=t.ref([]),a=t.ref(null),s=s2(),i=t.computed(()=>s.getLabel(e.value));function r(d){e.value=d.src,o.value=d.text,n.value=d.result,l.value=d.suggestions,a.value=d.action}function c(){e.value=null,o.value="",n.value="",l.value=[],a.value=null}return{src:e,srcLabel:i,text:o,result:n,suggestions:l,action:a,init:r,reset:c}}),n0=e=>(t.pushScopeId("data-v-174679cb"),e=e(),t.popScopeId(),e),Ll=["data-theme"],Sl={class:"flex-none py-2 pl-3 pr-2 shadow border border-base-300"},Tl={class:"flex-none"},Vl={class:"flex w-full border-b border-base-300 items-center"},Bl={key:0,class:"text-xs text-base-content/40 ml-1 italic"},$l=[n0(()=>t.createElementVNode("small",null,"(Tab)",-1))],Il={key:0,class:"text-xs text-base-content/40 ml-1 italic"},Ml=[n0(()=>t.createElementVNode("small",null,"(Tab)",-1))],Ol={class:"flex-1 min-h-0"},Nl={class:"h-full overflow-y-auto overflow-x-hidden custom-scrollbar"},Fl=G({__name:"Popup",props:{options:{type:Object,default:()=>({})},data:{type:Object,default:()=>({translation:{text:"",result:"",dict:[]},writing:{text:"",result:"",suggestions:[]},explanation:{result:""},tts:{}})},headerSettings:{type:Object,default:()=>({showAccount:!0,showReader:!0,showFullscreen:!0,showSettings:!0})},theme:{type:String,default:"light"}},emits:["nav","translate","write","common"],setup(e,{emit:o}){const n=Ut();J(n),G2(n),s2(n),n2(n),t0(n);const l=J(),a=G2(),s=s2(),i=n2(),r=t0();t.provide("translationStore",l),t.provide("ttsStore",a),t.provide("languageStore",s),t.provide("loaderStore",i),t.provide("writingStore",r);const c=o,d=(x,C)=>{c("nav",{action:x,payload:C})},u=(x,C={})=>{c("translate",{action:x,payload:C})},f=(x,C={})=>{c("write",{action:x,payload:C})},v=(x,C={})=>{c("common",{action:x,payload:C})},g=e,b={activeTab:"translate",translateOpts:{src:"auto",target:"en"},writeOpts:{type:"check"},languages:{src:{code:"auto",name:"Auto Detect"},target:{code:"en",name:"English"}},isFavoriteFeatureEnabled:!1,isAITranslateFeatureEnabled:!1,isImprovementFeatureEnabled:!1,isFavorite:!1,isAITranslate:!1,isAIExplain:!1,aiExplainMinLength:5,isTTS:!0},h=t.computed(()=>Object.assign({},b,g.options)),T=x=>{if(x.key==="Tab"){x.preventDefault();const _=h.value.activeTab==="translate"?"write":"translate";d("activeTab",_)}};return t.onMounted(()=>{window.addEventListener("keydown",T)}),t.onUnmounted(()=>{window.removeEventListener("keydown",T)}),(x,C)=>(t.openBlock(),t.createElementBlock("div",{"data-theme":e.theme,class:"h-screen flex flex-col bg-base-100"},[t.createElementVNode("div",Sl,[t.createVNode(b0,{"header-settings":e.headerSettings,onReader:C[0]||(C[0]=_=>d("reader")),onSettings:C[1]||(C[1]=_=>d("settings")),onFullScreen:C[2]||(C[2]=_=>d("fullscreen")),onAccount:C[3]||(C[3]=_=>d("account"))},null,8,["header-settings"])]),t.createElementVNode("div",Tl,[t.createElementVNode("div",Vl,[t.createElementVNode("button",{class:t.normalizeClass(["w-1/2 px-4 py-2 text-sm font-medium",h.value.activeTab==="translate"?"text-primary border-b-2 border-primary":"text-base-content/60 hover:text-primary"]),onClick:C[4]||(C[4]=_=>d("activeTab","translate"))},[t.createTextVNode(" Translate "),!t.unref(N2)&&h.value.activeTab!=="translate"?(t.openBlock(),t.createElementBlock("span",Bl,$l)):t.createCommentVNode("",!0)],2),t.createElementVNode("button",{class:t.normalizeClass(["w-1/2 px-4 py-2 text-sm font-medium",h.value.activeTab==="write"?"text-primary border-b-2 border-primary":"text-base-content/60 hover:text-primary"]),onClick:C[5]||(C[5]=_=>d("activeTab","write"))},[t.createTextVNode(" Write "),!t.unref(N2)&&h.value.activeTab!=="write"?(t.openBlock(),t.createElementBlock("span",Il,Ml)):t.createCommentVNode("",!0)],2)])]),t.createElementVNode("div",Ol,[t.createElementVNode("div",Nl,[h.value.activeTab==="translate"?(t.openBlock(),t.createBlock(io,{key:0,opt:h.value.translateOpts,languages:h.value.languages,translation:e.data.translation,explanation:e.data.explanation,tts:e.data.tts,isTTS:h.value.isTTS,isFavoriteFeatureEnabled:h.value.isFavoriteFeatureEnabled,isAITranslateFeatureEnabled:h.value.isAITranslateFeatureEnabled,isFavorite:h.value.isFavorite,isAITranslate:h.value.isAITranslate,isAIExplain:h.value.isAIExplain,aiExplainMinLength:h.value.aiExplainMinLength,onOpt:C[6]||(C[6]=_=>u("updateOpts",_)),onTranslate:C[7]||(C[7]=_=>u("translate",_)),onLoadTTS:C[8]||(C[8]=_=>u("loadTTS",_)),onFavorite:C[9]||(C[9]=_=>u("favorite")),onAiTranslate:C[10]||(C[10]=_=>u("aiTranslate",_)),onAiExplain:C[11]||(C[11]=_=>u("aiExplain",_)),onCopy:C[12]||(C[12]=_=>v("copy",_))},null,8,["opt","languages","translation","explanation","tts","isTTS","isFavoriteFeatureEnabled","isAITranslateFeatureEnabled","isFavorite","isAITranslate","isAIExplain","aiExplainMinLength"])):t.createCommentVNode("",!0),h.value.activeTab==="write"?(t.openBlock(),t.createBlock(kl,{key:1,opt:h.value.writeOpts,languages:h.value.languages,writing:e.data.writing,onOpt:C[13]||(C[13]=_=>f("updateOpts",_)),onWrite:C[14]||(C[14]=_=>f("write",_)),onCopy:C[15]||(C[15]=_=>v("copy",_))},null,8,["opt","languages","writing"])):t.createCommentVNode("",!0)])])],8,Ll))}},[["__scopeId","data-v-174679cb"]]);Y.default=Fl,Object.defineProperties(Y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});