diff --git a/jesse/static/200.html b/jesse/static/200.html deleted file mode 100644 index bcd4d20fb..000000000 --- a/jesse/static/200.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - -
- \ No newline at end of file diff --git a/jesse/static/404.html b/jesse/static/404.html deleted file mode 100644 index bcd4d20fb..000000000 --- a/jesse/static/404.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - -
- \ No newline at end of file diff --git a/jesse/static/_nuxt/2oJWbEOo.js b/jesse/static/_nuxt/2oJWbEOo.js deleted file mode 100644 index bec254074..000000000 --- a/jesse/static/_nuxt/2oJWbEOo.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#"},brackets:[["[","]"],["<",">"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}]},o={defaultToken:"",tokenPostfix:".pla",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"<",close:">",token:"delimiter.angle"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:[".i",".o",".mv",".ilb",".ob",".label",".type",".phase",".pair",".symbolic",".symbolic-output",".kiss",".p",".e",".end"],comment:/#.*$/,identifier:/[a-zA-Z]+[a-zA-Z0-9_\-]*/,plaContent:/[01\-~\|]+/,tokenizer:{root:[{include:"@whitespace"},[/@comment/,"comment"],[/\.([a-zA-Z_\-]+)/,{cases:{"@eos":{token:"keyword.$1"},"@keywords":{cases:{".type":{token:"keyword.$1",next:"@type"},"@default":{token:"keyword.$1",next:"@keywordArg"}}},"@default":{token:"keyword.$1"}}}],[/@identifier/,"identifier"],[/@plaContent/,"string"]],whitespace:[[/[ \t\r\n]+/,""]],type:[{include:"@whitespace"},[/\w+/,{token:"type",next:"@pop"}]],keywordArg:[[/[ \t\r\n]+/,{cases:{"@eos":{token:"",next:"@pop"},"@default":""}}],[/@comment/,"comment","@pop"],[/[<>()\[\]]/,{cases:{"@eos":{token:"@brackets",next:"@pop"},"@default":"@brackets"}}],[/\-?\d+/,{cases:{"@eos":{token:"number",next:"@pop"},"@default":"number"}}],[/@identifier/,{cases:{"@eos":{token:"identifier",next:"@pop"},"@default":"identifier"}}],[/[;=]/,{cases:{"@eos":{token:"delimiter",next:"@pop"},"@default":"delimiter"}}]]}};export{e as conf,o as language}; diff --git a/jesse/static/_nuxt/34H81O1V.js b/jesse/static/_nuxt/34H81O1V.js deleted file mode 100644 index ac9765de6..000000000 --- a/jesse/static/_nuxt/34H81O1V.js +++ /dev/null @@ -1 +0,0 @@ -import{a as r,u as s,o as i,c as u,b as e,t as o,d as c,w as d,e as l,f as p,p as h,g}from"./B0OuR9xi.js";const f=t=>(h("data-v-73a07988"),t=t(),g(),t),b={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},x=f(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),m={class:"max-w-520px text-center z-20"},y=["textContent"],k=["textContent"],_={class:"w-full flex items-center justify-center"},w={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return s({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(z,S)=>{const a=p;return i(),u("div",b,[x,e("div",m,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:o(t.statusCode)},null,8,y),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:o(t.description)},null,8,k),e("div",_,[c(a,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:d(()=>[l(o(t.backHome),1)]),_:1})])])])}}},C=r(w,[["__scopeId","data-v-73a07988"]]);export{C as default}; diff --git a/jesse/static/_nuxt/3TATJI7h.js b/jesse/static/_nuxt/3TATJI7h.js deleted file mode 100644 index 1bdf822ec..000000000 --- a/jesse/static/_nuxt/3TATJI7h.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},t={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false","yield","record","sealed","non-sealed","permits"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}};export{e as conf,t as language}; diff --git a/jesse/static/_nuxt/7e4W9AIf.js b/jesse/static/_nuxt/7e4W9AIf.js deleted file mode 100644 index c3a208602..000000000 --- a/jesse/static/_nuxt/7e4W9AIf.js +++ /dev/null @@ -1 +0,0 @@ -import{o as i,c as u,b as e,h as T,r as x,W as S,F as v,n as U,v as _,w as l,d as o,t as L,Z as c,D as n,a1 as w,a2 as $,a3 as N,a4 as R,G as j,I as V,a5 as z,x as D,M as O,f as E,a0 as F,y as I,A as W}from"./B0OuR9xi.js";import{a as A,r as G}from"./Bkg23qCy.js";function C(M,f){return i(),u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3"})])}const P={class:"mb-4"},Z={class:"hidden sm:block"},q={class:"relative rounded-lg shadow flex justify-between divide-x divide-gray-200 dark:divide-gray-700 [&>*]:divide-x [&>*]:divide-gray-200 [&>*]::dark:divide-gray-700","aria-label":"Tabs"},H={class:"w-[calc(100%-114px)] flex justify-between"},J={class:"whitespace-nowrap text-ellipsis"},K=["onClick"],Q=["onClick"],X={class:"absolute right-[1em] focus:outline-none"},Y={class:"absolute right-[1em] focus:outline-none"},ee={class:"absolute right-[1em] focus:outline-none"},te=e("span",{"aria-hidden":"true",class:"absolute inset-x-0 bottom-0 h-0.5 bg-transparent dark:bg-gray-600"},null,-1),re={class:"inline-block pt-5 px-4 pb-4"},se={class:"w-full flex justify-between items-center"},ae={class:"flex items-center"},oe={class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full sm:mx-0 sm:h-10 sm:w-10"},ne=e("h3",{class:"text-gray-600 dark:text-gray-200 font-semibold ml-2 text-xl"}," Upgrade your plan ",-1),ie=e("div",{class:"flex items-start justify-start"},[e("div",{class:"mt-3 sm:mt-0 sm:ml-4 text-left"},[e("div",{class:"my-4 ml-8"},[e("p",{class:"text-gray-500 dark:text-gray-300"}," The benchmark feature is only available for premium users. Please upgrade your plan to access this feature. ")])])],-1),le={class:"mt-5 sm:mt-4 flex justify-end"},ge=T({__name:"BacktestTabs",props:{tabs:{},currentTab:{}},emits:["close","cancel"],setup(M,{emit:f}){const d=x(!1),g=S(),b=x(g.params.id),h=f;function y(t){if(!t.form.routes.length)return"New Tab";if(t.results.exception.error&&t.results.executing)return"Error";const r=t.form.routes[0];let a="";return r.strategy&&(a+=`${r.strategy} • `),r.symbol&&(a+=`${r.symbol} • `),r.timeframe&&(a+=`${r.timeframe}`),a=a.endsWith(" • ")?a.slice(0,-3):a,t.results.executing?`${a} | ${t.results.progressbar.current}%`:t.results.showResults?`${a} | Results`:a}return(t,r)=>{const a=E,m=F,p=I,B=W;return i(),u(v,null,[e("div",P,[e("div",Z,[e("nav",q,[e("div",H,[(i(!0),u(v,null,U(t.tabs,(s,de)=>(i(),_(m,{key:s.id,popper:{arrow:!0},class:"relative w-full group min-w-0 overflow-hidden text-center flex items-center group pr-6",text:y(s),"open-delay":700,onMouseup:R(k=>h("close",s.id),["middle"])},{default:l(()=>[o(a,{to:`/backtest/${s.id}`,class:c([s.id===n(b)?"text-gray-900 dark:text-gray-100 font-bold ":"text-gray-500 dark:text-gray-300 hover:text-gray-700 font-medium ","py-3 px-4 inline-block select-none cursor-pointer focus:outline-none w-full text-xs bg-gray-50 dark:bg-backdrop-dark"])},{default:l(()=>[e("span",J,L(y(s)),1),e("span",{"aria-hidden":"true",class:c([s.id===n(b)&&Object.keys(t.tabs).length>1?"bg-indigo-400":"bg-transparent dark:bg-gray-600","absolute inset-x-0 bottom-0 h-0.5"])},null,2)]),_:2},1032,["to","class"]),s.results.executing&&s.results.exception.error==""?w((i(),u("button",{key:0,class:"absolute right-[0.5em] focus:outline-none",onClick:k=>h("cancel",s.id)},[o(n(A),{class:"h-5 w-5 text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 hover:bg-gray-200 bg-gray-100 dark:bg-gray-700 rounded-full","aria-hidden":"true"})],8,K)),[[$,Object.keys(t.tabs).length>1]]):w((i(),u("button",{key:1,class:"absolute right-[0.5em] focus:outline-none",onClick:k=>h("close",s.id)},[o(n(N),{class:"h-5 w-5 text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 hover:bg-gray-200 bg-gray-100 dark:bg-gray-700 rounded-full","aria-hidden":"true"})],8,Q)),[[$,Object.keys(t.tabs).length>1]])]),_:2},1032,["text","onMouseup"]))),128))]),o(m,{text:"Benchmark",popper:{arrow:!0}},{default:l(()=>[("useMainStore"in t?t.useMainStore:n(j))().plan==="free"||("useMainStore"in t?t.useMainStore:n(j))().plan==="guest"?(i(),u("button",{key:0,class:"select-none cursor-pointer text-gray-400 dark:text-gray-100 hover:text-gray-600 focus:outline-none group relative w-14 overflow-hidden bg-gray-50 dark:bg-backdrop-dark py-3 px-4 font-medium hover:bg-white dark:hover:bg-gray-800 flex items-center justify-center",onClick:r[0]||(r[0]=s=>d.value=!0)},[e("div",X,[o(n(C),{class:"h-6 w-6 rounded-full","aria-hidden":"true"})]),e("span",{"aria-hidden":"true",class:c(["absolute inset-x-0 bottom-0 h-0.5 bg-transparent dark:bg-gray-600",[n(g).path==="/backtest/benchmark"?"bg-indigo-400":"bg-transparent dark:bg-gray-600","absolute inset-x-0 bottom-0 h-0.5"]])},null,2)])):(i(),_(a,{key:1,class:"select-none cursor-pointer text-gray-400 dark:text-gray-100 hover:text-gray-600 focus:outline-none group relative w-14 overflow-hidden bg-gray-50 dark:bg-backdrop-dark py-3 px-4 font-medium hover:bg-white dark:hover:bg-gray-800 flex items-center justify-center",href:"/backtest/benchmark"},{default:l(()=>[e("button",Y,[o(n(C),{class:"h-6 w-6 rounded-full","aria-hidden":"true"})]),e("span",{"aria-hidden":"true",class:c(["absolute inset-x-0 bottom-0 h-0.5 bg-transparent dark:bg-gray-600",[n(g).path==="/backtest/benchmark"?"bg-indigo-400":"bg-transparent dark:bg-gray-600","absolute inset-x-0 bottom-0 h-0.5"]])},null,2)]),_:1}))]),_:1}),o(m,{text:"New Tab",popper:{arrow:!0}},{default:l(()=>[e("div",{class:"select-none cursor-pointer text-gray-400 dark:text-gray-100 hover:text-gray-600 focus:outline-none group relative w-14 overflow-hidden bg-gray-50 dark:bg-backdrop-dark py-3 px-4 font-medium hover:bg-white dark:hover:bg-gray-800 flex items-center justify-center",onClick:r[1]||(r[1]=s=>n(V)().addTab(t.currentTab))},[e("button",ee,[o(n(G),{class:"h-6 w-6 rounded-full","aria-hidden":"true"})]),te])]),_:1})])])]),o(B,{modelValue:n(d),"onUpdate:modelValue":r[4]||(r[4]=s=>O(d)?d.value=s:null)},{default:l(()=>[e("div",re,[e("div",se,[e("div",ae,[e("div",oe,[o(n(z),{class:"text-amber-400 h-7 w-7","aria-hidden":"true"})]),ne]),o(p,{icon:"i-heroicons-x-mark",variant:"link",color:"gray",class:"ml-2 p-2 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-full text-gray-400 hover:text-gray-500 dark:hover:text-gray-300 focus:outline-none",onClick:r[2]||(r[2]=s=>d.value=!1)})]),ie,e("div",le,[o(p,{variant:"link",color:"gray",class:"mr-4",size:"lg",label:"Close",onClick:r[3]||(r[3]=s=>d.value=!1)}),o(a,{to:"https://jesse.trade/pricing",target:"_blank"},{default:l(()=>[o(p,{variant:"solid",color:"primary","trailing-icon":"i-heroicons-arrow-right",class:"mr-4",size:"lg",label:"Upgrade"})]),_:1}),D(t.$slots,"default")])])]),_:3},8,["modelValue"])],64)}}});export{ge as _}; diff --git a/jesse/static/_nuxt/AfT-3tsD.js b/jesse/static/_nuxt/AfT-3tsD.js deleted file mode 100644 index 4c43d092c..000000000 --- a/jesse/static/_nuxt/AfT-3tsD.js +++ /dev/null @@ -1 +0,0 @@ -import{ae as Ne,h as Y,r as O,j as I,af as fe,ag as d,ah as ge,ai as W,aj as De,ak as Re,al as te,am as He,an as ze,ao as ye,ap as Ge,aq as Ke,ar as qe,as as Je,at as L,au as me,F as Q,av as X,l as ne,m as Ie,aw as Qe,ax as Be,ay as de,az as ce,aA as z,aB as V,aC as We,aD as ke,aE as be,aF as H,aG as x,aH as pe,a6 as Fe,a7 as ae,a as Ae,a8 as Oe,a9 as oe,aI as ve,aJ as Ye,k as we,aK as Ze,aL as le,o as h,v as N,w as U,d as T,Z as E,x as q,b as P,aM as Pe,ad as M,c as D,E as _,q as Xe,aN as et,aO as Ue,y as he,aP as je,aQ as tt,aR as se,n as re,t as J,a4 as at,e as ot,aS as Ce,J as nt,G as lt,N as K,T as st,z as rt,a1 as $e,a2 as Ee,D as ie,a0 as it}from"./B0OuR9xi.js";import{_ as ut}from"./BmrREbtp.js";import{_ as _e}from"./DP_FvpL9.js";const dt={wrapper:"relative overflow-x-auto",base:"min-w-full table-fixed",divide:"divide-y divide-gray-300 dark:divide-gray-700",thead:"relative",tbody:"divide-y divide-gray-200 dark:divide-gray-800",tr:{base:"",selected:"bg-gray-50 dark:bg-gray-800/50",active:"hover:bg-gray-50 dark:hover:bg-gray-800/50 cursor-pointer"},th:{base:"text-left rtl:text-right",padding:"px-4 py-3.5",color:"text-gray-900 dark:text-white",font:"font-semibold",size:"text-sm"},td:{base:"whitespace-nowrap",padding:"px-4 py-4",color:"text-gray-500 dark:text-gray-400",font:"",size:"text-sm"},checkbox:{padding:"ps-4"},loadingState:{wrapper:"flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",label:"text-sm text-center text-gray-900 dark:text-white",icon:"w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4 animate-spin"},emptyState:{wrapper:"flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",label:"text-sm text-center text-gray-900 dark:text-white",icon:"w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4"},progress:{wrapper:"absolute inset-x-0 -bottom-[0.5px] p-0"},default:{sortAscIcon:"i-heroicons-bars-arrow-up-20-solid",sortDescIcon:"i-heroicons-bars-arrow-down-20-solid",sortButton:{icon:"i-heroicons-arrows-up-down-20-solid",trailing:!0,square:!0,color:"gray",variant:"ghost",class:"-m-1.5"},checkbox:{color:"primary"},progress:{color:"primary",animation:"carousel"},loadingState:{icon:"i-heroicons-arrow-path-20-solid",label:"Loading..."},emptyState:{icon:"i-heroicons-circle-stack-20-solid",label:"No items."}}},ct={wrapper:"relative",container:"z-50 group",trigger:"inline-flex w-full",width:"",background:"bg-white dark:bg-gray-900",shadow:"shadow-lg",rounded:"rounded-md",ring:"ring-1 ring-gray-200 dark:ring-gray-800",base:"overflow-hidden focus:outline-none relative",transition:{enterActiveClass:"transition ease-out duration-200",enterFromClass:"opacity-0 translate-y-1",enterToClass:"opacity-100 translate-y-0",leaveActiveClass:"transition ease-in duration-150",leaveFromClass:"opacity-100 translate-y-0",leaveToClass:"opacity-0 translate-y-1"},overlay:{base:"fixed inset-0 transition-opacity z-50",background:"bg-gray-200/75 dark:bg-gray-800/75",transition:{enterActiveClass:"ease-out duration-200",enterFromClass:"opacity-0",enterToClass:"opacity-100",leaveActiveClass:"ease-in duration-150",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"}},popper:{strategy:"fixed"},default:{openDelay:0,closeDelay:0},arrow:Ne};var pt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(pt||{});let Me=Symbol("PopoverContext");function Se(e){let i=be(Me,null);if(i===null){let w=new Error(`<${e} /> is missing a parent <${Le.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(w,Se),w}return i}let vt=Symbol("PopoverGroupContext");function Ve(){return be(vt,null)}let xe=Symbol("PopoverPanelContext");function ft(){return be(xe,null)}let Le=Y({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:i,attrs:w,expose:B}){var C;let $=O(null);B({el:$,$el:$});let t=O(1),n=O(null),v=O(null),f=O(null),s=O(null),m=I(()=>fe($)),S=I(()=>{var a,r;if(!d(n)||!d(s))return!1;for(let G of document.querySelectorAll("body > *"))if(Number(G==null?void 0:G.contains(d(n)))^Number(G==null?void 0:G.contains(d(s))))return!0;let p=ge(),u=p.indexOf(d(n)),A=(u+p.length-1)%p.length,j=(u+1)%p.length,Z=p[A],ee=p[j];return!((a=d(s))!=null&&a.contains(Z))&&!((r=d(s))!=null&&r.contains(ee))}),k={popoverState:t,buttonId:O(null),panelId:O(null),panel:s,button:n,isPortalled:S,beforePanelSentinel:v,afterPanelSentinel:f,togglePopover(){t.value=W(t.value,{0:1,1:0})},closePopover(){t.value!==1&&(t.value=1)},close(a){k.closePopover();let r=a?a instanceof HTMLElement?a:a.value instanceof HTMLElement?d(a):d(k.button):d(k.button);r==null||r.focus()}};De(Me,k),Re(I(()=>W(t.value,{0:te.Open,1:te.Closed})));let F={buttonId:k.buttonId,panelId:k.panelId,close(){k.closePopover()}},l=Ve(),c=l==null?void 0:l.registerPopover,[g,y]=He(),b=ze({mainTreeNodeRef:l==null?void 0:l.mainTreeNodeRef,portals:g,defaultContainers:[n,s]});function o(){var a,r,p,u;return(u=l==null?void 0:l.isFocusWithinPopoverGroup())!=null?u:((a=m.value)==null?void 0:a.activeElement)&&(((r=d(n))==null?void 0:r.contains(m.value.activeElement))||((p=d(s))==null?void 0:p.contains(m.value.activeElement)))}return ye(()=>c==null?void 0:c(F)),Ge((C=m.value)==null?void 0:C.defaultView,"focus",a=>{var r,p;a.target!==window&&a.target instanceof HTMLElement&&t.value===0&&(o()||n&&s&&(b.contains(a.target)||(r=d(k.beforePanelSentinel))!=null&&r.contains(a.target)||(p=d(k.afterPanelSentinel))!=null&&p.contains(a.target)||k.closePopover()))},!0),Ke(b.resolveContainers,(a,r)=>{var p;k.closePopover(),qe(r,Je.Loose)||(a.preventDefault(),(p=d(n))==null||p.focus())},I(()=>t.value===0)),()=>{let a={open:t.value===0,close:k.close};return L(Q,[L(y,{},()=>me({theirProps:{...e,...w},ourProps:{ref:$},slot:a,slots:i,attrs:w,name:"Popover"})),L(b.MainTreeNode)])}}}),gt=Y({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:i,slots:w,expose:B}){var C;let $=(C=e.id)!=null?C:`headlessui-popover-button-${X()}`,t=Se("PopoverButton"),n=I(()=>fe(t.button));B({el:t.button,$el:t.button}),ne(()=>{t.buttonId.value=$}),Ie(()=>{t.buttonId.value=null});let v=Ve(),f=v==null?void 0:v.closeOthers,s=ft(),m=I(()=>s===null?!1:s.value===t.panelId.value),S=O(null),k=`headlessui-focus-sentinel-${X()}`;m.value||ye(()=>{t.button.value=d(S)});let F=Qe(I(()=>({as:e.as,type:i.type})),S);function l(a){var r,p,u,A,j;if(m.value){if(t.popoverState.value===1)return;switch(a.key){case H.Space:case H.Enter:a.preventDefault(),(p=(r=a.target).click)==null||p.call(r),t.closePopover(),(u=d(t.button))==null||u.focus();break}}else switch(a.key){case H.Space:case H.Enter:a.preventDefault(),a.stopPropagation(),t.popoverState.value===1&&(f==null||f(t.buttonId.value)),t.togglePopover();break;case H.Escape:if(t.popoverState.value!==0)return f==null?void 0:f(t.buttonId.value);if(!d(t.button)||(A=n.value)!=null&&A.activeElement&&!((j=d(t.button))!=null&&j.contains(n.value.activeElement)))return;a.preventDefault(),a.stopPropagation(),t.closePopover();break}}function c(a){m.value||a.key===H.Space&&a.preventDefault()}function g(a){var r,p;e.disabled||(m.value?(t.closePopover(),(r=d(t.button))==null||r.focus()):(a.preventDefault(),a.stopPropagation(),t.popoverState.value===1&&(f==null||f(t.buttonId.value)),t.togglePopover(),(p=d(t.button))==null||p.focus()))}function y(a){a.preventDefault(),a.stopPropagation()}let b=Be();function o(){let a=d(t.panel);if(!a)return;function r(){W(b.value,{[x.Forwards]:()=>z(a,V.First),[x.Backwards]:()=>z(a,V.Last)})===pe.Error&&z(ge().filter(p=>p.dataset.headlessuiFocusGuard!=="true"),W(b.value,{[x.Forwards]:V.Next,[x.Backwards]:V.Previous}),{relativeTo:d(t.button)})}r()}return()=>{let a=t.popoverState.value===0,r={open:a},{...p}=e,u=m.value?{ref:S,type:F.value,onKeydown:l,onClick:g}:{ref:S,id:$,type:F.value,"aria-expanded":t.popoverState.value===0,"aria-controls":d(t.panel)?t.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:l,onKeyup:c,onClick:g,onMousedown:y};return L(Q,[me({ourProps:u,theirProps:{...i,...p},slot:r,attrs:i,slots:w,name:"PopoverButton"}),a&&!m.value&&t.isPortalled.value&&L(de,{id:k,features:ce.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:o})])}}}),yt=Y({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:i,slots:w,expose:B}){var C;let $=(C=e.id)!=null?C:`headlessui-popover-panel-${X()}`,{focus:t}=e,n=Se("PopoverPanel"),v=I(()=>fe(n.panel)),f=`headlessui-focus-sentinel-before-${X()}`,s=`headlessui-focus-sentinel-after-${X()}`;B({el:n.panel,$el:n.panel}),ne(()=>{n.panelId.value=$}),Ie(()=>{n.panelId.value=null}),De(xe,n.panelId),ye(()=>{var y,b;if(!t||n.popoverState.value!==0||!n.panel)return;let o=(y=v.value)==null?void 0:y.activeElement;(b=d(n.panel))!=null&&b.contains(o)||z(d(n.panel),V.First)});let m=We(),S=I(()=>m!==null?(m.value&te.Open)===te.Open:n.popoverState.value===0);function k(y){var b,o;switch(y.key){case H.Escape:if(n.popoverState.value!==0||!d(n.panel)||v.value&&!((b=d(n.panel))!=null&&b.contains(v.value.activeElement)))return;y.preventDefault(),y.stopPropagation(),n.closePopover(),(o=d(n.button))==null||o.focus();break}}function F(y){var b,o,a,r,p;let u=y.relatedTarget;u&&d(n.panel)&&((b=d(n.panel))!=null&&b.contains(u)||(n.closePopover(),((a=(o=d(n.beforePanelSentinel))==null?void 0:o.contains)!=null&&a.call(o,u)||(p=(r=d(n.afterPanelSentinel))==null?void 0:r.contains)!=null&&p.call(r,u))&&u.focus({preventScroll:!0})))}let l=Be();function c(){let y=d(n.panel);if(!y)return;function b(){W(l.value,{[x.Forwards]:()=>{var o;z(y,V.First)===pe.Error&&((o=d(n.afterPanelSentinel))==null||o.focus())},[x.Backwards]:()=>{var o;(o=d(n.button))==null||o.focus({preventScroll:!0})}})}b()}function g(){let y=d(n.panel);if(!y)return;function b(){W(l.value,{[x.Forwards]:()=>{let o=d(n.button),a=d(n.panel);if(!o)return;let r=ge(),p=r.indexOf(o),u=r.slice(0,p+1),A=[...r.slice(p+1),...u];for(let j of A.slice())if(j.dataset.headlessuiFocusGuard==="true"||a!=null&&a.contains(j)){let Z=A.indexOf(j);Z!==-1&&A.splice(Z,1)}z(A,V.First,{sorted:!1})},[x.Backwards]:()=>{var o;z(y,V.Previous)===pe.Error&&((o=d(n.button))==null||o.focus())}})}b()}return()=>{let y={open:n.popoverState.value===0,close:n.close},{focus:b,...o}=e,a={ref:n.panel,id:$,onKeydown:k,onFocusout:t&&n.popoverState.value===0?F:void 0,tabIndex:-1};return me({ourProps:a,theirProps:{...i,...o},attrs:i,slot:y,slots:{...w,default:(...r)=>{var p;return[L(Q,[S.value&&n.isPortalled.value&&L(de,{id:f,ref:n.beforePanelSentinel,features:ce.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:c}),(p=w.default)==null?void 0:p.call(w,...r),S.value&&n.isPortalled.value&&L(de,{id:s,ref:n.afterPanelSentinel,features:ce.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:g})])]}},features:ke.RenderStrategy|ke.Static,visible:S.value,name:"PopoverPanel"})}}});const ue=Fe(ae.ui.strategy,ae.ui.popover,ct),mt=Y({components:{HPopover:Le,HPopoverButton:gt,HPopoverPanel:yt},inheritAttrs:!1,props:{mode:{type:String,default:"click",validator:e=>["click","hover"].includes(e)},open:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},openDelay:{type:Number,default:()=>ue.default.openDelay},closeDelay:{type:Number,default:()=>ue.default.closeDelay},overlay:{type:Boolean,default:!1},popper:{type:Object,default:()=>({})},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["update:open"],setup(e,{emit:i}){const{ui:w,attrs:B}=Oe("popover",oe(e,"ui"),ue,oe(e,"class")),C=I(()=>ve(e.mode==="hover"?{offsetDistance:0}:{},e.popper,w.value.popper)),[$,t]=Ye(C.value),n=O(null),v=O(null);let f=null,s=null;ne(()=>{var g,y;const l=(g=n.value)==null?void 0:g.$.provides;if(!l)return;const c=Object.getOwnPropertySymbols(l);v.value=c.length&&l[c[0]],e.open&&((y=v.value)==null||y.togglePopover())});const m=I(()=>{var y,b,o;if(e.mode!=="hover")return{};const l=((y=e.popper)==null?void 0:y.offsetDistance)||((b=w.value.popper)==null?void 0:b.offsetDistance)||8,c=(o=C.value.placement)==null?void 0:o.split("-")[0],g=`${l}px`;return c==="top"||c==="bottom"?{paddingTop:g,paddingBottom:g}:c==="left"||c==="right"?{paddingLeft:g,paddingRight:g}:{paddingTop:g,paddingBottom:g,paddingLeft:g,paddingRight:g}});function S(l){!l.cancelable||!v.value||(v.value.popoverState===0?v.value.closePopover():v.value.togglePopover())}function k(){e.mode!=="hover"||!v.value||(s&&(clearTimeout(s),s=null),v.value.popoverState!==0&&(f=f||setTimeout(()=>{v.value.togglePopover&&v.value.togglePopover(),f=null},e.openDelay)))}function F(){e.mode!=="hover"||!v.value||(f&&(clearTimeout(f),f=null),v.value.popoverState!==1&&(s=s||setTimeout(()=>{v.value.closePopover&&v.value.closePopover(),s=null},e.closeDelay)))}return we(()=>e.open,(l,c)=>{v.value&&(c===void 0||l===c||(l?v.value.popoverState=0:v.value.closePopover()))}),we(()=>{var l;return(l=v.value)==null?void 0:l.popoverState},(l,c)=>{c===void 0||l===c||i("update:open",l===0)}),Ze(()=>et("$dcv2Y3vSTA")),{ui:w,attrs:B,popover:n,popper:C,trigger:$,container:t,containerStyle:m,onTouchStart:S,onMouseEnter:k,onMouseLeave:F}}}),bt=["disabled"];function ht(e,i,w,B,C,$){const t=le("HPopoverButton"),n=le("HPopoverPanel"),v=le("HPopover");return h(),N(v,M({ref:"popover",class:e.ui.wrapper},e.attrs,{onMouseleave:e.onMouseLeave}),{default:U(({open:f,close:s})=>[T(t,{ref:"trigger",as:"div",disabled:e.disabled,class:E(e.ui.trigger),role:"button",onMouseenter:e.onMouseEnter,onTouchstartPassive:e.onTouchStart},{default:U(()=>[q(e.$slots,"default",{open:f,close:s},()=>[P("button",{disabled:e.disabled}," Open ",8,bt)])]),_:2},1032,["disabled","class","onMouseenter","onTouchstartPassive"]),e.overlay?(h(),N(Pe,M({key:0,appear:""},e.ui.overlay.transition),{default:U(()=>[f?(h(),D("div",{key:0,class:E([e.ui.overlay.base,e.ui.overlay.background])},null,2)):_("",!0)]),_:2},1040)):_("",!0),f?(h(),D("div",{key:1,ref:"container",class:E([e.ui.container,e.ui.width]),style:Xe(e.containerStyle),onMouseenter:i[0]||(i[0]=(...m)=>e.onMouseEnter&&e.onMouseEnter(...m))},[T(Pe,M({appear:""},e.ui.transition),{default:U(()=>[P("div",null,[e.popper.arrow?(h(),D("div",{key:0,"data-popper-arrow":"",class:E(Object.values(e.ui.arrow))},null,2)):_("",!0),T(n,{class:E([e.ui.base,e.ui.background,e.ui.ring,e.ui.rounded,e.ui.shadow]),static:""},{default:U(()=>[q(e.$slots,"panel",{open:f,close:s})]),_:2},1032,["class"])])]),_:2},1040)],38)):_("",!0)]),_:3},16,["class","onMouseleave"])}const St=Ae(mt,[["render",ht]]);function kt(e){return e?e[0].toUpperCase()+e.slice(1):""}const R=Fe(ae.ui.strategy,ae.ui.table,dt);function wt(e,i){return e===i}function Te(e,i,w){return e===i?0:w==="asc"?ei?-1:1}const Pt=Y({components:{UIcon:Ue,UButton:he,UProgress:_e,UCheckbox:je},inheritAttrs:!1,props:{modelValue:{type:Array,default:null},by:{type:[String,Function],default:()=>wt},rows:{type:Array,default:()=>[]},columns:{type:Array,default:null},columnAttribute:{type:String,default:"label"},sort:{type:Object,default:()=>({})},sortMode:{type:String,default:"auto"},sortButton:{type:Object,default:()=>R.default.sortButton},sortAscIcon:{type:String,default:()=>R.default.sortAscIcon},sortDescIcon:{type:String,default:()=>R.default.sortDescIcon},loading:{type:Boolean,default:!1},loadingState:{type:Object,default:()=>R.default.loadingState},emptyState:{type:Object,default:()=>R.default.emptyState},progress:{type:Object,default:()=>R.default.progress},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["update:modelValue","update:sort"],setup(e,{emit:i,attrs:w}){const{ui:B,attrs:C}=Oe("table",oe(e,"ui"),R,oe(e,"class")),$=I(()=>e.columns??Object.keys(e.rows[0]??{}).map(o=>({key:o,label:kt(o),sortable:!1,class:void 0,sort:Te}))),t=tt(e,"sort",i,{passive:!0,defaultValue:ve({},e.sort,{column:null,direction:"asc"})}),n={column:t.value.column,direction:null},v=I(()=>{var r;if(!((r=t.value)!=null&&r.column)||e.sortMode==="manual")return e.rows;const{column:o,direction:a}=t.value;return e.rows.slice().sort((p,u)=>{var ee;const A=se(p,o),j=se(u,o);return(((ee=$.value.find(G=>G.key===o))==null?void 0:ee.sort)??Te)(A,j,a)})}),f=I({get(){return e.modelValue},set(o){i("update:modelValue",o)}}),s=I(()=>f.value&&f.value.length>0&&f.value.lengthe.emptyState===null?null:{...B.value.default.emptyState,...e.emptyState}),S=I(()=>e.loadingState===null?null:{...B.value.default.loadingState,...e.loadingState});function k(o,a){if(typeof e.by=="string"){const r=e.by;return(o==null?void 0:o[r])===(a==null?void 0:a[r])}return e.by(o,a)}function F(o){return e.modelValue?f.value.some(a=>k(Ce(a),Ce(o))):!1}function l(o){if(t.value.column===o.key){const a=!o.direction||o.direction==="asc"?"desc":"asc";t.value.direction===a?t.value=ve({},n,{column:null,direction:"asc"}):t.value={column:t.value.column,direction:t.value.direction==="asc"?"desc":"asc"}}else t.value={column:o.key,direction:o.direction||"asc"}}function c(o){w.onSelect&&w.onSelect(o)}function g(){e.rows.forEach(o=>{F(o)||f.value.push(o)})}function y(o){o?g():f.value=[]}function b(o,a,r=""){return se(o,a,r)}return{ui:B,attrs:C,sort:t,columns:$,rows:v,selected:f,indeterminate:s,emptyState:m,loadingState:S,isSelected:F,onSort:l,onSelect:c,onChange:y,getRowData:b}}}),Ct={key:1},$t={key:0},Et={key:0},Tt=["colspan"],Dt={key:1},It=["colspan"],Bt=["onClick"];function Ft(e,i,w,B,C,$){const t=je,n=he,v=_e,f=Ue;return h(),D("div",M({class:e.ui.wrapper},e.attrs),[P("table",{class:E([e.ui.base,e.ui.divide])},[P("thead",{class:E(e.ui.thead)},[P("tr",{class:E(e.ui.tr.base)},[e.modelValue?(h(),D("th",{key:0,scope:"col",class:E(e.ui.checkbox.padding)},[T(t,M({"model-value":e.indeterminate||e.selected.length===e.rows.length,indeterminate:e.indeterminate},e.ui.default.checkbox,{"aria-label":"Select all",onChange:e.onChange}),null,16,["model-value","indeterminate","onChange"])],2)):_("",!0),(h(!0),D(Q,null,re(e.columns,(s,m)=>(h(),D("th",{key:m,scope:"col",class:E([e.ui.th.base,e.ui.th.padding,e.ui.th.color,e.ui.th.font,e.ui.th.size,s.class])},[q(e.$slots,`${s.key}-header`,{column:s,sort:e.sort,onSort:e.onSort},()=>[s.sortable?(h(),N(n,M({key:0},{...e.ui.default.sortButton||{},...e.sortButton},{icon:!e.sort.column||e.sort.column!==s.key?e.sortButton.icon||e.ui.default.sortButton.icon:e.sort.direction==="asc"?e.sortAscIcon:e.sortDescIcon,label:s[e.columnAttribute],onClick:S=>e.onSort(s)}),null,16,["icon","label","onClick"])):(h(),D("span",Ct,J(s[e.columnAttribute]),1))])],2))),128))],2),e.loading&&e.progress?(h(),D("tr",$t,[P("td",{colspan:0,class:E(e.ui.progress.wrapper)},[T(v,M({...e.ui.default.progress||{},...e.progress},{size:"2xs"}),null,16)],2)])):_("",!0)],2),P("tbody",{class:E(e.ui.tbody)},[e.loadingState&&e.loading&&!e.rows.length?(h(),D("tr",Et,[P("td",{colspan:e.columns.length+(e.modelValue?1:0)},[q(e.$slots,"loading-state",{},()=>[P("div",{class:E(e.ui.loadingState.wrapper)},[e.loadingState.icon?(h(),N(f,{key:0,name:e.loadingState.icon,class:E(e.ui.loadingState.icon),"aria-hidden":"true"},null,8,["name","class"])):_("",!0),P("p",{class:E(e.ui.loadingState.label)},J(e.loadingState.label),3)],2)])],8,Tt)])):e.emptyState&&!e.rows.length?(h(),D("tr",Dt,[P("td",{colspan:e.columns.length+(e.modelValue?1:0)},[q(e.$slots,"empty-state",{},()=>[P("div",{class:E(e.ui.emptyState.wrapper)},[e.emptyState.icon?(h(),N(f,{key:0,name:e.emptyState.icon,class:E(e.ui.emptyState.icon),"aria-hidden":"true"},null,8,["name","class"])):_("",!0),P("p",{class:E(e.ui.emptyState.label)},J(e.emptyState.label),3)],2)])],8,It)])):(h(!0),D(Q,{key:2},re(e.rows,(s,m)=>(h(),D("tr",{key:m,class:E([e.ui.tr.base,e.isSelected(s)&&e.ui.tr.selected,e.$attrs.onSelect&&e.ui.tr.active,s==null?void 0:s.class]),onClick:()=>e.onSelect(s)},[e.modelValue?(h(),D("td",{key:0,class:E(e.ui.checkbox.padding)},[T(t,M({modelValue:e.selected,"onUpdate:modelValue":i[0]||(i[0]=S=>e.selected=S),value:s},e.ui.default.checkbox,{"aria-label":"Select row",onClick:i[1]||(i[1]=at(()=>{},["stop"]))}),null,16,["modelValue","value"])],2)):_("",!0),(h(!0),D(Q,null,re(e.columns,(S,k)=>{var F;return h(),D("td",{key:k,class:E([e.ui.td.base,e.ui.td.padding,e.ui.td.color,e.ui.td.font,e.ui.td.size,(F=s[S.key])==null?void 0:F.class])},[q(e.$slots,`${S.key}-data`,{column:S,row:s,index:m,getRowData:l=>e.getRowData(s,S.key,l)},()=>[ot(J(e.getRowData(s,S.key)),1)])],2)}),128))],10,Bt))),128))],2)],2)],16)}const At=Ae(Pt,[["render",Ft]]),Ot={class:"container my-8 pb-24"},Ut={class:"flex justify-between items-center mb-6"},jt={class:"flex gap-4 mb-6"},_t={class:"flex flex-col items-center justify-center py-12 gap-4"},Mt={key:0},Vt=P("span",{class:"text-gray-500 dark:text-gray-400 mb-4 block"}," Click the button below to fetch existing candles from the database ",-1),xt={class:"flex flex-col items-center gap-2"},Lt=P("p",{class:"text-sm text-gray-500 dark:text-gray-400 mt-2"}," Note: This process might take a few minutes depending on the database size ",-1),Nt={key:1},Rt=P("span",{class:"text-gray-500 dark:text-gray-400"}," No candles found matching your filters ",-1),Ht=[Rt],zt={class:"flex items-center gap-2"},Gt={class:"p-4 space-y-4"},Kt={class:"flex justify-end gap-2"},Wt=Y({__name:"manage",setup(e){const i=nt(),w=lt(),B=O(!1),C=O(!1),$=O(new Set),t=O({exchange:"",symbol:""}),n=[{key:"exchange",label:"Exchange"},{key:"symbol",label:"Symbol"},{key:"start_date",label:"Start Date"},{key:"end_date",label:"End Date"},{key:"actions",label:"Actions"}],v=I(()=>{let l=i.existingCandles;return t.value.exchange&&(l=l.filter(c=>c.exchange.toLowerCase().includes(t.value.exchange.toLowerCase()))),t.value.symbol&&(l=l.filter(c=>c.symbol.toLowerCase().includes(t.value.symbol.toLowerCase()))),l}),f=I(()=>B.value||C.value),s=l=>`${l.exchange}-${l.symbol}`;async function m(){K("success","Fetching latest candle details. This process might take from a few seconds up to a few minutes depending on the database size."),C.value=!0;try{await i.fetchExistingCandles()}finally{C.value=!1,K("success","Candles information updated successfully")}}async function S(l){const c=s(l);$.value.add(c);try{await i.deleteCandles(l.exchange,l.symbol),K("success","Candles deleted successfully")}catch{K("error","Failed to delete candles")}finally{$.value.delete(c)}}async function k(l){try{await i.updateCandles(l.exchange,l.symbol,l.start_date),K("success",`Started updating candles for ${l.symbol} on ${l.exchange}`)}catch{K("error","Failed to start candle update")}}const F=l=>w.backtestingExchangeNames.includes(l);return ne(async()=>{if(!i.existingCandles.length){B.value=!0;try{await i.fetchExistingCandles()}finally{B.value=!1}}}),(l,c)=>{const g=he,y=st,b=ut,o=it,a=St,r=At,p=rt;return h(),D("div",Ot,[P("div",Ut,[T(g,{class:"shadow-sm",icon:"i-heroicons-arrow-left",variant:"outline",to:"/candles",label:"Back"}),T(g,{class:"shadow-sm",icon:"i-heroicons-arrow-path",loading:C.value,label:"Refresh",onClick:m},null,8,["loading"])]),P("div",jt,[T(y,{modelValue:t.value.exchange,"onUpdate:modelValue":c[1]||(c[1]=u=>t.value.exchange=u),class:"w-64",icon:"i-heroicons-magnifying-glass",placeholder:"Filter by Exchange",ui:{icon:{trailing:{pointer:""}}}},{trailing:U(()=>[$e(T(g,{color:"gray",variant:"link",icon:"i-heroicons-x-mark-20-solid",padded:!1,onClick:c[0]||(c[0]=u=>t.value.exchange="")},null,512),[[Ee,t.value.exchange!==""]])]),_:1},8,["modelValue"]),T(y,{modelValue:t.value.symbol,"onUpdate:modelValue":c[3]||(c[3]=u=>t.value.symbol=u),icon:"i-heroicons-magnifying-glass",placeholder:"Filter by Symbol",class:"w-64",ui:{icon:{trailing:{pointer:""}}}},{trailing:U(()=>[$e(T(g,{color:"gray",variant:"link",icon:"i-heroicons-x-mark-20-solid",padded:!1,onClick:c[2]||(c[2]=u=>t.value.symbol="")},null,512),[[Ee,t.value.symbol!==""]])]),_:1},8,["modelValue"])]),B.value?(h(),N(b,{key:0,icon:"i-heroicons-information-circle",color:"gray",title:"Loading candles...",description:"This process might take from a few seconds up to a few minutes.",class:"mb-6"})):_("",!0),T(p,null,{default:U(()=>[T(r,{rows:v.value,columns:n,loading:f.value,"loading-state":{icon:"i-heroicons-arrow-path-20-solid",label:"Loading candles..."},progress:{color:"primary",animation:"carousel"}},{"empty-state":U(()=>[P("div",_t,[ie(i).existingCandles.length===0?(h(),D("div",Mt,[Vt,P("div",xt,[T(g,{icon:"i-heroicons-arrow-path",label:"Fetch Candles",onClick:m}),Lt])])):(h(),D("div",Nt,Ht))])]),"actions-data":U(({row:u})=>[P("div",zt,[F(u.exchange)?(h(),N(g,{key:1,color:"teal",variant:"soft",icon:"i-heroicons-arrow-path",size:"xs",label:"Update",loading:ie(i).isSymbolUpdating(u.exchange,u.symbol),disabled:!F(u.exchange),onClick:A=>k(u)},null,8,["loading","disabled","onClick"])):(h(),N(o,{key:0,text:"This exchange doesn't support backtesting"},{default:U(()=>[T(g,{color:"teal",variant:"soft",icon:"i-heroicons-arrow-path",size:"xs",label:"Update",loading:ie(i).isSymbolUpdating(u.exchange,u.symbol),disabled:!F(u.exchange),onClick:A=>k(u)},null,8,["loading","disabled","onClick"])]),_:2},1024)),T(a,{popper:{placement:"bottom-end"}},{panel:U(({close:A})=>[P("div",Gt,[P("p",null,'Are you sure you want to delete all candles for "'+J(u.symbol)+'" on "'+J(u.exchange)+'"?',1),P("div",Kt,[T(g,{color:"gray",variant:"soft",label:"Cancel",onClick:A},null,8,["onClick"]),T(g,{color:"red",variant:"soft",label:"Delete",onClick:()=>{S(u),A()}},null,8,["onClick"])])])]),default:U(()=>[T(g,{color:"red",variant:"soft",icon:"i-heroicons-trash",size:"xs",loading:$.value.has(s(u)),label:"Delete"},null,8,["loading"])]),_:2},1024)])]),_:1},8,["rows","loading","loading-state"])]),_:1})])}}});export{Wt as default}; diff --git a/jesse/static/_nuxt/B-lZjTdr.js b/jesse/static/_nuxt/B-lZjTdr.js deleted file mode 100644 index 1c918416d..000000000 --- a/jesse/static/_nuxt/B-lZjTdr.js +++ /dev/null @@ -1,303 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var g={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]};function e(i){let o=[];const a=i.split(/\t+|\r+|\n+| +/);for(let r=0;r0&&o.push(a[r]);return o}var s=e("true false"),c=e(` - alias - break - case - const - const_assert - continue - continuing - default - diagnostic - discard - else - enable - fn - for - if - let - loop - override - requires - return - struct - switch - var - while - `),m=e(` - NULL - Self - abstract - active - alignas - alignof - as - asm - asm_fragment - async - attribute - auto - await - become - binding_array - cast - catch - class - co_await - co_return - co_yield - coherent - column_major - common - compile - compile_fragment - concept - const_cast - consteval - constexpr - constinit - crate - debugger - decltype - delete - demote - demote_to_helper - do - dynamic_cast - enum - explicit - export - extends - extern - external - fallthrough - filter - final - finally - friend - from - fxgroup - get - goto - groupshared - highp - impl - implements - import - inline - instanceof - interface - layout - lowp - macro - macro_rules - match - mediump - meta - mod - module - move - mut - mutable - namespace - new - nil - noexcept - noinline - nointerpolation - noperspective - null - nullptr - of - operator - package - packoffset - partition - pass - patch - pixelfragment - precise - precision - premerge - priv - protected - pub - public - readonly - ref - regardless - register - reinterpret_cast - require - resource - restrict - self - set - shared - sizeof - smooth - snorm - static - static_assert - static_cast - std - subroutine - super - target - template - this - thread_local - throw - trait - try - type - typedef - typeid - typename - typeof - union - unless - unorm - unsafe - unsized - use - using - varying - virtual - volatile - wgsl - where - with - writeonly - yield - `),l=e(` - read write read_write - function private workgroup uniform storage - perspective linear flat - center centroid sample - vertex_index instance_index position front_facing frag_depth - local_invocation_id local_invocation_index - global_invocation_id workgroup_id num_workgroups - sample_index sample_mask - rgba8unorm - rgba8snorm - rgba8uint - rgba8sint - rgba16uint - rgba16sint - rgba16float - r32uint - r32sint - r32float - rg32uint - rg32sint - rg32float - rgba32uint - rgba32sint - rgba32float - bgra8unorm -`),u=e(` - bool - f16 - f32 - i32 - sampler sampler_comparison - texture_depth_2d - texture_depth_2d_array - texture_depth_cube - texture_depth_cube_array - texture_depth_multisampled_2d - texture_external - texture_external - u32 - `),p=e(` - array - atomic - mat2x2 - mat2x3 - mat2x4 - mat3x2 - mat3x3 - mat3x4 - mat4x2 - mat4x3 - mat4x4 - ptr - texture_1d - texture_2d - texture_2d_array - texture_3d - texture_cube - texture_cube_array - texture_multisampled_2d - texture_storage_1d - texture_storage_2d - texture_storage_2d_array - texture_storage_3d - vec2 - vec3 - vec4 - `),d=e(` - vec2i vec3i vec4i - vec2u vec3u vec4u - vec2f vec3f vec4f - vec2h vec3h vec4h - mat2x2f mat2x3f mat2x4f - mat3x2f mat3x3f mat3x4f - mat4x2f mat4x3f mat4x4f - mat2x2h mat2x3h mat2x4h - mat3x2h mat3x3h mat3x4h - mat4x2h mat4x3h mat4x4h - `),x=e(` - bitcast all any select arrayLength abs acos acosh asin asinh atan atanh atan2 - ceil clamp cos cosh countLeadingZeros countOneBits countTrailingZeros cross - degrees determinant distance dot exp exp2 extractBits faceForward firstLeadingBit - firstTrailingBit floor fma fract frexp inverseBits inverseSqrt ldexp length - log log2 max min mix modf normalize pow quantizeToF16 radians reflect refract - reverseBits round saturate sign sin sinh smoothstep sqrt step tan tanh transpose - trunc dpdx dpdxCoarse dpdxFine dpdy dpdyCoarse dpdyFine fwidth fwidthCoarse fwidthFine - textureDimensions textureGather textureGatherCompare textureLoad textureNumLayers - textureNumLevels textureNumSamples textureSample textureSampleBias textureSampleCompare - textureSampleCompareLevel textureSampleGrad textureSampleLevel textureSampleBaseClampToEdge - textureStore atomicLoad atomicStore atomicAdd atomicSub atomicMax atomicMin - atomicAnd atomicOr atomicXor atomicExchange atomicCompareExchangeWeak pack4x8snorm - pack4x8unorm pack2x16snorm pack2x16unorm pack2x16float unpack4x8snorm unpack4x8unorm - unpack2x16snorm unpack2x16unorm unpack2x16float storageBarrier workgroupBarrier - workgroupUniformLoad -`),f=e(` - & - && - -> - / - = - == - != - > - >= - < - <= - % - - - -- - + - ++ - | - || - * - << - >> - += - -= - *= - /= - %= - &= - |= - ^= - >>= - <<= - `),_=/enable|requires|diagnostic/,n=new RegExp("[_\\p{XID_Start}]\\p{XID_Continue}*","u"),t="variable.predefined",h={tokenPostfix:".wgsl",defaultToken:"invalid",unicode:!0,atoms:s,keywords:c,reserved:m,predeclared_enums:l,predeclared_types:u,predeclared_type_generators:p,predeclared_type_aliases:d,predeclared_intrinsics:x,operators:f,symbols:/[!%&*+\-\.\/:;<=>^|_~,]+/,tokenizer:{root:[[_,"keyword","@directive"],[n,{cases:{"@atoms":t,"@keywords":"keyword","@reserved":"invalid","@predeclared_enums":t,"@predeclared_types":t,"@predeclared_type_generators":t,"@predeclared_type_aliases":t,"@predeclared_intrinsics":t,"@default":"identifier"}}],{include:"@commentOrSpace"},{include:"@numbers"},[/[{}()\[\]]/,"@brackets"],["@","annotation","@attribute"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/./,"invalid"]],commentOrSpace:[[/\s+/,"white"],[/\/\*/,"comment","@blockComment"],[/\/\/.*$/,"comment"]],blockComment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],attribute:[{include:"@commentOrSpace"},[/\w+/,"annotation","@pop"]],directive:[{include:"@commentOrSpace"},[/[()]/,"@brackets"],[/,/,"delimiter"],[n,"meta.content"],[/;/,"delimiter","@pop"]],numbers:[[/0[fh]/,"number.float"],[/[1-9][0-9]*[fh]/,"number.float"],[/[0-9]*\.[0-9]+([eE][+-]?[0-9]+)?[fh]?/,"number.float"],[/[0-9]+\.[0-9]*([eE][+-]?[0-9]+)?[fh]?/,"number.float"],[/[0-9]+[eE][+-]?[0-9]+[fh]?/,"number.float"],[/0[xX][0-9a-fA-F]*\.[0-9a-fA-F]+(?:[pP][+-]?[0-9]+[fh]?)?/,"number.hex"],[/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*(?:[pP][+-]?[0-9]+[fh]?)?/,"number.hex"],[/0[xX][0-9a-fA-F]+[pP][+-]?[0-9]+[fh]?/,"number.hex"],[/0[xX][0-9a-fA-F]+[iu]?/,"number.hex"],[/[1-9][0-9]*[iu]?/,"number"],[/0[iu]?/,"number"]]}};export{g as conf,h as language}; diff --git a/jesse/static/_nuxt/B0OuR9xi.js b/jesse/static/_nuxt/B0OuR9xi.js deleted file mode 100644 index ac45e88b9..000000000 --- a/jesse/static/_nuxt/B0OuR9xi.js +++ /dev/null @@ -1,81 +0,0 @@ -const __vite__fileDeps=["./DZcjhpyd.js","./7e4W9AIf.js","./Bkg23qCy.js","./DTMGP6xx.js","./DkjJWMTY.js","./BmrREbtp.js","./C4g72jM9.js","./Sidebar.CrjfLt5S.css","./B_ioTAU5.js","./O7c8SeZr.js","./Cv6xefjx.js","./BsI-LjDw.js","./DpeTf5TE.js","./DP_FvpL9.js","./Progress.IEMpyWWa.css","./AfT-3tsD.js","./BiSP3ZHa.js","./BdlyblZp.js","./DGVnIMXm.js","./C1ds8lgE.js","./BuNeS589.js","./Dhn74Fye.js","./C40CRuom.js","./ejURIsN9.js","./CAxE-8yN.js","./DdPjcvU7.js","./IconCSS.Z2BAHt_z.css","./D_EmF2pO.js","./editor.DOtah1uZ.css","./34H81O1V.js","./error-404.JekaaCis.css","./FDtTPsqQ.js","./error-500.CNP9nqm1.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -/** -* @vue/shared v3.4.23 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function gg(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const Ot={},Ns=[],yr=()=>{},l3=()=>!1,Bl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),mg=e=>e.startsWith("onUpdate:"),Xt=Object.assign,vg=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},u3=Object.prototype.hasOwnProperty,ct=(e,t)=>u3.call(e,t),Ae=Array.isArray,zs=e=>fa(e)==="[object Map]",sf=e=>fa(e)==="[object Set]",my=e=>fa(e)==="[object Date]",c3=e=>fa(e)==="[object RegExp]",Ne=e=>typeof e=="function",zt=e=>typeof e=="string",Eo=e=>typeof e=="symbol",Ct=e=>e!==null&&typeof e=="object",yg=e=>(Ct(e)||Ne(e))&&Ne(e.then)&&Ne(e.catch),V1=Object.prototype.toString,fa=e=>V1.call(e),f3=e=>fa(e).slice(8,-1),U1=e=>fa(e)==="[object Object]",bg=e=>zt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vs=gg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),af=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},d3=/-(\w)/g,Pr=af(e=>e.replace(d3,(t,n)=>n?n.toUpperCase():"")),p3=/\B([A-Z])/g,as=af(e=>e.replace(p3,"-$1").toLowerCase()),lf=af(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hd=af(e=>e?`on${lf(e)}`:""),to=(e,t)=>!Object.is(e,t),Us=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Gp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H1=e=>{const t=zt(e)?Number(e):NaN;return isNaN(t)?e:t};let vy;const W1=()=>vy||(vy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ji(e){if(Ae(e)){const t={};for(let n=0;n{if(n){const r=n.split(g3);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function le(e){let t="";if(zt(e))t=e;else if(Ae(e))for(let n=0;nuf(n,t))}const et=e=>zt(e)?e:e==null?"":Ae(e)||Ct(e)&&(e.toString===V1||!Ne(e.toString))?JSON.stringify(e,G1,2):String(e),G1=(e,t)=>t&&t.__v_isRef?G1(e,t.value):zs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],i)=>(n[Wd(r,i)+" =>"]=o,n),{})}:sf(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Wd(n))}:Eo(t)?Wd(t):Ct(t)&&!Ae(t)&&!U1(t)?String(t):t,Wd=(e,t="")=>{var n;return Eo(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.4.23 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Xn;class Z1{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Xn,!t&&Xn&&(this.index=(Xn.scopes||(Xn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Xn;try{return Xn=this,t()}finally{Xn=n}}}on(){Xn=this}off(){Xn=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),gi()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=oi,n=Hi;try{return oi=!0,Hi=this,this._runnings++,yy(this),this.fn()}finally{by(this),this._runnings--,Hi=n,oi=t}}stop(){var t;this.active&&(yy(this),by(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function x3(e){return e.value}function yy(e){e._trackId++,e._depsLength=0}function by(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},Oc=new WeakMap,Wi=Symbol(""),Jp=Symbol("");function zn(e,t,n){if(oi&&Hi){let r=Oc.get(e);r||Oc.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=ew(()=>r.delete(n))),X1(Hi,o)}}function So(e,t,n,r,o,i){const a=Oc.get(e);if(!a)return;let u=[];if(t==="clear")u=[...a.values()];else if(n==="length"&&Ae(e)){const c=Number(r);a.forEach((f,d)=>{(d==="length"||!Eo(d)&&d>=c)&&u.push(f)})}else switch(n!==void 0&&u.push(a.get(n)),t){case"add":Ae(e)?bg(n)&&u.push(a.get("length")):(u.push(a.get(Wi)),zs(e)&&u.push(a.get(Jp)));break;case"delete":Ae(e)||(u.push(a.get(Wi)),zs(e)&&u.push(a.get(Jp)));break;case"set":zs(e)&&u.push(a.get(Wi));break}xg();for(const c of u)c&&Q1(c,4);kg()}function k3(e,t){var n;return(n=Oc.get(e))==null?void 0:n.get(t)}const S3=gg("__proto__,__v_isRef,__isVue"),tw=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Eo)),_y=E3();function E3(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=We(this);for(let i=0,a=this.length;i{e[t]=function(...n){hi(),xg();const r=We(this)[t].apply(this,n);return kg(),gi(),r}}),e}function C3(e){Eo(e)||(e=String(e));const t=We(this);return zn(t,"has",e),t.hasOwnProperty(e)}class nw{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(o?i?N3:sw:i?iw:ow).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Ae(t);if(!o){if(a&&ct(_y,n))return Reflect.get(_y,n,r);if(n==="hasOwnProperty")return C3}const u=Reflect.get(t,n,r);return(Eo(n)?tw.has(n):S3(n))||(o||zn(t,"get",n),i)?u:dt(u)?a&&bg(n)?u:u.value:Ct(u)?o?Cg(u):In(u):u}}class rw extends nw{constructor(t=!1){super(!1,t)}set(t,n,r,o){let i=t[n];if(!this._isShallow){const c=Js(i);if(!Lc(r)&&!Js(r)&&(i=We(i),r=We(r)),!Ae(t)&&dt(i)&&!dt(r))return c?!1:(i.value=r,!0)}const a=Ae(t)&&bg(n)?Number(n)e,cf=e=>Reflect.getPrototypeOf(e);function Zu(e,t,n=!1,r=!1){e=e.__v_raw;const o=We(e),i=We(t);n||(to(t,i)&&zn(o,"get",t),zn(o,"get",i));const{has:a}=cf(o),u=r?Sg:n?$g:hl;if(a.call(o,t))return u(e.get(t));if(a.call(o,i))return u(e.get(i));e!==o&&e.get(t)}function Yu(e,t=!1){const n=this.__v_raw,r=We(n),o=We(e);return t||(to(e,o)&&zn(r,"has",e),zn(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Ju(e,t=!1){return e=e.__v_raw,!t&&zn(We(e),"iterate",Wi),Reflect.get(e,"size",e)}function wy(e){e=We(e);const t=We(this);return cf(t).has.call(t,e)||(t.add(e),So(t,"add",e,e)),this}function xy(e,t){t=We(t);const n=We(this),{has:r,get:o}=cf(n);let i=r.call(n,e);i||(e=We(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?to(t,a)&&So(n,"set",e,t):So(n,"add",e,t),this}function ky(e){const t=We(this),{has:n,get:r}=cf(t);let o=n.call(t,e);o||(e=We(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&So(t,"delete",e,void 0),i}function Sy(){const e=We(this),t=e.size!==0,n=e.clear();return t&&So(e,"clear",void 0,void 0),n}function Xu(e,t){return function(r,o){const i=this,a=i.__v_raw,u=We(a),c=t?Sg:e?$g:hl;return!e&&zn(u,"iterate",Wi),a.forEach((f,d)=>r.call(o,c(f),c(d),i))}}function Qu(e,t,n){return function(...r){const o=this.__v_raw,i=We(o),a=zs(i),u=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,f=o[e](...r),d=n?Sg:t?$g:hl;return!t&&zn(i,"iterate",c?Jp:Wi),{next(){const{value:g,done:h}=f.next();return h?{value:g,done:h}:{value:u?[d(g[0]),d(g[1])]:d(g),done:h}},[Symbol.iterator](){return this}}}}function No(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function R3(){const e={get(i){return Zu(this,i)},get size(){return Ju(this)},has:Yu,add:wy,set:xy,delete:ky,clear:Sy,forEach:Xu(!1,!1)},t={get(i){return Zu(this,i,!1,!0)},get size(){return Ju(this)},has:Yu,add:wy,set:xy,delete:ky,clear:Sy,forEach:Xu(!1,!0)},n={get(i){return Zu(this,i,!0)},get size(){return Ju(this,!0)},has(i){return Yu.call(this,i,!0)},add:No("add"),set:No("set"),delete:No("delete"),clear:No("clear"),forEach:Xu(!0,!1)},r={get(i){return Zu(this,i,!0,!0)},get size(){return Ju(this,!0)},has(i){return Yu.call(this,i,!0)},add:No("add"),set:No("set"),delete:No("delete"),clear:No("clear"),forEach:Xu(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Qu(i,!1,!1),n[i]=Qu(i,!0,!1),t[i]=Qu(i,!1,!0),r[i]=Qu(i,!0,!0)}),[e,n,t,r]}const[O3,L3,P3,M3]=R3();function Eg(e,t){const n=t?e?M3:P3:e?L3:O3;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(ct(n,o)&&o in r?n:r,o,i)}const D3={get:Eg(!1,!1)},B3={get:Eg(!1,!0)},F3={get:Eg(!0,!1)},ow=new WeakMap,iw=new WeakMap,sw=new WeakMap,N3=new WeakMap;function z3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function V3(e){return e.__v_skip||!Object.isExtensible(e)?0:z3(f3(e))}function In(e){return Js(e)?e:Tg(e,!1,A3,D3,ow)}function Fl(e){return Tg(e,!1,I3,B3,iw)}function Cg(e){return Tg(e,!0,$3,F3,sw)}function Tg(e,t,n,r,o){if(!Ct(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=V3(e);if(a===0)return e;const u=new Proxy(e,a===2?r:n);return o.set(e,u),u}function Ki(e){return Js(e)?Ki(e.__v_raw):!!(e&&e.__v_isReactive)}function Js(e){return!!(e&&e.__v_isReadonly)}function Lc(e){return!!(e&&e.__v_isShallow)}function aw(e){return e?!!e.__v_raw:!1}function We(e){const t=e&&e.__v_raw;return t?We(t):e}function Ag(e){return Object.isExtensible(e)&&j1(e,"__v_skip",!0),e}const hl=e=>Ct(e)?In(e):e,$g=e=>Ct(e)?Cg(e):e;class lw{constructor(t,n,r,o){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new wg(()=>t(this._value),()=>js(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=We(this);return(!t._cacheable||t.effect.dirty)&&to(t._value,t._value=t.effect.run())&&js(t,4),Ig(t),t.effect._dirtyLevel>=2&&js(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function U3(e,t,n=!1){let r,o;const i=Ne(e);return i?(r=e,o=yr):(r=e.get,o=e.set),new lw(r,o,i||!o,n)}function Ig(e){var t;oi&&Hi&&(e=We(e),X1(Hi,(t=e.dep)!=null?t:e.dep=ew(()=>e.dep=void 0,e instanceof lw?e:void 0)))}function js(e,t=4,n){e=We(e);const r=e.dep;r&&Q1(r,t)}function dt(e){return!!(e&&e.__v_isRef===!0)}function ee(e){return uw(e,!1)}function no(e){return uw(e,!0)}function uw(e,t){return dt(e)?e:new j3(e,t)}class j3{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:We(t),this._value=n?t:hl(t)}get value(){return Ig(this),this._value}set value(t){const n=this.__v_isShallow||Lc(t)||Js(t);t=n?t:We(t),to(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:hl(t),js(this,4))}}function WK(e){js(e,4)}function R(e){return dt(e)?e.value:e}function Zr(e){return Ne(e)?e():R(e)}const H3={get:(e,t,n)=>R(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return dt(o)&&!dt(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function cw(e){return Ki(e)?e:new Proxy(e,H3)}class W3{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Ig(this),()=>js(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function fw(e){return new W3(e)}function K3(e){const t=Ae(e)?new Array(e.length):{};for(const n in e)t[n]=dw(e,n);return t}class q3{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return k3(We(this._object),this._key)}}class G3{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function $t(e,t,n){return dt(e)?e:Ne(e)?new G3(e):Ct(e)&&arguments.length>1?dw(e,t,n):ee(e)}function dw(e,t,n){const r=e[t];return dt(r)?r:new q3(e,t,n)}/** -* @vue/runtime-core v3.4.23 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function ii(e,t,n,r){try{return r?e(...r):e()}catch(o){da(o,t,n)}}function _r(e,t,n,r){if(Ne(e)){const o=ii(e,t,n,r);return o&&yg(o)&&o.catch(i=>{da(i,t,n)}),o}if(Ae(e)){const o=[];for(let i=0;i>>1,o=bn[r],i=ml(o);iYr&&bn.splice(t,1)}function Qp(e){Ae(e)?Hs.push(...e):(!Zo||!Zo.includes(e,e.allowRecurse?Mi+1:Mi))&&Hs.push(e),hw()}function Ey(e,t,n=gl?Yr+1:0){for(;nml(n)-ml(r));if(Hs.length=0,Zo){Zo.push(...t);return}for(Zo=t,Mi=0;Mie.id==null?1/0:e.id,X3=(e,t)=>{const n=ml(e)-ml(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function gw(e){Xp=!1,gl=!0,bn.sort(X3);try{for(Yr=0;Yrzt(m)?m.trim():m)),g&&(o=n.map(Gp))}let u,c=r[u=Hd(t)]||r[u=Hd(Pr(t))];!c&&i&&(c=r[u=Hd(as(t))]),c&&_r(c,e,6,o);const f=r[u+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,_r(f,e,6,o)}}function mw(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},u=!1;if(!Ne(e)){const c=f=>{const d=mw(f,t,!0);d&&(u=!0,Xt(a,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!u?(Ct(e)&&r.set(e,null),null):(Ae(i)?i.forEach(c=>a[c]=null):Xt(a,i),Ct(e)&&r.set(e,a),a)}function df(e,t){return!e||!Bl(t)?!1:(t=t.slice(2).replace(/Once$/,""),ct(e,t[0].toLowerCase()+t.slice(1))||ct(e,as(t))||ct(e,t))}let Jt=null,pf=null;function Mc(e){const t=Jt;return Jt=e,pf=e&&e.type.__scopeId||null,t}function e4(e){pf=e}function t4(){pf=null}function X(e,t=Jt,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Ny(-1);const i=Mc(t);let a;try{a=e(...o)}finally{Mc(i),r._d&&Ny(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Kd(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:u,attrs:c,emit:f,render:d,renderCache:g,data:h,setupState:m,ctx:y,inheritAttrs:x}=e;let _,k;const S=Mc(e);try{if(n.shapeFlag&4){const E=o||r,A=E;_=mr(d.call(A,E,g,i,m,h,y)),k=c}else{const E=t;_=mr(E.length>1?E(i,{attrs:c,slots:u,emit:f}):E(i,null)),k=t.props?c:r4(c)}}catch(E){nl.length=0,da(E,e,1),_=P(An)}let w=_;if(k&&x!==!1){const E=Object.keys(k),{shapeFlag:A}=w;E.length&&A&7&&(a&&E.some(mg)&&(k=o4(k,a)),w=xr(w,k))}return n.dirs&&(w=xr(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),_=w,Mc(S),_}function n4(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||Bl(n))&&((t||(t={}))[n]=e[n]);return t},o4=(e,t)=>{const n={};for(const r in e)(!mg(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function i4(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:u,patchFlag:c}=t,f=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Cy(r,a,f):!!a;if(c&8){const d=t.dynamicProps;for(let g=0;ge.__isSuspense;let eh=0;const s4={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,a,u,c,f){if(e==null)a4(t,n,r,o,i,a,u,c,f);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}l4(e,t,n,r,o,a,u,c,f)}},hydrate:u4,create:Mg,normalize:c4},Pg=s4;function vl(e,t){const n=e.props&&e.props[t];Ne(n)&&n()}function a4(e,t,n,r,o,i,a,u,c){const{p:f,o:{createElement:d}}=c,g=d("div"),h=e.suspense=Mg(e,o,r,t,g,n,i,a,u,c);f(null,h.pendingBranch=e.ssContent,g,null,r,h,i,a),h.deps>0?(vl(e,"onPending"),vl(e,"onFallback"),f(null,e.ssFallback,t,n,r,null,i,a),Ws(h,e.ssFallback)):h.resolve(!1,!0)}function l4(e,t,n,r,o,i,a,u,{p:c,um:f,o:{createElement:d}}){const g=t.suspense=e.suspense;g.vnode=t,t.el=e.el;const h=t.ssContent,m=t.ssFallback,{activeBranch:y,pendingBranch:x,isInFallback:_,isHydrating:k}=g;if(x)g.pendingBranch=h,Rr(h,x)?(c(x,h,g.hiddenContainer,null,o,g,i,a,u),g.deps<=0?g.resolve():_&&(k||(c(y,m,n,r,o,null,i,a,u),Ws(g,m)))):(g.pendingId=eh++,k?(g.isHydrating=!1,g.activeBranch=x):f(x,o,g),g.deps=0,g.effects.length=0,g.hiddenContainer=d("div"),_?(c(null,h,g.hiddenContainer,null,o,g,i,a,u),g.deps<=0?g.resolve():(c(y,m,n,r,o,null,i,a,u),Ws(g,m))):y&&Rr(h,y)?(c(y,h,n,r,o,g,i,a,u),g.resolve(!0)):(c(null,h,g.hiddenContainer,null,o,g,i,a,u),g.deps<=0&&g.resolve()));else if(y&&Rr(h,y))c(y,h,n,r,o,g,i,a,u),Ws(g,h);else if(vl(t,"onPending"),g.pendingBranch=h,h.shapeFlag&512?g.pendingId=h.component.suspenseId:g.pendingId=eh++,c(null,h,g.hiddenContainer,null,o,g,i,a,u),g.deps<=0)g.resolve();else{const{timeout:S,pendingId:w}=g;S>0?setTimeout(()=>{g.pendingId===w&&g.fallback(m)},S):S===0&&g.fallback(m)}}function Mg(e,t,n,r,o,i,a,u,c,f,d=!1){const{p:g,m:h,um:m,n:y,o:{parentNode:x,remove:_}}=f;let k;const S=f4(e);S&&t!=null&&t.pendingBranch&&(k=t.pendingId,t.deps++);const w=e.props?H1(e.props.timeout):void 0,E=i,A={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:o,deps:0,pendingId:eh++,timeout:typeof w=="number"?w:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve($=!1,D=!1){const{vnode:B,activeBranch:V,pendingBranch:N,pendingId:W,effects:K,parentComponent:fe,container:ae}=A;let ye=!1;A.isHydrating?A.isHydrating=!1:$||(ye=V&&N.transition&&N.transition.mode==="out-in",ye&&(V.transition.afterLeave=()=>{W===A.pendingId&&(h(N,ae,i===E?y(V):i,0),Qp(K))}),V&&(x(V.el)!==A.hiddenContainer&&(i=y(V)),m(V,fe,A,!0)),ye||h(N,ae,i,0)),Ws(A,N),A.pendingBranch=null,A.isInFallback=!1;let re=A.parent,ke=!1;for(;re;){if(re.pendingBranch){re.effects.push(...K),ke=!0;break}re=re.parent}!ke&&!ye&&Qp(K),A.effects=[],S&&t&&t.pendingBranch&&k===t.pendingId&&(t.deps--,t.deps===0&&!D&&t.resolve()),vl(B,"onResolve")},fallback($){if(!A.pendingBranch)return;const{vnode:D,activeBranch:B,parentComponent:V,container:N,namespace:W}=A;vl(D,"onFallback");const K=y(B),fe=()=>{A.isInFallback&&(g(null,$,N,K,V,null,W,u,c),Ws(A,$))},ae=$.transition&&$.transition.mode==="out-in";ae&&(B.transition.afterLeave=fe),A.isInFallback=!0,m(B,V,null,!0),ae||fe()},move($,D,B){A.activeBranch&&h(A.activeBranch,$,D,B),A.container=$},next(){return A.activeBranch&&y(A.activeBranch)},registerDep($,D){const B=!!A.pendingBranch;B&&A.deps++;const V=$.vnode.el;$.asyncDep.catch(N=>{da(N,$,0)}).then(N=>{if($.isUnmounted||A.isUnmounted||A.pendingId!==$.suspenseId)return;$.asyncResolved=!0;const{vnode:W}=$;fh($,N,!1),V&&(W.el=V);const K=!V&&$.subTree.el;D($,W,x(V||$.subTree.el),V?null:y($.subTree),A,a,c),K&&_(K),Og($,W.el),B&&--A.deps===0&&A.resolve()})},unmount($,D){A.isUnmounted=!0,A.activeBranch&&m(A.activeBranch,n,$,D),A.pendingBranch&&m(A.pendingBranch,n,$,D)}};return A}function u4(e,t,n,r,o,i,a,u,c){const f=t.suspense=Mg(t,r,n,e.parentNode,document.createElement("div"),null,o,i,a,u,!0),d=c(e,f.pendingBranch=t.ssContent,n,f,i,a);return f.deps===0&&f.resolve(!1,!0),d}function c4(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Ay(r?n.default:n),e.ssFallback=r?Ay(n.fallback):P(An)}function Ay(e){let t;if(Ne(e)){const n=Qs&&e._c;n&&(e._d=!1,U()),e=e(),n&&(e._d=!0,t=br,qw())}return Ae(e)&&(e=n4(e)),e=mr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function _w(e,t){t&&t.pendingBranch?Ae(e)?t.effects.push(...e):t.effects.push(e):Qp(e)}function Ws(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,Og(r,o))}function f4(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const d4=Symbol.for("v-scx"),p4=()=>Ge(d4);function rn(e,t){return Nl(e,null,t)}function h4(e,t){return Nl(e,null,{flush:"post"})}function g4(e,t){return Nl(e,null,{flush:"sync"})}const ec={};function ht(e,t,n){return Nl(e,t,n)}function Nl(e,t,{immediate:n,deep:r,flush:o,once:i,onTrack:a,onTrigger:u}=Ot){if(t&&i){const $=t;t=(...D)=>{$(...D),A()}}const c=nn,f=$=>r===!0?$:Fi($,r===!1?1:void 0);let d,g=!1,h=!1;if(dt(e)?(d=()=>e.value,g=Lc(e)):Ki(e)?(d=()=>f(e),g=!0):Ae(e)?(h=!0,g=e.some($=>Ki($)||Lc($)),d=()=>e.map($=>{if(dt($))return $.value;if(Ki($))return f($);if(Ne($))return ii($,c,2)})):Ne(e)?t?d=()=>ii(e,c,2):d=()=>(m&&m(),_r(e,c,3,[y])):d=yr,t&&r){const $=d;d=()=>Fi($())}let m,y=$=>{m=w.onStop=()=>{ii($,c,4),m=w.onStop=void 0}},x;if(jl)if(y=yr,t?n&&_r(t,c,3,[d(),h?[]:void 0,y]):d(),o==="sync"){const $=p4();x=$.__watcherHandles||($.__watcherHandles=[])}else return yr;let _=h?new Array(e.length).fill(ec):ec;const k=()=>{if(!(!w.active||!w.dirty))if(t){const $=w.run();(r||g||(h?$.some((D,B)=>to(D,_[B])):to($,_)))&&(m&&m(),_r(t,c,3,[$,_===ec?void 0:h&&_[0]===ec?[]:_,y]),_=$)}else w.run()};k.allowRecurse=!!t;let S;o==="sync"?S=k:o==="post"?S=()=>hn(k,c&&c.suspense):(k.pre=!0,c&&(k.id=c.uid),S=()=>ff(k));const w=new wg(d,yr,S),E=pi(),A=()=>{w.stop(),E&&vg(E.effects,w)};return t?n?k():_=w.run():o==="post"?hn(w.run.bind(w),c&&c.suspense):w.run(),x&&x.push(A),A}function m4(e,t,n){const r=this.proxy,o=zt(e)?e.includes(".")?ww(r,e):()=>r[e]:e.bind(r,r);let i;Ne(t)?i=t:(i=t.handler,n=t);const a=Qi(this),u=Nl(o,i.bind(r),n);return a(),u}function ww(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),dt(e))Fi(e.value,t,n,r);else if(Ae(e))for(let o=0;o{Fi(o,t,n,r)});else if(U1(e))for(const o in e)Fi(e[o],t,n,r);return e}function xw(e,t){if(Jt===null)return e;const n=gf(Jt)||Jt.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0}),Vl(()=>{e.isUnmounting=!0}),e}const gr=[Function,Array],kw={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:gr,onEnter:gr,onAfterEnter:gr,onEnterCancelled:gr,onBeforeLeave:gr,onLeave:gr,onAfterLeave:gr,onLeaveCancelled:gr,onBeforeAppear:gr,onAppear:gr,onAfterAppear:gr,onAppearCancelled:gr},y4={name:"BaseTransition",props:kw,setup(e,{slots:t}){const n=Un(),r=v4();return()=>{const o=t.default&&Ew(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const h of o)if(h.type!==An){i=h;break}}const a=We(e),{mode:u}=a;if(r.isLeaving)return qd(i);const c=$y(i);if(!c)return qd(i);const f=th(c,a,r,n);Dc(c,f);const d=n.subTree,g=d&&$y(d);if(g&&g.type!==An&&!Rr(c,g)){const h=th(g,a,r,n);if(Dc(g,h),u==="out-in")return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},qd(i);u==="in-out"&&c.type!==An&&(h.delayLeave=(m,y,x)=>{const _=Sw(r,g);_[String(g.key)]=g,m[Yo]=()=>{y(),m[Yo]=void 0,delete f.delayedLeave},f.delayedLeave=x})}return i}}},b4=y4;function Sw(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function th(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:f,onEnterCancelled:d,onBeforeLeave:g,onLeave:h,onAfterLeave:m,onLeaveCancelled:y,onBeforeAppear:x,onAppear:_,onAfterAppear:k,onAppearCancelled:S}=t,w=String(e.key),E=Sw(n,e),A=(B,V)=>{B&&_r(B,r,9,V)},$=(B,V)=>{const N=V[1];A(B,V),Ae(B)?B.every(W=>W.length<=1)&&N():B.length<=1&&N()},D={mode:i,persisted:a,beforeEnter(B){let V=u;if(!n.isMounted)if(o)V=x||u;else return;B[Yo]&&B[Yo](!0);const N=E[w];N&&Rr(e,N)&&N.el[Yo]&&N.el[Yo](),A(V,[B])},enter(B){let V=c,N=f,W=d;if(!n.isMounted)if(o)V=_||c,N=k||f,W=S||d;else return;let K=!1;const fe=B[tc]=ae=>{K||(K=!0,ae?A(W,[B]):A(N,[B]),D.delayedLeave&&D.delayedLeave(),B[tc]=void 0)};V?$(V,[B,fe]):fe()},leave(B,V){const N=String(e.key);if(B[tc]&&B[tc](!0),n.isUnmounting)return V();A(g,[B]);let W=!1;const K=B[Yo]=fe=>{W||(W=!0,V(),fe?A(y,[B]):A(m,[B]),B[Yo]=void 0,E[N]===e&&delete E[N])};E[N]=e,h?$(h,[B,K]):K()},clone(B){return th(B,t,n,r)}};return D}function qd(e){if(zl(e))return e=xr(e),e.children=null,e}function $y(e){return zl(e)?e.children?e.children[0]:void 0:e}function Dc(e,t){e.shapeFlag&6&&e.component?Dc(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ew(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Bc(e){Ne(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:a=!0,onError:u}=e;let c=null,f,d=0;const g=()=>(d++,c=null,h()),h=()=>{let m;return c||(m=c=t().catch(y=>{if(y=y instanceof Error?y:new Error(String(y)),u)return new Promise((x,_)=>{u(y,()=>x(g()),()=>_(y),d+1)});throw y}).then(y=>m!==c&&c?c:(y&&(y.__esModule||y[Symbol.toStringTag]==="Module")&&(y=y.default),f=y,y)))};return xe({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return f},setup(){const m=nn;if(f)return()=>Gd(f,m);const y=S=>{c=null,da(S,m,13,!r)};if(a&&m.suspense||jl)return h().then(S=>()=>Gd(S,m)).catch(S=>(y(S),()=>r?P(r,{error:S}):null));const x=ee(!1),_=ee(),k=ee(!!o);return o&&setTimeout(()=>{k.value=!1},o),i!=null&&setTimeout(()=>{if(!x.value&&!_.value){const S=new Error(`Async component timed out after ${i}ms.`);y(S),_.value=S}},i),h().then(()=>{x.value=!0,m.parent&&zl(m.parent.vnode)&&(m.parent.effect.dirty=!0,ff(m.parent.update))}).catch(S=>{y(S),_.value=S}),()=>{if(x.value&&f)return Gd(f,m);if(_.value&&r)return P(r,{error:_.value});if(n&&!k.value)return P(n)}}})}function Gd(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,a=P(e,r,o);return a.ref=n,a.ce=i,delete t.vnode.ce,a}const zl=e=>e.type.__isKeepAlive,_4={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Un(),r=n.ctx;if(!r.renderer)return()=>{const S=t.default&&t.default();return S&&S.length===1?S[0]:S};const o=new Map,i=new Set;let a=null;const u=n.suspense,{renderer:{p:c,m:f,um:d,o:{createElement:g}}}=r,h=g("div");r.activate=(S,w,E,A,$)=>{const D=S.component;f(S,w,E,0,u),c(D.vnode,S,w,E,D,u,A,S.slotScopeIds,$),hn(()=>{D.isDeactivated=!1,D.a&&Us(D.a);const B=S.props&&S.props.onVnodeMounted;B&&Dn(B,D.parent,S)},u)},r.deactivate=S=>{const w=S.component;f(S,h,null,1,u),hn(()=>{w.da&&Us(w.da);const E=S.props&&S.props.onVnodeUnmounted;E&&Dn(E,w.parent,S),w.isDeactivated=!0},u)};function m(S){Zd(S),d(S,n,u,!0)}function y(S){o.forEach((w,E)=>{const A=dh(w.type);A&&(!S||!S(A))&&x(E)})}function x(S){const w=o.get(S);!a||!Rr(w,a)?m(w):a&&Zd(a),o.delete(S),i.delete(S)}ht(()=>[e.include,e.exclude],([S,w])=>{S&&y(E=>Ga(S,E)),w&&y(E=>!Ga(w,E))},{flush:"post",deep:!0});let _=null;const k=()=>{_!=null&&o.set(_,Yd(n.subTree))};return lt(k),Iw(k),Vl(()=>{o.forEach(S=>{const{subTree:w,suspense:E}=n,A=Yd(w);if(S.type===A.type&&S.key===A.key){Zd(A);const $=A.component.da;$&&hn($,E);return}m(S)})}),()=>{if(_=null,!t.default)return a=null;const S=t.default(),w=S[0];if(S.length>1)return a=null,S;if(!ea(w)||!(w.shapeFlag&4)&&!(w.shapeFlag&128))return a=null,w;let E=Yd(w);const A=E.type,$=dh(qi(E)?E.type.__asyncResolved||{}:A),{include:D,exclude:B,max:V}=e;if(D&&(!$||!Ga(D,$))||B&&$&&Ga(B,$))return a=E,w;const N=E.key==null?A:E.key,W=o.get(N);return E.el&&(E=xr(E),w.shapeFlag&128&&(w.ssContent=E)),_=N,W?(E.el=W.el,E.component=W.component,E.transition&&Dc(E,E.transition),E.shapeFlag|=512,i.delete(N),i.add(N)):(i.add(N),V&&i.size>parseInt(V,10)&&x(i.values().next().value)),E.shapeFlag|=256,a=E,bw(w.type)?w:E}}},w4=_4;function Ga(e,t){return Ae(e)?e.some(n=>Ga(n,t)):zt(e)?e.split(",").includes(t):c3(e)?e.test(t):!1}function Cw(e,t){Aw(e,"a",t)}function Tw(e,t){Aw(e,"da",t)}function Aw(e,t,n=nn){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(hf(t,r,n),n){let o=n.parent;for(;o&&o.parent;)zl(o.parent.vnode)&&x4(r,t,n,o),o=o.parent}}function x4(e,t,n,r){const o=hf(t,e,r,!0);Zt(()=>{vg(r[t],o)},n)}function Zd(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Yd(e){return e.shapeFlag&128?e.ssContent:e}function hf(e,t,n=nn,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;hi();const u=Qi(n),c=_r(t,n,e,a);return u(),gi(),c});return r?o.unshift(i):o.push(i),i}}const Ao=e=>(t,n=nn)=>(!jl||e==="sp")&&hf(e,(...r)=>t(...r),n),$w=Ao("bm"),lt=Ao("m"),k4=Ao("bu"),Iw=Ao("u"),Vl=Ao("bum"),Zt=Ao("um"),S4=Ao("sp"),E4=Ao("rtg"),C4=Ao("rtc");function Rw(e,t=nn){hf("ec",e,t)}function $n(e,t,n,r){let o;const i=n&&n[r];if(Ae(e)||zt(e)){o=new Array(e.length);for(let a=0,u=e.length;at(a,u,void 0,i&&i[u]));else{const a=Object.keys(e);o=new Array(a.length);for(let u=0,c=a.length;u{const i=r.fn(...o);return i&&(i.key=r.key),i}:r.fn)}return e}function nt(e,t,n={},r,o){if(Jt.isCE||Jt.parent&&qi(Jt.parent)&&Jt.parent.isCE)return t!=="default"&&(n.name=t),P("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),U();const a=i&&Ow(i(n)),u=Re(Ye,{key:n.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&e._===1?64:-2);return!o&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),i&&i._c&&(i._d=!0),u}function Ow(e){return e.some(t=>ea(t)?!(t.type===An||t.type===Ye&&!Ow(t.children)):!0)?e:null}const nh=e=>e?Yw(e)?gf(e)||e.proxy:nh(e.parent):null,el=Xt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>nh(e.parent),$root:e=>nh(e.root),$emit:e=>e.emit,$options:e=>Dg(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ff(e.update)}),$nextTick:e=>e.n||(e.n=an.bind(e.proxy)),$watch:e=>m4.bind(e)}),Jd=(e,t)=>e!==Ot&&!e.__isScriptSetup&&ct(e,t),A4={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:u,appContext:c}=e;let f;if(t[0]!=="$"){const m=a[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Jd(r,t))return a[t]=1,r[t];if(o!==Ot&&ct(o,t))return a[t]=2,o[t];if((f=e.propsOptions[0])&&ct(f,t))return a[t]=3,i[t];if(n!==Ot&&ct(n,t))return a[t]=4,n[t];rh&&(a[t]=0)}}const d=el[t];let g,h;if(d)return t==="$attrs"&&zn(e.attrs,"get",""),d(e);if((g=u.__cssModules)&&(g=g[t]))return g;if(n!==Ot&&ct(n,t))return a[t]=4,n[t];if(h=c.config.globalProperties,ct(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Jd(o,t)?(o[t]=n,!0):r!==Ot&&ct(r,t)?(r[t]=n,!0):ct(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let u;return!!n[a]||e!==Ot&&ct(e,a)||Jd(t,a)||(u=i[0])&&ct(u,a)||ct(r,a)||ct(el,a)||ct(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ct(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function $4(){return I4().attrs}function I4(){const e=Un();return e.setupContext||(e.setupContext=Xw(e))}function Fc(e){return Ae(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Ul(e,t){return!e||!t?e||t:Ae(e)&&Ae(t)?e.concat(t):Xt({},Fc(e),Fc(t))}function R4(e){const t=Un();let n=e();return ch(),yg(n)&&(n=n.catch(r=>{throw Qi(t),r})),[n,()=>Qi(t)]}let rh=!0;function O4(e){const t=Dg(e),n=e.proxy,r=e.ctx;rh=!1,t.beforeCreate&&Iy(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:u,provide:c,inject:f,created:d,beforeMount:g,mounted:h,beforeUpdate:m,updated:y,activated:x,deactivated:_,beforeDestroy:k,beforeUnmount:S,destroyed:w,unmounted:E,render:A,renderTracked:$,renderTriggered:D,errorCaptured:B,serverPrefetch:V,expose:N,inheritAttrs:W,components:K,directives:fe,filters:ae}=t;if(f&&L4(f,r,null),a)for(const ke in a){const me=a[ke];Ne(me)&&(r[ke]=me.bind(n))}if(o){const ke=o.call(n,n);Ct(ke)&&(e.data=In(ke))}if(rh=!0,i)for(const ke in i){const me=i[ke],bt=Ne(me)?me.bind(n,n):Ne(me.get)?me.get.bind(n,n):yr,Dt=!Ne(me)&&Ne(me.set)?me.set.bind(n):yr,$e=z({get:bt,set:Dt});Object.defineProperty(r,ke,{enumerable:!0,configurable:!0,get:()=>$e.value,set:Be=>$e.value=Be})}if(u)for(const ke in u)Lw(u[ke],r,n,ke);if(c){const ke=Ne(c)?c.call(n):c;Reflect.ownKeys(ke).forEach(me=>{kt(me,ke[me])})}d&&Iy(d,e,"c");function re(ke,me){Ae(me)?me.forEach(bt=>ke(bt.bind(n))):me&&ke(me.bind(n))}if(re($w,g),re(lt,h),re(k4,m),re(Iw,y),re(Cw,x),re(Tw,_),re(Rw,B),re(C4,$),re(E4,D),re(Vl,S),re(Zt,E),re(S4,V),Ae(N))if(N.length){const ke=e.exposed||(e.exposed={});N.forEach(me=>{Object.defineProperty(ke,me,{get:()=>n[me],set:bt=>n[me]=bt})})}else e.exposed||(e.exposed={});A&&e.render===yr&&(e.render=A),W!=null&&(e.inheritAttrs=W),K&&(e.components=K),fe&&(e.directives=fe)}function L4(e,t,n=yr){Ae(e)&&(e=oh(e));for(const r in e){const o=e[r];let i;Ct(o)?"default"in o?i=Ge(o.from||r,o.default,!0):i=Ge(o.from||r):i=Ge(o),dt(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function Iy(e,t,n){_r(Ae(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Lw(e,t,n,r){const o=r.includes(".")?ww(n,r):()=>n[r];if(zt(e)){const i=t[e];Ne(i)&&ht(o,i)}else if(Ne(e))ht(o,e.bind(n));else if(Ct(e))if(Ae(e))e.forEach(i=>Lw(i,t,n,r));else{const i=Ne(e.handler)?e.handler.bind(n):t[e.handler];Ne(i)&&ht(o,i,e)}}function Dg(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,u=i.get(t);let c;return u?c=u:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(f=>Nc(c,f,a,!0)),Nc(c,t,a)),Ct(t)&&i.set(t,c),c}function Nc(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Nc(e,i,n,!0),o&&o.forEach(a=>Nc(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const u=P4[a]||n&&n[a];e[a]=u?u(e[a],t[a]):t[a]}return e}const P4={data:Ry,props:Oy,emits:Oy,methods:Za,computed:Za,beforeCreate:Cn,created:Cn,beforeMount:Cn,mounted:Cn,beforeUpdate:Cn,updated:Cn,beforeDestroy:Cn,beforeUnmount:Cn,destroyed:Cn,unmounted:Cn,activated:Cn,deactivated:Cn,errorCaptured:Cn,serverPrefetch:Cn,components:Za,directives:Za,watch:D4,provide:Ry,inject:M4};function Ry(e,t){return t?e?function(){return Xt(Ne(e)?e.call(this,this):e,Ne(t)?t.call(this,this):t)}:t:e}function M4(e,t){return Za(oh(e),oh(t))}function oh(e){if(Ae(e)){const t={};for(let n=0;n1)return n&&Ne(t)?t.call(r&&r.proxy):t}}function Bg(){return!!(nn||Jt||Ks)}const Mw=Object.create(null),ih=()=>Object.create(Mw),Dw=e=>Object.getPrototypeOf(e)===Mw;function N4(e,t,n,r=!1){const o={},i=ih();e.propsDefaults=Object.create(null),Bw(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:Fl(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function z4(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,u=We(o),[c]=e.propsOptions;let f=!1;if((r||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let g=0;g{c=!0;const[h,m]=Fw(g,t,!0);Xt(a,h),m&&u.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!c)return Ct(e)&&r.set(e,Ns),Ns;if(Ae(i))for(let d=0;d-1,m[1]=x<0||y-1||ct(m,"default"))&&u.push(g)}}}const f=[a,u];return Ct(e)&&r.set(e,f),f}function Ly(e){return e[0]!=="$"&&!Vs(e)}function Py(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function My(e,t){return Py(e)===Py(t)}function Dy(e,t){return Ae(t)?t.findIndex(n=>My(n,e)):Ne(t)&&My(t,e)?0:-1}const Nw=e=>e[0]==="_"||e==="$stable",Fg=e=>Ae(e)?e.map(mr):[mr(e)],V4=(e,t,n)=>{if(t._n)return t;const r=X((...o)=>Fg(t(...o)),n);return r._c=!1,r},zw=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Nw(o))continue;const i=e[o];if(Ne(i))t[o]=V4(o,i,r);else if(i!=null){const a=Fg(i);t[o]=()=>a}}},Vw=(e,t)=>{const n=Fg(t);e.slots.default=()=>n},U4=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=We(t),j1(e.slots,"_",n)):zw(t,e.slots=ih())}else e.slots=ih(),t&&Vw(e,t)},j4=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=Ot;if(r.shapeFlag&32){const u=t._;u?n&&u===1?i=!1:(Xt(o,t),!n&&u===1&&delete o._):(i=!t.$stable,zw(t,o)),a=t}else t&&(Vw(e,t),a={default:1});if(i)for(const u in o)!Nw(u)&&a[u]==null&&delete o[u]};function zc(e,t,n,r,o=!1){if(Ae(e)){e.forEach((h,m)=>zc(h,t&&(Ae(t)?t[m]:t),n,r,o));return}if(qi(r)&&!o)return;const i=r.shapeFlag&4?gf(r.component)||r.component.proxy:r.el,a=o?null:i,{i:u,r:c}=e,f=t&&t.r,d=u.refs===Ot?u.refs={}:u.refs,g=u.setupState;if(f!=null&&f!==c&&(zt(f)?(d[f]=null,ct(g,f)&&(g[f]=null)):dt(f)&&(f.value=null)),Ne(c))ii(c,u,12,[a,d]);else{const h=zt(c),m=dt(c);if(h||m){const y=()=>{if(e.f){const x=h?ct(g,c)?g[c]:d[c]:c.value;o?Ae(x)&&vg(x,i):Ae(x)?x.includes(i)||x.push(i):h?(d[c]=[i],ct(g,c)&&(g[c]=d[c])):(c.value=[i],e.k&&(d[e.k]=c.value))}else h?(d[c]=a,ct(g,c)&&(g[c]=a)):m&&(c.value=a,e.k&&(d[e.k]=a))};a?(y.id=-1,hn(y,n)):y()}}}let zo=!1;const H4=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",W4=e=>e.namespaceURI.includes("MathML"),nc=e=>{if(H4(e))return"svg";if(W4(e))return"mathml"},rc=e=>e.nodeType===8;function K4(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:i,parentNode:a,remove:u,insert:c,createComment:f}}=e,d=(w,E)=>{if(!E.hasChildNodes()){n(null,w,E),Pc(),E._vnode=w;return}zo=!1,g(E.firstChild,w,null,null,null),Pc(),E._vnode=w,zo&&console.error("Hydration completed but contains mismatches.")},g=(w,E,A,$,D,B=!1)=>{B=B||!!E.dynamicChildren;const V=rc(w)&&w.data==="[",N=()=>x(w,E,A,$,D,V),{type:W,ref:K,shapeFlag:fe,patchFlag:ae}=E;let ye=w.nodeType;E.el=w,ae===-2&&(B=!1,E.dynamicChildren=null);let re=null;switch(W){case Xs:ye!==3?E.children===""?(c(E.el=o(""),a(w),w),re=w):re=N():(w.data!==E.children&&(zo=!0,w.data=E.children),re=i(w));break;case An:S(w)?(re=i(w),k(E.el=w.content.firstChild,w,A)):ye!==8||V?re=N():re=i(w);break;case qs:if(V&&(w=i(w),ye=w.nodeType),ye===1||ye===3){re=w;const ke=!E.children.length;for(let me=0;me{B=B||!!E.dynamicChildren;const{type:V,props:N,patchFlag:W,shapeFlag:K,dirs:fe,transition:ae}=E,ye=V==="input"||V==="option";if(ye||W!==-1){fe&&Kr(E,null,A,"created");let re=!1;if(S(w)){re=jw($,ae)&&A&&A.vnode.props&&A.vnode.props.appear;const me=w.content.firstChild;re&&ae.beforeEnter(me),k(me,w,A),E.el=w=me}if(K&16&&!(N&&(N.innerHTML||N.textContent))){let me=m(w.firstChild,E,w,A,$,D,B);for(;me;){zo=!0;const bt=me;me=me.nextSibling,u(bt)}}else K&8&&w.textContent!==E.children&&(zo=!0,w.textContent=E.children);if(N)if(ye||!B||W&48)for(const me in N)(ye&&(me.endsWith("value")||me==="indeterminate")||Bl(me)&&!Vs(me)||me[0]===".")&&r(w,me,null,N[me],void 0,void 0,A);else N.onClick&&r(w,"onClick",null,N.onClick,void 0,void 0,A);let ke;(ke=N&&N.onVnodeBeforeMount)&&Dn(ke,A,E),fe&&Kr(E,null,A,"beforeMount"),((ke=N&&N.onVnodeMounted)||fe||re)&&_w(()=>{ke&&Dn(ke,A,E),re&&ae.enter(w),fe&&Kr(E,null,A,"mounted")},$)}return w.nextSibling},m=(w,E,A,$,D,B,V)=>{V=V||!!E.dynamicChildren;const N=E.children,W=N.length;for(let K=0;K{const{slotScopeIds:V}=E;V&&(D=D?D.concat(V):V);const N=a(w),W=m(i(w),E,N,A,$,D,B);return W&&rc(W)&&W.data==="]"?i(E.anchor=W):(zo=!0,c(E.anchor=f("]"),N,W),W)},x=(w,E,A,$,D,B)=>{if(zo=!0,E.el=null,B){const W=_(w);for(;;){const K=i(w);if(K&&K!==W)u(K);else break}}const V=i(w),N=a(w);return u(w),n(null,E,N,V,A,$,nc(N),D),V},_=(w,E="[",A="]")=>{let $=0;for(;w;)if(w=i(w),w&&rc(w)&&(w.data===E&&$++,w.data===A)){if($===0)return i(w);$--}return w},k=(w,E,A)=>{const $=E.parentNode;$&&$.replaceChild(w,E);let D=A;for(;D;)D.vnode.el===E&&(D.vnode.el=D.subTree.el=w),D=D.parent},S=w=>w.nodeType===1&&w.tagName.toLowerCase()==="template";return[d,g]}const hn=_w;function q4(e){return Uw(e)}function G4(e){return Uw(e,K4)}function Uw(e,t){const n=W1();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:u,createComment:c,setText:f,setElementText:d,parentNode:g,nextSibling:h,setScopeId:m=yr,insertStaticContent:y}=e,x=(I,M,q,oe=null,Y=null,de=null,ve=void 0,ue=null,ce=!!M.dynamicChildren)=>{if(I===M)return;I&&!Rr(I,M)&&(oe=Q(I),Be(I,Y,de,!0),I=null),M.patchFlag===-2&&(ce=!1,M.dynamicChildren=null);const{type:ie,ref:we,shapeFlag:Oe}=M;switch(ie){case Xs:_(I,M,q,oe);break;case An:k(I,M,q,oe);break;case qs:I==null&&S(M,q,oe,ve);break;case Ye:K(I,M,q,oe,Y,de,ve,ue,ce);break;default:Oe&1?A(I,M,q,oe,Y,de,ve,ue,ce):Oe&6?fe(I,M,q,oe,Y,de,ve,ue,ce):(Oe&64||Oe&128)&&ie.process(I,M,q,oe,Y,de,ve,ue,ce,Ce)}we!=null&&Y&&zc(we,I&&I.ref,de,M||I,!M)},_=(I,M,q,oe)=>{if(I==null)r(M.el=u(M.children),q,oe);else{const Y=M.el=I.el;M.children!==I.children&&f(Y,M.children)}},k=(I,M,q,oe)=>{I==null?r(M.el=c(M.children||""),q,oe):M.el=I.el},S=(I,M,q,oe)=>{[I.el,I.anchor]=y(I.children,M,q,oe,I.el,I.anchor)},w=({el:I,anchor:M},q,oe)=>{let Y;for(;I&&I!==M;)Y=h(I),r(I,q,oe),I=Y;r(M,q,oe)},E=({el:I,anchor:M})=>{let q;for(;I&&I!==M;)q=h(I),o(I),I=q;o(M)},A=(I,M,q,oe,Y,de,ve,ue,ce)=>{M.type==="svg"?ve="svg":M.type==="math"&&(ve="mathml"),I==null?$(M,q,oe,Y,de,ve,ue,ce):V(I,M,Y,de,ve,ue,ce)},$=(I,M,q,oe,Y,de,ve,ue)=>{let ce,ie;const{props:we,shapeFlag:Oe,transition:Ee,dirs:Fe}=I;if(ce=I.el=a(I.type,de,we&&we.is,we),Oe&8?d(ce,I.children):Oe&16&&B(I.children,ce,null,oe,Y,Xd(I,de),ve,ue),Fe&&Kr(I,null,oe,"created"),D(ce,I,I.scopeId,ve,oe),we){for(const tt in we)tt!=="value"&&!Vs(tt)&&i(ce,tt,null,we[tt],de,I.children,oe,Y,ft);"value"in we&&i(ce,"value",null,we.value,de),(ie=we.onVnodeBeforeMount)&&Dn(ie,oe,I)}Fe&&Kr(I,null,oe,"beforeMount");const ze=jw(Y,Ee);ze&&Ee.beforeEnter(ce),r(ce,M,q),((ie=we&&we.onVnodeMounted)||ze||Fe)&&hn(()=>{ie&&Dn(ie,oe,I),ze&&Ee.enter(ce),Fe&&Kr(I,null,oe,"mounted")},Y)},D=(I,M,q,oe,Y)=>{if(q&&m(I,q),oe)for(let de=0;de{for(let ie=ce;ie{const ue=M.el=I.el;let{patchFlag:ce,dynamicChildren:ie,dirs:we}=M;ce|=I.patchFlag&16;const Oe=I.props||Ot,Ee=M.props||Ot;let Fe;if(q&&Ti(q,!1),(Fe=Ee.onVnodeBeforeUpdate)&&Dn(Fe,q,M,I),we&&Kr(M,I,q,"beforeUpdate"),q&&Ti(q,!0),ie?N(I.dynamicChildren,ie,ue,q,oe,Xd(M,Y),de):ve||me(I,M,ue,null,q,oe,Xd(M,Y),de,!1),ce>0){if(ce&16)W(ue,M,Oe,Ee,q,oe,Y);else if(ce&2&&Oe.class!==Ee.class&&i(ue,"class",null,Ee.class,Y),ce&4&&i(ue,"style",Oe.style,Ee.style,Y),ce&8){const ze=M.dynamicProps;for(let tt=0;tt{Fe&&Dn(Fe,q,M,I),we&&Kr(M,I,q,"updated")},oe)},N=(I,M,q,oe,Y,de,ve)=>{for(let ue=0;ue{if(q!==oe){if(q!==Ot)for(const ue in q)!Vs(ue)&&!(ue in oe)&&i(I,ue,q[ue],null,ve,M.children,Y,de,ft);for(const ue in oe){if(Vs(ue))continue;const ce=oe[ue],ie=q[ue];ce!==ie&&ue!=="value"&&i(I,ue,ie,ce,ve,M.children,Y,de,ft)}"value"in oe&&i(I,"value",q.value,oe.value,ve)}},K=(I,M,q,oe,Y,de,ve,ue,ce)=>{const ie=M.el=I?I.el:u(""),we=M.anchor=I?I.anchor:u("");let{patchFlag:Oe,dynamicChildren:Ee,slotScopeIds:Fe}=M;Fe&&(ue=ue?ue.concat(Fe):Fe),I==null?(r(ie,q,oe),r(we,q,oe),B(M.children||[],q,we,Y,de,ve,ue,ce)):Oe>0&&Oe&64&&Ee&&I.dynamicChildren?(N(I.dynamicChildren,Ee,q,Y,de,ve,ue),(M.key!=null||Y&&M===Y.subTree)&&Ng(I,M,!0)):me(I,M,q,we,Y,de,ve,ue,ce)},fe=(I,M,q,oe,Y,de,ve,ue,ce)=>{M.slotScopeIds=ue,I==null?M.shapeFlag&512?Y.ctx.activate(M,q,oe,ve,ce):ae(M,q,oe,Y,de,ve,ce):ye(I,M,ce)},ae=(I,M,q,oe,Y,de,ve)=>{const ue=I.component=nR(I,oe,Y);if(zl(I)&&(ue.ctx.renderer=Ce),rR(ue),ue.asyncDep){if(Y&&Y.registerDep(ue,re),!I.el){const ce=ue.subTree=P(An);k(null,ce,M,q)}}else re(ue,I,M,q,Y,de,ve)},ye=(I,M,q)=>{const oe=M.component=I.component;if(i4(I,M,q))if(oe.asyncDep&&!oe.asyncResolved){ke(oe,M,q);return}else oe.next=M,J3(oe.update),oe.effect.dirty=!0,oe.update();else M.el=I.el,oe.vnode=M},re=(I,M,q,oe,Y,de,ve)=>{const ue=()=>{if(I.isMounted){let{next:we,bu:Oe,u:Ee,parent:Fe,vnode:ze}=I;{const Fr=Hw(I);if(Fr){we&&(we.el=ze.el,ke(I,we,ve)),Fr.asyncDep.then(()=>{I.isUnmounted||ue()});return}}let tt=we,Et;Ti(I,!1),we?(we.el=ze.el,ke(I,we,ve)):we=ze,Oe&&Us(Oe),(Et=we.props&&we.props.onVnodeBeforeUpdate)&&Dn(Et,Fe,we,ze),Ti(I,!0);const Ht=Kd(I),wn=I.subTree;I.subTree=Ht,x(wn,Ht,g(wn.el),Q(wn),I,Y,de),we.el=Ht.el,tt===null&&Og(I,Ht.el),Ee&&hn(Ee,Y),(Et=we.props&&we.props.onVnodeUpdated)&&hn(()=>Dn(Et,Fe,we,ze),Y)}else{let we;const{el:Oe,props:Ee}=M,{bm:Fe,m:ze,parent:tt}=I,Et=qi(M);if(Ti(I,!1),Fe&&Us(Fe),!Et&&(we=Ee&&Ee.onVnodeBeforeMount)&&Dn(we,tt,M),Ti(I,!0),Oe&>){const Ht=()=>{I.subTree=Kd(I),gt(Oe,I.subTree,I,Y,null)};Et?M.type.__asyncLoader().then(()=>!I.isUnmounted&&Ht()):Ht()}else{const Ht=I.subTree=Kd(I);x(null,Ht,q,oe,I,Y,de),M.el=Ht.el}if(ze&&hn(ze,Y),!Et&&(we=Ee&&Ee.onVnodeMounted)){const Ht=M;hn(()=>Dn(we,tt,Ht),Y)}(M.shapeFlag&256||tt&&qi(tt.vnode)&&tt.vnode.shapeFlag&256)&&I.a&&hn(I.a,Y),I.isMounted=!0,M=q=oe=null}},ce=I.effect=new wg(ue,yr,()=>ff(ie),I.scope),ie=I.update=()=>{ce.dirty&&ce.run()};ie.id=I.uid,Ti(I,!0),ie()},ke=(I,M,q)=>{M.component=I;const oe=I.vnode.props;I.vnode=M,I.next=null,z4(I,M.props,oe,q),j4(I,M.children,q),hi(),Ey(I),gi()},me=(I,M,q,oe,Y,de,ve,ue,ce=!1)=>{const ie=I&&I.children,we=I?I.shapeFlag:0,Oe=M.children,{patchFlag:Ee,shapeFlag:Fe}=M;if(Ee>0){if(Ee&128){Dt(ie,Oe,q,oe,Y,de,ve,ue,ce);return}else if(Ee&256){bt(ie,Oe,q,oe,Y,de,ve,ue,ce);return}}Fe&8?(we&16&&ft(ie,Y,de),Oe!==ie&&d(q,Oe)):we&16?Fe&16?Dt(ie,Oe,q,oe,Y,de,ve,ue,ce):ft(ie,Y,de,!0):(we&8&&d(q,""),Fe&16&&B(Oe,q,oe,Y,de,ve,ue,ce))},bt=(I,M,q,oe,Y,de,ve,ue,ce)=>{I=I||Ns,M=M||Ns;const ie=I.length,we=M.length,Oe=Math.min(ie,we);let Ee;for(Ee=0;Eewe?ft(I,Y,de,!0,!1,Oe):B(M,q,oe,Y,de,ve,ue,ce,Oe)},Dt=(I,M,q,oe,Y,de,ve,ue,ce)=>{let ie=0;const we=M.length;let Oe=I.length-1,Ee=we-1;for(;ie<=Oe&&ie<=Ee;){const Fe=I[ie],ze=M[ie]=ce?Jo(M[ie]):mr(M[ie]);if(Rr(Fe,ze))x(Fe,ze,q,null,Y,de,ve,ue,ce);else break;ie++}for(;ie<=Oe&&ie<=Ee;){const Fe=I[Oe],ze=M[Ee]=ce?Jo(M[Ee]):mr(M[Ee]);if(Rr(Fe,ze))x(Fe,ze,q,null,Y,de,ve,ue,ce);else break;Oe--,Ee--}if(ie>Oe){if(ie<=Ee){const Fe=Ee+1,ze=FeEe)for(;ie<=Oe;)Be(I[ie],Y,de,!0),ie++;else{const Fe=ie,ze=ie,tt=new Map;for(ie=ze;ie<=Ee;ie++){const ln=M[ie]=ce?Jo(M[ie]):mr(M[ie]);ln.key!=null&&tt.set(ln.key,ie)}let Et,Ht=0;const wn=Ee-ze+1;let Fr=!1,hs=0;const oo=new Array(wn);for(ie=0;ie=wn){Be(ln,Y,de,!0);continue}let Rn;if(ln.key!=null)Rn=tt.get(ln.key);else for(Et=ze;Et<=Ee;Et++)if(oo[Et-ze]===0&&Rr(ln,M[Et])){Rn=Et;break}Rn===void 0?Be(ln,Y,de,!0):(oo[Rn-ze]=ie+1,Rn>=hs?hs=Rn:Fr=!0,x(ln,M[Rn],q,null,Y,de,ve,ue,ce),Ht++)}const gs=Fr?Z4(oo):Ns;for(Et=gs.length-1,ie=wn-1;ie>=0;ie--){const ln=ze+ie,Rn=M[ln],su=ln+1{const{el:de,type:ve,transition:ue,children:ce,shapeFlag:ie}=I;if(ie&6){$e(I.component.subTree,M,q,oe);return}if(ie&128){I.suspense.move(M,q,oe);return}if(ie&64){ve.move(I,M,q,Ce);return}if(ve===Ye){r(de,M,q);for(let Oe=0;Oeue.enter(de),Y);else{const{leave:Oe,delayLeave:Ee,afterLeave:Fe}=ue,ze=()=>r(de,M,q),tt=()=>{Oe(de,()=>{ze(),Fe&&Fe()})};Ee?Ee(de,ze,tt):tt()}else r(de,M,q)},Be=(I,M,q,oe=!1,Y=!1)=>{const{type:de,props:ve,ref:ue,children:ce,dynamicChildren:ie,shapeFlag:we,patchFlag:Oe,dirs:Ee}=I;if(ue!=null&&zc(ue,null,q,I,!0),we&256){M.ctx.deactivate(I);return}const Fe=we&1&&Ee,ze=!qi(I);let tt;if(ze&&(tt=ve&&ve.onVnodeBeforeUnmount)&&Dn(tt,M,I),we&6)Bt(I.component,q,oe);else{if(we&128){I.suspense.unmount(q,oe);return}Fe&&Kr(I,null,M,"beforeUnmount"),we&64?I.type.remove(I,M,q,Y,Ce,oe):ie&&(de!==Ye||Oe>0&&Oe&64)?ft(ie,M,q,!1,!0):(de===Ye&&Oe&384||!Y&&we&16)&&ft(ce,M,q),oe&&It(I)}(ze&&(tt=ve&&ve.onVnodeUnmounted)||Fe)&&hn(()=>{tt&&Dn(tt,M,I),Fe&&Kr(I,null,M,"unmounted")},q)},It=I=>{const{type:M,el:q,anchor:oe,transition:Y}=I;if(M===Ye){St(q,oe);return}if(M===qs){E(I);return}const de=()=>{o(q),Y&&!Y.persisted&&Y.afterLeave&&Y.afterLeave()};if(I.shapeFlag&1&&Y&&!Y.persisted){const{leave:ve,delayLeave:ue}=Y,ce=()=>ve(q,de);ue?ue(I.el,de,ce):ce()}else de()},St=(I,M)=>{let q;for(;I!==M;)q=h(I),o(I),I=q;o(M)},Bt=(I,M,q)=>{const{bum:oe,scope:Y,update:de,subTree:ve,um:ue}=I;oe&&Us(oe),Y.stop(),de&&(de.active=!1,Be(ve,I,M,q)),ue&&hn(ue,M),hn(()=>{I.isUnmounted=!0},M),M&&M.pendingBranch&&!M.isUnmounted&&I.asyncDep&&!I.asyncResolved&&I.suspenseId===M.pendingId&&(M.deps--,M.deps===0&&M.resolve())},ft=(I,M,q,oe=!1,Y=!1,de=0)=>{for(let ve=de;veI.shapeFlag&6?Q(I.component.subTree):I.shapeFlag&128?I.suspense.next():h(I.anchor||I.el);let ge=!1;const he=(I,M,q)=>{I==null?M._vnode&&Be(M._vnode,null,null,!0):x(M._vnode||null,I,M,null,null,null,q),ge||(ge=!0,Ey(),Pc(),ge=!1),M._vnode=I},Ce={p:x,um:Be,m:$e,r:It,mt:ae,mc:B,pc:me,pbc:N,n:Q,o:e};let Je,gt;return t&&([Je,gt]=t(Ce)),{render:he,hydrate:Je,createApp:F4(he,Je)}}function Xd({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ti({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function jw(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ng(e,t,n=!1){const r=e.children,o=t.children;if(Ae(r)&&Ae(o))for(let i=0;i>1,e[n[u]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function Hw(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Hw(t)}const Y4=e=>e.__isTeleport,tl=e=>e&&(e.disabled||e.disabled===""),By=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Fy=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ah=(e,t)=>{const n=e&&e.to;return zt(n)?t?t(n):null:n},J4={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,a,u,c,f){const{mc:d,pc:g,pbc:h,o:{insert:m,querySelector:y,createText:x,createComment:_}}=f,k=tl(t.props);let{shapeFlag:S,children:w,dynamicChildren:E}=t;if(e==null){const A=t.el=x(""),$=t.anchor=x("");m(A,n,r),m($,n,r);const D=t.target=ah(t.props,y),B=t.targetAnchor=x("");D&&(m(B,D),a==="svg"||By(D)?a="svg":(a==="mathml"||Fy(D))&&(a="mathml"));const V=(N,W)=>{S&16&&d(w,N,W,o,i,a,u,c)};k?V(n,$):D&&V(D,B)}else{t.el=e.el;const A=t.anchor=e.anchor,$=t.target=e.target,D=t.targetAnchor=e.targetAnchor,B=tl(e.props),V=B?n:$,N=B?A:D;if(a==="svg"||By($)?a="svg":(a==="mathml"||Fy($))&&(a="mathml"),E?(h(e.dynamicChildren,E,V,o,i,a,u),Ng(e,t,!0)):c||g(e,t,V,N,o,i,a,u,!1),k)B?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):oc(t,n,A,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=t.target=ah(t.props,y);W&&oc(t,W,null,f,0)}else B&&oc(t,$,D,f,1)}Kw(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:u,children:c,anchor:f,targetAnchor:d,target:g,props:h}=e;if(g&&i(d),a&&i(f),u&16){const m=a||!tl(h);for(let y=0;y0?br||Ns:null,qw(),Qs>0&&br&&br.push(e),e}function Z(e,t,n,r,o,i){return Gw(O(e,t,n,r,o,i,!0))}function Re(e,t,n,r,o){return Gw(P(e,t,n,r,o,!0))}function ea(e){return e?e.__v_isVNode===!0:!1}function Rr(e,t){return e.type===t.type&&e.key===t.key}const Zw=({key:e})=>e??null,wc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?zt(e)||dt(e)||Ne(e)?{i:Jt,r:e,k:t,f:!!n}:e:null);function O(e,t=null,n=null,r=0,o=null,i=e===Ye?0:1,a=!1,u=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Zw(t),ref:t&&wc(t),scopeId:pf,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Jt};return u?(zg(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=zt(n)?8:16),Qs>0&&!a&&br&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&br.push(c),c}const P=Q4;function Q4(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===vw)&&(e=An),ea(e)){const u=xr(e,t,!0);return n&&zg(u,n),Qs>0&&!i&&br&&(u.shapeFlag&6?br[br.indexOf(e)]=u:br.push(u)),u.patchFlag|=-2,u}if(sR(e)&&(e=e.__vccOpts),t){t=ta(t);let{class:u,style:c}=t;u&&!zt(u)&&(t.class=le(u)),Ct(c)&&(aw(c)&&!Ae(c)&&(c=Xt({},c)),t.style=Ji(c))}const a=zt(e)?1:bw(e)?128:Y4(e)?64:Ct(e)?4:Ne(e)?2:0;return O(e,t,n,r,o,a,i,!0)}function ta(e){return e?aw(e)||Dw(e)?Xt({},e):e:null}function xr(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,u=t?ot(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Zw(u),ref:t&&t.ref?n&&o?Ae(o)?o.concat(wc(t)):[o,wc(t)]:wc(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ye?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xr(e.ssContent),ssFallback:e.ssFallback&&xr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function pe(e=" ",t=0){return P(Xs,null,e,t)}function lh(e,t){const n=P(qs,null,e);return n.staticCount=t,n}function Ie(e="",t=!1){return t?(U(),Re(An,null,e)):P(An,null,e)}function mr(e){return e==null||typeof e=="boolean"?P(An):Ae(e)?P(Ye,null,e.slice()):typeof e=="object"?Jo(e):P(Xs,null,String(e))}function Jo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xr(e)}function zg(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ae(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),zg(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Dw(t)?t._ctx=Jt:o===3&&Jt&&(Jt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ne(t)?(t={default:t,_ctx:Jt},n=32):(t=String(t),r&64?(n=16,t=[pe(t)]):n=8);e.children=t,e.shapeFlag|=n}function ot(...e){const t={};for(let n=0;nnn||Jt;let Vc,uh;{const e=W1(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),i=>{o.length>1?o.forEach(a=>a(i)):o[0](i)}};Vc=t("__VUE_INSTANCE_SETTERS__",n=>nn=n),uh=t("__VUE_SSR_SETTERS__",n=>jl=n)}const Qi=e=>{const t=nn;return Vc(e),e.scope.on(),()=>{e.scope.off(),Vc(t)}},ch=()=>{nn&&nn.scope.off(),Vc(null)};function Yw(e){return e.vnode.shapeFlag&4}let jl=!1;function rR(e,t=!1){t&&uh(t);const{props:n,children:r}=e.vnode,o=Yw(e);N4(e,n,o,t),U4(e,r);const i=o?oR(e,t):void 0;return t&&uh(!1),i}function oR(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,A4);const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?Xw(e):null,i=Qi(e);hi();const a=ii(r,e,0,[e.props,o]);if(gi(),i(),yg(a)){if(a.then(ch,ch),t)return a.then(u=>{fh(e,u,t)}).catch(u=>{da(u,e,0)});e.asyncDep=a}else fh(e,a,t)}else Jw(e,t)}function fh(e,t,n){Ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ct(t)&&(e.setupState=cw(t)),Jw(e,n)}let zy;function Jw(e,t,n){const r=e.type;if(!e.render){if(!t&&zy&&!r.render){const o=r.template||Dg(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:u,compilerOptions:c}=r,f=Xt(Xt({isCustomElement:i,delimiters:u},a),c);r.render=zy(o,f)}}e.render=r.render||yr}{const o=Qi(e);hi();try{O4(e)}finally{gi(),o()}}}const iR={get(e,t){return zn(e,"get",""),e[t]}};function Xw(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,iR),slots:e.slots,emit:e.emit,expose:t}}function gf(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(cw(Ag(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in el)return el[n](e)},has(t,n){return n in t||n in el}}))}function dh(e,t=!0){return Ne(e)?e.displayName||e.name:e.name||t&&e.__name}function sR(e){return Ne(e)&&"__vccOpts"in e}const z=(e,t)=>U3(e,t,jl);function mi(e,t,n=Ot){const r=Un(),o=Pr(t),i=as(t),a=fw((c,f)=>{let d;return g4(()=>{const g=e[t];to(d,g)&&(d=g,f())}),{get(){return c(),n.get?n.get(d):d},set(g){const h=r.vnode.props;!(h&&(t in h||o in h||i in h)&&(`onUpdate:${t}`in h||`onUpdate:${o}`in h||`onUpdate:${i}`in h))&&to(g,d)&&(d=g,f()),r.emit(`update:${t}`,n.set?n.set(g):g)}}}),u=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return a[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?e[u]||{}:a,done:!1}:{done:!0}}}},a}function Qe(e,t,n){const r=arguments.length;return r===2?Ct(t)&&!Ae(t)?ea(t)?P(e,null,[t]):P(e,t):P(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ea(n)&&(n=[n]),P(e,t,n))}const Qw="3.4.23";/** -* @vue/runtime-dom v3.4.23 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const aR="http://www.w3.org/2000/svg",lR="http://www.w3.org/1998/Math/MathML",Xo=typeof document<"u"?document:null,Vy=Xo&&Xo.createElement("template"),uR={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Xo.createElementNS(aR,e):t==="mathml"?Xo.createElementNS(lR,e):Xo.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Xo.createTextNode(e),createComment:e=>Xo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Vy.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const u=Vy.content;if(r==="svg"||r==="mathml"){const c=u.firstChild;for(;c.firstChild;)u.appendChild(c.firstChild);u.removeChild(c)}t.insertBefore(u,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Vo="transition",Ma="animation",yl=Symbol("_vtc"),ls=(e,{slots:t})=>Qe(b4,cR(e),t);ls.displayName="Transition";const ex={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ls.props=Xt({},kw,ex);const Ai=(e,t=[])=>{Ae(e)?e.forEach(n=>n(...t)):e&&e(...t)},Uy=e=>e?Ae(e)?e.some(t=>t.length>1):e.length>1:!1;function cR(e){const t={};for(const K in e)K in ex||(t[K]=e[K]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:u=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:f=a,appearToClass:d=u,leaveFromClass:g=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,y=fR(o),x=y&&y[0],_=y&&y[1],{onBeforeEnter:k,onEnter:S,onEnterCancelled:w,onLeave:E,onLeaveCancelled:A,onBeforeAppear:$=k,onAppear:D=S,onAppearCancelled:B=w}=t,V=(K,fe,ae)=>{$i(K,fe?d:u),$i(K,fe?f:a),ae&&ae()},N=(K,fe)=>{K._isLeaving=!1,$i(K,g),$i(K,m),$i(K,h),fe&&fe()},W=K=>(fe,ae)=>{const ye=K?D:S,re=()=>V(fe,K,ae);Ai(ye,[fe,re]),jy(()=>{$i(fe,K?c:i),Uo(fe,K?d:u),Uy(ye)||Hy(fe,r,x,re)})};return Xt(t,{onBeforeEnter(K){Ai(k,[K]),Uo(K,i),Uo(K,a)},onBeforeAppear(K){Ai($,[K]),Uo(K,c),Uo(K,f)},onEnter:W(!1),onAppear:W(!0),onLeave(K,fe){K._isLeaving=!0;const ae=()=>N(K,fe);Uo(K,g),hR(),Uo(K,h),jy(()=>{K._isLeaving&&($i(K,g),Uo(K,m),Uy(E)||Hy(K,r,_,ae))}),Ai(E,[K,ae])},onEnterCancelled(K){V(K,!1),Ai(w,[K])},onAppearCancelled(K){V(K,!0),Ai(B,[K])},onLeaveCancelled(K){N(K),Ai(A,[K])}})}function fR(e){if(e==null)return null;if(Ct(e))return[Qd(e.enter),Qd(e.leave)];{const t=Qd(e);return[t,t]}}function Qd(e){return H1(e)}function Uo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[yl]||(e[yl]=new Set)).add(t)}function $i(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[yl];n&&(n.delete(t),n.size||(e[yl]=void 0))}function jy(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let dR=0;function Hy(e,t,n,r){const o=e._endId=++dR,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:u,propCount:c}=pR(e,t);if(!a)return r();const f=a+"end";let d=0;const g=()=>{e.removeEventListener(f,h),i()},h=m=>{m.target===e&&++d>=c&&g()};setTimeout(()=>{d(n[y]||"").split(", "),o=r(`${Vo}Delay`),i=r(`${Vo}Duration`),a=Wy(o,i),u=r(`${Ma}Delay`),c=r(`${Ma}Duration`),f=Wy(u,c);let d=null,g=0,h=0;t===Vo?a>0&&(d=Vo,g=a,h=i.length):t===Ma?f>0&&(d=Ma,g=f,h=c.length):(g=Math.max(a,f),d=g>0?a>f?Vo:Ma:null,h=d?d===Vo?i.length:c.length:0);const m=d===Vo&&/\b(transform|all)(,|$)/.test(r(`${Vo}Property`).toString());return{type:d,timeout:g,propCount:h,hasTransform:m}}function Wy(e,t){for(;e.lengthKy(n)+Ky(e[r])))}function Ky(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function hR(){return document.body.offsetHeight}function gR(e,t,n){const r=e[yl];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Uc=Symbol("_vod"),tx=Symbol("_vsh"),KK={beforeMount(e,{value:t},{transition:n}){e[Uc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Da(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Da(e,!0),r.enter(e)):r.leave(e,()=>{Da(e,!1)}):Da(e,t))},beforeUnmount(e,{value:t}){Da(e,t)}};function Da(e,t){e.style.display=t?e[Uc]:"none",e[tx]=!t}const nx=Symbol("");function qK(e){const t=Un();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>hh(i,o))},r=()=>{const o=e(t.proxy);ph(t.subTree,o),n(o)};lt(()=>{h4(r);const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Zt(()=>o.disconnect())})}function ph(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ph(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)hh(e.el,t);else if(e.type===Ye)e.children.forEach(n=>ph(n,t));else if(e.type===qs){let{el:n,anchor:r}=e;for(;n&&(hh(n,t),n!==r);)n=n.nextSibling}}function hh(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t)n.setProperty(`--${o}`,t[o]),r+=`--${o}: ${t[o]};`;n[nx]=r}}const mR=/(^|;)\s*display\s*:/;function vR(e,t,n){const r=e.style,o=zt(n);let i=!1;if(n&&!o){if(t)if(zt(t))for(const a of t.split(";")){const u=a.slice(0,a.indexOf(":")).trim();n[u]==null&&xc(r,u,"")}else for(const a in t)n[a]==null&&xc(r,a,"");for(const a in n)a==="display"&&(i=!0),xc(r,a,n[a])}else if(o){if(t!==n){const a=r[nx];a&&(n+=";"+a),r.cssText=n,i=mR.test(n)}}else t&&e.removeAttribute("style");Uc in e&&(e[Uc]=i?r.display:"",e[tx]&&(r.display="none"))}const qy=/\s*!important$/;function xc(e,t,n){if(Ae(n))n.forEach(r=>xc(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=yR(e,t);qy.test(n)?e.setProperty(as(r),n.replace(qy,""),"important"):e[r]=n}}const Gy=["Webkit","Moz","ms"],ep={};function yR(e,t){const n=ep[t];if(n)return n;let r=Pr(t);if(r!=="filter"&&r in e)return ep[t]=r;r=lf(r);for(let o=0;otp||(SR.then(()=>tp=0),tp=Date.now());function CR(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;_r(TR(r,n.value),t,5,[r])};return n.value=e,n.attached=ER(),n}function TR(e,t){if(Ae(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const Xy=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,AR=(e,t,n,r,o,i,a,u,c)=>{const f=o==="svg";t==="class"?gR(e,r,f):t==="style"?vR(e,n,r):Bl(t)?mg(t)||xR(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$R(e,t,r,f))?_R(e,t,r,i,a,u,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),bR(e,t,r,f))};function $R(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Xy(t)&&Ne(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Xy(t)&&zt(n)?!1:t in e}const jc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ae(t)?n=>Us(t,n):t};function IR(e){e.target.composing=!0}function Qy(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Gs=Symbol("_assign"),RR={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Gs]=jc(o);const i=r||o.props&&o.props.type==="number";Di(e,t?"change":"input",a=>{if(a.target.composing)return;let u=e.value;n&&(u=u.trim()),i&&(u=Gp(u)),e[Gs](u)}),n&&Di(e,"change",()=>{e.value=e.value.trim()}),t||(Di(e,"compositionstart",IR),Di(e,"compositionend",Qy),Di(e,"change",Qy))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e[Gs]=jc(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?Gp(e.value):e.value,u=t??"";a!==u&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===u)||(e.value=u))}},OR={deep:!0,created(e,t,n){e[Gs]=jc(n),Di(e,"change",()=>{const r=e._modelValue,o=LR(e),i=e.checked,a=e[Gs];if(Ae(r)){const u=q1(r,o),c=u!==-1;if(i&&!c)a(r.concat(o));else if(!i&&c){const f=[...r];f.splice(u,1),a(f)}}else if(sf(r)){const u=new Set(r);i?u.add(o):u.delete(o),a(u)}else a(rx(e,i))})},mounted:eb,beforeUpdate(e,t,n){e[Gs]=jc(n),eb(e,t,n)}};function eb(e,{value:t,oldValue:n},r){e._modelValue=t,Ae(t)?e.checked=q1(t,r.props.value)>-1:sf(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=uf(t,rx(e,!0)))}function LR(e){return"_value"in e?e._value:e.value}function rx(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const PR=["ctrl","shift","alt","meta"],MR={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>PR.some(n=>e[`${n}Key`]&&!t.includes(n))},kc=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...i)=>{for(let a=0;a{const t=DR().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=sx(r);if(!o)return;const i=t._component;!Ne(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,ix(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t},NR=(...e)=>{const t=BR().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=sx(r);if(o)return n(o,!0,ix(o))},t};function ix(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function sx(e){return zt(e)?document.querySelector(e):e}const zR=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,VR=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,UR=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function jR(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){HR(e);return}return t}function HR(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function bl(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!UR.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(zR.test(e)||VR.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,jR)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const WR=/#/g,KR=/&/g,qR=/\//g,GR=/=/g,Vg=/\+/g,ZR=/%5e/gi,YR=/%60/gi,JR=/%7c/gi,XR=/%20/gi;function QR(e){return encodeURI(""+e).replace(JR,"|")}function gh(e){return QR(typeof e=="string"?e:JSON.stringify(e)).replace(Vg,"%2B").replace(XR,"+").replace(WR,"%23").replace(KR,"%26").replace(YR,"`").replace(ZR,"^").replace(qR,"%2F")}function np(e){return gh(e).replace(GR,"%3D")}function Hc(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function eO(e){return Hc(e.replace(Vg," "))}function tO(e){return Hc(e.replace(Vg," "))}function ax(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=eO(r[1]);if(o==="__proto__"||o==="constructor")continue;const i=tO(r[2]||"");t[o]===void 0?t[o]=i:Array.isArray(t[o])?t[o].push(i):t[o]=[t[o],i]}return t}function nO(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${np(e)}=${gh(n)}`).join("&"):`${np(e)}=${gh(t)}`:np(e)}function rO(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>nO(t,e[t])).filter(Boolean).join("&")}const oO=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,iO=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,sO=/^([/\\]\s*){2,}[^/\\]/,aO=/^[\s\0]*(blob|data|javascript|vbscript):$/i,lO=/\/$|\/\?|\/#/,uO=/^\.?\//;function us(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?oO.test(e):iO.test(e)||(t.acceptRelative?sO.test(e):!1)}function cO(e){return!!e&&aO.test(e)}function mh(e="",t){return t?lO.test(e):e.endsWith("/")}function Ug(e="",t){if(!t)return(mh(e)?e.slice(0,-1):e)||"/";if(!mh(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");o>=0&&(n=e.slice(0,o),r=e.slice(o));const[i,...a]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(a.length>0?`?${a.join("?")}`:"")+r}function Wc(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(mh(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");if(o>=0&&(n=e.slice(0,o),r=e.slice(o),!n))return r;const[i,...a]=n.split("?");return i+"/"+(a.length>0?`?${a.join("?")}`:"")+r}function fO(e=""){return e.startsWith("/")}function nb(e=""){return fO(e)?e:"/"+e}function dO(e,t){if(ux(t)||us(e))return e;const n=Ug(t);return e.startsWith(n)?e:jg(n,e)}function rb(e,t){if(ux(t))return e;const n=Ug(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function lx(e,t){const n=mf(e),r={...ax(n.search),...t};return n.search=rO(r),gO(n)}function ux(e){return!e||e==="/"}function pO(e){return e&&e!=="/"}function jg(e,...t){let n=e||"";for(const r of t.filter(o=>pO(o)))if(n){const o=r.replace(uO,"");n=Wc(n)+o}else n=r;return n}function cx(...e){var a,u,c,f;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let o=0;for(const d of n)if(!(!d||d==="/")){for(const[g,h]of d.split(t).entries())if(!(!h||h===".")){if(h===".."){if(r.length===1&&us(r[0]))continue;r.pop(),o--;continue}if(g===1&&((a=r[r.length-1])!=null&&a.endsWith(":/"))){r[r.length-1]+="/"+h;continue}r.push(h),o++}}let i=r.join("/");return o>=0?(u=n[0])!=null&&u.startsWith("/")&&!i.startsWith("/")?i="/"+i:(c=n[0])!=null&&c.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*o)+i,(f=n[n.length-1])!=null&&f.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function hO(e,t,n={}){return n.trailingSlash||(e=Wc(e),t=Wc(t)),n.leadingSlash||(e=nb(e),t=nb(t)),n.encoding||(e=Hc(e),t=Hc(t)),e===t}const fx=Symbol.for("ufo:protocolRelative");function mf(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,g,h=""]=n;return{protocol:g.toLowerCase(),pathname:h,href:g+h,auth:"",host:"",search:"",hash:""}}if(!us(e,{acceptRelative:!0}))return t?mf(t+e):ob(e);const[,r="",o,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,a="",u=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:f,hash:d}=ob(u.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:a,pathname:c,search:f,hash:d,[fx]:!r}}function ob(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function gO(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[fx]?(e.protocol||"")+"//":"")+o+i+t+n+r}class mO extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function vO(e){var c,f,d,g,h;const t=((c=e.error)==null?void 0:c.message)||((f=e.error)==null?void 0:f.toString())||"",n=((d=e.request)==null?void 0:d.method)||((g=e.options)==null?void 0:g.method)||"GET",r=((h=e.request)==null?void 0:h.url)||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"",a=`${o}: ${i}${t?` ${t}`:""}`,u=new mO(a,e.error?{cause:e.error}:void 0);for(const m of["request","options","response"])Object.defineProperty(u,m,{get(){return e[m]}});for(const[m,y]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(u,m,{get(){return e.response&&e.response[y]}});return u}const yO=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function ib(e="GET"){return yO.has(e.toUpperCase())}function bO(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const _O=new Set(["image/svg","application/xml","application/xhtml","application/html"]),wO=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function xO(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return wO.test(t)?"json":_O.has(t)||t.startsWith("text/")?"text":"blob"}function kO(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[o,i]of new n((e==null?void 0:e.headers)||{}))r.headers.set(o,i)}return r}const SO=new Set([408,409,425,429,500,502,503,504]),EO=new Set([101,204,205,304]);function dx(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function o(u){const c=u.error&&u.error.name==="AbortError"&&!u.options.timeout||!1;if(u.options.retry!==!1&&!c){let d;typeof u.options.retry=="number"?d=u.options.retry:d=ib(u.options.method)?0:1;const g=u.response&&u.response.status||500;if(d>0&&(Array.isArray(u.options.retryStatusCodes)?u.options.retryStatusCodes.includes(g):SO.has(g))){const h=u.options.retryDelay||0;return h>0&&await new Promise(m=>setTimeout(m,h)),i(u.request,{...u.options,retry:d-1})}}const f=vO(u);throw Error.captureStackTrace&&Error.captureStackTrace(f,i),f}const i=async function(c,f={}){var m;const d={request:c,options:kO(f,e.defaults,n),response:void 0,error:void 0};d.options.method=(m=d.options.method)==null?void 0:m.toUpperCase(),d.options.onRequest&&await d.options.onRequest(d),typeof d.request=="string"&&(d.options.baseURL&&(d.request=dO(d.request,d.options.baseURL)),(d.options.query||d.options.params)&&(d.request=lx(d.request,{...d.options.params,...d.options.query}))),d.options.body&&ib(d.options.method)&&(bO(d.options.body)?(d.options.body=typeof d.options.body=="string"?d.options.body:JSON.stringify(d.options.body),d.options.headers=new n(d.options.headers||{}),d.options.headers.has("content-type")||d.options.headers.set("content-type","application/json"),d.options.headers.has("accept")||d.options.headers.set("accept","application/json")):("pipeTo"in d.options.body&&typeof d.options.body.pipeTo=="function"||typeof d.options.body.pipe=="function")&&("duplex"in d.options||(d.options.duplex="half")));let g;if(!d.options.signal&&d.options.timeout){const y=new r;g=setTimeout(()=>y.abort(),d.options.timeout),d.options.signal=y.signal}try{d.response=await t(d.request,d.options)}catch(y){return d.error=y,d.options.onRequestError&&await d.options.onRequestError(d),await o(d)}finally{g&&clearTimeout(g)}if(d.response.body&&!EO.has(d.response.status)&&d.options.method!=="HEAD"){const y=(d.options.parseResponse?"json":d.options.responseType)||xO(d.response.headers.get("content-type")||"");switch(y){case"json":{const x=await d.response.text(),_=d.options.parseResponse||bl;d.response._data=_(x);break}case"stream":{d.response._data=d.response.body;break}default:d.response._data=await d.response[y]()}}return d.options.onResponse&&await d.options.onResponse(d),!d.options.ignoreResponseError&&d.response.status>=400&&d.response.status<600?(d.options.onResponseError&&await d.options.onResponseError(d),await o(d)):d.response},a=async function(c,f){return(await i(c,f))._data};return a.raw=i,a.native=(...u)=>t(...u),a.create=(u={})=>dx({...e,defaults:{...e.defaults,...u}}),a}const Hg=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),CO=Hg.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),TO=Hg.Headers,AO=Hg.AbortController,$O=dx({fetch:CO,Headers:TO,AbortController:AO}),IO=$O,RO=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Kc=RO().app,OO=()=>Kc.baseURL,LO=()=>Kc.buildAssetsDir,PO=(...e)=>cx(px(),LO(),...e),px=(...e)=>{const t=Kc.cdnURL||Kc.baseURL;return e.length?cx(t,...e):t};globalThis.__buildAssetsURL=PO,globalThis.__publicAssetsURL=px;globalThis.$fetch||(globalThis.$fetch=IO.create({baseURL:OO()}));function vh(e,t={},n){for(const r in e){const o=e[r],i=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?vh(o,t,i):typeof o=="function"&&(t[i]=o)}return t}const MO={run:e=>e()},DO=()=>MO,hx=typeof console.createTask<"u"?console.createTask:DO;function BO(e,t){const n=t.shift(),r=hx(n);return e.reduce((o,i)=>o.then(()=>r.run(()=>i(...t))),Promise.resolve())}function FO(e,t){const n=t.shift(),r=hx(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function rp(e,t){for(const n of[...e])n(t)}class NO{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!r.allowDeprecated){let a=i.message;a||(a=`${o} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...i)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...i));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=vh(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=vh(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(BO,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(FO,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&rp(this._before,o);const i=t(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&o&&rp(this._after,o)}):(this._after&&o&&rp(this._after,o),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function gx(){return new NO}function zO(e={}){let t,n=!1;const r=a=>{if(t&&t!==a)throw new Error("Context conflict")};let o;if(e.asyncContext){const a=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;a?o=new a:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(o&&t===void 0){const a=o.getStore();if(a!==void 0)return a}return t};return{use:()=>{const a=i();if(a===void 0)throw new Error("Context is not available");return a},tryUse:()=>i(),set:(a,u)=>{u||r(a),t=a,n=!0},unset:()=>{t=void 0,n=!1},call:(a,u)=>{r(a),t=a;try{return o?o.run(a,u):u()}finally{n||(t=void 0)}},async callAsync(a,u){t=a;const c=()=>{t=a},f=()=>t===a?c:void 0;yh.add(f);try{const d=o?o.run(a,u):u();return n||(t=void 0),await d}finally{yh.delete(f)}}}}function VO(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=zO({...e,...r})),t[n],t[n]}}}const qc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},sb="__unctx__",UO=qc[sb]||(qc[sb]=VO()),jO=(e,t={})=>UO.get(e,t),ab="__unctx_async_handlers__",yh=qc[ab]||(qc[ab]=new Set);function _l(e){const t=[];for(const o of yh){const i=o();i&&t.push(i)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const mx=jO("nuxt-app",{asyncContext:!1}),HO="__nuxt_plugin";function WO(e){let t=0;const n={_scope:_g(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.11.2"},get vue(){return n.vueApp.version}},payload:In({data:{},state:{},once:new Set,_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:o=>n._scope.run(()=>GO(n,o)),isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};n.hooks=gx(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,i)=>{const a="$"+o;ic(n,a,i),ic(n.vueApp.config.globalProperties,a,i)},ic(n.vueApp,"$nuxt",n),ic(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",i=>{n.callHook("app:chunkError",{error:i.payload})}),window.useNuxtApp=window.useNuxtApp||ut;const o=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}async function KO(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function qO(e,t){const n=[],r=[],o=[],i=[];let a=0;async function u(c){var d;const f=((d=c.dependsOn)==null?void 0:d.filter(g=>t.some(h=>h._name===g)&&!n.includes(g)))??[];if(f.length>0)r.push([new Set(f),c]);else{const g=KO(e,c).then(async()=>{c._name&&(n.push(c._name),await Promise.all(r.map(async([h,m])=>{h.has(c._name)&&(h.delete(c._name),h.size===0&&(a++,await u(m)))})))});c.parallel?o.push(g.catch(h=>i.push(h))):await g}}for(const c of t)await u(c);if(await Promise.all(o),a)for(let c=0;c{}),e,{[HO]:!0,_name:t})}function GO(e,t,n){const r=()=>n?t(...n):t();return mx.set(e),e.vueApp.runWithContext(r)}function ZO(){var t;let e;return Bg()&&(e=(t=Un())==null?void 0:t.appContext.app.$nuxt),e=e||mx.tryUse(),e||null}function ut(){const e=ZO();if(!e)throw new Error("[nuxt] instance unavailable");return e}function fi(e){return ut().$config}function ic(e,t,n){Object.defineProperty(e,t,{get:()=>n})}const sc=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function YO(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},o=(t||{}).decode||QO;let i=0;for(;i{t+=o};return{toString(){return t},getContext(){return n},dispatch(o){return e.replacer&&(o=e.replacer(o)),this[o===null?"null":typeof o](o)},object(o){if(o&&typeof o.toJSON=="function")return this.object(o.toJSON());const i=Object.prototype.toString.call(o);let a="";const u=i.length;u<10?a="unknown:["+i+"]":a=i.slice(8,u-1),a=a.toLowerCase();let c=null;if((c=n.get(o))===void 0)n.set(o,n.size);else return this.dispatch("[CIRCULAR:"+c+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(o))return r("buffer:"),r(o.toString("utf8"));if(a!=="object"&&a!=="function"&&a!=="asyncfunction")this[a]?this[a](o):e.ignoreUnknown||this.unkown(o,a);else{let f=Object.keys(o);e.unorderedObjects&&(f=f.sort());let d=[];e.respectType!==!1&&!cb(o)&&(d=t6),e.excludeKeys&&(f=f.filter(h=>!e.excludeKeys(h)),d=d.filter(h=>!e.excludeKeys(h))),r("object:"+(f.length+d.length)+":");const g=h=>{this.dispatch(h),r(":"),e.excludeValues||this.dispatch(o[h]),r(",")};for(const h of f)g(h);for(const h of d)g(h)}},array(o,i){if(i=i===void 0?e.unorderedArrays!==!1:i,r("array:"+o.length+":"),!i||o.length<=1){for(const c of o)this.dispatch(c);return}const a=new Map,u=o.map(c=>{const f=vx(e);f.dispatch(c);for(const[d,g]of f.getContext())a.set(d,g);return f.toString()});return n=a,u.sort(),this.array(u,!1)},date(o){return r("date:"+o.toJSON())},symbol(o){return r("symbol:"+o.toString())},unkown(o,i){if(r(i),!!o&&(r(":"),o&&typeof o.entries=="function"))return this.array(Array.from(o.entries()),!0)},error(o){return r("error:"+o.toString())},boolean(o){return r("bool:"+o)},string(o){r("string:"+o.length+":"),r(o)},function(o){r("fn:"),cb(o)?this.dispatch("[native]"):this.dispatch(o.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(o.name)),e.respectFunctionProperties&&this.object(o)},number(o){return r("number:"+o)},xml(o){return r("xml:"+o.toString())},null(){return r("Null")},undefined(){return r("Undefined")},regexp(o){return r("regex:"+o.toString())},uint8array(o){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(o))},uint8clampedarray(o){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(o))},int8array(o){return r("int8array:"),this.dispatch(Array.prototype.slice.call(o))},uint16array(o){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(o))},int16array(o){return r("int16array:"),this.dispatch(Array.prototype.slice.call(o))},uint32array(o){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(o))},int32array(o){return r("int32array:"),this.dispatch(Array.prototype.slice.call(o))},float32array(o){return r("float32array:"),this.dispatch(Array.prototype.slice.call(o))},float64array(o){return r("float64array:"),this.dispatch(Array.prototype.slice.call(o))},arraybuffer(o){return r("arraybuffer:"),this.dispatch(new Uint8Array(o))},url(o){return r("url:"+o.toString())},map(o){r("map:");const i=[...o];return this.array(i,e.unorderedSets!==!1)},set(o){r("set:");const i=[...o];return this.array(i,e.unorderedSets!==!1)},file(o){return r("file:"),this.dispatch([o.name,o.size,o.type,o.lastModfied])},blob(){if(e.ignoreUnknown)return r("[blob]");throw new Error(`Hashing Blob objects is currently not supported -Use "options.replacer" or "options.ignoreUnknown" -`)},domwindow(){return r("domwindow")},bigint(o){return r("bigint:"+o.toString())},process(){return r("process")},timer(){return r("timer")},pipe(){return r("pipe")},tcp(){return r("tcp")},udp(){return r("udp")},tty(){return r("tty")},statwatcher(){return r("statwatcher")},securecontext(){return r("securecontext")},connection(){return r("connection")},zlib(){return r("zlib")},context(){return r("context")},nodescript(){return r("nodescript")},httpparser(){return r("httpparser")},dataview(){return r("dataview")},signal(){return r("signal")},fsevent(){return r("fsevent")},tlswrap(){return r("tlswrap")}}}const yx="[native code] }",n6=yx.length;function cb(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-n6)===yx}class si{constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}toString(t){return(t||r6).stringify(this)}concat(t){if(this.clamp(),this.sigBytes%4)for(let n=0;n>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n>>2]=t.words[n>>>2];return this.sigBytes+=t.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new si([...this.words])}}const r6={stringify(e){const t=[];for(let n=0;n>>2]>>>24-n%4*8&255;t.push((r>>>4).toString(16),(r&15).toString(16))}return t.join("")}},o6={stringify(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[];for(let r=0;r>>2]>>>24-r%4*8&255,i=e.words[r+1>>>2]>>>24-(r+1)%4*8&255,a=e.words[r+2>>>2]>>>24-(r+2)%4*8&255,u=o<<16|i<<8|a;for(let c=0;c<4&&r*8+c*6>>6*(3-c)&63))}return n.join("")}},i6={parse(e){const t=e.length,n=[];for(let r=0;r>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new si(n,t)}},s6={parse(e){return i6.parse(unescape(encodeURIComponent(e)))}};class a6{constructor(){this._data=new si,this._nDataBytes=0,this._minBufferSize=0,this.blockSize=512/32}reset(){this._data=new si,this._nDataBytes=0}_append(t){typeof t=="string"&&(t=s6.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_doProcessBlock(t,n){}_process(t){let n,r=this._data.sigBytes/(this.blockSize*4);t?r=Math.ceil(r):r=Math.max((r|0)-this._minBufferSize,0);const o=r*this.blockSize,i=Math.min(o*4,this._data.sigBytes);if(o){for(let a=0;a>>7)^(w<<14|w>>>18)^w>>>3,A=Ii[h-2],$=(A<<15|A>>>17)^(A<<13|A>>>19)^A>>>10;Ii[h]=E+Ii[h-7]+$+Ii[h-16]}const m=c&f^~c&d,y=o&i^o&a^i&a,x=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),_=(c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25),k=g+_+m+u6[h]+Ii[h],S=x+y;g=d,d=f,f=c,c=u+k|0,u=a,a=i,i=o,o=k+S|0}r[0]=r[0]+o|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+u|0,r[4]=r[4]+c|0,r[5]=r[5]+f|0,r[6]=r[6]+d|0,r[7]=r[7]+g|0}finalize(t){super.finalize(t);const n=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(r+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function f6(e){return new c6().finalize(e).toString(o6)}function d6(e,t={}){const n=typeof e=="string"?e:bh(e,t);return f6(n).slice(0,10)}function bx(e,t,n={}){return e===t||bh(e,n)===bh(t,n)}function op(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function _h(e,t,n=".",r){if(!op(t))return _h(e,{},n,r);const o=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const a=e[i];a!=null&&(r&&r(o,i,a,n)||(Array.isArray(a)&&Array.isArray(o[i])?o[i]=[...a,...o[i]]:op(a)&&op(o[i])?o[i]=_h(a,o[i],(n?`${n}.`:"")+i.toString(),r):o[i]=a))}return o}function Wg(e){return(...t)=>t.reduce((n,r)=>_h(n,r,"",e),{})}const Hl=Wg(),p6=Wg((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function h6(e,t){try{return t in e}catch{return!1}}var g6=Object.defineProperty,m6=(e,t,n)=>t in e?g6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pi=(e,t,n)=>(m6(e,typeof t!="symbol"?t+"":t,n),n);class wh extends Error{constructor(t,n={}){super(t,n),Pi(this,"statusCode",500),Pi(this,"fatal",!1),Pi(this,"unhandled",!1),Pi(this,"statusMessage"),Pi(this,"data"),Pi(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:kh(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=_x(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}Pi(wh,"__h3_error__",!0);function xh(e){if(typeof e=="string")return new wh(e);if(v6(e))return e;const t=new wh(e.message??e.statusMessage??"",{cause:e.cause||e});if(h6(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=kh(e.statusCode,t.statusCode):e.status&&(t.statusCode=kh(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;_x(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function v6(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const y6=/[^\u0009\u0020-\u007E]/g;function _x(e=""){return e.replace(y6,"")}function kh(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const wx=Symbol("layout-meta"),Bn=Symbol("route"),sr=()=>{var e;return(e=ut())==null?void 0:e.$router},wl=()=>Bg()?Ge(Bn,ut()._route):ut()._route;function GK(e){return e}const b6=()=>{try{if(ut()._processingMiddleware)return!0}catch{return!1}return!1},Zs=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:lx(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){const{target:u="_blank",windowFeatures:c={}}=t.open,f=Object.entries(c).filter(([d,g])=>g!==void 0).map(([d,g])=>`${d.toLowerCase()}=${g}`).join(", ");return open(n,u,f),Promise.resolve()}const r=(t==null?void 0:t.external)||us(n,{acceptRelative:!0});if(r){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const u=mf(n).protocol;if(u&&cO(u))throw new Error(`Cannot navigate to a URL with '${u}' protocol.`)}const o=b6();if(!r&&o)return e;const i=sr(),a=ut();return r?(a._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)},xx="__nuxt_error",vf=()=>$t(ut().payload,"error"),Fs=e=>{const t=Wl(e);try{const n=ut(),r=vf();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},_6=async(e={})=>{const t=ut(),n=vf();t.callHook("app:error:cleared",e),e.redirect&&await sr().replace(e.redirect),n.value=null},w6=e=>!!e&&typeof e=="object"&&xx in e,Wl=e=>{const t=xh(e);return Object.defineProperty(t,xx,{value:!0,configurable:!1,writable:!1}),t},x6="modulepreload",k6=function(e,t){return e[0]==="."?new URL(e,t).href:e},db={},S6=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),u=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.all(n.map(c=>{if(c=k6(c,r),c in db)return;db[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(!!r)for(let m=i.length-1;m>=0;m--){const y=i[m];if(y.href===c&&(!f||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":x6,f||(h.as="script",h.crossOrigin=""),h.href=c,u&&h.setAttribute("nonce",u),document.head.appendChild(h),f)return new Promise((m,y)=>{h.addEventListener("load",m),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}return o.then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},Yt=(...e)=>S6(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),E6=-1,C6=-2,T6=-3,A6=-4,$6=-5,I6=-6;function R6(e,t){return O6(JSON.parse(e),t)}function O6(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(i,a=!1){if(i===E6)return;if(i===T6)return NaN;if(i===A6)return 1/0;if(i===$6)return-1/0;if(i===I6)return-0;if(a)throw new Error("Invalid input");if(i in r)return r[i];const u=n[i];if(!u||typeof u!="object")r[i]=u;else if(Array.isArray(u))if(typeof u[0]=="string"){const c=u[0],f=t==null?void 0:t[c];if(f)return r[i]=f(o(u[1]));switch(c){case"Date":r[i]=new Date(u[1]);break;case"Set":const d=new Set;r[i]=d;for(let m=1;m>>9)+65536).toString(16).substring(1,8).toLowerCase()}function pb(e){return e._h||Kg(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function Sx(e,t){const{props:n,tag:r}=e;if(D6.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const o=["id"];r==="meta"&&o.push("name","property","http-equiv");for(const i of o)if(typeof n[i]<"u"){const a=String(n[i]);return t&&!t(a)?!1:`${r}:${i}:${a}`}return!1}function hb(e,t){return e==null?t||null:typeof e=="function"?e(t):e}function Ex(e,t){const n=[],r=t.resolveKeyData||(i=>i.key),o=t.resolveValueData||(i=>i.value);for(const[i,a]of Object.entries(e))n.push(...(Array.isArray(a)?a:[a]).map(u=>{const c={key:i,value:u},f=o(c);return typeof f=="object"?Ex(f,t):Array.isArray(f)?f:{[typeof t.key=="function"?t.key(c):t.key]:r(c),[typeof t.value=="function"?t.value(c):t.value]:f}}).flat());return n}function Cx(e,t){return Object.entries(e).map(([n,r])=>{if(typeof r=="object"&&(r=Cx(r,t)),t.resolve){const o=t.resolve({key:n,value:r});if(typeof o<"u")return o}return typeof r=="number"&&(r=r.toString()),typeof r=="string"&&t.wrapValue&&(r=r.replace(new RegExp(t.wrapValue,"g"),`\\${t.wrapValue}`),r=`${t.wrapValue}${r}${t.wrapValue}`),`${n}${t.keyValueSeparator||""}${r}`}).join(t.entrySeparator||"")}const En=e=>({keyValue:e,metaKey:"property"}),ip=e=>({keyValue:e}),qg={appleItunesApp:{unpack:{entrySeparator:", ",resolve({key:e,value:t}){return`${ko(e)}=${t}`}}},articleExpirationTime:En("article:expiration_time"),articleModifiedTime:En("article:modified_time"),articlePublishedTime:En("article:published_time"),bookReleaseDate:En("book:release_date"),charset:{metaKey:"charset"},contentSecurityPolicy:{unpack:{entrySeparator:"; ",resolve({key:e,value:t}){return`${ko(e)} ${t}`}},metaKey:"http-equiv"},contentType:{metaKey:"http-equiv"},defaultStyle:{metaKey:"http-equiv"},fbAppId:En("fb:app_id"),msapplicationConfig:ip("msapplication-Config"),msapplicationTileColor:ip("msapplication-TileColor"),msapplicationTileImage:ip("msapplication-TileImage"),ogAudioSecureUrl:En("og:audio:secure_url"),ogAudioUrl:En("og:audio"),ogImageSecureUrl:En("og:image:secure_url"),ogImageUrl:En("og:image"),ogSiteName:En("og:site_name"),ogVideoSecureUrl:En("og:video:secure_url"),ogVideoUrl:En("og:video"),profileFirstName:En("profile:first_name"),profileLastName:En("profile:last_name"),profileUsername:En("profile:username"),refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve({key:e,value:t}){if(e==="seconds")return`${t}`}}},robots:{unpack:{entrySeparator:", ",resolve({key:e,value:t}){return typeof t=="boolean"?`${ko(e)}`:`${ko(e)}:${t}`}}},xUaCompatible:{metaKey:"http-equiv"}},Tx=["og","book","article","profile"];function Ax(e){var n;const t=ko(e).split(":")[0];return Tx.includes(t)?"property":((n=qg[e])==null?void 0:n.metaKey)||"name"}function F6(e){var t;return((t=qg[e])==null?void 0:t.keyValue)||ko(e)}function ko(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.split("-")[0];return Tx.includes(n)||n==="twitter"?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function Sh(e){if(Array.isArray(e))return e.map(n=>Sh(n));if(typeof e!="object"||Array.isArray(e))return e;const t={};for(const[n,r]of Object.entries(e))t[ko(n)]=Sh(r);return t}function N6(e,t){const n=qg[t];return t==="refresh"?`${e.seconds};url=${e.url}`:Cx(Sh(e),{keyValueSeparator:"=",entrySeparator:", ",resolve({value:r,key:o}){if(r===null)return"";if(typeof r=="boolean")return`${o}`},...n==null?void 0:n.unpack})}const $x=["og:image","og:video","og:audio","twitter:image"];function Ix(e){const t={};return Object.entries(e).forEach(([n,r])=>{String(r)!=="false"&&n&&(t[n]=r)}),t}function gb(e,t){const n=Ix(t),r=ko(e),o=Ax(r);if($x.includes(r)){const i={};return Object.entries(n).forEach(([a,u])=>{i[`${e}${a==="url"?"":`${a.charAt(0).toUpperCase()}${a.slice(1)}`}`]=u}),Rx(i).sort((a,u)=>{var c,f;return(((c=a[o])==null?void 0:c.length)||0)-(((f=u[o])==null?void 0:f.length)||0)})}return[{[o]:r,...n}]}function Rx(e){const t=[],n={};Object.entries(e).forEach(([o,i])=>{if(!Array.isArray(i)){if(typeof i=="object"&&i){if($x.includes(ko(o))){t.push(...gb(o,i));return}n[o]=Ix(i)}else n[o]=i;return}i.forEach(a=>{t.push(...typeof a=="string"?Rx({[o]:a}):gb(o,a))})});const r=Ex(n,{key({key:o}){return Ax(o)},value({key:o}){return o==="charset"?"charset":"content"},resolveKeyData({key:o}){return F6(o)},resolveValueData({value:o,key:i}){return o===null?"_null":typeof o=="object"?N6(o,i):typeof o=="number"?o.toString():o}});return[...t,...r].map(o=>(o.content==="_null"&&(o.content=null),o))}async function z6(e,t,n){const r={tag:e,props:await Ox(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return kx.forEach(o=>{const i=typeof r.props[o]<"u"?r.props[o]:n[o];typeof i<"u"&&((!["innerHTML","textContent","children"].includes(o)||P6.includes(r.tag))&&(r[o==="children"?"innerHTML":o]=i),delete r.props[o])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function V6(e,t){var r;const n=e==="class"?" ":";";return typeof t=="object"&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,o])=>o).map(([o,i])=>e==="style"?`${o}:${i}`:o)),(r=Array.isArray(t)?t.join(n):t)==null?void 0:r.split(n).filter(o=>o.trim()).filter(Boolean).join(n)}async function Ox(e,t){for(const n of Object.keys(e)){if(["class","style"].includes(n)){e[n]=V6(n,e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!kx.includes(n)){const r=String(e[n]),o=n.startsWith("data-");r==="true"||r===""?e[n]=o?"true":!0:e[n]||(o&&r==="false"?e[n]="false":delete e[n])}}return e}const U6=10;async function j6(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,r])=>typeof r<"u"&&M6.includes(n)).forEach(([n,r])=>{const o=L6(r);t.push(...o.map(i=>z6(n,i,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,r)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<c&&c[f]||void 0,t):u=t[a],typeof u<"u"?(u||"").replace(/"/g,'\\"'):!1}let o=e;try{o=decodeURI(e)}catch{}return(o.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(a=>{const u=r(a.slice(1));typeof u=="string"&&(e=e.replace(new RegExp(`\\${a}(\\W|$)`,"g"),(c,f)=>`${u}${f}`).trim())}),e.includes(jo)&&(e.endsWith(jo)&&(e=e.slice(0,-jo.length).trim()),e.startsWith(jo)&&(e=e.slice(jo.length).trim()),e=e.replace(new RegExp(`\\${jo}\\s*\\${jo}`,"g"),jo),e=Ec(e,{separator:n},n)),e}async function Lx(e,t={}){var d;const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const o=(await e.resolveTags()).map(g=>({tag:g,id:Sc.includes(g.tag)?pb(g):g.tag,shouldRender:!0}));let i=e._dom;if(!i){i={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const g of["body","head"]){const h=(d=n[g])==null?void 0:d.children,m=[];for(const y of[...h].filter(x=>Sc.includes(x.tagName.toLowerCase()))){const x={tag:y.tagName.toLowerCase(),props:await Ox(y.getAttributeNames().reduce((S,w)=>({...S,[w]:y.getAttribute(w)}),{})),innerHTML:y.innerHTML};let _=1,k=Sx(x);for(;k&&m.find(S=>S._d===k);)k=`${k}:${_++}`;x._d=k||void 0,m.push(x),i.elMap[y.getAttribute("data-hid")||pb(x)]=y}}}i.pendingSideEffects={...i.sideEffects||{}},i.sideEffects={};function a(g,h,m){const y=`${g}:${h}`;i.sideEffects[y]=m,delete i.pendingSideEffects[y]}function u({id:g,$el:h,tag:m}){const y=m.tag.endsWith("Attrs");i.elMap[g]=h,y||(["textContent","innerHTML"].forEach(x=>{m[x]&&m[x]!==h[x]&&(h[x]=m[x])}),a(g,"el",()=>{var x;(x=i.elMap[g])==null||x.remove(),delete i.elMap[g]}));for(const[x,_]of Object.entries(m._eventHandlers||{}))h.getAttribute(`data-${x}`)!==""&&((m.tag==="bodyAttrs"?n.defaultView:h).addEventListener(x.replace("on",""),_.bind(h)),h.setAttribute(`data-${x}`,""));Object.entries(m.props).forEach(([x,_])=>{const k=`attr:${x}`;if(x==="class")for(const S of(_||"").split(" ").filter(Boolean))y&&a(g,`${k}:${S}`,()=>h.classList.remove(S)),!h.classList.contains(S)&&h.classList.add(S);else if(x==="style")for(const S of(_||"").split(";").filter(Boolean)){const[w,...E]=S.split(":").map(A=>A.trim());a(g,`${k}:${S}:${w}`,()=>{h.style.removeProperty(w)}),h.style.setProperty(w,E.join(":"))}else h.getAttribute(x)!==_&&h.setAttribute(x,_===!0?"":String(_)),y&&a(g,k,()=>h.removeAttribute(x))})}const c=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const g of o){const{tag:h,shouldRender:m,id:y}=g;if(m){if(h.tag==="title"){n.title=h.textContent;continue}g.$el=g.$el||i.elMap[y],g.$el?u(g):Sc.includes(h.tag)&&c.push(g)}}for(const g of c){const h=g.tag.tagPosition||"head";g.$el=n.createElement(g.tag.tag),u(g),f[h]=f[h]||n.createDocumentFragment(),f[h].appendChild(g.$el)}for(const g of o)await e.hooks.callHook("dom:renderTag",g,n,a);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose),Object.values(i.pendingSideEffects).forEach(g=>g()),e._dom=i,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:o})}async function W6(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await Lx(e,t),delete e._domUpdatePromise,r()}))}function K6(e){return t=>{var r,o;const n=((o=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(i){W6(i,e)}}}}}const q6=["templateParams","htmlAttrs","bodyAttrs"],G6={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(r=>{e.props[r]&&(e.key=e.props[r],delete e.props[r])});const n=Sx(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(r=>{const o=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,i=t[o];if(i){let u=r==null?void 0:r.tagDuplicateStrategy;if(!u&&q6.includes(r.tag)&&(u="merge"),u==="merge"){const c=i.props;["class","style"].forEach(f=>{c[f]&&(r.props[f]?(f==="style"&&!c[f].endsWith(";")&&(c[f]+=";"),r.props[f]=`${c[f]} ${r.props[f]}`):r.props[f]=c[f])}),t[o].props={...c,...r.props};return}else if(r._e===i._e){i._duped=i._duped||[],r._d=`${i._d}:${i._duped.length+1}`,i._duped.push(r);return}else if(Gc(r)>Gc(i))return}const a=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(Sc.includes(r.tag)&&a===0){delete t[o];return}t[o]=r});const n=[];Object.values(t).forEach(r=>{const o=r._duped;delete r._duped,n.push(r),o&&n.push(...o)}),e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},Z6={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},Y6=["script","link","bodyAttrs"],J6=e=>({hooks:{"tags:resolve":function(t){for(const n of t.tags.filter(r=>Y6.includes(r.tag)))Object.entries(n.props).forEach(([r,o])=>{r.startsWith("on")&&typeof o=="function"&&(e.ssr&&yb.includes(r)?n.props[r]=`this.dataset.${r}fired = true`:delete n.props[r],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[r]=o)}),e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||Kg(n.props.src||n.props.href))},"dom:renderTag":function({$el:t,tag:n}){var r,o;for(const i of Object.keys((t==null?void 0:t.dataset)||{}).filter(a=>yb.some(u=>`${u}fired`===a))){const a=i.replace("fired","");(o=(r=n._eventHandlers)==null?void 0:r[a])==null||o.call(t,new Event(a.replace("on","")))}}}}),X6=["link","style","script","noscript"],Q6={hooks:{"tag:normalise":({tag:e})=>{e.key&&X6.includes(e.tag)&&(e.props["data-hid"]=e._h=Kg(e.key))}}},eL={hooks:{"tags:resolve":e=>{const t=n=>{var r;return(r=e.tags.find(o=>o._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of H6)for(const o of e.tags.filter(i=>typeof i.tagPriority=="string"&&i.tagPriority.startsWith(n))){const i=t(o.tagPriority.replace(n,""));typeof i<"u"&&(o._p=i+r)}e.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>Gc(n)-Gc(r))}}},tL={meta:"content",link:"href",htmlAttrs:"lang"},nL=e=>({hooks:{"tags:resolve":t=>{var u;const{tags:n}=t,r=(u=n.find(c=>c.tag==="title"))==null?void 0:u.textContent,o=n.findIndex(c=>c.tag==="templateParams"),i=o!==-1?n[o].props:{},a=i.separator||"|";delete i.separator,i.pageTitle=Ec(i.pageTitle||r||"",i,a);for(const c of n.filter(f=>f.processTemplateParams!==!1)){const f=tL[c.tag];f&&typeof c.props[f]=="string"?c.props[f]=Ec(c.props[f],i,a):(c.processTemplateParams===!0||["titleTemplate","title"].includes(c.tag))&&["innerHTML","textContent"].forEach(d=>{typeof c[d]=="string"&&(c[d]=Ec(c[d],i,a))})}e._templateParams=i,e._separator=a,t.tags=n.filter(c=>c.tag!=="templateParams")}}}),rL={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(o=>o.tag==="titleTemplate");const r=t.findIndex(o=>o.tag==="title");if(r!==-1&&n!==-1){const o=hb(t[n].textContent,t[r].textContent);o!==null?t[r].textContent=o||t[r].textContent:delete t[r]}else if(n!==-1){const o=hb(t[n].textContent);o!==null&&(t[n].textContent=o,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}},oL={hooks:{"tags:afterResolve":function(e){for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&["application/ld+json","application/json"].includes(t.props.type)?t.innerHTML=t.innerHTML.replace(/{u.dirty=!0,t.callHook("entries:updated",u)};let o=0,i=[];const a=[],u={plugins:a,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return i},use(c){const f=typeof c=="function"?c(u):c;(!f.key||!a.some(d=>d.key===f.key))&&(a.push(f),bb(f.mode,n)&&t.addHooks(f.hooks||{}))},push(c,f){f==null||delete f.head;const d={_i:o++,input:c,...f};return bb(d.mode,n)&&(i.push(d),r()),{dispose(){i=i.filter(g=>g._i!==d._i),t.callHook("entries:updated",u),r()},patch(g){i=i.map(h=>(h._i===d._i&&(h.input=d.input=g),h)),r()}}},async resolveTags(){const c={tags:[],entries:[...i]};await t.callHook("entries:resolve",c);for(const f of c.entries){const d=f.resolvedInput||f.input;if(f.resolvedInput=await(f.transform?f.transform(d):d),f.resolvedInput)for(const g of await j6(f)){const h={tag:g,entry:f,resolvedOptions:u.resolvedOptions};await t.callHook("tag:normalise",h),c.tags.push(h.tag)}}return await t.callHook("tags:beforeResolve",c),await t.callHook("tags:resolve",c),await t.callHook("tags:afterResolve",c),c.tags},ssr:n};return[G6,Z6,J6,Q6,eL,nL,rL,oL,...(e==null?void 0:e.plugins)||[]].forEach(c=>u.use(c)),u.hooks.callHook("init",u),u}function aL(){return Px}const lL=Qw.startsWith("3");function uL(e){return typeof e=="function"?e():R(e)}function Zc(e,t=""){if(e instanceof Promise)return e;const n=uL(e);return!e||!n?n:Array.isArray(n)?n.map(r=>Zc(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,o])=>r==="titleTemplate"||r.startsWith("on")?[r,R(o)]:[r,Zc(o,r)])):n}const cL={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=Zc(t.input)}}},Mx="usehead";function fL(e){return{install(n){lL&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Mx,e))}}.install}function dL(e={}){e.domDelayFn=e.domDelayFn||(n=>an(()=>setTimeout(()=>n(),0)));const t=iL(e);return t.use(cL),t.install=fL(t),t}const Eh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ch="__unhead_injection_handler__";function pL(e){Eh[Ch]=e}function hL(){if(Ch in Eh)return Eh[Ch]();const e=Ge(Mx);return e||aL()}function gL(e,t={}){const n=t.head||hL();if(n)return n.ssr?n.push(e,t):mL(n,e,t)}function mL(e,t,n={}){const r=ee(!1),o=ee({});rn(()=>{o.value=r.value?{}:Zc(t)});const i=e.push(o.value,n);return ht(o,u=>{i.patch(u)}),Un()&&(Vl(()=>{i.dispose()}),Tw(()=>{r.value=!0}),Cw(()=>{r.value=!1})),i}function Wr(e){if(typeof e!="object")return e;var t,n,r=Object.prototype.toString.call(e);if(r==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){n=new e.constructor;for(t in e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=Wr(e[t]))}else{n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:Wr(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=Wr(e[t])}return n}if(r==="[object Array]"){for(t=e.length,n=Array(t);t--;)n[t]=Wr(e[t]);return n}return r==="[object Set]"?(n=new Set,e.forEach(function(o){n.add(Wr(o))}),n):r==="[object Map]"?(n=new Map,e.forEach(function(o,i){n.set(Wr(i),Wr(o))}),n):r==="[object Date]"?new Date(+e):r==="[object RegExp]"?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r==="[object DataView]"?new e.constructor(Wr(e.buffer)):r==="[object ArrayBuffer]"?e.slice(0):r.slice(-6)==="Array]"?new e.constructor(e):e}const vL={ui:{primary:"indigo",gray:"stone"}},yL={nuxt:{},ui:{primary:"green",gray:"cool",colors:["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","primary","backdrop","body"],strategy:"merge"}},Ve=p6(vL,yL);function yf(){const e=ut();return e._appConfig||(e._appConfig=In(Ve)),e._appConfig}const bL=!1,Th=!1,_L=!1,wL={componentName:"NuxtLink"},xL={deep:!0},kL={},SL="#__nuxt";async function EL(e){return null}let ac=null;async function CL(){if(ac)return ac;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await TL(e.textContent||""),n=e.dataset.src?await EL(e.dataset.src):void 0;return ac={...t,...n,...window.__NUXT__},ac}async function TL(e){return await R6(e,ut()._payloadRevivers)}function AL(e,t){ut()._payloadRevivers[e]=t}const _b={NuxtError:e=>Wl(e),EmptyShallowRef:e=>no(e==="_"?void 0:e==="0n"?BigInt(0):bl(e)),EmptyRef:e=>ee(e==="_"?void 0:e==="0n"?BigInt(0):bl(e)),ShallowRef:e=>no(e),ShallowReactive:e=>Fl(e),Ref:e=>ee(e),Reactive:e=>In(e)},$L=ir({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in _b)AL(r,_b[r]);Object.assign(e.payload,([t,n]=_l(()=>e.runWithContext(CL)),t=await t,n(),t)),window.__NUXT__=e.payload}}),IL=[],RL=ir({name:"nuxt:head",enforce:"pre",setup(e){const t=dL({plugins:IL});pL(()=>ut().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Lx(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! - * vue-router v4.3.2 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */const Bs=typeof document<"u";function OL(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const xt=Object.assign;function sp(e,t){const n={};for(const r in t){const o=t[r];n[r]=Mr(o)?o.map(e):e(o)}return n}const ol=()=>{},Mr=Array.isArray,Dx=/#/g,LL=/&/g,PL=/\//g,ML=/=/g,DL=/\?/g,Bx=/\+/g,BL=/%5B/g,FL=/%5D/g,Fx=/%5E/g,NL=/%60/g,Nx=/%7B/g,zL=/%7C/g,zx=/%7D/g,VL=/%20/g;function Gg(e){return encodeURI(""+e).replace(zL,"|").replace(BL,"[").replace(FL,"]")}function UL(e){return Gg(e).replace(Nx,"{").replace(zx,"}").replace(Fx,"^")}function Ah(e){return Gg(e).replace(Bx,"%2B").replace(VL,"+").replace(Dx,"%23").replace(LL,"%26").replace(NL,"`").replace(Nx,"{").replace(zx,"}").replace(Fx,"^")}function jL(e){return Ah(e).replace(ML,"%3D")}function HL(e){return Gg(e).replace(Dx,"%23").replace(DL,"%3F")}function WL(e){return e==null?"":HL(e).replace(PL,"%2F")}function xl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const KL=/\/$/,qL=e=>e.replace(KL,"");function ap(e,t,n="/"){let r,o={},i="",a="";const u=t.indexOf("#");let c=t.indexOf("?");return u=0&&(c=-1),c>-1&&(r=t.slice(0,c),i=t.slice(c+1,u>-1?u:t.length),o=e(i)),u>-1&&(r=r||t.slice(0,u),a=t.slice(u,t.length)),r=JL(r??t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:xl(a)}}function GL(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function wb(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ZL(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&na(t.matched[r],n.matched[o])&&Vx(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function na(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Vx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!YL(e[n],t[n]))return!1;return!0}function YL(e,t){return Mr(e)?xb(e,t):Mr(t)?xb(t,e):e===t}function xb(e,t){return Mr(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function JL(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,a,u;for(a=0;a1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a).join("/")}var kl;(function(e){e.pop="pop",e.push="push"})(kl||(kl={}));var il;(function(e){e.back="back",e.forward="forward",e.unknown=""})(il||(il={}));function XL(e){if(!e)if(Bs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),qL(e)}const QL=/^[^#]+#/;function e8(e,t){return e.replace(QL,"#")+t}function t8(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const bf=()=>({left:window.scrollX,top:window.scrollY});function n8(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=t8(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function kb(e,t){return(history.state?history.state.position-t:-1)+e}const $h=new Map;function r8(e,t){$h.set(e,t)}function o8(e){const t=$h.get(e);return $h.delete(e),t}let i8=()=>location.protocol+"//"+location.host;function Ux(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let u=o.includes(e.slice(i))?e.slice(i).length:1,c=o.slice(u);return c[0]!=="/"&&(c="/"+c),wb(c,"")}return wb(n,e)+r+o}function s8(e,t,n,r){let o=[],i=[],a=null;const u=({state:h})=>{const m=Ux(e,location),y=n.value,x=t.value;let _=0;if(h){if(n.value=m,t.value=h,a&&a===y){a=null;return}_=x?h.position-x.position:0}else r(m);o.forEach(k=>{k(n.value,y,{delta:_,type:kl.pop,direction:_?_>0?il.forward:il.back:il.unknown})})};function c(){a=n.value}function f(h){o.push(h);const m=()=>{const y=o.indexOf(h);y>-1&&o.splice(y,1)};return i.push(m),m}function d(){const{history:h}=window;h.state&&h.replaceState(xt({},h.state,{scroll:bf()}),"")}function g(){for(const h of i)h();i=[],window.removeEventListener("popstate",u),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",u),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:c,listen:f,destroy:g}}function Sb(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?bf():null}}function a8(e){const{history:t,location:n}=window,r={value:Ux(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,f,d){const g=e.indexOf("#"),h=g>-1?(n.host&&document.querySelector("base")?e:e.slice(g))+c:i8()+e+c;try{t[d?"replaceState":"pushState"](f,"",h),o.value=f}catch(m){console.error(m),n[d?"replace":"assign"](h)}}function a(c,f){const d=xt({},t.state,Sb(o.value.back,c,o.value.forward,!0),f,{position:o.value.position});i(c,d,!0),r.value=c}function u(c,f){const d=xt({},o.value,t.state,{forward:c,scroll:bf()});i(d.current,d,!0);const g=xt({},Sb(r.value,c,null),{position:d.position+1},f);i(c,g,!1),r.value=c}return{location:r,state:o,push:u,replace:a}}function jx(e){e=XL(e);const t=a8(e),n=s8(e,t.state,t.location,t.replace);function r(i,a=!0){a||n.pauseListeners(),history.go(i)}const o=xt({location:"",base:e,go:r,createHref:e8.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function l8(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),jx(e)}function u8(e){return typeof e=="string"||e&&typeof e=="object"}function Hx(e){return typeof e=="string"||typeof e=="symbol"}const Ir={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Wx=Symbol("");var Eb;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Eb||(Eb={}));function ra(e,t){return xt(new Error,{type:e,[Wx]:!0},t)}function go(e,t){return e instanceof Error&&Wx in e&&(t==null||!!(e.type&t))}const Cb="[^/]+?",c8={sensitive:!1,strict:!1,start:!0,end:!0},f8=/[.+*?^${}()[\]/\\]/g;function d8(e,t){const n=xt({},c8,t),r=[];let o=n.start?"^":"";const i=[];for(const f of e){const d=f.length?[]:[90];n.strict&&!f.length&&(o+="/");for(let g=0;gt.length?t.length===1&&t[0]===80?1:-1:0}function h8(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const g8={type:0,value:""},m8=/[a-zA-Z0-9_]/;function v8(e){if(!e)return[[]];if(e==="/")return[[g8]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${f}": ${m}`)}let n=0,r=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let u=0,c,f="",d="";function g(){f&&(n===0?i.push({type:0,value:f}):n===1||n===2||n===3?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:f,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),f="")}function h(){f+=c}for(;u{a(S)}:ol}function a(d){if(Hx(d)){const g=r.get(d);g&&(r.delete(d),n.splice(n.indexOf(g),1),g.children.forEach(a),g.alias.forEach(a))}else{const g=n.indexOf(d);g>-1&&(n.splice(g,1),d.record.name&&r.delete(d.record.name),d.children.forEach(a),d.alias.forEach(a))}}function u(){return n}function c(d){let g=0;for(;g=0&&(d.record.path!==n[g].record.path||!Kx(d,n[g]));)g++;n.splice(g,0,d),d.record.name&&!$b(d)&&r.set(d.record.name,d)}function f(d,g){let h,m={},y,x;if("name"in d&&d.name){if(h=r.get(d.name),!h)throw ra(1,{location:d});x=h.record.name,m=xt(Ab(g.params,h.keys.filter(S=>!S.optional).concat(h.parent?h.parent.keys.filter(S=>S.optional):[]).map(S=>S.name)),d.params&&Ab(d.params,h.keys.map(S=>S.name))),y=h.stringify(m)}else if(d.path!=null)y=d.path,h=n.find(S=>S.re.test(y)),h&&(m=h.parse(y),x=h.record.name);else{if(h=g.name?r.get(g.name):n.find(S=>S.re.test(g.path)),!h)throw ra(1,{location:d,currentLocation:g});x=h.record.name,m=xt({},g.params,d.params),y=h.stringify(m)}const _=[];let k=h;for(;k;)_.unshift(k.record),k=k.parent;return{name:x,path:y,params:m,matched:_,meta:x8(_)}}return e.forEach(d=>i(d)),{addRoute:i,resolve:f,removeRoute:a,getRoutes:u,getRecordMatcher:o}}function Ab(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function _8(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:w8(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function w8(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function $b(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function x8(e){return e.reduce((t,n)=>xt(t,n.meta),{})}function Ib(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Kx(e,t){return t.children.some(n=>n===e||Kx(e,n))}function k8(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oi&&Ah(i)):[r&&Ah(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function S8(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Mr(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const E8=Symbol(""),Ob=Symbol(""),Zg=Symbol(""),Yg=Symbol(""),Ih=Symbol("");function Ba(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Qo(e,t,n,r,o,i=a=>a()){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((u,c)=>{const f=h=>{h===!1?c(ra(4,{from:n,to:t})):h instanceof Error?c(h):u8(h)?c(ra(2,{from:t,to:h})):(a&&r.enterCallbacks[o]===a&&typeof h=="function"&&a.push(h),u())},d=i(()=>e.call(r&&r.instances[o],t,n,f));let g=Promise.resolve(d);e.length<3&&(g=g.then(f)),g.catch(h=>c(h))})}function lp(e,t,n,r,o=i=>i()){const i=[];for(const a of e)for(const u in a.components){let c=a.components[u];if(!(t!=="beforeRouteEnter"&&!a.instances[u]))if(C8(c)){const d=(c.__vccOpts||c)[t];d&&i.push(Qo(d,n,r,a,u,o))}else{let f=c();i.push(()=>f.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${u}" at "${a.path}"`));const g=OL(d)?d.default:d;a.components[u]=g;const m=(g.__vccOpts||g)[t];return m&&Qo(m,n,r,a,u,o)()}))}}return i}function C8(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Lb(e){const t=Ge(Zg),n=Ge(Yg),r=z(()=>{const c=R(e.to);return t.resolve(c)}),o=z(()=>{const{matched:c}=r.value,{length:f}=c,d=c[f-1],g=n.matched;if(!d||!g.length)return-1;const h=g.findIndex(na.bind(null,d));if(h>-1)return h;const m=Pb(c[f-2]);return f>1&&Pb(d)===m&&g[g.length-1].path!==m?g.findIndex(na.bind(null,c[f-2])):h}),i=z(()=>o.value>-1&&I8(n.params,r.value.params)),a=z(()=>o.value>-1&&o.value===n.matched.length-1&&Vx(n.params,r.value.params));function u(c={}){return $8(c)?t[R(e.replace)?"replace":"push"](R(e.to)).catch(ol):Promise.resolve()}return{route:r,href:z(()=>r.value.href),isActive:i,isExactActive:a,navigate:u}}const T8=xe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Lb,setup(e,{slots:t}){const n=In(Lb(e)),{options:r}=Ge(Zg),o=z(()=>({[Mb(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Mb(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),A8=T8;function $8(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function I8(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!Mr(o)||o.length!==r.length||r.some((i,a)=>i!==o[a]))return!1}return!0}function Pb(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Mb=(e,t,n)=>e??t??n,R8=xe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ge(Ih),o=z(()=>e.route||r.value),i=Ge(Ob,0),a=z(()=>{let f=R(i);const{matched:d}=o.value;let g;for(;(g=d[f])&&!g.components;)f++;return f}),u=z(()=>o.value.matched[a.value]);kt(Ob,z(()=>a.value+1)),kt(E8,u),kt(Ih,o);const c=ee();return ht(()=>[c.value,u.value,e.name],([f,d,g],[h,m,y])=>{d&&(d.instances[g]=f,m&&m!==d&&f&&f===h&&(d.leaveGuards.size||(d.leaveGuards=m.leaveGuards),d.updateGuards.size||(d.updateGuards=m.updateGuards))),f&&d&&(!m||!na(d,m)||!h)&&(d.enterCallbacks[g]||[]).forEach(x=>x(f))},{flush:"post"}),()=>{const f=o.value,d=e.name,g=u.value,h=g&&g.components[d];if(!h)return Db(n.default,{Component:h,route:f});const m=g.props[d],y=m?m===!0?f.params:typeof m=="function"?m(f):m:null,_=Qe(h,xt({},y,t,{onVnodeUnmounted:k=>{k.component.isUnmounted&&(g.instances[d]=null)},ref:c}));return Db(n.default,{Component:_,route:f})||_}}});function Db(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qx=R8;function O8(e){const t=b8(e.routes,e),n=e.parseQuery||k8,r=e.stringifyQuery||Rb,o=e.history,i=Ba(),a=Ba(),u=Ba(),c=no(Ir);let f=Ir;Bs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=sp.bind(null,Q=>""+Q),g=sp.bind(null,WL),h=sp.bind(null,xl);function m(Q,ge){let he,Ce;return Hx(Q)?(he=t.getRecordMatcher(Q),Ce=ge):Ce=Q,t.addRoute(Ce,he)}function y(Q){const ge=t.getRecordMatcher(Q);ge&&t.removeRoute(ge)}function x(){return t.getRoutes().map(Q=>Q.record)}function _(Q){return!!t.getRecordMatcher(Q)}function k(Q,ge){if(ge=xt({},ge||c.value),typeof Q=="string"){const M=ap(n,Q,ge.path),q=t.resolve({path:M.path},ge),oe=o.createHref(M.fullPath);return xt(M,q,{params:h(q.params),hash:xl(M.hash),redirectedFrom:void 0,href:oe})}let he;if(Q.path!=null)he=xt({},Q,{path:ap(n,Q.path,ge.path).path});else{const M=xt({},Q.params);for(const q in M)M[q]==null&&delete M[q];he=xt({},Q,{params:g(M)}),ge.params=g(ge.params)}const Ce=t.resolve(he,ge),Je=Q.hash||"";Ce.params=d(h(Ce.params));const gt=GL(r,xt({},Q,{hash:UL(Je),path:Ce.path})),I=o.createHref(gt);return xt({fullPath:gt,hash:Je,query:r===Rb?S8(Q.query):Q.query||{}},Ce,{redirectedFrom:void 0,href:I})}function S(Q){return typeof Q=="string"?ap(n,Q,c.value.path):xt({},Q)}function w(Q,ge){if(f!==Q)return ra(8,{from:ge,to:Q})}function E(Q){return D(Q)}function A(Q){return E(xt(S(Q),{replace:!0}))}function $(Q){const ge=Q.matched[Q.matched.length-1];if(ge&&ge.redirect){const{redirect:he}=ge;let Ce=typeof he=="function"?he(Q):he;return typeof Ce=="string"&&(Ce=Ce.includes("?")||Ce.includes("#")?Ce=S(Ce):{path:Ce},Ce.params={}),xt({query:Q.query,hash:Q.hash,params:Ce.path!=null?{}:Q.params},Ce)}}function D(Q,ge){const he=f=k(Q),Ce=c.value,Je=Q.state,gt=Q.force,I=Q.replace===!0,M=$(he);if(M)return D(xt(S(M),{state:typeof M=="object"?xt({},Je,M.state):Je,force:gt,replace:I}),ge||he);const q=he;q.redirectedFrom=ge;let oe;return!gt&&ZL(r,Ce,he)&&(oe=ra(16,{to:q,from:Ce}),$e(Ce,Ce,!0,!1)),(oe?Promise.resolve(oe):N(q,Ce)).catch(Y=>go(Y)?go(Y,2)?Y:Dt(Y):me(Y,q,Ce)).then(Y=>{if(Y){if(go(Y,2))return D(xt({replace:I},S(Y.to),{state:typeof Y.to=="object"?xt({},Je,Y.to.state):Je,force:gt}),ge||q)}else Y=K(q,Ce,!0,I,Je);return W(q,Ce,Y),Y})}function B(Q,ge){const he=w(Q,ge);return he?Promise.reject(he):Promise.resolve()}function V(Q){const ge=St.values().next().value;return ge&&typeof ge.runWithContext=="function"?ge.runWithContext(Q):Q()}function N(Q,ge){let he;const[Ce,Je,gt]=L8(Q,ge);he=lp(Ce.reverse(),"beforeRouteLeave",Q,ge);for(const M of Ce)M.leaveGuards.forEach(q=>{he.push(Qo(q,Q,ge))});const I=B.bind(null,Q,ge);return he.push(I),ft(he).then(()=>{he=[];for(const M of i.list())he.push(Qo(M,Q,ge));return he.push(I),ft(he)}).then(()=>{he=lp(Je,"beforeRouteUpdate",Q,ge);for(const M of Je)M.updateGuards.forEach(q=>{he.push(Qo(q,Q,ge))});return he.push(I),ft(he)}).then(()=>{he=[];for(const M of gt)if(M.beforeEnter)if(Mr(M.beforeEnter))for(const q of M.beforeEnter)he.push(Qo(q,Q,ge));else he.push(Qo(M.beforeEnter,Q,ge));return he.push(I),ft(he)}).then(()=>(Q.matched.forEach(M=>M.enterCallbacks={}),he=lp(gt,"beforeRouteEnter",Q,ge,V),he.push(I),ft(he))).then(()=>{he=[];for(const M of a.list())he.push(Qo(M,Q,ge));return he.push(I),ft(he)}).catch(M=>go(M,8)?M:Promise.reject(M))}function W(Q,ge,he){u.list().forEach(Ce=>V(()=>Ce(Q,ge,he)))}function K(Q,ge,he,Ce,Je){const gt=w(Q,ge);if(gt)return gt;const I=ge===Ir,M=Bs?history.state:{};he&&(Ce||I?o.replace(Q.fullPath,xt({scroll:I&&M&&M.scroll},Je)):o.push(Q.fullPath,Je)),c.value=Q,$e(Q,ge,he,I),Dt()}let fe;function ae(){fe||(fe=o.listen((Q,ge,he)=>{if(!Bt.listening)return;const Ce=k(Q),Je=$(Ce);if(Je){D(xt(Je,{replace:!0}),Ce).catch(ol);return}f=Ce;const gt=c.value;Bs&&r8(kb(gt.fullPath,he.delta),bf()),N(Ce,gt).catch(I=>go(I,12)?I:go(I,2)?(D(I.to,Ce).then(M=>{go(M,20)&&!he.delta&&he.type===kl.pop&&o.go(-1,!1)}).catch(ol),Promise.reject()):(he.delta&&o.go(-he.delta,!1),me(I,Ce,gt))).then(I=>{I=I||K(Ce,gt,!1),I&&(he.delta&&!go(I,8)?o.go(-he.delta,!1):he.type===kl.pop&&go(I,20)&&o.go(-1,!1)),W(Ce,gt,I)}).catch(ol)}))}let ye=Ba(),re=Ba(),ke;function me(Q,ge,he){Dt(Q);const Ce=re.list();return Ce.length?Ce.forEach(Je=>Je(Q,ge,he)):console.error(Q),Promise.reject(Q)}function bt(){return ke&&c.value!==Ir?Promise.resolve():new Promise((Q,ge)=>{ye.add([Q,ge])})}function Dt(Q){return ke||(ke=!Q,ae(),ye.list().forEach(([ge,he])=>Q?he(Q):ge()),ye.reset()),Q}function $e(Q,ge,he,Ce){const{scrollBehavior:Je}=e;if(!Bs||!Je)return Promise.resolve();const gt=!he&&o8(kb(Q.fullPath,0))||(Ce||!he)&&history.state&&history.state.scroll||null;return an().then(()=>Je(Q,ge,gt)).then(I=>I&&n8(I)).catch(I=>me(I,Q,ge))}const Be=Q=>o.go(Q);let It;const St=new Set,Bt={currentRoute:c,listening:!0,addRoute:m,removeRoute:y,hasRoute:_,getRoutes:x,resolve:k,options:e,push:E,replace:A,go:Be,back:()=>Be(-1),forward:()=>Be(1),beforeEach:i.add,beforeResolve:a.add,afterEach:u.add,onError:re.add,isReady:bt,install(Q){const ge=this;Q.component("RouterLink",A8),Q.component("RouterView",qx),Q.config.globalProperties.$router=ge,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>R(c)}),Bs&&!It&&c.value===Ir&&(It=!0,E(o.location).catch(Je=>{}));const he={};for(const Je in Ir)Object.defineProperty(he,Je,{get:()=>c.value[Je],enumerable:!0});Q.provide(Zg,ge),Q.provide(Yg,Fl(he)),Q.provide(Ih,c);const Ce=Q.unmount;St.add(Q),Q.unmount=function(){St.delete(Q),St.size<1&&(f=Ir,fe&&fe(),fe=null,c.value=Ir,It=!1,ke=!1),Ce()}}};function ft(Q){return Q.reduce((ge,he)=>ge.then(()=>V(he)),Promise.resolve())}return Bt}function L8(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;ana(f,u))?r.push(u):n.push(u));const c=e.matched[a];c&&(t.matched.find(f=>na(f,c))||o.push(c))}return[n,r,o]}function P8(){return Ge(Yg)}const M8=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),Rh=(e,t)=>{const n=e.route.matched.find(o=>{var i;return((i=o.components)==null?void 0:i.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&M8(e.route,n));return typeof r=="function"?r(e.route):r},D8=(e,t)=>({default:()=>e?Qe(w4,e===!0?{}:e,t):t});function Jg(e){return Array.isArray(e)?e:[e]}const up=null,Zn={middleware:["has-plan-middleware"]},cp=null,fp=null,dp=null,pp=null,hp=null,gp=null,mp=null,vp=null,yp=null,bp=null,_p=null,Bb=[{name:"backtest-id",path:"/backtest/:id()",meta:{},alias:[],redirect:up==null?void 0:up.redirect,component:()=>Yt(()=>import("./DZcjhpyd.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(e=>e.default||e)},{name:(Zn==null?void 0:Zn.name)??"backtest-benchmark",path:(Zn==null?void 0:Zn.path)??"/backtest/benchmark",meta:Zn||{},alias:(Zn==null?void 0:Zn.alias)||[],redirect:Zn==null?void 0:Zn.redirect,component:()=>Yt(()=>import("./BsI-LjDw.js"),__vite__mapDeps([11,1,2,10]),import.meta.url).then(e=>e.default||e)},{name:"backtest",path:"/backtest",meta:{},alias:[],redirect:cp==null?void 0:cp.redirect,component:()=>Yt(()=>import("./C2f3eZm0.js"),[],import.meta.url).then(e=>e.default||e)},{name:"candles",path:"/candles",meta:{},alias:[],redirect:fp==null?void 0:fp.redirect,component:()=>Yt(()=>import("./DpeTf5TE.js"),__vite__mapDeps([12,6,5,13,14,10]),import.meta.url).then(e=>e.default||e)},{name:"candles-manage",path:"/candles/manage",meta:{},alias:[],redirect:dp==null?void 0:dp.redirect,component:()=>Yt(()=>import("./AfT-3tsD.js"),__vite__mapDeps([15,5,13,14]),import.meta.url).then(e=>e.default||e)},{name:"exchange-api-keys",path:"/exchange-api-keys",meta:{},alias:[],redirect:pp==null?void 0:pp.redirect,component:()=>Yt(()=>import("./BiSP3ZHa.js"),__vite__mapDeps([16,6,4,10,17]),import.meta.url).then(e=>e.default||e)},{name:"index",path:"/",meta:{},alias:[],redirect:hp==null?void 0:hp.redirect,component:()=>Yt(()=>import("./DGVnIMXm.js"),__vite__mapDeps([18,10]),import.meta.url).then(e=>e.default||e)},{name:"live-id",path:"/live/:id()",meta:{},alias:[],redirect:gp==null?void 0:gp.redirect,component:()=>Yt(()=>import("./C1ds8lgE.js"),__vite__mapDeps([19,2,3,4,5,6,7,8,10]),import.meta.url).then(e=>e.default||e)},{name:"live",path:"/live",meta:{},alias:[],redirect:mp==null?void 0:mp.redirect,component:()=>Yt(()=>import("./BXHwgUTK.js"),[],import.meta.url).then(e=>e.default||e)},{name:"notification-api-keys",path:"/notification-api-keys",meta:{},alias:[],redirect:vp==null?void 0:vp.redirect,component:()=>Yt(()=>import("./BuNeS589.js"),__vite__mapDeps([20,6,4,10,17]),import.meta.url).then(e=>e.default||e)},{name:"optimization",path:"/optimization",meta:{},alias:[],redirect:yp==null?void 0:yp.redirect,component:()=>Yt(()=>import("./Dhn74Fye.js"),__vite__mapDeps([21,3,4,5,6,7,10]),import.meta.url).then(e=>e.default||e)},{name:"strategies-name",path:"/strategies/:name()",meta:{},alias:[],redirect:bp==null?void 0:bp.redirect,component:()=>Yt(()=>import("./C40CRuom.js"),__vite__mapDeps([22,23,10]),import.meta.url).then(e=>e.default||e)},{name:"strategies",path:"/strategies",meta:{},alias:[],redirect:_p==null?void 0:_p.redirect,component:()=>Yt(()=>import("./CAxE-8yN.js"),__vite__mapDeps([24,9,10,23]),import.meta.url).then(e=>e.default||e)}],Gx=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?Qe(e,t,n):(r=n.default)==null?void 0:r.call(n)}});function Fb(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function B8(e,t){return e===t||t===Ir?!1:Fb(e)!==Fb(t)?!0:!e.matched.every((r,o)=>{var i,a;return r.components&&r.components.default===((a=(i=t.matched[o])==null?void 0:i.components)==null?void 0:a.default)})}function Nb(e,t=!1){if(e){if(e.nodeName==="#comment"&&e.nodeValue==="[")return Zx(e,[],t);if(t){const n=e.cloneNode(!0);return n.querySelectorAll("[data-island-slot]").forEach(r=>{r.innerHTML=""}),[n.outerHTML]}return[e.outerHTML]}return null}function Zx(e,t=[],n=!1){if(e&&e.nodeName){if(N8(e))return t;if(!F8(e)){const r=e.cloneNode(!0);n&&r.querySelectorAll("[data-island-slot]").forEach(o=>{o.innerHTML=""}),t.push(r.outerHTML)}Zx(e.nextSibling,t,n)}return t}function F8(e){return e.nodeName==="#comment"&&e.nodeValue==="["}function N8(e){return e.nodeName==="#comment"&&e.nodeValue==="]"}const z8={scrollBehavior(e,t,n){var f;const r=ut(),o=((f=sr().options)==null?void 0:f.scrollBehaviorType)??"auto";let i=n||void 0;const a=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!i&&t&&e&&a!==!1&&B8(e,t)&&(i={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:zb(e.hash),behavior:o}:!1;const u=d=>!!(d.meta.pageTransition??Th),c=u(t)&&u(e)?"page:transition:finish":"page:finish";return new Promise(d=>{r.hooks.hookOnce(c,async()=>{await new Promise(g=>setTimeout(g,0)),e.hash&&(i={el:e.hash,top:zb(e.hash),behavior:o}),d(i)})})}};function zb(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}const V8={hashMode:!0,scrollBehaviorType:"auto"},Yn={...V8,...z8},U8=async e=>{var c;let t,n;if(!((c=e.meta)!=null&&c.validate))return;const r=ut(),o=sr();if(([t,n]=_l(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const a=Wl({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),u=o.beforeResolve(f=>{if(u(),f===e){const d=o.afterEach(async()=>{d(),await r.runWithContext(()=>Fs(a)),window.history.pushState({},"",e.fullPath)});return!1}})},j8=[U8],sl={"has-plan-middleware":()=>Yt(()=>import("./Bvz7BSi0.js"),[],import.meta.url)};function H8(e,t,n){const{pathname:r,search:o,hash:i}=t,a=e.indexOf("#");if(a>-1){const f=i.includes(e.slice(a))?e.slice(a).length:1;let d=i.slice(f);return d[0]!=="/"&&(d="/"+d),rb(d,"")}const u=rb(r,e),c=!n||hO(u,n,{trailingSlash:!0})?u:n;return c+(c.includes("?")?"":o)+i}const W8=ir({name:"nuxt:router",enforce:"pre",async setup(e){var _,k;let t,n,r=fi().app.baseURL;Yn.hashMode&&!r.includes("#")&&(r+="#");const o=((_=Yn.history)==null?void 0:_.call(Yn,r))??(Yn.hashMode?l8(r):jx(r)),i=((k=Yn.routes)==null?void 0:k.call(Yn,Bb))??Bb;let a;const u=O8({...Yn,scrollBehavior:(S,w,E)=>{if(w===Ir){a=E;return}if(Yn.scrollBehavior){if(u.options.scrollBehavior=Yn.scrollBehavior,"scrollRestoration"in window.history){const A=u.beforeEach(()=>{A(),window.history.scrollRestoration="manual"})}return Yn.scrollBehavior(S,Ir,a||E)}},history:o,routes:i});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(u);const c=no(u.currentRoute.value);u.afterEach((S,w)=>{c.value=w}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>c.value});const f=H8(r,window.location,e.payload.path),d=no(u.currentRoute.value),g=()=>{d.value=u.currentRoute.value};e.hook("page:finish",g),u.afterEach((S,w)=>{var E,A,$,D;((A=(E=S.matched[0])==null?void 0:E.components)==null?void 0:A.default)===((D=($=w.matched[0])==null?void 0:$.components)==null?void 0:D.default)&&g()});const h={};for(const S in d.value)Object.defineProperty(h,S,{get:()=>d.value[S]});e._route=Fl(h),e._middleware=e._middleware||{global:[],named:{}};try{[t,n]=_l(()=>u.isReady()),await t,n()}catch(S){[t,n]=_l(()=>e.runWithContext(()=>Fs(S))),await t,n()}const m=f!==u.currentRoute.value.fullPath?u.resolve(f):u.currentRoute.value;g();const y=e.payload.state._layout;u.beforeEach(async(S,w)=>{var E;await e.callHook("page:loading:start"),S.meta=In(S.meta),e.isHydrating&&y&&!Js(S.meta.layout)&&(S.meta.layout=y),e._processingMiddleware=!0;{const A=new Set([...j8,...e._middleware.global]);for(const $ of S.matched){const D=$.meta.middleware;if(D)for(const B of Jg(D))A.add(B)}for(const $ of A){const D=typeof $=="string"?e._middleware.named[$]||await((E=sl[$])==null?void 0:E.call(sl).then(V=>V.default||V)):$;if(!D)throw new Error(`Unknown route middleware: '${$}'.`);const B=await e.runWithContext(()=>D(S,w));if(!e.payload.serverRendered&&e.isHydrating&&(B===!1||B instanceof Error)){const V=B||xh({statusCode:404,statusMessage:`Page Not Found: ${f}`});return await e.runWithContext(()=>Fs(V)),!1}if(B!==!0&&(B||B===!1))return B}}}),u.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")});const x=vf();return u.afterEach(async(S,w,E)=>{delete e._processingMiddleware,!e.isHydrating&&x.value&&await e.runWithContext(_6),E&&await e.callHook("page:loading:end"),S.matched.length===0&&await e.runWithContext(()=>Fs(xh({statusCode:404,fatal:!1,statusMessage:`Page not found: ${S.fullPath}`,data:{path:S.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in m&&(m.name=void 0),await u.replace({...m,force:!0}),u.options.scrollBehavior=Yn.scrollBehavior}catch(S){await e.runWithContext(()=>Fs(S))}}),{provide:{router:u}}}}),K8=!1;/*! - * pinia v2.1.7 - * (c) 2023 Eduardo San Martin Morote - * @license MIT - */let Yx;const Kl=e=>Yx=e,Jx=Symbol();function Oh(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var al;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(al||(al={}));function q8(){const e=_g(!0),t=e.run(()=>ee({}));let n=[],r=[];const o=Ag({install(i){Kl(o),o._a=i,i.provide(Jx,o),i.config.globalProperties.$pinia=o,r.forEach(a=>n.push(a)),r=[]},use(i){return!this._a&&!K8?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Xx=()=>{};function Vb(e,t,n,r=Xx){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&pi()&&Xi(o),o}function Is(e,...t){e.slice().forEach(n=>{n(...t)})}const G8=e=>e();function Lh(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Oh(o)&&Oh(r)&&e.hasOwnProperty(n)&&!dt(r)&&!Ki(r)?e[n]=Lh(o,r):e[n]=r}return e}const Z8=Symbol();function Y8(e){return!Oh(e)||!e.hasOwnProperty(Z8)}const{assign:qo}=Object;function J8(e){return!!(dt(e)&&e.effect)}function X8(e,t,n,r){const{state:o,actions:i,getters:a}=t,u=n.state.value[e];let c;function f(){u||(n.state.value[e]=o?o():{});const d=K3(n.state.value[e]);return qo(d,i,Object.keys(a||{}).reduce((g,h)=>(g[h]=Ag(z(()=>{Kl(n);const m=n._s.get(e);return a[h].call(m,m)})),g),{}))}return c=Qx(e,f,t,n,r,!0),c}function Qx(e,t,n={},r,o,i){let a;const u=qo({actions:{}},n),c={deep:!0};let f,d,g=[],h=[],m;const y=r.state.value[e];!i&&!y&&(r.state.value[e]={}),ee({});let x;function _(B){let V;f=d=!1,typeof B=="function"?(B(r.state.value[e]),V={type:al.patchFunction,storeId:e,events:m}):(Lh(r.state.value[e],B),V={type:al.patchObject,payload:B,storeId:e,events:m});const N=x=Symbol();an().then(()=>{x===N&&(f=!0)}),d=!0,Is(g,V,r.state.value[e])}const k=i?function(){const{state:V}=n,N=V?V():{};this.$patch(W=>{qo(W,N)})}:Xx;function S(){a.stop(),g=[],h=[],r._s.delete(e)}function w(B,V){return function(){Kl(r);const N=Array.from(arguments),W=[],K=[];function fe(re){W.push(re)}function ae(re){K.push(re)}Is(h,{args:N,name:B,store:A,after:fe,onError:ae});let ye;try{ye=V.apply(this&&this.$id===e?this:A,N)}catch(re){throw Is(K,re),re}return ye instanceof Promise?ye.then(re=>(Is(W,re),re)).catch(re=>(Is(K,re),Promise.reject(re))):(Is(W,ye),ye)}}const E={_p:r,$id:e,$onAction:Vb.bind(null,h),$patch:_,$reset:k,$subscribe(B,V={}){const N=Vb(g,B,V.detached,()=>W()),W=a.run(()=>ht(()=>r.state.value[e],K=>{(V.flush==="sync"?d:f)&&B({storeId:e,type:al.direct,events:m},K)},qo({},c,V)));return N},$dispose:S},A=In(E);r._s.set(e,A);const D=(r._a&&r._a.runWithContext||G8)(()=>r._e.run(()=>(a=_g()).run(t)));for(const B in D){const V=D[B];if(dt(V)&&!J8(V)||Ki(V))i||(y&&Y8(V)&&(dt(V)?V.value=y[B]:Lh(V,y[B])),r.state.value[e][B]=V);else if(typeof V=="function"){const N=w(B,V);D[B]=N,u.actions[B]=V}}return qo(A,D),qo(We(A),D),Object.defineProperty(A,"$state",{get:()=>r.state.value[e],set:B=>{_(V=>{qo(V,B)})}}),r._p.forEach(B=>{qo(A,a.run(()=>B({store:A,app:r._a,pinia:r,options:u})))}),y&&i&&n.hydrate&&n.hydrate(A.$state,y),f=!0,d=!0,A}function cs(e,t,n){let r,o;const i=typeof t=="function";typeof e=="string"?(r=e,o=i?n:t):(o=e,r=e.id);function a(u,c){const f=Bg();return u=u||(f?Ge(Jx,null):null),u&&Kl(u),u=Yx,u._s.has(r)||(i?Qx(r,t,o,u):X8(r,o,u)),u._s.get(r)}return a.$id=r,a}const Ph=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Q8=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),eP=e=>{const t=ut();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Ph(e)}):Ph(e)},tP=e=>e==="defer"||e===!1;function nP(...e){var y;const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[n,r,o={}]=e;if(typeof n!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const i=ut(),a=r,u=()=>null,c=()=>i.isHydrating?i.payload.data[n]:i.static.data[n];o.server=o.server??!0,o.default=o.default??u,o.getCachedData=o.getCachedData??c,o.lazy=o.lazy??!1,o.immediate=o.immediate??!0,o.deep=o.deep??xL.deep,o.dedupe=o.dedupe??"cancel";const f=()=>o.getCachedData(n,i)!=null;if(!i._asyncData[n]||!o.immediate){(y=i.payload._errors)[n]??(y[n]=null);const x=o.deep?ee:no;i._asyncData[n]={data:x(o.getCachedData(n,i)??o.default()),pending:ee(!f()),error:$t(i.payload._errors,n),status:ee("idle")}}const d={...i._asyncData[n]};d.refresh=d.execute=(x={})=>{if(i._asyncDataPromises[n]){if(tP(x.dedupe??o.dedupe))return i._asyncDataPromises[n];i._asyncDataPromises[n].cancelled=!0}if((x._initial||i.isHydrating&&x._initial!==!1)&&f())return Promise.resolve(o.getCachedData(n,i));d.pending.value=!0,d.status.value="pending";const _=new Promise((k,S)=>{try{k(a(i))}catch(w){S(w)}}).then(async k=>{if(_.cancelled)return i._asyncDataPromises[n];let S=k;o.transform&&(S=await o.transform(k)),o.pick&&(S=oP(S,o.pick)),i.payload.data[n]=S,d.data.value=S,d.error.value=null,d.status.value="success"}).catch(k=>{if(_.cancelled)return i._asyncDataPromises[n];d.error.value=Wl(k),d.data.value=R(o.default()),d.status.value="error"}).finally(()=>{_.cancelled||(d.pending.value=!1,delete i._asyncDataPromises[n])});return i._asyncDataPromises[n]=_,i._asyncDataPromises[n]},d.clear=()=>rP(i,n);const g=()=>d.refresh({_initial:!0}),h=o.server!==!1&&i.payload.serverRendered;{const x=Un();if(x&&!x._nuxtOnBeforeMountCbs){x._nuxtOnBeforeMountCbs=[];const S=x._nuxtOnBeforeMountCbs;$w(()=>{S.forEach(w=>{w()}),S.splice(0,S.length)}),Zt(()=>S.splice(0,S.length))}h&&i.isHydrating&&(d.error.value||f())?(d.pending.value=!1,d.status.value=d.error.value?"error":"success"):x&&(i.payload.serverRendered&&i.isHydrating||o.lazy)&&o.immediate?x._nuxtOnBeforeMountCbs.push(g):o.immediate&&g();const _=pi();if(o.watch){const S=ht(o.watch,()=>d.refresh());_&&Xi(S)}const k=i.hook("app:data:refresh",async S=>{(!S||S.includes(n))&&await d.refresh()});_&&Xi(k)}const m=Promise.resolve(i._asyncDataPromises[n]).then(()=>d);return Object.assign(m,d),m}function rP(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=null),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=null,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t].cancelled=!0,e._asyncDataPromises[t]=void 0)}function oP(e,t){const n={};for(const r of t)n[r]=e[r];return n}const iP="$s";function pa(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const o=iP+n,i=ut(),a=$t(i.payload.state,o);if(a.value===void 0&&r){const u=r();if(dt(u))return i.payload.state[o]=u,u;a.value=u}return a}function e2(e,t,n){const[r={},o]=typeof t=="string"?[{},t]:[t,n],i=z(()=>Zr(e)),a=r.key||d6([o,typeof i.value=="string"?i.value:"",...sP(r)]);if(!a||typeof a!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+a);if(!e)throw new Error("[nuxt] [useFetch] request is missing.");const u=a===o?"$f"+a:a;if(!r.baseURL&&typeof i.value=="string"&&i.value[0]==="/"&&i.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:c,lazy:f,default:d,transform:g,pick:h,watch:m,immediate:y,getCachedData:x,deep:_,dedupe:k,...S}=r,w=In({...kL,...S,cache:typeof r.cache=="boolean"?void 0:r.cache}),E={server:c,lazy:f,default:d,transform:g,pick:h,immediate:y,getCachedData:x,deep:_,dedupe:k,watch:m===!1?[]:[w,i,...m||[]]};let A;return nP(u,()=>{var V;(V=A==null?void 0:A.abort)==null||V.call(A),A=typeof AbortController<"u"?new AbortController:{};const D=Zr(r.timeout);return D&&setTimeout(()=>A.abort(),D),(r.$fetch||globalThis.$fetch)(i.value,{signal:A.signal,...w})},E)}function sP(e){var n;const t=[((n=Zr(e.method))==null?void 0:n.toUpperCase())||"GET",Zr(e.baseURL)];for(const r of[e.params||e.query]){const o=Zr(r);if(!o)continue;const i={};for(const[a,u]of Object.entries(o))i[Zr(a)]=Zr(u);t.push(i)}return t}const aP={path:"/",watch:!0,decode:e=>bl(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},lP=void 0;function Ub(e,t){var c;const n={...aP,...t},r=jb(n)||{};let o;n.maxAge!==void 0?o=n.maxAge*1e3:n.expires&&(o=n.expires.getTime()-Date.now());const i=o!==void 0&&o<=0,a=Wr(i?void 0:r[e]??((c=n.default)==null?void 0:c.call(n))),u=o&&!i?fP(a,o,n.watch&&n.watch!=="shallow"):ee(a);{let f=null;try{!lP&&typeof BroadcastChannel<"u"&&(f=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const d=()=>{n.readonly||bx(u.value,r[e])||(cP(e,u.value,n),r[e]=Wr(u.value),f==null||f.postMessage({value:n.encode(u.value)}))},g=m=>{var x;const y=m.refresh?(x=jb(n))==null?void 0:x[e]:n.decode(m.value);h=!0,r[e]=u.value=y,an(()=>{h=!1})};let h=!1;pi()&&Xi(()=>{h=!0,d(),f==null||f.close()}),f&&(f.onmessage=({data:m})=>g(m)),n.watch?ht(u,()=>{h||d()},{deep:n.watch!=="shallow"}):d()}return u}function jb(e={}){return YO(document.cookie,e)}function uP(e,t,n={}){return t==null?lb(e,t,{...n,maxAge:-1}):lb(e,t,n)}function cP(e,t,n={}){document.cookie=uP(e,t,n)}const Hb=2147483647;function fP(e,t,n){let r,o,i=0;const a=n?ee(e):{value:e};return pi()&&Xi(()=>{o==null||o(),clearTimeout(r)}),fw((u,c)=>{n&&(o=ht(a,c));function f(){clearTimeout(r);const d=t-i,g=d{if(i+=g,i4)return Promise.all(o).then(()=>t2(e,t));t._routePreloaded.add(n);const i=r.map(a=>{var u;return(u=a.components)==null?void 0:u.default}).filter(a=>typeof a=="function");for(const a of i){const u=Promise.resolve(a()).catch(()=>{}).finally(()=>o.splice(o.indexOf(u)));o.push(u)}await Promise.all(o)}function dP(e={}){const t=e.path||window.location.pathname;let n={};try{n=bl(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires){r.value=!0}),kt(n2,!0),o=>{var c;if(r.value)return(c=t.default)==null?void 0:c.call(t);const i=t.fallback||t.placeholder;if(i)return i();const a=o.fallback||o.placeholder||"",u=o.fallbackTag||o.placeholderTag||"span";return Z(u,n,a)}}}),wp=new WeakMap;function ZK(e){if(wp.has(e))return wp.get(e);const t={...e};return t.render?t.render=(n,r,o,i,a,u)=>{var c;if(i.mounted$??n.mounted$){const f=(c=e.render)==null?void 0:c.bind(n)(n,r,o,i,a,u);return f.children===null||typeof f.children=="string"?xr(f):Qe(f)}else{const f=Nb(n._.vnode.el??null)??["
"];return lh(f.join(""),f.length)}}:t.template&&(t.template=` - - - `),t.setup=(n,r)=>{var c;const o=Un(),i={...o.attrs},a=hP(o);for(const f in i)delete o.attrs[f];const u=ee(!1);return lt(()=>{Object.assign(o.attrs,i),o.vnode.dirs=a,u.value=!0}),Promise.resolve(((c=e.setup)==null?void 0:c.call(e,n,r))||{}).then(f=>typeof f!="function"?(f=f||{},f.mounted$=u,f):(...d)=>{if(u.value){const g=f(...d);return g.children===null||typeof g.children=="string"?xr(g):Qe(g)}else{const g=Nb((o==null?void 0:o.vnode.el)??null)??["
"];return lh(g.join(""),g.length)}})},wp.set(e,t),t}function hP(e){if(!e||!e.vnode.dirs)return null;const t=e.vnode.dirs;return e.vnode.dirs=null,t}const gP="data-n-ids",mP="-";function ha(e){var o,i,a,u,c,f;if(typeof e!="string")throw new TypeError("[nuxt] [useId] key must be a string.");e=`n${e.slice(1)}`;const t=ut(),n=Un();if(!n)throw new TypeError("[nuxt] `useId` must be called within a component setup function.");t._id||(t._id=0),n._nuxtIdIndex||(n._nuxtIdIndex={}),(o=n._nuxtIdIndex)[e]||(o[e]=0);const r=e+mP+n._nuxtIdIndex[e]++;if(t.payload.serverRendered&&t.isHydrating&&!Ge(n2,!1)){const d=((i=n.vnode.el)==null?void 0:i.nodeType)===8&&((u=(a=n.vnode.el)==null?void 0:a.nextElementSibling)!=null&&u.getAttribute)?(c=n.vnode.el)==null?void 0:c.nextElementSibling:n.vnode.el,g=JSON.parse(((f=d==null?void 0:d.getAttribute)==null?void 0:f.call(d,gP))||"{}");if(g[r])return g[r]}return e+"_"+t._id++}const vP=(...e)=>e.find(t=>t!==void 0);function yP(e){const t=e.componentName||"NuxtLink";function n(r,o){if(!r||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return r;if(typeof r=="string")return Wb(r,e.trailingSlash);const i="path"in r&&r.path!==void 0?r.path:o(r).path;return{...r,name:void 0,path:Wb(i,e.trailingSlash)}}return xe({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(r,{slots:o}){const i=sr(),a=fi(),u=z(()=>{const y=r.to||r.href||"";return n(y,i.resolve)}),c=z(()=>typeof u.value=="string"&&us(u.value,{acceptRelative:!0})),f=z(()=>r.target&&r.target!=="_self"),d=z(()=>r.external||f.value?!0:typeof u.value=="object"?!1:u.value===""||c.value),g=ee(!1),h=ee(null),m=y=>{var x;h.value=r.custom?(x=y==null?void 0:y.$el)==null?void 0:x.nextElementSibling:y==null?void 0:y.$el};if(r.prefetch!==!1&&r.noPrefetch!==!0&&r.target!=="_blank"&&!_P()){const x=ut();let _,k=null;lt(()=>{const S=bP();eP(()=>{_=Ph(()=>{var w;(w=h==null?void 0:h.value)!=null&&w.tagName&&(k=S.observe(h.value,async()=>{k==null||k(),k=null;const E=typeof u.value=="string"?u.value:i.resolve(u.value).fullPath;await Promise.all([x.hooks.callHook("link:prefetch",E).catch(()=>{}),!d.value&&t2(u.value,i).catch(()=>{})]),g.value=!0}))})})}),Vl(()=>{_&&Q8(_),k==null||k(),k=null})}return()=>{var k,S;if(!d.value){const w={ref:m,to:u.value,activeClass:r.activeClass||e.activeClass,exactActiveClass:r.exactActiveClass||e.exactActiveClass,replace:r.replace,ariaCurrentValue:r.ariaCurrentValue,custom:r.custom};return r.custom||(g.value&&(w.class=r.prefetchedClass||e.prefetchedClass),w.rel=r.rel||void 0),Qe(Or("RouterLink"),w,o.default)}const y=typeof u.value=="object"?((k=i.resolve(u.value))==null?void 0:k.href)??null:u.value&&!r.external&&!c.value?n(jg(a.app.baseURL,u.value),i.resolve):u.value||null,x=r.target||null,_=vP(r.noRel?"":r.rel,e.externalRelAttribute,c.value||f.value?"noopener noreferrer":"")||null;if(r.custom){if(!o.default)return null;const w=()=>Zs(y,{replace:r.replace,external:r.external});return o.default({href:y,navigate:w,get route(){if(!y)return;const E=mf(y);return{path:E.pathname,fullPath:E.pathname,get query(){return ax(E.search)},hash:E.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:y}},rel:_,target:x,isExternal:d.value,isActive:!1,isExactActive:!1})}return Qe("a",{ref:h,href:y,rel:_,target:x},(S=o.default)==null?void 0:S.call(o))}}})}const Yc=yP(wL);function Wb(e,t){const n=t==="append"?Wc:Ug;return us(e)&&!e.startsWith("http")?e:n(e,!0)}function bP(){const e=ut();if(e._observer)return e._observer;let t=null;const n=new Map,r=(i,a)=>(t||(t=new IntersectionObserver(u=>{for(const c of u){const f=n.get(c.target);(c.isIntersecting||c.intersectionRatio>0)&&f&&f()}})),n.set(i,a),t.observe(i),()=>{n.delete(i),t.unobserve(i),n.size===0&&(t.disconnect(),t=null)});return e._observer={observe:r}}function _P(){const e=navigator.connection;return!!(e&&(e.saveData||/2g/.test(e.effectiveType)))}const wP=ir(e=>{const t=q8();return e.vueApp.use(t),Kl(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}),xP=Bc(()=>Yt(()=>Promise.resolve().then(()=>HB),void 0,import.meta.url).then(e=>e.default||e.default||e)),kP=Bc(()=>Yt(()=>import("./DdPjcvU7.js"),__vite__mapDeps([25,26]),import.meta.url).then(e=>e.default||e.default||e)),SP=[["Icon",xP],["IconCSS",kP]],EP=ir({name:"nuxt:global-components",setup(e){for(const[t,n]of SP)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),ti={default:()=>Yt(()=>import("./Bd_CyPDn.js"),[],import.meta.url).then(e=>e.default||e)},CP=ir({name:"nuxt:prefetch",setup(e){const t=sr();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const r=(o=n==null?void 0:n.meta)==null?void 0:o.layout;r&&typeof ti[r]=="function"&&await ti[r]()})}),e.hooks.hook("link:prefetch",n=>{if(us(n))return;const r=t.resolve(n);if(!r)return;const o=r.meta.layout;let i=Jg(r.meta.middleware);i=i.filter(a=>typeof a=="string");for(const a of i)typeof sl[a]=="function"&&sl[a]();o&&typeof ti[o]=="function"&&ti[o]()})}}),r2=()=>pa("MonacoEditorNamespace",()=>null),YK=()=>r2().value,TP=ir(async e=>{let t,n;const r=(i,a)=>new Worker(new URL(`${e.$config.app.baseURL}/_nuxt/nuxt-monaco-editor/vs/${i}.js`.replace(/\/\//g,"/"),import.meta.url),{name:a,type:"module"});self.MonacoEnvironment={getWorker(i,a){switch(a){case"json":return r("language/json/json.worker",a);case"css":case"scss":case"less":return r("language/css/css.worker",a);case"html":case"handlebars":case"razor":return r("language/html/html.worker",a);case"typescript":case"javascript":return r("language/typescript/ts.worker",a);default:return r("editor/editor.worker",a)}}};const o=r2();o.value=([t,n]=_l(()=>Yt(()=>import("./D_EmF2pO.js").then(i=>i.e),__vite__mapDeps([27,28]),import.meta.url)),t=await t,n(),t)});function Mh(e){return pi()?(Xi(e),!0):!1}function es(e){return typeof e=="function"?e():R(e)}const Dh=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const AP=e=>typeof e<"u",Kb=()=>+Date.now(),Sl=()=>{};function o2(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}function $P(e,t={}){let n,r,o=Sl;const i=u=>{clearTimeout(u),o(),o=Sl};return u=>{const c=es(e),f=es(t.maxWait);return n&&i(n),c<=0||f!==void 0&&f<=0?(r&&(i(r),r=null),Promise.resolve(u())):new Promise((d,g)=>{o=t.rejectOnCancel?g:d,f&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,d(u())},f)),n=setTimeout(()=>{r&&i(r),r=null,d(u())},c)})}}function IP(...e){let t=0,n,r=!0,o=Sl,i,a,u,c,f;!dt(e[0])&&typeof e[0]=="object"?{delay:a,trailing:u=!0,leading:c=!0,rejectOnCancel:f=!1}=e[0]:[a,u=!0,c=!0,f=!1]=e;const d=()=>{n&&(clearTimeout(n),n=void 0,o(),o=Sl)};return h=>{const m=es(a),y=Date.now()-t,x=()=>i=h();return d(),m<=0?(t=Date.now(),x()):(y>m&&(c||!r)?(t=Date.now(),x()):u&&(i=new Promise((_,k)=>{o=f?k:_,n=setTimeout(()=>{t=Date.now(),r=!0,_(x()),d()},Math.max(0,m-y))})),!c&&!n&&(n=setTimeout(()=>r=!0,m)),r=!1,i)}}function RP(e,t=200,n={}){return o2($P(t,n),e)}function OP(e,t=200,n=!1,r=!0,o=!1){return o2(IP(t,n,r,o),e)}function i2(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n;let i=null;const a=ee(!1);function u(){i&&(clearInterval(i),i=null)}function c(){a.value=!1,u()}function f(){const d=es(t);d<=0||(a.value=!0,o&&e(),u(),i=setInterval(e,d))}if(r&&Dh&&f(),dt(t)||typeof t=="function"){const d=ht(t,()=>{a.value&&Dh&&f()});Mh(d)}return Mh(c),{isActive:a,pause:c,resume:f}}function JK(e,t,n){let r;dt(n)?r={evaluating:n}:r=n||{};const{lazy:o=!1,evaluating:i=void 0,shallow:a=!0,onError:u=Sl}=r,c=ee(!o),f=a?no(t):ee(t);let d=0;return rn(async g=>{if(!c.value)return;d++;const h=d;let m=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const y=await e(x=>{g(()=>{i&&(i.value=!1),m||x()})});h===d&&(f.value=y)}catch(y){u(y)}finally{i&&h===d&&(i.value=!1),m=!0}}),o?z(()=>(c.value=!0,f.value)):f}function qb(e){var t;const n=es(e);return(t=n==null?void 0:n.$el)!=null?t:n}const LP=Dh?window:void 0;function s2(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:o=LP}=t,i=ee(!1),a=r?1e3/r:null;let u=0,c=null;function f(h){if(!i.value||!o)return;u||(u=h);const m=h-u;if(a&&mo(u);return(c=t==null?void 0:t.cleanups)==null||c.push(d),d}function r(u){function c(...f){o(c),u(...f)}return n(c)}function o(u){const c=Fa.get(e);c&&(c.delete(u),c.size||i())}function i(){Fa.delete(e)}function a(u,c){var f;(f=Fa.get(e))==null||f.forEach(d=>d(u,c))}return{on:n,once:r,off:o,emit:a,reset:i}}function DP(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=ee(new Date),o=()=>r.value=new Date,i=n==="requestAnimationFrame"?s2(o,{immediate:!0}):i2(o,n,{immediate:!0});return t?{now:r,...i}:r}const BP=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}],FP={justNow:"just now",past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>e===1?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>e===1?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>e===1?t?"last week":"next week":`${e} week${e>1?"s":""}`,hour:e=>`${e} hour${e>1?"s":""}`,minute:e=>`${e} minute${e>1?"s":""}`,second:e=>`${e} second${e>1?"s":""}`,invalid:""};function NP(e){return e.toISOString().slice(0,10)}function XK(e,t={}){const{controls:n=!1,updateInterval:r=3e4}=t,{now:o,...i}=DP({interval:r,controls:!0}),a=z(()=>zP(new Date(es(e)),t,es(o)));return n?{timeAgo:a,...i}:a}function zP(e,t={},n=Date.now()){var r;const{max:o,messages:i=FP,fullDateFormatter:a=NP,units:u=BP,showSecond:c=!1,rounding:f="round"}=t,d=typeof f=="number"?_=>+_.toFixed(f):Math[f],g=+n-+e,h=Math.abs(g);function m(_,k){return d(Math.abs(_)/k.value)}function y(_,k){const S=m(_,k),w=_>0,E=x(k.name,S,w);return x(w?"past":"future",E,w)}function x(_,k,S){const w=i[_];return typeof w=="function"?w(k,S):w.replace("{0}",k.toString())}if(h<6e4&&!c)return i.justNow;if(typeof o=="number"&&h>o)return a(new Date(e));if(typeof o=="string"){const _=(r=u.find(k=>k.name===o))==null?void 0:r.max;if(_&&h>_)return a(new Date(e))}for(const[_,k]of u.entries()){if(m(g,k)<=0&&u[_-1])return y(g,u[_-1]);if(ha.value=Kb()+n,c=i?()=>{u(),i(a.value)}:u,f=o==="requestAnimationFrame"?s2(c,{immediate:r}):i2(c,o,{immediate:r});return t?{timestamp:a,...f}:a}function QK(e,t,n,r={}){var o,i,a;const{clone:u=!1,passive:c=!1,eventName:f,deep:d=!1,defaultValue:g,shouldEmit:h}=r,m=Un(),y=n||(m==null?void 0:m.emit)||((o=m==null?void 0:m.$emit)==null?void 0:o.bind(m))||((a=(i=m==null?void 0:m.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(m==null?void 0:m.proxy));let x=f;t||(t="modelValue"),x=x||`update:${t.toString()}`;const _=w=>u?typeof u=="function"?u(w):PP(w):w,k=()=>AP(e[t])?_(e[t]):g,S=w=>{h?h(w)&&y(x,w):y(x,w)};if(c){const w=k(),E=ee(w);let A=!1;return ht(()=>e[t],$=>{A||(A=!0,E.value=_($),an(()=>A=!1))}),ht(E,$=>{!A&&($!==e[t]||d)&&S($)},{deep:d}),E}else return z({get(){return k()},set(w){S(w)}})}const UP=Symbol("nuxt-ui.slideover"),jP=ir(e=>{const t=no({component:"div",props:{}});e.vueApp.provide(UP,t)}),HP=Symbol("nuxt-ui.modal"),WP=ir(e=>{const t=no({component:"div",props:{}});e.vueApp.provide(HP,t)}),Xg="-";function KP(e){const t=GP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(a){const u=a.split(Xg);return u[0]===""&&u.length!==1&&u.shift(),a2(u,t)||qP(a)}function i(a,u){const c=n[a]||[];return u&&r[a]?[...c,...r[a]]:c}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function a2(e,t){var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?a2(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Xg);return(a=t.validators.find(({validator:u})=>u(i)))==null?void 0:a.classGroupId}const Gb=/^\[(.+)\]$/;function qP(e){if(Gb.test(e)){const t=Gb.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function GP(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return YP(Object.entries(e.classGroups),n).forEach(([i,a])=>{Bh(a,r,i,t)}),r}function Bh(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Zb(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(ZP(o)){Bh(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,a])=>{Bh(a,Zb(t,i),n,r)})})}function Zb(e,t){let n=e;return t.split(Xg).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function ZP(e){return e.isThemeGetter}function YP(e,t){return t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,u])=>[t+a,u])):i);return[n,o]}):e}function JP(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(i,a){n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return o(i,a),a},set(i,a){n.has(i)?n.set(i,a):o(i,a)}}}const l2="!";function XP(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(a){const u=[];let c=0,f=0,d;for(let x=0;xf?d-f:void 0;return{modifiers:u,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:y}}}function QP(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function e7(e){return{cache:JP(e.cacheSize),splitModifiers:XP(e),...KP(e)}}const t7=/\s+/;function n7(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(t7).map(a=>{const{modifiers:u,hasImportantModifier:c,baseClassName:f,maybePostfixModifierPosition:d}=n(a);let g=r(d?f.substring(0,d):f),h=!!d;if(!g){if(!d)return{isTailwindClass:!1,originalClassName:a};if(g=r(f),!g)return{isTailwindClass:!1,originalClassName:a};h=!1}const m=QP(u).join(":");return{isTailwindClass:!0,modifierId:c?m+l2:m,classGroupId:g,originalClassName:a,hasPostfixModifier:h}}).reverse().filter(a=>{if(!a.isTailwindClass)return!0;const{modifierId:u,classGroupId:c,hasPostfixModifier:f}=a,d=u+c;return i.has(d)?!1:(i.add(d),o(c,f).forEach(g=>i.add(u+g)),!0)}).reverse().map(a=>a.originalClassName).join(" ")}function pt(){let e=0,t,n,r="";for(;eg(d),e());return n=e7(f),r=n.cache.get,o=n.cache.set,i=u,u(c)}function u(c){const f=r(c);if(f)return f;const d=n7(c,n);return o(c,d),d}return function(){return i(pt.apply(null,arguments))}}function Pt(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const c2=/^\[(?:([a-z-]+):)?(.+)\]$/i,r7=/^\d+\/\d+$/,o7=new Set(["px","full","screen"]),i7=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,s7=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,a7=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,l7=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,u7=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function mo(e){return Ni(e)||o7.has(e)||r7.test(e)}function Ho(e){return ga(e,"length",v7)}function Ni(e){return!!e&&!Number.isNaN(Number(e))}function lc(e){return ga(e,"number",Ni)}function Na(e){return!!e&&Number.isInteger(Number(e))}function c7(e){return e.endsWith("%")&&Ni(e.slice(0,-1))}function qe(e){return c2.test(e)}function Wo(e){return i7.test(e)}const f7=new Set(["length","size","percentage"]);function d7(e){return ga(e,f7,f2)}function p7(e){return ga(e,"position",f2)}const h7=new Set(["image","url"]);function g7(e){return ga(e,h7,b7)}function m7(e){return ga(e,"",y7)}function za(){return!0}function ga(e,t,n){const r=c2.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function v7(e){return s7.test(e)&&!a7.test(e)}function f2(){return!1}function y7(e){return l7.test(e)}function b7(e){return u7.test(e)}function Nh(){const e=Pt("colors"),t=Pt("spacing"),n=Pt("blur"),r=Pt("brightness"),o=Pt("borderColor"),i=Pt("borderRadius"),a=Pt("borderSpacing"),u=Pt("borderWidth"),c=Pt("contrast"),f=Pt("grayscale"),d=Pt("hueRotate"),g=Pt("invert"),h=Pt("gap"),m=Pt("gradientColorStops"),y=Pt("gradientColorStopPositions"),x=Pt("inset"),_=Pt("margin"),k=Pt("opacity"),S=Pt("padding"),w=Pt("saturate"),E=Pt("scale"),A=Pt("sepia"),$=Pt("skew"),D=Pt("space"),B=Pt("translate"),V=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",qe,t],K=()=>[qe,t],fe=()=>["",mo,Ho],ae=()=>["auto",Ni,qe],ye=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],re=()=>["solid","dashed","dotted","double","none"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>["start","end","center","between","around","evenly","stretch"],bt=()=>["","0",qe],Dt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$e=()=>[Ni,lc],Be=()=>[Ni,qe];return{cacheSize:500,separator:":",theme:{colors:[za],spacing:[mo,Ho],blur:["none","",Wo,qe],brightness:$e(),borderColor:[e],borderRadius:["none","","full",Wo,qe],borderSpacing:K(),borderWidth:fe(),contrast:$e(),grayscale:bt(),hueRotate:Be(),invert:bt(),gap:K(),gradientColorStops:[e],gradientColorStopPositions:[c7,Ho],inset:W(),margin:W(),opacity:$e(),padding:K(),saturate:$e(),scale:$e(),sepia:bt(),skew:Be(),space:K(),translate:K()},classGroups:{aspect:[{aspect:["auto","square","video",qe]}],container:["container"],columns:[{columns:[Wo]}],"break-after":[{"break-after":Dt()}],"break-before":[{"break-before":Dt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ye(),qe]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Na,qe]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",qe]}],grow:[{grow:bt()}],shrink:[{shrink:bt()}],order:[{order:["first","last","none",Na,qe]}],"grid-cols":[{"grid-cols":[za]}],"col-start-end":[{col:["auto",{span:["full",Na,qe]},qe]}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":[za]}],"row-start-end":[{row:["auto",{span:[Na,qe]},qe]}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",qe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",qe]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...me()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...me(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...me(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",qe,t]}],"min-w":[{"min-w":[qe,t,"min","max","fit"]}],"max-w":[{"max-w":[qe,t,"none","full","min","max","fit","prose",{screen:[Wo]},Wo]}],h:[{h:[qe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[qe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[qe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[qe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Wo,Ho]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",lc]}],"font-family":[{font:[za]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",qe]}],"line-clamp":[{"line-clamp":["none",Ni,lc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",mo,qe]}],"list-image":[{"list-image":["none",qe]}],"list-style-type":[{list:["none","disc","decimal",qe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",mo,Ho]}],"underline-offset":[{"underline-offset":["auto",mo,qe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:K()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",qe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",qe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ye(),p7]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",d7]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},g7]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...re(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:re()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...re()]}],"outline-offset":[{"outline-offset":[mo,qe]}],"outline-w":[{outline:[mo,Ho]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[mo,Ho]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Wo,m7]}],"shadow-color":[{shadow:[za]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ke()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Wo,qe]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[g]}],saturate:[{saturate:[w]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",qe]}],duration:[{duration:Be()}],ease:[{ease:["linear","in","out","in-out",qe]}],delay:[{delay:Be()}],animate:[{animate:["none","spin","ping","pulse","bounce",qe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Na,qe]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",qe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",qe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":K()}],"scroll-mx":[{"scroll-mx":K()}],"scroll-my":[{"scroll-my":K()}],"scroll-ms":[{"scroll-ms":K()}],"scroll-me":[{"scroll-me":K()}],"scroll-mt":[{"scroll-mt":K()}],"scroll-mr":[{"scroll-mr":K()}],"scroll-mb":[{"scroll-mb":K()}],"scroll-ml":[{"scroll-ml":K()}],"scroll-p":[{"scroll-p":K()}],"scroll-px":[{"scroll-px":K()}],"scroll-py":[{"scroll-py":K()}],"scroll-ps":[{"scroll-ps":K()}],"scroll-pe":[{"scroll-pe":K()}],"scroll-pt":[{"scroll-pt":K()}],"scroll-pr":[{"scroll-pr":K()}],"scroll-pb":[{"scroll-pb":K()}],"scroll-pl":[{"scroll-pl":K()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",qe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[mo,Ho,lc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function _7(e,{cacheSize:t,prefix:n,separator:r,extend:o={},override:i={}}){Cc(e,"cacheSize",t),Cc(e,"prefix",n),Cc(e,"separator",r);for(const a in i)w7(e[a],i[a]);for(const a in o)x7(e[a],o[a]);return e}function Cc(e,t,n){n!==void 0&&(e[t]=n)}function w7(e,t){if(t)for(const n in t)Cc(e,n,t[n])}function x7(e,t){if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}}function k7(e,...t){return typeof e=="function"?Fh(Nh,e,...t):Fh(()=>_7(Nh(),e),...t)}const Vn=Fh(Nh);function S7(e,t){const n={...e};for(const r of t)delete n[r];return n}function Ya(e,t,n){typeof t=="string"&&(t=t.split(".").map(o=>{const i=Number(o);return isNaN(i)?o:i}));let r=e;for(const o of t){if(r==null)return n;r=r[o]}return r!==void 0?r:n}const Qg={to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1}},E7=e=>Object.keys(Qg).reduce((n,r)=>(e[r]!==void 0&&(n[r]=e[r]),n),{}),C7=k7({extend:{classGroups:{icons:[e=>/^i-/.test(e)]}}}),T7=Wg((e,t,n,r)=>{if(r==="default"||r.startsWith("default.")||r==="popper"||r.startsWith("popper.")||r.endsWith("avatar")&&t==="size"||r.endsWith("chip")&&t==="size"||r.endsWith("badge")&&t==="size"||t==="color"||t==="variant")return!1;if(typeof e[t]=="string"&&typeof n=="string"&&e[t]&&n)return e[t]=C7(e[t],n),!0});function gn(e,...t){return e==="override"?Hl({},...t):T7({},...t)}function Yb(e){const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(r,o,i,a){return o+o+i+i+a+a});const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?`${parseInt(n[1],16)} ${parseInt(n[2],16)} ${parseInt(n[3],16)}`:null}function d2(e){const t=parseFloat(e);return isNaN(t)?e:t}const A7="inherit",$7="currentColor",I7="transparent",R7="#000",O7="#fff",L7={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},P7={50:"rgb(var(--color-gray-50) / )",100:"rgb(var(--color-gray-100) / )",200:"rgb(var(--color-gray-200) / )",300:"rgb(var(--color-gray-300) / )",400:"rgb(var(--color-gray-400) / )",500:"rgb(var(--color-gray-500) / )",600:"rgb(var(--color-gray-600) / )",700:"rgb(var(--color-gray-700) / )",800:"rgb(var(--color-gray-800) / )",900:"rgb(var(--color-gray-900) / )",950:"rgb(var(--color-gray-950) / )"},M7={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},D7={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},B7={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},F7={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},N7={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},z7={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},V7={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},U7={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},j7={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},H7={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},W7={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},K7={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},q7={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},G7={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},Z7={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},Y7={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},J7={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},X7={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},Q7={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},eM={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},tM={50:"rgb(var(--color-primary-50) / )",100:"rgb(var(--color-primary-100) / )",200:"rgb(var(--color-primary-200) / )",300:"rgb(var(--color-primary-300) / )",400:"rgb(var(--color-primary-400) / )",500:"rgb(var(--color-primary-500) / )",600:"rgb(var(--color-primary-600) / )",700:"rgb(var(--color-primary-700) / )",800:"rgb(var(--color-primary-800) / )",900:"rgb(var(--color-primary-900) / )",950:"rgb(var(--color-primary-950) / )",DEFAULT:"rgb(var(--color-primary-DEFAULT) / )"},nM={DEFAULT:"#ffffff",dark:"#333333"},rM={DEFAULT:"#333333",dark:"#f6f7ee"},uc={inherit:A7,current:$7,transparent:I7,black:R7,white:O7,slate:L7,gray:P7,zinc:M7,neutral:D7,stone:B7,red:F7,orange:N7,amber:z7,yellow:V7,lime:U7,green:j7,emerald:H7,teal:W7,cyan:K7,sky:q7,blue:G7,indigo:Z7,violet:Y7,purple:J7,fuchsia:X7,pink:Q7,rose:eM,primary:tM,backdrop:nM,body:rM,"cool-gray":void 0},oM=ir(()=>{const e=yf(),t=ut(),n=z(()=>{const o=uc[e.ui.primary],i=uc[e.ui.gray];return o||console.warn(`[@nuxt/ui] Primary color '${e.ui.primary}' not found in Tailwind config`),i||console.warn(`[@nuxt/ui] Gray color '${e.ui.gray}' not found in Tailwind config`),`:root { -${Object.entries(o||uc.green).map(([a,u])=>`--color-primary-${a}: ${Yb(u)};`).join(` -`)} ---color-primary-DEFAULT: var(--color-primary-500); - -${Object.entries(i||uc.cool).map(([a,u])=>`--color-gray-${a}: ${Yb(u)};`).join(` -`)} -} - -.dark { - --color-primary-DEFAULT: var(--color-primary-400); -} -`}),r={style:[{innerHTML:()=>n.value,tagPriority:-2,id:"nuxt-ui-colors"}]};if(t.isHydrating&&!t.payload.serverRendered){const o=document.createElement("style");o.innerHTML=n.value,o.setAttribute("data-nuxt-ui-colors",""),document.head.appendChild(o),r.script=[{innerHTML:"document.head.removeChild(document.querySelector('[data-nuxt-ui-colors]'))"}]}gL(r)}),iM="__NUXT_COLOR_MODE__",sM="nuxt-color-mode",vo=window[iM]||{},aM=ir(e=>{const t=pa("color-mode",()=>In({preference:vo.preference,value:vo.value,unknown:!1,forced:!1})).value;sr().afterEach(o=>{const i=o.meta.colorMode;i&&i!=="system"?(t.value=i,t.forced=!0):(i==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?vo.getColorScheme():t.preference)});let n;function r(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=vo.getColorScheme())}))}ht(()=>t.preference,o=>{var i;t.forced||(o==="system"?(t.value=vo.getColorScheme(),r()):t.value=o,(i=window.localStorage)==null||i.setItem(sM,o))},{immediate:!0}),ht(()=>t.value,(o,i)=>{vo.removeColorScheme(i),vo.addColorScheme(o)}),t.preference==="system"&&r(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=vo.preference,t.value=vo.value,t.unknown=!1)}),e.provide("colorMode",t)}),lM=ir({name:"nuxt:chunk-reload",setup(e){const t=sr(),n=fi(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:i})=>{r.add(i)});function o(i){const u="href"in i&&i.href[0]==="#"?n.app.baseURL+i.href:jg(n.app.baseURL,i.fullPath);dP({path:u,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((i,a)=>{r.has(i)&&o(a)})}});function Jb(e){return{getItem:t=>Ub(t,{...e,encode:encodeURIComponent,decode:decodeURIComponent}).value,setItem:(t,n)=>{Ub(t,{...e,encode:encodeURIComponent,decode:decodeURIComponent}).value=n}}}function uM(){return{getItem:e=>ut().ssrContext?null:localStorage.getItem(e),setItem:(e,t)=>{ut().ssrContext||localStorage.setItem(e,t)}}}function cM(){return{getItem:e=>ut().ssrContext?null:sessionStorage.getItem(e),setItem:(e,t)=>{ut().ssrContext||sessionStorage.setItem(e,t)}}}const ts={localStorage:uM(),sessionStorage:cM(),cookies:Jb(),cookiesWithOptions:Jb};function fM(e){return typeof e=="object"&&e!==null}function Xb(e,t){return e=fM(e)?e:Object.create(null),new Proxy(e,{get(n,r,o){return r==="key"?Reflect.get(n,r,o):Reflect.get(n,r,o)||Reflect.get(t,r,o)}})}function dM(e,t){return t.reduce((n,r)=>n==null?void 0:n[r],e)}function pM(e,t,n){return t.slice(0,-1).reduce((r,o)=>/^(__proto__)$/.test(o)?{}:r[o]=r[o]||{},e)[t[t.length-1]]=n,e}function hM(e,t){return t.reduce((n,r)=>{const o=r.split(".");return pM(n,o,dM(e,o))},{})}function gM(e,t){return n=>{var r;try{const{storage:o=localStorage,beforeRestore:i=void 0,afterRestore:a=void 0,serializer:u={serialize:JSON.stringify,deserialize:JSON.parse},key:c=t.$id,paths:f=null,debug:d=!1}=n;return{storage:o,beforeRestore:i,afterRestore:a,serializer:u,key:((r=e.key)!=null?r:g=>g)(typeof c=="string"?c:c(t.$id)),paths:f,debug:d}}catch(o){return n.debug&&console.error("[pinia-plugin-persistedstate]",o),null}}}function Qb(e,{storage:t,serializer:n,key:r,debug:o}){try{const i=t==null?void 0:t.getItem(r);i&&e.$patch(n==null?void 0:n.deserialize(i))}catch(i){o&&console.error("[pinia-plugin-persistedstate]",i)}}function e_(e,{storage:t,serializer:n,key:r,paths:o,debug:i}){try{const a=Array.isArray(o)?hM(e,o):e;t.setItem(r,n.serialize(a))}catch(a){i&&console.error("[pinia-plugin-persistedstate]",a)}}function mM(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:r=n},store:o,pinia:i}=t;if(!r)return;if(!(o.$id in i.state.value)){const u=i._s.get(o.$id.replace("__hot:",""));u&&Promise.resolve().then(()=>u.$persist());return}const a=(Array.isArray(r)?r.map(u=>Xb(u,e)):[Xb(r,e)]).map(gM(e,o)).filter(Boolean);o.$persist=()=>{a.forEach(u=>{e_(o.$state,u)})},o.$hydrate=({runHooks:u=!0}={})=>{a.forEach(c=>{const{beforeRestore:f,afterRestore:d}=c;u&&(f==null||f(t)),Qb(o,c),u&&(d==null||d(t))})},a.forEach(u=>{const{beforeRestore:c,afterRestore:f}=u;c==null||c(t),Qb(o,u),f==null||f(t),o.$subscribe((d,g)=>{e_(g,u)},{detached:!0})})}}const vM=ir(e=>{const{cookieOptions:t,debug:n,storage:r}=fi().public.persistedState;e.$pinia.use(mM({storage:r==="cookies"?ts.cookiesWithOptions(t):ts[r],debug:n}))}),yM=[$L,RL,W8,wP,EP,CP,TP,jP,WP,oM,aM,lM,vM];function bM(e,t){const n=t/e*100;return 2/Math.PI*100*Math.atan(n/50)}function _M(e={}){const{duration:t=2e3,throttle:n=200,hideDelay:r=500,resetDelay:o=400}=e,i=e.estimatedProgress||bM,a=ut(),u=ee(0),c=ee(!1);let f=!1,d,g,h,m;const y=()=>x(0);function x($=0){if(!a.isHydrating){if($>=100)return k();w(),u.value=$<0?0:$,n?g=setTimeout(()=>{c.value=!0,E()},n):(c.value=!0,E())}}function _(){h=setTimeout(()=>{c.value=!1,m=setTimeout(()=>{u.value=0},o)},r)}function k($={}){u.value=100,f=!0,w(),S(),$.force?(u.value=0,c.value=!1):_()}function S(){clearTimeout(h),clearTimeout(m)}function w(){clearTimeout(g),cancelAnimationFrame(d)}function E(){f=!1;let $;function D(B){if(f)return;$??($=B);const V=B-$;u.value=Math.max(0,Math.min(100,i(t,V))),d=requestAnimationFrame(D)}d=requestAnimationFrame(D)}let A=()=>{};{const $=a.hook("page:loading:start",()=>{y()}),D=a.hook("page:loading:end",()=>{k()}),B=a.hook("vue:error",()=>k());A=()=>{B(),$(),D(),w()}}return{_cleanup:A,progress:z(()=>u.value),isLoading:z(()=>c.value),start:y,set:x,finish:k,clear:w}}function wM(e={}){const t=ut(),n=t._loadingIndicator=t._loadingIndicator||_M(e);return pi()&&(t._loadingIndicatorDeps=t._loadingIndicatorDeps||0,t._loadingIndicatorDeps++,Xi(()=>{t._loadingIndicatorDeps--,t._loadingIndicatorDeps===0&&(n._cleanup(),delete t._loadingIndicator)})),n}const xM=xe({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},estimatedProgress:{type:Function,required:!1}},setup(e,{slots:t,expose:n}){const{progress:r,isLoading:o,start:i,finish:a,clear:u}=wM({duration:e.duration,throttle:e.throttle,estimatedProgress:e.estimatedProgress});return n({progress:r,isLoading:o,start:i,finish:a,clear:u}),()=>Qe("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${e.height}px`,opacity:o.value?1:0,background:e.color||void 0,backgroundSize:`${100/r.value*100}% auto`,transform:`scaleX(${r.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},t)}});function kM(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"})])}function t_(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"})])}function SM(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function n_(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0M3.124 7.5A8.969 8.969 0 0 1 5.292 3m13.416 0a8.969 8.969 0 0 1 2.168 4.5"})])}function p2(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 15.75V18m-7.5-6.75h.008v.008H8.25v-.008Zm0 2.25h.008v.008H8.25V13.5Zm0 2.25h.008v.008H8.25v-.008Zm0 2.25h.008v.008H8.25V18Zm2.498-6.75h.007v.008h-.007v-.008Zm0 2.25h.007v.008h-.007V13.5Zm0 2.25h.007v.008h-.007v-.008Zm0 2.25h.007v.008h-.007V18Zm2.504-6.75h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V13.5Zm0 2.25h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V18Zm2.498-6.75h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V13.5ZM8.25 6h7.5v2.25h-7.5V6ZM12 2.25c-1.892 0-3.758.11-5.593.322C5.307 2.7 4.5 3.65 4.5 4.757V19.5a2.25 2.25 0 0 0 2.25 2.25h10.5a2.25 2.25 0 0 0 2.25-2.25V4.757c0-1.108-.806-2.057-1.907-2.185A48.507 48.507 0 0 0 12 2.25Z"})])}function r_(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.076-4.076a1.526 1.526 0 0 1 1.037-.443 48.282 48.282 0 0 0 5.68-.494c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"})])}function EM(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function o_(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function h2(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"})])}function i_(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12a7.5 7.5 0 0 0 15 0m-15 0a7.5 7.5 0 1 1 15 0m-15 0H3m16.5 0H21m-1.5 0H12m-8.457 3.077 1.41-.513m14.095-5.13 1.41-.513M5.106 17.785l1.15-.964m11.49-9.642 1.149-.964M7.501 19.795l.75-1.3m7.5-12.99.75-1.3m-6.063 16.658.26-1.477m2.605-14.772.26-1.477m0 17.726-.26-1.477M10.698 4.614l-.26-1.477M16.5 19.794l-.75-1.299M7.5 4.205 12 12m6.894 5.785-1.149-.964M6.256 7.178l-1.15-.964m15.352 8.864-1.41-.513M4.954 9.435l-1.41-.514M12.002 12l-3.75 6.495"})])}function g2(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 0 0 2.25-2.25V6.75a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 6.75v10.5a2.25 2.25 0 0 0 2.25 2.25Zm.75-12h9v9h-9v-9Z"})])}function m2(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v12m-3-2.818.879.659c1.171.879 3.07.879 4.242 0 1.172-.879 1.172-2.303 0-3.182C13.536 12.219 12.768 12 12 12c-.725 0-1.45-.22-2.003-.659-1.106-.879-1.106-2.303 0-3.182s2.9-.879 4.006 0l.415.33M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function s_(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m3.75 9v6m3-3H9m1.5-12H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function a_(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function CM(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 12.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 18.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5Z"})])}function TM(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})])}function AM(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])}function l_(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 9h3.75M15 12h3.75M15 15h3.75M4.5 19.5h15a2.25 2.25 0 0 0 2.25-2.25V6.75A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25v10.5A2.25 2.25 0 0 0 4.5 19.5Zm6-10.125a1.875 1.875 0 1 1-3.75 0 1.875 1.875 0 0 1 3.75 0Zm1.294 6.336a6.721 6.721 0 0 1-3.17.789 6.721 6.721 0 0 1-3.168-.789 3.376 3.376 0 0 1 6.338 0Z"})])}function v2(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"})])}function u_(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"})])}function $M(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"})])}function IM(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.364 18.364A9 9 0 0 0 5.636 5.636m12.728 12.728A9 9 0 0 1 5.636 5.636m12.728 12.728L5.636 5.636"})])}function c_(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"})])}function RM(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"})])}function f_(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})])}function e0(e,t){return U(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}async function d_(e,t=!1){let n=fi().public.apiBaseUrl;if(!n)throw new Error("apiBaseUrl is not defined");n==="/"&&(n="");let r=n+e;e.startsWith("https://")&&(r=e);const o=t?{Authorization:`${At().authToken}`}:void 0,{data:i,error:a}=await e2(`${r}`,{headers:o,server:!1,lazy:!0},"$UqgiltlUfE");return{data:i,error:a}}async function Ut(e,t,n=!1){let r=fi().public.apiBaseUrl;if(!r)throw new Error("apiBaseUrl is not defined");r==="/"&&(r="");let o=r+e;e.startsWith("https://")&&(o=e);const i=n?{Authorization:`${At().authToken}`,"Content-Type":"application/json"}:{"Content-Type":"application/json"},{data:a,error:u}=await e2(`${o}`,{method:"POST",body:JSON.stringify(t),headers:i,server:!1,lazy:!0},"$HgqqyPIEgZ");return{data:a,error:u}}function y2(){const e=pa("notifications",()=>[]);function t(r){const o={id:new Date().getTime().toString(),...r};return e.value.findIndex(a=>a.id===o.id)===-1&&e.value.push(o),o}function n(r){e.value=e.value.filter(o=>o.id!==r)}return{add:t,remove:n}}function He(e,t){if(typeof window>"u")return;const n=y2(),r=e.charAt(0).toUpperCase()+e.slice(1),o=e==="error"?"red":"green",i=e==="error"?"i-heroicons i-heroicons-x-circle":"i-heroicons i-heroicons-check-circle";n.add({title:r,description:t,color:o,icon:i})}function Go(e){e.response?e.response.data&&e.response.data.message&&He("error",e.response.data.message):e.value?e.value.data&&e.value.data.message?He("error",e.value.data.message):e.value.data&&e.value.data.error&&He("error",e.value.data.error):e.message?He("error",e.message):He("error","An error occurred")}var Va=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function OM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jc={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */Jc.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,d="__lodash_placeholder__",g=1,h=2,m=4,y=1,x=2,_=1,k=2,S=4,w=8,E=16,A=32,$=64,D=128,B=256,V=512,N=30,W="...",K=800,fe=16,ae=1,ye=2,re=3,ke=1/0,me=9007199254740991,bt=17976931348623157e292,Dt=NaN,$e=4294967295,Be=$e-1,It=$e>>>1,St=[["ary",D],["bind",_],["bindKey",k],["curry",w],["curryRight",E],["flip",V],["partial",A],["partialRight",$],["rearg",B]],Bt="[object Arguments]",ft="[object Array]",Q="[object AsyncFunction]",ge="[object Boolean]",he="[object Date]",Ce="[object DOMException]",Je="[object Error]",gt="[object Function]",I="[object GeneratorFunction]",M="[object Map]",q="[object Number]",oe="[object Null]",Y="[object Object]",de="[object Promise]",ve="[object Proxy]",ue="[object RegExp]",ce="[object Set]",ie="[object String]",we="[object Symbol]",Oe="[object Undefined]",Ee="[object WeakMap]",Fe="[object WeakSet]",ze="[object ArrayBuffer]",tt="[object DataView]",Et="[object Float32Array]",Ht="[object Float64Array]",wn="[object Int8Array]",Fr="[object Int16Array]",hs="[object Int32Array]",oo="[object Uint8Array]",gs="[object Uint8ClampedArray]",ln="[object Uint16Array]",Rn="[object Uint32Array]",su=/\b__p \+= '';/g,IS=/\b(__p \+=) '' \+/g,RS=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V0=/&(?:amp|lt|gt|quot|#39);/g,U0=/[&<>"']/g,OS=RegExp(V0.source),LS=RegExp(U0.source),PS=/<%-([\s\S]+?)%>/g,MS=/<%([\s\S]+?)%>/g,j0=/<%=([\s\S]+?)%>/g,DS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,BS=/^\w*$/,FS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Of=/[\\^$.*+?()[\]{}|]/g,NS=RegExp(Of.source),Lf=/^\s+/,zS=/\s/,VS=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,US=/\{\n\/\* \[wrapped with (.+)\] \*/,jS=/,? & /,HS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,WS=/[()=,{}\[\]\/\s]/,KS=/\\(\\)?/g,qS=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,H0=/\w*$/,GS=/^[-+]0x[0-9a-f]+$/i,ZS=/^0b[01]+$/i,YS=/^\[object .+?Constructor\]$/,JS=/^0o[0-7]+$/i,XS=/^(?:0|[1-9]\d*)$/,QS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,au=/($^)/,eE=/['\n\r\u2028\u2029\\]/g,lu="\\ud800-\\udfff",tE="\\u0300-\\u036f",nE="\\ufe20-\\ufe2f",rE="\\u20d0-\\u20ff",W0=tE+nE+rE,K0="\\u2700-\\u27bf",q0="a-z\\xdf-\\xf6\\xf8-\\xff",oE="\\xac\\xb1\\xd7\\xf7",iE="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sE="\\u2000-\\u206f",aE=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",G0="A-Z\\xc0-\\xd6\\xd8-\\xde",Z0="\\ufe0e\\ufe0f",Y0=oE+iE+sE+aE,Pf="['’]",lE="["+lu+"]",J0="["+Y0+"]",uu="["+W0+"]",X0="\\d+",uE="["+K0+"]",Q0="["+q0+"]",em="[^"+lu+Y0+X0+K0+q0+G0+"]",Mf="\\ud83c[\\udffb-\\udfff]",cE="(?:"+uu+"|"+Mf+")",tm="[^"+lu+"]",Df="(?:\\ud83c[\\udde6-\\uddff]){2}",Bf="[\\ud800-\\udbff][\\udc00-\\udfff]",ms="["+G0+"]",nm="\\u200d",rm="(?:"+Q0+"|"+em+")",fE="(?:"+ms+"|"+em+")",om="(?:"+Pf+"(?:d|ll|m|re|s|t|ve))?",im="(?:"+Pf+"(?:D|LL|M|RE|S|T|VE))?",sm=cE+"?",am="["+Z0+"]?",dE="(?:"+nm+"(?:"+[tm,Df,Bf].join("|")+")"+am+sm+")*",pE="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",hE="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lm=am+sm+dE,gE="(?:"+[uE,Df,Bf].join("|")+")"+lm,mE="(?:"+[tm+uu+"?",uu,Df,Bf,lE].join("|")+")",vE=RegExp(Pf,"g"),yE=RegExp(uu,"g"),Ff=RegExp(Mf+"(?="+Mf+")|"+mE+lm,"g"),bE=RegExp([ms+"?"+Q0+"+"+om+"(?="+[J0,ms,"$"].join("|")+")",fE+"+"+im+"(?="+[J0,ms+rm,"$"].join("|")+")",ms+"?"+rm+"+"+om,ms+"+"+im,hE,pE,X0,gE].join("|"),"g"),_E=RegExp("["+nm+lu+W0+Z0+"]"),wE=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xE=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kE=-1,Lt={};Lt[Et]=Lt[Ht]=Lt[wn]=Lt[Fr]=Lt[hs]=Lt[oo]=Lt[gs]=Lt[ln]=Lt[Rn]=!0,Lt[Bt]=Lt[ft]=Lt[ze]=Lt[ge]=Lt[tt]=Lt[he]=Lt[Je]=Lt[gt]=Lt[M]=Lt[q]=Lt[Y]=Lt[ue]=Lt[ce]=Lt[ie]=Lt[Ee]=!1;var Rt={};Rt[Bt]=Rt[ft]=Rt[ze]=Rt[tt]=Rt[ge]=Rt[he]=Rt[Et]=Rt[Ht]=Rt[wn]=Rt[Fr]=Rt[hs]=Rt[M]=Rt[q]=Rt[Y]=Rt[ue]=Rt[ce]=Rt[ie]=Rt[we]=Rt[oo]=Rt[gs]=Rt[ln]=Rt[Rn]=!0,Rt[Je]=Rt[gt]=Rt[Ee]=!1;var SE={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},EE={"&":"&","<":"<",">":">",'"':""","'":"'"},CE={"&":"&","<":"<",">":">",""":'"',"'":"'"},TE={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},AE=parseFloat,$E=parseInt,um=typeof Va=="object"&&Va&&Va.Object===Object&&Va,IE=typeof self=="object"&&self&&self.Object===Object&&self,un=um||IE||Function("return this")(),Nf=t&&!t.nodeType&&t,yi=Nf&&!0&&e&&!e.nodeType&&e,cm=yi&&yi.exports===Nf,zf=cm&&um.process,ar=function(){try{var j=yi&&yi.require&&yi.require("util").types;return j||zf&&zf.binding&&zf.binding("util")}catch{}}(),fm=ar&&ar.isArrayBuffer,dm=ar&&ar.isDate,pm=ar&&ar.isMap,hm=ar&&ar.isRegExp,gm=ar&&ar.isSet,mm=ar&&ar.isTypedArray;function jn(j,J,G){switch(G.length){case 0:return j.call(J);case 1:return j.call(J,G[0]);case 2:return j.call(J,G[0],G[1]);case 3:return j.call(J,G[0],G[1],G[2])}return j.apply(J,G)}function RE(j,J,G,Se){for(var Ue=-1,mt=j==null?0:j.length;++Ue-1}function Vf(j,J,G){for(var Se=-1,Ue=j==null?0:j.length;++Se-1;);return G}function Sm(j,J){for(var G=j.length;G--&&vs(J,j[G],0)>-1;);return G}function zE(j,J){for(var G=j.length,Se=0;G--;)j[G]===J&&++Se;return Se}var VE=Wf(SE),UE=Wf(EE);function jE(j){return"\\"+TE[j]}function HE(j,J){return j==null?n:j[J]}function ys(j){return _E.test(j)}function WE(j){return wE.test(j)}function KE(j){for(var J,G=[];!(J=j.next()).done;)G.push(J.value);return G}function Zf(j){var J=-1,G=Array(j.size);return j.forEach(function(Se,Ue){G[++J]=[Ue,Se]}),G}function Em(j,J){return function(G){return j(J(G))}}function Oo(j,J){for(var G=-1,Se=j.length,Ue=0,mt=[];++G-1}function L5(s,l){var p=this.__data__,v=Tu(p,s);return v<0?(++this.size,p.push([s,l])):p[v][1]=l,this}io.prototype.clear=$5,io.prototype.delete=I5,io.prototype.get=R5,io.prototype.has=O5,io.prototype.set=L5;function so(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l=l?s:l)),s}function fr(s,l,p,v,b,T){var L,F=l&g,H=l&h,te=l&m;if(p&&(L=b?p(s,v,b,T):p(s)),L!==n)return L;if(!Vt(s))return s;var ne=je(s);if(ne){if(L=BC(s),!F)return On(s,L)}else{var se=vn(s),be=se==gt||se==I;if(Fo(s))return av(s,F);if(se==Y||se==Bt||be&&!b){if(L=H||be?{}:Cv(s),!F)return H?CC(s,Z5(L,s)):EC(s,Bm(L,s))}else{if(!Rt[se])return b?s:{};L=FC(s,se,F)}}T||(T=new Tr);var Te=T.get(s);if(Te)return Te;T.set(s,L),ty(s)?s.forEach(function(Me){L.add(fr(Me,l,p,Me,s,T))}):Qv(s)&&s.forEach(function(Me,rt){L.set(rt,fr(Me,l,p,rt,s,T))});var Pe=te?H?wd:_d:H?Pn:on,Ze=ne?n:Pe(s);return lr(Ze||s,function(Me,rt){Ze&&(rt=Me,Me=s[rt]),Ca(L,rt,fr(Me,l,p,rt,s,T))}),L}function Y5(s){var l=on(s);return function(p){return Fm(p,s,l)}}function Fm(s,l,p){var v=p.length;if(s==null)return!v;for(s=Tt(s);v--;){var b=p[v],T=l[b],L=s[b];if(L===n&&!(b in s)||!T(L))return!1}return!0}function Nm(s,l,p){if(typeof s!="function")throw new ur(a);return La(function(){s.apply(n,p)},l)}function Ta(s,l,p,v){var b=-1,T=cu,L=!0,F=s.length,H=[],te=l.length;if(!F)return H;p&&(l=Ft(l,Hn(p))),v?(T=Vf,L=!1):l.length>=o&&(T=_a,L=!1,l=new wi(l));e:for(;++bb?0:b+p),v=v===n||v>b?b:Ke(v),v<0&&(v+=b),v=p>v?0:ry(v);p0&&p(F)?l>1?cn(F,l-1,p,v,b):Ro(b,F):v||(b[b.length]=F)}return b}var nd=pv(),Um=pv(!0);function Nr(s,l){return s&&nd(s,l,on)}function rd(s,l){return s&&Um(s,l,on)}function $u(s,l){return Io(l,function(p){return fo(s[p])})}function ki(s,l){l=Do(l,s);for(var p=0,v=l.length;s!=null&&pl}function Q5(s,l){return s!=null&&wt.call(s,l)}function eC(s,l){return s!=null&&l in Tt(s)}function tC(s,l,p){return s>=mn(l,p)&&s=120&&ne.length>=120)?new wi(L&&ne):n}ne=s[0];var se=-1,be=F[0];e:for(;++se-1;)F!==s&&_u.call(F,H,1),_u.call(s,H,1);return s}function Qm(s,l){for(var p=s?l.length:0,v=p-1;p--;){var b=l[p];if(p==v||b!==T){var T=b;co(b)?_u.call(s,b,1):pd(s,b)}}return s}function cd(s,l){return s+ku(Lm()*(l-s+1))}function hC(s,l,p,v){for(var b=-1,T=tn(xu((l-s)/(p||1)),0),L=G(T);T--;)L[v?T:++b]=s,s+=p;return L}function fd(s,l){var p="";if(!s||l<1||l>me)return p;do l%2&&(p+=s),l=ku(l/2),l&&(s+=s);while(l);return p}function Xe(s,l){return Ad($v(s,l,Mn),s+"")}function gC(s){return Dm($s(s))}function mC(s,l){var p=$s(s);return zu(p,xi(l,0,p.length))}function Ia(s,l,p,v){if(!Vt(s))return s;l=Do(l,s);for(var b=-1,T=l.length,L=T-1,F=s;F!=null&&++bb?0:b+l),p=p>b?b:p,p<0&&(p+=b),b=l>p?0:p-l>>>0,l>>>=0;for(var T=G(b);++v>>1,L=s[T];L!==null&&!Kn(L)&&(p?L<=l:L=o){var te=l?null:IC(s);if(te)return du(te);L=!1,b=_a,H=new wi}else H=l?[]:F;e:for(;++v=v?s:dr(s,l,p)}var sv=a5||function(s){return un.clearTimeout(s)};function av(s,l){if(l)return s.slice();var p=s.length,v=Am?Am(p):new s.constructor(p);return s.copy(v),v}function vd(s){var l=new s.constructor(s.byteLength);return new yu(l).set(new yu(s)),l}function wC(s,l){var p=l?vd(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.byteLength)}function xC(s){var l=new s.constructor(s.source,H0.exec(s));return l.lastIndex=s.lastIndex,l}function kC(s){return Ea?Tt(Ea.call(s)):{}}function lv(s,l){var p=l?vd(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.length)}function uv(s,l){if(s!==l){var p=s!==n,v=s===null,b=s===s,T=Kn(s),L=l!==n,F=l===null,H=l===l,te=Kn(l);if(!F&&!te&&!T&&s>l||T&&L&&H&&!F&&!te||v&&L&&H||!p&&H||!b)return 1;if(!v&&!T&&!te&&s=F)return H;var te=p[v];return H*(te=="desc"?-1:1)}}return s.index-l.index}function cv(s,l,p,v){for(var b=-1,T=s.length,L=p.length,F=-1,H=l.length,te=tn(T-L,0),ne=G(H+te),se=!v;++F1?p[b-1]:n,L=b>2?p[2]:n;for(T=s.length>3&&typeof T=="function"?(b--,T):n,L&&kn(p[0],p[1],L)&&(T=b<3?n:T,b=1),l=Tt(l);++v-1?b[T?l[L]:L]:n}}function mv(s){return uo(function(l){var p=l.length,v=p,b=cr.prototype.thru;for(s&&l.reverse();v--;){var T=l[v];if(typeof T!="function")throw new ur(a);if(b&&!L&&Fu(T)=="wrapper")var L=new cr([],!0)}for(v=L?v:p;++v1&&st.reverse(),ne&&HF))return!1;var te=T.get(s),ne=T.get(l);if(te&&ne)return te==l&&ne==s;var se=-1,be=!0,Te=p&x?new wi:n;for(T.set(s,l),T.set(l,s);++se1?"& ":"")+l[v],l=l.join(p>2?", ":" "),s.replace(VS,`{ -/* [wrapped with `+l+`] */ -`)}function zC(s){return je(s)||Ci(s)||!!(Rm&&s&&s[Rm])}function co(s,l){var p=typeof s;return l=l??me,!!l&&(p=="number"||p!="symbol"&&XS.test(s))&&s>-1&&s%1==0&&s0){if(++l>=K)return arguments[0]}else l=0;return s.apply(n,arguments)}}function zu(s,l){var p=-1,v=s.length,b=v-1;for(l=l===n?v:l;++p1?s[l-1]:n;return p=typeof p=="function"?(s.pop(),p):n,Vv(s,p)});function Uv(s){var l=C(s);return l.__chain__=!0,l}function JT(s,l){return l(s),s}function Vu(s,l){return l(s)}var XT=uo(function(s){var l=s.length,p=l?s[0]:0,v=this.__wrapped__,b=function(T){return td(T,s)};return l>1||this.__actions__.length||!(v instanceof it)||!co(p)?this.thru(b):(v=v.slice(p,+p+(l?1:0)),v.__actions__.push({func:Vu,args:[b],thisArg:n}),new cr(v,this.__chain__).thru(function(T){return l&&!T.length&&T.push(n),T}))});function QT(){return Uv(this)}function eA(){return new cr(this.value(),this.__chain__)}function tA(){this.__values__===n&&(this.__values__=ny(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function nA(){return this}function rA(s){for(var l,p=this;p instanceof Cu;){var v=Mv(p);v.__index__=0,v.__values__=n,l?b.__wrapped__=v:l=v;var b=v;p=p.__wrapped__}return b.__wrapped__=s,l}function oA(){var s=this.__wrapped__;if(s instanceof it){var l=s;return this.__actions__.length&&(l=new it(this)),l=l.reverse(),l.__actions__.push({func:Vu,args:[$d],thisArg:n}),new cr(l,this.__chain__)}return this.thru($d)}function iA(){return ov(this.__wrapped__,this.__actions__)}var sA=Lu(function(s,l,p){wt.call(s,p)?++s[p]:ao(s,p,1)});function aA(s,l,p){var v=je(s)?vm:J5;return p&&kn(s,l,p)&&(l=n),v(s,Le(l,3))}function lA(s,l){var p=je(s)?Io:Vm;return p(s,Le(l,3))}var uA=gv(Dv),cA=gv(Bv);function fA(s,l){return cn(Uu(s,l),1)}function dA(s,l){return cn(Uu(s,l),ke)}function pA(s,l,p){return p=p===n?1:Ke(p),cn(Uu(s,l),p)}function jv(s,l){var p=je(s)?lr:Po;return p(s,Le(l,3))}function Hv(s,l){var p=je(s)?OE:zm;return p(s,Le(l,3))}var hA=Lu(function(s,l,p){wt.call(s,p)?s[p].push(l):ao(s,p,[l])});function gA(s,l,p,v){s=Ln(s)?s:$s(s),p=p&&!v?Ke(p):0;var b=s.length;return p<0&&(p=tn(b+p,0)),qu(s)?p<=b&&s.indexOf(l,p)>-1:!!b&&vs(s,l,p)>-1}var mA=Xe(function(s,l,p){var v=-1,b=typeof l=="function",T=Ln(s)?G(s.length):[];return Po(s,function(L){T[++v]=b?jn(l,L,p):Aa(L,l,p)}),T}),vA=Lu(function(s,l,p){ao(s,p,l)});function Uu(s,l){var p=je(s)?Ft:qm;return p(s,Le(l,3))}function yA(s,l,p,v){return s==null?[]:(je(l)||(l=l==null?[]:[l]),p=v?n:p,je(p)||(p=p==null?[]:[p]),Jm(s,l,p))}var bA=Lu(function(s,l,p){s[p?0:1].push(l)},function(){return[[],[]]});function _A(s,l,p){var v=je(s)?Uf:wm,b=arguments.length<3;return v(s,Le(l,4),p,b,Po)}function wA(s,l,p){var v=je(s)?LE:wm,b=arguments.length<3;return v(s,Le(l,4),p,b,zm)}function xA(s,l){var p=je(s)?Io:Vm;return p(s,Wu(Le(l,3)))}function kA(s){var l=je(s)?Dm:gC;return l(s)}function SA(s,l,p){(p?kn(s,l,p):l===n)?l=1:l=Ke(l);var v=je(s)?K5:mC;return v(s,l)}function EA(s){var l=je(s)?q5:yC;return l(s)}function CA(s){if(s==null)return 0;if(Ln(s))return qu(s)?bs(s):s.length;var l=vn(s);return l==M||l==ce?s.size:ad(s).length}function TA(s,l,p){var v=je(s)?jf:bC;return p&&kn(s,l,p)&&(l=n),v(s,Le(l,3))}var AA=Xe(function(s,l){if(s==null)return[];var p=l.length;return p>1&&kn(s,l[0],l[1])?l=[]:p>2&&kn(l[0],l[1],l[2])&&(l=[l[0]]),Jm(s,cn(l,1),[])}),ju=l5||function(){return un.Date.now()};function $A(s,l){if(typeof l!="function")throw new ur(a);return s=Ke(s),function(){if(--s<1)return l.apply(this,arguments)}}function Wv(s,l,p){return l=p?n:l,l=s&&l==null?s.length:l,lo(s,D,n,n,n,n,l)}function Kv(s,l){var p;if(typeof l!="function")throw new ur(a);return s=Ke(s),function(){return--s>0&&(p=l.apply(this,arguments)),s<=1&&(l=n),p}}var Rd=Xe(function(s,l,p){var v=_;if(p.length){var b=Oo(p,Ts(Rd));v|=A}return lo(s,v,l,p,b)}),qv=Xe(function(s,l,p){var v=_|k;if(p.length){var b=Oo(p,Ts(qv));v|=A}return lo(l,v,s,p,b)});function Gv(s,l,p){l=p?n:l;var v=lo(s,w,n,n,n,n,n,l);return v.placeholder=Gv.placeholder,v}function Zv(s,l,p){l=p?n:l;var v=lo(s,E,n,n,n,n,n,l);return v.placeholder=Zv.placeholder,v}function Yv(s,l,p){var v,b,T,L,F,H,te=0,ne=!1,se=!1,be=!0;if(typeof s!="function")throw new ur(a);l=hr(l)||0,Vt(p)&&(ne=!!p.leading,se="maxWait"in p,T=se?tn(hr(p.maxWait)||0,l):T,be="trailing"in p?!!p.trailing:be);function Te(qt){var $r=v,ho=b;return v=b=n,te=qt,L=s.apply(ho,$r),L}function Pe(qt){return te=qt,F=La(rt,l),ne?Te(qt):L}function Ze(qt){var $r=qt-H,ho=qt-te,gy=l-$r;return se?mn(gy,T-ho):gy}function Me(qt){var $r=qt-H,ho=qt-te;return H===n||$r>=l||$r<0||se&&ho>=T}function rt(){var qt=ju();if(Me(qt))return st(qt);F=La(rt,Ze(qt))}function st(qt){return F=n,be&&v?Te(qt):(v=b=n,L)}function qn(){F!==n&&sv(F),te=0,v=H=b=F=n}function Sn(){return F===n?L:st(ju())}function Gn(){var qt=ju(),$r=Me(qt);if(v=arguments,b=this,H=qt,$r){if(F===n)return Pe(H);if(se)return sv(F),F=La(rt,l),Te(H)}return F===n&&(F=La(rt,l)),L}return Gn.cancel=qn,Gn.flush=Sn,Gn}var IA=Xe(function(s,l){return Nm(s,1,l)}),RA=Xe(function(s,l,p){return Nm(s,hr(l)||0,p)});function OA(s){return lo(s,V)}function Hu(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new ur(a);var p=function(){var v=arguments,b=l?l.apply(this,v):v[0],T=p.cache;if(T.has(b))return T.get(b);var L=s.apply(this,v);return p.cache=T.set(b,L)||T,L};return p.cache=new(Hu.Cache||so),p}Hu.Cache=so;function Wu(s){if(typeof s!="function")throw new ur(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function LA(s){return Kv(2,s)}var PA=_C(function(s,l){l=l.length==1&&je(l[0])?Ft(l[0],Hn(Le())):Ft(cn(l,1),Hn(Le()));var p=l.length;return Xe(function(v){for(var b=-1,T=mn(v.length,p);++b=l}),Ci=Hm(function(){return arguments}())?Hm:function(s){return Wt(s)&&wt.call(s,"callee")&&!Im.call(s,"callee")},je=G.isArray,ZA=fm?Hn(fm):rC;function Ln(s){return s!=null&&Ku(s.length)&&!fo(s)}function Kt(s){return Wt(s)&&Ln(s)}function YA(s){return s===!0||s===!1||Wt(s)&&xn(s)==ge}var Fo=c5||jd,JA=dm?Hn(dm):oC;function XA(s){return Wt(s)&&s.nodeType===1&&!Pa(s)}function QA(s){if(s==null)return!0;if(Ln(s)&&(je(s)||typeof s=="string"||typeof s.splice=="function"||Fo(s)||As(s)||Ci(s)))return!s.length;var l=vn(s);if(l==M||l==ce)return!s.size;if(Oa(s))return!ad(s).length;for(var p in s)if(wt.call(s,p))return!1;return!0}function e$(s,l){return $a(s,l)}function t$(s,l,p){p=typeof p=="function"?p:n;var v=p?p(s,l):n;return v===n?$a(s,l,n,p):!!v}function Ld(s){if(!Wt(s))return!1;var l=xn(s);return l==Je||l==Ce||typeof s.message=="string"&&typeof s.name=="string"&&!Pa(s)}function n$(s){return typeof s=="number"&&Om(s)}function fo(s){if(!Vt(s))return!1;var l=xn(s);return l==gt||l==I||l==Q||l==ve}function Xv(s){return typeof s=="number"&&s==Ke(s)}function Ku(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=me}function Vt(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function Wt(s){return s!=null&&typeof s=="object"}var Qv=pm?Hn(pm):sC;function r$(s,l){return s===l||sd(s,l,kd(l))}function o$(s,l,p){return p=typeof p=="function"?p:n,sd(s,l,kd(l),p)}function i$(s){return ey(s)&&s!=+s}function s$(s){if(jC(s))throw new Ue(i);return Wm(s)}function a$(s){return s===null}function l$(s){return s==null}function ey(s){return typeof s=="number"||Wt(s)&&xn(s)==q}function Pa(s){if(!Wt(s)||xn(s)!=Y)return!1;var l=bu(s);if(l===null)return!0;var p=wt.call(l,"constructor")&&l.constructor;return typeof p=="function"&&p instanceof p&&gu.call(p)==o5}var Pd=hm?Hn(hm):aC;function u$(s){return Xv(s)&&s>=-me&&s<=me}var ty=gm?Hn(gm):lC;function qu(s){return typeof s=="string"||!je(s)&&Wt(s)&&xn(s)==ie}function Kn(s){return typeof s=="symbol"||Wt(s)&&xn(s)==we}var As=mm?Hn(mm):uC;function c$(s){return s===n}function f$(s){return Wt(s)&&vn(s)==Ee}function d$(s){return Wt(s)&&xn(s)==Fe}var p$=Bu(ld),h$=Bu(function(s,l){return s<=l});function ny(s){if(!s)return[];if(Ln(s))return qu(s)?Cr(s):On(s);if(wa&&s[wa])return KE(s[wa]());var l=vn(s),p=l==M?Zf:l==ce?du:$s;return p(s)}function po(s){if(!s)return s===0?s:0;if(s=hr(s),s===ke||s===-ke){var l=s<0?-1:1;return l*bt}return s===s?s:0}function Ke(s){var l=po(s),p=l%1;return l===l?p?l-p:l:0}function ry(s){return s?xi(Ke(s),0,$e):0}function hr(s){if(typeof s=="number")return s;if(Kn(s))return Dt;if(Vt(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=Vt(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=xm(s);var p=ZS.test(s);return p||JS.test(s)?$E(s.slice(2),p?2:8):GS.test(s)?Dt:+s}function oy(s){return zr(s,Pn(s))}function g$(s){return s?xi(Ke(s),-me,me):s===0?s:0}function _t(s){return s==null?"":Wn(s)}var m$=Es(function(s,l){if(Oa(l)||Ln(l)){zr(l,on(l),s);return}for(var p in l)wt.call(l,p)&&Ca(s,p,l[p])}),iy=Es(function(s,l){zr(l,Pn(l),s)}),Gu=Es(function(s,l,p,v){zr(l,Pn(l),s,v)}),v$=Es(function(s,l,p,v){zr(l,on(l),s,v)}),y$=uo(td);function b$(s,l){var p=Ss(s);return l==null?p:Bm(p,l)}var _$=Xe(function(s,l){s=Tt(s);var p=-1,v=l.length,b=v>2?l[2]:n;for(b&&kn(l[0],l[1],b)&&(v=1);++p1),T}),zr(s,wd(s),p),v&&(p=fr(p,g|h|m,RC));for(var b=l.length;b--;)pd(p,l[b]);return p});function F$(s,l){return ay(s,Wu(Le(l)))}var N$=uo(function(s,l){return s==null?{}:dC(s,l)});function ay(s,l){if(s==null)return{};var p=Ft(wd(s),function(v){return[v]});return l=Le(l),Xm(s,p,function(v,b){return l(v,b[0])})}function z$(s,l,p){l=Do(l,s);var v=-1,b=l.length;for(b||(b=1,s=n);++vl){var v=s;s=l,l=v}if(p||s%1||l%1){var b=Lm();return mn(s+b*(l-s+AE("1e-"+((b+"").length-1))),l)}return cd(s,l)}var J$=Cs(function(s,l,p){return l=l.toLowerCase(),s+(p?cy(l):l)});function cy(s){return Bd(_t(s).toLowerCase())}function fy(s){return s=_t(s),s&&s.replace(QS,VE).replace(yE,"")}function X$(s,l,p){s=_t(s),l=Wn(l);var v=s.length;p=p===n?v:xi(Ke(p),0,v);var b=p;return p-=l.length,p>=0&&s.slice(p,b)==l}function Q$(s){return s=_t(s),s&&LS.test(s)?s.replace(U0,UE):s}function eI(s){return s=_t(s),s&&NS.test(s)?s.replace(Of,"\\$&"):s}var tI=Cs(function(s,l,p){return s+(p?"-":"")+l.toLowerCase()}),nI=Cs(function(s,l,p){return s+(p?" ":"")+l.toLowerCase()}),rI=hv("toLowerCase");function oI(s,l,p){s=_t(s),l=Ke(l);var v=l?bs(s):0;if(!l||v>=l)return s;var b=(l-v)/2;return Du(ku(b),p)+s+Du(xu(b),p)}function iI(s,l,p){s=_t(s),l=Ke(l);var v=l?bs(s):0;return l&&v>>0,p?(s=_t(s),s&&(typeof l=="string"||l!=null&&!Pd(l))&&(l=Wn(l),!l&&ys(s))?Bo(Cr(s),0,p):s.split(l,p)):[]}var dI=Cs(function(s,l,p){return s+(p?" ":"")+Bd(l)});function pI(s,l,p){return s=_t(s),p=p==null?0:xi(Ke(p),0,s.length),l=Wn(l),s.slice(p,p+l.length)==l}function hI(s,l,p){var v=C.templateSettings;p&&kn(s,l,p)&&(l=n),s=_t(s),l=Gu({},l,v,wv);var b=Gu({},l.imports,v.imports,wv),T=on(b),L=Gf(b,T),F,H,te=0,ne=l.interpolate||au,se="__p += '",be=Yf((l.escape||au).source+"|"+ne.source+"|"+(ne===j0?qS:au).source+"|"+(l.evaluate||au).source+"|$","g"),Te="//# sourceURL="+(wt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++kE+"]")+` -`;s.replace(be,function(Me,rt,st,qn,Sn,Gn){return st||(st=qn),se+=s.slice(te,Gn).replace(eE,jE),rt&&(F=!0,se+=`' + -__e(`+rt+`) + -'`),Sn&&(H=!0,se+=`'; -`+Sn+`; -__p += '`),st&&(se+=`' + -((__t = (`+st+`)) == null ? '' : __t) + -'`),te=Gn+Me.length,Me}),se+=`'; -`;var Pe=wt.call(l,"variable")&&l.variable;if(!Pe)se=`with (obj) { -`+se+` -} -`;else if(WS.test(Pe))throw new Ue(u);se=(H?se.replace(su,""):se).replace(IS,"$1").replace(RS,"$1;"),se="function("+(Pe||"obj")+`) { -`+(Pe?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(F?", __e = _.escape":"")+(H?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+se+`return __p -}`;var Ze=py(function(){return mt(T,Te+"return "+se).apply(n,L)});if(Ze.source=se,Ld(Ze))throw Ze;return Ze}function gI(s){return _t(s).toLowerCase()}function mI(s){return _t(s).toUpperCase()}function vI(s,l,p){if(s=_t(s),s&&(p||l===n))return xm(s);if(!s||!(l=Wn(l)))return s;var v=Cr(s),b=Cr(l),T=km(v,b),L=Sm(v,b)+1;return Bo(v,T,L).join("")}function yI(s,l,p){if(s=_t(s),s&&(p||l===n))return s.slice(0,Cm(s)+1);if(!s||!(l=Wn(l)))return s;var v=Cr(s),b=Sm(v,Cr(l))+1;return Bo(v,0,b).join("")}function bI(s,l,p){if(s=_t(s),s&&(p||l===n))return s.replace(Lf,"");if(!s||!(l=Wn(l)))return s;var v=Cr(s),b=km(v,Cr(l));return Bo(v,b).join("")}function _I(s,l){var p=N,v=W;if(Vt(l)){var b="separator"in l?l.separator:b;p="length"in l?Ke(l.length):p,v="omission"in l?Wn(l.omission):v}s=_t(s);var T=s.length;if(ys(s)){var L=Cr(s);T=L.length}if(p>=T)return s;var F=p-bs(v);if(F<1)return v;var H=L?Bo(L,0,F).join(""):s.slice(0,F);if(b===n)return H+v;if(L&&(F+=H.length-F),Pd(b)){if(s.slice(F).search(b)){var te,ne=H;for(b.global||(b=Yf(b.source,_t(H0.exec(b))+"g")),b.lastIndex=0;te=b.exec(ne);)var se=te.index;H=H.slice(0,se===n?F:se)}}else if(s.indexOf(Wn(b),F)!=F){var be=H.lastIndexOf(b);be>-1&&(H=H.slice(0,be))}return H+v}function wI(s){return s=_t(s),s&&OS.test(s)?s.replace(V0,YE):s}var xI=Cs(function(s,l,p){return s+(p?" ":"")+l.toUpperCase()}),Bd=hv("toUpperCase");function dy(s,l,p){return s=_t(s),l=p?n:l,l===n?WE(s)?QE(s):DE(s):s.match(l)||[]}var py=Xe(function(s,l){try{return jn(s,n,l)}catch(p){return Ld(p)?p:new Ue(p)}}),kI=uo(function(s,l){return lr(l,function(p){p=Vr(p),ao(s,p,Rd(s[p],s))}),s});function SI(s){var l=s==null?0:s.length,p=Le();return s=l?Ft(s,function(v){if(typeof v[1]!="function")throw new ur(a);return[p(v[0]),v[1]]}):[],Xe(function(v){for(var b=-1;++bme)return[];var p=$e,v=mn(s,$e);l=Le(l),s-=$e;for(var b=qf(v,l);++p0||l<0)?new it(p):(s<0?p=p.takeRight(-s):s&&(p=p.drop(s)),l!==n&&(l=Ke(l),p=l<0?p.dropRight(-l):p.take(l-s)),p)},it.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},it.prototype.toArray=function(){return this.take($e)},Nr(it.prototype,function(s,l){var p=/^(?:filter|find|map|reject)|While$/.test(l),v=/^(?:head|last)$/.test(l),b=C[v?"take"+(l=="last"?"Right":""):l],T=v||/^find/.test(l);b&&(C.prototype[l]=function(){var L=this.__wrapped__,F=v?[1]:arguments,H=L instanceof it,te=F[0],ne=H||je(L),se=function(rt){var st=b.apply(C,Ro([rt],F));return v&&be?st[0]:st};ne&&p&&typeof te=="function"&&te.length!=1&&(H=ne=!1);var be=this.__chain__,Te=!!this.__actions__.length,Pe=T&&!be,Ze=H&&!Te;if(!T&&ne){L=Ze?L:new it(this);var Me=s.apply(L,F);return Me.__actions__.push({func:Vu,args:[se],thisArg:n}),new cr(Me,be)}return Pe&&Ze?s.apply(this,F):(Me=this.thru(se),Pe?v?Me.value()[0]:Me.value():Me)})}),lr(["pop","push","shift","sort","splice","unshift"],function(s){var l=pu[s],p=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",v=/^(?:pop|shift)$/.test(s);C.prototype[s]=function(){var b=arguments;if(v&&!this.__chain__){var T=this.value();return l.apply(je(T)?T:[],b)}return this[p](function(L){return l.apply(je(L)?L:[],b)})}}),Nr(it.prototype,function(s,l){var p=C[l];if(p){var v=p.name+"";wt.call(ks,v)||(ks[v]=[]),ks[v].push({name:l,func:p})}}),ks[Pu(n,k).name]=[{name:"wrapper",func:n}],it.prototype.clone=w5,it.prototype.reverse=x5,it.prototype.value=k5,C.prototype.at=XT,C.prototype.chain=QT,C.prototype.commit=eA,C.prototype.next=tA,C.prototype.plant=rA,C.prototype.reverse=oA,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=iA,C.prototype.first=C.prototype.head,wa&&(C.prototype[wa]=nA),C},_s=e5();yi?((yi.exports=_s)._=_s,Nf._=_s):un._=_s}).call(Va)})(Jc,Jc.exports);var LM=Jc.exports;const _e=OM(LM);let cc;const PM=new Uint8Array(16);function MM(){if(!cc&&(cc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!cc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cc(PM)}const dn=[];for(let e=0;e<256;++e)dn.push((e+256).toString(16).slice(1));function DM(e,t=0){return dn[e[t+0]]+dn[e[t+1]]+dn[e[t+2]]+dn[e[t+3]]+"-"+dn[e[t+4]]+dn[e[t+5]]+"-"+dn[e[t+6]]+dn[e[t+7]]+"-"+dn[e[t+8]]+dn[e[t+9]]+"-"+dn[e[t+10]]+dn[e[t+11]]+dn[e[t+12]]+dn[e[t+13]]+dn[e[t+14]]+dn[e[t+15]]}const BM=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),p_={randomUUID:BM};function FM(e,t,n){if(p_.randomUUID&&!t&&!e)return p_.randomUUID();e=e||{};const r=e.random||(e.rng||MM)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return DM(r)}const Mt={timestampToTime(e){const t=new Date(Number(e)),n=t.getUTCFullYear(),r=String(t.getUTCMonth()+1).padStart(2,"0"),o=String(t.getUTCDate()).padStart(2,"0");return`${n}-${r}-${o} ${t.toUTCString().slice(17,25)}`},timestampToTimeOnly(e){return`${new Date(Number(e)).toUTCString().slice(17,25)}`},timestampToDate(e){const t=new Date(Number(e)),n=t.getUTCFullYear(),r=String(t.getUTCMonth()+1).padStart(2,"0"),o=String(t.getUTCDate()).padStart(2,"0");return`${n}-${r}-${o}`},currentTime(){return new Date().toISOString().slice(11,19)},secondsToHumanReadable(e){const t=Math.floor(e/3600),n=Math.floor((e-t*3600)/60),r=_e.round(e-t*3600-n*60,2);return`${t}h ${n}m ${r}s`},remainingTimeText(e){return Math.round(e)===0?"Please wait...":e>60?`${this.secondsToHumanReadable(e)} remaining...`:`${Math.round(e)} seconds remaining...`},roundPrice(e){return e>1?_e.round(e,2):e},colorBasedOnSide(e){return e==="buy"?"text-green-600 dark:text-green-400":e==="sell"?"text-red-500 dark:text-red-400":"text-gray-900 dark:text-gray-200"},colorBasedOnType(e){return e==="long"?"text-green-600 dark:text-green-400":e==="short"?"text-red-500 dark:text-red-400":"text-gray-900 dark:text-gray-200"},colorBasedOnNumber(e){return e>0?"text-green-600 dark:text-green-400":e<0?"text-red-500 dark:text-red-400":"text-gray-900 dark:text-gray-200"},uuid(){return FM()}},b2=cs("candles",{state:()=>({forms:[{id:Mt.uuid(),start_date:"2024-01-01",exchange:"",symbol:"",executing:!1,waiting:!1,progressbar:{current:0,estimated_remaining_seconds:0},exception:{error:"",traceback:""},alert:{message:"",type:""}}],results:{infoLogs:""},activeExchanges:new Set,existingCandles:[],updatingSymbols:new Set}),persist:{storage:ts.localStorage,paths:["forms","results","existingCandles"]},actions:{async init(e){for(const t of this.forms)t.executing&&!t.exception.error&&(e.has(t.id)||await this.cancel(t.id))},async checkWaitingImports(e){const t=this.forms.find(n=>n.waiting&&n.executing&&n.exchange===e);t&&(t.waiting=!1,await this.start(t.id))},async start(e){const t=this.forms.find(n=>n.id===e);if(t){if(this.activeExchanges.has(t.exchange)){t.waiting=!0,t.executing=!0;return}this.activeExchanges.add(t.exchange),t.progressbar.current=0,t.executing=!0,t.exception.traceback="",t.exception.error="",t.alert.message="";try{const{data:n,error:r}=await Ut("/import-candles",{id:e,exchange:t.exchange,symbol:t.symbol,start_date:t.start_date},!0)}finally{t.executing||(this.activeExchanges.delete(t.exchange),await this.checkWaitingImports(t.exchange))}}},async cancel(e){const t=this.forms.find(o=>o.id===e);if(!t)return;const n=t.exchange,r=this.getSymbolKey(t.exchange,t.symbol);if(t.exception.error){t.executing=!1,t.exception.error="",t.exception.traceback="",this.updatingSymbols.delete(r);return}await Ut("/cancel-import-candles",{id:e},!0),t.executing=!1,t.waiting=!1,this.activeExchanges.delete(n),this.updatingSymbols.delete(r),t.exception.error="",t.exception.traceback="",t.alert.message="",t.alert.type="",await this.checkWaitingImports(n)},progressbarEvent(e,t){const n=this.forms.find(r=>r.id===e);n&&(n.progressbar=t)},alertEvent(e,t){const n=this.forms.find(r=>r.id===e);if(n){const r=n.exchange,o=this.getSymbolKey(n.exchange,n.symbol);n.alert=t,t.type!=="info"&&(n.executing=!1,this.activeExchanges.delete(r),this.updatingSymbols.delete(o),this.checkWaitingImports(r))}},exceptionEvent(e,t){const n=this.forms.find(r=>r.id===e);if(n){const r=this.getSymbolKey(n.exchange,n.symbol);n.exception.error=t.error,n.exception.traceback=t.traceback,n.executing=!1,n.waiting=!1,this.activeExchanges.has(n.exchange)&&this.activeExchanges.delete(n.exchange),this.updatingSymbols.delete(r)}},terminationEvent(e){const t=this.forms.find(n=>n.id===e);if(t!=null&&t.executing){const n=t.exchange,r=this.getSymbolKey(t.exchange,t.symbol);t.executing=!1,t.waiting=!1,this.activeExchanges.delete(n),this.updatingSymbols.delete(r),this.checkWaitingImports(n)}},infoLogEvent(e,t){this.results.infoLogs+=`[${Mt.timestampToTime(t.timestamp)}] ${t.message} -`},createForm(e="",t="",n="2024-01-01"){return{id:Mt.uuid(),exchange:e,symbol:t,start_date:n,executing:!1,waiting:!1,progressbar:{current:0,estimated_remaining_seconds:0},exception:{error:"",traceback:""},alert:{message:"",type:""}}},addImport(){const e=this.forms[this.forms.length-1];this.forms.push(this.createForm(e.exchange,e.symbol,e.start_date))},duplicateImport(e){const t=this.forms.indexOf(e);this.forms.splice(t+1,0,this.createForm(e.exchange,e.symbol,e.start_date))},async fetchExistingCandles(){const{data:e,error:t}=await Ut("/existing-candles",{},!0);if(t.value)throw t.value;if(e.value){const n=e.value;this.existingCandles=n.data}else this.existingCandles=[]},async deleteCandles(e,t){const{data:n,error:r}=await Ut("/delete-candles",{exchange:e,symbol:t},!0);if(r.value)throw r.value;if(!n.value)throw new Error("Failed to delete candles");this.existingCandles=this.existingCandles.filter(o=>!(o.exchange===e&&o.symbol===t))},getSymbolKey(e,t){return`${e}-${t}`},isSymbolUpdating(e,t){return this.updatingSymbols.has(this.getSymbolKey(e,t))},async updateCandles(e,t,n){const r=this.getSymbolKey(e,t),o=this.createForm(e,t,n);this.forms.push(o),this.updatingSymbols.add(r),await this.start(o.id)}}}),zh=(e,t)=>t.some(n=>e instanceof n);let h_,g_;function NM(){return h_||(h_=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function zM(){return g_||(g_=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Vh=new WeakMap,xp=new WeakMap,_f=new WeakMap;function VM(e){const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",a)},i=()=>{n(Gi(e.result)),o()},a=()=>{r(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",a)});return _f.set(t,e),t}function UM(e){if(Vh.has(e))return;const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=()=>{n(),o()},a=()=>{r(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)});Vh.set(e,t)}let Uh={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Vh.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Gi(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function _2(e){Uh=e(Uh)}function jM(e){return zM().includes(e)?function(...t){return e.apply(jh(this),t),Gi(this.request)}:function(...t){return Gi(e.apply(jh(this),t))}}function HM(e){return typeof e=="function"?jM(e):(e instanceof IDBTransaction&&UM(e),zh(e,NM())?new Proxy(e,Uh):e)}function Gi(e){if(e instanceof IDBRequest)return VM(e);if(xp.has(e))return xp.get(e);const t=HM(e);return t!==e&&(xp.set(e,t),_f.set(t,e)),t}const jh=e=>_f.get(e);function WM(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const a=indexedDB.open(e,t),u=Gi(a);return r&&a.addEventListener("upgradeneeded",c=>{r(Gi(a.result),c.oldVersion,c.newVersion,Gi(a.transaction),c)}),n&&a.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),u.then(c=>{i&&c.addEventListener("close",()=>i()),o&&c.addEventListener("versionchange",f=>o(f.oldVersion,f.newVersion,f))}).catch(()=>{}),u}const KM=["get","getKey","getAll","getAllKeys","count"],qM=["put","add","delete","clear"],kp=new Map;function m_(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(kp.get(t))return kp.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=qM.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(o||KM.includes(n)))return;const i=async function(a,...u){const c=this.transaction(a,o?"readwrite":"readonly");let f=c.store;return r&&(f=f.index(u.shift())),(await Promise.all([f[n](...u),o&&c.done]))[0]};return kp.set(t,i),i}_2(e=>({...e,get:(t,n,r)=>m_(t,n)||e.get(t,n,r),has:(t,n)=>!!m_(t,n)||e.has(t,n)}));const GM=["continue","continuePrimaryKey","advance"],v_={},Hh=new WeakMap,w2=new WeakMap,ZM={get(e,t){if(!GM.includes(t))return e[t];let n=v_[t];return n||(n=v_[t]=function(...r){Hh.set(this,w2.get(this)[t](...r))}),n}};async function*YM(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const n=new Proxy(t,ZM);for(w2.set(n,t),_f.set(n,jh(t));t;)yield n,t=await(Hh.get(n)||t.continue()),Hh.delete(n)}function y_(e,t){return t===Symbol.asyncIterator&&zh(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&zh(e,[IDBIndex,IDBObjectStore])}_2(e=>({...e,get(t,n,r){return y_(t,n)?YM:e.get(t,n,r)},has(t,n){return y_(t,n)||e.has(t,n)}}));async function ql(){return WM("ChartDataDB",1,{upgrade(e){e.createObjectStore("jesse",{keyPath:"id"})}})}async function Rs(e){return await(await ql()).get("jesse",e)!==void 0}async function Os(e){return(await(await ql()).get("jesse",e)).data}async function Ls(e,t){await(await ql()).put("jesse",{id:e,data:t})}async function Ps(e){await(await ql()).delete("jesse",e)}async function JM(e){return(await(await ql()).getAllKeys("jesse")).filter(r=>typeof r=="string"&&r.startsWith(e))}const yn={candles:{},orders:{},lines:{},extraChartLines:{},horizontalLines:{},horizontalExtraLines:{}};function Sp(){return _e.cloneDeep({id:Mt.uuid(),form:{start_date:"2024-01-01",finish_date:"2024-03-01",debug_mode:!1,export_chart:!1,export_tradingview:!1,export_csv:!1,export_json:!1,fast_mode:!1,benchmark:!0,exchange:"",routes:[],data_routes:[]},results:{showResults:!1,executing:!1,logsModal:!1,progressbar:{current:0,estimated_remaining_seconds:0},routes_info:[],metrics:{},hyperparameters:[],generalInfo:{},infoLogs:"",exception:{error:"",traceback:""},charts:{equity_curve:[]},selectedRoute:{},alert:{message:"",type:""},info:[]}})}const x2=cs("backtest",{state:()=>({tabs:{},benchmarkColumns:[{key:"strategy",label:"Strategy"},{key:"progress",label:"Progress"},{key:"start_date",label:"Start Date"},{key:"finish_date",label:"Finish Date"},{key:"exchange",label:"Exchange"},{key:"symbol",label:"Symbol"},{key:"timeframe",label:"Timeframe"},{key:"total_closed_trades",label:"Total Trades"},{key:"net_profit",label:"Net Profit"},{key:"net_profit_percentage",label:"Net Profit %"},{key:"max_drawdown",label:"Max Drawdown"},{key:"sharpe_ratio",label:"Sharpe Ratio"},{key:"sortino_ratio",label:"Sortino Ratio"},{key:"calmar_ratio",label:"Calmar Ratio"},{key:"omega_ratio",label:"Omega Ratio"},{key:"annual_return",label:"Annual Return"},{key:"total_paid_fees",label:"Total Paid Fees"},{key:"expectancy",label:"Expectancy"},{key:"ratio_avg_win_loss",label:"Ratio Avg Win Loss"},{key:"win_rate",label:"Win Rate"},{key:"longs_percentage",label:"Longs %"},{key:"shorts_percentage",label:"Shorts %"},{key:"average_holding_hours",label:"Average Holding Hours"}],benchmarkFilters:[],benchmarkSorts:[{key:"none",label:"None"},{key:"total_closed_trades",label:"Total Trades"},{key:"net_profit",label:"Net Profit"},{key:"net_profit_percentage",label:"Net Profit %"},{key:"sharpe_ratio",label:"Sharpe Ratio"},{key:"sortino_ratio",label:"Sortino Ratio"},{key:"calmar_ratio",label:"Calmar Ratio"},{key:"omega_ratio",label:"Omega Ratio"},{key:"annual_return",label:"Annual Return"},{key:"expectancy",label:"Expectancy"},{key:"ratio_avg_win_loss",label:"Ratio Avg Win Loss"},{key:"win_rate",label:"Win Rate"}],benchmarkSelectedSort:{},missingCandlesErrors:{}}),persist:{storage:ts.localStorage},actions:{setBenchmarkFilters(e){this.benchmarkFilters=e},setBenchmarkSort(e){this.benchmarkSelectedSort=e},async init(e){await this.cancelInactiveTabs(e),await this.syncDB()},async cancelInactiveTabs(e){for(const t in this.tabs){const n=this.tabs[t];n.results.executing&&!n.results.exception.error&&(e.has(n.id)||await this.cancel(n.id))}},async syncDB(){for(const e of await JM("candles-")){const t=e.replace("candles-","");this.tabs[t]||(await Ps(`candles-${t}`),await Ps(`orders-${t}`),await Ps(`lines-${t}`),await Ps(`extra-lines-${t}`),await Ps(`horizontal-lines-${t}`),await Ps(`horizontal-extra-lines-${t}`))}for(const e in this.tabs)Object.hasOwn(yn.candles,e)||(await Rs(`candles-${e}`)&&(yn.candles[e]=await Os(`candles-${e}`)),await Rs(`orders-${e}`)&&(yn.orders[e]=await Os(`orders-${e}`)),await Rs(`lines-${e}`)&&(yn.lines[e]=await Os(`lines-${e}`)),await Rs(`extra-lines-${e}`)&&(yn.extraChartLines[e]=await Os(`extra-lines-${e}`)),await Rs(`horizontal-lines-${e}`)&&(yn.horizontalLines[e]=await Os(`horizontal-lines-${e}`)),await Rs(`horizontal-extra-lines-${e}`)&&(yn.horizontalExtraLines[e]=await Os(`horizontal-extra-lines-${e}`)))},async addTab(e){const t=Sp();if(this.tabs[t.id]=t,e){const n=this.tabs[e];t.form=JSON.parse(JSON.stringify(n.form))}await Zs(`/backtest/${t.id}`)},closeTab(e){delete this.tabs[e],wl().path!=="/backtest/benchmark"&&Zs("/backtest"),delete yn.orders[e],delete yn.lines[e],delete yn.candles[e]},async startInNewTab(e){const t=Sp();t.form=_e.cloneDeep(this.tabs[e].form),this.tabs[t.id]=t,this.start(t.id),await Zs(`/backtest/${t.id}`)},duplicateTab(e){const t=Sp();t.form=_e.cloneDeep(this.tabs[e].form);const n=Object.keys(this.tabs),r=n.indexOf(e),o={};let i=0;for(const a of n)o[a]=this.tabs[a],i===r&&(o[t.id]=t),i++;this.tabs=o},async start(e){if(delete this.missingCandlesErrors[e],this.tabs[e].results.progressbar.current=0,this.tabs[e].results.executing=!0,this.tabs[e].results.infoLogs="",this.tabs[e].results.exception.traceback="",this.tabs[e].results.exception.error="",this.tabs[e].results.alert||(this.tabs[e].results.alert={message:"",type:""}),this.tabs[e].results.alert.message="",this.tabs[e].results.selectedRoute=this.tabs[e].form.routes[0],this.tabs[e].results.metrics={},this.tabs[e].form.fast_mode&&this.tabs[e].form.routes.length>1){He("error","For the moment, the fast mode can only be used with one trading route"),this.tabs[e].results.executing=!1;return}const{data:t,error:n}=await Ut("/backtest",{id:e,exchange:this.tabs[e].form.exchange,routes:this.tabs[e].form.routes,data_routes:this.tabs[e].form.data_routes,config:At().settings.backtest,start_date:this.tabs[e].form.start_date,finish_date:this.tabs[e].form.finish_date,debug_mode:this.tabs[e].form.debug_mode,export_csv:this.tabs[e].form.export_csv,export_chart:this.tabs[e].form.export_chart,export_tradingview:this.tabs[e].form.export_tradingview,export_json:this.tabs[e].form.export_json,fast_mode:this.tabs[e].form.fast_mode,benchmark:this.tabs[e].form.benchmark},!0);if(n.value&&n.value.statusCode!==200){wl().path!=="/backtest/benchmark"&&He("error",n.value.data.message),this.tabs[e].results.executing=!1;return}},async cancel(e){if(delete this.missingCandlesErrors[e],this.tabs[e].results.exception.error){this.tabs[e].results.executing=!1,this.tabs[e].results.exception.error="";return}const{data:t,error:n}=await Ut("/cancel-backtest",{id:e},!0);n.value&&n.value.statusCode!==200&&He("error",n.value.data.message),this.tabs[e].results.executing=!1},rerun(e){this.tabs[e].results.showResults=!1,this.start(e)},rerunAll(){for(const e in this.tabs)this.tabs[e].results.executing&&!this.tabs[e].results.exception.error||this.rerun(e)},rerunFailed(){for(const e in this.tabs)this.tabs[e].results.exception.error&&this.rerun(e)},cancelAllRunning(){for(const e in this.tabs)this.tabs[e].results.executing&&this.cancel(e)},newBacktest(e){this.tabs[e].results.showResults=!1},candlesInfoEvent(e,t){const n=[["Period",t.duration],["Starting Date",Mt.timestampToDate(t.starting_time)],["Ending Date",Mt.timestampToDate(t.finishing_time)],["Exchange",t.exchange],["Exchange Type",t.exchange_type]];t.exchange_type==="futures"&&(n.push(["Leverage",t.leverage]),n.push(["Leverage Mode",t.leverage_mode])),this.tabs[e].results.info=n},routesInfoEvent(e,t){const n=[];t.forEach(r=>{n.push([{value:r.symbol,style:""},{value:r.timeframe,style:""},{value:r.strategy_name,style:""}])}),this.tabs[e].results.routes_info=n},progressbarEvent(e,t){this.tabs[e].results.progressbar=t},infoLogEvent(e,t){this.tabs[e].results.infoLogs+=`[${Mt.timestampToTime(t.timestamp)}] ${t.message} -`},exceptionEvent(e,t){this.tabs[e].results.exception.error=t.error,this.tabs[e].results.exception.traceback=t.traceback},generalInfoEvent(e,t){this.tabs[e].results.generalInfo=t},hyperparametersEvent(e,t){this.tabs[e].results.hyperparameters=t},metricsEvent(e,t){if(t===null){this.tabs[e].results.metrics={};return}this.tabs[e].results.metrics=t},equityCurveEvent(e,t){this.tabs[e].results.charts.equity_curve=t,this.tabs[e].results.executing=!1,this.tabs[e].results.showResults=!0},terminationEvent(e,t){this.tabs[e].results.executing&&(this.tabs[e].results.executing=!1,He("success","Session terminated successfully"))},alertEvent(e,t){this.tabs[e].results.alert=t},notificationEvent(e,t){He(t.type,t.message)},candlesChartEvent(e,t){yn.candles[e]=t,Ls(`candles-${e}`,t)},ordersChartEvent(e,t){yn.orders[e]=t,Ls(`orders-${e}`,t)},chartLinesEvent(e,t){yn.lines[e]=t,Ls(`lines-${e}`,t)},extraChartLinesEvent(e,t){yn.extraChartLines[e]=t,Ls(`extra-lines-${e}`,t)},horizontalChartLinesEvent(e,t){yn.horizontalLines[e]=t,Ls(`horizontal-lines-${e}`,t)},horizontalExtraChartLinesEvent(e,t){yn.horizontalExtraLines[e]=t,Ls(`horizontal-extra-lines-${e}`,t)},missingCandlesEvent(e,t){this.tabs[e]&&(this.tabs[e].results.executing=!1,this.tabs[e].results.exception.error="",this.tabs[e].results.exception.traceback=""),this.missingCandlesErrors[e]={symbol:t.symbol,exchange:t.exchange,start_date:t.start_date}},formattedMetrics(e){const t=this.tabs[e].results.metrics;return Object.keys(t).length===0?[]:[["Total Closed Trades",t.total],["Total Net Profit",`${_e.round(t.net_profit,2)} (${_e.round(t.net_profit_percentage,2)}%)`],["Starting => Finishing Balance",`${_e.round(t.starting_balance,2)} => ${_e.round(t.finishing_balance,2)}`],["Open Trades",t.total_open_trades],["Total Paid Fees",_e.round(t.fee,2)],["Max Drawdown",`${_e.round(t.max_drawdown,2)}%`],["Annual Return",`${_e.round(t.annual_return,2)}%`],["Expectancy",`${_e.round(t.expectancy,2)} (${_e.round(t.expectancy_percentage,2)}%)`],["Avg Win | Avg Loss",`${_e.round(t.average_win,2)} | ${_e.round(t.average_loss,2)}`],["Ratio Avg Win / Avg Loss",_e.round(t.ratio_avg_win_loss,2)],["Win-rate",`${_e.round(t.win_rate*100,2)}%`],["Longs | Shorts",`${_e.round(t.longs_percentage,2)}% | ${_e.round(t.shorts_percentage,2)}%`],["Avg Holding Time",Mt.secondsToHumanReadable(t.average_holding_period)],["Winning Trades Avg Holding Time",Mt.secondsToHumanReadable(t.average_winning_holding_period)],["Losing Trades Avg Holding Time",Mt.secondsToHumanReadable(t.average_losing_holding_period)],["Sharpe Ratio",_e.round(t.sharpe_ratio,2)],["Calmar Ratio",_e.round(t.calmar_ratio,2)],["Sortino Ratio",_e.round(t.sortino_ratio,2)],["Omega Ratio",_e.round(t.omega_ratio,2)],["Winning Streak",t.winning_streak],["Losing Streak",t.losing_streak],["Largest Winning Trade",_e.round(t.largest_winning_trade,2)],["Largest Losing Trade",_e.round(t.largest_losing_trade,2)],["Total Winning Trades",t.total_winning_trades],["Total Losing Trades",t.total_losing_trades]]},async handleMissingCandles(e,t){var n;((n=t==null?void 0:t.data)==null?void 0:n.type)==="missing_candles"&&(this.missingCandlesErrors[e]={symbol:t.data.symbol,exchange:t.data.exchange,start_date:t.data.start_date})}}}),k2=cs("optimization",{state:()=>({form:{start_date:"2024-01-01",finish_date:"2024-03-01",debug_mode:!1,export_csv:!1,export_json:!1,exchange:"",routes:[],data_routes:[],optimal_total:50,fast_mode:!1},results:{showResults:!1,executing:!1,logsModal:!1,progressbar:{current:0,estimated_remaining_seconds:0},routes_info:[],best_candidates:[],metrics:[],generalInfo:[],infoLogs:"",info:[],exception:{error:"",traceback:""},alert:{message:"",type:""}}}),persist:{storage:ts.localStorage},actions:{async init(e){this.results.executing&&!this.results.exception.error&&(e.has("optimization")||await this.cancel())},async start(){this.results.progressbar.current=0,this.results.executing=!0,this.results.infoLogs="",this.results.exception.traceback="",this.results.exception.error="",this.results.alert.message="",this.results.alert.type="",this.results.metrics=[],this.results.generalInfo=[],this.results.best_candidates=[],this.results.routes_info=[],this.results.showResults=!1;const e=At(),t={id:"optimization",exchange:this.form.exchange,routes:this.form.routes,data_routes:this.form.data_routes,config:e.settings.optimization,start_date:this.form.start_date,finish_date:this.form.finish_date,optimal_total:this.form.optimal_total,debug_mode:this.form.debug_mode,export_csv:this.form.export_csv,export_json:this.form.export_json,fast_mode:this.form.fast_mode},{data:n,error:r}=await Ut("/optimization",t,!0);if(r.value&&r.value.statusCode!==200){He("error",r.value.data.message);return}},async cancel(){if(this.results.exception.error){this.results.executing=!1;return}this.results.executing=!1;const{data:e,error:t}=await Ut("/cancel-optimization",{id:"optimization"},!0);if(t.value&&t.value.statusCode!==200){He("error",t.value.data.message);return}},rerun(){this.results.showResults=!1,this.start()},candlesInfoEvent(e,t){this.results.info=[["Period",t.duration],["Starting-Ending Date",`${Mt.timestampToDate(t.starting_time)} => ${Mt.timestampToDate(t.finishing_time)}`]]},routesInfoEvent(e,t){const n=[];t.forEach(r=>{n.push([{value:r.symbol,style:""},{value:r.timeframe,style:""},{value:r.strategy_name,style:""}])}),this.results.routes_info=n},progressbarEvent(e,t){this.results.progressbar=t},infoLogEvent(e,t){this.results.infoLogs+=`[${Mt.timestampToTime(t.timestamp)}] ${t.message} -`},exceptionEvent(e,t){this.results.exception.error=t.error,this.results.exception.traceback=t.traceback},generalInfoEvent(e,t){this.results.executing||(this.results.executing=!0),this.results.generalInfo=[["Started at",t.started_at],["Index",t.index],["Average strategy execution time",`${_e.round(t.average_execution_seconds,2)} seconds`],["Trading route",t.trading_route]],"population_size"in t&&this.results.generalInfo.push(["Population size",t.population_size?t.population_size:""]),"iterations"in t&&this.results.generalInfo.push(["Iterations",t.iterations?t.iterations:""]),"solution_length"in t&&this.results.generalInfo.push(["Solution length",t.solution_length?t.solution_length:""])},metricsEvent(e,t){if(t===null){this.results.metrics=[];return}this.results.metrics=[["Total Closed Trades",t.total],["Total Net Profit",`${_e.round(t.net_profit,2)} (${_e.round(t.net_profit_percentage,2)}%)`],["Starting => Finishing Balance",`${_e.round(t.starting_balance,2)} => ${_e.round(t.finishing_balance,2)}`],["Open Trades",t.total_open_trades],["Total Paid Fees",_e.round(t.fee,2)],["Max Drawdown",_e.round(t.max_drawdown,2)],["Annual Return",`${_e.round(t.annual_return,2)}%`],["Expectancy",`${_e.round(t.expectancy,2)} (${_e.round(t.expectancy_percentage,2)}%)`],["Avg Win | Avg Loss",`${_e.round(t.average_win,2)} | ${_e.round(t.average_loss,2)}`],["Ratio Avg Win / Avg Loss",_e.round(t.ratio_avg_win_loss,2)],["Win-rate",`${_e.round(t.win_rate*100,2)}%`],["Longs | Shorts",`${_e.round(t.longs_percentage,2)}% | ${_e.round(t.shorts_percentage,2)}%`],["Avg Holding Time",t.average_holding_period],["Winning Trades Avg Holding Time",t.average_winning_holding_period],["Losing Trades Avg Holding Time",t.average_losing_holding_period],["Sharpe Ratio",_e.round(t.sharpe_ratio,2)],["Calmar Ratio",_e.round(t.calmar_ratio,2)],["Sortino Ratio",_e.round(t.sortino_ratio,2)],["Omega Ratio",_e.round(t.omega_ratio,2)],["Winning Streak",t.winning_streak],["Losing Streak",t.losing_streak],["Largest Winning Trade",_e.round(t.largest_winning_trade,2)],["Largest Losing Trade",_e.round(t.largest_losing_trade,2)],["Total Winning Trades",t.total_winning_trades],["Total Losing Trades",t.total_losing_trades]]},terminationEvent(e){this.results.executing&&(this.results.executing=!1,He("success","Session terminated successfully"))},bestCandidatesEvent(e,t){const n=[];t.forEach(r=>{n.push([{value:`#${r.rank}`,style:""},{value:r.dna,style:"",tag:"code"},{value:r.fitness,style:""},{value:`${r.training_win_rate}% | ${r.testing_win_rate}%`,style:""},{value:`${r.training_total_trades} | ${r.testing_total_trades}`,style:""},{value:`${r.training_pnl}% | ${r.testing_pnl}%`,style:""}])}),this.results.best_candidates=n},alertEvent(e,t){this.results.alert=t,this.results.executing=!1,this.results.showResults=!0}}}),Gr=cs("temp",{state:()=>({initiated:!1,makeStrategy:!1})});function fn(e=""){return _e.cloneDeep({id:e||Mt.uuid(),form:{debug_mode:!0,paper_mode:!0,exchange_api_key_id:"",notification_api_key_id:"",exchange:"",routes:[],data_routes:[]},results:{showResults:!1,booting:!1,monitoring:!1,finished:!1,terminating:!1,progressbar:{current:0,estimated_remaining_seconds:0},routes_info:[],routes:[],metrics:[],generalInfo:{},positions:[],orders:[],watchlist:[],candles:[],currentCandles:{},infoLogs:"",errorLogs:"",exception:{error:"",traceback:""},charts:{equity_curve:[]},selectedRoute:{},info:[]}})}const S2=cs("Live",{state:()=>({tabs:{}}),persist:{storage:ts.localStorage},actions:{async init(e){for(const t in this.tabs){const n=this.tabs[t];n.results.monitoring&&!n.results.exception.error&&(e.has(n.id)?await this.fetchLogs(n.id):this.forceClose(n.id))}},async addTab(e){const t=fn();if(this.tabs[t.id]=t,e){const n=this.tabs[e];t.form=JSON.parse(JSON.stringify(n.form))}await Zs(`/live/${t.id}`)},closeTab(e){const t=this.tabs[e];if(t.results.monitoring&&!t.results.exception.error&&!t.results.finished){He("error","Cannot close a live session tab that is currently running");return}delete this.tabs[e],Zs("/live")},reset(e){this.tabs[e].results.progressbar.current=0,this.tabs[e].results.booting=!0,this.tabs[e].results.finished=!1,this.tabs[e].results.infoLogs="",this.tabs[e].results.errorLogs="",this.tabs[e].results.exception.traceback="",this.tabs[e].results.exception.error="",this.tabs[e].results.routes_info=[],this.tabs[e].results.metrics=[],this.tabs[e].results.generalInfo={},this.tabs[e].results.positions=[],this.tabs[e].results.orders=[],this.tabs[e].results.candles=[],this.tabs[e].results.currentCandles={},this.tabs[e].results.watchlist=[]},async start(e){this.reset(e);const t=At(),n=this.tabs[e].form.paper_mode?"":this.tabs[e].form.exchange_api_key_id,r=this.tabs[e].form.exchange,o=this.tabs[e].form.notification_api_key_id?this.tabs[e].form.notification_api_key_id:"";this.tabs[e].results.selectedRoute=this.tabs[e].form.routes[0];const{data:i,error:a}=await Ut("/live",{id:e,exchange:r,exchange_api_key_id:n,notification_api_key_id:o,routes:this.tabs[e].form.routes,data_routes:this.tabs[e].form.data_routes,config:t.settings.live,debug_mode:this.tabs[e].form.debug_mode,paper_mode:this.tabs[e].form.paper_mode},!0);if(a.value&&a.value.statusCode!==200){He("error",a.value.data.message);return}},async cancel(e){const{data:t,error:n}=await Ut("/cancel-live",{id:e,paper_mode:this.tabs[e].form.paper_mode},!0);if(n.value&&n.value.statusCode!==200){He("error",n.value.data.message);return}this.tabs[e].results.booting=!1},async stop(e){const{data:t,error:n}=await Ut("/cancel-live",{id:e,paper_mode:this.tabs[e].form.paper_mode},!0);if(n.value&&n.value.statusCode!==200){He("error",n.value.data.message);return}this.tabs[e].results.terminating=!0},newLive(e){this.tabs[e].results.monitoring=!1,this.tabs[e].results.finished=!1,this.tabs[e].results.exception.error="",this.tabs[e].results.exception.traceback=""},candlesInfoEvent(e,t){this.tabs[e]===void 0&&(this.tabs[e]=fn(e)),this.tabs[e].results.info=[["Period",t.duration],["Starting-Ending Date",`${Mt.timestampToDate(t.starting_time)} => ${Mt.timestampToDate(t.finishing_time)}`]]},routesInfoEvent(e,t){this.tabs[e]===void 0&&(this.tabs[e]=fn(e));const n=[];t.forEach(r=>{n.push([{value:r.symbol,style:""},{value:r.timeframe,style:""},{value:r.strategy_name,style:""}])}),this.tabs[e].results.routes_info=n},progressbarEvent(e,t){this.tabs[e]===void 0&&(this.tabs[e]=fn(e)),this.tabs[e].results.progressbar=t},infoLogEvent(e,t){this.tabs[e]===void 0&&(this.tabs[e]=fn(e)),this.tabs[e].results.infoLogs+=`[${Mt.timestampToTime(t.timestamp)}] ${t.message} -`},errorLogEvent(e,t){this.tabs[e]===void 0&&(this.tabs[e]=fn(e)),He("error",t.message),this.tabs[e].results.errorLogs+=`[${Mt.timestampToTime(t.timestamp)}] ${t.message} -`},exceptionEvent(e,t){this.tabs[e]===void 0&&(this.tabs[e]=fn(e)),this.tabs[e].results.exception.error=t.error,this.tabs[e].results.exception.traceback=t.traceback},generalInfoEvent(e,t){this.tabs[e]===void 0&&(this.tabs[e]=fn(e)),this.tabs[e].results.generalInfo=t,this.tabs[e].form.routes=this.tabs[e].results.generalInfo.routes,this.tabs[e].results.routes=[];for(const n of this.tabs[e].form.routes)this.tabs[e].results.routes.push([{value:n.symbol,style:""},{value:n.timeframe,style:""},{value:n.strategy,style:""}]);this.tabs[e].results.monitoring||(this.tabs[e].results.booting=!1,this.tabs[e].results.monitoring=!0,this.fetchLogs(e))},async fetchCandles(e){const{data:t,error:n}=await Ut("/get-candles",{id:e,exchange:this.tabs[e].form.exchange,symbol:this.tabs[e].results.selectedRoute.symbol,timeframe:this.tabs[e].results.selectedRoute.timeframe},!0);if(n.value&&n.value.statusCode!==200){He("error",n.value.data.message);return}const r=t.value;this.tabs[e].results.candles=r.data},async fetchLogs(e){this.tabs[e]===void 0&&(this.tabs[e]=fn(e)),this.tabs[e].results.infoLogs="",this.tabs[e].results.errorLogs="";const{data:t,error:n}=await Ut("/get-logs",{id:e,type:"info",start_time:this.tabs[e].results.generalInfo.started_at},!0);if(n.value&&n.value.statusCode!==200){He("error",n.value.data.message);return}const o=t.value.data;this.tabs[e].results.infoLogs="",o.forEach(f=>{this.tabs[e].results.infoLogs+=`[${Mt.timestampToTime(f.timestamp)}] ${f.message} -`});const{data:i,error:a}=await Ut("/get-logs",{id:e,type:"error",start_time:this.tabs[e].results.generalInfo.started_at},!0);if(a.value&&a.value.statusCode!==200){He("error",a.value.data.message);return}const c=i.value.data;this.tabs[e].results.errorLogs="",c.forEach(f=>{this.tabs[e].results.errorLogs+=`[${Mt.timestampToTime(f.timestamp)}] ${f.message} -`})},currentCandlesEvent(e,t){this.tabs[e]===void 0&&(this.tabs[e]=fn(e)),this.tabs[e].results.currentCandles=t},watchlistEvent(e,t){this.tabs[e]===void 0&&(this.tabs[e]=fn(e)),this.tabs[e].results.watchlist=t},positionsEvent(e,t){this.tabs[e]===void 0&&(this.tabs[e]=fn(e)),this.tabs[e].results.positions=[];for(const n of t){const r=n.type==="close"?"":n.qty;this.tabs[e].results.positions.push([{value:n.symbol,style:""},{value:r,style:Mt.colorBasedOnType(n.type),tooltip:`${n.value} ${n.currency}`},{value:Mt.roundPrice(n.entry),style:""},{value:Mt.roundPrice(n.current_price),style:""},{value:n.liquidation_price?Mt.roundPrice(n.liquidation_price):"",style:""},{value:`${_e.round(n.pnl,2)} (${_e.round(n.pnl_perc,2)}%)`,style:Mt.colorBasedOnNumber(n.pnl)}])}},ordersEvent(e,t){this.tabs[e]===void 0&&(this.tabs[e]=fn(e)),this.tabs[e].results.orders=t},metricsEvent(e,t){this.tabs[e]===void 0&&(this.tabs[e]=fn(e)),this.tabs[e].results.metrics=[["Total Closed Trades",t.total],["Total Net Profit",`${_e.round(t.net_profit,2)} (${_e.round(t.net_profit_percentage,2)}%)`],["Starting => Finishing Balance",`${_e.round(t.starting_balance,2)} => ${_e.round(t.finishing_balance,2)}`],["Open Trades",t.total_open_trades],["Total Paid Fees",_e.round(t.fee,2)],["Max Drawdown",_e.round(t.max_drawdown,2)],["Annual Return",`${_e.round(t.annual_return,2)}%`],["Expectancy",`${_e.round(t.expectancy,2)} (${_e.round(t.expectancy_percentage,2)}%)`],["Avg Win | Avg Loss",`${_e.round(t.average_win,2)} | ${_e.round(t.average_loss,2)}`],["Ratio Avg Win / Avg Loss",_e.round(t.ratio_avg_win_loss,2)],["Win-rate",`${_e.round(t.win_rate*100,2)}%`],["Longs | Shorts",`${_e.round(t.longs_percentage,2)}% | ${_e.round(t.shorts_percentage,2)}%`],["Avg Holding Time",t.average_holding_period],["Winning Trades Avg Holding Time",t.average_winning_holding_period],["Losing Trades Avg Holding Time",t.average_losing_holding_period],["Sharpe Ratio",_e.round(t.sharpe_ratio,2)],["Calmar Ratio",_e.round(t.calmar_ratio,2)],["Sortino Ratio",_e.round(t.sortino_ratio,2)],["Omega Ratio",_e.round(t.omega_ratio,2)],["Winning Streak",t.winning_streak],["Losing Streak",t.losing_streak],["Largest Winning Trade",_e.round(t.largest_winning_trade,2)],["Largest Losing Trade",_e.round(t.largest_losing_trade,2)],["Total Winning Trades",t.total_winning_trades],["Total Losing Trades",t.total_losing_trades]]},equityCurveEvent(e,t){this.tabs[e].results.charts.equity_curve=t,this.tabs[e].results.showResults=!0},unexpectedTerminationEvent(e){this.tabs[e]===void 0&&(this.tabs[e]=fn(e)),this.tabs[e].results.finished=!0},terminationEvent(e){this.tabs[e]===void 0&&(this.tabs[e]=fn(e)),this.tabs[e].results.finished||(this.tabs[e].results.finished=!0,this.tabs[e].results.terminating=!1,He("success","Session terminated successfully"))},forceClose(e){this.tabs[e]===void 0&&(this.tabs[e]=fn(e)),this.tabs[e].results.finished=!0,this.tabs[e].results.terminating=!1}}}),At=cs("main",{state:()=>({loadingVar:!1,authToken:"",hasLivePluginInstalled:!1,systemInfo:{},updateInfo:{},plan:"",planLimits:{},settings:{backtest:{logging:{order_submission:!0,order_cancellation:!0,order_execution:!0,position_opened:!0,position_increased:!0,position_reduced:!0,position_closed:!0,shorter_period_candles:!1,trading_candles:!0,balance_update:!0},warm_up_candles:210,exchanges:{}},live:{persistency:!0,generate_candles_from_1m:!1,logging:{order_submission:!0,order_cancellation:!0,order_execution:!0,position_opened:!0,position_increased:!0,position_reduced:!0,position_closed:!0,shorter_period_candles:!1,trading_candles:!0,balance_update:!0},warm_up_candles:210,exchanges:{},notifications:{enabled:!0,position_report_timeframe:"1h",events:{errors:!0,started_session:!0,terminated_session:!0,submitted_orders:!0,cancelled_orders:!0,executed_orders:!0,opened_position:!0,updated_position:!0,exchange_ws_reconnection:!0}}},optimization:{cpu_cores:2,ratio:"sharpe",warm_up_candles:210,exchange:{balance:1e4,fee:.001,type:"futures",futures_leverage:3,futures_leverage_mode:"cross"}},editor:{fontSize:16,cursorStyle:"line",minimap:!1,lineHeight:24,cursorWidth:2,cursorBlinking:"blink",renderLineHighlight:"line"}},strategies:[],exchangeInfo:{},jesseSupportedTimeframes:[],exchangeSupportedSymbols:{},skippedJesseVersions:[],skippedLivePluginVersions:[],activeWorkers:new Set,exchangeApiKeys:[],notificationApiKeys:[],isInitiated:!1}),persist:{storage:ts.localStorage},getters:{backtestingExchangeNames(){const e=[];for(const t in this.exchangeInfo)this.exchangeInfo[t].modes.backtesting&&e.push(t);return e.sort()},liveTradingExchangeNames(){const e=[];for(const t in this.exchangeInfo)this.exchangeInfo[t].modes.live_trading&&e.push(t);return e.sort()},isAuthenticated(){return this.authToken!==""}},actions:{async initiate(){if(this.isInitiated)return;const{data:e,error:t}=await Ut("/general-info",{},!0);if(t&&t.value&&t.value.statusCode!==200){Go(t);return}const n=e.value;this.systemInfo=n.system_info,this.updateInfo=n.update_info,this.strategies=n.strategies,this.exchangeInfo=n.exchanges,this.jesseSupportedTimeframes=n.jesse_supported_timeframes,this.hasLivePluginInstalled=n.has_live_plugin_installed,this.plan=n.plan,this.planLimits=n.limits;for(const f in this.exchangeInfo){const d=this.exchangeInfo[f];d.modes.backtesting&&(this.settings.backtest.exchanges[f]={name:f,fee:d.fee,balance:1e4,type:d.type},d.type==="futures"&&(this.settings.backtest.exchanges[f].futures_leverage_mode="cross",this.settings.backtest.exchanges[f].futures_leverage=2)),d.modes.live_trading&&(this.settings.live.exchanges[d.name]={name:f,fee:d.fee,futures_leverage_mode:"cross",futures_leverage:2,balance:1e4})}const{data:r,error:o}=await Ut("/get-config",{current_config:this.settings},!0);if(o.value&&o.value.statusCode!==200){Go(o);return}const i=r.value;this.settings=i.data.data;const{data:a,error:u}=await Ut("/active-workers",{},!0);if(u.value&&u.value.statusCode!==200){Go(u);return}const c=a.value;this.activeWorkers=new Set(c.data),await this.syncOpenTabs(),await this.fetchExchangeApiKeys(),await this.fetchNotificationApiKeys(),Gr().initiated=!0,this.isInitiated=!0},async syncOpenTabs(){b2().init(this.activeWorkers),x2().init(this.activeWorkers),k2().init(this.activeWorkers),S2().init(this.activeWorkers)},updateConfig:OP(async()=>{if(!At().settings)return;const{data:e,error:t}=await Ut("/update-config",{current_config:At().settings},!0);t.value&&t.value.statusCode!==200&&Go(t)},1e3,!0,!0),async fetchExchangeApiKeys(){const{data:e,error:t}=await d_("/exchange-api-keys",!0);if(t.value&&t.value.statusCode!==200){Go(t);return}const n=e.value;this.exchangeApiKeys=n.data},async fetchNotificationApiKeys(){const{data:e,error:t}=await d_("/notification-api-keys",!0);if(t.value&&t.value.statusCode!==200){Go(t);return}const n=e.value;this.notificationApiKeys=n.data},setAuthToken(e){this.authToken=e},async updateSupportedSymbols(e){const{data:t,error:n}=await Ut("/exchange-supported-symbols",{exchange:e},!0);if(n.value&&n.value.statusCode!==200){Go(n);return}const r=t.value;this.exchangeSupportedSymbols[e]={data:r.data,updated_at:new Date}},async getExchangeSupportedSymbols(e){var t;return await this.updateSupportedSymbols(e),(t=this.exchangeSupportedSymbols[e])==null?void 0:t.data}}}),XM={key:0,class:"relative bg-indigo-600 dark:bg-indigo-400 select-none text-white dark:text-black"},QM={class:"max-w-7xl mx-auto py-3 px-3 sm:px-6 lg:px-8"},eD={class:"pr-16 sm:text-center sm:px-16"},tD={class:"font-medium"},nD={class:"md:inline"},rD=O("span",{class:"block sm:ml-2 sm:inline-block"},[O("a",{href:"https://docs.jesse.trade/docs/getting-started/update.html",target:"_blank",class:"font-bold underline"},[pe(" Update Guide "),O("span",{"aria-hidden":"true"},"→")])],-1),oD={class:"absolute inset-y-0 right-0 pt-1 pr-1 flex items-start sm:pt-1 sm:pr-2 sm:items-start"},iD=xe({__name:"UpdateBanner",setup(e){const t=ee(!1),n=At(),r=z(()=>n.updateInfo),o=z(()=>n.systemInfo),i=z(()=>{if(t.value||!r.value||!r.value.is_update_info_available)return{flag:!1,message:"",type:"",version:""};const u=n.skippedJesseVersions,c=n.skippedLivePluginVersions;return r.value.jesse_latest_version>o.value.jesse_version&&!u.includes(r.value.jesse_latest_version)?{flag:!0,message:`Version "${r.value.jesse_latest_version}" of Jesse is available. You are currently running version "${o.value.jesse_version}".`,type:"jesse",version:r.value.jesse_latest_version}:o.value.live_plugin_version&&r.value.jesse_live_latest_version>o.value.live_plugin_version&&!c.includes(r.value.jesse_live_latest_version)?{flag:!0,message:`Version "${r.value.jesse_live_latest_version}" of the live plugin is available. You are running "${o.value.live_plugin_version}".`,type:"live",version:r.value.jesse_live_latest_version}:{flag:!1,message:"",type:"",version:""}}),a=(u,c)=>{if(u==="jesse"){const f=n.skippedJesseVersions||[];f.push(c),n.skippedJesseVersions=f,t.value=!0}if(u==="live"){const f=n.skippedLivePluginVersions||[];f.push(c),n.skippedLivePluginVersions=f,t.value=!0}};return(u,c)=>R(i).flag?(U(),Z("div",XM,[O("div",QM,[O("div",eD,[O("p",tD,[O("span",nD,et(R(i).message),1),rD])]),O("div",oD,[O("button",{type:"button",class:"flex p-2 rounded-md hover:bg-indigo-500 focus:outline-none focus:ring-0",onClick:c[0]||(c[0]=f=>a(R(i).type,R(i).version))},[P(R(e0),{class:"h-6 w-6","aria-hidden":"true"})])])])])):Ie("",!0)}}),jt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},sD={},aD={class:"text-2xl mb-4"};function lD(e,t){return U(),Z("h3",aD,[nt(e.$slots,"default")])}const Gl=jt(sD,[["render",lD]]),_n=(e,t,n,r,o=!1)=>{const i=$4(),a=yf(),u=z(()=>{var h;const f=Zr(t),d=Zr(n),g=Zr(r);return gn((f==null?void 0:f.strategy)||((h=a.ui)==null?void 0:h.strategy),g?{wrapper:g}:{},f||{},o?Ya(a.ui,e,{}):{},d||{})}),c=z(()=>S7(i,["class"]));return{ui:u,attrs:c}},Zl=(e,t)=>{const n=Ge("form-events",void 0),r=Ge("form-group",void 0),o=Ge("form-inputs",void 0);r&&(e!=null&&e.id&&(r.inputId.value=e==null?void 0:e.id),o&&(o.value[r.name.value]=r.inputId.value));const i=ee(!1);function a(d,g){n&&n.emit({type:d,path:g})}function u(){a("blur",r==null?void 0:r.name.value),i.value=!0}function c(){a("change",r==null?void 0:r.name.value)}const f=RP(()=>{(i.value||r!=null&&r.eagerValidation.value)&&a("input",r==null?void 0:r.name.value)},300);return{inputId:z(()=>(e==null?void 0:e.id)??(r==null?void 0:r.inputId.value)),name:z(()=>(e==null?void 0:e.name)??(r==null?void 0:r.name.value)),size:z(()=>{var g;const d=t.size[r==null?void 0:r.size.value]?r==null?void 0:r.size.value:null;return(e==null?void 0:e.size)??d??((g=t==null?void 0:t.default)==null?void 0:g.size)}),color:z(()=>{var d;return(d=r==null?void 0:r.error)!=null&&d.value?"red":e==null?void 0:e.color}),emitFormBlur:u,emitFormInput:f,emitFormChange:c}},uD={wrapper:"relative inline-flex items-center justify-center flex-shrink-0",background:"bg-gray-100 dark:bg-gray-800",rounded:"rounded-full",text:"font-medium leading-none text-gray-900 dark:text-white truncate",placeholder:"font-medium leading-none text-gray-500 dark:text-gray-400 truncate",size:{"3xs":"h-4 w-4 text-[8px]","2xs":"h-5 w-5 text-[10px]",xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-14 w-14 text-xl","2xl":"h-16 w-16 text-2xl","3xl":"h-20 w-20 text-3xl"},chip:{base:"absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium",background:"bg-{color}-500 dark:bg-{color}-400",position:{"top-right":"top-0 right-0","bottom-right":"bottom-0 right-0","top-left":"top-0 left-0","bottom-left":"bottom-0 left-0"},size:{"3xs":"h-[4px] min-w-[4px] text-[4px] p-px","2xs":"h-[5px] min-w-[5px] text-[5px] p-px",xs:"h-1.5 min-w-[0.375rem] text-[6px] p-px",sm:"h-2 min-w-[0.5rem] text-[7px] p-0.5",md:"h-2.5 min-w-[0.625rem] text-[8px] p-0.5",lg:"h-3 min-w-[0.75rem] text-[10px] p-0.5",xl:"h-3.5 min-w-[0.875rem] text-[11px] p-1","2xl":"h-4 min-w-[1rem] text-[12px] p-1","3xl":"h-5 min-w-[1.25rem] text-[14px] p-1"}},icon:{base:"text-gray-500 dark:text-gray-400 flex-shrink-0",size:{"3xs":"h-2 w-2","2xs":"h-2.5 w-2.5",xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7","2xl":"h-8 w-8","3xl":"h-10 w-10"}},default:{size:"sm",icon:null,chipColor:null,chipPosition:"top-right"}},cD={base:"focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0",font:"font-medium",rounded:"rounded-md",truncate:"text-left break-all line-clamp-1",block:"w-full flex justify-center items-center",inline:"inline-flex items-center",size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-1.5",md:"gap-x-2",lg:"gap-x-2.5",xl:"gap-x-2.5"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},square:{"2xs":"p-1",xs:"p-1.5",sm:"p-1.5",md:"p-2",lg:"p-2.5",xl:"p-2.5"},color:{white:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white hover:bg-gray-50 disabled:bg-white dark:bg-gray-900 dark:hover:bg-gray-800/50 dark:disabled:bg-gray-900 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-900 dark:text-white hover:bg-white dark:hover:bg-gray-900 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},gray:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 hover:bg-gray-100 disabled:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700/50 dark:disabled:bg-gray-800 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-700 dark:text-gray-200 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},black:{solid:"shadow-sm text-white dark:text-gray-900 bg-gray-900 hover:bg-gray-800 disabled:bg-gray-900 dark:bg-white dark:hover:bg-gray-100 dark:disabled:bg-white focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-900 dark:text-white underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"}},variant:{solid:"shadow-sm text-white dark:text-gray-900 bg-{color}-500 hover:bg-{color}-600 disabled:bg-{color}-500 dark:bg-{color}-400 dark:hover:bg-{color}-500 dark:disabled:bg-{color}-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-{color}-500 dark:focus-visible:outline-{color}-400",outline:"ring-1 ring-inset ring-current text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",soft:"text-{color}-500 dark:text-{color}-400 bg-{color}-50 hover:bg-{color}-100 disabled:bg-{color}-50 dark:bg-{color}-950 dark:hover:bg-{color}-900 dark:disabled:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",ghost:"text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",link:"text-{color}-500 hover:text-{color}-600 disabled:text-{color}-500 dark:text-{color}-400 dark:hover:text-{color}-500 dark:disabled:text-{color}-400 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400"},icon:{base:"flex-shrink-0",loading:"animate-spin",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"}},default:{size:"sm",variant:"solid",color:"primary",loadingIcon:"i-heroicons-arrow-path-20-solid"}},wf={base:"invisible before:visible before:block before:rotate-45 before:z-[-1] before:w-2 before:h-2",ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",rounded:"before:rounded-sm",background:"before:bg-gray-200 dark:before:bg-gray-800",shadow:"before:shadow",placement:"group-data-[popper-placement*='right']:-left-1 group-data-[popper-placement*='left']:-right-1 group-data-[popper-placement*='top']:-bottom-1 group-data-[popper-placement*='bottom']:-top-1"};({...wf});const fD={base:"inline-flex items-center justify-center text-gray-900 dark:text-white",padding:"px-1",size:{xs:"h-4 min-w-[16px] text-[10px]",sm:"h-5 min-w-[20px] text-[11px]",md:"h-6 min-w-[24px] text-[12px]"},rounded:"rounded",font:"font-medium font-sans",background:"bg-gray-100 dark:bg-gray-800",ring:"ring-1 ring-gray-300 dark:ring-gray-700 ring-inset",default:{size:"sm"}},t0={wrapper:"relative",base:"relative block w-full disabled:cursor-not-allowed disabled:opacity-75 focus:outline-none border-0",form:"form-input",rounded:"rounded-md",placeholder:"placeholder-gray-400 dark:placeholder-gray-500",file:{base:"file:cursor-pointer file:rounded-l-md file:absolute file:left-0 file:inset-y-0 file:font-medium file:m-0 file:border-0 file:ring-1 file:ring-gray-300 dark:file:ring-gray-700 file:text-gray-900 dark:file:text-white file:bg-gray-50 hover:file:bg-gray-100 dark:file:bg-gray-800 dark:hover:file:bg-gray-700/50",padding:{"2xs":"ps-[85px]",xs:"ps-[87px]",sm:"ps-[96px]",md:"ps-[98px]",lg:"ps-[100px]",xl:"ps-[109px]"}},size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-1.5",md:"gap-x-2",lg:"gap-x-2.5",xl:"gap-x-2.5"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},leading:{padding:{"2xs":"ps-7",xs:"ps-8",sm:"ps-9",md:"ps-10",lg:"ps-11",xl:"ps-12"}},trailing:{padding:{"2xs":"pe-7",xs:"pe-8",sm:"pe-9",md:"pe-10",lg:"pe-11",xl:"pe-12"}},color:{white:{outline:"shadow-sm bg-white dark:bg-gray-900 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"},gray:{outline:"shadow-sm bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"}},variant:{outline:"shadow-sm bg-transparent text-gray-900 dark:text-white ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 focus:ring-2 focus:ring-{color}-500 dark:focus:ring-{color}-400",none:"bg-transparent focus:ring-0 focus:shadow-none"},icon:{base:"flex-shrink-0 text-gray-400 dark:text-gray-500",color:"text-{color}-500 dark:text-{color}-400",loading:"animate-spin",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"},leading:{wrapper:"absolute inset-y-0 start-0 flex items-center",pointer:"pointer-events-none",padding:{"2xs":"px-2",xs:"px-2.5",sm:"px-2.5",md:"px-3",lg:"px-3.5",xl:"px-3.5"}},trailing:{wrapper:"absolute inset-y-0 end-0 flex items-center",pointer:"pointer-events-none",padding:{"2xs":"px-2",xs:"px-2.5",sm:"px-2.5",md:"px-3",lg:"px-3.5",xl:"px-3.5"}}},default:{size:"sm",color:"white",variant:"outline",loadingIcon:"i-heroicons-arrow-path-20-solid"}},b_={container:"z-20 group",trigger:"flex items-center w-full",width:"w-full",height:"max-h-60",base:"relative focus:outline-none overflow-y-auto scroll-py-1",background:"bg-white dark:bg-gray-800",shadow:"shadow-lg",rounded:"rounded-md",padding:"p-1",ring:"ring-1 ring-gray-200 dark:ring-gray-700",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",option:{base:"cursor-default select-none relative flex items-center justify-between gap-1",rounded:"rounded-md",padding:"px-1.5 py-1.5",size:"text-sm",color:"text-gray-900 dark:text-white",container:"flex items-center gap-1.5 min-w-0",active:"bg-gray-100 dark:bg-gray-900",inactive:"",selected:"pe-7",disabled:"cursor-not-allowed opacity-50",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",icon:{base:"flex-shrink-0 h-5 w-5",active:"text-gray-900 dark:text-white",inactive:"text-gray-400 dark:text-gray-500"},selectedIcon:{wrapper:"absolute inset-y-0 end-0 flex items-center",padding:"pe-2",base:"h-5 w-5 text-gray-900 dark:text-white flex-shrink-0"},avatar:{base:"flex-shrink-0",size:"2xs"},chip:{base:"flex-shrink-0 w-2 h-2 mx-1 rounded-full"}},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",trailingIcon:"i-heroicons-chevron-down-20-solid"},arrow:{...wf,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},dD={wrapper:"",inner:"",label:{wrapper:"flex content-center items-center justify-between",base:"block font-medium text-gray-700 dark:text-gray-200",required:"after:content-['*'] after:ms-0.5 after:text-red-500 dark:after:text-red-400"},size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},container:"mt-1 relative",description:"text-gray-500 dark:text-gray-400",hint:"text-gray-500 dark:text-gray-400",help:"mt-2 text-gray-500 dark:text-gray-400",error:"mt-2 text-red-500 dark:text-red-400",default:{size:"sm"}},pD={...t0,form:"form-textarea",default:{size:"sm",color:"white",variant:"outline"}},hD={...t0,form:"form-select",placeholder:"text-gray-400 dark:text-gray-500",default:{size:"sm",color:"white",variant:"outline",loadingIcon:"i-heroicons-arrow-path-20-solid",trailingIcon:"i-heroicons-chevron-down-20-solid"}},eq={...b_,select:"inline-flex items-center text-left cursor-default",input:"block w-[calc(100%+0.5rem)] focus:ring-transparent text-sm px-3 py-1.5 text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-800 border-0 border-b border-gray-200 dark:border-gray-700 sticky -top-1 -mt-1 mb-1 -mx-1 z-10 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none",required:"absolute inset-0 w-px opacity-0 cursor-default",label:"block truncate",option:{...b_.option,create:"block truncate"},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",clearSearchOnClose:!1,showCreateOptionWhen:"empty"},arrow:{...wf,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},gD={wrapper:"relative flex items-start",container:"flex items-center h-5",base:"h-4 w-4 dark:checked:bg-current dark:checked:border-transparent dark:indeterminate:bg-current dark:indeterminate:border-transparent disabled:opacity-50 disabled:cursor-not-allowed focus:ring-0 focus:ring-transparent focus:ring-offset-transparent",form:"form-checkbox",rounded:"rounded",color:"text-{color}-500 dark:text-{color}-400",background:"bg-white dark:bg-gray-900",border:"border border-gray-300 dark:border-gray-700",ring:"focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",inner:"ms-3 flex flex-col",label:"text-sm font-medium text-gray-700 dark:text-gray-200",required:"text-sm text-red-500 dark:text-red-400",help:"text-sm text-gray-500 dark:text-gray-400",default:{color:"primary"}},mD={base:"relative inline-flex flex-shrink-0 border-2 border-transparent disabled:cursor-not-allowed disabled:opacity-50 focus:outline-none",rounded:"rounded-full",ring:"focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",active:"bg-{color}-500 dark:bg-{color}-400",inactive:"bg-gray-200 dark:bg-gray-700",size:{"2xs":"h-3 w-5",xs:"h-3.5 w-6",sm:"h-4 w-7",md:"h-5 w-9",lg:"h-6 w-11",xl:"h-7 w-[3.25rem]","2xl":"h-8 w-[3.75rem]"},container:{base:"pointer-events-none relative inline-block rounded-full bg-white dark:bg-gray-900 shadow transform ring-0 transition ease-in-out duration-200",active:{"2xs":"translate-x-2 rtl:-translate-x-2",xs:"translate-x-2.5 rtl:-translate-x-2.5",sm:"translate-x-3 rtl:-translate-x-3",md:"translate-x-4 rtl:-translate-x-4",lg:"translate-x-5 rtl:-translate-x-5",xl:"translate-x-6 rtl:-translate-x-6","2xl":"translate-x-7 rtl:-translate-x-7"},inactive:"translate-x-0 rtl:-translate-x-0",size:{"2xs":"h-2 w-2",xs:"h-2.5 w-2.5",sm:"h-3 w-3",md:"h-4 w-4",lg:"h-5 w-5",xl:"h-6 w-6","2xl":"h-7 w-7"}},icon:{base:"absolute inset-0 h-full w-full flex items-center justify-center transition-opacity",active:"opacity-100 ease-in duration-200",inactive:"opacity-0 ease-out duration-100",size:{"2xs":"h-2 w-2",xs:"h-2 w-2",sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4",xl:"h-5 w-5","2xl":"h-6 w-6"},on:"text-{color}-500 dark:text-{color}-400",off:"text-gray-400 dark:text-gray-500",loading:"animate-spin text-{color}-500 dark:text-{color}-400"},default:{onIcon:null,offIcon:null,loadingIcon:"i-heroicons-arrow-path-20-solid",color:"primary",size:"md"}},vD={base:"",background:"bg-white dark:bg-gray-900",divide:"divide-y divide-gray-200 dark:divide-gray-800",ring:"ring-1 ring-gray-200 dark:ring-gray-800",rounded:"rounded-lg",shadow:"shadow",body:{base:"",background:"",padding:"px-4 py-5 sm:p-6"},header:{base:"",background:"",padding:"px-4 py-5 sm:px-6"},footer:{base:"",background:"",padding:"px-4 py-4 sm:px-6"}},yD={base:"mx-auto",padding:"px-4 sm:px-6 lg:px-8",constrained:"max-w-7xl"},bD={wrapper:"relative z-50",inner:"fixed inset-0 overflow-y-auto",container:"flex min-h-full items-end sm:items-center justify-center text-center",padding:"p-4 sm:p-0",margin:"sm:my-8",base:"relative text-left rtl:text-right flex flex-col",overlay:{base:"fixed inset-0 transition-opacity",background:"bg-gray-200/75 dark:bg-gray-800/75",transition:{enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"}},background:"bg-white dark:bg-gray-900",ring:"",rounded:"rounded-lg",shadow:"shadow-xl",width:"w-full sm:max-w-lg",height:"",fullscreen:"w-screen h-screen",transition:{enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"}},_D={wrapper:"fixed inset-0 flex z-50",overlay:{base:"fixed inset-0 transition-opacity",background:"bg-gray-200/75 dark:bg-gray-800/75",transition:{enter:"ease-in-out duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0"}},base:"relative flex-1 flex flex-col w-full focus:outline-none",background:"bg-white dark:bg-gray-900",ring:"",rounded:"",padding:"",shadow:"shadow-xl",width:"w-screen max-w-md",translate:{base:"translate-x-0",left:"-translate-x-full rtl:translate-x-full",right:"translate-x-full rtl:-translate-x-full"},transition:{enter:"transform transition ease-in-out duration-300",leave:"transform transition ease-in-out duration-200"}},wD={wrapper:"relative inline-flex",container:"z-20 group",width:"max-w-xs",background:"bg-white dark:bg-gray-900",color:"text-gray-900 dark:text-white",shadow:"shadow",rounded:"rounded",ring:"ring-1 ring-gray-200 dark:ring-gray-800",base:"[@media(pointer:coarse)]:hidden h-6 px-2 py-1 text-xs font-normal truncate relative",shortcuts:"hidden md:inline-flex flex-shrink-0 gap-0.5",middot:"mx-1 text-gray-700 dark:text-gray-200",transition:{enterActiveClass:"transition ease-out duration-200",enterFromClass:"opacity-0 translate-y-1",enterToClass:"opacity-100 translate-y-0",leaveActiveClass:"transition ease-in duration-150",leaveFromClass:"opacity-100 translate-y-0",leaveToClass:"opacity-0 translate-y-1"},popper:{strategy:"fixed"},default:{openDelay:0,closeDelay:0},arrow:{...wf,base:"[@media(pointer:coarse)]:hidden invisible before:visible before:block before:rotate-45 before:z-[-1] before:w-2 before:h-2"}},xD={wrapper:"w-full pointer-events-auto",container:"relative overflow-hidden",inner:"w-0 flex-1",title:"text-sm font-medium text-gray-900 dark:text-white",description:"mt-1 text-sm leading-4 text-gray-500 dark:text-gray-400",actions:"flex items-center gap-2 mt-3 flex-shrink-0",background:"bg-white dark:bg-gray-900",shadow:"shadow-lg",rounded:"rounded-lg",padding:"p-4",gap:"gap-3",ring:"ring-1 ring-gray-200 dark:ring-gray-800",icon:{base:"flex-shrink-0 w-5 h-5",color:"text-{color}-500 dark:text-{color}-400"},avatar:{base:"flex-shrink-0 self-center",size:"md"},progress:{base:"absolute bottom-0 end-0 start-0 h-1",background:"bg-{color}-500 dark:bg-{color}-400"},transition:{enterActiveClass:"transform ease-out duration-300 transition",enterFromClass:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterToClass:"translate-y-0 opacity-100 sm:translate-x-0",leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},default:{color:"primary",icon:null,timeout:5e3,closeButton:{icon:"i-heroicons-x-mark-20-solid",color:"gray",variant:"link",padded:!1},actionButton:{size:"xs",color:"white"}}},kD={wrapper:"fixed flex flex-col justify-end z-[55]",position:"bottom-0 end-0",width:"w-full sm:w-96",container:"px-4 sm:px-6 py-6 space-y-3 overflow-y-auto"},__=gn(Ve.ui.strategy,Ve.ui.checkbox,gD),SD=xe({inheritAttrs:!1,props:{id:{type:String,default:()=>null},value:{type:[String,Number,Boolean,Object],default:null},modelValue:{type:[Boolean,Array],default:null},name:{type:String,default:null},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:void 0},help:{type:String,default:null},label:{type:String,default:null},required:{type:Boolean,default:!1},color:{type:String,default:()=>__.default.color,validator(e){return Ve.ui.colors.includes(e)}},inputClass:{type:String,default:""},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["update:modelValue","change"],setup(e,{emit:t}){const{ui:n,attrs:r}=_n("checkbox",$t(e,"ui"),__,$t(e,"class")),{emitFormChange:o,color:i,name:a,inputId:u}=Zl(e),c=u.value??ha("$YWrWuPJ69t"),f=z({get(){return e.modelValue},set(h){t("update:modelValue",h)}}),d=h=>{t("change",h.target.checked),o()},g=z(()=>Vn(pt(n.value.base,n.value.form,n.value.rounded,n.value.background,n.value.border,i.value&&n.value.ring.replaceAll("{color}",i.value),i.value&&n.value.color.replaceAll("{color}",i.value)),e.inputClass));return{ui:n,attrs:r,toggle:f,inputId:c,name:a,inputClass:g,onChange:d}}}),ED=["data-n-ids"],CD=["id","name","required","value","disabled","indeterminate"],TD=["for"];function AD(e,t,n,r,o,i){return U(),Z("div",{class:le(e.ui.wrapper),"data-n-ids":e.attrs["data-n-ids"]},[O("div",{class:le(e.ui.container)},[xw(O("input",ot({id:e.inputId,"onUpdate:modelValue":t[0]||(t[0]=a=>e.toggle=a),name:e.name,required:e.required,value:e.value,disabled:e.disabled,indeterminate:e.indeterminate,type:"checkbox",class:e.inputClass},e.attrs,{onChange:t[1]||(t[1]=(...a)=>e.onChange&&e.onChange(...a))}),null,16,CD),[[OR,e.toggle]])],2),e.label||e.$slots.label?(U(),Z("div",{key:0,class:le(e.ui.inner)},[O("label",{for:e.inputId,class:le(e.ui.label)},[nt(e.$slots,"label",{},()=>[pe(et(e.label),1)]),e.required?(U(),Z("span",{key:0,class:le(e.ui.required)},"*",2)):Ie("",!0)],10,TD),e.help?(U(),Z("p",{key:0,class:le(e.ui.help)},et(e.help),3)):Ie("",!0)],2)):Ie("",!0)],10,ED)}const E2=jt(SD,[["render",AD]]),$D={},ID={class:"bg-gray-50 dark:bg-gray-700 dark:border-gray-800 overflow-hidden border sm:rounded-lg"},RD={class:"px-4 py-5 sm:p-6"};function OD(e,t){return U(),Z("div",ID,[O("div",RD,[nt(e.$slots,"default")])])}const Yl=jt($D,[["render",OD]]),C2=Object.freeze({left:0,top:0,width:16,height:16}),T2=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),n0=Object.freeze({...C2,...T2});Object.freeze({...n0,body:"",hidden:!1});({...C2});const A2=Object.freeze({width:null,height:null}),$2=Object.freeze({...A2,...T2});function LD(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in A2?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const PD=/[\s,]+/;function MD(e,t){t.split(PD).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function DD(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}const BD=/(-?[0-9.]*[0-9]+[0-9.]*)/g,FD=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function w_(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(BD);if(r===null||!r.length)return e;const o=[];let i=r.shift(),a=FD.test(i);for(;;){if(a){const u=parseFloat(i);isNaN(u)?o.push(i):o.push(Math.ceil(u*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");a=!a}}function ND(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const o=e.indexOf(">",r),i=e.indexOf("",i);if(a===-1)break;n+=e.slice(o+1,i).trim(),e=e.slice(0,r).trim()+e.slice(a+1)}return{defs:n,content:e}}function zD(e,t){return e?""+e+""+t:t}function VD(e,t,n){const r=ND(e);return zD(r.defs,t+r.content+n)}const UD=e=>e==="unset"||e==="undefined"||e==="none";function jD(e,t){const n={...n0,...e},r={...$2,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(x=>{const _=[],k=x.hFlip,S=x.vFlip;let w=x.rotate;k?S?w+=2:(_.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),_.push("scale(-1 1)"),o.top=o.left=0):S&&(_.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),_.push("scale(1 -1)"),o.top=o.left=0);let E;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:E=o.height/2+o.top,_.unshift("rotate(90 "+E.toString()+" "+E.toString()+")");break;case 2:_.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:E=o.width/2+o.left,_.unshift("rotate(-90 "+E.toString()+" "+E.toString()+")");break}w%2===1&&(o.left!==o.top&&(E=o.left,o.left=o.top,o.top=E),o.width!==o.height&&(E=o.width,o.width=o.height,o.height=E)),_.length&&(i=VD(i,'',""))});const a=r.width,u=r.height,c=o.width,f=o.height;let d,g;a===null?(g=u===null?"1em":u==="auto"?f:u,d=w_(g,c/f)):(d=a==="auto"?c:a,g=u===null?w_(d,f/c):u==="auto"?f:u);const h={},m=(x,_)=>{UD(_)||(h[x]=_.toString())};m("width",d),m("height",g);const y=[o.left,o.top,c,f];return h.viewBox=y.join(" "),{attributes:h,viewBox:y,body:i}}const HD=/\sid="(\S+)"/g,WD="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let KD=0;function qD(e,t=WD){const n=[];let r;for(;r=HD.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const a=typeof t=="function"?t(i):t+(KD++).toString(),u=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+u+')([")]|\\.[a-z])',"g"),"$1"+a+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function GD(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function ZD(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function YD(e){return"data:image/svg+xml,"+ZD(e)}function JD(e){return'url("'+YD(e)+'")'}const x_={...$2,inline:!1},XD={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},QD={display:"inline-block"},Wh={backgroundColor:"currentColor"},I2={backgroundColor:"transparent"},k_={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},S_={webkitMask:Wh,mask:Wh,background:I2};for(const e in S_){const t=S_[e];for(const n in k_)t[e+n]=k_[n]}const Tc={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Tc[e+"-flip"]=t,Tc[e.slice(0,1)+"-flip"]=t,Tc[e+"Flip"]=t});function E_(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const eB=(e,t)=>{const n=LD(x_,t),r={...XD},o=t.mode||"svg",i={},a=t.style,u=typeof a=="object"&&!(a instanceof Array)?a:{};for(let x in t){const _=t[x];if(_!==void 0)switch(x){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[x]=_===!0||_==="true"||_===1;break;case"flip":typeof _=="string"&&MD(n,_);break;case"color":i.color=_;break;case"rotate":typeof _=="string"?n[x]=DD(_):typeof _=="number"&&(n[x]=_);break;case"ariaHidden":case"aria-hidden":_!==!0&&_!=="true"&&delete r["aria-hidden"];break;default:{const k=Tc[x];k?(_===!0||_==="true"||_===1)&&(n[k]=!0):x_[x]===void 0&&(r[x]=_)}}}const c=jD(e,n),f=c.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),o==="svg"){r.style={...i,...u},Object.assign(r,f);let x=0,_=t.id;return typeof _=="string"&&(_=_.replace(/-/g,"_")),r.innerHTML=qD(c.body,_?()=>_+"ID"+x++:"iconifyVue"),Qe("svg",r)}const{body:d,width:g,height:h}=e,m=o==="mask"||(o==="bg"?!1:d.indexOf("currentColor")!==-1),y=GD(d,{...f,width:g+"",height:h+""});return r.style={...i,"--svg":JD(y),width:E_(f.width),height:E_(f.height),...QD,...m?Wh:I2,...u},Qe("span",r)},tB=Object.create(null),nB=xe({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,n=typeof t=="string"?tB[t]:typeof t=="object"?t:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:eB({...n0,...n},e)}}),ll=/^[a-z0-9]+(-[a-z0-9]+)*$/,xf=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const u=o.pop(),c=o.pop(),f={provider:o.length>0?o[0]:r,prefix:c,name:u};return t&&!Ac(f)?null:f}const i=o[0],a=i.split("-");if(a.length>1){const u={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!Ac(u)?null:u}if(n&&r===""){const u={provider:r,prefix:"",name:i};return t&&!Ac(u,n)?null:u}return null},Ac=(e,t)=>e?!!((e.provider===""||e.provider.match(ll))&&(t&&e.prefix===""||e.prefix.match(ll))&&e.name.match(ll)):!1,R2=Object.freeze({left:0,top:0,width:16,height:16}),Xc=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),r0=Object.freeze({...R2,...Xc}),Kh=Object.freeze({...r0,body:"",hidden:!1});function rB(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function C_(e,t){const n=rB(e,t);for(const r in Kh)r in Xc?r in e&&!(r in n)&&(n[r]=Xc[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function oB(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(a){if(n[a])return o[a]=[];if(!(a in o)){o[a]=null;const u=r[a]&&r[a].parent,c=u&&i(u);c&&(o[a]=[u].concat(c))}return o[a]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(i),o}function iB(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function a(u){i=C_(r[u]||o[u],i)}return a(t),n.forEach(a),C_(e,i)}function O2(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=oB(e);for(const o in r){const i=r[o];i&&(t(o,iB(e,o,i)),n.push(o))}return n}const sB={provider:"",aliases:{},not_found:{},...R2};function Ep(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function L2(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Ep(e,sB))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(ll)||typeof i.body!="string"||!Ep(i,Kh))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],a=i.parent;if(!o.match(ll)||typeof a!="string"||!n[a]&&!r[a]||!Ep(i,Kh))return null}return t}const T_=Object.create(null);function aB(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ns(e,t){const n=T_[e]||(T_[e]=Object.create(null));return n[t]||(n[t]=aB(e,t))}function o0(e,t){return L2(t)?O2(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function lB(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let El=!1;function P2(e){return typeof e=="boolean"&&(El=e),El}function uB(e){const t=typeof e=="string"?xf(e,!0,El):e;if(t){const n=ns(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function cB(e,t){const n=xf(e,!0,El);if(!n)return!1;const r=ns(n.provider,n.prefix);return lB(r,n.name,t)}function fB(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),El&&!t&&!e.prefix){let o=!1;return L2(e)&&(e.prefix="",O2(e,(i,a)=>{a&&cB(i,a)&&(o=!0)})),o}const n=e.prefix;if(!Ac({provider:t,prefix:n,name:"a"}))return!1;const r=ns(t,n);return!!o0(r,e)}const dB=Object.freeze({width:null,height:null}),pB=Object.freeze({...dB,...Xc});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const qh=Object.create(null);function hB(e,t){qh[e]=t}function Gh(e){return qh[e]||qh[""]}function i0(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const s0=Object.create(null),Ua=["https://api.simplesvg.com","https://api.unisvg.com"],$c=[];for(;Ua.length>0;)Ua.length===1||Math.random()>.5?$c.push(Ua.shift()):$c.push(Ua.pop());s0[""]=i0({resources:["https://api.iconify.design"].concat($c)});function Zh(e,t){const n=i0(t);return n===null?!1:(s0[e]=n,!0)}function a0(e){return s0[e]}const gB=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let A_=gB();function mB(e,t){const n=a0(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(a=>{o=Math.max(o,a.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function vB(e){return e===404}const yB=(e,t,n)=>{const r=[],o=mB(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},u=0;return n.forEach((c,f)=>{u+=c.length+1,u>=o&&f>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},u=c.length),a.icons.push(c)}),r.push(a),r};function bB(e){if(typeof e=="string"){const t=a0(e);if(t)return t.path}return"/"}const _B=(e,t,n)=>{if(!A_){n("abort",424);return}let r=bB(t.provider);switch(t.type){case"icons":{const i=t.prefix,u=t.icons.join(","),c=new URLSearchParams({icons:u});r+=i+".json?"+c.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;A_(e+r).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{n(vB(a)?"abort":"next",a)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},wB={prepare:yB,send:_B};function xB(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,a=o.prefix,u=o.name,c=n[i]||(n[i]=Object.create(null)),f=c[a]||(c[a]=ns(i,a));let d;u in f.icons?d=t.loaded:a===""||f.missing.has(u)?d=t.missing:d=t.pending;const g={provider:i,prefix:a,name:u};d.push(g)}),t}function M2(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function kB(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(i=>{const a=i.icons,u=a.pending.length;a.pending=a.pending.filter(c=>{if(c.prefix!==o)return!0;const f=c.name;if(e.icons[f])a.loaded.push({provider:r,prefix:o,name:f});else if(e.missing.has(f))a.missing.push({provider:r,prefix:o,name:f});else return n=!0,!0;return!1}),a.pending.length!==u&&(n||M2([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let SB=0;function EB(e,t,n){const r=SB++,o=M2.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),o}function CB(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?xf(o,t,n):o;i&&r.push(i)}),r}var TB={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function AB(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let $=e.resources.slice(0);for(a=[];$.length>1;){const D=Math.floor(Math.random()*$.length);a.push($[D]),$=$.slice(0,D).concat($.slice(D+1))}a=a.concat($)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const u=Date.now();let c="pending",f=0,d,g=null,h=[],m=[];typeof r=="function"&&m.push(r);function y(){g&&(clearTimeout(g),g=null)}function x(){c==="pending"&&(c="aborted"),y(),h.forEach($=>{$.status==="pending"&&($.status="aborted")}),h=[]}function _($,D){D&&(m=[]),typeof $=="function"&&m.push($)}function k(){return{startTime:u,payload:t,status:c,queriesSent:f,queriesPending:h.length,subscribe:_,abort:x}}function S(){c="failed",m.forEach($=>{$(void 0,d)})}function w(){h.forEach($=>{$.status==="pending"&&($.status="aborted")}),h=[]}function E($,D,B){const V=D!=="success";switch(h=h.filter(N=>N!==$),c){case"pending":break;case"failed":if(V||!e.dataAfterTimeout)return;break;default:return}if(D==="abort"){d=B,S();return}if(V){d=B,h.length||(a.length?A():S());return}if(y(),w(),!e.random){const N=e.resources.indexOf($.resource);N!==-1&&N!==e.index&&(e.index=N)}c="completed",m.forEach(N=>{N(B)})}function A(){if(c!=="pending")return;y();const $=a.shift();if($===void 0){if(h.length){g=setTimeout(()=>{y(),c==="pending"&&(w(),S())},e.timeout);return}S();return}const D={status:"pending",resource:$,callback:(B,V)=>{E(D,B,V)}};h.push(D),f++,g=setTimeout(A,e.rotate),n($,t,D.callback)}return setTimeout(A),k}function D2(e){const t={...TB,...e};let n=[];function r(){n=n.filter(u=>u().status==="pending")}function o(u,c,f){const d=AB(t,u,c,(g,h)=>{r(),f&&f(g,h)});return n.push(d),d}function i(u){return n.find(c=>u(c))||null}return{query:o,find:i,setIndex:u=>{t.index=u},getIndex:()=>t.index,cleanup:r}}function $_(){}const Cp=Object.create(null);function $B(e){if(!Cp[e]){const t=a0(e);if(!t)return;const n=D2(t),r={config:t,redundancy:n};Cp[e]=r}return Cp[e]}function IB(e,t,n){let r,o;if(typeof e=="string"){const i=Gh(e);if(!i)return n(void 0,424),$_;o=i.send;const a=$B(e);a&&(r=a.redundancy)}else{const i=i0(e);if(i){r=D2(i);const a=e.resources?e.resources[0]:"",u=Gh(a);u&&(o=u.send)}}return!r||!o?(n(void 0,424),$_):r.query(t,o,n)().abort}const I_="iconify2",Cl="iconify",B2=Cl+"-count",R_=Cl+"-version",F2=36e5,RB=168,OB=50;function Yh(e,t){try{return e.getItem(t)}catch{}}function l0(e,t,n){try{return e.setItem(t,n),!0}catch{}}function O_(e,t){try{e.removeItem(t)}catch{}}function Jh(e,t){return l0(e,B2,t.toString())}function Xh(e){return parseInt(Yh(e,B2))||0}const kf={local:!0,session:!0},N2={local:new Set,session:new Set};let u0=!1;function LB(e){u0=e}let fc=typeof window>"u"?{}:window;function z2(e){const t=e+"Storage";try{if(fc&&fc[t]&&typeof fc[t].length=="number")return fc[t]}catch{}kf[e]=!1}function V2(e,t){const n=z2(e);if(!n)return;const r=Yh(n,R_);if(r!==I_){if(r){const u=Xh(n);for(let c=0;c{const c=Cl+u.toString(),f=Yh(n,c);if(typeof f=="string"){try{const d=JSON.parse(f);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>o&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&t(d,u))return!0}catch{}O_(n,c)}};let a=Xh(n);for(let u=a-1;u>=0;u--)i(u)||(u===a-1?(a--,Jh(n,a)):N2[e].add(u))}function U2(){if(!u0){LB(!0);for(const e in kf)V2(e,t=>{const n=t.data,r=t.provider,o=n.prefix,i=ns(r,o);if(!o0(i,n).length)return!1;const a=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function PB(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in kf)V2(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function MB(e,t){u0||U2();function n(r){let o;if(!kf[r]||!(o=z2(r)))return;const i=N2[r];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=Xh(o),a>=OB||!Jh(o,a+1))return;const u={cached:Math.floor(Date.now()/F2),provider:e.provider,data:t};return l0(o,Cl+a.toString(),JSON.stringify(u))}t.lastModified&&!PB(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function L_(){}function DB(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,kB(e)}))}function BB(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=Gh(n)))return;i.prepare(n,r,o).forEach(u=>{IB(n,u,c=>{if(typeof c!="object")u.icons.forEach(f=>{e.missing.add(f)});else try{const f=o0(e,c);if(!f.length)return;const d=e.pendingIcons;d&&f.forEach(g=>{d.delete(g)}),MB(e,c)}catch(f){console.error(f)}DB(e)})})}))}const FB=(e,t)=>{const n=CB(e,!0,P2()),r=xB(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,L_)}),()=>{c=!1}}const o=Object.create(null),i=[];let a,u;return r.pending.forEach(c=>{const{provider:f,prefix:d}=c;if(d===u&&f===a)return;a=f,u=d,i.push(ns(f,d));const g=o[f]||(o[f]=Object.create(null));g[d]||(g[d]=[])}),r.pending.forEach(c=>{const{provider:f,prefix:d,name:g}=c,h=ns(f,d),m=h.pendingIcons||(h.pendingIcons=new Set);m.has(g)||(m.add(g),o[f][d].push(g))}),i.forEach(c=>{const{provider:f,prefix:d}=c;o[f][d].length&&BB(c,o[f][d])}),t?EB(t,r,i):L_},NB=e=>new Promise((t,n)=>{const r=typeof e=="string"?xf(e,!0):e;if(!r){n(e);return}FB([r||e],o=>{if(o.length&&r){const i=uB(r);if(i){t({...r0,...i});return}}n(e)})});({...pB});const P_={backgroundColor:"currentColor"},zB={backgroundColor:"transparent"},M_={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},D_={webkitMask:P_,mask:P_,background:zB};for(const e in D_){const t=D_[e];for(const n in M_)t[e+n]=M_[n]}const Tp={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Tp[e+"-flip"]=t,Tp[e.slice(0,1)+"-flip"]=t,Tp[e+"Flip"]=t});P2(!0);hB("",wB);if(typeof document<"u"&&typeof window<"u"){U2();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!fB(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;Zh(n,o)||console.error(r)}catch{console.error(r)}}}}({...r0});const VB=["fluent-emoji-high-contrast","material-symbols-light","cryptocurrency-color","icon-park-outline","icon-park-twotone","fluent-emoji-flat","emojione-monotone","streamline-emojis","heroicons-outline","simple-line-icons","material-symbols","flat-color-icons","icon-park-solid","pepicons-pencil","heroicons-solid","pepicons-print","cryptocurrency","pixelarticons","system-uicons","bitcoin-icons","devicon-plain","entypo-social","token-branded","grommet-icons","vscode-icons","pepicons-pop","svg-spinners","fluent-emoji","simple-icons","circle-flags","medical-icon","icomoon-free","majesticons","radix-icons","humbleicons","fa6-regular","emojione-v1","skill-icons","academicons","healthicons","fluent-mdl2","teenyicons","ant-design","gravity-ui","akar-icons","lets-icons","streamline","fa6-brands","file-icons","game-icons","foundation","fa-regular","mono-icons","iconamoon","zondicons","mdi-light","eos-icons","gridicons","icon-park","heroicons","fa6-solid","meteocons","arcticons","dashicons","fa-brands","websymbol","fontelico","mingcute","flowbite","marketeq","bytesize","guidance","openmoji","emojione","nonicons","brandico","flagpack","fa-solid","fontisto","si-glyph","pepicons","iconoir","tdesign","clarity","octicon","codicon","pajamas","formkit","line-md","twemoji","noto-v1","fxemoji","devicon","raphael","flat-ui","topcoat","feather","tabler","carbon","lucide","memory","mynaui","circum","fluent","nimbus","entypo","icons8","subway","vaadin","solar","basil","typcn","charm","prime","quill","logos","token","covid","maki","gala","mage","ooui","noto","unjs","flag","iwwa","zmdi","bpmn","mdi","ion","uil","bxs","cil","uiw","uim","uit","uis","jam","oui","bxl","cib","cbi","cif","gis","map","geo","fad","eva","wpf","whh","ic","ph","ri","bi","bx","gg","ci","ep","fe","mi","f7","ei","wi","la","fa","oi","et","el","ls","vs","il","ps"];function UB(e=""){let t,n="";if(e[0]==="@"&&e.includes(":")&&(n=e.split(":")[0].slice(1),e=e.split(":").slice(1).join(":")),e.startsWith("i-")){e=e.replace(/^i-/,"");for(const r of VB)if(e.startsWith(r)){t=r,e=e.slice(r.length+1);break}}else if(e.includes(":")){const[r,o]=e.split(":");t=r,e=o}return{provider:n,prefix:t||"",name:e||""}}const jB=xe({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,n;const r=ut(),o=yf(),i=e;ht(()=>{var _;return(_=o.nuxtIcon)==null?void 0:_.iconifyApiOptions},()=>{var _,k,S,w,E,A;if((k=(_=o.nuxtIcon)==null?void 0:_.iconifyApiOptions)!=null&&k.url){try{new URL(o.nuxtIcon.iconifyApiOptions.url)}catch{console.warn("Nuxt Icon: Invalid custom Iconify API URL");return}if((w=(S=o.nuxtIcon)==null?void 0:S.iconifyApiOptions)!=null&&w.publicApiFallback){Zh("custom",{resources:[(E=o.nuxtIcon)==null?void 0:E.iconifyApiOptions.url],index:0});return}Zh("",{resources:[(A=o.nuxtIcon)==null?void 0:A.iconifyApiOptions.url]})}},{immediate:!0});const a=pa("icons",()=>({})),u=ee(!1),c=z(()=>{var _,k;return(k=(_=o.nuxtIcon)==null?void 0:_.aliases)!=null&&k[i.name]?o.nuxtIcon.aliases[i.name]:i.name}),f=z(()=>UB(c.value)),d=z(()=>[f.value.provider,f.value.prefix,f.value.name].filter(Boolean).join(":")),g=z(()=>{var _;return(_=a.value)==null?void 0:_[d.value]}),h=z(()=>{var _;return(_=r.vueApp)==null?void 0:_.component(c.value)}),m=z(()=>{var k,S,w;if(!i.size&&typeof((k=o.nuxtIcon)==null?void 0:k.size)=="boolean"&&!((S=o.nuxtIcon)!=null&&S.size))return;const _=i.size||((w=o.nuxtIcon)==null?void 0:w.size)||"1em";return String(Number(_))===_?`${_}px`:_}),y=z(()=>{var _;return((_=o==null?void 0:o.nuxtIcon)==null?void 0:_.class)??"icon"});async function x(){var _;h.value||(_=a.value)!=null&&_[d.value]||(u.value=!0,a.value[d.value]=await NB(f.value).catch(()=>{}),u.value=!1)}return ht(c,x),!h.value&&([t,n]=R4(()=>x()),t=await t,n()),(_,k)=>u.value?(U(),Z("span",{key:0,class:le(y.value),style:Ji({width:m.value,height:m.value})},null,6)):g.value?(U(),Re(R(nB),{key:1,icon:g.value,class:le(y.value),width:m.value,height:m.value},null,8,["icon","class","width","height"])):h.value?(U(),Re(Co(h.value),{key:2,class:le(y.value),width:m.value,height:m.value},null,8,["class","width","height"])):(U(),Z("span",{key:3,class:le(y.value),style:Ji({fontSize:m.value,lineHeight:m.value,width:m.value,height:m.value})},[nt(_.$slots,"default",{},()=>[pe(et(e.name),1)],!0)],6))}}),j2=jt(jB,[["__scopeId","data-v-e8d572f6"]]),HB=Object.freeze(Object.defineProperty({__proto__:null,default:j2},Symbol.toStringTag,{value:"Module"})),WB=xe({props:{name:{type:String,required:!0},dynamic:{type:Boolean,default:!1}},setup(e){const t=yf();return{dynamic:z(()=>{var r,o;return e.dynamic||((o=(r=t.ui)==null?void 0:r.icons)==null?void 0:o.dynamic)})}}});function KB(e,t,n,r,o,i){const a=j2;return e.dynamic?(U(),Re(a,{key:0,name:e.name},null,8,["name"])):(U(),Z("span",{key:1,class:le(e.name)},null,2))}const Er=jt(WB,[["render",KB]]);function c0({ui:e,props:t}){const n=Un();if(kt("ButtonGroupContextConsumer",!0),Ge("ButtonGroupContextConsumer",!1))return{size:z(()=>t.size),rounded:z(()=>e.value.rounded)};let o=n.parent,i;for(;o&&!i;){if(o.type.name==="ButtonGroup"){i=Ge(`group-${o.uid}`);break}o=o.parent}const a=z(()=>i==null?void 0:i.value.children.indexOf(n));return lt(()=>{i==null||i.value.register(n)}),Zt(()=>{i==null||i.value.unregister(n)}),{size:z(()=>(i==null?void 0:i.value.size)||t.size),rounded:z(()=>!i||a.value===-1?e.value.rounded:i.value.children.length===1?i.value.ui.rounded:a.value===0?i.value.rounded.start:a.value===i.value.children.length-1?i.value.rounded.end:"rounded-none")}}const yo=gn(Ve.ui.strategy,Ve.ui.input,t0),qB=xe({components:{UIcon:Er},inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:""},type:{type:String,default:"text"},id:{type:String,default:null},name:{type:String,default:null},placeholder:{type:String,default:null},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autofocusDelay:{type:Number,default:100},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>yo.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:null},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:null,validator(e){return Object.keys(yo.size).includes(e)}},color:{type:String,default:()=>yo.default.color,validator(e){return[...Ve.ui.colors,...Object.keys(yo.color)].includes(e)}},variant:{type:String,default:()=>yo.default.variant,validator(e){return[...Object.keys(yo.variant),...Object.values(yo.color).flatMap(t=>Object.keys(t))].includes(e)}},inputClass:{type:String,default:null},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})},modelModifiers:{type:Object,default:()=>({})}},emits:["update:modelValue","blur","change"],setup(e,{emit:t,slots:n}){const{ui:r,attrs:o}=_n("input",$t(e,"ui"),yo,$t(e,"class")),{size:i,rounded:a}=c0({ui:r,props:e}),{emitFormBlur:u,emitFormInput:c,size:f,color:d,inputId:g,name:h}=Zl(e,yo),m=z(()=>i.value||f.value),y=ee(Hl({},e.modelModifiers,{trim:!1,lazy:!1,number:!1})),x=ee(null),_=()=>{var ae;e.autofocus&&((ae=x.value)==null||ae.focus())},k=ae=>{y.value.trim&&(ae=ae.trim()),(y.value.number||e.type==="number")&&(ae=d2(ae)),t("update:modelValue",ae),c()},S=ae=>{y.value.lazy||k(ae.target.value)},w=ae=>{if(e.type==="file"){const ye=ae.target.files;t("change",ye)}else{const ye=ae.target.value;t("change",ye),y.value.lazy&&k(ye),y.value.trim&&(ae.target.value=ye.trim())}},E=ae=>{u(),t("blur",ae)};lt(()=>{setTimeout(()=>{_()},e.autofocusDelay)});const A=z(()=>{var ye,re;const ae=((re=(ye=r.value.color)==null?void 0:ye[d.value])==null?void 0:re[e.variant])||r.value.variant[e.variant];return Vn(pt(r.value.base,r.value.form,a.value,r.value.placeholder,e.type==="file"&&[r.value.file.base,r.value.file.padding[m.value]],r.value.size[m.value],e.padded?r.value.padding[m.value]:"p-0",ae==null?void 0:ae.replaceAll("{color}",d.value),($.value||n.leading)&&r.value.leading.padding[m.value],(D.value||n.trailing)&&r.value.trailing.padding[m.value]),e.inputClass)}),$=z(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),D=z(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),B=z(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),V=z(()=>e.loading&&!$.value?e.loadingIcon:e.trailingIcon||e.icon),N=z(()=>pt(r.value.icon.leading.wrapper,r.value.icon.leading.pointer,r.value.icon.leading.padding[m.value])),W=z(()=>pt(r.value.icon.base,d.value&&Ve.ui.colors.includes(d.value)&&r.value.icon.color.replaceAll("{color}",d.value),r.value.icon.size[m.value],e.loading&&r.value.icon.loading)),K=z(()=>pt(r.value.icon.trailing.wrapper,r.value.icon.trailing.pointer,r.value.icon.trailing.padding[m.value])),fe=z(()=>pt(r.value.icon.base,d.value&&Ve.ui.colors.includes(d.value)&&r.value.icon.color.replaceAll("{color}",d.value),r.value.icon.size[m.value],e.loading&&!$.value&&r.value.icon.loading));return{ui:r,attrs:o,name:h,inputId:g,input:x,isLeading:$,isTrailing:D,inputClass:A,leadingIconName:B,leadingIconClass:W,leadingWrapperIconClass:N,trailingIconName:V,trailingIconClass:fe,trailingWrapperIconClass:K,onInput:S,onChange:w,onBlur:E}}}),GB=["id","name","value","type","required","placeholder","disabled"];function ZB(e,t,n,r,o,i){const a=Er;return U(),Z("div",{class:le(e.ui.wrapper)},[O("input",ot({id:e.inputId,ref:"input",name:e.name,value:e.modelValue,type:e.type,required:e.required,placeholder:e.placeholder,disabled:e.disabled,class:e.inputClass},e.attrs,{onInput:t[0]||(t[0]=(...u)=>e.onInput&&e.onInput(...u)),onBlur:t[1]||(t[1]=(...u)=>e.onBlur&&e.onBlur(...u)),onChange:t[2]||(t[2]=(...u)=>e.onChange&&e.onChange(...u))}),null,16,GB),nt(e.$slots,"default"),e.isLeading&&e.leadingIconName||e.$slots.leading?(U(),Z("span",{key:0,class:le(e.leadingWrapperIconClass)},[nt(e.$slots,"leading",{disabled:e.disabled,loading:e.loading},()=>[P(a,{name:e.leadingIconName,class:le(e.leadingIconClass)},null,8,["name","class"])])],2)):Ie("",!0),e.isTrailing&&e.trailingIconName||e.$slots.trailing?(U(),Z("span",{key:1,class:le(e.trailingWrapperIconClass)},[nt(e.$slots,"trailing",{disabled:e.disabled,loading:e.loading},()=>[P(a,{name:e.trailingIconName,class:le(e.trailingIconClass)},null,8,["name","class"])])],2)):Ie("",!0)],2)}const ma=jt(qB,[["render",ZB]]),Ap=gn(Ve.ui.strategy,Ve.ui.formGroup,dD),YB=xe({inheritAttrs:!1,props:{name:{type:String,default:null},size:{type:String,default:null,validator(e){return Object.keys(Ap.size).includes(e)}},label:{type:String,default:null},description:{type:String,default:null},required:{type:Boolean,default:!1},help:{type:String,default:null},error:{type:[String,Boolean],default:null},hint:{type:String,default:null},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})},eagerValidation:{type:Boolean,default:!1}},setup(e){const{ui:t,attrs:n}=_n("formGroup",$t(e,"ui"),Ap,$t(e,"class")),r=Ge("form-errors",null),o=z(()=>{var u,c;return e.error&&typeof e.error=="string"||typeof e.error=="boolean"?e.error:(c=(u=r==null?void 0:r.value)==null?void 0:u.find(f=>f.path===e.name))==null?void 0:c.message}),i=z(()=>t.value.size[e.size??Ap.default.size]),a=ee(ha("$K7dDJpdOWE"));return kt("form-group",{error:o,inputId:a,name:z(()=>e.name),size:z(()=>e.size),eagerValidation:z(()=>e.eagerValidation)}),{ui:t,attrs:n,inputId:a,size:i,error:o}}}),JB=["for"];function XB(e,t,n,r,o,i){return U(),Z("div",ot({class:e.ui.wrapper},e.attrs),[O("div",{class:le(e.ui.inner)},[e.label||e.$slots.label?(U(),Z("div",{key:0,class:le([e.ui.label.wrapper,e.size])},[O("label",{for:e.inputId,class:le([e.ui.label.base,e.required?e.ui.label.required:""])},[e.$slots.label?nt(e.$slots,"label",qr(ot({key:0},{error:e.error,label:e.label,name:e.name,hint:e.hint,description:e.description,help:e.help}))):(U(),Z(Ye,{key:1},[pe(et(e.label),1)],64))],10,JB),e.hint||e.$slots.hint?(U(),Z("span",{key:0,class:le([e.ui.hint])},[e.$slots.hint?nt(e.$slots,"hint",qr(ot({key:0},{error:e.error,label:e.label,name:e.name,hint:e.hint,description:e.description,help:e.help}))):(U(),Z(Ye,{key:1},[pe(et(e.hint),1)],64))],2)):Ie("",!0)],2)):Ie("",!0),e.description||e.$slots.description?(U(),Z("p",{key:1,class:le([e.ui.description,e.size])},[e.$slots.description?nt(e.$slots,"description",qr(ot({key:0},{error:e.error,label:e.label,name:e.name,hint:e.hint,description:e.description,help:e.help}))):(U(),Z(Ye,{key:1},[pe(et(e.description),1)],64))],2)):Ie("",!0)],2),O("div",{class:le([e.label?e.ui.container:""])},[nt(e.$slots,"default",qr(ta({error:e.error}))),typeof e.error=="string"&&e.error||e.$slots.error?(U(),Z("p",{key:0,class:le([e.ui.error,e.size])},[e.$slots.error?nt(e.$slots,"error",qr(ot({key:0},{error:e.error,label:e.label,name:e.name,hint:e.hint,description:e.description,help:e.help}))):(U(),Z(Ye,{key:1},[pe(et(e.error),1)],64))],2)):e.help||e.$slots.help?(U(),Z("p",{key:1,class:le([e.ui.help,e.size])},[e.$slots.help?nt(e.$slots,"help",qr(ot({key:0},{error:e.error,label:e.label,name:e.name,hint:e.hint,description:e.description,help:e.help}))):(U(),Z(Ye,{key:1},[pe(et(e.help),1)],64))],2)):Ie("",!0)],2)],16)}const fs=jt(YB,[["render",XB]]),QB={class:"w-full flex justify-between items-center"},eF={class:"relative flex justify-start bg-inherit z-10"},tF=["textContent"],nF=O("div",{class:"w-full border-t-2 border-dashed border-gray-300 dark:border-gray-600"},null,-1),H2=xe({__name:"Divider",props:{title:{type:String,required:!0}},setup(e){return(t,n)=>(U(),Z("div",QB,[O("div",eF,[O("span",{class:"pr-3 text-lg font-bold text-gray-900 dark:text-gray-100 whitespace-nowrap",textContent:et(e.title)},null,8,tF)]),nF]))}});function W2(e,t,n){let r=ee(n==null?void 0:n.value),o=z(()=>e.value!==void 0);return[z(()=>o.value?e.value:r.value),function(i){return o.value||(r.value=i),t==null?void 0:t(i)}]}let K2=Symbol("headlessui.useid"),rF=0;function kr(){return Ge(K2,()=>`${++rF}`)()}function f0(e){kt(K2,e)}function De(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function rr(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,rr),r}var oF=Object.defineProperty,iF=(e,t,n)=>t in e?oF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B_=(e,t,n)=>(iF(e,typeof t!="symbol"?t+"":t,n),n);let sF=class{constructor(){B_(this,"current",this.detect()),B_(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}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"}},Jl=new sF;function Lr(e){if(Jl.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=De(e);if(t)return t.ownerDocument}return document}let Qh=["[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 Fn=(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))(Fn||{}),Qc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Qc||{}),aF=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(aF||{});function q2(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Qh)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var d0=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(d0||{});function p0(e,t=0){var n;return e===((n=Lr(e))==null?void 0:n.body)?!1:rr(t,{0(){return e.matches(Qh)},1(){let r=e;for(;r!==null;){if(r.matches(Qh))return!0;r=r.parentElement}return!1}})}function G2(e){let t=Lr(e);an(()=>{t&&!p0(t.activeElement,0)&&ai(e)})}var lF=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(lF||{});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 ai(e){e==null||e.focus({preventScroll:!0})}let uF=["textarea","input"].join(",");function cF(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,uF))!=null?n:!1}function h0(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let a=o.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function fF(e,t){return Zi(q2(),t,{relativeTo:e})}function Zi(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var i;let a=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?i:document,u=Array.isArray(e)?n?h0(e):e:q2(e);o.length>0&&u.length>1&&(u=u.filter(y=>!o.includes(y))),r=r??a.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,u.indexOf(r))-1;if(t&4)return Math.max(0,u.indexOf(r))+1;if(t&8)return u.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=t&32?{preventScroll:!0}:{},g=0,h=u.length,m;do{if(g>=h||g+h<=0)return 0;let y=f+g;if(t&16)y=(y+h)%h;else{if(y<0)return 3;if(y>=h)return 1}m=u[y],m==null||m.focus(d),g+=c}while(m!==a.activeElement);return t&6&&cF(m)&&m.select(),2}function Z2(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function dF(){return/Android/gi.test(window.navigator.userAgent)}function pF(){return Z2()||dF()}function dc(e,t,n){Jl.isServer||rn(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function Y2(e,t,n){Jl.isServer||rn(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function J2(e,t,n=z(()=>!0)){function r(i,a){if(!n.value||i.defaultPrevented)return;let u=a(i);if(u===null||!u.getRootNode().contains(u))return;let c=function f(d){return typeof d=="function"?f(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e);for(let f of c){if(f===null)continue;let d=f instanceof HTMLElement?f:De(f);if(d!=null&&d.contains(u)||i.composed&&i.composedPath().includes(d))return}return!p0(u,d0.Loose)&&u.tabIndex!==-1&&i.preventDefault(),t(i,u)}let o=ee(null);dc("pointerdown",i=>{var a,u;n.value&&(o.value=((u=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:u[0])||i.target)},!0),dc("mousedown",i=>{var a,u;n.value&&(o.value=((u=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:u[0])||i.target)},!0),dc("click",i=>{pF()||o.value&&(r(i,()=>o.value),o.value=null)},!0),dc("touchend",i=>r(i,()=>i.target instanceof HTMLElement?i.target:null),!0),Y2("blur",i=>r(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function F_(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function g0(e,t){let n=ee(F_(e.value.type,e.value.as));return lt(()=>{n.value=F_(e.value.type,e.value.as)}),rn(()=>{var r;n.value||De(t)&&De(t)instanceof HTMLButtonElement&&!((r=De(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}function N_(e){return[e.screenX,e.screenY]}function hF(){let e=ee([-1,-1]);return{wasMoved(t){let n=N_(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=N_(t)}}}function X2({container:e,accept:t,walk:n,enabled:r}){rn(()=>{let o=e.value;if(!o||r!==void 0&&!r.value)return;let i=Lr(e);if(!i)return;let a=Object.assign(c=>t(c),{acceptNode:t}),u=i.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,a,!1);for(;u.nextNode();)n(u.currentNode)})}var di=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(di||{}),ni=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ni||{});function Qt({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){var i;let a=ek(r,n),u=Object.assign(o,{props:a});if(e||t&2&&a.static)return $p(u);if(t&1){let c=(i=a.unmount)==null||i?0:1;return rr(c,{0(){return null},1(){return $p({...o,props:{...a,hidden:!0,style:{display:"none"}}})}})}return $p(u)}function $p({props:e,attrs:t,slots:n,slot:r,name:o}){var i,a;let{as:u,...c}=Sf(e,["unmount","static"]),f=(i=n.default)==null?void 0:i.call(n,r),d={};if(r){let g=!1,h=[];for(let[m,y]of Object.entries(r))typeof y=="boolean"&&(g=!0),y===!0&&h.push(m);g&&(d["data-headlessui-state"]=h.join(" "))}if(u==="template"){if(f=Q2(f??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[g,...h]=f??[];if(!gF(g)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(x=>x.trim()).filter((x,_,k)=>k.indexOf(x)===_).sort((x,_)=>x.localeCompare(_)).map(x=>` - ${x}`).join(` -`),"","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(x=>` - ${x}`).join(` -`)].join(` -`));let m=ek((a=g.props)!=null?a:{},c,d),y=xr(g,m,!0);for(let x in m)x.startsWith("on")&&(y.props||(y.props={}),y.props[x]=m[x]);return y}return Array.isArray(f)&&f.length===1?f[0]:f}return Qe(u,Object.assign({},c,d),{default:()=>f})}function Q2(e){return e.flatMap(t=>t.type===Ye?Q2(t.children):[t])}function ek(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let a=n[r];for(let u of a){if(o instanceof Event&&o.defaultPrevented)return;u(o,...i)}}});return t}function tk(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Sf(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function gF(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var oa=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(oa||{});let Tl=xe({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var r;let{features:o,...i}=e,a={"aria-hidden":(o&2)===2?!0:(r=i["aria-hidden"])!=null?r:void 0,hidden:(o&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",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return Qt({ourProps:a,theirProps:i,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),nk=Symbol("Context");var Gt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Gt||{});function mF(){return Xl()!==null}function Xl(){return Ge(nk,null)}function m0(e){kt(nk,e)}var yt=(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))(yt||{});function vF(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Bi=[];vF(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Bi[0]!==t.target&&(Bi.unshift(t.target),Bi=Bi.filter(n=>n!=null&&n.isConnected),Bi.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 yF(e){throw new Error("Unexpected object: "+e)}var Qn=(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))(Qn||{});function bF(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=r??-1;switch(e.focus){case 0:{for(let i=0;i=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 2:{for(let i=o+1;i=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 4:{for(let i=0;isetTimeout(()=>{throw t}))}function Ql(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return v0(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=Ql();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function rk(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))ik(n,ok(t,r),o);return n}function ok(e,t){return e?e+"["+t+"]":t}function ik(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())ik(e,ok(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):rk(n,t,e)}function sk(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}function ak(e,t,n,r){Jl.isServer||rn(o=>{e=e??window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}var Ja=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ja||{});function _F(){let e=ee(0);return Y2("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function lk(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=De(n);r instanceof HTMLElement&&t.add(r)}return t}var uk=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(uk||{});let ja=Object.assign(xe({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:ee(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let o=ee(null);r({el:o,$el:o});let i=z(()=>Lr(o)),a=ee(!1);lt(()=>a.value=!0),Zt(()=>a.value=!1),xF({ownerDocument:i},z(()=>a.value&&!!(e.features&16)));let u=kF({ownerDocument:i,container:o,initialFocus:z(()=>e.initialFocus)},z(()=>a.value&&!!(e.features&2)));SF({ownerDocument:i,container:o,containers:e.containers,previousActiveElement:u},z(()=>a.value&&!!(e.features&8)));let c=_F();function f(m){let y=De(o);y&&(x=>x())(()=>{rr(c.value,{[Ja.Forwards]:()=>{Zi(y,Fn.First,{skipElements:[m.relatedTarget]})},[Ja.Backwards]:()=>{Zi(y,Fn.Last,{skipElements:[m.relatedTarget]})}})})}let d=ee(!1);function g(m){m.key==="Tab"&&(d.value=!0,requestAnimationFrame(()=>{d.value=!1}))}function h(m){if(!a.value)return;let y=lk(e.containers);De(o)instanceof HTMLElement&&y.add(De(o));let x=m.relatedTarget;x instanceof HTMLElement&&x.dataset.headlessuiFocusGuard!=="true"&&(ck(y,x)||(d.value?Zi(De(o),rr(c.value,{[Ja.Forwards]:()=>Fn.Next,[Ja.Backwards]:()=>Fn.Previous})|Fn.WrapAround,{relativeTo:m.target}):m.target instanceof HTMLElement&&ai(m.target)))}return()=>{let m={},y={ref:o,onKeydown:g,onFocusout:h},{features:x,initialFocus:_,containers:k,...S}=e;return Qe(Ye,[!!(x&4)&&Qe(Tl,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:oa.Focusable}),Qt({ourProps:y,theirProps:{...t,...S},slot:m,attrs:t,slots:n,name:"FocusTrap"}),!!(x&4)&&Qe(Tl,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:oa.Focusable})])}}}),{features:uk});function wF(e){let t=ee(Bi.slice());return ht([e],([n],[r])=>{r===!0&&n===!1?v0(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Bi.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function xF({ownerDocument:e},t){let n=wF(t);lt(()=>{rn(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&ai(n())},{flush:"post"})}),Zt(()=>{t.value&&ai(n())})}function kF({ownerDocument:e,container:t,initialFocus:n},r){let o=ee(null),i=ee(!1);return lt(()=>i.value=!0),Zt(()=>i.value=!1),lt(()=>{ht([t,n,r],(a,u)=>{if(a.every((f,d)=>(u==null?void 0:u[d])===f)||!r.value)return;let c=De(t);c&&v0(()=>{var f,d;if(!i.value)return;let g=De(n),h=(f=e.value)==null?void 0:f.activeElement;if(g){if(g===h){o.value=h;return}}else if(c.contains(h)){o.value=h;return}g?ai(g):Zi(c,Fn.First|Fn.NoScroll)===Qc.Error&&console.warn("There are no focusable elements inside the "),o.value=(d=e.value)==null?void 0:d.activeElement})},{immediate:!0,flush:"post"})}),o}function SF({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var i;ak((i=e.value)==null?void 0:i.defaultView,"focus",a=>{if(!o.value)return;let u=lk(n);De(t)instanceof HTMLElement&&u.add(De(t));let c=r.value;if(!c)return;let f=a.target;f&&f instanceof HTMLElement?ck(u,f)?(r.value=f,ai(f)):(a.preventDefault(),a.stopPropagation(),ai(c)):ai(r.value)},!0)}function ck(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function EF(e){let t=no(e.getSnapshot());return Zt(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function CF(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let a=t[o].call(n,...i);a&&(n=a,r.forEach(u=>u()))}}}function TF(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function AF(){return Z2()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let u=Ql();u.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>u.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,a=null;t.addEventListener(e,"click",u=>{if(u.target instanceof HTMLElement)try{let c=u.target.closest("a");if(!c)return;let{hash:f}=new URL(c.href),d=e.querySelector(f);d&&!r(d)&&(a=d)}catch{}},!0),t.addEventListener(e,"touchstart",u=>{if(u.target instanceof HTMLElement)if(r(u.target)){let c=u.target;for(;c.parentElement&&r(c.parentElement);)c=c.parentElement;t.style(c,"overscrollBehavior","contain")}else t.style(u.target,"touchAction","none")}),t.addEventListener(e,"touchmove",u=>{if(u.target instanceof HTMLElement)if(r(u.target)){let c=u.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&u.preventDefault()}else u.preventDefault()},{passive:!1}),t.add(()=>{var u;let c=(u=window.scrollY)!=null?u:window.pageYOffset;i!==c&&window.scrollTo(0,i),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function $F(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function IF(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let zi=CF(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Ql(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:IF(n)},o=[AF(),TF(),$F()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});zi.subscribe(()=>{let e=zi.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&zi.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&zi.dispatch("TEARDOWN",n)}});function RF(e,t,n){let r=EF(zi),o=z(()=>{let i=e.value?r.value.get(e.value):void 0;return i?i.count>0:!1});return ht([e,t],([i,a],[u],c)=>{if(!i||!a)return;zi.dispatch("PUSH",i,n);let f=!1;c(()=>{f||(zi.dispatch("POP",u??i,n),f=!0)})},{immediate:!0}),o}let Ip=new Map,Ha=new Map;function z_(e,t=ee(!0)){rn(n=>{var r;if(!t.value)return;let o=De(e);if(!o)return;n(function(){var a;if(!o)return;let u=(a=Ha.get(o))!=null?a:1;if(u===1?Ha.delete(o):Ha.set(o,u-1),u!==1)return;let c=Ip.get(o);c&&(c["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",c["aria-hidden"]),o.inert=c.inert,Ip.delete(o))});let i=(r=Ha.get(o))!=null?r:0;Ha.set(o,i+1),i===0&&(Ip.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}function OF({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=ee(null),o=Lr(r);function i(){var a,u,c;let f=[];for(let d of e)d!==null&&(d instanceof HTMLElement?f.push(d):"value"in d&&d.value instanceof HTMLElement&&f.push(d.value));if(t!=null&&t.value)for(let d of t.value)f.push(d);for(let d of(a=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?a:[])d!==document.body&&d!==document.head&&d instanceof HTMLElement&&d.id!=="headlessui-portal-root"&&(d.contains(De(r))||d.contains((c=(u=De(r))==null?void 0:u.getRootNode())==null?void 0:c.host)||f.some(g=>d.contains(g))||f.push(d));return f}return{resolveContainers:i,contains(a){return i().some(u=>u.contains(a))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:Qe(Tl,{features:oa.Hidden,ref:r})}}}let fk=Symbol("ForcePortalRootContext");function LF(){return Ge(fk,!1)}let V_=xe({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return kt(fk,e.force),()=>{let{force:r,...o}=e;return Qt({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),dk=Symbol("StackContext");var eg=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(eg||{});function PF(){return Ge(dk,()=>{})}function MF({type:e,enabled:t,element:n,onUpdate:r}){let o=PF();function i(...a){r==null||r(...a),o(...a)}lt(()=>{ht(t,(a,u)=>{a?i(0,e,n):u===!0&&i(1,e,n)},{immediate:!0,flush:"sync"})}),Zt(()=>{t.value&&i(1,e,n)}),kt(dk,i)}let DF=Symbol("DescriptionContext");function y0({slot:e=ee({}),name:t="Description",props:n={}}={}){let r=ee([]);function o(i){return r.value.push(i),()=>{let a=r.value.indexOf(i);a!==-1&&r.value.splice(a,1)}}return kt(DF,{register:o,slot:e,name:t,props:n}),z(()=>r.value.length>0?r.value.join(" "):void 0)}function BF(e){let t=Lr(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}let FF=xe({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=ee(null),o=z(()=>Lr(r)),i=LF(),a=Ge(pk,null),u=ee(i===!0||a==null?BF(r.value):a.resolveTarget()),c=ee(!1);lt(()=>{c.value=!0}),rn(()=>{i||a!=null&&(u.value=a.resolveTarget())});let f=Ge(tg,null),d=!1,g=Un();return ht(r,()=>{if(d||!f)return;let h=De(r);h&&(Zt(f.register(h),g),d=!0)}),Zt(()=>{var h,m;let y=(h=o.value)==null?void 0:h.getElementById("headlessui-portal-root");y&&u.value===y&&u.value.children.length<=0&&((m=u.value.parentElement)==null||m.removeChild(u.value))}),()=>{if(!c.value||u.value===null)return null;let h={ref:r,"data-headlessui-portal":""};return Qe(Ww,{to:u.value},Qt({ourProps:h,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),tg=Symbol("PortalParentContext");function NF(){let e=Ge(tg,null),t=ee([]);function n(i){return t.value.push(i),e&&e.register(i),()=>r(i)}function r(i){let a=t.value.indexOf(i);a!==-1&&t.value.splice(a,1),e&&e.unregister(i)}let o={register:n,unregister:r,portals:t};return[t,xe({name:"PortalWrapper",setup(i,{slots:a}){return kt(tg,o),()=>{var u;return(u=a.default)==null?void 0:u.call(a)}}})]}let pk=Symbol("PortalGroupContext"),zF=xe({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=In({resolveTarget(){return e.target}});return kt(pk,r),()=>{let{target:o,...i}=e;return Qt({theirProps:i,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var VF=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(VF||{});let ng=Symbol("DialogContext");function hk(e){let t=Ge(ng,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,hk),n}return t}let pc="DC8F892D-2EBD-447C-A4C8-A03058436FF4",gk=xe({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:pc},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var i,a;let u=(i=e.id)!=null?i:`headlessui-dialog-${kr()}`,c=ee(!1);lt(()=>{c.value=!0});let f=!1,d=z(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(f||(f=!0,console.warn(`Invalid role [${d}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),g=ee(0),h=Xl(),m=z(()=>e.open===pc&&h!==null?(h.value&Gt.Open)===Gt.Open:e.open),y=ee(null),x=z(()=>Lr(y));if(o({el:y,$el:y}),!(e.open!==pc||h!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof m.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${m.value===pc?void 0:e.open}`);let _=z(()=>c.value&&m.value?0:1),k=z(()=>_.value===0),S=z(()=>g.value>1),w=Ge(ng,null)!==null,[E,A]=NF(),{resolveContainers:$,mainTreeNodeRef:D,MainTreeNode:B}=OF({portals:E,defaultContainers:[z(()=>{var $e;return($e=ke.panelRef.value)!=null?$e:y.value})]}),V=z(()=>S.value?"parent":"leaf"),N=z(()=>h!==null?(h.value&Gt.Closing)===Gt.Closing:!1),W=z(()=>w||N.value?!1:k.value),K=z(()=>{var $e,Be,It;return(It=Array.from((Be=($e=x.value)==null?void 0:$e.querySelectorAll("body > *"))!=null?Be:[]).find(St=>St.id==="headlessui-portal-root"?!1:St.contains(De(D))&&St instanceof HTMLElement))!=null?It:null});z_(K,W);let fe=z(()=>S.value?!0:k.value),ae=z(()=>{var $e,Be,It;return(It=Array.from((Be=($e=x.value)==null?void 0:$e.querySelectorAll("[data-headlessui-portal]"))!=null?Be:[]).find(St=>St.contains(De(D))&&St instanceof HTMLElement))!=null?It:null});z_(ae,fe),MF({type:"Dialog",enabled:z(()=>_.value===0),element:y,onUpdate:($e,Be)=>{if(Be==="Dialog")return rr($e,{[eg.Add]:()=>g.value+=1,[eg.Remove]:()=>g.value-=1})}});let ye=y0({name:"DialogDescription",slot:z(()=>({open:m.value}))}),re=ee(null),ke={titleId:re,panelRef:ee(null),dialogState:_,setTitleId($e){re.value!==$e&&(re.value=$e)},close(){t("close",!1)}};kt(ng,ke);let me=z(()=>!(!k.value||S.value));J2($,($e,Be)=>{$e.preventDefault(),ke.close(),an(()=>Be==null?void 0:Be.focus())},me);let bt=z(()=>!(S.value||_.value!==0));ak((a=x.value)==null?void 0:a.defaultView,"keydown",$e=>{bt.value&&($e.defaultPrevented||$e.key===yt.Escape&&($e.preventDefault(),$e.stopPropagation(),ke.close()))});let Dt=z(()=>!(N.value||_.value!==0||w));return RF(x,Dt,$e=>{var Be;return{containers:[...(Be=$e.containers)!=null?Be:[],$]}}),rn($e=>{if(_.value!==0)return;let Be=De(y);if(!Be)return;let It=new ResizeObserver(St=>{for(let Bt of St){let ft=Bt.target.getBoundingClientRect();ft.x===0&&ft.y===0&&ft.width===0&&ft.height===0&&ke.close()}});It.observe(Be),$e(()=>It.disconnect())}),()=>{let{open:$e,initialFocus:Be,...It}=e,St={...n,ref:y,id:u,role:d.value,"aria-modal":_.value===0?!0:void 0,"aria-labelledby":re.value,"aria-describedby":ye.value},Bt={open:_.value===0};return Qe(V_,{force:!0},()=>[Qe(FF,()=>Qe(zF,{target:y.value},()=>Qe(V_,{force:!1},()=>Qe(ja,{initialFocus:Be,containers:$,features:k.value?rr(V.value,{parent:ja.features.RestoreFocus,leaf:ja.features.All&~ja.features.FocusLock}):ja.features.None},()=>Qe(A,{},()=>Qt({ourProps:St,theirProps:{...It,...n},slot:Bt,attrs:n,slots:r,visible:_.value===0,features:di.RenderStrategy|di.Static,name:"Dialog"})))))),Qe(B)])}}}),mk=xe({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-dialog-panel-${kr()}`,a=hk("DialogPanel");r({el:a.panelRef,$el:a.panelRef});function u(c){c.stopPropagation()}return()=>{let{...c}=e,f={id:i,ref:a.panelRef,onClick:u};return Qt({ourProps:f,theirProps:c,slot:{open:a.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});var UF=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(UF||{});let vk=Symbol("DisclosureContext");function b0(e){let t=Ge(vk,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,b0),n}return t}let yk=Symbol("DisclosurePanelContext");function jF(){return Ge(yk,null)}let HF=xe({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:n}){let r=ee(e.defaultOpen?0:1),o=ee(null),i=ee(null),a={buttonId:ee(`headlessui-disclosure-button-${kr()}`),panelId:ee(`headlessui-disclosure-panel-${kr()}`),disclosureState:r,panel:o,button:i,toggleDisclosure(){r.value=rr(r.value,{0:1,1:0})},closeDisclosure(){r.value!==1&&(r.value=1)},close(u){a.closeDisclosure();let c=u?u instanceof HTMLElement?u:u.value instanceof HTMLElement?De(u):De(a.button):De(a.button);c==null||c.focus()}};return kt(vk,a),m0(z(()=>rr(r.value,{0:Gt.Open,1:Gt.Closed}))),()=>{let{defaultOpen:u,...c}=e,f={open:r.value===0,close:a.close};return Qt({theirProps:c,ourProps:{},slot:f,slots:t,attrs:n,name:"Disclosure"})}}}),WF=xe({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=b0("DisclosureButton"),i=jF(),a=z(()=>i===null?!1:i.value===o.panelId.value);lt(()=>{a.value||e.id!==null&&(o.buttonId.value=e.id)}),Zt(()=>{a.value||(o.buttonId.value=null)});let u=ee(null);r({el:u,$el:u}),a.value||rn(()=>{o.button.value=u.value});let c=g0(z(()=>({as:e.as,type:t.type})),u);function f(){var h;e.disabled||(a.value?(o.toggleDisclosure(),(h=De(o.button))==null||h.focus()):o.toggleDisclosure())}function d(h){var m;if(!e.disabled)if(a.value)switch(h.key){case yt.Space:case yt.Enter:h.preventDefault(),h.stopPropagation(),o.toggleDisclosure(),(m=De(o.button))==null||m.focus();break}else switch(h.key){case yt.Space:case yt.Enter:h.preventDefault(),h.stopPropagation(),o.toggleDisclosure();break}}function g(h){switch(h.key){case yt.Space:h.preventDefault();break}}return()=>{var h;let m={open:o.disclosureState.value===0},{id:y,...x}=e,_=a.value?{ref:u,type:c.value,onClick:f,onKeydown:d}:{id:(h=o.buttonId.value)!=null?h:y,ref:u,type:c.value,"aria-expanded":o.disclosureState.value===0,"aria-controls":o.disclosureState.value===0||De(o.panel)?o.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:f,onKeydown:d,onKeyup:g};return Qt({ourProps:_,theirProps:x,slot:m,attrs:t,slots:n,name:"DisclosureButton"})}}}),KF=xe({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=b0("DisclosurePanel");lt(()=>{e.id!==null&&(o.panelId.value=e.id)}),Zt(()=>{o.panelId.value=null}),r({el:o.panel,$el:o.panel}),kt(yk,o.panelId);let i=Xl(),a=z(()=>i!==null?(i.value&Gt.Open)===Gt.Open:o.disclosureState.value===0);return()=>{var u;let c={open:o.disclosureState.value===0,close:o.close},{id:f,...d}=e,g={id:(u=o.panelId.value)!=null?u:f,ref:o.panel};return Qt({ourProps:g,theirProps:d,slot:c,attrs:t,slots:n,features:di.RenderStrategy|di.Static,visible:a.value,name:"DisclosurePanel"})}}}),U_=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function j_(e){var t,n;let r=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let u of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))u.remove(),i=!0;let a=i?(n=o.innerText)!=null?n:"":r;return U_.test(a)&&(a=a.replace(U_,"")),a}function qF(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(o=>{let i=document.getElementById(o);if(i){let a=i.getAttribute("aria-label");return typeof a=="string"?a.trim():j_(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return j_(e).trim()}function GF(e){let t=ee(""),n=ee("");return()=>{let r=De(e);if(!r)return"";let o=r.innerText;if(t.value===o)return n.value;let i=qF(r).trim().toLowerCase();return t.value=o,n.value=i,i}}var ZF=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ZF||{}),YF=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(YF||{});function JF(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let bk=Symbol("MenuContext");function Ef(e){let t=Ge(bk,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ef),n}return t}let XF=xe({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=ee(1),o=ee(null),i=ee(null),a=ee([]),u=ee(""),c=ee(null),f=ee(1);function d(h=m=>m){let m=c.value!==null?a.value[c.value]:null,y=h0(h(a.value.slice()),_=>De(_.dataRef.domRef)),x=m?y.indexOf(m):null;return x===-1&&(x=null),{items:y,activeItemIndex:x}}let g={menuState:r,buttonRef:o,itemsRef:i,items:a,searchQuery:u,activeItemIndex:c,activationTrigger:f,closeMenu:()=>{r.value=1,c.value=null},openMenu:()=>r.value=0,goToItem(h,m,y){let x=d(),_=bF(h===Qn.Specific?{focus:Qn.Specific,id:m}:{focus:h},{resolveItems:()=>x.items,resolveActiveIndex:()=>x.activeItemIndex,resolveId:k=>k.id,resolveDisabled:k=>k.dataRef.disabled});u.value="",c.value=_,f.value=y??1,a.value=x.items},search(h){let m=u.value!==""?0:1;u.value+=h.toLowerCase();let y=(c.value!==null?a.value.slice(c.value+m).concat(a.value.slice(0,c.value+m)):a.value).find(_=>_.dataRef.textValue.startsWith(u.value)&&!_.dataRef.disabled),x=y?a.value.indexOf(y):-1;x===-1||x===c.value||(c.value=x,f.value=1)},clearSearch(){u.value=""},registerItem(h,m){let y=d(x=>[...x,{id:h,dataRef:m}]);a.value=y.items,c.value=y.activeItemIndex,f.value=1},unregisterItem(h){let m=d(y=>{let x=y.findIndex(_=>_.id===h);return x!==-1&&y.splice(x,1),y});a.value=m.items,c.value=m.activeItemIndex,f.value=1}};return J2([o,i],(h,m)=>{var y;g.closeMenu(),p0(m,d0.Loose)||(h.preventDefault(),(y=De(o))==null||y.focus())},z(()=>r.value===0)),kt(bk,g),m0(z(()=>rr(r.value,{0:Gt.Open,1:Gt.Closed}))),()=>{let h={open:r.value===0,close:g.closeMenu};return Qt({ourProps:{},theirProps:e,slot:h,slots:t,attrs:n,name:"Menu"})}}}),QF=xe({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-menu-button-${kr()}`,a=Ef("MenuButton");r({el:a.buttonRef,$el:a.buttonRef});function u(g){switch(g.key){case yt.Space:case yt.Enter:case yt.ArrowDown:g.preventDefault(),g.stopPropagation(),a.openMenu(),an(()=>{var h;(h=De(a.itemsRef))==null||h.focus({preventScroll:!0}),a.goToItem(Qn.First)});break;case yt.ArrowUp:g.preventDefault(),g.stopPropagation(),a.openMenu(),an(()=>{var h;(h=De(a.itemsRef))==null||h.focus({preventScroll:!0}),a.goToItem(Qn.Last)});break}}function c(g){switch(g.key){case yt.Space:g.preventDefault();break}}function f(g){e.disabled||(a.menuState.value===0?(a.closeMenu(),an(()=>{var h;return(h=De(a.buttonRef))==null?void 0:h.focus({preventScroll:!0})})):(g.preventDefault(),a.openMenu(),JF(()=>{var h;return(h=De(a.itemsRef))==null?void 0:h.focus({preventScroll:!0})})))}let d=g0(z(()=>({as:e.as,type:t.type})),a.buttonRef);return()=>{var g;let h={open:a.menuState.value===0},{...m}=e,y={ref:a.buttonRef,id:i,type:d.value,"aria-haspopup":"menu","aria-controls":(g=De(a.itemsRef))==null?void 0:g.id,"aria-expanded":a.menuState.value===0,onKeydown:u,onKeyup:c,onClick:f};return Qt({ourProps:y,theirProps:m,slot:h,attrs:t,slots:n,name:"MenuButton"})}}}),eN=xe({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-menu-items-${kr()}`,a=Ef("MenuItems"),u=ee(null);r({el:a.itemsRef,$el:a.itemsRef}),X2({container:z(()=>De(a.itemsRef)),enabled:z(()=>a.menuState.value===0),accept(h){return h.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:h.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(h){h.setAttribute("role","none")}});function c(h){var m;switch(u.value&&clearTimeout(u.value),h.key){case yt.Space:if(a.searchQuery.value!=="")return h.preventDefault(),h.stopPropagation(),a.search(h.key);case yt.Enter:if(h.preventDefault(),h.stopPropagation(),a.activeItemIndex.value!==null){let y=a.items.value[a.activeItemIndex.value];(m=De(y.dataRef.domRef))==null||m.click()}a.closeMenu(),G2(De(a.buttonRef));break;case yt.ArrowDown:return h.preventDefault(),h.stopPropagation(),a.goToItem(Qn.Next);case yt.ArrowUp:return h.preventDefault(),h.stopPropagation(),a.goToItem(Qn.Previous);case yt.Home:case yt.PageUp:return h.preventDefault(),h.stopPropagation(),a.goToItem(Qn.First);case yt.End:case yt.PageDown:return h.preventDefault(),h.stopPropagation(),a.goToItem(Qn.Last);case yt.Escape:h.preventDefault(),h.stopPropagation(),a.closeMenu(),an(()=>{var y;return(y=De(a.buttonRef))==null?void 0:y.focus({preventScroll:!0})});break;case yt.Tab:h.preventDefault(),h.stopPropagation(),a.closeMenu(),an(()=>fF(De(a.buttonRef),h.shiftKey?Fn.Previous:Fn.Next));break;default:h.key.length===1&&(a.search(h.key),u.value=setTimeout(()=>a.clearSearch(),350));break}}function f(h){switch(h.key){case yt.Space:h.preventDefault();break}}let d=Xl(),g=z(()=>d!==null?(d.value&Gt.Open)===Gt.Open:a.menuState.value===0);return()=>{var h,m;let y={open:a.menuState.value===0},{...x}=e,_={"aria-activedescendant":a.activeItemIndex.value===null||(h=a.items.value[a.activeItemIndex.value])==null?void 0:h.id,"aria-labelledby":(m=De(a.buttonRef))==null?void 0:m.id,id:i,onKeydown:c,onKeyup:f,role:"menu",tabIndex:0,ref:a.itemsRef};return Qt({ourProps:_,theirProps:x,slot:y,attrs:t,slots:n,features:di.RenderStrategy|di.Static,visible:g.value,name:"MenuItems"})}}}),Ur=xe({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-menu-item-${kr()}`,a=Ef("MenuItem"),u=ee(null);r({el:u,$el:u});let c=z(()=>a.activeItemIndex.value!==null?a.items.value[a.activeItemIndex.value].id===i:!1),f=GF(u),d=z(()=>({disabled:e.disabled,get textValue(){return f()},domRef:u}));lt(()=>a.registerItem(i,d)),Zt(()=>a.unregisterItem(i)),rn(()=>{a.menuState.value===0&&c.value&&a.activationTrigger.value!==0&&an(()=>{var k,S;return(S=(k=De(u))==null?void 0:k.scrollIntoView)==null?void 0:S.call(k,{block:"nearest"})})});function g(k){if(e.disabled)return k.preventDefault();a.closeMenu(),G2(De(a.buttonRef))}function h(){if(e.disabled)return a.goToItem(Qn.Nothing);a.goToItem(Qn.Specific,i)}let m=hF();function y(k){m.update(k)}function x(k){m.wasMoved(k)&&(e.disabled||c.value||a.goToItem(Qn.Specific,i,0))}function _(k){m.wasMoved(k)&&(e.disabled||c.value&&a.goToItem(Qn.Nothing))}return()=>{let{disabled:k,...S}=e,w={active:c.value,disabled:k,close:a.closeMenu};return Qt({ourProps:{id:i,ref:u,role:"menuitem",tabIndex:k===!0?void 0:-1,"aria-disabled":k===!0?!0:void 0,onClick:g,onFocus:h,onPointerenter:y,onMouseenter:y,onPointermove:x,onMousemove:x,onPointerleave:_,onMouseleave:_},theirProps:{...n,...S},slot:w,attrs:n,slots:t,name:"MenuItem"})}}}),_k=Symbol("LabelContext");function wk(){let e=Ge(_k,null);if(e===null){let t=new Error("You used a