From f1bd413d9debdc5c6c4f1faa92a86a0bc279921f Mon Sep 17 00:00:00 2001 From: Saleh Mir Date: Sun, 19 Jan 2025 22:56:50 +0330 Subject: [PATCH] 1.4.12 --- jesse/static/200.html | 16 ++++++++-------- jesse/static/404.html | 16 ++++++++-------- jesse/static/_nuxt/{C01ewFWa.js => 1zkNhB4_.js} | 2 +- jesse/static/_nuxt/{dTJKzFtA.js => 5-4wEC0h.js} | 2 +- jesse/static/_nuxt/{C26xw31t.js => B5TjB9RH.js} | 2 +- jesse/static/_nuxt/{DkS8BTE9.js => B82hSwaj.js} | 2 +- jesse/static/_nuxt/{CieRSp0c.js => BA9WFt47.js} | 2 +- jesse/static/_nuxt/{BfXeR9w9.js => BDilupNG.js} | 2 +- jesse/static/_nuxt/{oMHiHq4P.js => BMg26s-9.js} | 2 +- jesse/static/_nuxt/{DnH7xL8C.js => BNiEFLSF.js} | 2 +- jesse/static/_nuxt/{BfNkpG42.js => BSzulPDE.js} | 2 +- jesse/static/_nuxt/{BG1kS20I.js => BW0J-awP.js} | 2 +- jesse/static/_nuxt/{r28WtQzM.js => BWgDgmdD.js} | 2 +- jesse/static/_nuxt/{Cbzj_Da7.js => B_S3uIam.js} | 2 +- jesse/static/_nuxt/Ba7Ndv_M.js | 1 + jesse/static/_nuxt/{D0YuABT5.js => BgbW9Aq5.js} | 2 +- jesse/static/_nuxt/{Cxl9PnUV.js => BrmDuOBZ.js} | 2 +- jesse/static/_nuxt/{azkbtMd1.js => BzGTq0di.js} | 2 +- jesse/static/_nuxt/Bz_haz1e.js | 1 - jesse/static/_nuxt/{tqhInjVF.js => C421Ph1w.js} | 2 +- jesse/static/_nuxt/{C2tQgJDv.js => C4Kf3-V7.js} | 2 +- jesse/static/_nuxt/{P2RTDEVw.js => CBR445J6.js} | 10 +++++----- jesse/static/_nuxt/{CA432Fil.js => CJIn_AcD.js} | 2 +- jesse/static/_nuxt/{BJRrHHgP.js => COd6dAfH.js} | 2 +- jesse/static/_nuxt/{CxSgkSyI.js => CTNl6c3h.js} | 2 +- jesse/static/_nuxt/{C6Z10G10.js => CWZa5uCX.js} | 2 +- jesse/static/_nuxt/{Cz9v7_nt.js => CZQo_fz2.js} | 2 +- jesse/static/_nuxt/{BDYQ8qzK.js => CZnbgUOY.js} | 2 +- jesse/static/_nuxt/{BMvxbgBi.js => CjbTRqdC.js} | 2 +- jesse/static/_nuxt/{DYc5z1_J.js => CrZjGMUk.js} | 2 +- jesse/static/_nuxt/{DtHcrdFh.js => Csu6Bg30.js} | 2 +- jesse/static/_nuxt/{CvgYB84I.js => Cwjhy8h6.js} | 14 +++++++------- jesse/static/_nuxt/{B5FsZwEd.js => DC9wC7bj.js} | 2 +- jesse/static/_nuxt/{Cd9ILnfN.js => DLfji0Oo.js} | 2 +- jesse/static/_nuxt/{CPeVVL-L.js => DM1p5uJl.js} | 2 +- jesse/static/_nuxt/{Dp8W6R0p.js => DSjIPmPA.js} | 2 +- jesse/static/_nuxt/{FNX9_brP.js => DULAma5x.js} | 2 +- jesse/static/_nuxt/{DRLIKrD1.js => Ddm-kySd.js} | 2 +- jesse/static/_nuxt/{Rb8dHg_b.js => DeFeQeSU.js} | 2 +- jesse/static/_nuxt/{C9_qsUUJ.js => DgnVn8_w.js} | 2 +- jesse/static/_nuxt/{B1iL8kI7.js => DlGARzQo.js} | 2 +- jesse/static/_nuxt/{Bm-y-GSe.js => DoL1vnPK.js} | 2 +- jesse/static/_nuxt/{B0pq8mAM.js => Du_GLlqK.js} | 2 +- jesse/static/_nuxt/{CgnKy_Hz.js => DxS_eNCG.js} | 2 +- jesse/static/_nuxt/RgingE6E.js | 1 + jesse/static/_nuxt/{CTWGPuvd.js => UdHdDWR2.js} | 2 +- jesse/static/_nuxt/{DR9I4ubv.js => VbpRCzny.js} | 2 +- jesse/static/_nuxt/{Dz5yuOSc.js => Vy9FMleG.js} | 2 +- jesse/static/_nuxt/{D14gKO9u.js => ZzUyaYRm.js} | 2 +- jesse/static/_nuxt/{B46j6FNg.js => ebLb4CIY.js} | 2 +- .../{entry.uNu9SSFM.css => entry.CTr_FMaI.css} | 2 +- jesse/static/_nuxt/l897qaza.js | 1 - jesse/static/index.html | 16 ++++++++-------- jesse/version.py | 2 +- setup.py | 2 +- 55 files changed, 84 insertions(+), 84 deletions(-) rename jesse/static/_nuxt/{C01ewFWa.js => 1zkNhB4_.js} (56%) rename jesse/static/_nuxt/{dTJKzFtA.js => 5-4wEC0h.js} (99%) rename jesse/static/_nuxt/{C26xw31t.js => B5TjB9RH.js} (56%) rename jesse/static/_nuxt/{DkS8BTE9.js => B82hSwaj.js} (98%) rename jesse/static/_nuxt/{CieRSp0c.js => BA9WFt47.js} (99%) rename jesse/static/_nuxt/{BfXeR9w9.js => BDilupNG.js} (76%) rename jesse/static/_nuxt/{oMHiHq4P.js => BMg26s-9.js} (99%) rename jesse/static/_nuxt/{DnH7xL8C.js => BNiEFLSF.js} (97%) rename jesse/static/_nuxt/{BfNkpG42.js => BSzulPDE.js} (89%) rename jesse/static/_nuxt/{BG1kS20I.js => BW0J-awP.js} (98%) rename jesse/static/_nuxt/{r28WtQzM.js => BWgDgmdD.js} (97%) rename jesse/static/_nuxt/{Cbzj_Da7.js => B_S3uIam.js} (98%) create mode 100644 jesse/static/_nuxt/Ba7Ndv_M.js rename jesse/static/_nuxt/{D0YuABT5.js => BgbW9Aq5.js} (98%) rename jesse/static/_nuxt/{Cxl9PnUV.js => BrmDuOBZ.js} (97%) rename jesse/static/_nuxt/{azkbtMd1.js => BzGTq0di.js} (77%) delete mode 100644 jesse/static/_nuxt/Bz_haz1e.js rename jesse/static/_nuxt/{tqhInjVF.js => C421Ph1w.js} (97%) rename jesse/static/_nuxt/{C2tQgJDv.js => C4Kf3-V7.js} (83%) rename jesse/static/_nuxt/{P2RTDEVw.js => CBR445J6.js} (99%) rename jesse/static/_nuxt/{CA432Fil.js => CJIn_AcD.js} (99%) rename jesse/static/_nuxt/{BJRrHHgP.js => COd6dAfH.js} (98%) rename jesse/static/_nuxt/{CxSgkSyI.js => CTNl6c3h.js} (97%) rename jesse/static/_nuxt/{C6Z10G10.js => CWZa5uCX.js} (73%) rename jesse/static/_nuxt/{Cz9v7_nt.js => CZQo_fz2.js} (99%) rename jesse/static/_nuxt/{BDYQ8qzK.js => CZnbgUOY.js} (99%) rename jesse/static/_nuxt/{BMvxbgBi.js => CjbTRqdC.js} (99%) rename jesse/static/_nuxt/{DYc5z1_J.js => CrZjGMUk.js} (97%) rename jesse/static/_nuxt/{DtHcrdFh.js => Csu6Bg30.js} (98%) rename jesse/static/_nuxt/{CvgYB84I.js => Cwjhy8h6.js} (99%) rename jesse/static/_nuxt/{B5FsZwEd.js => DC9wC7bj.js} (96%) rename jesse/static/_nuxt/{Cd9ILnfN.js => DLfji0Oo.js} (93%) rename jesse/static/_nuxt/{CPeVVL-L.js => DM1p5uJl.js} (99%) rename jesse/static/_nuxt/{Dp8W6R0p.js => DSjIPmPA.js} (82%) rename jesse/static/_nuxt/{FNX9_brP.js => DULAma5x.js} (99%) rename jesse/static/_nuxt/{DRLIKrD1.js => Ddm-kySd.js} (97%) rename jesse/static/_nuxt/{Rb8dHg_b.js => DeFeQeSU.js} (80%) rename jesse/static/_nuxt/{C9_qsUUJ.js => DgnVn8_w.js} (96%) rename jesse/static/_nuxt/{B1iL8kI7.js => DlGARzQo.js} (98%) rename jesse/static/_nuxt/{Bm-y-GSe.js => DoL1vnPK.js} (99%) rename jesse/static/_nuxt/{B0pq8mAM.js => Du_GLlqK.js} (99%) rename jesse/static/_nuxt/{CgnKy_Hz.js => DxS_eNCG.js} (98%) create mode 100644 jesse/static/_nuxt/RgingE6E.js rename jesse/static/_nuxt/{CTWGPuvd.js => UdHdDWR2.js} (98%) rename jesse/static/_nuxt/{DR9I4ubv.js => VbpRCzny.js} (98%) rename jesse/static/_nuxt/{Dz5yuOSc.js => Vy9FMleG.js} (99%) rename jesse/static/_nuxt/{D14gKO9u.js => ZzUyaYRm.js} (91%) rename jesse/static/_nuxt/{B46j6FNg.js => ebLb4CIY.js} (95%) rename jesse/static/_nuxt/{entry.uNu9SSFM.css => entry.CTr_FMaI.css} (94%) delete mode 100644 jesse/static/_nuxt/l897qaza.js diff --git a/jesse/static/200.html b/jesse/static/200.html index e3aaf8f6d..26887b04f 100644 --- a/jesse/static/200.html +++ b/jesse/static/200.html @@ -1,17 +1,17 @@ - - + + - - + + - + - + - -
\ No newline at end of file diff --git a/jesse/static/404.html b/jesse/static/404.html index e3aaf8f6d..26887b04f 100644 --- a/jesse/static/404.html +++ b/jesse/static/404.html @@ -1,17 +1,17 @@ - - + + - - + + - + - + - -
\ No newline at end of file diff --git a/jesse/static/_nuxt/C01ewFWa.js b/jesse/static/_nuxt/1zkNhB4_.js similarity index 56% rename from jesse/static/_nuxt/C01ewFWa.js rename to jesse/static/_nuxt/1zkNhB4_.js index cdb40d179..506a30a02 100644 --- a/jesse/static/_nuxt/C01ewFWa.js +++ b/jesse/static/_nuxt/1zkNhB4_.js @@ -1 +1 @@ -import{bH as a,G as e,O as t}from"./P2RTDEVw.js";const s=a((r,o)=>{if(e().plan==="free"||e().plan==="guest")return t("/")});export{s as default}; +import{bH as a,G as e,O as t}from"./CBR445J6.js";const s=a((r,o)=>{if(e().plan==="free"||e().plan==="guest")return t("/")});export{s as default}; diff --git a/jesse/static/_nuxt/dTJKzFtA.js b/jesse/static/_nuxt/5-4wEC0h.js similarity index 99% rename from jesse/static/_nuxt/dTJKzFtA.js rename to jesse/static/_nuxt/5-4wEC0h.js index d959c6694..9b1430e0d 100644 --- a/jesse/static/_nuxt/dTJKzFtA.js +++ b/jesse/static/_nuxt/5-4wEC0h.js @@ -1,4 +1,4 @@ -import{m as Lt}from"./CvgYB84I.js";import"./P2RTDEVw.js";/*!----------------------------------------------------------------------------- +import{m as Lt}from"./Cwjhy8h6.js";import"./CBR445J6.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/jesse/static/_nuxt/C26xw31t.js b/jesse/static/_nuxt/B5TjB9RH.js similarity index 56% rename from jesse/static/_nuxt/C26xw31t.js rename to jesse/static/_nuxt/B5TjB9RH.js index e3f1daf70..a0c814907 100644 --- a/jesse/static/_nuxt/C26xw31t.js +++ b/jesse/static/_nuxt/B5TjB9RH.js @@ -1 +1 @@ -import{a as r,x as t}from"./P2RTDEVw.js";const s={};function a(e,n){return t(e.$slots,"default")}const c=r(s,[["render",a]]);export{c as default}; +import{a as r,x as t}from"./CBR445J6.js";const s={};function a(e,n){return t(e.$slots,"default")}const c=r(s,[["render",a]]);export{c as default}; diff --git a/jesse/static/_nuxt/DkS8BTE9.js b/jesse/static/_nuxt/B82hSwaj.js similarity index 98% rename from jesse/static/_nuxt/DkS8BTE9.js rename to jesse/static/_nuxt/B82hSwaj.js index 43c77bd15..42630eb56 100644 --- a/jesse/static/_nuxt/DkS8BTE9.js +++ b/jesse/static/_nuxt/B82hSwaj.js @@ -1,4 +1,4 @@ -import{m as p}from"./CvgYB84I.js";import"./P2RTDEVw.js";/*!----------------------------------------------------------------------------- +import{m as p}from"./Cwjhy8h6.js";import"./CBR445J6.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/jesse/static/_nuxt/CieRSp0c.js b/jesse/static/_nuxt/BA9WFt47.js similarity index 99% rename from jesse/static/_nuxt/CieRSp0c.js rename to jesse/static/_nuxt/BA9WFt47.js index ac849d415..986e03c42 100644 --- a/jesse/static/_nuxt/CieRSp0c.js +++ b/jesse/static/_nuxt/BA9WFt47.js @@ -1,4 +1,4 @@ -import{m as F}from"./CvgYB84I.js";import"./P2RTDEVw.js";/*!----------------------------------------------------------------------------- +import{m as F}from"./Cwjhy8h6.js";import"./CBR445J6.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/jesse/static/_nuxt/BfXeR9w9.js b/jesse/static/_nuxt/BDilupNG.js similarity index 76% rename from jesse/static/_nuxt/BfXeR9w9.js rename to jesse/static/_nuxt/BDilupNG.js index d6a6669fc..85e2bb148 100644 --- a/jesse/static/_nuxt/BfXeR9w9.js +++ b/jesse/static/_nuxt/BDilupNG.js @@ -1 +1 @@ -import{h as n,W as r,b5 as c,o as i,c as p}from"./P2RTDEVw.js";const _=n({__name:"index",setup(u){const a=r(),e=c(),t=Object.keys(e.tabs);if(t.length>0){const s=t[0],o=e.tabs[s];a.push({path:`/live/${o.id}`})}else e.addTab();return(s,o)=>(i(),p("div"))}});export{_ as default}; +import{h as n,W as r,b5 as c,o as i,c as p}from"./CBR445J6.js";const _=n({__name:"index",setup(u){const a=r(),e=c(),t=Object.keys(e.tabs);if(t.length>0){const s=t[0],o=e.tabs[s];a.push({path:`/live/${o.id}`})}else e.addTab();return(s,o)=>(i(),p("div"))}});export{_ as default}; diff --git a/jesse/static/_nuxt/oMHiHq4P.js b/jesse/static/_nuxt/BMg26s-9.js similarity index 99% rename from jesse/static/_nuxt/oMHiHq4P.js rename to jesse/static/_nuxt/BMg26s-9.js index 24ae9f26f..484122609 100644 --- a/jesse/static/_nuxt/oMHiHq4P.js +++ b/jesse/static/_nuxt/BMg26s-9.js @@ -1,4 +1,4 @@ -import{m as s}from"./CvgYB84I.js";import"./P2RTDEVw.js";/*!----------------------------------------------------------------------------- +import{m as s}from"./Cwjhy8h6.js";import"./CBR445J6.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/jesse/static/_nuxt/DnH7xL8C.js b/jesse/static/_nuxt/BNiEFLSF.js similarity index 97% rename from jesse/static/_nuxt/DnH7xL8C.js rename to jesse/static/_nuxt/BNiEFLSF.js index 50d7b856e..34663c6a7 100644 --- a/jesse/static/_nuxt/DnH7xL8C.js +++ b/jesse/static/_nuxt/BNiEFLSF.js @@ -1,4 +1,4 @@ -import{m}from"./CvgYB84I.js";import"./P2RTDEVw.js";/*!----------------------------------------------------------------------------- +import{m}from"./Cwjhy8h6.js";import"./CBR445J6.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/jesse/static/_nuxt/BfNkpG42.js b/jesse/static/_nuxt/BSzulPDE.js similarity index 89% rename from jesse/static/_nuxt/BfNkpG42.js rename to jesse/static/_nuxt/BSzulPDE.js index fa32cd4c8..c1a5e9f42 100644 --- a/jesse/static/_nuxt/BfNkpG42.js +++ b/jesse/static/_nuxt/BSzulPDE.js @@ -1,4 +1,4 @@ -import{conf as t,language as e}from"./DR9I4ubv.js";import"./CvgYB84I.js";import"./P2RTDEVw.js";/*!----------------------------------------------------------------------------- +import{conf as t,language as e}from"./VbpRCzny.js";import"./Cwjhy8h6.js";import"./CBR445J6.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/jesse/static/_nuxt/BG1kS20I.js b/jesse/static/_nuxt/BW0J-awP.js similarity index 98% rename from jesse/static/_nuxt/BG1kS20I.js rename to jesse/static/_nuxt/BW0J-awP.js index f6b15992b..06fc89ce9 100644 --- a/jesse/static/_nuxt/BG1kS20I.js +++ b/jesse/static/_nuxt/BW0J-awP.js @@ -1 +1 @@ -import{o as t,c as s,b as e,h as f,r as u,k as w,Z as M,b1 as C,N as j,a0 as A,b2 as $,D as r,M as B,F as x,n as b,t as g,E as _,e as m,aZ as V,b3 as z,d as D,Y as N,v as L,b4 as S}from"./P2RTDEVw.js";import{u as Z}from"./C6Z10G10.js";function q(c,o){return t(),s("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:"M4.26 10.147a60.438 60.438 0 0 0-.491 6.347A48.62 48.62 0 0 1 12 20.904a48.62 48.62 0 0 1 8.232-4.41 60.46 60.46 0 0 0-.491-6.347m-15.482 0a50.636 50.636 0 0 0-2.658-.813A59.906 59.906 0 0 1 12 3.493a59.903 59.903 0 0 1 10.399 5.84c-.896.248-1.783.52-2.658.814m-15.482 0A50.717 50.717 0 0 1 12 13.489a50.702 50.702 0 0 1 7.74-3.342M6.75 15a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm0 0v-3.675A55.378 55.378 0 0 1 12 8.443m-7.007 11.55A5.981 5.981 0 0 0 6.75 15.75v-1.5"})])}function H(c,o){return t(),s("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.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"})])}function J(c,o){return t(),s("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:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h1.5C5.496 19.5 6 18.996 6 18.375m-3.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-1.5A1.125 1.125 0 0 1 18 18.375M20.625 4.5H3.375m17.25 0c.621 0 1.125.504 1.125 1.125M20.625 4.5h-1.5C18.504 4.5 18 5.004 18 5.625m3.75 0v1.5c0 .621-.504 1.125-1.125 1.125M3.375 4.5c-.621 0-1.125.504-1.125 1.125M3.375 4.5h1.5C5.496 4.5 6 5.004 6 5.625m-3.75 0v1.5c0 .621.504 1.125 1.125 1.125m0 0h1.5m-1.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m1.5-3.75C5.496 8.25 6 7.746 6 7.125v-1.5M4.875 8.25C5.496 8.25 6 8.754 6 9.375v1.5m0-5.25v5.25m0-5.25C6 5.004 6.504 4.5 7.125 4.5h9.75c.621 0 1.125.504 1.125 1.125m1.125 2.625h1.5m-1.5 0A1.125 1.125 0 0 1 18 7.125v-1.5m1.125 2.625c-.621 0-1.125.504-1.125 1.125v1.5m2.625-2.625c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125M18 5.625v5.25M7.125 12h9.75m-9.75 0A1.125 1.125 0 0 1 6 10.875M7.125 12C6.504 12 6 12.504 6 13.125m0-2.25C6 11.496 5.496 12 4.875 12M18 10.875c0 .621-.504 1.125-1.125 1.125M18 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m-12 5.25v-5.25m0 5.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125m-12 0v-1.5c0-.621-.504-1.125-1.125-1.125M18 18.375v-5.25m0 5.25v-1.5c0-.621.504-1.125 1.125-1.125M18 13.125v1.5c0 .621.504 1.125 1.125 1.125M18 13.125c0-.621.504-1.125 1.125-1.125M6 13.125v1.5c0 .621-.504 1.125-1.125 1.125M6 13.125C6 12.504 5.496 12 4.875 12m-1.5 0h1.5m-1.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M19.125 12h1.5m0 0c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h1.5m14.25 0h1.5"})])}function R(c,o){return t(),s("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:"M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 0 1-2.25 2.25M16.5 7.5V18a2.25 2.25 0 0 0 2.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 0 0 2.25 2.25h13.5M6 7.5h3v3H6v-3Z"})])}function E(c,o){return t(),s("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:"M18 18.72a9.094 9.094 0 0 0 3.741-.479 3 3 0 0 0-4.682-2.72m.94 3.198.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0 1 12 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 0 1 6 18.719m12 0a5.971 5.971 0 0 0-.941-3.197m0 0A5.995 5.995 0 0 0 12 12.75a5.995 5.995 0 0 0-5.058 2.772m0 0a3 3 0 0 0-4.681 2.72 8.986 8.986 0 0 0 3.74.477m.94-3.197a5.971 5.971 0 0 0-.94 3.197M15 6.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm6 3a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-13.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z"})])}const F=""+new URL("search-by-algolia-light-background.B_nenvU-.svg",import.meta.url).href,T={class:"w-full flex justify-center"},U={class:"mb-4 mt-8 px-2 w-full md:w-2/3"},G={class:"relative"},I=e("div",{class:"absolute left-2 inset-y-0 pl-3 flex items-center"},[e("svg",{class:"fill-current h-6 w-6 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[e("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})])],-1),K={key:0,class:"relative"},O={key:0,class:"w-full absolute bg-white p-2 mt-2 border border-gray-300 rounded shadow-md z-50"},P=e("div",{class:"py-4 px-4 text-gray-600"}," Searching ... ",-1),W=[P],Y={key:1,class:"w-full absolute bg-white p-2 mt-2 border border-gray-300 rounded shadow-md z-50"},Q=e("div",{class:"py-4 px-4 text-gray-600 flex items-center text-sm md:text-base"},[e("span",{class:"mr-4 text-red-500"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})])]),m(" Something went wrong ")],-1),X=[Q],e1={key:2,class:"w-full absolute bg-white px-2 py-2 mt-2 rounded shadow-lg border border-gray-300 max-h-64 overflow-y-auto z-50"},t1=["href"],s1={class:"px-2 py-4 rounded text-gray-600 hover:bg-indigo-500 hover:text-white"},o1=e("div",{class:"flex justify-end p-2"},[e("img",{src:F,alt:"search by Algolia"})],-1),r1={key:3,class:"w-full absolute bg-white p-2 mt-2 border border-gray-300 rounded shadow-md z-50"},a1=e("div",{class:"py-4 px-4 text-gray-600 flex items-center text-sm md:text-base"},[e("span",{class:"mr-4 text-yellow-300"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})])]),m(" No items were found for the entered phrase. ")],-1),n1=[a1],i1=f({__name:"HelpSearch",setup(c){const o=u(!1),h=u(!1),v=u(!1),l=u([]),i=u(!1),a=u("");w(a,M.debounce(()=>{i.value=!1},1e3)),w(i,p=>{!p&&a.value?k(a.value):l.value&&a.value.length===0&&(l.value=[],o.value=!1)});const k=async p=>{v.value=!1,h.value=!0;const{data:d,error:n}=await C(`https://jesse.trade/api/help/search?item=${p}`);if(n.value&&n.value.statusCode!==200){j("error",n.value.message),o.value=!0,h.value=!1,v.value=!0;return}const y=d.value;o.value=!0,l.value=y,h.value=!1};return(p,d)=>(t(),s("div",T,[e("div",U,[e("div",G,[I,A(e("input",{"onUpdate:modelValue":d[0]||(d[0]=n=>B(a)?a.value=n:null),class:"w-full pl-14 pr-4 py-4 rounded-full outline-none border-2 border-gray-200 focus:border-indigo-600 focus:ring-0 dark:bg-gray-800 dark:border-gray-900",type:"search",placeholder:"Search...",onInput:d[1]||(d[1]=n=>i.value=!0)},null,544),[[$,r(a)]])]),r(a)?(t(),s("div",K,[r(h)?(t(),s("div",O,W)):r(v)&&r(o)?(t(),s("div",Y,X)):r(l).length!=0&&r(o)?(t(),s("div",e1,[(t(!0),s(x,null,b(r(l),n=>(t(),s("div",{key:n.id},[e("a",{href:"https://jesse.trade/help/faq/"+n.slug,target:"_blank"},[e("div",s1,g(n.title),1)],8,t1)]))),128)),o1])):r(l).length===0&&r(o)?(t(),s("div",r1,n1)):_("",!0)])):_("",!0)])]))}}),l1={class:"container select-none"},c1=e("div",{class:"text-center mt-16"},[e("h3",null,[m(" Need help? Check out the "),e("a",{href:"http://docs.jesse.trade",class:"text-indigo-600 dark:text-indigo-400 hover:underline",target:"_blank"}," docs "),m(" or search the help center: ")])],-1),d1={role:"list",class:"border-gray-200 py-6 grid grid-cols-1 gap-6 sm:grid-cols-2"},u1={class:"relative -m-2 p-2 flex items-center space-x-4 rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800 focus-within:ring-2 focus-within:ring-indigo-500"},h1={class:"text-sm font-medium text-gray-900 dark:text-gray-100"},m1=["href"],v1=e("span",{class:"absolute inset-0","aria-hidden":"true"},null,-1),p1=e("span",{"aria-hidden":"true"}," →",-1),g1={class:"mt-1 text-sm text-gray-600 dark:text-gray-400"},f1=f({__name:"index",setup(c){Z({title:"Dashboard - Jesse"});const o=V([{title:"Documentation",description:"Our friendly documentation is the best place to find information about Jesse",icon:q,background:"bg-pink-500",url:"https://docs.jesse.trade/"},{title:"Tutorials",description:"Learn by watching the creator of Jesse writing strategies step-by-step",icon:J,background:"bg-yellow-500",url:"https://jesse.trade/youtube"},{title:"Discord",description:"Join our friendly Discord community filled with awesome quants",icon:E,background:"bg-green-500",url:"https://jesse.trade/discord"},{title:"Github",description:"Curios to see the source code?",icon:z,background:"bg-blue-500",url:"https://github.com/jesse-ai/jesse"},{title:"News",description:"Keep up with our latest developments",icon:R,background:"bg-indigo-500",url:"https://jesse.trade/blog"},{title:"Roadmap",description:"Wanna know what’s coming next and when?",icon:H,background:"bg-purple-500",url:"https://docs.jesse.trade/docs/roadmap.html"}]);return(h,v)=>{const l=i1;return t(),s("div",l1,[c1,D(l),e("div",null,[e("ul",d1,[(t(!0),s(x,null,b(r(o),(i,a)=>(t(),s("li",{key:a,class:"flow-root"},[e("div",u1,[e("div",{class:N([i.background,"flex-shrink-0 flex items-center justify-center h-16 w-16 rounded-lg"])},[(t(),L(S(i.icon),{class:"h-6 w-6 text-white","aria-hidden":"true"}))],2),e("div",null,[e("h3",h1,[e("a",{href:i.url,target:"_blank",class:"focus:outline-none"},[v1,m(" "+g(i.title),1),p1],8,m1)]),e("p",g1,g(i.description),1)])])]))),128))])])])}}});export{f1 as default}; +import{o as t,c as s,b as e,h as f,r as u,k as w,Z as M,b1 as C,N as j,a0 as A,b2 as $,D as r,M as B,F as x,n as b,t as g,E as _,e as m,aZ as V,b3 as z,d as D,Y as N,v as L,b4 as S}from"./CBR445J6.js";import{u as Z}from"./CWZa5uCX.js";function q(c,o){return t(),s("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:"M4.26 10.147a60.438 60.438 0 0 0-.491 6.347A48.62 48.62 0 0 1 12 20.904a48.62 48.62 0 0 1 8.232-4.41 60.46 60.46 0 0 0-.491-6.347m-15.482 0a50.636 50.636 0 0 0-2.658-.813A59.906 59.906 0 0 1 12 3.493a59.903 59.903 0 0 1 10.399 5.84c-.896.248-1.783.52-2.658.814m-15.482 0A50.717 50.717 0 0 1 12 13.489a50.702 50.702 0 0 1 7.74-3.342M6.75 15a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm0 0v-3.675A55.378 55.378 0 0 1 12 8.443m-7.007 11.55A5.981 5.981 0 0 0 6.75 15.75v-1.5"})])}function H(c,o){return t(),s("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.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"})])}function J(c,o){return t(),s("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:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h1.5C5.496 19.5 6 18.996 6 18.375m-3.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-1.5A1.125 1.125 0 0 1 18 18.375M20.625 4.5H3.375m17.25 0c.621 0 1.125.504 1.125 1.125M20.625 4.5h-1.5C18.504 4.5 18 5.004 18 5.625m3.75 0v1.5c0 .621-.504 1.125-1.125 1.125M3.375 4.5c-.621 0-1.125.504-1.125 1.125M3.375 4.5h1.5C5.496 4.5 6 5.004 6 5.625m-3.75 0v1.5c0 .621.504 1.125 1.125 1.125m0 0h1.5m-1.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m1.5-3.75C5.496 8.25 6 7.746 6 7.125v-1.5M4.875 8.25C5.496 8.25 6 8.754 6 9.375v1.5m0-5.25v5.25m0-5.25C6 5.004 6.504 4.5 7.125 4.5h9.75c.621 0 1.125.504 1.125 1.125m1.125 2.625h1.5m-1.5 0A1.125 1.125 0 0 1 18 7.125v-1.5m1.125 2.625c-.621 0-1.125.504-1.125 1.125v1.5m2.625-2.625c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125M18 5.625v5.25M7.125 12h9.75m-9.75 0A1.125 1.125 0 0 1 6 10.875M7.125 12C6.504 12 6 12.504 6 13.125m0-2.25C6 11.496 5.496 12 4.875 12M18 10.875c0 .621-.504 1.125-1.125 1.125M18 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m-12 5.25v-5.25m0 5.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125m-12 0v-1.5c0-.621-.504-1.125-1.125-1.125M18 18.375v-5.25m0 5.25v-1.5c0-.621.504-1.125 1.125-1.125M18 13.125v1.5c0 .621.504 1.125 1.125 1.125M18 13.125c0-.621.504-1.125 1.125-1.125M6 13.125v1.5c0 .621-.504 1.125-1.125 1.125M6 13.125C6 12.504 5.496 12 4.875 12m-1.5 0h1.5m-1.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M19.125 12h1.5m0 0c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h1.5m14.25 0h1.5"})])}function R(c,o){return t(),s("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:"M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 0 1-2.25 2.25M16.5 7.5V18a2.25 2.25 0 0 0 2.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 0 0 2.25 2.25h13.5M6 7.5h3v3H6v-3Z"})])}function E(c,o){return t(),s("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:"M18 18.72a9.094 9.094 0 0 0 3.741-.479 3 3 0 0 0-4.682-2.72m.94 3.198.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0 1 12 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 0 1 6 18.719m12 0a5.971 5.971 0 0 0-.941-3.197m0 0A5.995 5.995 0 0 0 12 12.75a5.995 5.995 0 0 0-5.058 2.772m0 0a3 3 0 0 0-4.681 2.72 8.986 8.986 0 0 0 3.74.477m.94-3.197a5.971 5.971 0 0 0-.94 3.197M15 6.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm6 3a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-13.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z"})])}const F=""+new URL("search-by-algolia-light-background.B_nenvU-.svg",import.meta.url).href,T={class:"w-full flex justify-center"},U={class:"mb-4 mt-8 px-2 w-full md:w-2/3"},G={class:"relative"},I=e("div",{class:"absolute left-2 inset-y-0 pl-3 flex items-center"},[e("svg",{class:"fill-current h-6 w-6 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[e("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})])],-1),K={key:0,class:"relative"},O={key:0,class:"w-full absolute bg-white p-2 mt-2 border border-gray-300 rounded shadow-md z-50"},P=e("div",{class:"py-4 px-4 text-gray-600"}," Searching ... ",-1),W=[P],Y={key:1,class:"w-full absolute bg-white p-2 mt-2 border border-gray-300 rounded shadow-md z-50"},Q=e("div",{class:"py-4 px-4 text-gray-600 flex items-center text-sm md:text-base"},[e("span",{class:"mr-4 text-red-500"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})])]),m(" Something went wrong ")],-1),X=[Q],e1={key:2,class:"w-full absolute bg-white px-2 py-2 mt-2 rounded shadow-lg border border-gray-300 max-h-64 overflow-y-auto z-50"},t1=["href"],s1={class:"px-2 py-4 rounded text-gray-600 hover:bg-indigo-500 hover:text-white"},o1=e("div",{class:"flex justify-end p-2"},[e("img",{src:F,alt:"search by Algolia"})],-1),r1={key:3,class:"w-full absolute bg-white p-2 mt-2 border border-gray-300 rounded shadow-md z-50"},a1=e("div",{class:"py-4 px-4 text-gray-600 flex items-center text-sm md:text-base"},[e("span",{class:"mr-4 text-yellow-300"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})])]),m(" No items were found for the entered phrase. ")],-1),n1=[a1],i1=f({__name:"HelpSearch",setup(c){const o=u(!1),h=u(!1),v=u(!1),l=u([]),i=u(!1),a=u("");w(a,M.debounce(()=>{i.value=!1},1e3)),w(i,p=>{!p&&a.value?k(a.value):l.value&&a.value.length===0&&(l.value=[],o.value=!1)});const k=async p=>{v.value=!1,h.value=!0;const{data:d,error:n}=await C(`https://jesse.trade/api/help/search?item=${p}`);if(n.value&&n.value.statusCode!==200){j("error",n.value.message),o.value=!0,h.value=!1,v.value=!0;return}const y=d.value;o.value=!0,l.value=y,h.value=!1};return(p,d)=>(t(),s("div",T,[e("div",U,[e("div",G,[I,A(e("input",{"onUpdate:modelValue":d[0]||(d[0]=n=>B(a)?a.value=n:null),class:"w-full pl-14 pr-4 py-4 rounded-full outline-none border-2 border-gray-200 focus:border-indigo-600 focus:ring-0 dark:bg-gray-800 dark:border-gray-900",type:"search",placeholder:"Search...",onInput:d[1]||(d[1]=n=>i.value=!0)},null,544),[[$,r(a)]])]),r(a)?(t(),s("div",K,[r(h)?(t(),s("div",O,W)):r(v)&&r(o)?(t(),s("div",Y,X)):r(l).length!=0&&r(o)?(t(),s("div",e1,[(t(!0),s(x,null,b(r(l),n=>(t(),s("div",{key:n.id},[e("a",{href:"https://jesse.trade/help/faq/"+n.slug,target:"_blank"},[e("div",s1,g(n.title),1)],8,t1)]))),128)),o1])):r(l).length===0&&r(o)?(t(),s("div",r1,n1)):_("",!0)])):_("",!0)])]))}}),l1={class:"container select-none"},c1=e("div",{class:"text-center mt-16"},[e("h3",null,[m(" Need help? Check out the "),e("a",{href:"http://docs.jesse.trade",class:"text-indigo-600 dark:text-indigo-400 hover:underline",target:"_blank"}," docs "),m(" or search the help center: ")])],-1),d1={role:"list",class:"border-gray-200 py-6 grid grid-cols-1 gap-6 sm:grid-cols-2"},u1={class:"relative -m-2 p-2 flex items-center space-x-4 rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800 focus-within:ring-2 focus-within:ring-indigo-500"},h1={class:"text-sm font-medium text-gray-900 dark:text-gray-100"},m1=["href"],v1=e("span",{class:"absolute inset-0","aria-hidden":"true"},null,-1),p1=e("span",{"aria-hidden":"true"}," →",-1),g1={class:"mt-1 text-sm text-gray-600 dark:text-gray-400"},f1=f({__name:"index",setup(c){Z({title:"Dashboard - Jesse"});const o=V([{title:"Documentation",description:"Our friendly documentation is the best place to find information about Jesse",icon:q,background:"bg-pink-500",url:"https://docs.jesse.trade/"},{title:"Tutorials",description:"Learn by watching the creator of Jesse writing strategies step-by-step",icon:J,background:"bg-yellow-500",url:"https://jesse.trade/youtube"},{title:"Discord",description:"Join our friendly Discord community filled with awesome quants",icon:E,background:"bg-green-500",url:"https://jesse.trade/discord"},{title:"Github",description:"Curios to see the source code?",icon:z,background:"bg-blue-500",url:"https://github.com/jesse-ai/jesse"},{title:"News",description:"Keep up with our latest developments",icon:R,background:"bg-indigo-500",url:"https://jesse.trade/blog"},{title:"Roadmap",description:"Wanna know what’s coming next and when?",icon:H,background:"bg-purple-500",url:"https://docs.jesse.trade/docs/roadmap.html"}]);return(h,v)=>{const l=i1;return t(),s("div",l1,[c1,D(l),e("div",null,[e("ul",d1,[(t(!0),s(x,null,b(r(o),(i,a)=>(t(),s("li",{key:a,class:"flow-root"},[e("div",u1,[e("div",{class:N([i.background,"flex-shrink-0 flex items-center justify-center h-16 w-16 rounded-lg"])},[(t(),L(S(i.icon),{class:"h-6 w-6 text-white","aria-hidden":"true"}))],2),e("div",null,[e("h3",h1,[e("a",{href:i.url,target:"_blank",class:"focus:outline-none"},[v1,m(" "+g(i.title),1),p1],8,m1)]),e("p",g1,g(i.description),1)])])]))),128))])])])}}});export{f1 as default}; diff --git a/jesse/static/_nuxt/r28WtQzM.js b/jesse/static/_nuxt/BWgDgmdD.js similarity index 97% rename from jesse/static/_nuxt/r28WtQzM.js rename to jesse/static/_nuxt/BWgDgmdD.js index 91fec3c8c..b9bc17781 100644 --- a/jesse/static/_nuxt/r28WtQzM.js +++ b/jesse/static/_nuxt/BWgDgmdD.js @@ -1 +1 @@ -import{o as i,c as d,b as r,bE as h,bF as b,b1 as m,aW as c,aV as l,N as v,h as w,j as p,r as _,l as S,a0 as k,b2 as x,D as u,M as C,F as V,n as A,q as B,v as M,w as N,d as F,t as L,f as D}from"./P2RTDEVw.js";function E(a,t){return i(),d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[r("path",{d:"M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0 0 16.5 9h-1.875a1.875 1.875 0 0 1-1.875-1.875V5.25A3.75 3.75 0 0 0 9 1.5H5.625Z"}),r("path",{d:"M12.971 1.816A5.23 5.23 0 0 1 14.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 0 1 3.434 1.279 9.768 9.768 0 0 0-6.963-6.963Z"})])}const y=h("strategies",{state:()=>({strategies:[]}),persist:{storage:b.localStorage},actions:{async getStrategies(){const{data:a,error:t}=await m("/get-strategies",!0);if(t.value&&t.value.statusCode!==200){c(t);return}const e=a.value;this.strategies=e.strategies},async getStrategy(a){const{data:t,error:e}=await l("/get-strategy",{name:a},!0);return e.value&&e.value.statusCode!==200?(c(e),""):t.value.content},async saveStrategy(a,t){const{data:e,error:s}=await l("/save-strategy",{name:a,content:t},!0);if(s.value&&s.value.statusCode!==200){c(s);return}const n=e.value;v("success",n.message)},async deleteStrategy(a){const{data:t,error:e}=await l("/delete-strategy",{name:a},!0);if(e.value&&e.value.statusCode!==200){c(e);return}const s=t.value;v("success",s.message)}}}),j={class:"flex justify-between items-center border-b dark:border-gray-600"},T=w({__name:"StrategiesSidebar",setup(a){const t=p(()=>y().strategies),e=_(""),s=p(()=>t.value.filter(n=>n.toLowerCase().includes(e.value.toLowerCase())));return S(async()=>{setTimeout(async()=>{await y().getStrategies()},200)}),(n,g)=>{const f=D;return i(),d("div",{class:"grid grid-cols-1 overflow-auto border-r dark:border-gray-600",style:B({height:"calc(100vh - 4rem - 4px)"})},[r("section",null,[r("section",null,[r("div",j,[k(r("input",{"onUpdate:modelValue":g[0]||(g[0]=o=>C(e)?e.value=o:null),class:"w-full px-4 py-2 bg-gray-50 focus:outline-none dark:bg-backdrop-dark",placeholder:"Search strategies..."},null,512),[[x,u(e)]])]),(i(!0),d(V,null,A(u(s),o=>(i(),M(f,{key:o,to:`/strategies/${o}`,class:"px-4 py-2 bg-gray-50 dark:bg-backdrop-dark hover:bg-gray-100 dark:hover:bg-gray-800 cursor-pointer select-none flex items-center"},{default:N(()=>[F(u(E),{class:"w-4 h-4 mr-2"}),r("span",null,L(o),1)]),_:2},1032,["to"]))),128))])])],4)}}});export{T as _,y as u}; +import{o as i,c as d,b as r,bE as h,bF as b,b1 as m,aW as c,aV as l,N as v,h as w,j as p,r as _,l as S,a0 as k,b2 as x,D as u,M as C,F as V,n as A,q as B,v as M,w as N,d as F,t as L,f as D}from"./CBR445J6.js";function E(a,t){return i(),d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[r("path",{d:"M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0 0 16.5 9h-1.875a1.875 1.875 0 0 1-1.875-1.875V5.25A3.75 3.75 0 0 0 9 1.5H5.625Z"}),r("path",{d:"M12.971 1.816A5.23 5.23 0 0 1 14.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 0 1 3.434 1.279 9.768 9.768 0 0 0-6.963-6.963Z"})])}const y=h("strategies",{state:()=>({strategies:[]}),persist:{storage:b.localStorage},actions:{async getStrategies(){const{data:a,error:t}=await m("/get-strategies",!0);if(t.value&&t.value.statusCode!==200){c(t);return}const e=a.value;this.strategies=e.strategies},async getStrategy(a){const{data:t,error:e}=await l("/get-strategy",{name:a},!0);return e.value&&e.value.statusCode!==200?(c(e),""):t.value.content},async saveStrategy(a,t){const{data:e,error:s}=await l("/save-strategy",{name:a,content:t},!0);if(s.value&&s.value.statusCode!==200){c(s);return}const n=e.value;v("success",n.message)},async deleteStrategy(a){const{data:t,error:e}=await l("/delete-strategy",{name:a},!0);if(e.value&&e.value.statusCode!==200){c(e);return}const s=t.value;v("success",s.message)}}}),j={class:"flex justify-between items-center border-b dark:border-gray-600"},T=w({__name:"StrategiesSidebar",setup(a){const t=p(()=>y().strategies),e=_(""),s=p(()=>t.value.filter(n=>n.toLowerCase().includes(e.value.toLowerCase())));return S(async()=>{setTimeout(async()=>{await y().getStrategies()},200)}),(n,g)=>{const f=D;return i(),d("div",{class:"grid grid-cols-1 overflow-auto border-r dark:border-gray-600",style:B({height:"calc(100vh - 4rem - 4px)"})},[r("section",null,[r("section",null,[r("div",j,[k(r("input",{"onUpdate:modelValue":g[0]||(g[0]=o=>C(e)?e.value=o:null),class:"w-full px-4 py-2 bg-gray-50 focus:outline-none dark:bg-backdrop-dark",placeholder:"Search strategies..."},null,512),[[x,u(e)]])]),(i(!0),d(V,null,A(u(s),o=>(i(),M(f,{key:o,to:`/strategies/${o}`,class:"px-4 py-2 bg-gray-50 dark:bg-backdrop-dark hover:bg-gray-100 dark:hover:bg-gray-800 cursor-pointer select-none flex items-center"},{default:N(()=>[F(u(E),{class:"w-4 h-4 mr-2"}),r("span",null,L(o),1)]),_:2},1032,["to"]))),128))])])],4)}}});export{T as _,y as u}; diff --git a/jesse/static/_nuxt/Cbzj_Da7.js b/jesse/static/_nuxt/B_S3uIam.js similarity index 98% rename from jesse/static/_nuxt/Cbzj_Da7.js rename to jesse/static/_nuxt/B_S3uIam.js index 971672558..063d3443b 100644 --- a/jesse/static/_nuxt/Cbzj_Da7.js +++ b/jesse/static/_nuxt/B_S3uIam.js @@ -1,4 +1,4 @@ -import{m as a}from"./CvgYB84I.js";import"./P2RTDEVw.js";/*!----------------------------------------------------------------------------- +import{m as a}from"./Cwjhy8h6.js";import"./CBR445J6.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/jesse/static/_nuxt/Ba7Ndv_M.js b/jesse/static/_nuxt/Ba7Ndv_M.js new file mode 100644 index 000000000..bd1793f9b --- /dev/null +++ b/jesse/static/_nuxt/Ba7Ndv_M.js @@ -0,0 +1 @@ +import{_ as Le}from"./DM1p5uJl.js";import{r as je,_ as Ee,a as Ue,b as ze,c as Oe,d as Me,e as Ie}from"./DoL1vnPK.js";import{h as J,i as ye,j as C,r as j,k as N,l as ue,m as _e,o as l,c as f,b as _,F as A,n as ke,q as Be,t as F,s as De,v as S,w as L,d as r,x as me,y as we,z as Ne,A as Pe,B as Ce,C as D,D as s,E as d,G as ae,H as We,I as xe,J as qe,K as fe,L as Fe,P as q,M as pe,e as ge,N as ne,O as Ae,Q as Je,R as Ge,S as He,T as Qe,U as Ye,V as Xe,W as Ze}from"./CBR445J6.js";import{_ as Ke}from"./DxS_eNCG.js";import{_ as et}from"./DULAma5x.js";import{T as ie,l as he,d as be,s as se,_ as tt}from"./CJIn_AcD.js";import{_ as st}from"./CrZjGMUk.js";import{u as ot}from"./CWZa5uCX.js";import"./ZzUyaYRm.js";import"./DSjIPmPA.js";const ve={width:800,height:400,priceScale:{borderColor:"rgba(197, 203, 206, 1)"},timeScale:{borderColor:"rgba(197, 203, 206, 1)",timeVisible:!0,secondsVisible:!1}},rt={chart:{layout:{background:{color:"#ffffff"},textColor:"rgba(33, 56, 77, 1)"},grid:{vertLines:{color:"#f1f1f1",visible:!0},horzLines:{color:"#f1f1f1",visible:!0}},priceScale:{borderColor:"rgba(197, 203, 206, 0.6)"},timeScale:{borderColor:"rgba(197, 203, 206, 0.6)",timeVisible:!0,secondsVisible:!1}}},lt={chart:{layout:{background:{color:"#333333"},textColor:"#D1D5DB"},grid:{vertLines:{color:"#525252",visible:!0},horzLines:{color:"#525252",visible:!0}},priceScale:{borderColor:"#525252"},timeScale:{borderColor:"#525252",timeVisible:!0,secondsVisible:!1}}},at={class:"mt-2"},nt={class:"ml-2"},it=J({__name:"EquityCurve",props:{data:{}},setup(U){const o=ye(),i=C(()=>o.value),m=j();let u=null,g=[];const a=U;N(a.data,b=>{}),N(i,b=>{y(b)}),ue(async()=>{await h()});async function h(){ve.width=m.value.clientWidth,u=ie(m.value,ve);for(const b of a.data){const k=u.addLineSeries({lineWidth:2});k.setData(b.data),g.push(k)}u.timeScale().fitContent(),y(i.value)}_e(()=>{p()});function p(){u!==null&&(u.remove(),u=null),g&&(g=[])}function y(b){u===null||g===null||u.applyOptions(b==="light"?rt.chart:lt.chart)}return(b,k)=>(l(),f(A,null,[_("div",{ref_key:"chartContainer",ref:m,class:"rounded overflow-hidden border-2 border-gray-100 dark:border-gray-600"},null,512),_("div",at,[(l(!0),f(A,null,ke(b.data,w=>(l(),f("span",{key:w.name,class:"text-xs mr-2 rounded bg-white dark:bg-gray-700 p-1"},[_("span",{class:"inline-block",style:Be({backgroundColor:w.color,width:"25px",height:"10px"})},null,4),_("span",nt,F(w.name),1)]))),128))])],64))}}),ut={class:"flex items-center justify-between"},ct=J({__name:"FullscreenModal",props:{modelValue:{type:Boolean,default:!1},modelModifiers:{}},emits:["update:modelValue"],setup(U){const o=De(U,"modelValue");return(i,m)=>{const u=we,g=Ne,a=Pe;return l(),S(a,{modelValue:o.value,"onUpdate:modelValue":m[1]||(m[1]=h=>o.value=h),fullscreen:""},{default:L(()=>[r(g,{ui:{base:"h-full flex flex-col",rounded:"",divide:"divide-y divide-gray-100 dark:divide-gray-800",body:{base:"grow"}}},{header:L(()=>[_("div",ut,[_("div",null,[me(i.$slots,"title")]),r(u,{color:"gray",variant:"ghost",icon:"i-heroicons-x-mark-20-solid",class:"-my-1",onClick:m[0]||(m[0]=h=>o.value=!1)})])]),default:L(()=>[me(i.$slots,"default")]),_:3})]),_:3},8,["modelValue"])}}}),dt={class:"flex flex-col h-full border dark:border-gray-800"},mt={key:0},ft=J({__name:"BacktestCandlesChart",props:{form:{},results:{}},setup(U){const o=ye(),i=j(2),m=U,u=j(),g=j([]);let a=null,h=null;const p=[],y=[],b=C(()=>Ce().params.id),k=C(()=>D.extraChartLines[b.value].find(v=>v.symbol===m.results.selectedRoute.symbol)),w=C(()=>o.value);N(w,v=>{Y(v)}),N(()=>m.results.selectedRoute.symbol,()=>{Q(),setTimeout(async()=>{await G()},100)}),ue(async()=>{setTimeout(async()=>{await G()},200)});async function G(){var Z,T,K,ee;se.width=u.value.clientWidth,se.height=u.value.clientHeight-Object.keys(k.value.charts).length*150,a=ie(u.value,se),a.applyOptions({rightPriceScale:{borderColor:w.value==="light"?"#d1d4dc":"#4b5563",minimumWidth:80},watermark:{visible:!0,fontSize:16,horzAlign:"left",vertAlign:"bottom",color:"#888",text:`${m.results.selectedRoute.symbol} • ${m.results.selectedRoute.timeframe}`}}),h=a.addCandlestickSeries();const v=D.candles[b.value].find(c=>c.symbol===m.results.selectedRoute.symbol).candles;h.setData(v),h.setMarkers(D.orders[b.value].find(c=>c.symbol===m.results.selectedRoute.symbol).orders);const $=String(v[0].open).indexOf("."),R=$===-1?0:String(v[v.length-1].open).length-$-1;i.value!==R&&(i.value=R,(i.value<0||i.value>100)&&(i.value=0),h.applyOptions({priceFormat:{type:"price",precision:i.value,minMove:Math.pow(10,-i.value).toFixed(i.value)}}));const B=(T=(Z=D.lines[b.value])==null?void 0:Z.find(c=>c.symbol===m.results.selectedRoute.symbol))==null?void 0:T.lines;if(B)for(const c of Object.keys(B)){const e=B[c];a.addLineSeries({lineWidth:1,title:c}).setData(e.data)}const P=(ee=(K=D.horizontalLines[b.value])==null?void 0:K.find(c=>c.symbol===m.results.selectedRoute.symbol))==null?void 0:ee.lines;if(P)for(const c of Object.keys(P)){const t=P[c];h.createPriceLine(t)}a.timeScale().fitContent();const X=new Set;Object.keys(k.value.charts).forEach((c,e)=>{const t={...se};t.width=g.value[e].clientWidth,t.height=150;const V=ie(g.value[e],t);p.push(V),Object.keys(k.value.charts[c]).forEach(z=>{var te,W;const O=V.addLineSeries({lineWidth:1,title:z}),x=(W=(te=D.horizontalExtraLines[b.value])==null?void 0:te.find(E=>E.symbol===m.results.selectedRoute.symbol))==null?void 0:W.lines[c];if(x&&!X.has(c)){for(const E of Object.keys(x)){const re=x[E];O.createPriceLine(re)}X.add(c)}O.setData(k.value.charts[c][z].data),y.push(O)}),V.applyOptions({rightPriceScale:{borderColor:w.value==="light"?"#d1d4dc":"#4b5563",minimumWidth:80},watermark:{visible:!0,fontSize:16,horzAlign:"left",vertAlign:"bottom",color:"#888",text:c}}),V.timeScale().subscribeVisibleLogicalRangeChange(z=>{a.timeScale().setVisibleLogicalRange(z)}),e!==Object.keys(k.value.charts).length-1&&V.timeScale().applyOptions({visible:!1})}),a.subscribeCrosshairMove(c=>{const e=H(h,c);Object.keys(k.value.charts).forEach((t,V)=>{M(p[V],y[V],e)})}),Object.keys(k.value.charts).forEach((c,e)=>{p[e].subscribeCrosshairMove(t=>{const V=H(y[e],t);M(a,h,V),p.forEach((z,O)=>{O!==e&&M(z,y[O],V)})})}),a.timeScale().subscribeVisibleLogicalRangeChange(c=>{p.forEach(e=>{e.timeScale().setVisibleLogicalRange(c)})}),Y(w.value),p.length>0&&a.timeScale().applyOptions({visible:!1})}_e(()=>{Q()});function H(v,$){return $.time&&$.seriesData.get(v)||null}function M(v,$,R){if(R){v.setCrosshairPosition(R.value,R.time,$);return}v.clearCrosshairPosition()}function Q(){a!==null&&(a.remove(),a=null),h!==null&&(h=null),p.length>0&&(p.forEach(v=>{v.remove()}),p.length=0),y.length>0&&(y.length=0)}function Y(v){a!==null&&(a.applyOptions(v==="light"?he.chart:be.chart),p.forEach($=>{$.applyOptions(v==="light"?he.chart:be.chart)}))}return(v,$)=>(l(),f("div",dt,[_("div",{ref_key:"chartContainer",ref:u,class:"rounded overflow-hidden flex-grow"},null,512),s(k)&&Object.keys(s(k).charts).length?(l(),f("div",mt,[(l(!0),f(A,null,ke(Object.keys(s(k).charts),R=>(l(),f("div",{key:R,ref_for:!0,ref_key:"extraChartsRef",ref:g,class:"relative border-t-[1.5px] dark:border-gray-800"}))),128))])):d("",!0)]))}}),pt=["value"],gt={key:1,class:"flex flex-col items-center justify-center select-none mt-[10%]"},ht=["textContent"],bt={class:"mt-8"},vt={class:"mt-8"},yt={class:"mt-4"},_t=["href"],kt={key:1,class:"mx-auto container mt-8"},wt={key:0},Ct=_("h3",{class:"text-lg font-semibold"},"Missing Required Warmup Candles",-1),xt={class:"mb-4 mt-4"},Vt=_("strong",{class:"font-bold"},"warmup candles",-1),St={class:"flex items-center select-none flex-1 my-4"},$t={class:"grid grid-cols-1 gap-6 mt-8"},Rt={key:1,class:"w-full mx-auto"},Tt={key:4,class:"text-yellow-500 border-yellow-400 bg-yellow-50 dark:bg-gray-700 dark:text-yellow-400 mt-16 text-center text-2xl rounded border-2 border-dashed dark:border-gray-800 py-16 select-none"},Lt={key:0},jt={key:0},Et=["href"],Ut=["href"],zt=["href"],Ot=["href"],Mt={key:5,class:"my-4"},It={key:1},Bt=J({__name:"BacktestTab",props:{form:{},results:{}},setup(U){const o=U,i=j([]),m=j(!1),u=j(!1),g=ae().authToken,a=j(We().public.apiBaseUrl),h=j(!1),p=C(()=>Ce().params.id),y=xe(),b=ae(),k=qe(),w=j([]),G=C(()=>b.jesseSupportedTimeframes.map(e=>({label:e,value:e}))),H=C(()=>o.form.routes.map(e=>({label:`${e.strategy} • ${e.symbol}`,value:e})));o.results.selectedRoute=o.form.routes[0],ue(async()=>{await b.initiate(),!o.form.exchange&&b.backtestingExchangeNames.length&&(o.form.exchange=b.backtestingExchangeNames[0]),(!o.results.showResults&&o.form.exchange||!w.value.length)&&await M()});async function M(){if(o.form.exchange)try{w.value.length||(w.value=await b.getExchangeSupportedSymbols(o.form.exchange));for(let e=0;e0)for(let e=0;eo.form.exchange,async(e,t)=>{e!==t&&(w.value=[],await M())});const{cancel:Q,rerun:Y,newBacktest:v}=y;function $(e){if(i.value.length){for(let t=0;t{if(i.value.length){for(let t=0;t{let e=`/download/backtest/log/${o.results.generalInfo.session_id}?token=${g}`;return a.value!=="/"&&(e=a.value+e),e}),P=C(()=>{let e=`/download/backtest/tradingview/${o.results.generalInfo.session_id}?token=${g}`;return a.value!=="/"&&(e=a.value+e),e});C(()=>{let e=`/download/backtest/full-reports/${o.results.generalInfo.session_id}?token=${g}`;return a.value!=="/"&&(e=a.value+e),e});const X=C(()=>{let e=`/download/backtest/csv/${o.results.generalInfo.session_id}?token=${g}`;return a.value!=="/"&&(e=a.value+e),e}),Z=C(()=>{let e=`/download/backtest/json/${o.results.generalInfo.session_id}?token=${g}`;return a.value!=="/"&&(e=a.value+e),e}),T=C(()=>y.formattedMetrics(p.value).length>0),K=C(()=>fe.remainingTimeText(o.results.progressbar.estimated_remaining_seconds));function ee(){navigator.clipboard.writeText(o.results.infoLogs),ne("success","Logs copied successfully"),u.value=!0,setTimeout(()=>{u.value=!1},3e3)}N(()=>o.form.start_date,e=>{o.form.finish_date{const V=Ee,z=Je,O=Ue,x=we,te=ze,W=Ke,E=Ge,oe=et,re=Oe,ce=He,I=Qe,Ve=it,de=Ye,Se=ct,le=st,$e=tt,Re=Me,Te=Ie;return l(),f(A,null,[e.form.debug_mode?(l(),S(z,{key:0,modelValue:e.results.logsModal,"onUpdate:modelValue":t[0]||(t[0]=n=>e.results.logsModal=n),title:"Logs"},{default:L(()=>[r(V,{logs:e.results.infoLogs},null,8,["logs"])]),buttons:L(()=>[_("button",{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:ee},[s(u)?(l(),S(s(Fe),{key:0,class:"h-6 w-6","aria-hidden":"true"})):d("",!0),!s(u)&&e.results.infoLogs.length!=0?(l(),S(s(je),{key:1,class:"h-6 w-6","aria-hidden":"true"})):d("",!0)]),_("input",{id:"copy-info-logs",type:"hidden",value:e.results.infoLogs},null,8,pt)]),_:1},8,["modelValue"])):d("",!0),e.results.executing&&!e.results.showResults?(l(),f("div",gt,[_("div",null,[r(O,{progress:e.results.progressbar.current},null,8,["progress"])]),e.results.exception.error?d("",!0):(l(),f("h3",{key:0,class:"mt-8 animate-pulse",textContent:F(s(K))},null,8,ht)),_("div",bt,[_("div",vt,[r(x,{color:"gray",ui:{color:{gray:{solid:"text-rose-500 dark:text-rose-400"}}},class:"w-64 flex justify-center",icon:"i-heroicons-no-symbol",size:"xl",variant:"solid",label:"Cancel",trailing:!1,onClick:t[1]||(t[1]=n=>s(Q)((e._.provides[q]||e.$route).params.id))})]),_("div",yt,[e.form.debug_mode&&e.results.exception.error&&e.results.progressbar.current!==0?(l(),f("a",{key:0,href:s(B),class:"flex justify-center items-center btn-secondary text-center mb-4 w-full"},[r(x,{icon:"i-heroicons-document-arrow-down",label:"Debugging Logs",color:"gray",size:"xl",variant:"solid",trailing:!1,class:"w-64 flex justify-center"})],8,_t)):d("",!0)])]),e.results.exception.error&&e.results.executing?(l(),f("div",kt,[r(te,{modelValue:s(m),"onUpdate:modelValue":t[2]||(t[2]=n=>pe(m)?m.value=n:null),title:e.results.exception.error,content:e.results.exception.traceback,mode:"backtest","debug-mode":e.form.debug_mode},null,8,["modelValue","title","content","debug-mode"])])):d("",!0)])):d("",!0),r(Te,null,{left:L(()=>[!e.results.executing&&!e.results.showResults?(l(),f("div",wt,[s(y).missingCandlesErrors[s(p)]?(l(),S(W,{key:0,icon:"i-heroicons-exclamation-triangle",color:"rose",variant:"soft",class:"mb-4"},{title:L(()=>[Ct]),description:L(()=>[_("p",xt,[ge(" Your strategy requires "),Vt,ge(' for "'+F(s(y).missingCandlesErrors[s(p)].symbol)+'" on "'+F(s(y).missingCandlesErrors[s(p)].exchange)+'" starting from "'+F(s(y).missingCandlesErrors[s(p)].start_date)+'". These candles are needed for proper strategy initialization. ',1)]),r(x,{label:"Import Required Candles",icon:"i-heroicons-arrow-down-tray",onClick:c})]),_:1})):d("",!0),r(E,{class:"mb-4",title:"Exchange"}),r(oe,{modelValue:e.form.exchange,"onUpdate:modelValue":t[3]||(t[3]=n=>e.form.exchange=n),placeholder:"Select an exchange...",searchable:"",options:s(ae)().backtestingExchangeNames,size:"lg",class:"mt-2 mb-16",onChange:M},null,8,["modelValue","options"]),r(re,{"total-routes-error":s(i),timeframes:s(G),form:e.form,results:e.results,symbols:s(w),mode:"backtest"},null,8,["total-routes-error","timeframes","form","results","symbols"]),r(E,{class:"mt-16",title:"Duration"}),_("div",St,[r(ce,{modelValue:e.form.start_date,"onUpdate:modelValue":t[4]||(t[4]=n=>e.form.start_date=n),type:"date",variant:"outline",size:"lg",class:"w-full mr-2"},null,8,["modelValue"]),r(ce,{modelValue:e.form.finish_date,"onUpdate:modelValue":t[5]||(t[5]=n=>e.form.finish_date=n),type:"date",variant:"outline",size:"lg",class:"w-full ml-2"},null,8,["modelValue"])]),r(E,{class:"mt-16",title:"Options"}),_("div",$t,[r(I,{modelValue:e.form.debug_mode,"onUpdate:modelValue":t[6]||(t[6]=n=>e.form.debug_mode=n),title:"Debug Mode",description:"Logs every step of the execution. Very helpful for debugging your strategy but takes a lot longer to execute"},null,8,["modelValue"]),r(I,{modelValue:e.form.export_chart,"onUpdate:modelValue":t[7]||(t[7]=n=>e.form.export_chart=n),title:"Generate Interactive Charts",description:"Generate interactive charts for backtest results with details."},null,8,["modelValue"]),r(I,{modelValue:e.form.export_tradingview,"onUpdate:modelValue":t[8]||(t[8]=n=>e.form.export_tradingview=n),title:"Export Tradingview",description:"Exports the executed trades in a format accepted by TradingView's Pine Editor. Useful to look at the executed orders on their chart."},null,8,["modelValue"]),r(I,{modelValue:e.form.export_csv,"onUpdate:modelValue":t[9]||(t[9]=n=>e.form.export_csv=n),title:"Export CSV",description:"Exports executed trades in a CSV format"},null,8,["modelValue"]),r(I,{modelValue:e.form.export_json,"onUpdate:modelValue":t[10]||(t[10]=n=>e.form.export_json=n),title:"Export JSON",description:"Exports executed trades in a JSON format"},null,8,["modelValue"]),r(I,{modelValue:e.form.fast_mode,"onUpdate:modelValue":t[11]||(t[11]=n=>e.form.fast_mode=n),title:"Fast Mode",description:"Runs the backtest faster by using an improved algorithm. This is supposed to yield the same results; however, it's currently experimental, which is why it's an option."},null,8,["modelValue"]),r(I,{modelValue:e.form.benchmark,"onUpdate:modelValue":t[12]||(t[12]=n=>e.form.benchmark=n),title:"Benchmark",description:"If enabled, the backtest will compare the performance of the strategy against the buy and hold strategy of the market."},null,8,["modelValue"])])])):d("",!0),e.results.showResults?(l(),f("div",Rt,[_("div",null,[s(T)?(l(),S(E,{key:0,class:"mb-4",title:"Equity Curve"})):d("",!0),s(T)?(l(),S(Ve,{key:1,data:e.results.charts.equity_curve},null,8,["data"])):d("",!0),s(T)?(l(),S(E,{key:2,class:"mt-16 mb-4",title:"Performance"})):d("",!0),s(T)?(l(),S(de,{key:3,data:s(y).formattedMetrics(s(p))},null,8,["data"])):d("",!0),s(T)?d("",!0):(l(),f("div",Tt," No trades were executed via this strategy! "))]),r(Se,{modelValue:s(h),"onUpdate:modelValue":t[14]||(t[14]=n=>pe(h)?h.value=n:null)},{title:L(()=>[r(oe,{modelValue:e.results.selectedRoute,"onUpdate:modelValue":t[13]||(t[13]=n=>e.results.selectedRoute=n),"value-attribute":"value",options:s(H)},null,8,["modelValue","options"])]),default:L(()=>[r(ft,{results:e.results,form:e.form},null,8,["results","form"])]),_:1},8,["modelValue"])])):d("",!0)]),right:L(()=>[e.results.executing?d("",!0):(l(),f("div",Lt,[e.results.showResults?(l(),f("div",jt,[r(x,{class:"w-full flex justify-center",icon:"i-heroicons-arrow-path",size:"xl",variant:"solid",label:"Rerun",trailing:!1,onClick:t[15]||(t[15]=n=>s(Y)((e._.provides[q]||e.$route).params.id))}),r(x,{class:"w-full flex justify-center mt-4",color:"green",icon:"i-heroicons-arrow-uturn-left",size:"xl",variant:"solid",label:"New session",trailing:!1,onClick:t[16]||(t[16]=n=>s(v)((e._.provides[q]||e.$route).params.id))}),e.form.debug_mode?(l(),f("a",{key:0,href:s(B),target:"_blank",class:""},[r(x,{class:"w-full flex justify-center mt-4",color:"gray",icon:"i-heroicons-document-arrow-down",size:"xl",variant:"solid",label:"Debugging Logs",trailing:!1})],8,Et)):d("",!0),e.form.export_chart?(l(),S(x,{key:1,class:"mt-4 flex justify-center items-center btn-secondary text-center",color:"gray",icon:"i-heroicons-chart-bar",size:"xl",block:"",variant:"solid",label:"View charts",trailing:!1,onClick:t[17]||(t[17]=n=>h.value=!0)})):d("",!0),e.form.export_csv&&s(T)?(l(),f("a",{key:2,href:s(X),target:"_blank",class:"flex justify-center items-center btn-secondary text-center w-full"},[r(x,{class:"w-full flex justify-center mt-4",color:"gray",icon:"i-heroicons-document-arrow-down",size:"xl",variant:"solid",label:"CSV",trailing:!1})],8,Ut)):d("",!0),e.form.export_json&&s(T)?(l(),f("a",{key:3,href:s(Z),target:"_blank",class:"flex justify-center items-center btn-secondary text-center w-full"},[r(x,{class:"w-full flex justify-center mt-4",color:"gray",icon:"i-heroicons-document-arrow-down",size:"xl",variant:"solid",label:"JSON",trailing:!1})],8,zt)):d("",!0),e.form.export_tradingview&&s(T)?(l(),f("a",{key:4,href:s(P),target:"_blank",class:"flex justify-center items-center btn-secondary text-center mb-4 w-full"},[r(x,{class:"w-full flex justify-center mt-4",color:"gray",icon:"i-heroicons-document-arrow-down",size:"xl",variant:"solid",label:"TradingView Pine Editor",trailing:!1})],8,Ot)):d("",!0),e.results.showResults&&e.results.alert&&e.results.alert.message?(l(),f("div",Mt,[r(W,{color:"teal",icon:"i-heroicons-check-circle",variant:"soft",title:e.results.alert.message,"close-button":{icon:"i-heroicons-x-mark-20-solid",color:"white",variant:"link"},onClose:t[18]||(t[18]=n=>e.results.alert.message="")},null,8,["title"])])):d("",!0),r(le,{class:"mt-8 mb-4",size:"lg",label:"General Info"}),r($e,{data:e.results.info},null,8,["data"]),r(le,{class:"mt-8 mb-4",size:"lg",label:"Routes"}),r(Re,{data:e.results.routes_info,"header-items":["Symbol","Timeframe","Strategy"],header:""},null,8,["data"]),e.results.hyperparameters.length?(l(),S(le,{key:6,class:"mt-8 mb-4",size:"lg",label:"Hyperparameters"})):d("",!0),e.results.hyperparameters.length?(l(),S(de,{key:7,data:e.results.hyperparameters},null,8,["data"])):d("",!0)])):(l(),f("div",It,[r(x,{class:"w-full flex justify-center",icon:"i-heroicons-bolt",size:"xl",variant:"solid",label:"Start",trailing:!1,onClick:t[19]||(t[19]=n=>$((e._.provides[q]||e.$route).params.id))}),r(x,{class:"w-full flex justify-center mt-4",color:"gray",icon:"i-heroicons-plus",size:"xl",variant:"solid",label:"Start in a new tab",trailing:!1,onClick:t[20]||(t[20]=n=>R((e._.provides[q]||e.$route).params.id))})]))]))]),_:1})],64)}}}),Dt={class:"w-full"},Yt=J({__name:"[id]",setup(U){ot({title:"Backtest - Jesse"});const o=xe(),i=C(()=>o.tabs),m=C(()=>Xe().params.id),u=C(()=>{if(!i.value[m.value]){const g=Object.keys(i.value);if(g.length>0){const a=i.value[g[0]];return Ze().push(`/backtest/${a.id}`),a}}return i.value[m.value]});return Object.keys(i.value).length===0&&o.addTab(),(g,a)=>{const h=Le,p=Bt;return l(),f(A,null,[_("div",Dt,[r(h,{"current-tab":u.value?u.value.id:null,tabs:i.value,mode:"backtest",onClose:s(o).closeTab,onCancel:s(o).cancel},null,8,["current-tab","tabs","onClose","onCancel"])]),u.value?(l(),S(p,{key:0,form:u.value.form,results:u.value.results},null,8,["form","results"])):d("",!0)],64)}}});export{Yt as default}; diff --git a/jesse/static/_nuxt/D0YuABT5.js b/jesse/static/_nuxt/BgbW9Aq5.js similarity index 98% rename from jesse/static/_nuxt/D0YuABT5.js rename to jesse/static/_nuxt/BgbW9Aq5.js index db01d2c56..bdf97f321 100644 --- a/jesse/static/_nuxt/D0YuABT5.js +++ b/jesse/static/_nuxt/BgbW9Aq5.js @@ -1,4 +1,4 @@ -import{m as d}from"./CvgYB84I.js";import"./P2RTDEVw.js";/*!----------------------------------------------------------------------------- +import{m as d}from"./Cwjhy8h6.js";import"./CBR445J6.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/jesse/static/_nuxt/Cxl9PnUV.js b/jesse/static/_nuxt/BrmDuOBZ.js similarity index 97% rename from jesse/static/_nuxt/Cxl9PnUV.js rename to jesse/static/_nuxt/BrmDuOBZ.js index be9d87b9a..ecf171fcc 100644 --- a/jesse/static/_nuxt/Cxl9PnUV.js +++ b/jesse/static/_nuxt/BrmDuOBZ.js @@ -1 +1 @@ -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"./P2RTDEVw.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}; +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"./CBR445J6.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/azkbtMd1.js b/jesse/static/_nuxt/BzGTq0di.js similarity index 77% rename from jesse/static/_nuxt/azkbtMd1.js rename to jesse/static/_nuxt/BzGTq0di.js index 2642416fa..1027b354f 100644 --- a/jesse/static/_nuxt/azkbtMd1.js +++ b/jesse/static/_nuxt/BzGTq0di.js @@ -1 +1 @@ -import{h as c,W as n,I as r,o as i,c as p}from"./P2RTDEVw.js";const _=c({__name:"index",setup(u){const o=n(),t=r(),e=Object.keys(t.tabs);if(e.length>0){const s=e[0],a=t.tabs[s];o.push({path:`/backtest/${a.id}`})}else t.addTab();return(s,a)=>(i(),p("div"))}});export{_ as default}; +import{h as c,W as n,I as r,o as i,c as p}from"./CBR445J6.js";const _=c({__name:"index",setup(u){const o=n(),t=r(),e=Object.keys(t.tabs);if(e.length>0){const s=e[0],a=t.tabs[s];o.push({path:`/backtest/${a.id}`})}else t.addTab();return(s,a)=>(i(),p("div"))}});export{_ as default}; diff --git a/jesse/static/_nuxt/Bz_haz1e.js b/jesse/static/_nuxt/Bz_haz1e.js deleted file mode 100644 index 2c2ac2031..000000000 --- a/jesse/static/_nuxt/Bz_haz1e.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as Le}from"./CPeVVL-L.js";import{r as je,_ as Ee,a as Ue,b as ze,c as Oe,d as Me,e as Ie}from"./Bm-y-GSe.js";import{h as J,i as ve,j as C,r as j,k as N,l as ue,m as _e,o as l,c as f,b as _,F as A,n as ke,q as Be,t as F,s as De,v as S,w as L,d as r,x as me,y as we,z as Ne,A as Pe,B as Ce,C as D,D as s,E as d,G as ae,H as We,I as xe,J as qe,K as fe,L as Fe,P as q,M as pe,e as ge,N as ne,O as Ae,Q as Je,R as Ge,S as He,T as Qe,U as Ye,V as Xe,W as Ze}from"./P2RTDEVw.js";import{_ as Ke}from"./CgnKy_Hz.js";import{_ as et}from"./FNX9_brP.js";import{T as ie,l as he,d as be,s as se,_ as tt}from"./CA432Fil.js";import{_ as st}from"./DYc5z1_J.js";import{u as ot}from"./C6Z10G10.js";import"./D14gKO9u.js";import"./Dp8W6R0p.js";const ye={width:800,height:400,priceScale:{borderColor:"rgba(197, 203, 206, 1)"},timeScale:{borderColor:"rgba(197, 203, 206, 1)",timeVisible:!0,secondsVisible:!1}},rt={chart:{layout:{background:{color:"#ffffff"},textColor:"rgba(33, 56, 77, 1)"},grid:{vertLines:{color:"#f1f1f1",visible:!0},horzLines:{color:"#f1f1f1",visible:!0}},priceScale:{borderColor:"rgba(197, 203, 206, 0.6)"},timeScale:{borderColor:"rgba(197, 203, 206, 0.6)",timeVisible:!0,secondsVisible:!1}}},lt={chart:{layout:{background:{color:"#333333"},textColor:"#D1D5DB"},grid:{vertLines:{color:"#525252",visible:!0},horzLines:{color:"#525252",visible:!0}},priceScale:{borderColor:"#525252"},timeScale:{borderColor:"#525252",timeVisible:!0,secondsVisible:!1}}},at={class:"mt-2"},nt={class:"ml-2"},it=J({__name:"EquityCurve",props:{data:{}},setup(U){const o=ve(),i=C(()=>o.value),m=j();let u=null,g=[];const a=U;N(a.data,b=>{}),N(i,b=>{v(b)}),ue(async()=>{await h()});async function h(){ye.width=m.value.clientWidth,u=ie(m.value,ye);for(const b of a.data){const k=u.addLineSeries({lineWidth:2});k.setData(b.data),g.push(k)}u.timeScale().fitContent(),v(i.value)}_e(()=>{p()});function p(){u!==null&&(u.remove(),u=null),g&&(g=[])}function v(b){u===null||g===null||u.applyOptions(b==="light"?rt.chart:lt.chart)}return(b,k)=>(l(),f(A,null,[_("div",{ref_key:"chartContainer",ref:m,class:"rounded overflow-hidden border-2 border-gray-100 dark:border-gray-600"},null,512),_("div",at,[(l(!0),f(A,null,ke(b.data,w=>(l(),f("span",{key:w.name,class:"text-xs mr-2 rounded bg-white dark:bg-gray-700 p-1"},[_("span",{class:"inline-block",style:Be({backgroundColor:w.color,width:"25px",height:"10px"})},null,4),_("span",nt,F(w.name),1)]))),128))])],64))}}),ut={class:"flex items-center justify-between"},ct=J({__name:"FullscreenModal",props:{modelValue:{type:Boolean,default:!1},modelModifiers:{}},emits:["update:modelValue"],setup(U){const o=De(U,"modelValue");return(i,m)=>{const u=we,g=Ne,a=Pe;return l(),S(a,{modelValue:o.value,"onUpdate:modelValue":m[1]||(m[1]=h=>o.value=h),fullscreen:""},{default:L(()=>[r(g,{ui:{base:"h-full flex flex-col",rounded:"",divide:"divide-y divide-gray-100 dark:divide-gray-800",body:{base:"grow"}}},{header:L(()=>[_("div",ut,[_("div",null,[me(i.$slots,"title")]),r(u,{color:"gray",variant:"ghost",icon:"i-heroicons-x-mark-20-solid",class:"-my-1",onClick:m[0]||(m[0]=h=>o.value=!1)})])]),default:L(()=>[me(i.$slots,"default")]),_:3})]),_:3},8,["modelValue"])}}}),dt={class:"flex flex-col h-full border dark:border-gray-800"},mt={key:0},ft=J({__name:"BacktestCandlesChart",props:{form:{},results:{}},setup(U){const o=ve(),i=j(2),m=U,u=j(),g=j([]);let a=null,h=null;const p=[],v=[],b=C(()=>Ce().params.id),k=C(()=>D.extraChartLines[b.value].find(y=>y.symbol===m.results.selectedRoute.symbol)),w=C(()=>o.value);N(w,y=>{Y(y)}),N(()=>m.results.selectedRoute.symbol,()=>{Q(),setTimeout(async()=>{await G()},100)}),ue(async()=>{setTimeout(async()=>{await G()},200)});async function G(){var Z,T,K,ee;se.width=u.value.clientWidth,se.height=u.value.clientHeight-Object.keys(k.value.charts).length*150,a=ie(u.value,se),a.applyOptions({rightPriceScale:{borderColor:w.value==="light"?"#d1d4dc":"#4b5563",minimumWidth:80},watermark:{visible:!0,fontSize:16,horzAlign:"left",vertAlign:"bottom",color:"#888",text:`${m.results.selectedRoute.symbol} • ${m.results.selectedRoute.timeframe}`}}),h=a.addCandlestickSeries();const y=D.candles[b.value].find(c=>c.symbol===m.results.selectedRoute.symbol).candles;h.setData(y),h.setMarkers(D.orders[b.value].find(c=>c.symbol===m.results.selectedRoute.symbol).orders);const $=String(y[0].open).indexOf("."),R=$===-1?0:String(y[y.length-1].open).length-$-1;i.value!==R&&(i.value=R,h.applyOptions({priceFormat:{type:"price",precision:i.value,minMove:Math.pow(10,-i.value).toFixed(i.value)}}));const B=(T=(Z=D.lines[b.value])==null?void 0:Z.find(c=>c.symbol===m.results.selectedRoute.symbol))==null?void 0:T.lines;if(B)for(const c of Object.keys(B)){const e=B[c];a.addLineSeries({lineWidth:1,title:c}).setData(e.data)}const P=(ee=(K=D.horizontalLines[b.value])==null?void 0:K.find(c=>c.symbol===m.results.selectedRoute.symbol))==null?void 0:ee.lines;if(P)for(const c of Object.keys(P)){const t=P[c];h.createPriceLine(t)}a.timeScale().fitContent();const X=new Set;Object.keys(k.value.charts).forEach((c,e)=>{const t={...se};t.width=g.value[e].clientWidth,t.height=150;const V=ie(g.value[e],t);p.push(V),Object.keys(k.value.charts[c]).forEach(z=>{var te,W;const O=V.addLineSeries({lineWidth:1,title:z}),x=(W=(te=D.horizontalExtraLines[b.value])==null?void 0:te.find(E=>E.symbol===m.results.selectedRoute.symbol))==null?void 0:W.lines[c];if(x&&!X.has(c)){for(const E of Object.keys(x)){const re=x[E];O.createPriceLine(re)}X.add(c)}O.setData(k.value.charts[c][z].data),v.push(O)}),V.applyOptions({rightPriceScale:{borderColor:w.value==="light"?"#d1d4dc":"#4b5563",minimumWidth:80},watermark:{visible:!0,fontSize:16,horzAlign:"left",vertAlign:"bottom",color:"#888",text:c}}),V.timeScale().subscribeVisibleLogicalRangeChange(z=>{a.timeScale().setVisibleLogicalRange(z)}),e!==Object.keys(k.value.charts).length-1&&V.timeScale().applyOptions({visible:!1})}),a.subscribeCrosshairMove(c=>{const e=H(h,c);Object.keys(k.value.charts).forEach((t,V)=>{M(p[V],v[V],e)})}),Object.keys(k.value.charts).forEach((c,e)=>{p[e].subscribeCrosshairMove(t=>{const V=H(v[e],t);M(a,h,V),p.forEach((z,O)=>{O!==e&&M(z,v[O],V)})})}),a.timeScale().subscribeVisibleLogicalRangeChange(c=>{p.forEach(e=>{e.timeScale().setVisibleLogicalRange(c)})}),Y(w.value),p.length>0&&a.timeScale().applyOptions({visible:!1})}_e(()=>{Q()});function H(y,$){return $.time&&$.seriesData.get(y)||null}function M(y,$,R){if(R){y.setCrosshairPosition(R.value,R.time,$);return}y.clearCrosshairPosition()}function Q(){a!==null&&(a.remove(),a=null),h!==null&&(h=null),p.length>0&&(p.forEach(y=>{y.remove()}),p.length=0),v.length>0&&(v.length=0)}function Y(y){a!==null&&(a.applyOptions(y==="light"?he.chart:be.chart),p.forEach($=>{$.applyOptions(y==="light"?he.chart:be.chart)}))}return(y,$)=>(l(),f("div",dt,[_("div",{ref_key:"chartContainer",ref:u,class:"rounded overflow-hidden flex-grow"},null,512),s(k)&&Object.keys(s(k).charts).length?(l(),f("div",mt,[(l(!0),f(A,null,ke(Object.keys(s(k).charts),R=>(l(),f("div",{key:R,ref_for:!0,ref_key:"extraChartsRef",ref:g,class:"relative border-t-[1.5px] dark:border-gray-800"}))),128))])):d("",!0)]))}}),pt=["value"],gt={key:1,class:"flex flex-col items-center justify-center select-none mt-[10%]"},ht=["textContent"],bt={class:"mt-8"},yt={class:"mt-8"},vt={class:"mt-4"},_t=["href"],kt={key:1,class:"mx-auto container mt-8"},wt={key:0},Ct=_("h3",{class:"text-lg font-semibold"},"Missing Required Warmup Candles",-1),xt={class:"mb-4 mt-4"},Vt=_("strong",{class:"font-bold"},"warmup candles",-1),St={class:"flex items-center select-none flex-1 my-4"},$t={class:"grid grid-cols-1 gap-6 mt-8"},Rt={key:1,class:"w-full mx-auto"},Tt={key:4,class:"text-yellow-500 border-yellow-400 bg-yellow-50 dark:bg-gray-700 dark:text-yellow-400 mt-16 text-center text-2xl rounded border-2 border-dashed dark:border-gray-800 py-16 select-none"},Lt={key:0},jt={key:0},Et=["href"],Ut=["href"],zt=["href"],Ot=["href"],Mt={key:5,class:"my-4"},It={key:1},Bt=J({__name:"BacktestTab",props:{form:{},results:{}},setup(U){const o=U,i=j([]),m=j(!1),u=j(!1),g=ae().authToken,a=j(We().public.apiBaseUrl),h=j(!1),p=C(()=>Ce().params.id),v=xe(),b=ae(),k=qe(),w=j([]),G=C(()=>b.jesseSupportedTimeframes.map(e=>({label:e,value:e}))),H=C(()=>o.form.routes.map(e=>({label:`${e.strategy} • ${e.symbol}`,value:e})));o.results.selectedRoute=o.form.routes[0],ue(async()=>{await b.initiate(),!o.form.exchange&&b.backtestingExchangeNames.length&&(o.form.exchange=b.backtestingExchangeNames[0]),(!o.results.showResults&&o.form.exchange||!w.value.length)&&await M()});async function M(){if(o.form.exchange)try{w.value.length||(w.value=await b.getExchangeSupportedSymbols(o.form.exchange));for(let e=0;e0)for(let e=0;eo.form.exchange,async(e,t)=>{e!==t&&(w.value=[],await M())});const{cancel:Q,rerun:Y,newBacktest:y}=v;function $(e){if(i.value.length){for(let t=0;t{if(i.value.length){for(let t=0;t{let e=`/download/backtest/log/${o.results.generalInfo.session_id}?token=${g}`;return a.value!=="/"&&(e=a.value+e),e}),P=C(()=>{let e=`/download/backtest/tradingview/${o.results.generalInfo.session_id}?token=${g}`;return a.value!=="/"&&(e=a.value+e),e});C(()=>{let e=`/download/backtest/full-reports/${o.results.generalInfo.session_id}?token=${g}`;return a.value!=="/"&&(e=a.value+e),e});const X=C(()=>{let e=`/download/backtest/csv/${o.results.generalInfo.session_id}?token=${g}`;return a.value!=="/"&&(e=a.value+e),e}),Z=C(()=>{let e=`/download/backtest/json/${o.results.generalInfo.session_id}?token=${g}`;return a.value!=="/"&&(e=a.value+e),e}),T=C(()=>v.formattedMetrics(p.value).length>0),K=C(()=>fe.remainingTimeText(o.results.progressbar.estimated_remaining_seconds));function ee(){navigator.clipboard.writeText(o.results.infoLogs),ne("success","Logs copied successfully"),u.value=!0,setTimeout(()=>{u.value=!1},3e3)}N(()=>o.form.start_date,e=>{o.form.finish_date{const V=Ee,z=Je,O=Ue,x=we,te=ze,W=Ke,E=Ge,oe=et,re=Oe,ce=He,I=Qe,Ve=it,de=Ye,Se=ct,le=st,$e=tt,Re=Me,Te=Ie;return l(),f(A,null,[e.form.debug_mode?(l(),S(z,{key:0,modelValue:e.results.logsModal,"onUpdate:modelValue":t[0]||(t[0]=n=>e.results.logsModal=n),title:"Logs"},{default:L(()=>[r(V,{logs:e.results.infoLogs},null,8,["logs"])]),buttons:L(()=>[_("button",{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:ee},[s(u)?(l(),S(s(Fe),{key:0,class:"h-6 w-6","aria-hidden":"true"})):d("",!0),!s(u)&&e.results.infoLogs.length!=0?(l(),S(s(je),{key:1,class:"h-6 w-6","aria-hidden":"true"})):d("",!0)]),_("input",{id:"copy-info-logs",type:"hidden",value:e.results.infoLogs},null,8,pt)]),_:1},8,["modelValue"])):d("",!0),e.results.executing&&!e.results.showResults?(l(),f("div",gt,[_("div",null,[r(O,{progress:e.results.progressbar.current},null,8,["progress"])]),e.results.exception.error?d("",!0):(l(),f("h3",{key:0,class:"mt-8 animate-pulse",textContent:F(s(K))},null,8,ht)),_("div",bt,[_("div",yt,[r(x,{color:"gray",ui:{color:{gray:{solid:"text-rose-500 dark:text-rose-400"}}},class:"w-64 flex justify-center",icon:"i-heroicons-no-symbol",size:"xl",variant:"solid",label:"Cancel",trailing:!1,onClick:t[1]||(t[1]=n=>s(Q)((e._.provides[q]||e.$route).params.id))})]),_("div",vt,[e.form.debug_mode&&e.results.exception.error&&e.results.progressbar.current!==0?(l(),f("a",{key:0,href:s(B),class:"flex justify-center items-center btn-secondary text-center mb-4 w-full"},[r(x,{icon:"i-heroicons-document-arrow-down",label:"Debugging Logs",color:"gray",size:"xl",variant:"solid",trailing:!1,class:"w-64 flex justify-center"})],8,_t)):d("",!0)])]),e.results.exception.error&&e.results.executing?(l(),f("div",kt,[r(te,{modelValue:s(m),"onUpdate:modelValue":t[2]||(t[2]=n=>pe(m)?m.value=n:null),title:e.results.exception.error,content:e.results.exception.traceback,mode:"backtest","debug-mode":e.form.debug_mode},null,8,["modelValue","title","content","debug-mode"])])):d("",!0)])):d("",!0),r(Te,null,{left:L(()=>[!e.results.executing&&!e.results.showResults?(l(),f("div",wt,[s(v).missingCandlesErrors[s(p)]?(l(),S(W,{key:0,icon:"i-heroicons-exclamation-triangle",color:"rose",variant:"soft",class:"mb-4"},{title:L(()=>[Ct]),description:L(()=>[_("p",xt,[ge(" Your strategy requires "),Vt,ge(' for "'+F(s(v).missingCandlesErrors[s(p)].symbol)+'" on "'+F(s(v).missingCandlesErrors[s(p)].exchange)+'" starting from "'+F(s(v).missingCandlesErrors[s(p)].start_date)+'". These candles are needed for proper strategy initialization. ',1)]),r(x,{label:"Import Required Candles",icon:"i-heroicons-arrow-down-tray",onClick:c})]),_:1})):d("",!0),r(E,{class:"mb-4",title:"Exchange"}),r(oe,{modelValue:e.form.exchange,"onUpdate:modelValue":t[3]||(t[3]=n=>e.form.exchange=n),placeholder:"Select an exchange...",searchable:"",options:s(ae)().backtestingExchangeNames,size:"lg",class:"mt-2 mb-16",onChange:M},null,8,["modelValue","options"]),r(re,{"total-routes-error":s(i),timeframes:s(G),form:e.form,results:e.results,symbols:s(w),mode:"backtest"},null,8,["total-routes-error","timeframes","form","results","symbols"]),r(E,{class:"mt-16",title:"Duration"}),_("div",St,[r(ce,{modelValue:e.form.start_date,"onUpdate:modelValue":t[4]||(t[4]=n=>e.form.start_date=n),type:"date",variant:"outline",size:"lg",class:"w-full mr-2"},null,8,["modelValue"]),r(ce,{modelValue:e.form.finish_date,"onUpdate:modelValue":t[5]||(t[5]=n=>e.form.finish_date=n),type:"date",variant:"outline",size:"lg",class:"w-full ml-2"},null,8,["modelValue"])]),r(E,{class:"mt-16",title:"Options"}),_("div",$t,[r(I,{modelValue:e.form.debug_mode,"onUpdate:modelValue":t[6]||(t[6]=n=>e.form.debug_mode=n),title:"Debug Mode",description:"Logs every step of the execution. Very helpful for debugging your strategy but takes a lot longer to execute"},null,8,["modelValue"]),r(I,{modelValue:e.form.export_chart,"onUpdate:modelValue":t[7]||(t[7]=n=>e.form.export_chart=n),title:"Generate Interactive Charts",description:"Generate interactive charts for backtest results with details."},null,8,["modelValue"]),r(I,{modelValue:e.form.export_tradingview,"onUpdate:modelValue":t[8]||(t[8]=n=>e.form.export_tradingview=n),title:"Export Tradingview",description:"Exports the executed trades in a format accepted by TradingView's Pine Editor. Useful to look at the executed orders on their chart."},null,8,["modelValue"]),r(I,{modelValue:e.form.export_csv,"onUpdate:modelValue":t[9]||(t[9]=n=>e.form.export_csv=n),title:"Export CSV",description:"Exports executed trades in a CSV format"},null,8,["modelValue"]),r(I,{modelValue:e.form.export_json,"onUpdate:modelValue":t[10]||(t[10]=n=>e.form.export_json=n),title:"Export JSON",description:"Exports executed trades in a JSON format"},null,8,["modelValue"]),r(I,{modelValue:e.form.fast_mode,"onUpdate:modelValue":t[11]||(t[11]=n=>e.form.fast_mode=n),title:"Fast Mode",description:"Runs the backtest faster by using an improved algorithm. This is supposed to yield the same results; however, it's currently experimental, which is why it's an option."},null,8,["modelValue"]),r(I,{modelValue:e.form.benchmark,"onUpdate:modelValue":t[12]||(t[12]=n=>e.form.benchmark=n),title:"Benchmark",description:"If enabled, the backtest will compare the performance of the strategy against the buy and hold strategy of the market."},null,8,["modelValue"])])])):d("",!0),e.results.showResults?(l(),f("div",Rt,[_("div",null,[s(T)?(l(),S(E,{key:0,class:"mb-4",title:"Equity Curve"})):d("",!0),s(T)?(l(),S(Ve,{key:1,data:e.results.charts.equity_curve},null,8,["data"])):d("",!0),s(T)?(l(),S(E,{key:2,class:"mt-16 mb-4",title:"Performance"})):d("",!0),s(T)?(l(),S(de,{key:3,data:s(v).formattedMetrics(s(p))},null,8,["data"])):d("",!0),s(T)?d("",!0):(l(),f("div",Tt," No trades were executed via this strategy! "))]),r(Se,{modelValue:s(h),"onUpdate:modelValue":t[14]||(t[14]=n=>pe(h)?h.value=n:null)},{title:L(()=>[r(oe,{modelValue:e.results.selectedRoute,"onUpdate:modelValue":t[13]||(t[13]=n=>e.results.selectedRoute=n),"value-attribute":"value",options:s(H)},null,8,["modelValue","options"])]),default:L(()=>[r(ft,{results:e.results,form:e.form},null,8,["results","form"])]),_:1},8,["modelValue"])])):d("",!0)]),right:L(()=>[e.results.executing?d("",!0):(l(),f("div",Lt,[e.results.showResults?(l(),f("div",jt,[r(x,{class:"w-full flex justify-center",icon:"i-heroicons-arrow-path",size:"xl",variant:"solid",label:"Rerun",trailing:!1,onClick:t[15]||(t[15]=n=>s(Y)((e._.provides[q]||e.$route).params.id))}),r(x,{class:"w-full flex justify-center mt-4",color:"green",icon:"i-heroicons-arrow-uturn-left",size:"xl",variant:"solid",label:"New session",trailing:!1,onClick:t[16]||(t[16]=n=>s(y)((e._.provides[q]||e.$route).params.id))}),e.form.debug_mode?(l(),f("a",{key:0,href:s(B),target:"_blank",class:""},[r(x,{class:"w-full flex justify-center mt-4",color:"gray",icon:"i-heroicons-document-arrow-down",size:"xl",variant:"solid",label:"Debugging Logs",trailing:!1})],8,Et)):d("",!0),e.form.export_chart?(l(),S(x,{key:1,class:"mt-4 flex justify-center items-center btn-secondary text-center",color:"gray",icon:"i-heroicons-chart-bar",size:"xl",block:"",variant:"solid",label:"View charts",trailing:!1,onClick:t[17]||(t[17]=n=>h.value=!0)})):d("",!0),e.form.export_csv&&s(T)?(l(),f("a",{key:2,href:s(X),target:"_blank",class:"flex justify-center items-center btn-secondary text-center w-full"},[r(x,{class:"w-full flex justify-center mt-4",color:"gray",icon:"i-heroicons-document-arrow-down",size:"xl",variant:"solid",label:"CSV",trailing:!1})],8,Ut)):d("",!0),e.form.export_json&&s(T)?(l(),f("a",{key:3,href:s(Z),target:"_blank",class:"flex justify-center items-center btn-secondary text-center w-full"},[r(x,{class:"w-full flex justify-center mt-4",color:"gray",icon:"i-heroicons-document-arrow-down",size:"xl",variant:"solid",label:"JSON",trailing:!1})],8,zt)):d("",!0),e.form.export_tradingview&&s(T)?(l(),f("a",{key:4,href:s(P),target:"_blank",class:"flex justify-center items-center btn-secondary text-center mb-4 w-full"},[r(x,{class:"w-full flex justify-center mt-4",color:"gray",icon:"i-heroicons-document-arrow-down",size:"xl",variant:"solid",label:"TradingView Pine Editor",trailing:!1})],8,Ot)):d("",!0),e.results.showResults&&e.results.alert&&e.results.alert.message?(l(),f("div",Mt,[r(W,{color:"teal",icon:"i-heroicons-check-circle",variant:"soft",title:e.results.alert.message,"close-button":{icon:"i-heroicons-x-mark-20-solid",color:"white",variant:"link"},onClose:t[18]||(t[18]=n=>e.results.alert.message="")},null,8,["title"])])):d("",!0),r(le,{class:"mt-8 mb-4",size:"lg",label:"General Info"}),r($e,{data:e.results.info},null,8,["data"]),r(le,{class:"mt-8 mb-4",size:"lg",label:"Routes"}),r(Re,{data:e.results.routes_info,"header-items":["Symbol","Timeframe","Strategy"],header:""},null,8,["data"]),e.results.hyperparameters.length?(l(),S(le,{key:6,class:"mt-8 mb-4",size:"lg",label:"Hyperparameters"})):d("",!0),e.results.hyperparameters.length?(l(),S(de,{key:7,data:e.results.hyperparameters},null,8,["data"])):d("",!0)])):(l(),f("div",It,[r(x,{class:"w-full flex justify-center",icon:"i-heroicons-bolt",size:"xl",variant:"solid",label:"Start",trailing:!1,onClick:t[19]||(t[19]=n=>$((e._.provides[q]||e.$route).params.id))}),r(x,{class:"w-full flex justify-center mt-4",color:"gray",icon:"i-heroicons-plus",size:"xl",variant:"solid",label:"Start in a new tab",trailing:!1,onClick:t[20]||(t[20]=n=>R((e._.provides[q]||e.$route).params.id))})]))]))]),_:1})],64)}}}),Dt={class:"w-full"},Yt=J({__name:"[id]",setup(U){ot({title:"Backtest - Jesse"});const o=xe(),i=C(()=>o.tabs),m=C(()=>Xe().params.id),u=C(()=>{if(!i.value[m.value]){const g=Object.keys(i.value);if(g.length>0){const a=i.value[g[0]];return Ze().push(`/backtest/${a.id}`),a}}return i.value[m.value]});return Object.keys(i.value).length===0&&o.addTab(),(g,a)=>{const h=Le,p=Bt;return l(),f(A,null,[_("div",Dt,[r(h,{"current-tab":u.value?u.value.id:null,tabs:i.value,mode:"backtest",onClose:s(o).closeTab,onCancel:s(o).cancel},null,8,["current-tab","tabs","onClose","onCancel"])]),u.value?(l(),S(p,{key:0,form:u.value.form,results:u.value.results},null,8,["form","results"])):d("",!0)],64)}}});export{Yt as default}; diff --git a/jesse/static/_nuxt/tqhInjVF.js b/jesse/static/_nuxt/C421Ph1w.js similarity index 97% rename from jesse/static/_nuxt/tqhInjVF.js rename to jesse/static/_nuxt/C421Ph1w.js index dc94031b2..dcc26a26c 100644 --- a/jesse/static/_nuxt/tqhInjVF.js +++ b/jesse/static/_nuxt/C421Ph1w.js @@ -1 +1 @@ -import{a,u as o,o as s,c as i,b as e,t as r,p as u,g as l}from"./P2RTDEVw.js";const c=t=>(u("data-v-6fdef64d"),t=t(),l(),t),d={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},p=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),g={class:"max-w-520px text-center"},h=["textContent"],b=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const n=t;return o({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}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: }'}]}),(m,x)=>(s(),i("div",d,[p,e("div",g,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:r(t.statusCode)},null,8,h),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:r(t.description)},null,8,b)])]))}},k=a(f,[["__scopeId","data-v-6fdef64d"]]);export{k as default}; +import{a,u as o,o as s,c as i,b as e,t as r,p as u,g as l}from"./CBR445J6.js";const c=t=>(u("data-v-6fdef64d"),t=t(),l(),t),d={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},p=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),g={class:"max-w-520px text-center"},h=["textContent"],b=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const n=t;return o({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}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: }'}]}),(m,x)=>(s(),i("div",d,[p,e("div",g,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:r(t.statusCode)},null,8,h),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:r(t.description)},null,8,b)])]))}},k=a(f,[["__scopeId","data-v-6fdef64d"]]);export{k as default}; diff --git a/jesse/static/_nuxt/C2tQgJDv.js b/jesse/static/_nuxt/C4Kf3-V7.js similarity index 83% rename from jesse/static/_nuxt/C2tQgJDv.js rename to jesse/static/_nuxt/C4Kf3-V7.js index 9498c6693..0b569bf2a 100644 --- a/jesse/static/_nuxt/C2tQgJDv.js +++ b/jesse/static/_nuxt/C4Kf3-V7.js @@ -1 +1 @@ -import{h as c,o as _,c as l,d as t,b as e,q as d,w as s,D as m,y as p,e as o,bD as u}from"./P2RTDEVw.js";import{_ as g}from"./DYc5z1_J.js";import{u as f}from"./C6Z10G10.js";import{_ as h}from"./r28WtQzM.js";const x={class:"grid items-start lg:grid-cols-5"},b={class:"grid grid-cols-1 lg:col-span-4 bg-backdrop dark:bg-backdrop-dark"},k={class:"text-center"},y=e("h1",{class:"font-semibold mb-16 text-5xl"}," Strategies ",-1),S={class:"mb-4"},N=c({__name:"index",setup(v){return f({title:"Strategies - Jesse"}),(a,r)=>{const n=p,i=g;return _(),l("section",x,[t(h),e("div",b,[e("div",{class:"flex items-center justify-center select-none",style:d({height:"calc(100vh - 4rem - 4px)"})},[e("div",k,[y,e("div",S,[t(n,{icon:"i-heroicons-plus",onClick:r[0]||(r[0]=B=>("useTempStore"in a?a.useTempStore:m(u))().makeStrategy=!0)},{default:s(()=>[o(" Create a new strategy ")]),_:1}),t(i,{class:"my-6 text-xs"},{default:s(()=>[o(" OR ")]),_:1}),t(n,{icon:"i-heroicons-link",color:"gray",to:"https://jesse.trade/strategies",target:"_blank"},{default:s(()=>[o(" Browse free and premium strategies ")]),_:1})])])],4)])])}}});export{N as default}; +import{h as c,o as _,c as l,d as t,b as e,q as d,w as s,D as m,y as p,e as o,bD as u}from"./CBR445J6.js";import{_ as g}from"./CrZjGMUk.js";import{u as f}from"./CWZa5uCX.js";import{_ as h}from"./BWgDgmdD.js";const x={class:"grid items-start lg:grid-cols-5"},b={class:"grid grid-cols-1 lg:col-span-4 bg-backdrop dark:bg-backdrop-dark"},k={class:"text-center"},y=e("h1",{class:"font-semibold mb-16 text-5xl"}," Strategies ",-1),S={class:"mb-4"},N=c({__name:"index",setup(v){return f({title:"Strategies - Jesse"}),(a,r)=>{const n=p,i=g;return _(),l("section",x,[t(h),e("div",b,[e("div",{class:"flex items-center justify-center select-none",style:d({height:"calc(100vh - 4rem - 4px)"})},[e("div",k,[y,e("div",S,[t(n,{icon:"i-heroicons-plus",onClick:r[0]||(r[0]=B=>("useTempStore"in a?a.useTempStore:m(u))().makeStrategy=!0)},{default:s(()=>[o(" Create a new strategy ")]),_:1}),t(i,{class:"my-6 text-xs"},{default:s(()=>[o(" OR ")]),_:1}),t(n,{icon:"i-heroicons-link",color:"gray",to:"https://jesse.trade/strategies",target:"_blank"},{default:s(()=>[o(" Browse free and premium strategies ")]),_:1})])])],4)])])}}});export{N as default}; diff --git a/jesse/static/_nuxt/P2RTDEVw.js b/jesse/static/_nuxt/CBR445J6.js similarity index 99% rename from jesse/static/_nuxt/P2RTDEVw.js rename to jesse/static/_nuxt/CBR445J6.js index 67e1d1e58..73b4234d4 100644 --- a/jesse/static/_nuxt/P2RTDEVw.js +++ b/jesse/static/_nuxt/CBR445J6.js @@ -1,4 +1,4 @@ -const __vite__fileDeps=["./Bz_haz1e.js","./CPeVVL-L.js","./D14gKO9u.js","./Bm-y-GSe.js","./Dp8W6R0p.js","./CgnKy_Hz.js","./FNX9_brP.js","./Sidebar.CrjfLt5S.css","./CA432Fil.js","./DYc5z1_J.js","./C6Z10G10.js","./B1iL8kI7.js","./DRLIKrD1.js","./CTWGPuvd.js","./Progress.IEMpyWWa.css","./Cz9v7_nt.js","./CxSgkSyI.js","./Rb8dHg_b.js","./BG1kS20I.js","./l897qaza.js","./C9_qsUUJ.js","./B5FsZwEd.js","./B46j6FNg.js","./r28WtQzM.js","./C2tQgJDv.js","./Cd9ILnfN.js","./IconCSS.Z2BAHt_z.css","./CvgYB84I.js","./editor.DOtah1uZ.css","./Cxl9PnUV.js","./error-404.JekaaCis.css","./tqhInjVF.js","./error-500.CNP9nqm1.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +const __vite__fileDeps=["./Ba7Ndv_M.js","./DM1p5uJl.js","./ZzUyaYRm.js","./DoL1vnPK.js","./DSjIPmPA.js","./DxS_eNCG.js","./DULAma5x.js","./Sidebar.CrjfLt5S.css","./CJIn_AcD.js","./CrZjGMUk.js","./CWZa5uCX.js","./DlGARzQo.js","./Ddm-kySd.js","./UdHdDWR2.js","./Progress.IEMpyWWa.css","./CZQo_fz2.js","./CTNl6c3h.js","./DeFeQeSU.js","./BW0J-awP.js","./RgingE6E.js","./DgnVn8_w.js","./DC9wC7bj.js","./ebLb4CIY.js","./BWgDgmdD.js","./C4Kf3-V7.js","./DLfji0Oo.js","./IconCSS.Z2BAHt_z.css","./Cwjhy8h6.js","./editor.DOtah1uZ.css","./BrmDuOBZ.js","./error-404.JekaaCis.css","./C421Ph1w.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 @@ -21,14 +21,14 @@ Use "options.replacer" or "options.ignoreUnknown" * 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("./Bz_haz1e.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("./B1iL8kI7.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("./azkbtMd1.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("./DRLIKrD1.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("./Cz9v7_nt.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("./CxSgkSyI.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("./BG1kS20I.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("./l897qaza.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("./BfXeR9w9.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("./C9_qsUUJ.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("./B5FsZwEd.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("./B46j6FNg.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("./C2tQgJDv.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("./C01ewFWa.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;/*! + */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("./Ba7Ndv_M.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("./DlGARzQo.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("./BzGTq0di.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("./Ddm-kySd.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("./CZQo_fz2.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("./CTNl6c3h.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("./BW0J-awP.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("./RgingE6E.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("./BDilupNG.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("./DgnVn8_w.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("./DC9wC7bj.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("./ebLb4CIY.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("./C4Kf3-V7.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("./1zkNhB4_.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("./Cd9ILnfN.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("./C26xw31t.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("./CvgYB84I.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 { + `),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("./DLfji0Oo.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("./B5TjB9RH.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("./Cwjhy8h6.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); @@ -66,7 +66,7 @@ __p += '`),st&&(se+=`' + 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},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} +}`;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} @@ -78,4 +78,4 @@ function print() { __p += __j.call(arguments, '') } `)].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