import{H as _n,I as te,J as vn,r as k,b as ee,d as Me,f as w,K as De,w as Rt,L as mn,M as wn,l as C,N as yn,O as xn,u as bn,o as y,c as A,a as p,q as ne,Q as Ot,e as N,n as q,i as Nt,t as R,G as En,P as rt,h as U,g as Ht,v as re,R as Te,m as dt,S as Le,F as $n,j as An,U as Cn,V as kn,W as Sn,p as Ie,k as Re,X as Bn,x as Oe,s as Nn,z as Fn,T as Mn,Y as Dn}from"./app-DFBCA3ez.js";const F=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};function ie(t){return mn()?(wn(t),!0):!1}function W(t){return typeof t=="function"?t():w(t)}const Vt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Tn=Object.prototype.toString,Ln=t=>Tn.call(t)==="[object Object]",ht=()=>{},In=Rn();function Rn(){var t,e;return Vt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function On(t,e){function n(...r){return new Promise((i,o)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(i).catch(o)})}return n}const He=t=>t();function Hn(t=He){const e=k(!0);function n(){e.value=!1}function r(){e.value=!0}const i=(...o)=>{e.value&&t(...o)};return{isActive:te(e),pause:n,resume:r,eventFilter:i}}function Vn(t){let e;function n(){return e||(e=t()),e}return n.reset=async()=>{const r=e;e=void 0,r&&await r},n}function Pn(t,e){var n;if(typeof t=="number")return t+e;const r=((n=t.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",i=t.slice(r.length),o=Number.parseFloat(r)+e;return Number.isNaN(o)?t:o+i}function qn(t){return t||De()}function zn(...t){if(t.length!==1)return _n(...t);const e=t[0];return typeof e=="function"?te(vn(()=>({get:e,set:ht}))):k(e)}function Xn(t,e,n={}){const{eventFilter:r=He,...i}=n;return Rt(t,On(r,e),i)}function Un(t,e,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:s,resume:a,isActive:l}=Hn(r);return{stop:Xn(t,e,{...i,eventFilter:o}),pause:s,resume:a,isActive:l}}function Ve(t,e=!0,n){qn()?ee(t,n):e?t():Me(t)}function Wn(t,e,n={}){const{immediate:r=!0}=n,i=k(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function a(){i.value=!1,s()}function l(...u){s(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,t(...u)},W(e))}return r&&(i.value=!0,Vt&&l()),ie(a),{isPending:te(i),start:l,stop:a}}function et(t){var e;const n=W(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Y=Vt?window:void 0,Pe=Vt?window.navigator:void 0;function K(...t){let e,n,r,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,i]=t,e=Y):[e,n,r,i]=t,!e)return ht;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(c=>c()),o.length=0},a=(c,f,h,d)=>(c.addEventListener(f,h,d),()=>c.removeEventListener(f,h,d)),l=Rt(()=>[et(e),W(i)],([c,f])=>{if(s(),!c)return;const h=Ln(f)?{...f}:f;o.push(...n.flatMap(d=>r.map(g=>a(c,d,g,h))))},{immediate:!0,flush:"post"}),u=()=>{l(),s()};return ie(u),u}let de=!1;function Yn(t,e,n={}){const{window:r=Y,ignore:i=[],capture:o=!0,detectIframe:s=!1}=n;if(!r)return ht;In&&!de&&(de=!0,Array.from(r.document.body.children).forEach(h=>h.addEventListener("click",ht)),r.document.documentElement.addEventListener("click",ht));let a=!0;const l=h=>i.some(d=>{if(typeof d=="string")return Array.from(r.document.querySelectorAll(d)).some(g=>g===h.target||h.composedPath().includes(g));{const g=et(d);return g&&(h.target===g||h.composedPath().includes(g))}}),c=[K(r,"click",h=>{const d=et(t);if(!(!d||d===h.target||h.composedPath().includes(d))){if(h.detail===0&&(a=!l(h)),!a){a=!0;return}e(h)}},{passive:!0,capture:o}),K(r,"pointerdown",h=>{const d=et(t);a=!l(h)&&!!(d&&!h.composedPath().includes(d))},{passive:!0}),s&&K(r,"blur",h=>{setTimeout(()=>{var d;const g=et(t);((d=r.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(g!=null&&g.contains(r.document.activeElement))&&e(h)},0)})].filter(Boolean);return()=>c.forEach(h=>h())}function Gn(){const t=k(!1),e=De();return e&&ee(()=>{t.value=!0},e),t}function oe(t){const e=Gn();return C(()=>(e.value,!!t()))}function tt(t,e={}){const{window:n=Y}=e,r=oe(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const o=k(!1),s=u=>{o.value=u.matches},a=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",s):i.removeListener(s))},l=yn(()=>{r.value&&(a(),i=n.matchMedia(W(t)),"addEventListener"in i?i.addEventListener("change",s):i.addListener(s),o.value=i.matches)});return ie(()=>{l(),a(),i=void 0}),o}const Jn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function Kn(t,e={}){function n(c,f){let h=W(t[W(c)]);return f!=null&&(h=Pn(h,f)),typeof h=="number"&&(h=`${h}px`),h}const{window:r=Y,strategy:i="min-width"}=e;function o(c){return r?r.matchMedia(c).matches:!1}const s=c=>tt(()=>`(min-width: ${n(c)})`,e),a=c=>tt(()=>`(max-width: ${n(c)})`,e),l=Object.keys(t).reduce((c,f)=>(Object.defineProperty(c,f,{get:()=>i==="min-width"?s(f):a(f),enumerable:!0,configurable:!0}),c),{});function u(){const c=Object.keys(t).map(f=>[f,s(f)]);return C(()=>c.filter(([,f])=>f.value).map(([f])=>f))}return Object.assign(l,{greaterOrEqual:s,smallerOrEqual:a,greater(c){return tt(()=>`(min-width: ${n(c,.1)})`,e)},smaller(c){return tt(()=>`(max-width: ${n(c,-.1)})`,e)},between(c,f){return tt(()=>`(min-width: ${n(c)}) and (max-width: ${n(f,-.1)})`,e)},isGreater(c){return o(`(min-width: ${n(c,.1)})`)},isGreaterOrEqual(c){return o(`(min-width: ${n(c)})`)},isSmaller(c){return o(`(max-width: ${n(c,-.1)})`)},isSmallerOrEqual(c){return o(`(max-width: ${n(c)})`)},isInBetween(c,f){return o(`(min-width: ${n(c)}) and (max-width: ${n(f,-.1)})`)},current:u,active(){const c=u();return C(()=>c.value.length===0?"":c.value.at(-1))}})}function pe(t,e={}){const{controls:n=!1,navigator:r=Pe}=e,i=oe(()=>r&&"permissions"in r);let o;const s=typeof t=="string"?{name:t}:t,a=k(),l=()=>{o&&(a.value=o.state)},u=Vn(async()=>{if(i.value){if(!o)try{o=await r.permissions.query(s),K(o,"change",l),l()}catch{a.value="prompt"}return o}});return u(),n?{state:a,isSupported:i,query:u}:a}function fl(t={}){const{navigator:e=Pe,read:n=!1,source:r,copiedDuring:i=1500,legacy:o=!1}=t,s=oe(()=>e&&"clipboard"in e),a=pe("clipboard-read"),l=pe("clipboard-write"),u=C(()=>s.value||o),c=k(""),f=k(!1),h=Wn(()=>f.value=!1,i);function d(){s.value&&a.value!=="denied"?e.clipboard.readText().then(x=>{c.value=x}):c.value=b()}u.value&&n&&K(["copy","cut"],d);async function g(x=W(r)){u.value&&x!=null&&(s.value&&l.value!=="denied"?await e.clipboard.writeText(x):_(x),c.value=x,f.value=!0,h.start())}function _(x){const m=document.createElement("textarea");m.value=x??"",m.style.position="absolute",m.style.opacity="0",document.body.appendChild(m),m.select(),document.execCommand("copy"),m.remove()}function b(){var x,m,B;return(B=(m=(x=document==null?void 0:document.getSelection)==null?void 0:x.call(document))==null?void 0:m.toString())!=null?B:""}return{isSupported:u,text:c,copied:f,copy:g}}const xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},bt="__vueuse_ssr_handlers__",Qn=Zn();function Zn(){return bt in xt||(xt[bt]=xt[bt]||{}),xt[bt]}function qe(t,e){return Qn[t]||e}function jn(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const tr={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},ge="vueuse-storage";function er(t,e,n,r={}){var i;const{flush:o="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=Y,eventFilter:h,onError:d=v=>{console.error(v)},initOnMounted:g}=r,_=(c?xn:k)(typeof e=="function"?e():e);if(!n)try{n=qe("getDefaultStorage",()=>{var v;return(v=Y)==null?void 0:v.localStorage})()}catch(v){d(v)}if(!n)return _;const b=W(e),x=jn(b),m=(i=r.serializer)!=null?i:tr[x],{pause:B,resume:E}=Un(_,()=>L(_.value),{flush:o,deep:s,eventFilter:h});return f&&a&&Ve(()=>{K(f,"storage",I),K(f,ge,j),g&&I()}),g||I(),_;function L(v){try{const $=n.getItem(t),G=st=>{f&&f.dispatchEvent(new CustomEvent(ge,{detail:{key:t,oldValue:$,newValue:st,storageArea:n}}))};if(v==null)G(null),n.removeItem(t);else{const st=m.write(v);$!==st&&(n.setItem(t,st),G(st))}}catch($){d($)}}function yt(v){const $=v?v.newValue:n.getItem(t);if($==null)return l&&b!=null&&n.setItem(t,m.write(b)),b;if(!v&&u){const G=m.read($);return typeof u=="function"?u(G,b):x==="object"&&!Array.isArray(G)?{...b,...G}:G}else return typeof $!="string"?$:m.read($)}function j(v){I(v.detail)}function I(v){if(!(v&&v.storageArea!==n)){if(v&&v.key==null){_.value=b;return}if(!(v&&v.key!==t)){B();try{(v==null?void 0:v.newValue)!==m.write(_.value)&&(_.value=yt(v))}catch($){d($)}finally{v?Me(E):E()}}}}}function ze(t){return tt("(prefers-color-scheme: dark)",t)}function nr(t={}){const{selector:e="html",attribute:n="class",initialValue:r="auto",window:i=Y,storage:o,storageKey:s="vueuse-color-scheme",listenToStorageChanges:a=!0,storageRef:l,emitAuto:u,disableTransition:c=!0}=t,f={auto:"",light:"light",dark:"dark",...t.modes||{}},h=ze({window:i}),d=C(()=>h.value?"dark":"light"),g=l||(s==null?zn(r):er(s,r,o,{window:i,listenToStorageChanges:a})),_=C(()=>g.value==="auto"?d.value:g.value),b=qe("updateHTMLAttrs",(E,L,yt)=>{const j=typeof E=="string"?i==null?void 0:i.document.querySelector(E):et(E);if(!j)return;let I;if(c&&(I=i.document.createElement("style"),I.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),i.document.head.appendChild(I)),L==="class"){const v=yt.split(/\s/g);Object.values(f).flatMap($=>($||"").split(/\s/g)).filter(Boolean).forEach($=>{v.includes($)?j.classList.add($):j.classList.remove($)})}else j.setAttribute(L,yt);c&&(i.getComputedStyle(I).opacity,document.head.removeChild(I))});function x(E){var L;b(e,n,(L=f[E])!=null?L:E)}function m(E){t.onChanged?t.onChanged(E,x):x(E)}Rt(_,m,{flush:"post",immediate:!0}),Ve(()=>m(_.value));const B=C({get(){return u?g.value:_.value},set(E){g.value=E}});try{return Object.assign(B,{store:g,system:d,state:_})}catch{return B}}function rr(t={}){const{valueDark:e="dark",valueLight:n="",window:r=Y}=t,i=nr({...t,onChanged:(a,l)=>{var u;t.onChanged?(u=t.onChanged)==null||u.call(t,a==="dark",l,a):l(a)},modes:{dark:e,light:n}}),o=C(()=>i.system?i.system.value:ze({window:r}).value?"dark":"light");return C({get(){return i.value==="dark"},set(a){const l=a?"dark":"light";o.value===l?i.value="auto":i.value=l}})}const at=rr({disableTransition:!1}),ir={viewBox:"0 0 1000 1000"},or={class:"rose"},sr={ref:"el1",cx:"500",cy:"500",r:"225",style:{"--angle":"300deg"}},ar={ref:"el2",cx:"500",cy:"500",r:"225",style:{"--angle":"240deg"}},lr={ref:"el3",cx:"500",cy:"500",r:"225",style:{"--angle":"180deg"}},cr={ref:"el4",cx:"500",cy:"500",r:"225",style:{"--angle":"120deg"}},ur={ref:"el5",cx:"500",cy:"500",r:"225",style:{"--angle":"60deg"}},fr={ref:"el6",cx:"500",cy:"500",r:"225",style:{"--angle":"0deg"}},hr={__name:"IconBreathePure",props:{color:{type:String,default:"#ffffff"}},setup(t){bn(n=>({"57c0dc81":e.color}));const e=t;return(n,r)=>(y(),A("div",null,[(y(),A("svg",ir,[p("g",or,[p("circle",sr,null,512),p("circle",ar,null,512),p("circle",lr,null,512),p("circle",cr,null,512),p("circle",ur,null,512),p("circle",fr,null,512)])]))]))}},dr=F(hr,[["__scopeId","data-v-569bc5b4"]]),pr={},gr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-chevron-down"},_r=p("path",{d:"m6 9 6 6 6-6"},null,-1),vr=[_r];function mr(t,e){return y(),A("svg",gr,vr)}const wr=F(pr,[["render",mr]]),yr={},xr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 480"},br=p("path",{fill:"#fc0",d:"M0 320h640v160H0z"},null,-1),Er=p("path",{fill:"#000001",d:"M0 0h640v160H0z"},null,-1),$r=p("path",{fill:"red",d:"M0 160h640v160H0z"},null,-1),Ar=[br,Er,$r];function Cr(t,e){return y(),A("svg",xr,Ar)}const kr=F(yr,[["render",Cr]]),Sr={},Br={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 480"},Nr=p("g",{"fill-rule":"evenodd","stroke-width":"1pt"},[p("path",{fill:"gold",d:"M0 0h640v480H0z"}),p("path",{fill:"#0057b8",d:"M0 0h640v240H0z"})],-1),Fr=[Nr];function Mr(t,e){return y(),A("svg",Br,Fr)}const Dr=F(Sr,[["render",Mr]]),Tr={},Lr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 480"},Ir=ne('<path fill="#bd3d44" d="M0 0h640v480H0"></path><path stroke="#fff" stroke-width="37" d="M0 55.3h640M0 129h640M0 203h640M0 277h640M0 351h640M0 425h640"></path><path fill="#192f5d" d="M0 0h364.8v258.5H0"></path><marker id="us-a" markerHeight="30" markerWidth="30"><path fill="#fff" d="m14 0 9 27L0 10h28L5 27z"></path></marker><path fill="none" marker-mid="url(#us-a)" d="m0 0 16 11h61 61 61 61 60L47 37h61 61 60 61L16 63h61 61 61 61 60L47 89h61 61 60 61L16 115h61 61 61 61 60L47 141h61 61 60 61L16 166h61 61 61 61 60L47 192h61 61 60 61L16 218h61 61 61 61 60z"></path>',5),Rr=[Ir];function Or(t,e){return y(),A("svg",Lr,Rr)}const Hr=F(Tr,[["render",Or]]),Vr={},Pr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"moon"},qr=p("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"},null,-1),zr=[qr];function Xr(t,e){return y(),A("svg",Pr,zr)}const Ur=F(Vr,[["render",Xr]]),Wr={},Yr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"sun"},Gr=ne('<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>',9),Jr=[Gr];function Kr(t,e){return y(),A("svg",Yr,Jr)}const Qr=F(Wr,[["render",Kr]]);function P(t){var r;const n=(r=Ot().props)==null?void 0:r.translations;return n&&n[t]!=null?n[t]:t}const Zr={class:"flex"},jr={__name:"BreathButton",props:{customClass:{type:String,default:"pl-2 pr-3 hidden sm:flex"},iconSize:{type:String,default:"h-5 w-5"}},setup(t){let e=Ot();const r=`/${C(()=>e.props.locale).value}/${P("breathe.title").replace(/\s+/g,"-").toLowerCase()}`;return(i,o)=>(y(),A("a",{class:q(["breath-btn call-to-action-btn",t.customClass]),href:r},[p("div",Zr,[N(w(dr),{class:q(t.iconSize)},null,8,["class"])]),Nt(" "+R(w(P)("boxBreathing")),1)],2))}},ti=F(jr,[["__scopeId","data-v-28cfbd89"]]),ei={__name:"BaseDropdown",props:{align:{type:String,default:"right"},width:{type:String,default:"48"},contentClasses:{type:String,default:"py-1 bg-white dark:bg-slate-800"},onHover:{type:Boolean,default:!1}},setup(t){const e=t,n=l=>{s.value&&l.key==="Escape"&&(s.value=!1)};ee(()=>document.addEventListener("keydown",n)),En(()=>document.removeEventListener("keydown",n));const r=C(()=>({60:"w-60",48:"w-48",20:"w-20",16:"w-16"})[e.width.toString()]),i=C(()=>e.align==="left"?"ltr:origin-top-left rtl:origin-top-right start-0":e.align==="right"?"ltr:origin-top-right rtl:origin-top-left end-0":"origin-top"),o=k(null),s=k(!1);Yn(o,()=>s.value=!1,{ignore:[o]});const a=()=>{s.value=!s.value};return(l,u)=>(y(),A("div",{class:"relative",ref_key:"dropdownRef",ref:o},[p("div",{onClick:u[0]||(u[0]=c=>!t.onHover&&a()),onMouseover:u[1]||(u[1]=c=>t.onHover&&a()),onMouseleave:u[2]||(u[2]=c=>t.onHover&&a())},[rt(l.$slots,"trigger")],32),N(Te,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:U(()=>[Ht(p("div",{class:q(["absolute z-50 mt-2 rounded-md shadow",[r.value,i.value]]),style:{display:"none"},onClick:u[3]||(u[3]=c=>s.value=!1)},[p("div",{class:q(["rounded-md",t.contentClasses])},[rt(l.$slots,"content")],2)],2),[[re,s.value]])]),_:3})],512))}},ni={__name:"DropdownLink",props:{href:{type:String,required:!0}},setup(t){return(e,n)=>(y(),dt(w(Le),{href:t.href,class:"block w-full px-4 py-2 text-start text-sm leading-5 hover:bg-stone-200 focus:outline-none transition duration-150 ease-in-out"},{default:U(()=>[rt(e.$slots,"default")]),_:3},8,["href"]))}},Et={en:{flag:"us",name:"English",short:"EN",timezone:"en-US"},de:{flag:"de",name:"Deutsch",short:"DE",timezone:"de-DE"},uk:{flag:"uk",name:"Українська",short:"UA",timezone:"uk-UA"}},ri={class:"inline-flex rounded-md"},ii=["aria-label"],oi={class:"flex gap-1"},si={class:"hidden md:block"},ai={__name:"LanguageSelector",setup(t){const n=Kn(Jn).smallerOrEqual("md");let r=Ot();const i=C(()=>r.props.locale),o=C(()=>r.props.locales),s=l=>{switch(l){case"de":return kr;case"uk":return Dr;default:return Hr}},a=l=>{const{location:u,url:c}=r.props.ziggy,f=decodeURIComponent(u.slice(c.length)).split("/");return f[2]?(f[1]=l,f[2]===P("breathe.title").replace(/\s+/g,"-").toLowerCase()&&(f[2]=l==="en"?"box-breathing-exercise":l==="de"?"box-atmung-übung":"дихальні-вправи"),c+f.join("/")):`/${l}`};return(l,u)=>(y(),A("div",null,[N(ei,{align:"right",width:w(n)?"20":"48"},{trigger:U(()=>{var c,f;return[p("span",ri,[p("button",{type:"button",class:"lang-btn","aria-label":(c=w(Et)[i.value])==null?void 0:c.name},[Nt(R((f=w(Et)[i.value])==null?void 0:f.short)+" ",1),N(w(wr),{class:"chevron-down"})],8,ii)])]}),content:U(()=>[(y(!0),A($n,null,An(o.value,(c,f)=>(y(),dt(ni,{key:f,href:a(c),class:"dropdown-item","preserve-scroll":""},{default:U(()=>{var h,d;return[(y(),dt(Cn(s(c)),{class:"w-4 shadow-lg"})),p("div",oi,[p("span",si,R((h=w(Et)[c])==null?void 0:h.name)+" -",1),p("span",null,R((d=w(Et)[c])==null?void 0:d.short),1)])]}),_:2},1032,["href"]))),128))]),_:1},8,["width"])]))}},li=t=>(Ie("data-v-f0780fb0"),t=t(),Re(),t),ci={for:"mode",class:"switch"},ui=li(()=>p("span",{class:"slider !shadow-none"},null,-1)),fi={__name:"ThemeSwitcher",setup(t){return(e,n)=>(y(),A("label",ci,[Ht(p("input",{type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=r=>Sn(at)?at.value=r:null),name:"mode",id:"mode","aria-label":"Mode"},null,512),[[kn,w(at)]]),ui,N(w(Qr),{class:q(["sun",w(at)?"text-slate-300":"text-indigo-100"])},null,8,["class"]),N(w(Ur),{class:q(["moon",w(at)?"text-indigo-100":"text-stone-700"])},null,8,["class"])]))}},hi=F(fi,[["__scopeId","data-v-f0780fb0"]]),di=t=>(Ie("data-v-c142d4bf"),t=t(),Re(),t),pi={class:"header-content"},gi=di(()=>p("img",{src:"/assets/img/logo.svg",width:"28px",height:"28px",class:"mr-1.5",alt:"logo",loading:"lazy"},null,-1)),_i=["innerHTML"],vi={class:"flex gap-x-2 items-center"},mi={__name:"AppHeader",setup(t){let e=Ot();const n=C(()=>e.props.locale),r=C(()=>n.value==="en"?"/":`/${n.value}`);return(i,o)=>(y(),A("div",pi,[N(w(Le),{href:r.value,class:"logo"},{default:U(()=>[gi,p("div",{innerHTML:w(P)("logo")},null,8,_i)]),_:1},8,["href"]),p("div",vi,[N(ti,{class:"hidden sm:block"}),N(ai),N(hi)])]))}},hl=F(mi,[["__scopeId","data-v-c142d4bf"]]),dl={__name:"AppBlurredSpot",props:{customClass:{type:String,default:"from-indigo-500 via-purple-500 to-pink-500 h-52 opacity-30 inset-x-0"}},setup(t){return(e,n)=>(y(),A("div",{class:q(["absolute max-w-lg bg-gradient-to-tr blur-[80px]",`${t.customClass}`])},null,2))}};var Pt={exports:{}};Pt.exports=se;Pt.exports.isMobile=se;Pt.exports.default=se;const wi=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,yi=/CrOS/,xi=/android|ipad|playbook|silk/i;function se(t){t||(t={});let e=t.ua;if(!e&&typeof navigator<"u"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),typeof e!="string")return!1;let n=wi.test(e)&&!yi.test(e)||!!t.tablet&&xi.test(e);return!n&&t.tablet&&t.featureDetect&&navigator&&navigator.maxTouchPoints>1&&e.indexOf("Macintosh")!==-1&&e.indexOf("Safari")!==-1&&(n=!0),n}var bi=Pt.exports;const pl=Bn(bi),Ei={1:"#39a7c1",2:"#43aec8",3:"#39a7c1",4:"#39a7c1",5:"#43aec8",6:"#39a7c1",7:"#39a7c1",8:"#43aec8",9:"#39a7c1",10:"#39a7c1",11:"#43aec8",12:"#39a7c1",13:"#39a7c1",14:"#43aec8",15:"#39a7c1",16:"#39a7c1",17:"#43aec8",18:"#39a7c1",19:"#39a7c1",20:"#9C75B7",21:"#A480BD",22:"#9C75B7",23:"#9C75B7",24:"#A480BD",25:"#9C75B7",26:"#9C75B7",27:"#A480BD",28:"#9C75B7",29:"#9C75B7",30:"#A480BD",31:"#9C75B7",32:"#9C75B7",33:"#A480BD",34:"#9C75B7",35:"#9C75B7",36:"#A480BD",37:"#9C75B7",38:"#9C75B7",39:"#A480BD",40:"#9C75B7",41:"#9C75B7",42:"#A480BD",43:"#9C75B7",44:"#9C75B7",45:"#AB7274",46:"#B17D7F",47:"#AB7274",48:"#AB7274",49:"#B17D7F",50:"#AB7274",51:"#AB7274",52:"#B17D7F",53:"#AB7274",54:"#AB7274",55:"#B17D7F",56:"#AB7274",57:"#AB7274",58:"#EC8C74",59:"#EE9883",60:"#EC8C74",61:"#EC8C74",62:"#EE9883",63:"#EC8C74",64:"#EC8C74",65:"#EE9883",66:"#EC8C74",67:"#EC8C74",68:"#EE9883",69:"#EC8C74",70:"#EC8C74",71:"#EE9883",72:"#EC8C74",73:"#EC8C74",74:"#EE9883",75:"#EC8C74",76:"#EC8C74",77:"#E76F51",78:"#E97B60",79:"#E76F51",80:"#E76F51",81:"#E97B60",82:"#E76F51",83:"#E76F51",84:"#E97B60",85:"#E76F51",86:"#E76F51",87:"#E97B60",88:"#E76F51",89:"#E76F51",90:"#E97B60",91:"#E76F51",92:"#E76F51",93:"#E97B60",94:"#E76F51",95:"#E76F51",96:"#E97B60",97:"#E76F51",98:"#E76F51",99:"#E97B60",100:"#E76F51",101:"#E76F51",102:"#E97B60",103:"#E76F51",104:"#E76F51",105:"#F4A261",106:"#F5AB71",107:"#F4A261",108:"#F4A261",109:"#F5AB71",110:"#F4A261",111:"#F4A261",112:"#F5AB71",113:"#F4A261",114:"#F4A261",115:"#F5AB71",116:"#F4A261",117:"#F4A261",118:"#68c4af",119:"#74c9b5",120:"#68c4af",121:"#68c4af",122:"#74c9b5",123:"#68c4af",124:"#68c4af",125:"#74c9b5",126:"#68c4af",127:"#68c4af",128:"#74c9b5",129:"#68c4af",130:"#68c4af"},$i={class:"dialog-wrapper"},Ai={__name:"DialogWrapper",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=Oe(t,"modelValue");return Rt(()=>e.value,()=>{e.value?document.body.style.overflow="hidden":document.body.style.overflow=null}),(n,r)=>(y(),dt(Te,null,{default:U(()=>[Ht(p("div",$i,[rt(n.$slots,"default",{},void 0,!0)],512),[[re,e.value]])]),_:3}))}},Ci=F(Ai,[["__scopeId","data-v-f4436168"]]);var ki={value:()=>{}};function Xe(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new kt(n)}function kt(t){this._=t}function Si(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}kt.prototype=Xe.prototype={constructor:kt,on:function(t,e){var n=this._,r=Si(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(t=r[o]).type)&&(i=Bi(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(t=r[o]).type)n[i]=_e(n[i],t.name,e);else if(e==null)for(i in n)n[i]=_e(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new kt(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function Bi(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function _e(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=ki,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var Yt="http://www.w3.org/1999/xhtml";const ve={svg:"http://www.w3.org/2000/svg",xhtml:Yt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function qt(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),ve.hasOwnProperty(e)?{space:ve[e],local:t}:t}function Ni(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Yt&&e.documentElement.namespaceURI===Yt?e.createElement(t):e.createElementNS(n,t)}}function Fi(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ue(t){var e=qt(t);return(e.local?Fi:Ni)(e)}function Mi(){}function ae(t){return t==null?Mi:function(){return this.querySelector(t)}}function Di(t){typeof t!="function"&&(t=ae(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=new Array(s),l,u,c=0;c<s;++c)(l=o[c])&&(u=t.call(l,l.__data__,c,o))&&("__data__"in l&&(u.__data__=l.__data__),a[c]=u);return new D(r,this._parents)}function Ti(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Li(){return[]}function We(t){return t==null?Li:function(){return this.querySelectorAll(t)}}function Ii(t){return function(){return Ti(t.apply(this,arguments))}}function Ri(t){typeof t=="function"?t=Ii(t):t=We(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s=e[o],a=s.length,l,u=0;u<a;++u)(l=s[u])&&(r.push(t.call(l,l.__data__,u,s)),i.push(l));return new D(r,i)}function Ye(t){return function(){return this.matches(t)}}function Ge(t){return function(e){return e.matches(t)}}var Oi=Array.prototype.find;function Hi(t){return function(){return Oi.call(this.children,t)}}function Vi(){return this.firstElementChild}function Pi(t){return this.select(t==null?Vi:Hi(typeof t=="function"?t:Ge(t)))}var qi=Array.prototype.filter;function zi(){return Array.from(this.children)}function Xi(t){return function(){return qi.call(this.children,t)}}function Ui(t){return this.selectAll(t==null?zi:Xi(typeof t=="function"?t:Ge(t)))}function Wi(t){typeof t!="function"&&(t=Ye(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,u=0;u<s;++u)(l=o[u])&&t.call(l,l.__data__,u,o)&&a.push(l);return new D(r,this._parents)}function Je(t){return new Array(t.length)}function Yi(){return new D(this._enter||this._groups.map(Je),this._parents)}function Ft(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Ft.prototype={constructor:Ft,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Gi(t){return function(){return t}}function Ji(t,e,n,r,i,o){for(var s=0,a,l=e.length,u=o.length;s<u;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new Ft(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function Ki(t,e,n,r,i,o,s){var a,l,u=new Map,c=e.length,f=o.length,h=new Array(c),d;for(a=0;a<c;++a)(l=e[a])&&(h[a]=d=s.call(l,l.__data__,a,e)+"",u.has(d)?i[a]=l:u.set(d,l));for(a=0;a<f;++a)d=s.call(t,o[a],a,o)+"",(l=u.get(d))?(r[a]=l,l.__data__=o[a],u.delete(d)):n[a]=new Ft(t,o[a]);for(a=0;a<c;++a)(l=e[a])&&u.get(h[a])===l&&(i[a]=l)}function Qi(t){return t.__data__}function Zi(t,e){if(!arguments.length)return Array.from(this,Qi);var n=e?Ki:Ji,r=this._parents,i=this._groups;typeof t!="function"&&(t=Gi(t));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),u=0;u<o;++u){var c=r[u],f=i[u],h=f.length,d=ji(t.call(c,c&&c.__data__,u,r)),g=d.length,_=a[u]=new Array(g),b=s[u]=new Array(g),x=l[u]=new Array(h);n(c,f,_,b,x,d,e);for(var m=0,B=0,E,L;m<g;++m)if(E=_[m]){for(m>=B&&(B=m+1);!(L=b[B])&&++B<g;);E._next=L||null}}return s=new D(s,r),s._enter=a,s._exit=l,s}function ji(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function to(){return new D(this._exit||this._groups.map(Je),this._parents)}function eo(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function no(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var u=n[l],c=r[l],f=u.length,h=a[l]=new Array(f),d,g=0;g<f;++g)(d=u[g]||c[g])&&(h[g]=d);for(;l<i;++l)a[l]=n[l];return new D(a,this._parents)}function ro(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function io(t){t||(t=oo);function e(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],a=s.length,l=i[o]=new Array(a),u,c=0;c<a;++c)(u=s[c])&&(l[c]=u);l.sort(e)}return new D(i,this._parents).order()}function oo(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function so(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function ao(){return Array.from(this)}function lo(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function co(){let t=0;for(const e of this)++t;return t}function uo(){return!this.node()}function fo(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,s=i.length,a;o<s;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this}function ho(t){return function(){this.removeAttribute(t)}}function po(t){return function(){this.removeAttributeNS(t.space,t.local)}}function go(t,e){return function(){this.setAttribute(t,e)}}function _o(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function vo(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function mo(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function wo(t,e){var n=qt(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?po:ho:typeof e=="function"?n.local?mo:vo:n.local?_o:go)(n,e))}function Ke(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function yo(t){return function(){this.style.removeProperty(t)}}function xo(t,e,n){return function(){this.style.setProperty(t,e,n)}}function bo(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Eo(t,e,n){return arguments.length>1?this.each((e==null?yo:typeof e=="function"?bo:xo)(t,e,n??"")):it(this.node(),t)}function it(t,e){return t.style.getPropertyValue(e)||Ke(t).getComputedStyle(t,null).getPropertyValue(e)}function $o(t){return function(){delete this[t]}}function Ao(t,e){return function(){this[t]=e}}function Co(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function ko(t,e){return arguments.length>1?this.each((e==null?$o:typeof e=="function"?Co:Ao)(t,e)):this.node()[t]}function Qe(t){return t.trim().split(/^|\s+/)}function le(t){return t.classList||new Ze(t)}function Ze(t){this._node=t,this._names=Qe(t.getAttribute("class")||"")}Ze.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function je(t,e){for(var n=le(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function tn(t,e){for(var n=le(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function So(t){return function(){je(this,t)}}function Bo(t){return function(){tn(this,t)}}function No(t,e){return function(){(e.apply(this,arguments)?je:tn)(this,t)}}function Fo(t,e){var n=Qe(t+"");if(arguments.length<2){for(var r=le(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?No:e?So:Bo)(n,e))}function Mo(){this.textContent=""}function Do(t){return function(){this.textContent=t}}function To(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Lo(t){return arguments.length?this.each(t==null?Mo:(typeof t=="function"?To:Do)(t)):this.node().textContent}function Io(){this.innerHTML=""}function Ro(t){return function(){this.innerHTML=t}}function Oo(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Ho(t){return arguments.length?this.each(t==null?Io:(typeof t=="function"?Oo:Ro)(t)):this.node().innerHTML}function Vo(){this.nextSibling&&this.parentNode.appendChild(this)}function Po(){return this.each(Vo)}function qo(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function zo(){return this.each(qo)}function Xo(t){var e=typeof t=="function"?t:Ue(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Uo(){return null}function Wo(t,e){var n=typeof t=="function"?t:Ue(t),r=e==null?Uo:typeof e=="function"?e:ae(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Yo(){var t=this.parentNode;t&&t.removeChild(this)}function Go(){return this.each(Yo)}function Jo(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ko(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Qo(t){return this.select(t?Ko:Jo)}function Zo(t){return arguments.length?this.property("__data__",t):this.node().__data__}function jo(t){return function(e){t.call(this,e,this.__data__)}}function ts(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function es(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function ns(t,e,n){return function(){var r=this.__on,i,o=jo(e);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function rs(t,e,n){var r=ts(t+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,u=a.length,c;l<u;++l)for(i=0,c=a[l];i<o;++i)if((s=r[i]).type===c.type&&s.name===c.name)return c.value}return}for(a=e?ns:es,i=0;i<o;++i)this.each(a(r[i],e,n));return this}function en(t,e,n){var r=Ke(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function is(t,e){return function(){return en(this,t,e)}}function os(t,e){return function(){return en(this,t,e.apply(this,arguments))}}function ss(t,e){return this.each((typeof e=="function"?os:is)(t,e))}function*as(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var ls=[null];function D(t,e){this._groups=t,this._parents=e}function mt(){return new D([[document.documentElement]],ls)}function cs(){return this}D.prototype=mt.prototype={constructor:D,select:Di,selectAll:Ri,selectChild:Pi,selectChildren:Ui,filter:Wi,data:Zi,enter:Yi,exit:to,join:eo,merge:no,selection:cs,order:ro,sort:io,call:so,nodes:ao,node:lo,size:co,empty:uo,each:fo,attr:wo,style:Eo,property:ko,classed:Fo,text:Lo,html:Ho,raise:Po,lower:zo,append:Xo,insert:Wo,remove:Go,clone:Qo,datum:Zo,on:rs,dispatch:ss,[Symbol.iterator]:as};function ce(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function nn(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function wt(){}var pt=.7,Mt=1/pt,nt="\\s*([+-]?\\d+)\\s*",gt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",O="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",us=/^#([0-9a-f]{3,8})$/,fs=new RegExp(`^rgb\\(${nt},${nt},${nt}\\)$`),hs=new RegExp(`^rgb\\(${O},${O},${O}\\)$`),ds=new RegExp(`^rgba\\(${nt},${nt},${nt},${gt}\\)$`),ps=new RegExp(`^rgba\\(${O},${O},${O},${gt}\\)$`),gs=new RegExp(`^hsl\\(${gt},${O},${O}\\)$`),_s=new RegExp(`^hsla\\(${gt},${O},${O},${gt}\\)$`),me={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ce(wt,_t,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:we,formatHex:we,formatHex8:vs,formatHsl:ms,formatRgb:ye,toString:ye});function we(){return this.rgb().formatHex()}function vs(){return this.rgb().formatHex8()}function ms(){return rn(this).formatHsl()}function ye(){return this.rgb().formatRgb()}function _t(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=us.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?xe(e):n===3?new S(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?$t(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?$t(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=fs.exec(t))?new S(e[1],e[2],e[3],1):(e=hs.exec(t))?new S(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=ds.exec(t))?$t(e[1],e[2],e[3],e[4]):(e=ps.exec(t))?$t(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=gs.exec(t))?$e(e[1],e[2]/100,e[3]/100,1):(e=_s.exec(t))?$e(e[1],e[2]/100,e[3]/100,e[4]):me.hasOwnProperty(t)?xe(me[t]):t==="transparent"?new S(NaN,NaN,NaN,0):null}function xe(t){return new S(t>>16&255,t>>8&255,t&255,1)}function $t(t,e,n,r){return r<=0&&(t=e=n=NaN),new S(t,e,n,r)}function ws(t){return t instanceof wt||(t=_t(t)),t?(t=t.rgb(),new S(t.r,t.g,t.b,t.opacity)):new S}function Gt(t,e,n,r){return arguments.length===1?ws(t):new S(t,e,n,r??1)}function S(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}ce(S,Gt,nn(wt,{brighter(t){return t=t==null?Mt:Math.pow(Mt,t),new S(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?pt:Math.pow(pt,t),new S(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new S(Q(this.r),Q(this.g),Q(this.b),Dt(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:be,formatHex:be,formatHex8:ys,formatRgb:Ee,toString:Ee}));function be(){return`#${J(this.r)}${J(this.g)}${J(this.b)}`}function ys(){return`#${J(this.r)}${J(this.g)}${J(this.b)}${J((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ee(){const t=Dt(this.opacity);return`${t===1?"rgb(":"rgba("}${Q(this.r)}, ${Q(this.g)}, ${Q(this.b)}${t===1?")":`, ${t})`}`}function Dt(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Q(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function J(t){return t=Q(t),(t<16?"0":"")+t.toString(16)}function $e(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new M(t,e,n,r)}function rn(t){if(t instanceof M)return new M(t.h,t.s,t.l,t.opacity);if(t instanceof wt||(t=_t(t)),!t)return new M;if(t instanceof M)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(e===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-e)/a+2:s=(e-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new M(s,a,l,t.opacity)}function xs(t,e,n,r){return arguments.length===1?rn(t):new M(t,e,n,r??1)}function M(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}ce(M,xs,nn(wt,{brighter(t){return t=t==null?Mt:Math.pow(Mt,t),new M(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?pt:Math.pow(pt,t),new M(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new S(Ut(t>=240?t-240:t+120,i,r),Ut(t,i,r),Ut(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new M(Ae(this.h),At(this.s),At(this.l),Dt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Dt(this.opacity);return`${t===1?"hsl(":"hsla("}${Ae(this.h)}, ${At(this.s)*100}%, ${At(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Ae(t){return t=(t||0)%360,t<0?t+360:t}function At(t){return Math.max(0,Math.min(1,t||0))}function Ut(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const on=t=>()=>t;function bs(t,e){return function(n){return t+n*e}}function Es(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function $s(t){return(t=+t)==1?sn:function(e,n){return n-e?Es(e,n,t):on(isNaN(e)?n:e)}}function sn(t,e){var n=e-t;return n?bs(t,n):on(isNaN(t)?e:t)}const Ce=function t(e){var n=$s(e);function r(i,o){var s=n((i=Gt(i)).r,(o=Gt(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),u=sn(i.opacity,o.opacity);return function(c){return i.r=s(c),i.g=a(c),i.b=l(c),i.opacity=u(c),i+""}}return r.gamma=t,r}(1);function X(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var Jt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wt=new RegExp(Jt.source,"g");function As(t){return function(){return t}}function Cs(t){return function(e){return t(e)+""}}function ks(t,e){var n=Jt.lastIndex=Wt.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=Jt.exec(t))&&(i=Wt.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:X(r,i)})),n=Wt.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?Cs(l[0].x):As(e):(e=l.length,function(u){for(var c=0,f;c<e;++c)a[(f=l[c]).i]=f.x(u);return a.join("")})}var ke=180/Math.PI,Kt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function an(t,e,n,r,i,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),t*r<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*ke,skewX:Math.atan(l)*ke,scaleX:s,scaleY:a}}var Ct;function Ss(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Kt:an(e.a,e.b,e.c,e.d,e.e,e.f)}function Bs(t){return t==null||(Ct||(Ct=document.createElementNS("http://www.w3.org/2000/svg","g")),Ct.setAttribute("transform",t),!(t=Ct.transform.baseVal.consolidate()))?Kt:(t=t.matrix,an(t.a,t.b,t.c,t.d,t.e,t.f))}function ln(t,e,n,r){function i(u){return u.length?u.pop()+" ":""}function o(u,c,f,h,d,g){if(u!==f||c!==h){var _=d.push("translate(",null,e,null,n);g.push({i:_-4,x:X(u,f)},{i:_-2,x:X(c,h)})}else(f||h)&&d.push("translate("+f+e+h+n)}function s(u,c,f,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:X(u,c)})):c&&f.push(i(f)+"rotate("+c+r)}function a(u,c,f,h){u!==c?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:X(u,c)}):c&&f.push(i(f)+"skewX("+c+r)}function l(u,c,f,h,d,g){if(u!==f||c!==h){var _=d.push(i(d)+"scale(",null,",",null,")");g.push({i:_-4,x:X(u,f)},{i:_-2,x:X(c,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=t(u),c=t(c),o(u.translateX,u.translateY,c.translateX,c.translateY,f,h),s(u.rotate,c.rotate,f,h),a(u.skewX,c.skewX,f,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(d){for(var g=-1,_=h.length,b;++g<_;)f[(b=h[g]).i]=b.x(d);return f.join("")}}}var Ns=ln(Ss,"px, ","px)","deg)"),Fs=ln(Bs,", ",")",")"),ot=0,ct=0,lt=0,cn=1e3,Tt,ut,Lt=0,Z=0,zt=0,vt=typeof performance=="object"&&performance.now?performance:Date,un=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ue(){return Z||(un(Ms),Z=vt.now()+zt)}function Ms(){Z=0}function It(){this._call=this._time=this._next=null}It.prototype=fn.prototype={constructor:It,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?ue():+n)+(e==null?0:+e),!this._next&&ut!==this&&(ut?ut._next=this:Tt=this,ut=this),this._call=t,this._time=n,Qt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qt())}};function fn(t,e,n){var r=new It;return r.restart(t,e,n),r}function Ds(){ue(),++ot;for(var t=Tt,e;t;)(e=Z-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ot}function Se(){Z=(Lt=vt.now())+zt,ot=ct=0;try{Ds()}finally{ot=0,Ls(),Z=0}}function Ts(){var t=vt.now(),e=t-Lt;e>cn&&(zt-=e,Lt=t)}function Ls(){for(var t,e=Tt,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Tt=n);ut=t,Qt(r)}function Qt(t){if(!ot){ct&&(ct=clearTimeout(ct));var e=t-Z;e>24?(t<1/0&&(ct=setTimeout(Se,t-vt.now()-zt)),lt&&(lt=clearInterval(lt))):(lt||(Lt=vt.now(),lt=setInterval(Ts,cn)),ot=1,un(Se))}}function Be(t,e,n){var r=new It;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var Is=Xe("start","end","cancel","interrupt"),Rs=[],hn=0,Ne=1,Zt=2,St=3,Fe=4,jt=5,Bt=6;function Xt(t,e,n,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;Os(t,n,{name:e,index:r,group:i,on:Is,tween:Rs,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:hn})}function fe(t,e){var n=T(t,e);if(n.state>hn)throw new Error("too late; already scheduled");return n}function H(t,e){var n=T(t,e);if(n.state>St)throw new Error("too late; already running");return n}function T(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Os(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=fn(o,0,n.time);function o(u){n.state=Ne,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var c,f,h,d;if(n.state!==Ne)return l();for(c in r)if(d=r[c],d.name===n.name){if(d.state===St)return Be(s);d.state===Fe?(d.state=Bt,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[c]):+c<e&&(d.state=Bt,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[c])}if(Be(function(){n.state===St&&(n.state=Fe,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=Zt,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Zt){for(n.state=St,i=new Array(h=n.tween.length),c=0,f=-1;c<h;++c)(d=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++f]=d);i.length=f+1}}function a(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=jt,1),f=-1,h=i.length;++f<h;)i[f].call(t,c);n.state===jt&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=Bt,n.timer.stop(),delete r[e];for(var u in r)return;delete t.__transition}}function Hs(t,e){var n=t.__transition,r,i,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((r=n[s]).name!==e){o=!1;continue}i=r.state>Zt&&r.state<jt,r.state=Bt,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[s]}o&&delete t.__transition}}function Vs(t){return this.each(function(){Hs(this,t)})}function Ps(t,e){var n,r;return function(){var i=H(this,t),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function qs(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=H(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===e){i[l]=a;break}l===u&&i.push(a)}o.tween=i}}function zs(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=T(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===t)return s.value;return null}return this.each((e==null?Ps:qs)(n,t,e))}function he(t,e,n){var r=t._id;return t.each(function(){var i=H(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return T(i,r).value[e]}}function dn(t,e){var n;return(typeof e=="number"?X:e instanceof _t?Ce:(n=_t(e))?(e=n,Ce):ks)(t,e)}function Xs(t){return function(){this.removeAttribute(t)}}function Us(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ws(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttribute(t);return s===i?null:s===r?o:o=e(r=s,n)}}function Ys(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===r?o:o=e(r=s,n)}}function Gs(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function Js(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function Ks(t,e){var n=qt(t),r=n==="transform"?Fs:dn;return this.attrTween(t,typeof e=="function"?(n.local?Js:Gs)(n,r,he(this,"attr."+t,e)):e==null?(n.local?Us:Xs)(n):(n.local?Ys:Ws)(n,r,e))}function Qs(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Zs(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function js(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&Zs(t,o)),n}return i._value=e,i}function ta(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&Qs(t,o)),n}return i._value=e,i}function ea(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=qt(t);return this.tween(n,(r.local?js:ta)(r,e))}function na(t,e){return function(){fe(this,t).delay=+e.apply(this,arguments)}}function ra(t,e){return e=+e,function(){fe(this,t).delay=e}}function ia(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?na:ra)(e,t)):T(this.node(),e).delay}function oa(t,e){return function(){H(this,t).duration=+e.apply(this,arguments)}}function sa(t,e){return e=+e,function(){H(this,t).duration=e}}function aa(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?oa:sa)(e,t)):T(this.node(),e).duration}function la(t,e){if(typeof e!="function")throw new Error;return function(){H(this,t).ease=e}}function ca(t){var e=this._id;return arguments.length?this.each(la(e,t)):T(this.node(),e).ease}function ua(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;H(this,t).ease=n}}function fa(t){if(typeof t!="function")throw new Error;return this.each(ua(this._id,t))}function ha(t){typeof t!="function"&&(t=Ye(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,u=0;u<s;++u)(l=o[u])&&t.call(l,l.__data__,u,o)&&a.push(l);return new z(r,this._parents,this._name,this._id)}function da(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l=e[a],u=n[a],c=l.length,f=s[a]=new Array(c),h,d=0;d<c;++d)(h=l[d]||u[d])&&(f[d]=h);for(;a<r;++a)s[a]=e[a];return new z(s,this._parents,this._name,this._id)}function pa(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function ga(t,e,n){var r,i,o=pa(e)?fe:H;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}function _a(t,e){var n=this._id;return arguments.length<2?T(this.node(),n).on.on(t):this.each(ga(n,t,e))}function va(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function ma(){return this.on("end.remove",va(this._id))}function wa(t){var e=this._name,n=this._id;typeof t!="function"&&(t=ae(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a=r[s],l=a.length,u=o[s]=new Array(l),c,f,h=0;h<l;++h)(c=a[h])&&(f=t.call(c,c.__data__,h,a))&&("__data__"in c&&(f.__data__=c.__data__),u[h]=f,Xt(u[h],e,n,h,u,T(c,n)));return new z(o,this._parents,e,n)}function ya(t){var e=this._name,n=this._id;typeof t!="function"&&(t=We(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],u=l.length,c,f=0;f<u;++f)if(c=l[f]){for(var h=t.call(c,c.__data__,f,l),d,g=T(c,n),_=0,b=h.length;_<b;++_)(d=h[_])&&Xt(d,e,n,_,h,g);o.push(h),s.push(c)}return new z(o,s,e,n)}var xa=mt.prototype.constructor;function ba(){return new xa(this._groups,this._parents)}function Ea(t,e){var n,r,i;return function(){var o=it(this,t),s=(this.style.removeProperty(t),it(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}function pn(t){return function(){this.style.removeProperty(t)}}function $a(t,e,n){var r,i=n+"",o;return function(){var s=it(this,t);return s===i?null:s===r?o:o=e(r=s,n)}}function Aa(t,e,n){var r,i,o;return function(){var s=it(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),it(this,t))),s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a))}}function Ca(t,e){var n,r,i,o="style."+e,s="end."+o,a;return function(){var l=H(this,t),u=l.on,c=l.value[o]==null?a||(a=pn(e)):void 0;(u!==n||i!==c)&&(r=(n=u).copy()).on(s,i=c),l.on=r}}function ka(t,e,n){var r=(t+="")=="transform"?Ns:dn;return e==null?this.styleTween(t,Ea(t,r)).on("end.style."+t,pn(t)):typeof e=="function"?this.styleTween(t,Aa(t,r,he(this,"style."+t,e))).each(Ca(this._id,t)):this.styleTween(t,$a(t,r,e),n).on("end.style."+t,null)}function Sa(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Ba(t,e,n){var r,i;function o(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&Sa(t,s,n)),r}return o._value=e,o}function Na(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Ba(t,e,n??""))}function Fa(t){return function(){this.textContent=t}}function Ma(t){return function(){var e=t(this);this.textContent=e??""}}function Da(t){return this.tween("text",typeof t=="function"?Ma(he(this,"text",t)):Fa(t==null?"":t+""))}function Ta(t){return function(e){this.textContent=t.call(this,e)}}function La(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Ta(i)),e}return r._value=t,r}function Ia(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,La(t))}function Ra(){for(var t=this._name,e=this._id,n=gn(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,u=0;u<a;++u)if(l=s[u]){var c=T(l,e);Xt(l,t,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new z(r,this._parents,t,n)}function Oa(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var u=H(this,r),c=u.on;c!==t&&(e=(t=c).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),u.on=e}),i===0&&o()})}var Ha=0;function z(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function gn(){return++Ha}var V=mt.prototype;z.prototype={constructor:z,select:wa,selectAll:ya,selectChild:V.selectChild,selectChildren:V.selectChildren,filter:ha,merge:da,selection:ba,transition:Ra,call:V.call,nodes:V.nodes,node:V.node,size:V.size,empty:V.empty,each:V.each,on:_a,attr:Ks,attrTween:ea,style:ka,styleTween:Na,text:Da,textTween:Ia,remove:ma,tween:zs,delay:ia,duration:aa,ease:ca,easeVarying:fa,end:Oa,[Symbol.iterator]:V[Symbol.iterator]};function Va(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Pa={time:null,delay:0,duration:250,ease:Va};function qa(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function za(t){var e,n;t instanceof z?(e=t._id,t=t._name):(e=gn(),(n=Pa).time=ue(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,u=0;u<a;++u)(l=s[u])&&Xt(l,t,e,u,s,n||qa(l,e));return new z(r,this._parents,t,e)}mt.prototype.interrupt=Vs;mt.prototype.transition=za;function ft(t,e,n){this.k=t,this.x=e,this.y=n}ft.prototype={constructor:ft,scale:function(t){return t===1?this:new ft(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new ft(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};ft.prototype;const Xa={class:"dialog w-10/12 gap-6 px-8 py-6"},Ua={class:"flex justify-between"},Wa={class:"flex gap-x-2 items-center relative"},Ya={class:"text-2xl font-black left-4 absolute dark:text-slate-200 text-nowrap"},Ga={class:"flex flex-col gap-2 whitespace-normal text-lg"},Ja={class:"flex justify-end mt-4"},Ka=["aria-label"],Qa=ne('<div class="border-[#39a7c1]">#39a7c1</div><div class="border-[#43aec8]">#43aec8</div><div class="border-[#9C75B7]">#9C75B7</div><div class="border-[#A480BD]">#A480BD</div><div class="border-[#AB7274]">#AB7274</div><div class="border-[#B17D7F]">#B17D7F</div><div class="border-[#EC8C74]">#EC8C74</div><div class="border-[#EE9883]">#EE9883</div><div class="border-[#E76F51]">#E76F51</div><div class="border-[#E97B60]">#E97B60</div><div class="border-[#F4A261]">#F4A261</div><div class="border-[#F5AB71]">#F5AB71</div><div class="border-[#68c4af]">#68c4af</div><div class="border-[#74c9b5]">#74c9b5</div><div class="text-[#39a7c1]">#39a7c1</div><div class="text-[#43aec8]">#43aec8</div><div class="text-[#9C75B7]">#9C75B7</div><div class="text-[#A480BD]">#A480BD</div><div class="text-[#AB7274]">#AB7274</div><div class="text-[#B17D7F]">#B17D7F</div><div class="text-[#EC8C74]">#EC8C74</div><div class="text-[#EE9883]">#EE9883</div><div class="text-[#E76F51]">#E76F51</div><div class="text-[#E97B60]">#E97B60</div><div class="text-[#F4A261]">#F4A261</div><div class="text-[#F5AB71]">#F5AB71</div><div class="text-[#68c4af]">#68c4af</div><div class="text-[#74c9b5]">#74c9b5</div>',28),Za=[Qa],ja={__name:"EmotionDescriptionDialog",props:Nn({feelingsDescription:{type:String,required:!1},feelingsName:{type:String,required:!0},iconColor:{type:String,required:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Oe(t,"modelValue");return(n,r)=>(y(),A("div",Xa,[p("div",{class:q(`bg-transparent w-16 h-16 rounded-tr-full absolute left-0 bottom-0 border-[8px] border-l-0 border-b-0 border-[${t.iconColor}]`)},null,2),p("div",Ua,[p("div",Wa,[p("div",{class:q(["rounded-full w-12 h-12",`bg-[${t.iconColor}]`])},null,2),p("h3",Ya,R(t.feelingsName),1)])]),p("div",Ga,R(t.feelingsDescription),1),p("div",Ja,[p("button",{onClick:r[0]||(r[0]=i=>e.value=!e.value),class:"btn bg-stone-200 hover:bg-stone-300 transition-colors dark:bg-slate-700 dark:text-slate-300/80 dark:hover:bg-slate-600 dark:hover:text-slate-100","aria-label":w(P)("shareFeelingsDialog.closeBtn")},R(w(P)("shareFeelingsDialog.closeBtn")),9,Ka)]),Ht(p("div",null,Za,512),[[re,!1]])]))}},tl={class:"flex flex-col min-h-screen"},el={key:0,class:"header"},nl={class:"flex-1"},rl={class:"mx-auto pt-4 md:pt-6 max-w-[90rem]"},il={class:"flex flex-col-reverse sm:flex-row justify-between mx-auto px-6 py-2 max-w-[90rem] text-sm"},ol={class:"flex"},sl={class:"mx-1"},al=["innerHTML"],ll={href:"https://romanpaprotsky.com/",class:"underline underline-offset-2 hover:text-blue-600 transition-colors",target:"_blank"},cl={__name:"AppLayout",setup(t){const e=k(""),n=k(""),r=k(""),i=k(!1);return Dn("openDialog",({id:s,description:a,name:l})=>{e.value=Ei[s],r.value=a,n.value=l,i.value=!0}),(s,a)=>(y(),A("div",tl,[s.$slots.header?(y(),A("header",el,[rt(s.$slots,"header",{},void 0,!0)])):Fn("",!0),p("main",nl,[(y(),dt(Mn,{to:"body"},[N(w(Ci),{modelValue:i.value,"onUpdate:modelValue":a[1]||(a[1]=l=>i.value=l)},{default:U(()=>[N(ja,{modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=l=>i.value=l),"feelings-name":n.value,"feelings-description":r.value,"icon-color":e.value},null,8,["modelValue","feelings-name","feelings-description","icon-color"])]),_:1},8,["modelValue"])])),p("div",rl,[rt(s.$slots,"main",{},void 0,!0)])]),p("footer",null,[p("div",il,[p("div",ol,[Nt(" © "+R(new Date().getFullYear())+" ",1),p("div",sl,[p("div",{innerHTML:w(P)("title")},null,8,al)])]),p("div",null,[Nt(R(w(P)("createdByDeveloper"))+" ",1),p("a",ll,R(w(P)("developer")),1)])])])]))}},gl=F(cl,[["__scopeId","data-v-958cd5ea"]]);export{P as $,gl as A,ti as B,Ci as D,dr as I,D as S,F as _,ei as a,dl as b,hl as c,Ei as d,at as i,Et as l,pl as m,ls as r,fl as u};
