From 2482c77c45a510acff488f7b4b91d73bd661a9f8 Mon Sep 17 00:00:00 2001 From: nfebe Date: Fri, 25 Sep 2026 00:37:27 +0100 Subject: [PATCH] feat(graph): Add architecture views and restore graph controls --- README.md | 2 + internal/api/architecture.go | 64 +++++++ internal/api/architecture_test.go | 92 +++++++++ internal/api/server.go | 13 ++ internal/api/server_test.go | 4 +- internal/core/architecture.go | 19 ++ internal/core/client.go | 12 ++ internal/core/client_test.go | 6 + .../testdata/architecture-comparison.json | 7 + internal/core/testdata/architecture.json | 66 +++++++ .../ui/assets/assets/Architecture-zdoEceFG.js | 2 + internal/ui/assets/assets/index-BGVtFZd1.css | 1 - internal/ui/assets/assets/index-BqyDLv8O.css | 1 + .../{index-WjZ6Jgkb.js => index-EDgcobA_.js} | 181 +++++++++--------- internal/ui/assets/index.html | 4 +- ui/src/api.js | 6 +- ui/src/components/Architecture.vue | 139 ++++++++++++++ ui/src/pages/Graph.vue | 10 +- 18 files changed, 526 insertions(+), 103 deletions(-) create mode 100644 internal/api/architecture.go create mode 100644 internal/api/architecture_test.go create mode 100644 internal/core/architecture.go create mode 100644 internal/core/testdata/architecture-comparison.json create mode 100644 internal/core/testdata/architecture.json create mode 100644 internal/ui/assets/assets/Architecture-zdoEceFG.js delete mode 100644 internal/ui/assets/assets/index-BGVtFZd1.css create mode 100644 internal/ui/assets/assets/index-BqyDLv8O.css rename internal/ui/assets/assets/{index-WjZ6Jgkb.js => index-EDgcobA_.js} (65%) create mode 100644 ui/src/components/Architecture.vue diff --git a/README.md b/README.md index 9f02ab4..e915cd9 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ A checkout is reviewed here, by the same reviewer a pull request goes through. I `/mcp` is proxied through to the core, so a coding agent on this machine reaches the same index and can ask for the same review. +The Graphs page also shows directory components and the source evidence for their dependencies. Export a JSON snapshot, or keep a baseline for comparison during the session. These readings use the current index and make no model calls. Incomplete snapshots cannot establish additions or removals. The same operations are available through `/api/architecture` and `/api/architecture/compare` for the CLI. + Loopback is the default because the agent reads a working tree. The machine it runs on is the only audience it has. ## Running it diff --git a/internal/api/architecture.go b/internal/api/architecture.go new file mode 100644 index 0000000..5bdb1c1 --- /dev/null +++ b/internal/api/architecture.go @@ -0,0 +1,64 @@ +package api + +import ( + "context" + "encoding/json" + "net/http" + "strconv" +) + +type architectureReader interface { + Architecture(context.Context, string, int, bool) (json.RawMessage, error) + CompareArchitecture(context.Context, json.RawMessage) (json.RawMessage, error) +} + +func (s *Server) architecture(w http.ResponseWriter, r *http.Request) { + reader, ok := s.reader.(architectureReader) + if !ok { + write(w, http.StatusNotImplemented, problem{Error: "This core does not support architecture readings"}) + return + } + repository := r.URL.Query().Get("repository") + depth := 1 + var err error + if given := r.URL.Query().Get("depth"); given != "" { + depth, err = strconv.Atoi(given) + } + if repository == "" || err != nil || depth < 1 || depth > 4 { + write(w, http.StatusBadRequest, problem{Error: "Name a repository and a depth between 1 and 4"}) + return + } + includeTests := false + if given := r.URL.Query().Get("include_tests"); given != "" { + includeTests, err = strconv.ParseBool(given) + if err != nil { + write(w, http.StatusBadRequest, problem{Error: "include_tests must be true or false"}) + return + } + } + result, err := reader.Architecture(r.Context(), repository, depth, includeTests) + if err != nil { + fail(w, err) + return + } + write(w, http.StatusOK, result) +} + +func (s *Server) compareArchitecture(w http.ResponseWriter, r *http.Request) { + reader, ok := s.reader.(architectureReader) + if !ok { + write(w, http.StatusNotImplemented, problem{Error: "This core does not support architecture comparisons"}) + return + } + r.Body = http.MaxBytesReader(w, r.Body, 8<<20) + var baseline json.RawMessage + if !readBody(w, r, &baseline) { + return + } + result, err := reader.CompareArchitecture(r.Context(), baseline) + if err != nil { + fail(w, err) + return + } + write(w, http.StatusOK, result) +} diff --git a/internal/api/architecture_test.go b/internal/api/architecture_test.go new file mode 100644 index 0000000..6975602 --- /dev/null +++ b/internal/api/architecture_test.go @@ -0,0 +1,92 @@ +package api + +import ( + "bytes" + "encoding/json" + "io" + "net/http" + "net/http/httptest" + "os" + "testing" + "time" + + "github.com/sourceant/agent/internal/core" +) + +func TestArchitectureThroughAgent(t *testing.T) { + snapshot, err := os.ReadFile("../core/testdata/architecture.json") + if err != nil { + t.Fatal(err) + } + comparison, err := os.ReadFile("../core/testdata/architecture-comparison.json") + if err != nil { + t.Fatal(err) + } + calls := 0 + upstream := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + calls++ + result := snapshot + switch r.URL.Path { + case "/api/code/architecture": + if r.URL.Query().Get("repository") != "acme/billing" || r.URL.Query().Get("depth") != "2" { + t.Errorf("wrong query: %s", r.URL.RawQuery) + } + case "/api/code/architecture/compare": + if r.Method != http.MethodPost { + t.Errorf("wrong method: %s", r.Method) + } + body, _ := io.ReadAll(r.Body) + var actual, expected any + _ = json.Unmarshal(body, &actual) + _ = json.Unmarshal(snapshot, &expected) + a, _ := json.Marshal(actual) + b, _ := json.Marshal(expected) + if !bytes.Equal(a, b) { + t.Error("the baseline changed in transit") + } + result = comparison + default: + t.Errorf("unexpected upstream route: %s", r.URL.Path) + } + _ = json.NewEncoder(w).Encode(map[string]any{"status": "success", "data": json.RawMessage(result)}) + })) + defer upstream.Close() + handler := New(core.New(upstream.URL, time.Second), nil, "test", upstream.URL).Handler() + for _, query := range []string{"", "?repository=acme/billing&depth=0", "?repository=acme/billing&include_tests=wrong"} { + response := httptest.NewRecorder() + handler.ServeHTTP(response, httptest.NewRequest(http.MethodGet, "/api/architecture"+query, nil)) + if response.Code != http.StatusBadRequest { + t.Fatalf("invalid request returned %d", response.Code) + } + } + if calls != 0 { + t.Fatal("invalid requests reached the core") + } + response := httptest.NewRecorder() + handler.ServeHTTP(response, httptest.NewRequest(http.MethodGet, "/api/architecture?repository=acme/billing&depth=2", nil)) + if response.Code != http.StatusOK || !bytes.Contains(response.Body.Bytes(), []byte("payments")) { + t.Fatalf("reading: %d %s", response.Code, response.Body.String()) + } + response = httptest.NewRecorder() + handler.ServeHTTP(response, httptest.NewRequest(http.MethodPost, "/api/architecture/compare", bytes.NewReader(snapshot))) + if response.Code != http.StatusOK { + t.Fatalf("comparison: %d %s", response.Code, response.Body.String()) + } + if calls != 2 { + t.Fatalf("got %d upstream requests, want 2", calls) + } +} + +func TestArchitecturePreservesCoreDenial(t *testing.T) { + upstream := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusForbidden) + _, _ = w.Write([]byte(`{"detail":"local access only"}`)) + })) + defer upstream.Close() + handler := New(core.New(upstream.URL, time.Second), nil, "test", upstream.URL).Handler() + response := httptest.NewRecorder() + handler.ServeHTTP(response, httptest.NewRequest(http.MethodGet, "/api/architecture?repository=acme/billing", nil)) + if response.Code != http.StatusForbidden { + t.Fatalf("got %d", response.Code) + } +} diff --git a/internal/api/server.go b/internal/api/server.go index 622f139..f7b63cd 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -112,6 +112,8 @@ func (s *Server) Handler() http.Handler { mux.HandleFunc("DELETE /api/repositories", s.dropRepository) mux.HandleFunc("POST /api/index", s.index) mux.HandleFunc("GET /api/graph", s.graph) + mux.HandleFunc("GET /api/architecture", s.architecture) + mux.HandleFunc("POST /api/architecture/compare", s.compareArchitecture) mux.HandleFunc("GET /api/attention", s.attention) mux.HandleFunc("GET /api/knowledge", s.knowledge) mux.HandleFunc("PUT /api/knowledge", s.recordKnowledge) @@ -174,10 +176,21 @@ func (s *Server) graph(w http.ResponseWriter, r *http.Request) { if err != nil { limit = 0 } + depth := 2 + if value := r.URL.Query().Get("depth"); value != "" { + depth, err = strconv.Atoi(value) + if err != nil || depth < 1 || depth > 5 { + write(w, http.StatusBadRequest, problem{Error: "depth must be between 1 and 5"}) + return + } + } graph, err := s.reader.Graph(r.Context(), repository, core.GraphOptions{ PathPrefix: r.URL.Query().Get("path_prefix"), IncludeTests: r.URL.Query().Get("include_tests") == "true", NodeLimit: limit, + Focus: r.URL.Query().Get("focus"), + Depth: depth, + Query: r.URL.Query().Get("q"), }) if err != nil { fail(w, err) diff --git a/internal/api/server_test.go b/internal/api/server_test.go index f99bcc5..17b4dc8 100644 --- a/internal/api/server_test.go +++ b/internal/api/server_test.go @@ -209,12 +209,12 @@ func TestGraphPassesOnWhatNarrowsADrawing(t *testing.T) { reader := &stubReader{} server := New(reader, stubSupervisor{}, "dev", "") - call(t, server, "/api/graph?repository=acme/billing&path_prefix=app/&include_tests=true&node_limit=200") + call(t, server, "/api/graph?repository=acme/billing&path_prefix=app/&include_tests=true&node_limit=200&focus=file%3Aapp%2Fcharge.py&depth=3&q=charge") if reader.askedFor != "acme/billing" { t.Errorf("asked for %q, want acme/billing", reader.askedFor) } - want := core.GraphOptions{PathPrefix: "app/", IncludeTests: true, NodeLimit: 200} + want := core.GraphOptions{PathPrefix: "app/", IncludeTests: true, NodeLimit: 200, Focus: "file:app/charge.py", Depth: 3, Query: "charge"} if reader.askedOptions != want { t.Errorf("asked with %+v, want %+v", reader.askedOptions, want) } diff --git a/internal/core/architecture.go b/internal/core/architecture.go new file mode 100644 index 0000000..df84535 --- /dev/null +++ b/internal/core/architecture.go @@ -0,0 +1,19 @@ +package core + +import ( + "context" + "encoding/json" + "net/http" + "net/url" + "strconv" +) + +func (c *Client) Architecture(ctx context.Context, repository string, depth int, includeTests bool) (json.RawMessage, error) { + return get[json.RawMessage](ctx, c, "/api/code/architecture", url.Values{ + "repository": {repository}, "depth": {strconv.Itoa(depth)}, "include_tests": {strconv.FormatBool(includeTests)}, + }) +} + +func (c *Client) CompareArchitecture(ctx context.Context, baseline json.RawMessage) (json.RawMessage, error) { + return send[json.RawMessage](ctx, c, http.MethodPost, "/api/code/architecture/compare", nil, baseline) +} diff --git a/internal/core/client.go b/internal/core/client.go index 1888db3..d59dcc9 100644 --- a/internal/core/client.go +++ b/internal/core/client.go @@ -164,11 +164,23 @@ type GraphOptions struct { PathPrefix string IncludeTests bool NodeLimit int + Focus string + Depth int + Query string } // Graph reads one repository's whole scope. func (c *Client) Graph(ctx context.Context, repository string, opts GraphOptions) (Graph, error) { query := url.Values{"repository": {repository}} + if opts.Focus != "" { + query.Set("focus", opts.Focus) + } + if opts.Depth > 0 { + query.Set("depth", strconv.Itoa(opts.Depth)) + } + if opts.Query != "" { + query.Set("q", opts.Query) + } if opts.PathPrefix != "" { query.Set("path_prefix", opts.PathPrefix) } diff --git a/internal/core/client_test.go b/internal/core/client_test.go index d5204d4..a5b1aa3 100644 --- a/internal/core/client_test.go +++ b/internal/core/client_test.go @@ -153,6 +153,9 @@ func TestGraphPassesOnWhatNarrowsADrawing(t *testing.T) { PathPrefix: "src/config/", IncludeTests: true, NodeLimit: 120, + Focus: "file:app/charge.py", + Depth: 3, + Query: "charge", }) if err != nil { t.Fatalf("reading graph: %v", err) @@ -163,6 +166,9 @@ func TestGraphPassesOnWhatNarrowsADrawing(t *testing.T) { "path_prefix=src%2Fconfig%2F", "include_tests=true", "node_limit=120", + "focus=file%3Aapp%2Fcharge.py", + "depth=3", + "q=charge", } { if !strings.Contains(asked, want) { t.Errorf("query %q is missing %q", asked, want) diff --git a/internal/core/testdata/architecture-comparison.json b/internal/core/testdata/architecture-comparison.json new file mode 100644 index 0000000..022c825 --- /dev/null +++ b/internal/core/testdata/architecture-comparison.json @@ -0,0 +1,7 @@ +{ + "repository": "acme/billing", + "before": "e3df98abd8989fdf8054f071ed13e5e151e596ddd25cdf4138bc59b5824d6a98", + "after": "e3df98abd8989fdf8054f071ed13e5e151e596ddd25cdf4138bc59b5824d6a98", + "components": [], + "relationships": [] +} diff --git a/internal/core/testdata/architecture.json b/internal/core/testdata/architecture.json new file mode 100644 index 0000000..0b6afb2 --- /dev/null +++ b/internal/core/testdata/architecture.json @@ -0,0 +1,66 @@ +{ + "schema_version": 1, + "repository": "acme/billing", + "grouping": { + "kind": "directory", + "depth": 1, + "include_tests": false + }, + "components": [ + { + "id": "part:9aec5ea70b9fc283cd2bc80f", + "name": "identity", + "path": "identity", + "files": 1, + "nodes": 2, + "sample_files": [ + "identity/user.py" + ], + "incoming": 1, + "outgoing": 0, + "fingerprint": "cc4018e22750c491eb0a6804b9b6ed5119b7ce90165a6d2656911f2057c48d11" + }, + { + "id": "part:0b121dabb6f66a3d527c7f07", + "name": "payments", + "path": "payments", + "files": 1, + "nodes": 2, + "sample_files": [ + "payments/charge.py" + ], + "incoming": 0, + "outgoing": 1, + "fingerprint": "e54ea556564b8e0f9b62d70c70dcd1e56a2d74dc57e15a8127be1dec1040b5b4" + } + ], + "relationships": [ + { + "source": "part:0b121dabb6f66a3d527c7f07", + "target": "part:9aec5ea70b9fc283cd2bc80f", + "type": "imports", + "count": 1, + "evidence": [ + { + "origin": "inferred", + "source": { + "path": "payments/charge.py", + "symbol": "file:payments/charge.py" + }, + "target": { + "path": "identity/user.py", + "symbol": "file:identity/user.py" + } + } + ] + } + ], + "coverage": { + "nodes": 4, + "files": 2, + "unplaced_nodes": 0, + "unresolved_edges": 0, + "truncated": false + }, + "fingerprint": "e3df98abd8989fdf8054f071ed13e5e151e596ddd25cdf4138bc59b5824d6a98" +} diff --git a/internal/ui/assets/assets/Architecture-zdoEceFG.js b/internal/ui/assets/assets/Architecture-zdoEceFG.js new file mode 100644 index 0000000..cfea528 --- /dev/null +++ b/internal/ui/assets/assets/Architecture-zdoEceFG.js @@ -0,0 +1,2 @@ +import{w as M,o as n,c as l,a as s,b as u,d as C,e as i,F as d,r as _,t as o,u as c,_ as T,f as k,g as R,h as f,i as O,n as q,j as p,k as E,l as V}from"./index-EDgcobA_.js";const z={class:"space-y-4","aria-label":"Code components"},G={class:"flex flex-wrap items-center gap-2"},H={class:"flex items-center gap-2 text-sm"},K=["value"],P={key:1,role:"status",class:"text-sm text-muted-foreground"},Q={key:1,class:"rounded-lg border bg-card p-5"},W={class:"text-sm text-muted-foreground"},X={class:"grid gap-4 lg:grid-cols-2"},Y={class:"max-h-[32rem] overflow-auto rounded-lg border bg-card"},Z={class:"w-full text-left text-sm"},ee={class:"px-3 py-2"},te=["aria-pressed","onClick"],se={class:"px-3 py-2 tabular-nums"},oe={class:"px-3 py-2 tabular-nums"},ne={class:"max-h-[32rem] space-y-3 overflow-auto rounded-lg border bg-card p-4"},ae={class:"font-medium"},le={key:0,class:"text-sm text-muted-foreground"},re={class:"text-xs text-muted-foreground"},ue={class:"mt-2 space-y-1"},ie={key:3,class:"rounded-lg border bg-card p-4","aria-live":"polite"},de={class:"mt-1 text-sm text-muted-foreground"},ce={class:"mt-2 space-y-1 text-sm"},pe={class:"mt-2 space-y-1 text-sm"},ve={__name:"Architecture",props:{repository:{type:String,required:!0}},setup(D){const L=D,w=p(1),a=p(null),g=p(!1),h=p(""),m=p(""),$=p(null),v=p(null),x=p(!1),N=p(100);let y=0;const j=V(()=>{var r;return Object.fromEntries((((r=a.value)==null?void 0:r.components)??[]).map(e=>[e.id,e.name]))}),F=V(()=>{var r;return(((r=a.value)==null?void 0:r.components)??[]).slice(0,N.value)}),S=V(()=>{var r;return(((r=a.value)==null?void 0:r.relationships)??[]).filter(e=>e.source===m.value||e.target===m.value)}),U=V(()=>a.value&&(a.value.coverage.truncated||a.value.coverage.unplaced_nodes||a.value.coverage.unresolved_edges));async function B(){var e;const r=++y;g.value=!0,h.value="",v.value=null;try{const t=await E.architecture(L.repository,w.value);if(r!==y)return;a.value=t,t.components.some(b=>b.id===m.value)||(m.value=((e=t.components[0])==null?void 0:e.id)??"")}catch(t){r===y&&(a.value=null,h.value=t.message)}finally{r===y&&(g.value=!1)}}async function A(){const r=y;x.value=!0,h.value="";try{const e=await E.compareArchitecture($.value);r===y&&(v.value=e)}catch(e){r===y&&(h.value=e.message)}finally{x.value=!1}}function I(){const r=new Blob([JSON.stringify(a.value,null,2)+` +`],{type:"application/json"}),e=URL.createObjectURL(r),t=document.createElement("a");t.href=e,t.download="architecture.json",t.click(),URL.revokeObjectURL(e)}return M(()=>[L.repository,w.value],()=>{$.value=null,N.value=100,a.value=null,B()},{immediate:!0}),(r,e)=>(n(),l("section",z,[s("div",G,[s("label",H,[e[3]||(e[3]=u(" Directory depth ",-1)),C(c(T),{modelValue:w.value,"onUpdate:modelValue":e[0]||(e[0]=t=>w.value=t),modelModifiers:{number:!0},"aria-label":"Directory depth"},{default:i(()=>[(n(),l(d,null,_(4,t=>s("option",{key:t,value:t},o(t),9,K)),64))]),_:1},8,["modelValue"])]),C(c(k),{variant:"ghost",disabled:g.value||x.value,onClick:B},{default:i(()=>[...e[4]||(e[4]=[u("Read current index",-1)])]),_:1},8,["disabled"]),a.value?(n(),l(d,{key:0},[C(c(k),{variant:"ghost",disabled:g.value,onClick:I},{default:i(()=>[...e[5]||(e[5]=[u("Export JSON",-1)])]),_:1},8,["disabled"]),C(c(k),{variant:"ghost",disabled:g.value||U.value||x.value,onClick:e[1]||(e[1]=t=>{$.value=a.value,v.value=null})},{default:i(()=>[...e[6]||(e[6]=[u("Use as baseline",-1)])]),_:1},8,["disabled"]),$.value?(n(),R(c(k),{key:0,disabled:g.value||x.value,onClick:A},{default:i(()=>[u(o(x.value?"Comparing…":"Compare with baseline"),1)]),_:1},8,["disabled"])):f("",!0)],64)):f("",!0)]),e[15]||(e[15]=s("p",{class:"text-sm text-muted-foreground"},"Components are grouped by directory in the current index. Connections come from code relationships, not a model.",-1)),h.value?(n(),R(c(O),{key:0,tone:"danger"},{default:i(()=>[u(o(h.value),1)]),_:1})):f("",!0),g.value?(n(),l("p",P,"Reading indexed components…")):a.value?(n(),l(d,{key:2},[U.value?(n(),R(c(O),{key:0,tone:"warning"},{default:i(()=>[...e[7]||(e[7]=[u("This reading is incomplete. Missing connections do not prove independence, and this snapshot cannot be used for comparison.",-1)])]),_:1})):f("",!0),a.value.components.length?(n(),l(d,{key:2},[s("p",W,o(a.value.coverage.files)+" indexed files · "+o(a.value.components.length)+" components · "+o(a.value.relationships.length)+" dependencies",1),s("div",X,[s("div",Y,[s("table",Z,[e[11]||(e[11]=s("caption",{class:"sr-only"},"Components in the current index",-1)),e[12]||(e[12]=s("thead",null,[s("tr",{class:"border-b text-muted-foreground"},[s("th",{class:"px-3 py-2"},"Component"),s("th",{class:"px-3 py-2"},"Files"),s("th",{class:"px-3 py-2"},"In / out")])],-1)),s("tbody",null,[(n(!0),l(d,null,_(F.value,t=>(n(),l("tr",{key:t.id,class:q(["border-b last:border-0",m.value===t.id?"bg-primary/10":""])},[s("td",ee,[s("button",{type:"button",class:"text-left font-mono underline decoration-transparent hover:decoration-current","aria-pressed":m.value===t.id,onClick:b=>m.value=t.id},o(t.name),9,te)]),s("td",se,o(t.files),1),s("td",oe,o(t.incoming)+" / "+o(t.outgoing),1)],2))),128))])]),N.valueN.value+=100)},{default:i(()=>[...e[13]||(e[13]=[u("Show 100 more components",-1)])]),_:1})):f("",!0)]),s("div",ne,[s("h3",ae,"Connections for "+o(j.value[m.value]),1),S.value.length?f("",!0):(n(),l("p",le,"No connections to other components were found in this index reading.")),(n(!0),l(d,null,_(S.value,t=>(n(),l("div",{key:`${t.source}:${t.target}:${t.type}`,class:"border-t pt-3 text-sm"},[s("p",null,o(j.value[t.source])+" → "+o(j.value[t.target]),1),s("p",re,o(t.type)+" · "+o(t.count)+" references",1),s("ul",ue,[(n(!0),l(d,null,_(t.evidence,(b,J)=>(n(),l("li",{key:J,class:"break-all font-mono text-xs text-muted-foreground"},o(b.source.path)+" → "+o(b.target.path)+" ("+o(b.origin)+")",1))),128))])]))),128))])])],64)):(n(),l("div",Q,[e[9]||(e[9]=s("p",null,"No components have been indexed yet.",-1)),e[10]||(e[10]=s("p",{class:"mt-1 text-sm text-muted-foreground"},"Index this repository from Repositories, then read it again.",-1)),C(c(k),{as:"a",href:"/repositories",variant:"ghost",class:"mt-3"},{default:i(()=>[...e[8]||(e[8]=[u("Repositories",-1)])]),_:1})])),v.value?(n(),l("div",ie,[e[14]||(e[14]=s("h3",{class:"font-medium"},"Changes since the baseline",-1)),s("p",de,o(v.value.components.length)+" changed components · "+o(v.value.relationships.length)+" changed dependencies",1),s("ul",ce,[(n(!0),l(d,null,_(v.value.components,t=>(n(),l("li",{key:t.id},o(t.name)+": "+o(t.status),1))),128))]),s("ul",pe,[(n(!0),l(d,null,_(v.value.relationships,t=>(n(),l("li",{key:`${t.source}:${t.target}:${t.type}`},o(t.source_name)+" → "+o(t.target_name)+": "+o(t.type)+" "+o(t.status),1))),128))])])):f("",!0)],64)):f("",!0)]))}};export{ve as default}; diff --git a/internal/ui/assets/assets/index-BGVtFZd1.css b/internal/ui/assets/assets/index-BGVtFZd1.css deleted file mode 100644 index 2e5a503..0000000 --- a/internal/ui/assets/assets/index-BGVtFZd1.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,system-ui,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root,.dark{color-scheme:dark;--background: 240 10% 3.9%;--foreground: 0 0% 98%;--card: 240 9% 7%;--card-foreground: 0 0% 98%;--popover: 240 9% 7%;--popover-foreground: 0 0% 98%;--primary: 357 89% 47%;--primary-foreground: 0 0% 100%;--secondary: 240 4% 16%;--secondary-foreground: 0 0% 98%;--muted: 240 5% 14%;--muted-foreground: 240 5% 64.9%;--accent: 240 4% 16%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 50.6%;--destructive-foreground: 0 0% 98%;--success: 142 71% 45%;--success-foreground: 0 0% 98%;--warning: 38 92% 50%;--warning-foreground: 0 0% 98%;--border: 240 6% 16%;--input: 240 6% 16%;--ring: 357 89% 47%;--radius: .25rem;--brand: 357 89% 47%;--pillar-memory: 217 91% 60%;--pillar-graph: 262 83% 66%;--pillar-review: 142 71% 45%;--pillar-tokens: 38 92% 50%}.\!dark{color-scheme:dark!important;--background: 240 10% 3.9% !important;--foreground: 0 0% 98% !important;--card: 240 9% 7% !important;--card-foreground: 0 0% 98% !important;--popover: 240 9% 7% !important;--popover-foreground: 0 0% 98% !important;--primary: 357 89% 47% !important;--primary-foreground: 0 0% 100% !important;--secondary: 240 4% 16% !important;--secondary-foreground: 0 0% 98% !important;--muted: 240 5% 14% !important;--muted-foreground: 240 5% 64.9% !important;--accent: 240 4% 16% !important;--accent-foreground: 0 0% 98% !important;--destructive: 0 62.8% 50.6% !important;--destructive-foreground: 0 0% 98% !important;--success: 142 71% 45% !important;--success-foreground: 0 0% 98% !important;--warning: 38 92% 50% !important;--warning-foreground: 0 0% 98% !important;--border: 240 6% 16% !important;--input: 240 6% 16% !important;--ring: 357 89% 47% !important;--radius: .25rem !important;--brand: 357 89% 47% !important;--pillar-memory: 217 91% 60% !important;--pillar-graph: 262 83% 66% !important;--pillar-review: 142 71% 45% !important;--pillar-tokens: 38 92% 50% !important}.light{color-scheme:light;--background: 240 20% 98%;--foreground: 240 10% 10%;--card: 0 0% 100%;--card-foreground: 240 10% 10%;--popover: 0 0% 100%;--popover-foreground: 240 10% 10%;--primary: 357 89% 47%;--primary-foreground: 0 0% 100%;--secondary: 240 10% 94%;--secondary-foreground: 240 10% 20%;--muted: 240 10% 94%;--muted-foreground: 240 5% 45%;--accent: 357 60% 96%;--accent-foreground: 357 70% 40%;--destructive: 0 84% 60%;--destructive-foreground: 0 0% 100%;--success: 142 70% 35%;--success-foreground: 0 0% 100%;--warning: 38 92% 45%;--warning-foreground: 0 0% 100%;--border: 240 10% 90%;--input: 240 10% 90%;--ring: 357 89% 47%;--brand: 357 89% 47%;--pillar-memory: 217 91% 55%;--pillar-graph: 262 83% 58%;--pillar-review: 142 71% 40%;--pillar-tokens: 38 92% 45%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));font-family:Inter,system-ui,sans-serif;color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html{scroll-behavior:smooth}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media(min-width:1400px){.container{max-width:1400px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: oklch(37.3% .034 259.733);--tw-prose-headings: oklch(21% .034 264.665);--tw-prose-lead: oklch(44.6% .03 256.802);--tw-prose-links: oklch(21% .034 264.665);--tw-prose-bold: oklch(21% .034 264.665);--tw-prose-counters: oklch(55.1% .027 264.364);--tw-prose-bullets: oklch(87.2% .01 258.338);--tw-prose-hr: oklch(92.8% .006 264.531);--tw-prose-quotes: oklch(21% .034 264.665);--tw-prose-quote-borders: oklch(92.8% .006 264.531);--tw-prose-captions: oklch(55.1% .027 264.364);--tw-prose-kbd: oklch(21% .034 264.665);--tw-prose-kbd-shadows: color-mix(in oklab, oklch(21% .034 264.665) 10%, transparent);--tw-prose-code: oklch(21% .034 264.665);--tw-prose-pre-code: oklch(92.8% .006 264.531);--tw-prose-pre-bg: oklch(27.8% .033 256.848);--tw-prose-th-borders: oklch(87.2% .01 258.338);--tw-prose-td-borders: oklch(92.8% .006 264.531);--tw-prose-invert-body: oklch(87.2% .01 258.338);--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: oklch(70.7% .022 261.325);--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: oklch(70.7% .022 261.325);--tw-prose-invert-bullets: oklch(44.6% .03 256.802);--tw-prose-invert-hr: oklch(37.3% .034 259.733);--tw-prose-invert-quotes: oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders: oklch(37.3% .034 259.733);--tw-prose-invert-captions: oklch(70.7% .022 261.325);--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: rgb(255 255 255 / 10%);--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: oklch(44.6% .03 256.802);--tw-prose-invert-td-borders: oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.light .gradient-text{--tw-gradient-from: #9333ea var(--tw-gradient-from-position);--tw-gradient-to: rgb(147 51 234 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(124 58 237 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7c3aed var(--tw-gradient-via-position), var(--tw-gradient-to);--tw-gradient-to: #db2777 var(--tw-gradient-to-position)}.light .glass{border-bottom-width:1px;border-color:hsl(var(--border) / .5);background-color:hsl(var(--background) / .9);--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.glow{box-shadow:0 0 60px -15px hsl(var(--primary) / .3)}.light .glow{box-shadow:0 0 60px -15px hsl(var(--primary) / .15)}.glow-sm{box-shadow:0 0 30px -10px hsl(var(--primary) / .2)}.light .glow-sm{box-shadow:0 0 30px -10px hsl(var(--primary) / .1)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-2\.5{left:.625rem}.right-0{right:0}.right-4{right:1rem}.top-1\/2{top:50%}.top-4{top:1rem}.top-full{top:100%}.z-40{z-index:40}.z-50{z-index:50}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-1\.5{margin-left:.375rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[85vh\]{max-height:85vh}.min-h-0{min-height:0px}.min-h-10{min-height:2.5rem}.min-h-7{min-height:1.75rem}.min-h-8{min-height:2rem}.min-h-\[24rem\]{min-height:24rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-10{min-width:2.5rem}.min-w-7{min-width:1.75rem}.min-w-8{min-width:2rem}.max-w-2xl{max-width:42rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes fade-up{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fade-up{animation:fade-up .4s ease-out}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize-y{resize:vertical}.list-none{list-style-type:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-y-1{row-gap:.25rem}.gap-y-1\.5{row-gap:.375rem}.gap-y-2{row-gap:.5rem}.gap-y-3{row-gap:.75rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-amber-600\/20{border-color:#d9770633}.border-blue-600\/20{border-color:#2563eb33}.border-border{border-color:hsl(var(--border))}.border-border\/60{border-color:hsl(var(--border) / .6)}.border-cyan-600\/20{border-color:#0891b233}.border-destructive\/40{border-color:hsl(var(--destructive) / .4)}.border-destructive\/60{border-color:hsl(var(--destructive) / .6)}.border-emerald-600\/20{border-color:#05966933}.border-input{border-color:hsl(var(--input))}.border-lime-600\/20{border-color:#65a30d33}.border-pink-600\/20{border-color:#db277733}.border-primary\/30{border-color:hsl(var(--primary) / .3)}.border-primary\/40{border-color:hsl(var(--primary) / .4)}.border-red-600\/20{border-color:#dc262633}.border-success\/40{border-color:hsl(var(--success) / .4)}.border-transparent{border-color:transparent}.border-violet-600\/20{border-color:#7c3aed33}.border-warning\/40{border-color:hsl(var(--warning) / .4)}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-amber-600\/10{background-color:#d977061a}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-600\/10{background-color:#2563eb1a}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-card\/80{background-color:hsl(var(--card) / .8)}.bg-cyan-600{--tw-bg-opacity: 1;background-color:rgb(8 145 178 / var(--tw-bg-opacity, 1))}.bg-cyan-600\/10{background-color:#0891b21a}.bg-destructive{background-color:hsl(var(--destructive))}.bg-destructive\/10{background-color:hsl(var(--destructive) / .1)}.bg-destructive\/15{background-color:hsl(var(--destructive) / .15)}.bg-destructive\/5{background-color:hsl(var(--destructive) / .05)}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-600\/10{background-color:#0596691a}.bg-lime-600{--tw-bg-opacity: 1;background-color:rgb(101 163 13 / var(--tw-bg-opacity, 1))}.bg-lime-600\/10{background-color:#65a30d1a}.bg-muted{background-color:hsl(var(--muted))}.bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-muted\/40{background-color:hsl(var(--muted) / .4)}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-muted\/60{background-color:hsl(var(--muted) / .6)}.bg-pillar-graph{--tw-bg-opacity: 1;background-color:hsl(var(--pillar-graph) / var(--tw-bg-opacity, 1))}.bg-pillar-graph\/15{background-color:hsl(var(--pillar-graph) / .15)}.bg-pillar-memory\/15{background-color:hsl(var(--pillar-memory) / .15)}.bg-pillar-review\/15{background-color:hsl(var(--pillar-review) / .15)}.bg-pillar-tokens\/15{background-color:hsl(var(--pillar-tokens) / .15)}.bg-pink-600{--tw-bg-opacity: 1;background-color:rgb(219 39 119 / var(--tw-bg-opacity, 1))}.bg-pink-600\/10{background-color:#db27771a}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/15{background-color:hsl(var(--primary) / .15)}.bg-primary\/20{background-color:hsl(var(--primary) / .2)}.bg-primary\/5{background-color:hsl(var(--primary) / .05)}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-red-600\/10{background-color:#dc26261a}.bg-secondary{background-color:hsl(var(--secondary))}.bg-success{background-color:hsl(var(--success))}.bg-success\/10{background-color:hsl(var(--success) / .1)}.bg-success\/15{background-color:hsl(var(--success) / .15)}.bg-success\/20{background-color:hsl(var(--success) / .2)}.bg-success\/5{background-color:hsl(var(--success) / .05)}.bg-violet-600{--tw-bg-opacity: 1;background-color:rgb(124 58 237 / var(--tw-bg-opacity, 1))}.bg-violet-600\/10{background-color:#7c3aed1a}.bg-warning{background-color:hsl(var(--warning))}.bg-warning\/10{background-color:hsl(var(--warning) / .1)}.bg-warning\/15{background-color:hsl(var(--warning) / .15)}.bg-warning\/20{background-color:hsl(var(--warning) / .2)}.bg-warning\/5{background-color:hsl(var(--warning) / .05)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pl-8{padding-left:2rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-3{padding-right:.75rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:JetBrains Mono,monospace}.font-sans{font-family:Inter,system-ui,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-relaxed{line-height:1.625}.tracking-normal{letter-spacing:0em}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-brand{color:hsl(var(--brand))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-cyan-600{--tw-text-opacity: 1;color:rgb(8 145 178 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--foreground))}.text-lime-600{--tw-text-opacity: 1;color:rgb(101 163 13 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-muted-foreground\/50{color:hsl(var(--muted-foreground) / .5)}.text-pillar-graph{--tw-text-opacity: 1;color:hsl(var(--pillar-graph) / var(--tw-text-opacity, 1))}.text-pillar-memory{--tw-text-opacity: 1;color:hsl(var(--pillar-memory) / var(--tw-text-opacity, 1))}.text-pillar-review{--tw-text-opacity: 1;color:hsl(var(--pillar-review) / var(--tw-text-opacity, 1))}.text-pillar-tokens{--tw-text-opacity: 1;color:hsl(var(--pillar-tokens) / var(--tw-text-opacity, 1))}.text-pink-600{--tw-text-opacity: 1;color:rgb(219 39 119 / var(--tw-text-opacity, 1))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-success{color:hsl(var(--success))}.text-violet-600{--tw-text-opacity: 1;color:rgb(124 58 237 / var(--tw-text-opacity, 1))}.text-warning{color:hsl(var(--warning))}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\:glow:hover{box-shadow:0 0 60px -15px hsl(var(--primary) / .3)}.light .hover\:glow:hover{box-shadow:0 0 60px -15px hsl(var(--primary) / .15)}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\:pt-0:first-child{padding-top:0}.last\:pb-0:last-child{padding-bottom:0}.hover\:-translate-y-1:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-primary\/50:hover{border-color:hsl(var(--primary) / .5)}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-background\/60:hover{background-color:hsl(var(--background) / .6)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus\:border-destructive:focus{border-color:hsl(var(--destructive))}.focus\:border-primary\/50:focus{border-color:hsl(var(--primary) / .5)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.prose-headings\:font-semibold :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *))){font-weight:600}.prose-headings\:text-foreground :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-p\:text-muted-foreground :is(:where(p):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-a\:text-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--primary))}.prose-a\:no-underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:none}.hover\:prose-a\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))):hover{text-decoration-line:underline}.prose-blockquote\:border-border :is(:where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *))){border-color:hsl(var(--border))}.prose-blockquote\:text-muted-foreground :is(:where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-strong\:text-foreground :is(:where(strong):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-em\:text-foreground :is(:where(em):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-code\:rounded :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){border-radius:.25rem}.prose-code\:bg-muted\/60 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){background-color:hsl(var(--muted) / .6)}.prose-code\:px-1 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){padding-left:.25rem;padding-right:.25rem}.prose-code\:py-0\.5 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){padding-top:.125rem;padding-bottom:.125rem}.prose-code\:text-foreground :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-code\:before\:content-none :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))):before{--tw-content: none;content:var(--tw-content)}.prose-code\:after\:content-none :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))):after{--tw-content: none;content:var(--tw-content)}.prose-pre\:border :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){border-width:1px}.prose-pre\:bg-muted\/50 :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){background-color:hsl(var(--muted) / .5)}.prose-pre\:text-foreground :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-li\:text-muted-foreground :is(:where(li):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-th\:text-foreground :is(:where(th):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-td\:text-muted-foreground :is(:where(td):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-hr\:border-border :is(:where(hr):not(:where([class~=not-prose],[class~=not-prose] *))){border-color:hsl(var(--border))}@media(min-width:640px){.sm\:mr-3{margin-right:.75rem}.sm\:block{display:block}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.sm\:px-4{padding-left:1rem;padding-right:1rem}}@media(min-width:1024px){.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-\[16rem_1fr\]{grid-template-columns:16rem 1fr}.lg\:grid-cols-\[18rem_1fr\]{grid-template-columns:18rem 1fr}.lg\:grid-cols-\[1fr_20rem\]{grid-template-columns:1fr 20rem}.lg\:items-start{align-items:flex-start}.lg\:px-6{padding-left:1.5rem;padding-right:1.5rem}.lg\:pb-6{padding-bottom:1.5rem}.lg\:pt-4{padding-top:1rem}}@media(min-width:1280px){.xl\:inline{display:inline}}@media(min-width:1536px){.\32xl\:px-2\.5{padding-left:.625rem;padding-right:.625rem}}.\[\&\>p\]\:inline>p{display:inline} diff --git a/internal/ui/assets/assets/index-BqyDLv8O.css b/internal/ui/assets/assets/index-BqyDLv8O.css new file mode 100644 index 0000000..b2666d1 --- /dev/null +++ b/internal/ui/assets/assets/index-BqyDLv8O.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,system-ui,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root,.dark{color-scheme:dark;--background: 240 10% 3.9%;--foreground: 0 0% 98%;--card: 240 9% 7%;--card-foreground: 0 0% 98%;--popover: 240 9% 7%;--popover-foreground: 0 0% 98%;--primary: 357 89% 47%;--primary-foreground: 0 0% 100%;--secondary: 240 4% 16%;--secondary-foreground: 0 0% 98%;--muted: 240 5% 14%;--muted-foreground: 240 5% 64.9%;--accent: 240 4% 16%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 50.6%;--destructive-foreground: 0 0% 98%;--success: 142 71% 45%;--success-foreground: 0 0% 98%;--warning: 38 92% 50%;--warning-foreground: 0 0% 98%;--border: 240 6% 16%;--input: 240 6% 16%;--ring: 357 89% 47%;--radius: .25rem;--brand: 357 89% 47%;--pillar-memory: 217 91% 60%;--pillar-graph: 262 83% 66%;--pillar-review: 142 71% 45%;--pillar-tokens: 38 92% 50%;--severity-critical: 0 72% 51%;--severity-high: 25 90% 48%;--severity-moderate: 38 92% 50%;--severity-low: 217 91% 60%;--figure-1: 217 91% 55%;--figure-2: 330 81% 50%;--figure-3: 32 95% 44%;--figure-4: 160 94% 30%;--figure-5: 262 83% 58%;--figure-6: 192 91% 36%}.\!dark{color-scheme:dark!important;--background: 240 10% 3.9% !important;--foreground: 0 0% 98% !important;--card: 240 9% 7% !important;--card-foreground: 0 0% 98% !important;--popover: 240 9% 7% !important;--popover-foreground: 0 0% 98% !important;--primary: 357 89% 47% !important;--primary-foreground: 0 0% 100% !important;--secondary: 240 4% 16% !important;--secondary-foreground: 0 0% 98% !important;--muted: 240 5% 14% !important;--muted-foreground: 240 5% 64.9% !important;--accent: 240 4% 16% !important;--accent-foreground: 0 0% 98% !important;--destructive: 0 62.8% 50.6% !important;--destructive-foreground: 0 0% 98% !important;--success: 142 71% 45% !important;--success-foreground: 0 0% 98% !important;--warning: 38 92% 50% !important;--warning-foreground: 0 0% 98% !important;--border: 240 6% 16% !important;--input: 240 6% 16% !important;--ring: 357 89% 47% !important;--radius: .25rem !important;--brand: 357 89% 47% !important;--pillar-memory: 217 91% 60% !important;--pillar-graph: 262 83% 66% !important;--pillar-review: 142 71% 45% !important;--pillar-tokens: 38 92% 50% !important;--severity-critical: 0 72% 51% !important;--severity-high: 25 90% 48% !important;--severity-moderate: 38 92% 50% !important;--severity-low: 217 91% 60% !important;--figure-1: 217 91% 55% !important;--figure-2: 330 81% 50% !important;--figure-3: 32 95% 44% !important;--figure-4: 160 94% 30% !important;--figure-5: 262 83% 58% !important;--figure-6: 192 91% 36% !important}.light{color-scheme:light;--background: 240 20% 98%;--foreground: 240 10% 10%;--card: 0 0% 100%;--card-foreground: 240 10% 10%;--popover: 0 0% 100%;--popover-foreground: 240 10% 10%;--primary: 357 89% 47%;--primary-foreground: 0 0% 100%;--secondary: 240 10% 94%;--secondary-foreground: 240 10% 20%;--muted: 240 10% 94%;--muted-foreground: 240 5% 45%;--accent: 357 60% 96%;--accent-foreground: 357 70% 40%;--destructive: 0 84% 60%;--destructive-foreground: 0 0% 100%;--success: 142 70% 35%;--success-foreground: 0 0% 100%;--warning: 38 92% 45%;--warning-foreground: 0 0% 100%;--border: 240 10% 90%;--input: 240 10% 90%;--ring: 357 89% 47%;--brand: 357 89% 47%;--pillar-memory: 217 91% 55%;--pillar-graph: 262 83% 58%;--pillar-review: 142 71% 40%;--pillar-tokens: 38 92% 45%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));font-family:Inter,system-ui,sans-serif;color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html{scroll-behavior:smooth}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media(min-width:1400px){.container{max-width:1400px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: oklch(37.3% .034 259.733);--tw-prose-headings: oklch(21% .034 264.665);--tw-prose-lead: oklch(44.6% .03 256.802);--tw-prose-links: oklch(21% .034 264.665);--tw-prose-bold: oklch(21% .034 264.665);--tw-prose-counters: oklch(55.1% .027 264.364);--tw-prose-bullets: oklch(87.2% .01 258.338);--tw-prose-hr: oklch(92.8% .006 264.531);--tw-prose-quotes: oklch(21% .034 264.665);--tw-prose-quote-borders: oklch(92.8% .006 264.531);--tw-prose-captions: oklch(55.1% .027 264.364);--tw-prose-kbd: oklch(21% .034 264.665);--tw-prose-kbd-shadows: color-mix(in oklab, oklch(21% .034 264.665) 10%, transparent);--tw-prose-code: oklch(21% .034 264.665);--tw-prose-pre-code: oklch(92.8% .006 264.531);--tw-prose-pre-bg: oklch(27.8% .033 256.848);--tw-prose-th-borders: oklch(87.2% .01 258.338);--tw-prose-td-borders: oklch(92.8% .006 264.531);--tw-prose-invert-body: oklch(87.2% .01 258.338);--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: oklch(70.7% .022 261.325);--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: oklch(70.7% .022 261.325);--tw-prose-invert-bullets: oklch(44.6% .03 256.802);--tw-prose-invert-hr: oklch(37.3% .034 259.733);--tw-prose-invert-quotes: oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders: oklch(37.3% .034 259.733);--tw-prose-invert-captions: oklch(70.7% .022 261.325);--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: rgb(255 255 255 / 10%);--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: oklch(44.6% .03 256.802);--tw-prose-invert-td-borders: oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.light .gradient-text{--tw-gradient-from: #9333ea var(--tw-gradient-from-position);--tw-gradient-to: rgb(147 51 234 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(124 58 237 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7c3aed var(--tw-gradient-via-position), var(--tw-gradient-to);--tw-gradient-to: #db2777 var(--tw-gradient-to-position)}.light .glass{border-bottom-width:1px;border-color:hsl(var(--border) / .5);background-color:hsl(var(--background) / .9);--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.glow{box-shadow:0 0 60px -15px hsl(var(--primary) / .3)}.light .glow{box-shadow:0 0 60px -15px hsl(var(--primary) / .15)}.glow-sm{box-shadow:0 0 30px -10px hsl(var(--primary) / .2)}.light .glow-sm{box-shadow:0 0 30px -10px hsl(var(--primary) / .1)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.left-0{left:0}.left-2\.5{left:.625rem}.right-0{right:0}.right-3{right:.75rem}.right-4{right:1rem}.top-1\/2{top:50%}.top-3{top:.75rem}.top-4{top:1rem}.top-full{top:100%}.z-40{z-index:40}.z-50{z-index:50}.m-3{margin:.75rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-1\.5{margin-left:.375rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.h-screen{height:100vh}.max-h-64{max-height:16rem}.max-h-\[32rem\]{max-height:32rem}.max-h-\[85vh\]{max-height:85vh}.min-h-0{min-height:0px}.min-h-10{min-height:2.5rem}.min-h-7{min-height:1.75rem}.min-h-8{min-height:2rem}.min-h-\[24rem\]{min-height:24rem}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-10{min-width:2.5rem}.min-w-7{min-width:1.75rem}.min-w-8{min-width:2rem}.max-w-2xl{max-width:42rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-2{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fade-in .3s ease-out}@keyframes fade-up{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fade-up{animation:fade-up .4s ease-out}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}0%,to{opacity:1}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes shimmer{to{transform:translate(100%)}}.animate-shimmer{animation:shimmer 2s infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize-y{resize:vertical}.list-none{list-style-type:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-y-1{row-gap:.25rem}.gap-y-1\.5{row-gap:.375rem}.gap-y-2{row-gap:.5rem}.gap-y-3{row-gap:.75rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-amber-600\/20{border-color:#d9770633}.border-blue-600\/20{border-color:#2563eb33}.border-border{border-color:hsl(var(--border))}.border-border\/60{border-color:hsl(var(--border) / .6)}.border-border\/70{border-color:hsl(var(--border) / .7)}.border-cyan-600\/20{border-color:#0891b233}.border-destructive\/30{border-color:hsl(var(--destructive) / .3)}.border-destructive\/40{border-color:hsl(var(--destructive) / .4)}.border-destructive\/60{border-color:hsl(var(--destructive) / .6)}.border-emerald-600\/20{border-color:#05966933}.border-fuchsia-600\/20{border-color:#c026d333}.border-input{border-color:hsl(var(--input))}.border-lime-600\/20{border-color:#65a30d33}.border-pink-600\/20{border-color:#db277733}.border-primary\/30{border-color:hsl(var(--primary) / .3)}.border-primary\/40{border-color:hsl(var(--primary) / .4)}.border-red-600\/20{border-color:#dc262633}.border-success\/40{border-color:hsl(var(--success) / .4)}.border-transparent{border-color:transparent}.border-violet-600\/20{border-color:#7c3aed33}.border-warning\/40{border-color:hsl(var(--warning) / .4)}.border-r-primary\/50{border-right-color:hsl(var(--primary) / .5)}.border-t-primary{border-top-color:hsl(var(--primary))}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-amber-600\/10{background-color:#d977061a}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-600\/10{background-color:#2563eb1a}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-card\/80{background-color:hsl(var(--card) / .8)}.bg-cyan-600{--tw-bg-opacity: 1;background-color:rgb(8 145 178 / var(--tw-bg-opacity, 1))}.bg-cyan-600\/10{background-color:#0891b21a}.bg-destructive{background-color:hsl(var(--destructive))}.bg-destructive\/10{background-color:hsl(var(--destructive) / .1)}.bg-destructive\/15{background-color:hsl(var(--destructive) / .15)}.bg-destructive\/5{background-color:hsl(var(--destructive) / .05)}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-600\/10{background-color:#0596691a}.bg-fuchsia-600{--tw-bg-opacity: 1;background-color:rgb(192 38 211 / var(--tw-bg-opacity, 1))}.bg-fuchsia-600\/10{background-color:#c026d31a}.bg-lime-600{--tw-bg-opacity: 1;background-color:rgb(101 163 13 / var(--tw-bg-opacity, 1))}.bg-lime-600\/10{background-color:#65a30d1a}.bg-muted{background-color:hsl(var(--muted))}.bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-muted\/40{background-color:hsl(var(--muted) / .4)}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-muted\/60{background-color:hsl(var(--muted) / .6)}.bg-pillar-graph{--tw-bg-opacity: 1;background-color:hsl(var(--pillar-graph) / var(--tw-bg-opacity, 1))}.bg-pillar-graph\/15{background-color:hsl(var(--pillar-graph) / .15)}.bg-pillar-memory\/15{background-color:hsl(var(--pillar-memory) / .15)}.bg-pillar-review\/15{background-color:hsl(var(--pillar-review) / .15)}.bg-pillar-tokens\/15{background-color:hsl(var(--pillar-tokens) / .15)}.bg-pink-600{--tw-bg-opacity: 1;background-color:rgb(219 39 119 / var(--tw-bg-opacity, 1))}.bg-pink-600\/10{background-color:#db27771a}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/15{background-color:hsl(var(--primary) / .15)}.bg-primary\/25{background-color:hsl(var(--primary) / .25)}.bg-primary\/5{background-color:hsl(var(--primary) / .05)}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-red-600\/10{background-color:#dc26261a}.bg-secondary{background-color:hsl(var(--secondary))}.bg-success{background-color:hsl(var(--success))}.bg-success\/10{background-color:hsl(var(--success) / .1)}.bg-success\/15{background-color:hsl(var(--success) / .15)}.bg-success\/20{background-color:hsl(var(--success) / .2)}.bg-success\/5{background-color:hsl(var(--success) / .05)}.bg-transparent{background-color:transparent}.bg-violet-600{--tw-bg-opacity: 1;background-color:rgb(124 58 237 / var(--tw-bg-opacity, 1))}.bg-violet-600\/10{background-color:#7c3aed1a}.bg-warning{background-color:hsl(var(--warning))}.bg-warning\/10{background-color:hsl(var(--warning) / .1)}.bg-warning\/15{background-color:hsl(var(--warning) / .15)}.bg-warning\/20{background-color:hsl(var(--warning) / .2)}.bg-warning\/5{background-color:hsl(var(--warning) / .05)}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-foreground\/\[0\.06\]{--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), hsl(var(--foreground) / .06) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pl-8{padding-left:2rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-3{padding-right:.75rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:JetBrains Mono,monospace}.font-sans{font-family:Inter,system-ui,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-relaxed{line-height:1.625}.tracking-normal{letter-spacing:0em}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-brand{color:hsl(var(--brand))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-cyan-600{--tw-text-opacity: 1;color:rgb(8 145 178 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--foreground))}.text-fuchsia-600{--tw-text-opacity: 1;color:rgb(192 38 211 / var(--tw-text-opacity, 1))}.text-lime-600{--tw-text-opacity: 1;color:rgb(101 163 13 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-muted-foreground\/50{color:hsl(var(--muted-foreground) / .5)}.text-pillar-graph{--tw-text-opacity: 1;color:hsl(var(--pillar-graph) / var(--tw-text-opacity, 1))}.text-pillar-memory{--tw-text-opacity: 1;color:hsl(var(--pillar-memory) / var(--tw-text-opacity, 1))}.text-pillar-review{--tw-text-opacity: 1;color:hsl(var(--pillar-review) / var(--tw-text-opacity, 1))}.text-pillar-tokens{--tw-text-opacity: 1;color:hsl(var(--pillar-tokens) / var(--tw-text-opacity, 1))}.text-pink-600{--tw-text-opacity: 1;color:rgb(219 39 119 / var(--tw-text-opacity, 1))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-success{color:hsl(var(--success))}.text-violet-600{--tw-text-opacity: 1;color:rgb(124 58 237 / var(--tw-text-opacity, 1))}.text-warning{color:hsl(var(--warning))}.underline{text-decoration-line:underline}.decoration-transparent{text-decoration-color:transparent}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.blur-2xl{--tw-blur: blur(40px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\:glow:hover{box-shadow:0 0 60px -15px hsl(var(--primary) / .3)}.light .hover\:glow:hover{box-shadow:0 0 60px -15px hsl(var(--primary) / .15)}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\:pt-0:first-child{padding-top:0}.last\:border-0:last-child{border-width:0px}.last\:pb-0:last-child{padding-bottom:0}.hover\:-translate-y-1:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-primary\/50:hover{border-color:hsl(var(--primary) / .5)}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-background\/60:hover{background-color:hsl(var(--background) / .6)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/60:hover{background-color:hsl(var(--muted) / .6)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:decoration-current:hover{text-decoration-color:currentColor}.focus\:border-destructive:focus{border-color:hsl(var(--destructive))}.focus\:border-primary\/50:focus{border-color:hsl(var(--primary) / .5)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.prose-headings\:font-semibold :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *))){font-weight:600}.prose-headings\:text-foreground :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-p\:text-muted-foreground :is(:where(p):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-a\:text-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--primary))}.prose-a\:no-underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:none}.hover\:prose-a\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))):hover{text-decoration-line:underline}.prose-blockquote\:border-border :is(:where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *))){border-color:hsl(var(--border))}.prose-blockquote\:text-muted-foreground :is(:where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-strong\:text-foreground :is(:where(strong):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-em\:text-foreground :is(:where(em):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-code\:rounded :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){border-radius:.25rem}.prose-code\:bg-muted\/60 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){background-color:hsl(var(--muted) / .6)}.prose-code\:px-1 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){padding-left:.25rem;padding-right:.25rem}.prose-code\:py-0\.5 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){padding-top:.125rem;padding-bottom:.125rem}.prose-code\:text-foreground :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-code\:before\:content-none :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))):before{--tw-content: none;content:var(--tw-content)}.prose-code\:after\:content-none :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))):after{--tw-content: none;content:var(--tw-content)}.prose-pre\:border :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){border-width:1px}.prose-pre\:bg-muted\/50 :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){background-color:hsl(var(--muted) / .5)}.prose-pre\:text-foreground :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-li\:text-muted-foreground :is(:where(li):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-th\:text-foreground :is(:where(th):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-td\:text-muted-foreground :is(:where(td):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-hr\:border-border :is(:where(hr):not(:where([class~=not-prose],[class~=not-prose] *))){border-color:hsl(var(--border))}@media(min-width:640px){.sm\:mr-3{margin-right:.75rem}.sm\:block{display:block}.sm\:w-\[32\%\]{width:32%}.sm\:w-\[40\%\]{width:40%}.sm\:w-\[55\%\]{width:55%}.sm\:min-w-\[22rem\]{min-width:22rem}.sm\:min-w-\[26rem\]{min-width:26rem}.sm\:min-w-\[32rem\]{min-width:32rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.sm\:px-4{padding-left:1rem;padding-right:1rem}}@media(min-width:1024px){.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-\[16rem_1fr\]{grid-template-columns:16rem 1fr}.lg\:grid-cols-\[18rem_1fr\]{grid-template-columns:18rem 1fr}.lg\:grid-cols-\[1fr_20rem\]{grid-template-columns:1fr 20rem}.lg\:items-start{align-items:flex-start}.lg\:px-6{padding-left:1.5rem;padding-right:1.5rem}.lg\:pb-6{padding-bottom:1.5rem}.lg\:pt-4{padding-top:1rem}}@media(min-width:1280px){.xl\:inline{display:inline}}@media(min-width:1536px){.\32xl\:px-2\.5{padding-left:.625rem;padding-right:.625rem}}.\[\&\>p\]\:inline>p{display:inline} diff --git a/internal/ui/assets/assets/index-WjZ6Jgkb.js b/internal/ui/assets/assets/index-EDgcobA_.js similarity index 65% rename from internal/ui/assets/assets/index-WjZ6Jgkb.js rename to internal/ui/assets/assets/index-EDgcobA_.js index 6972fd8..d88ac36 100644 --- a/internal/ui/assets/assets/index-WjZ6Jgkb.js +++ b/internal/ui/assets/assets/index-EDgcobA_.js @@ -1,241 +1,236 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/force-graph-HZtkkbK0.js","assets/radial-aO03NmL0.js","assets/Paired-DNTqsPj0.js","assets/index-DHVCIEzJ.js","assets/3d-force-graph-B8lgMx4q.js","assets/three.module-D-PgY1-x.js"])))=>i.map(i=>d[i]); -var Bn=Object.defineProperty;var Sn=(e,t,n)=>t in e?Bn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var O1=(e,t,n)=>Sn(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&l(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function l(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/** +var Qn=Object.defineProperty;var Nn=(e,t,n)=>t in e?Qn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var W1=(e,t,n)=>Nn(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&l(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function l(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/** * @vue/shared v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function yt(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const W1={},le=[],z2=()=>{},H7=()=>!1,J4=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),z4=e=>e.startsWith("onUpdate:"),r2=Object.assign,bt=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Rn=Object.prototype.hasOwnProperty,N1=(e,t)=>Rn.call(e,t),v1=Array.isArray,M3=e=>u4(e)==="[object Map]",ie=e=>u4(e)==="[object Set]",zt=e=>u4(e)==="[object Date]",I1=e=>typeof e=="function",T1=e=>typeof e=="string",G2=e=>typeof e=="symbol",G1=e=>e!==null&&typeof e=="object",T7=e=>(G1(e)||I1(e))&&I1(e.then)&&I1(e.catch),Y7=Object.prototype.toString,u4=e=>Y7.call(e),Qn=e=>u4(e).slice(8,-1),V7=e=>u4(e)==="[object Object]",kt=e=>T1(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Se=yt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),j4=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Nn=/-\w/g,b2=j4(e=>e.replace(Nn,t=>t.slice(1).toUpperCase())),Kn=/\B([A-Z])/g,Z3=j4(e=>e.replace(Kn,"-$1").toLowerCase()),X4=j4(e=>e.charAt(0).toUpperCase()+e.slice(1)),y5=j4(e=>e?`on${X4(e)}`:""),V2=(e,t)=>!Object.is(e,t),D4=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},Ct=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Gn=e=>{const t=T1(e)?Number(e):NaN;return isNaN(t)?e:t};let jt;const q4=()=>jt||(jt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function S2(e){if(v1(e)){const t={};for(let n=0;n{if(n){const l=n.split($n);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function f1(e){let t="";if(T1(e))t=e;else if(v1(e))for(let n=0;npe(n,t))}const j7=e=>!!(e&&e.__v_isRef===!0),N=e=>T1(e)?e:e==null?"":v1(e)||G1(e)&&(e.toString===Y7||!I1(e.toString))?j7(e)?N(e.value):JSON.stringify(e,X7,2):String(e),X7=(e,t)=>j7(t)?X7(e,t.value):M3(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,o],r)=>(n[b5(l,r)+" =>"]=o,n),{})}:ie(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>b5(n))}:G2(t)?b5(t):G1(t)&&!v1(t)&&!V7(t)?String(t):t,b5=(e,t="")=>{var n;return G2(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**/function bt(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const L1={},oe=[],z2=()=>{},V7=()=>!1,j4=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),X4=e=>e.startsWith("onUpdate:"),r2=Object.assign,kt=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Kn=Object.prototype.hasOwnProperty,N1=(e,t)=>Kn.call(e,t),v1=Array.isArray,M3=e=>d4(e)==="[object Map]",ce=e=>d4(e)==="[object Set]",Xt=e=>d4(e)==="[object Date]",_1=e=>typeof e=="function",H1=e=>typeof e=="string",G2=e=>typeof e=="symbol",G1=e=>e!==null&&typeof e=="object",U7=e=>(G1(e)||_1(e))&&_1(e.then)&&_1(e.catch),J7=Object.prototype.toString,d4=e=>J7.call(e),Gn=e=>d4(e).slice(8,-1),z7=e=>d4(e)==="[object Object]",Ct=e=>H1(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ne=bt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),q4=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},On=/-\w/g,b2=q4(e=>e.replace(On,t=>t.slice(1).toUpperCase())),$n=/\B([A-Z])/g,Z3=q4(e=>e.replace($n,"-$1").toLowerCase()),e5=q4(e=>e.charAt(0).toUpperCase()+e.slice(1)),y5=q4(e=>e?`on${e5(e)}`:""),V2=(e,t)=>!Object.is(e,t),F4=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},wt=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Wn=e=>{const t=H1(e)?Number(e):NaN;return isNaN(t)?e:t};let qt;const t5=()=>qt||(qt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function M2(e){if(v1(e)){const t={};for(let n=0;n{if(n){const l=n.split(Pn);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function c1(e){let t="";if(H1(e))t=e;else if(v1(e))for(let n=0;nge(n,t))}const e8=e=>!!(e&&e.__v_isRef===!0),Q=e=>H1(e)?e:e==null?"":v1(e)||G1(e)&&(e.toString===J7||!_1(e.toString))?e8(e)?Q(e.value):JSON.stringify(e,t8,2):String(e),t8=(e,t)=>e8(t)?t8(e,t.value):M3(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,o],r)=>(n[b5(l,r)+" =>"]=o,n),{})}:ce(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>b5(n))}:G2(t)?b5(t):G1(t)&&!v1(t)&&!z7(t)?String(t):t,b5=(e,t="")=>{var n;return G2(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let a2;class Yn{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&a2&&(a2.active?(this.parent=a2,this.index=(a2.scopes||(a2.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const l=this.scopes.slice();for(t=0,n=l.length;t0&&--this._on===0){if(a2===this)a2=this.prevScope;else{let t=a2;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n0)return;if(Qe){let t=Qe;for(Qe=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Re;){let t=Re;for(Re=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function n8(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function l8(e){let t,n=e.depsTail,l=n;for(;l;){const o=l.prevDep;l.version===-1?(l===n&&(n=o),_t(l),Un(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=o}e.deps=t,e.depsTail=n}function V5(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(o8(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function o8(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Pe)||(e.globalVersion=Pe,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!V5(e))))return;e.flags|=2;const t=e.dep,n=P1,l=N2;P1=e,N2=!0;try{n8(e);const o=e.fn(e._value);(t.version===0||V2(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{P1=n,N2=l,l8(e),e.flags&=-3}}function _t(e,t=!1){const{dep:n,prevSub:l,nextSub:o}=e;if(l&&(l.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)_t(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Un(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let N2=!0;const r8=[];function u3(){r8.push(N2),N2=!1}function d3(){const e=r8.pop();N2=e===void 0?!0:e}function qt(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=P1;P1=void 0;try{t()}finally{P1=n}}}let Pe=0;class Jn{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class It{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!P1||!N2||P1===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==P1)n=this.activeLink=new Jn(P1,this),P1.deps?(n.prevDep=P1.depsTail,P1.depsTail.nextDep=n,P1.depsTail=n):P1.deps=P1.depsTail=n,s8(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=P1.depsTail,n.nextDep=void 0,P1.depsTail.nextDep=n,P1.depsTail=n,P1.deps===n&&(P1.deps=l)}return n}trigger(t){this.version++,Pe++,this.notify(t)}notify(t){wt();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{xt()}}}function s8(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)s8(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const U5=new WeakMap,Y3=Symbol(""),J5=Symbol(""),He=Symbol("");function f2(e,t,n){if(N2&&P1){let l=U5.get(e);l||U5.set(e,l=new Map);let o=l.get(n);o||(l.set(n,o=new It),o.map=l,o.key=n),o.track()}}function s3(e,t,n,l,o,r){const s=U5.get(e);if(!s){Pe++;return}const a=i=>{i&&i.trigger()};if(wt(),t==="clear")s.forEach(a);else{const i=v1(e),c=i&&kt(n);if(i&&n==="length"){const d=Number(l);s.forEach((u,A)=>{(A==="length"||A===He||!G2(A)&&A>=d)&&a(u)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),c&&a(s.get(He)),t){case"add":i?c&&a(s.get("length")):(a(s.get(Y3)),M3(e)&&a(s.get(J5)));break;case"delete":i||(a(s.get(Y3)),M3(e)&&a(s.get(J5)));break;case"set":M3(e)&&a(s.get(Y3));break}}xt()}function X3(e){const t=R1(e);return t===e?t:(f2(t,"iterate",He),E2(e)?t:t.map(O2))}function e5(e){return f2(e=R1(e),"iterate",He),e}function T2(e,t){return f3(e)?ce(V3(e)?O2(t):t):O2(t)}const zn={__proto__:null,[Symbol.iterator](){return C5(this,Symbol.iterator,e=>T2(this,e))},concat(...e){return X3(this).concat(...e.map(t=>v1(t)?X3(t):t))},entries(){return C5(this,"entries",e=>(e[1]=T2(this,e[1]),e))},every(e,t){return e3(this,"every",e,t,void 0,arguments)},filter(e,t){return e3(this,"filter",e,t,n=>n.map(l=>T2(this,l)),arguments)},find(e,t){return e3(this,"find",e,t,n=>T2(this,n),arguments)},findIndex(e,t){return e3(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return e3(this,"findLast",e,t,n=>T2(this,n),arguments)},findLastIndex(e,t){return e3(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return e3(this,"forEach",e,t,void 0,arguments)},includes(...e){return w5(this,"includes",e)},indexOf(...e){return w5(this,"indexOf",e)},join(e){return X3(this).join(e)},lastIndexOf(...e){return w5(this,"lastIndexOf",e)},map(e,t){return e3(this,"map",e,t,void 0,arguments)},pop(){return be(this,"pop")},push(...e){return be(this,"push",e)},reduce(e,...t){return e6(this,"reduce",e,t)},reduceRight(e,...t){return e6(this,"reduceRight",e,t)},shift(){return be(this,"shift")},some(e,t){return e3(this,"some",e,t,void 0,arguments)},splice(...e){return be(this,"splice",e)},toReversed(){return X3(this).toReversed()},toSorted(e){return X3(this).toSorted(e)},toSpliced(...e){return X3(this).toSpliced(...e)},unshift(...e){return be(this,"unshift",e)},values(){return C5(this,"values",e=>T2(this,e))}};function C5(e,t,n){const l=e5(e),o=l[t]();return l!==e&&!E2(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const jn=Array.prototype;function e3(e,t,n,l,o,r){const s=e5(e),a=s!==e&&!E2(e),i=s[t];if(i!==jn[t]){const u=i.apply(e,r);return a?O2(u):u}let c=n;s!==e&&(a?c=function(u,A){return n.call(this,T2(e,u),A,e)}:n.length>2&&(c=function(u,A){return n.call(this,u,A,e)}));const d=i.call(s,c,l);return a&&o?o(d):d}function e6(e,t,n,l){const o=e5(e),r=o!==e&&!E2(e);let s=n,a=!1;o!==e&&(r?(a=l.length===0,s=function(c,d,u){return a&&(a=!1,c=T2(e,c)),n.call(this,c,T2(e,d),u,e)}):n.length>3&&(s=function(c,d,u){return n.call(this,c,d,u,e)}));const i=o[t](s,...l);return a?T2(e,i):i}function w5(e,t,n){const l=R1(e);f2(l,"iterate",He);const o=l[t](...n);return(o===-1||o===!1)&&Dt(n[0])?(n[0]=R1(n[0]),l[t](...n)):o}function be(e,t,n=[]){u3(),wt();const l=R1(e)[t].apply(e,n);return xt(),d3(),l}const Xn=yt("__proto__,__v_isRef,__isVue"),a8=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(G2));function qn(e){G2(e)||(e=String(e));const t=R1(this);return f2(t,"has",e),t.hasOwnProperty(e)}class i8{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return l===(o?r?cl:f8:r?d8:u8).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const s=v1(t);if(!o){let i;if(s&&(i=zn[n]))return i;if(n==="hasOwnProperty")return qn}const a=Reflect.get(t,n,n2(t)?t:l);if((G2(n)?a8.has(n):Xn(n))||(o||f2(t,"get",n),r))return a;if(n2(a)){const i=s&&kt(n)?a:a.value;return o&&G1(i)?j5(i):i}return G1(a)?o?j5(a):t5(a):a}}class c8 extends i8{constructor(t=!1){super(!1,t)}set(t,n,l,o){let r=t[n];const s=v1(t)&&kt(n);if(!this._isShallow){const c=f3(r);if(!E2(l)&&!f3(l)&&(r=R1(r),l=R1(l)),!s&&n2(r)&&!n2(l))return c||(r.value=l),!0}const a=s?Number(n)e,m4=e=>Reflect.getPrototypeOf(e);function ol(e,t,n){return function(...l){const o=this.__v_raw,r=R1(o),s=M3(r),a=e==="entries"||e===Symbol.iterator&&s,i=e==="keys"&&s,c=o[e](...l),d=n?z5:t?ce:O2;return!t&&f2(r,"iterate",i?J5:Y3),r2(Object.create(c),{next(){const{value:u,done:A}=c.next();return A?{value:u,done:A}:{value:a?[d(u[0]),d(u[1])]:d(u),done:A}}})}}function g4(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function rl(e,t){const n={get(o){const r=this.__v_raw,s=R1(r),a=R1(o);e||(V2(o,a)&&f2(s,"get",o),f2(s,"get",a));const{has:i}=m4(s),c=t?z5:e?ce:O2;if(i.call(s,o))return c(r.get(o));if(i.call(s,a))return c(r.get(a));r!==s&&r.get(o)},get size(){const o=this.__v_raw;return!e&&f2(R1(o),"iterate",Y3),o.size},has(o){const r=this.__v_raw,s=R1(r),a=R1(o);return e||(V2(o,a)&&f2(s,"has",o),f2(s,"has",a)),o===a?r.has(o):r.has(o)||r.has(a)},forEach(o,r){const s=this,a=s.__v_raw,i=R1(a),c=t?z5:e?ce:O2;return!e&&f2(i,"iterate",Y3),a.forEach((d,u)=>o.call(r,c(d),c(u),s))}};return r2(n,e?{add:g4("add"),set:g4("set"),delete:g4("delete"),clear:g4("clear")}:{add(o){const r=R1(this),s=m4(r),a=R1(o),i=!t&&!E2(o)&&!f3(o)?a:o;return s.has.call(r,i)||V2(o,i)&&s.has.call(r,o)||V2(a,i)&&s.has.call(r,a)||(r.add(i),s3(r,"add",i,i)),this},set(o,r){!t&&!E2(r)&&!f3(r)&&(r=R1(r));const s=R1(this),{has:a,get:i}=m4(s);let c=a.call(s,o);c||(o=R1(o),c=a.call(s,o));const d=i.call(s,o);return s.set(o,r),c?V2(r,d)&&s3(s,"set",o,r):s3(s,"add",o,r),this},delete(o){const r=R1(this),{has:s,get:a}=m4(r);let i=s.call(r,o);i||(o=R1(o),i=s.call(r,o)),a&&a.call(r,o);const c=r.delete(o);return i&&s3(r,"delete",o,void 0),c},clear(){const o=R1(this),r=o.size!==0,s=o.clear();return r&&s3(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=ol(o,e,t)}),n}function Mt(e,t){const n=rl(e,t);return(l,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?l:Reflect.get(N1(n,o)&&o in l?n:l,o,r)}const sl={get:Mt(!1,!1)},al={get:Mt(!1,!0)},il={get:Mt(!0,!1)};const u8=new WeakMap,d8=new WeakMap,f8=new WeakMap,cl=new WeakMap;function ul(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function t5(e){return f3(e)?e:Et(e,!1,tl,sl,u8)}function A8(e){return Et(e,!1,ll,al,d8)}function j5(e){return Et(e,!0,nl,il,f8)}function Et(e,t,n,l,o){if(!G1(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=o.get(e);if(r)return r;const s=ul(Qn(e));if(s===0)return e;const a=new Proxy(e,s===2?l:n);return o.set(e,a),a}function V3(e){return f3(e)?V3(e.__v_raw):!!(e&&e.__v_isReactive)}function f3(e){return!!(e&&e.__v_isReadonly)}function E2(e){return!!(e&&e.__v_isShallow)}function Dt(e){return e?!!e.__v_raw:!1}function R1(e){const t=e&&e.__v_raw;return t?R1(t):e}function dl(e){return!N1(e,"__v_skip")&&Object.isExtensible(e)&&U7(e,"__v_skip",!0),e}const O2=e=>G1(e)?t5(e):e,ce=e=>G1(e)?j5(e):e;function n2(e){return e?e.__v_isRef===!0:!1}function z(e){return h8(e,!1)}function fl(e){return h8(e,!0)}function h8(e,t){return n2(e)?e:new Al(e,t)}class Al{constructor(t,n){this.dep=new It,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:R1(t),this._value=n?t:O2(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||E2(t)||f3(t);t=l?t:R1(t),V2(t,n)&&(this._rawValue=t,this._value=l?t:O2(t),this.dep.trigger())}}function f(e){return n2(e)?e.value:e}const hl={get:(e,t,n)=>t==="__v_raw"?e:f(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const o=e[t];return n2(o)&&!n2(n)?(o.value=n,!0):Reflect.set(e,t,n,l)}};function p8(e){return V3(e)?e:new Proxy(e,hl)}class pl{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new It(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Pe-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&P1!==this)return t8(this,!0),!0}get value(){const t=this.dep.track();return o8(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ml(e,t,n=!1){let l,o;return I1(e)?l=e:(l=e.get,o=e.set),new pl(l,o,n)}const v4={},R4=new WeakMap;let $3;function gl(e,t=!1,n=$3){if(n){let l=R4.get(n);l||R4.set(n,l=[]),l.push(e)}}function vl(e,t,n=W1){const{immediate:l,deep:o,once:r,scheduler:s,augmentJob:a,call:i}=n,c=_=>o?_:E2(_)||o===!1||o===0?a3(_,1):a3(_);let d,u,A,m,p=!1,y=!1;if(n2(e)?(u=()=>e.value,p=E2(e)):V3(e)?(u=()=>c(e),p=!0):v1(e)?(y=!0,p=e.some(_=>V3(_)||E2(_)),u=()=>e.map(_=>{if(n2(_))return _.value;if(V3(_))return c(_);if(I1(_))return i?i(_,2):_()})):I1(e)?t?u=i?()=>i(e,2):e:u=()=>{if(A){u3();try{A()}finally{d3()}}const _=$3;$3=d;try{return i?i(e,3,[m]):e(m)}finally{$3=_}}:u=z2,t&&o){const _=u,R=o===!0?1/0:o;u=()=>a3(_(),R)}const k=Vn(),F=()=>{d.stop(),k&&k.active&&bt(k.effects,d)};if(r&&t){const _=t;t=(...R)=>{const $=_(...R);return F(),$}}let M=y?new Array(e.length).fill(v4):v4;const E=_=>{if(!(!(d.flags&1)||!d.dirty&&!_))if(t){const R=d.run();if(_||o||p||(y?R.some(($,D)=>V2($,M[D])):V2(R,M))){A&&A();const $=$3;$3=d;try{const D=[R,M===v4?void 0:y&&M[0]===v4?[]:M,m];M=R,i?i(t,3,D):t(...D)}finally{$3=$}}}else d.run()};return a&&a(E),d=new q7(u),d.scheduler=s?()=>s(E,!1):E,m=_=>gl(_,!1,d),A=d.onStop=()=>{const _=R4.get(d);if(_){if(i)i(_,4);else for(const R of _)R();R4.delete(d)}},t?l?E(!0):M=d.run():s?s(E.bind(null,!0),!0):d.run(),F.pause=d.pause.bind(d),F.resume=d.resume.bind(d),F.stop=F,F}function a3(e,t=1/0,n){if(t<=0||!G1(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,n2(e))a3(e.value,t,n);else if(v1(e))for(let l=0;l{a3(l,t,n)});else if(V7(e)){for(const l in e)a3(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&a3(e[l],t,n)}return e}/** +**/let a2;class Jn{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&a2&&(a2.active?(this.parent=a2,this.index=(a2.scopes||(a2.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const l=this.scopes.slice();for(t=0,n=l.length;t0&&--this._on===0){if(a2===this)a2=this.prevScope;else{let t=a2;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n0)return;if(Ge){let t=Ge;for(Ge=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ke;){let t=Ke;for(Ke=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function r8(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function s8(e){let t,n=e.depsTail,l=n;for(;l;){const o=l.prevDep;l.version===-1?(l===n&&(n=o),It(l),jn(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=o}e.deps=t,e.depsTail=n}function V5(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(a8(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function a8(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ye)||(e.globalVersion=Ye,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!V5(e))))return;e.flags|=2;const t=e.dep,n=P1,l=N2;P1=e,N2=!0;try{r8(e);const o=e.fn(e._value);(t.version===0||V2(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{P1=n,N2=l,s8(e),e.flags&=-3}}function It(e,t=!1){const{dep:n,prevSub:l,nextSub:o}=e;if(l&&(l.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)It(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function jn(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let N2=!0;const i8=[];function u3(){i8.push(N2),N2=!1}function d3(){const e=i8.pop();N2=e===void 0?!0:e}function t6(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=P1;P1=void 0;try{t()}finally{P1=n}}}let Ye=0;class Xn{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Mt{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!P1||!N2||P1===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==P1)n=this.activeLink=new Xn(P1,this),P1.deps?(n.prevDep=P1.depsTail,P1.depsTail.nextDep=n,P1.depsTail=n):P1.deps=P1.depsTail=n,c8(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=P1.depsTail,n.nextDep=void 0,P1.depsTail.nextDep=n,P1.depsTail=n,P1.deps===n&&(P1.deps=l)}return n}trigger(t){this.version++,Ye++,this.notify(t)}notify(t){xt();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{_t()}}}function c8(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)c8(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const U5=new WeakMap,H3=Symbol(""),J5=Symbol(""),Ve=Symbol("");function A2(e,t,n){if(N2&&P1){let l=U5.get(e);l||U5.set(e,l=new Map);let o=l.get(n);o||(l.set(n,o=new Mt),o.map=l,o.key=n),o.track()}}function s3(e,t,n,l,o,r){const s=U5.get(e);if(!s){Ye++;return}const a=i=>{i&&i.trigger()};if(xt(),t==="clear")s.forEach(a);else{const i=v1(e),c=i&&Ct(n);if(i&&n==="length"){const u=Number(l);s.forEach((d,A)=>{(A==="length"||A===Ve||!G2(A)&&A>=u)&&a(d)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),c&&a(s.get(Ve)),t){case"add":i?c&&a(s.get("length")):(a(s.get(H3)),M3(e)&&a(s.get(J5)));break;case"delete":i||(a(s.get(H3)),M3(e)&&a(s.get(J5)));break;case"set":M3(e)&&a(s.get(H3));break}}_t()}function q3(e){const t=R1(e);return t===e?t:(A2(t,"iterate",Ve),Z2(e)?t:t.map(O2))}function n5(e){return A2(e=R1(e),"iterate",Ve),e}function H2(e,t){return f3(e)?ue(Y3(e)?O2(t):t):O2(t)}const qn={__proto__:null,[Symbol.iterator](){return C5(this,Symbol.iterator,e=>H2(this,e))},concat(...e){return q3(this).concat(...e.map(t=>v1(t)?q3(t):t))},entries(){return C5(this,"entries",e=>(e[1]=H2(this,e[1]),e))},every(e,t){return e3(this,"every",e,t,void 0,arguments)},filter(e,t){return e3(this,"filter",e,t,n=>n.map(l=>H2(this,l)),arguments)},find(e,t){return e3(this,"find",e,t,n=>H2(this,n),arguments)},findIndex(e,t){return e3(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return e3(this,"findLast",e,t,n=>H2(this,n),arguments)},findLastIndex(e,t){return e3(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return e3(this,"forEach",e,t,void 0,arguments)},includes(...e){return w5(this,"includes",e)},indexOf(...e){return w5(this,"indexOf",e)},join(e){return q3(this).join(e)},lastIndexOf(...e){return w5(this,"lastIndexOf",e)},map(e,t){return e3(this,"map",e,t,void 0,arguments)},pop(){return Ce(this,"pop")},push(...e){return Ce(this,"push",e)},reduce(e,...t){return n6(this,"reduce",e,t)},reduceRight(e,...t){return n6(this,"reduceRight",e,t)},shift(){return Ce(this,"shift")},some(e,t){return e3(this,"some",e,t,void 0,arguments)},splice(...e){return Ce(this,"splice",e)},toReversed(){return q3(this).toReversed()},toSorted(e){return q3(this).toSorted(e)},toSpliced(...e){return q3(this).toSpliced(...e)},unshift(...e){return Ce(this,"unshift",e)},values(){return C5(this,"values",e=>H2(this,e))}};function C5(e,t,n){const l=n5(e),o=l[t]();return l!==e&&!Z2(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const el=Array.prototype;function e3(e,t,n,l,o,r){const s=n5(e),a=s!==e&&!Z2(e),i=s[t];if(i!==el[t]){const d=i.apply(e,r);return a?O2(d):d}let c=n;s!==e&&(a?c=function(d,A){return n.call(this,H2(e,d),A,e)}:n.length>2&&(c=function(d,A){return n.call(this,d,A,e)}));const u=i.call(s,c,l);return a&&o?o(u):u}function n6(e,t,n,l){const o=n5(e),r=o!==e&&!Z2(e);let s=n,a=!1;o!==e&&(r?(a=l.length===0,s=function(c,u,d){return a&&(a=!1,c=H2(e,c)),n.call(this,c,H2(e,u),d,e)}):n.length>3&&(s=function(c,u,d){return n.call(this,c,u,d,e)}));const i=o[t](s,...l);return a?H2(e,i):i}function w5(e,t,n){const l=R1(e);A2(l,"iterate",Ve);const o=l[t](...n);return(o===-1||o===!1)&&Zt(n[0])?(n[0]=R1(n[0]),l[t](...n)):o}function Ce(e,t,n=[]){u3(),xt();const l=R1(e)[t].apply(e,n);return _t(),d3(),l}const tl=bt("__proto__,__v_isRef,__isVue"),u8=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(G2));function nl(e){G2(e)||(e=String(e));const t=R1(this);return A2(t,"has",e),t.hasOwnProperty(e)}class d8{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return l===(o?r?fl:p8:r?h8:A8).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const s=v1(t);if(!o){let i;if(s&&(i=qn[n]))return i;if(n==="hasOwnProperty")return nl}const a=Reflect.get(t,n,n2(t)?t:l);if((G2(n)?u8.has(n):tl(n))||(o||A2(t,"get",n),r))return a;if(n2(a)){const i=s&&Ct(n)?a:a.value;return o&&G1(i)?j5(i):i}return G1(a)?o?j5(a):l5(a):a}}class f8 extends d8{constructor(t=!1){super(!1,t)}set(t,n,l,o){let r=t[n];const s=v1(t)&&Ct(n);if(!this._isShallow){const c=f3(r);if(!Z2(l)&&!f3(l)&&(r=R1(r),l=R1(l)),!s&&n2(r)&&!n2(l))return c||(r.value=l),!0}const a=s?Number(n)e,v4=e=>Reflect.getPrototypeOf(e);function al(e,t,n){return function(...l){const o=this.__v_raw,r=R1(o),s=M3(r),a=e==="entries"||e===Symbol.iterator&&s,i=e==="keys"&&s,c=o[e](...l),u=n?z5:t?ue:O2;return!t&&A2(r,"iterate",i?J5:H3),r2(Object.create(c),{next(){const{value:d,done:A}=c.next();return A?{value:d,done:A}:{value:a?[u(d[0]),u(d[1])]:u(d),done:A}}})}}function y4(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function il(e,t){const n={get(o){const r=this.__v_raw,s=R1(r),a=R1(o);e||(V2(o,a)&&A2(s,"get",o),A2(s,"get",a));const{has:i}=v4(s),c=t?z5:e?ue:O2;if(i.call(s,o))return c(r.get(o));if(i.call(s,a))return c(r.get(a));r!==s&&r.get(o)},get size(){const o=this.__v_raw;return!e&&A2(R1(o),"iterate",H3),o.size},has(o){const r=this.__v_raw,s=R1(r),a=R1(o);return e||(V2(o,a)&&A2(s,"has",o),A2(s,"has",a)),o===a?r.has(o):r.has(o)||r.has(a)},forEach(o,r){const s=this,a=s.__v_raw,i=R1(a),c=t?z5:e?ue:O2;return!e&&A2(i,"iterate",H3),a.forEach((u,d)=>o.call(r,c(u),c(d),s))}};return r2(n,e?{add:y4("add"),set:y4("set"),delete:y4("delete"),clear:y4("clear")}:{add(o){const r=R1(this),s=v4(r),a=R1(o),i=!t&&!Z2(o)&&!f3(o)?a:o;return s.has.call(r,i)||V2(o,i)&&s.has.call(r,o)||V2(a,i)&&s.has.call(r,a)||(r.add(i),s3(r,"add",i,i)),this},set(o,r){!t&&!Z2(r)&&!f3(r)&&(r=R1(r));const s=R1(this),{has:a,get:i}=v4(s);let c=a.call(s,o);c||(o=R1(o),c=a.call(s,o));const u=i.call(s,o);return s.set(o,r),c?V2(r,u)&&s3(s,"set",o,r):s3(s,"add",o,r),this},delete(o){const r=R1(this),{has:s,get:a}=v4(r);let i=s.call(r,o);i||(o=R1(o),i=s.call(r,o)),a&&a.call(r,o);const c=r.delete(o);return i&&s3(r,"delete",o,void 0),c},clear(){const o=R1(this),r=o.size!==0,s=o.clear();return r&&s3(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=al(o,e,t)}),n}function Et(e,t){const n=il(e,t);return(l,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?l:Reflect.get(N1(n,o)&&o in l?n:l,o,r)}const cl={get:Et(!1,!1)},ul={get:Et(!1,!0)},dl={get:Et(!0,!1)};const A8=new WeakMap,h8=new WeakMap,p8=new WeakMap,fl=new WeakMap;function Al(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function l5(e){return f3(e)?e:Dt(e,!1,ol,cl,A8)}function m8(e){return Dt(e,!1,sl,ul,h8)}function j5(e){return Dt(e,!0,rl,dl,p8)}function Dt(e,t,n,l,o){if(!G1(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=o.get(e);if(r)return r;const s=Al(Gn(e));if(s===0)return e;const a=new Proxy(e,s===2?l:n);return o.set(e,a),a}function Y3(e){return f3(e)?Y3(e.__v_raw):!!(e&&e.__v_isReactive)}function f3(e){return!!(e&&e.__v_isReadonly)}function Z2(e){return!!(e&&e.__v_isShallow)}function Zt(e){return e?!!e.__v_raw:!1}function R1(e){const t=e&&e.__v_raw;return t?R1(t):e}function hl(e){return!N1(e,"__v_skip")&&Object.isExtensible(e)&&j7(e,"__v_skip",!0),e}const O2=e=>G1(e)?l5(e):e,ue=e=>G1(e)?j5(e):e;function n2(e){return e?e.__v_isRef===!0:!1}function j(e){return g8(e,!1)}function pl(e){return g8(e,!0)}function g8(e,t){return n2(e)?e:new ml(e,t)}class ml{constructor(t,n){this.dep=new Mt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:R1(t),this._value=n?t:O2(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||Z2(t)||f3(t);t=l?t:R1(t),V2(t,n)&&(this._rawValue=t,this._value=l?t:O2(t),this.dep.trigger())}}function f(e){return n2(e)?e.value:e}const gl={get:(e,t,n)=>t==="__v_raw"?e:f(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const o=e[t];return n2(o)&&!n2(n)?(o.value=n,!0):Reflect.set(e,t,n,l)}};function v8(e){return Y3(e)?e:new Proxy(e,gl)}class vl{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Mt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ye-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&P1!==this)return o8(this,!0),!0}get value(){const t=this.dep.track();return a8(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function yl(e,t,n=!1){let l,o;return _1(e)?l=e:(l=e.get,o=e.set),new vl(l,o,n)}const b4={},N4=new WeakMap;let O3;function bl(e,t=!1,n=O3){if(n){let l=N4.get(n);l||N4.set(n,l=[]),l.push(e)}}function kl(e,t,n=L1){const{immediate:l,deep:o,once:r,scheduler:s,augmentJob:a,call:i}=n,c=w=>o?w:Z2(w)||o===!1||o===0?a3(w,1):a3(w);let u,d,A,m,p=!1,g=!1;if(n2(e)?(d=()=>e.value,p=Z2(e)):Y3(e)?(d=()=>c(e),p=!0):v1(e)?(g=!0,p=e.some(w=>Y3(w)||Z2(w)),d=()=>e.map(w=>{if(n2(w))return w.value;if(Y3(w))return c(w);if(_1(w))return i?i(w,2):w()})):_1(e)?t?d=i?()=>i(e,2):e:d=()=>{if(A){u3();try{A()}finally{d3()}}const w=O3;O3=u;try{return i?i(e,3,[m]):e(m)}finally{O3=w}}:d=z2,t&&o){const w=d,B=o===!0?1/0:o;d=()=>a3(w(),B)}const y=zn(),F=()=>{u.stop(),y&&y.active&&kt(y.effects,u)};if(r&&t){const w=t;t=(...B)=>{const W=w(...B);return F(),W}}let I=g?new Array(e.length).fill(b4):b4;const D=w=>{if(!(!(u.flags&1)||!u.dirty&&!w))if(t){const B=u.run();if(w||o||p||(g?B.some((W,Z)=>V2(W,I[Z])):V2(B,I))){A&&A();const W=O3;O3=u;try{const Z=[B,I===b4?void 0:g&&I[0]===b4?[]:I,m];I=B,i?i(t,3,Z):t(...Z)}finally{O3=W}}}else u.run()};return a&&a(D),u=new n8(d),u.scheduler=s?()=>s(D,!1):D,m=w=>bl(w,!1,u),A=u.onStop=()=>{const w=N4.get(u);if(w){if(i)i(w,4);else for(const B of w)B();N4.delete(u)}},t?l?D(!0):I=u.run():s?s(D.bind(null,!0),!0):u.run(),F.pause=u.pause.bind(u),F.resume=u.resume.bind(u),F.stop=F,F}function a3(e,t=1/0,n){if(t<=0||!G1(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,n2(e))a3(e.value,t,n);else if(v1(e))for(let l=0;l{a3(l,t,n)});else if(z7(e)){for(const l in e)a3(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&a3(e[l],t,n)}return e}/** * @vue/runtime-core v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function d4(e,t,n,l){try{return l?e(...l):e()}catch(o){n5(o,t,n)}}function D2(e,t,n,l){if(I1(e)){const o=d4(e,t,n,l);return o&&T7(o)&&o.catch(r=>{n5(r,t,n)}),o}if(v1(e)){const o=[];for(let r=0;r>>1,o=y2[l],r=Te(o);r=Te(n)?y2.push(e):y2.splice(bl(t),0,e),e.flags|=1,v8()}}function v8(){Q4||(Q4=m8.then(b8))}function kl(e){if(!v1(e))w3&&e.id===-1?w3.splice(te+1,0,e):e.flags&1||(oe.push(e),e.flags|=1);else for(let t=0;tTe(n)-Te(l));if(oe.length=0,w3){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function b8(e){try{for(H2=0;H2{l._d&&$4(-1);const r=N4(t),s=c3.length;let a;try{a=e(...o)}finally{for(let i=c3.length;i>s;i--)Qt();N4(r),l._d&&$4(1)}return a};return l._n=!0,l._c=!0,l._d=!0,l}function Ne(e,t){if(i2===null)return e;const n=i5(i2),l=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&I1(t)?t.call(l&&l.proxy):t}}const Cl=Symbol.for("v-scx"),wl=()=>K2(Cl);function t2(e,t,n){return C8(e,t,n)}function C8(e,t,n=W1){const{immediate:l,deep:o,flush:r,once:s}=n,a=r2({},n),i=t&&l||!t&&r!=="post";let c;if(je){if(r==="sync"){const m=wl();c=m.__watcherHandles||(m.__watcherHandles=[])}else if(!i){const m=()=>{};return m.stop=z2,m.resume=z2,m.pause=z2,m}}const d=h2;a.call=(m,p,y)=>D2(m,d,p,y);let u=!1;r==="post"?a.scheduler=m=>{m2(m,d&&d.suspense)}:r!=="sync"&&(u=!0,a.scheduler=(m,p)=>{p?m():Zt(m)}),a.augmentJob=m=>{t&&(m.flags|=4),u&&(m.flags|=2,d&&(m.id=d.uid,m.i=d))};const A=vl(e,t,a);return je&&(c?c.push(A):i&&A()),A}function xl(e,t,n){const l=this.proxy,o=T1(e)?e.includes(".")?w8(l,e):()=>l[e]:e.bind(l,l);let r;I1(t)?r=t:(r=t.handler,n=t);const s=A4(this),a=C8(o,r.bind(l),n);return s(),a}function w8(e,t){const n=t.split(".");return()=>{let l=e;for(let o=0;oe.__isTeleport,W3=e=>e&&(e.disabled||e.disabled===""),_l=e=>e&&(e.defer||e.defer===""),n6=e=>typeof SVGElement<"u"&&e instanceof SVGElement,l6=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,X5=(e,t)=>{const n=e&&e.to;return T1(n)?t?t(n):null:n},Il={name:"Teleport",__isTeleport:!0,process(e,t,n,l,o,r,s,a,i,c){const{mc:d,pc:u,pbc:A,o:{insert:m,querySelector:p,createText:y,createComment:k,parentNode:F}}=c,M=W3(t.props);let{dynamicChildren:E}=t;const _=(D,x,Q)=>{D.shapeFlag&16&&d(D.children,x,Q,o,r,s,a,i)},R=(D=t)=>{const x=W3(D.props),Q=D.target=X5(D.props,p),B=q5(Q,D,y,m);Q&&(s!=="svg"&&n6(Q)?s="svg":s!=="mathml"&&l6(Q)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(Q),x||(_(D,Q,B),Ze(D,!1)))},$=D=>{const x=()=>{if(C3.get(D)===x){if(C3.delete(D),W3(D.props)){const Q=F(D.el)||n;_(D,Q,D.anchor),Ze(D,!0)}R(D)}};C3.set(D,x),m2(x,r)};if(e==null){const D=t.el=y(""),x=t.anchor=y("");if(m(D,n,l),m(x,n,l),_l(t.props)||r&&r.pendingBranch){$(t);return}M&&(_(t,n,x),Ze(t,!0)),R()}else{t.el=e.el;const D=t.anchor=e.anchor,x=C3.get(e);if(x){x.flags|=8,C3.delete(e),$(t);return}t.targetStart=e.targetStart;const Q=t.target=e.target,B=t.targetAnchor=e.targetAnchor,X=W3(e.props),Y=X?n:Q,m1=X?D:B;if(s==="svg"||n6(Q)?s="svg":(s==="mathml"||l6(Q))&&(s="mathml"),E?(A(e.dynamicChildren,E,Y,o,r,s,a),Rt(e,t,!0)):i||u(e,t,Y,m1,o,r,s,a,!1),M)X?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):y4(t,n,D,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const w1=X5(t.props,p);w1&&(t.target=w1,y4(t,w1,null,c,0))}else X&&y4(t,Q,B,c,1);Ze(t,M)}},remove(e,t,n,{um:l,o:{remove:o}},r){const{shapeFlag:s,children:a,anchor:i,targetStart:c,targetAnchor:d,target:u,props:A}=e,m=W3(A),p=r||!m,y=C3.get(e);if(y&&(y.flags|=8,C3.delete(e)),u&&(o(c),o(d)),r&&o(i),!y&&(m||u)&&s&16)for(let k=0;k{e.isMounted=!0}),Ft(()=>{e.isUnmounting=!0}),e}const _2=[Function,Array],_8={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_2,onEnter:_2,onAfterEnter:_2,onEnterCancelled:_2,onBeforeLeave:_2,onLeave:_2,onAfterLeave:_2,onLeaveCancelled:_2,onBeforeAppear:_2,onAppear:_2,onAfterAppear:_2,onAppearCancelled:_2},I8=e=>{const t=e.subTree;return t.component?I8(t.component):t},Zl={name:"BaseTransition",props:_8,setup(e,{slots:t}){const n=e0(),l=Dl();return()=>{const o=t.default&&D8(t.default(),!0),r=o&&o.length?M8(o):n.subTree?P():void 0;if(!r)return;const s=R1(e),{mode:a}=s;if(l.isLeaving)return x5(r);const i=K4(r);if(!i)return x5(r);let c=et(i,s,l,n,u=>c=u);i.type!==A2&&Ye(i,c);let d=n.subTree&&K4(n.subTree);if(d&&d.type!==A2&&!L3(d,i)&&I8(n).type!==A2){let u=et(d,s,l,n);if(Ye(d,u),a==="out-in"&&i.type!==A2)return l.isLeaving=!0,u.afterLeave=()=>{l.isLeaving=!1,n.job.flags&8||n.update(),delete u.afterLeave,d=void 0},x5(r);a==="in-out"&&i.type!==A2?u.delayLeave=(A,m,p)=>{const y=E8(l,d);y[String(d.key)]=d,A[I2]=()=>{m(),A[I2]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return r}}};function M8(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==A2){t=n;break}}return t}const Fl=Zl;function E8(e,t){const{leavingVNodes:n}=e;let l=n.get(t.type);return l||(l=Object.create(null),n.set(t.type,l)),l}function et(e,t,n,l,o){const{appear:r,mode:s,persisted:a=!1,onBeforeEnter:i,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:A,onLeave:m,onAfterLeave:p,onLeaveCancelled:y,onBeforeAppear:k,onAppear:F,onAfterAppear:M,onAppearCancelled:E}=t,_=String(e.key),R=E8(n,e),$=(Q,B)=>{Q&&D2(Q,l,9,B)},D=(Q,B)=>{const X=B[1];$(Q,B),v1(Q)?Q.every(Y=>Y.length<=1)&&X():Q.length<=1&&X()},x={mode:s,persisted:a,beforeEnter(Q){let B=i;if(!n.isMounted)if(r)B=k||i;else return;Q[I2]&&Q[I2](!0);const X=R[_];X&&L3(e,X)&&X.el[I2]&&X.el[I2](),$(B,[Q])},enter(Q){if(R[_]===e)return;let B=c,X=d,Y=u;if(!n.isMounted)if(r)B=F||c,X=M||d,Y=E||u;else return;let m1=!1;Q[ke]=r1=>{m1||(m1=!0,r1?$(Y,[Q]):$(X,[Q]),x.delayedLeave&&x.delayedLeave(),Q[ke]=void 0)};const w1=Q[ke].bind(null,!1);B?D(B,[Q,w1]):w1()},leave(Q,B){const X=String(e.key);if(Q[ke]&&Q[ke](!0),n.isUnmounting)return B();$(A,[Q]);let Y=!1;Q[I2]=w1=>{Y||(Y=!0,B(),w1?$(y,[Q]):$(p,[Q]),Q[I2]=void 0,R[X]===e&&delete R[X])};const m1=Q[I2].bind(null,!1);R[X]=e,m?D(m,[Q,m1]):m1()},clone(Q){const B=et(Q,t,n,l,o);return o&&o(B),B}};return x}function x5(e){if(o5(e))return e=E3(e),e.children=null,e}function K4(e){if(!o5(e))return l5(e.type)&&e.children?M8(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&I1(n.default))return n.default()}}function Ye(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Ye(l5(n.type)&&K4(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function D8(e,t=!1,n){let l=[],o=0;for(let r=0;r1)for(let r=0;rKe(y,t&&(v1(t)?t[k]:t),n,l,o));return}if(re(l)&&!o){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&Ke(e,t,n,l.component.subTree);return}const r=l.shapeFlag&4?i5(l.component):l.el,s=o?null:r,{i:a,r:i}=e,c=t&&t.r,d=a.refs===W1?a.refs={}:a.refs,u=a.setupState,A=R1(u),m=u===W1?H7:y=>o6(d,y)?!1:N1(A,y),p=(y,k)=>!(k&&o6(d,k));if(c!=null&&c!==i){if(r6(t),T1(c))d[c]=null,m(c)&&(u[c]=null);else if(n2(c)){const y=t;p(c,y.k)&&(c.value=null),y.k&&(d[y.k]=null)}}if(I1(i))d4(i,a,12,[s,d]);else{const y=T1(i),k=n2(i);if(y||k){const F=()=>{if(e.f){const M=y?m(i)?u[i]:d[i]:p()||!e.k?i.value:d[e.k];if(o)v1(M)&&bt(M,r);else if(v1(M))M.includes(r)||M.push(r);else if(y)d[i]=[r],m(i)&&(u[i]=d[i]);else{const E=[r];p(i,e.k)&&(i.value=E),e.k&&(d[e.k]=E)}}else y?(d[i]=s,m(i)&&(u[i]=s)):k&&(p(i,e.k)&&(i.value=s),e.k&&(d[e.k]=s))};if(s){const M=()=>{F(),G4.delete(e)};M.id=-1,G4.set(e,M),m2(M,n)}else r6(e),F()}}}function r6(e){const t=G4.get(e);t&&(t.flags|=8,G4.delete(e))}q4().requestIdleCallback;q4().cancelIdleCallback;const re=e=>!!e.type.__asyncLoader,o5=e=>e.type.__isKeepAlive;function Bl(e,t){F8(e,"a",t)}function Sl(e,t){F8(e,"da",t)}function F8(e,t,n=h2){const l=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(r5(t,l,n),n){let o=n.parent;for(;o&&o.parent;)o5(o.parent.vnode)&&Rl(l,t,n,o),o=o.parent}}function Rl(e,t,n,l){const o=r5(t,e,l,!0);f4(()=>{bt(l[t],o)},n)}function r5(e,t,n=h2,l=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{u3();const a=A4(n),i=D2(t,n,e,s);return a(),d3(),i});return l?o.unshift(r):o.push(r),r}}const p3=e=>(t,n=h2)=>{(!je||e==="sp")&&r5(e,(...l)=>t(...l),n)},Ql=p3("bm"),d2=p3("m"),Nl=p3("bu"),Kl=p3("u"),Ft=p3("bum"),f4=p3("um"),Gl=p3("sp"),Ol=p3("rtg"),$l=p3("rtc");function Wl(e,t=h2){r5("ec",e,t)}const B8="components";function Ve(e,t){return R8(B8,e,!0,t)||e}const S8=Symbol.for("v-ndc");function k2(e){return T1(e)?R8(B8,e,!1)||e:e||S8}function R8(e,t,n=!0,l=!1){const o=i2||h2;if(o){const r=o.type;{const a=Io(r,!1);if(a&&(a===t||a===b2(t)||a===X4(b2(t))))return r}const s=s6(o[e]||r[e],t)||s6(o.appContext[e],t);return!s&&l?r:s}}function s6(e,t){return e&&(e[t]||e[b2(t)]||e[X4(b2(t))])}function _1(e,t,n,l){let o;const r=n,s=v1(e);if(s||T1(e)){const a=s&&V3(e);let i=!1,c=!1;a&&(i=!E2(e),c=f3(e),e=e5(e)),o=new Array(e.length);for(let d=0,u=e.length;dt(a,i,void 0,r));else{const a=Object.keys(e);o=new Array(a.length);for(let i=0,c=a.length;i{const r=l.fn(...o);return r&&(r.key=l.key),r}:l.fn)}return e}function K1(e,t,n,l,o,r){if(n==null&&(n={}),i2.ce||i2.parent&&re(i2.parent)&&i2.parent.ce){const c=n,d=Object.keys(c).length>0;return t!=="default"&&(c.name=t),h(),G(n1,null,[I("slot",c,l&&l())],d?-2:64)}let s=e[t];s&&s._c&&(s._d=!1);const a=c3.length;h();let i;try{const c=s&&Q8(s(n)),d=n.key||r||c&&c.key;i=G(n1,{key:(d&&!G2(d)?d:`_${t}`)+(!c&&l?"_fb":"")},c||(l?l():[]),c&&e._===1?64:-2)}catch(c){for(let d=c3.length;d>a;d--)Qt();throw c}finally{s&&s._c&&(s._d=!0)}return i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),i}function Q8(e){return e.some(t=>Je(t)?!(t.type===A2||t.type===n1&&!Q8(t.children)):!0)?e:null}const tt=e=>e?t0(e)?i5(e):tt(e.parent):null,Ge=r2(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>tt(e.parent),$root:e=>tt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>K8(e),$forceUpdate:e=>e.f||(e.f=()=>{Zt(e.update)}),$nextTick:e=>e.n||(e.n=g8.bind(e.proxy)),$watch:e=>xl.bind(e)}),_5=(e,t)=>e!==W1&&!e.__isScriptSetup&&N1(e,t),Ll={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:o,props:r,accessCache:s,type:a,appContext:i}=e;if(t[0]!=="$"){const A=s[t];if(A!==void 0)switch(A){case 1:return l[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(_5(l,t))return s[t]=1,l[t];if(o!==W1&&N1(o,t))return s[t]=2,o[t];if(N1(r,t))return s[t]=3,r[t];if(n!==W1&&N1(n,t))return s[t]=4,n[t];nt&&(s[t]=0)}}const c=Ge[t];let d,u;if(c)return t==="$attrs"&&f2(e.attrs,"get",""),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==W1&&N1(n,t))return s[t]=4,n[t];if(u=i.config.globalProperties,N1(u,t))return u[t]},set({_:e},t,n){const{data:l,setupState:o,ctx:r}=e;return _5(o,t)?(o[t]=n,!0):l!==W1&&N1(l,t)?(l[t]=n,!0):N1(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:o,props:r,type:s}},a){let i;return!!(n[a]||e!==W1&&a[0]!=="$"&&N1(e,a)||_5(t,a)||N1(r,a)||N1(l,a)||N1(Ge,a)||N1(o.config.globalProperties,a)||(i=s.__cssModules)&&i[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:N1(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function i6(e){return v1(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let nt=!0;function Pl(e){const t=K8(e),n=e.proxy,l=e.ctx;nt=!1,t.beforeCreate&&c6(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:s,watch:a,provide:i,inject:c,created:d,beforeMount:u,mounted:A,beforeUpdate:m,updated:p,activated:y,deactivated:k,beforeDestroy:F,beforeUnmount:M,destroyed:E,unmounted:_,render:R,renderTracked:$,renderTriggered:D,errorCaptured:x,serverPrefetch:Q,expose:B,inheritAttrs:X,components:Y,directives:m1,filters:w1}=t;if(c&&Hl(c,l,null),s)for(const b1 in s){const y1=s[b1];I1(y1)&&(l[b1]=y1.bind(n))}if(o){const b1=o.call(n,n);G1(b1)&&(e.data=t5(b1))}if(nt=!0,r)for(const b1 in r){const y1=r[b1],k1=I1(y1)?y1.bind(n,n):I1(y1.get)?y1.get.bind(n,n):z2,c1=!I1(y1)&&I1(y1.set)?y1.set.bind(n):z2,L1=t1({get:k1,set:c1});Object.defineProperty(l,b1,{enumerable:!0,configurable:!0,get:()=>L1.value,set:S1=>L1.value=S1})}if(a)for(const b1 in a)N8(a[b1],l,n,b1);if(i){const b1=I1(i)?i.call(n):i;Reflect.ownKeys(b1).forEach(y1=>{Z4(y1,b1[y1])})}d&&c6(d,e,"c");function l1(b1,y1){v1(y1)?y1.forEach(k1=>b1(k1.bind(n))):y1&&b1(y1.bind(n))}if(l1(Ql,u),l1(d2,A),l1(Nl,m),l1(Kl,p),l1(Bl,y),l1(Sl,k),l1(Wl,x),l1($l,$),l1(Ol,D),l1(Ft,M),l1(f4,_),l1(Gl,Q),v1(B))if(B.length){const b1=e.exposed||(e.exposed={});B.forEach(y1=>{Object.defineProperty(b1,y1,{get:()=>n[y1],set:k1=>n[y1]=k1,enumerable:!0})})}else e.exposed||(e.exposed={});R&&e.render===z2&&(e.render=R),X!=null&&(e.inheritAttrs=X),Y&&(e.components=Y),m1&&(e.directives=m1),Q&&Z8(e)}function Hl(e,t,n=z2){v1(e)&&(e=lt(e));for(const l in e){const o=e[l];let r;G1(o)?"default"in o?r=K2(o.from||l,o.default,!0):r=K2(o.from||l):r=K2(o),n2(r)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[l]=r}}function c6(e,t,n){D2(v1(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function N8(e,t,n,l){let o=l.includes(".")?w8(n,l):()=>n[l];if(T1(e)){const r=t[e];I1(r)&&t2(o,r)}else if(I1(e))t2(o,e.bind(n));else if(G1(e))if(v1(e))e.forEach(r=>N8(r,t,n,l));else{const r=I1(e.handler)?e.handler.bind(n):t[e.handler];I1(r)&&t2(o,r,e)}}function K8(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let i;return a?i=a:!o.length&&!n&&!l?i=t:(i={},o.length&&o.forEach(c=>O4(i,c,s,!0)),O4(i,t,s)),G1(t)&&r.set(t,i),i}function O4(e,t,n,l=!1){const{mixins:o,extends:r}=t;r&&O4(e,r,n,!0),o&&o.forEach(s=>O4(e,s,n,!0));for(const s in t)if(!(l&&s==="expose")){const a=Tl[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const Tl={data:u6,props:d6,emits:d6,methods:Fe,computed:Fe,beforeCreate:p2,created:p2,beforeMount:p2,mounted:p2,beforeUpdate:p2,updated:p2,beforeDestroy:p2,beforeUnmount:p2,destroyed:p2,unmounted:p2,activated:p2,deactivated:p2,errorCaptured:p2,serverPrefetch:p2,components:Fe,directives:Fe,watch:Vl,provide:u6,inject:Yl};function u6(e,t){return t?e?function(){return r2(I1(e)?e.call(this,this):e,I1(t)?t.call(this,this):t)}:t:e}function Yl(e,t){return Fe(lt(e),lt(t))}function lt(e){if(v1(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${b2(t)}Modifiers`]||e[`${Z3(t)}Modifiers`];function jl(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||W1;let o=n;const r=t.startsWith("update:"),s=r&&zl(l,t.slice(7));s&&(s.trim&&(o=n.map(d=>T1(d)?d.trim():d)),s.number&&(o=o.map(Ct)));let a,i=l[a=y5(t)]||l[a=y5(b2(t))];!i&&r&&(i=l[a=y5(Z3(t))]),i&&D2(i,e,6,o);const c=l[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,D2(c,e,6,o)}}const Xl=new WeakMap;function O8(e,t,n=!1){const l=n?Xl:t.emitsCache,o=l.get(e);if(o!==void 0)return o;const r=e.emits;let s={},a=!1;if(!I1(e)){const i=c=>{const d=O8(c,t,!0);d&&(a=!0,r2(s,d))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return!r&&!a?(G1(e)&&l.set(e,null),null):(v1(r)?r.forEach(i=>s[i]=null):r2(s,r),G1(e)&&l.set(e,s),s)}function s5(e,t){return!e||!J4(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),N1(e,t[0].toLowerCase()+t.slice(1))||N1(e,Z3(t))||N1(e,t))}function f6(e){const{type:t,vnode:n,proxy:l,withProxy:o,propsOptions:[r],slots:s,attrs:a,emit:i,render:c,renderCache:d,props:u,data:A,setupState:m,ctx:p,inheritAttrs:y}=e,k=N4(e);let F,M;try{if(n.shapeFlag&4){const _=o||l,R=_;F=Y2(c.call(R,_,d,u,m,A,p)),M=a}else{const _=t;F=Y2(_.length>1?_(u,{attrs:a,slots:s,emit:i}):_(u,null)),M=t.props?a:ql(a)}}catch(_){c3.length=0,n5(_,e,1),F=I(A2)}let E=F;if(M&&y!==!1){const _=Object.keys(M),{shapeFlag:R}=E;_.length&&R&7&&(r&&_.some(z4)&&(M=eo(M,r)),E=E3(E,M,!1,!0))}if(n.dirs&&(E=E3(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition){const _=l5(E.type)&&K4(E)||E;Ye(_,n.transition)}return F=E,N4(k),F}const ql=e=>{let t;for(const n in e)(n==="class"||n==="style"||J4(n))&&((t||(t={}))[n]=e[n]);return t},eo=(e,t)=>{const n={};for(const l in e)(!z4(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function to(e,t,n){const{props:l,children:o,component:r}=e,{props:s,children:a,patchFlag:i}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&i>=0){if(i&1024)return!0;if(i&16)return l?A6(l,s,c):!!s;if(i&8){const d=t.dynamicProps;for(let u=0;uObject.create(W8),P8=e=>Object.getPrototypeOf(e)===W8;function lo(e,t,n,l=!1){const o={},r=L8();e.propsDefaults=Object.create(null),H8(e,t,o,r);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=l?o:A8(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function oo(e,t,n,l){const{props:o,attrs:r,vnode:{patchFlag:s}}=e,a=R1(o),[i]=e.propsOptions;let c=!1;if((l||s>0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let u=0;u{i=!0;const[A,m]=T8(u,t,!0);r2(s,A),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!i)return G1(e)&&l.set(e,le),le;if(v1(r))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",St=e=>v1(e)?e.map(Y2):[Y2(e)],so=(e,t,n)=>{if(t._n)return t;const l=w((...o)=>St(t(...o)),n);return l._c=!1,l},Y8=(e,t,n)=>{const l=e._ctx;for(const o in e){if(Bt(o))continue;const r=e[o];if(I1(r))t[o]=so(o,r,l);else if(r!=null){const s=St(r);t[o]=()=>s}}},V8=(e,t)=>{const n=St(t);e.slots.default=()=>n},U8=(e,t,n)=>{for(const l in t)(n||!Bt(l))&&(e[l]=t[l])},ao=(e,t,n)=>{const l=e.slots=L8();if(e.vnode.shapeFlag&32){const o=t._;o?(U8(l,t,n),n&&U7(l,"_",o,!0)):Y8(t,l)}else t&&V8(e,t)},io=(e,t,n)=>{const{vnode:l,slots:o}=e;let r=!0,s=W1;if(l.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:U8(o,t,n):(r=!t.$stable,Y8(t,o)),s=t}else t&&(V8(e,t),s={default:1});if(r)for(const a in o)!Bt(a)&&s[a]==null&&delete o[a]},m2=ho;function co(e){return uo(e)}function uo(e,t){const n=q4();n.__VUE__=!0;const{insert:l,remove:o,patchProp:r,createElement:s,createText:a,createComment:i,setText:c,setElementText:d,parentNode:u,nextSibling:A,setScopeId:m=z2,insertStaticContent:p}=e,y=(g,v,Z,L=null,T=null,W=null,a1=void 0,e1=null,j=!!v.dynamicChildren)=>{if(g===v)return;g&&!L3(g,v)&&(L=S(g),S1(g,T,W,!0),g=null),v.patchFlag===-2&&(j=!1,v.dynamicChildren=null);const{type:V,ref:g1,shapeFlag:i1}=v;switch(V){case a5:k(g,v,Z,L);break;case A2:F(g,v,Z,L);break;case F4:g==null&&M(v,Z,L,a1);break;case n1:Y(g,v,Z,L,T,W,a1,e1,j);break;default:i1&1?R(g,v,Z,L,T,W,a1,e1,j):i1&6?m1(g,v,Z,L,T,W,a1,e1,j):(i1&64||i1&128)&&V.process(g,v,Z,L,T,W,a1,e1,j,A1)}g1!=null&&T?Ke(g1,g&&g.ref,W,v||g,!v):g1==null&&g&&g.ref!=null&&Ke(g.ref,null,W,g,!0)},k=(g,v,Z,L)=>{if(g==null)l(v.el=a(v.children),Z,L);else{const T=v.el=g.el;v.children!==g.children&&c(T,v.children)}},F=(g,v,Z,L)=>{g==null?l(v.el=i(v.children||""),Z,L):v.el=g.el},M=(g,v,Z,L)=>{[g.el,g.anchor]=p(g.children,v,Z,L,g.el,g.anchor)},E=({el:g,anchor:v},Z,L)=>{let T;for(;g&&g!==v;)T=A(g),l(g,Z,L),g=T;l(v,Z,L)},_=({el:g,anchor:v})=>{let Z;for(;g&&g!==v;)Z=A(g),o(g),g=Z;o(v)},R=(g,v,Z,L,T,W,a1,e1,j)=>{if(v.type==="svg"?a1="svg":v.type==="math"&&(a1="mathml"),g==null)$(v,Z,L,T,W,a1,e1,j);else{const V=g.el&&g.el._isVueCE?g.el:null;try{V&&V._beginPatch(),Q(g,v,T,W,a1,e1,j)}finally{V&&V._endPatch()}}},$=(g,v,Z,L,T,W,a1,e1)=>{let j,V;const{props:g1,shapeFlag:i1,transition:K,dirs:O}=g;if(j=g.el=s(g.type,W,g1&&g1.is,g1),i1&8?d(j,g.children):i1&16&&x(g.children,j,null,L,T,I5(g,W),a1,e1),O&&S3(g,null,L,"created"),D(j,g,g.scopeId,a1,L),g1){for(const H in g1)H!=="value"&&!Se(H)&&r(j,H,null,g1[H],W,L);"value"in g1&&r(j,"value",null,g1.value,W),(V=g1.onVnodeBeforeMount)&&W2(V,L,g)}O&&S3(g,null,L,"beforeMount");const p1=fo(T,K);p1&&K.beforeEnter(j),l(j,v,Z),((V=g1&&g1.onVnodeMounted)||p1||O)&&m2(()=>{try{V&&W2(V,L,g),p1&&K.enter(j),O&&S3(g,null,L,"mounted")}finally{}},T)},D=(g,v,Z,L,T)=>{if(Z&&m(g,Z),L)for(let W=0;W{for(let V=j;V{const e1=v.el=g.el;let{patchFlag:j,dynamicChildren:V,dirs:g1}=v;j|=g.patchFlag&16;const i1=g.props||W1,K=v.props||W1;let O;if(Z&&R3(Z,!1),(O=K.onVnodeBeforeUpdate)&&W2(O,Z,v,g),g1&&S3(v,g,Z,"beforeUpdate"),Z&&R3(Z,!0),V&&(!g.dynamicChildren||g.dynamicChildren.length!==V.length)&&(j=0,a1=!1,V=null),(i1.innerHTML&&K.innerHTML==null||i1.textContent&&K.textContent==null)&&d(e1,""),V?B(g.dynamicChildren,V,e1,Z,L,I5(v,T),W):a1||y1(g,v,e1,null,Z,L,I5(v,T),W,!1),j>0){if(j&16)X(e1,i1,K,Z,T);else if(j&2&&i1.class!==K.class&&r(e1,"class",null,K.class,T),j&4&&r(e1,"style",i1.style,K.style,T),j&8){const p1=v.dynamicProps;for(let H=0;H{O&&W2(O,Z,v,g),g1&&S3(v,g,Z,"updated")},L)},B=(g,v,Z,L,T,W,a1)=>{for(let e1=0;e1{if(v!==Z){if(v!==W1)for(const W in v)!Se(W)&&!(W in Z)&&r(g,W,v[W],null,T,L);for(const W in Z){if(Se(W))continue;const a1=Z[W],e1=v[W];a1!==e1&&W!=="value"&&r(g,W,e1,a1,T,L)}"value"in Z&&r(g,"value",v.value,Z.value,T)}},Y=(g,v,Z,L,T,W,a1,e1,j)=>{const V=v.el=g?g.el:a(""),g1=v.anchor=g?g.anchor:a("");let{patchFlag:i1,dynamicChildren:K,slotScopeIds:O}=v;O&&(e1=e1?e1.concat(O):O),g==null?(l(V,Z,L),l(g1,Z,L),x(v.children||[],Z,g1,T,W,a1,e1,j)):i1>0&&i1&64&&K&&g.dynamicChildren&&g.dynamicChildren.length===K.length?(B(g.dynamicChildren,K,Z,T,W,a1,e1),(v.key!=null||T&&v===T.subTree)&&Rt(g,v,!0)):y1(g,v,Z,g1,T,W,a1,e1,j)},m1=(g,v,Z,L,T,W,a1,e1,j)=>{v.slotScopeIds=e1,g==null?v.shapeFlag&512?T.ctx.activate(v,Z,L,a1,j):w1(v,Z,L,T,W,a1,j):r1(g,v,j)},w1=(g,v,Z,L,T,W,a1)=>{const e1=g.component=ko(g,L,T);if(o5(g)&&(e1.ctx.renderer=A1),Co(e1,!1,a1),e1.asyncDep){if(T&&T.registerDep(e1,l1,a1),!g.el){const j=e1.subTree=I(A2);F(null,j,v,Z),g.placeholder=j.el}}else l1(e1,g,v,Z,T,W,a1)},r1=(g,v,Z)=>{const L=v.component=g.component;if(to(g,v,Z))if(L.asyncDep&&!L.asyncResolved){b1(L,v,Z);return}else L.next=v,L.update();else v.el=g.el,L.vnode=v},l1=(g,v,Z,L,T,W,a1)=>{const e1=()=>{if(g.isMounted){let{next:i1,bu:K,u:O,parent:p1,vnode:H}=g;{const w2=J8(g);if(w2){i1&&(i1.el=H.el,b1(g,i1,a1)),w2.asyncDep.then(()=>{m2(()=>{g.isUnmounted||V()},T)});return}}let D1=i1,V1;R3(g,!1),i1?(i1.el=H.el,b1(g,i1,a1)):i1=H,K&&D4(K),(V1=i1.props&&i1.props.onVnodeBeforeUpdate)&&W2(V1,p1,i1,H),R3(g,!0);const e2=f6(g),C2=g.subTree;g.subTree=e2,y(C2,e2,u(C2.el),S(C2),g,T,W),i1.el=e2.el,D1===null&&no(g,e2.el),O&&m2(O,T),(V1=i1.props&&i1.props.onVnodeUpdated)&&m2(()=>W2(V1,p1,i1,H),T)}else{let i1;const{el:K,props:O}=v,{bm:p1,m:H,parent:D1,root:V1,type:e2}=g,C2=re(v);R3(g,!1),p1&&D4(p1),!C2&&(i1=O&&O.onVnodeBeforeMount)&&W2(i1,D1,v),R3(g,!0);{V1.ce&&V1.ce._hasShadowRoot()&&V1.ce._injectChildStyle(e2,g.parent?g.parent.type:void 0);const w2=g.subTree=f6(g);y(null,w2,Z,L,g,T,W),v.el=w2.el}if(H&&m2(H,T),!C2&&(i1=O&&O.onVnodeMounted)){const w2=v;m2(()=>W2(i1,D1,w2),T)}(v.shapeFlag&256||D1&&re(D1.vnode)&&D1.vnode.shapeFlag&256)&&g.a&&m2(g.a,T),g.isMounted=!0,v=Z=L=null}};g.scope.on();const j=g.effect=new q7(e1);g.scope.off();const V=g.update=j.run.bind(j),g1=g.job=j.runIfDirty.bind(j);g1.i=g,g1.id=g.uid,j.scheduler=()=>Zt(g1),R3(g,!0),V()},b1=(g,v,Z)=>{v.component=g;const L=g.vnode.props;g.vnode=v,g.next=null,oo(g,v.props,L,Z),io(g,v.children,Z),u3(),t6(g),d3()},y1=(g,v,Z,L,T,W,a1,e1,j=!1)=>{const V=g&&g.children,g1=g?g.shapeFlag:0,i1=v.children,{patchFlag:K,shapeFlag:O}=v;if(K>0){if(K&128){c1(V,i1,Z,L,T,W,a1,e1,j);return}else if(K&256){k1(V,i1,Z,L,T,W,a1,e1,j);return}}O&8?(g1&16&&q(V,T,W),i1!==V&&d(Z,i1)):g1&16?O&16?c1(V,i1,Z,L,T,W,a1,e1,j):q(V,T,W,!0):(g1&8&&d(Z,""),O&16&&x(i1,Z,L,T,W,a1,e1,j))},k1=(g,v,Z,L,T,W,a1,e1,j)=>{g=g||le,v=v||le;const V=g.length,g1=v.length,i1=Math.min(V,g1);let K;for(K=0;Kg1?q(g,T,W,!0,!1,i1):x(v,Z,L,T,W,a1,e1,j,i1)},c1=(g,v,Z,L,T,W,a1,e1,j)=>{let V=0;const g1=v.length;let i1=g.length-1,K=g1-1;for(;V<=i1&&V<=K;){const O=g[V],p1=v[V]=j?r3(v[V]):Y2(v[V]);if(L3(O,p1))y(O,p1,Z,null,T,W,a1,e1,j);else break;V++}for(;V<=i1&&V<=K;){const O=g[i1],p1=v[K]=j?r3(v[K]):Y2(v[K]);if(L3(O,p1))y(O,p1,Z,null,T,W,a1,e1,j);else break;i1--,K--}if(V>i1){if(V<=K){const O=K+1,p1=OK)for(;V<=i1;)S1(g[V],T,W,!0),V++;else{const O=V,p1=V,H=new Map;for(V=p1;V<=K;V++){const M1=v[V]=j?r3(v[V]):Y2(v[V]);M1.key!=null&&H.set(M1.key,V)}let D1,V1=0;const e2=K-p1+1;let C2=!1,w2=0;const v3=new Array(e2);for(V=0;V=e2){S1(M1,T,W,!0);continue}let U1;if(M1.key!=null)U1=H.get(M1.key);else for(D1=p1;D1<=K;D1++)if(v3[D1-p1]===0&&L3(M1,v[D1])){U1=D1;break}U1===void 0?S1(M1,T,W,!0):(v3[U1-p1]=V+1,U1>=w2?w2=U1:C2=!0,y(M1,v[U1],Z,null,T,W,a1,e1,j),V1++)}const ye=C2?Ao(v3):le;for(D1=ye.length-1,V=e2-1;V>=0;V--){const M1=p1+V,U1=v[M1],v5=v[M1+1],Jt=M1+1{const{el:W,type:a1,transition:e1,children:j,shapeFlag:V}=g;if(V&6){L1(g.component.subTree,v,Z,L);return}if(V&128){g.suspense.move(v,Z,L);return}if(V&64){a1.move(g,v,Z,A1);return}if(a1===n1){l(W,v,Z);for(let i1=0;i1e1.enter(W),T));else{const{leave:i1,delayLeave:K,afterLeave:O}=e1,p1=()=>{g.ctx.isUnmounted?o(W):l(W,v,Z)},H=()=>{const D1=W._isLeaving||!!W[I2];W._isLeaving&&W[I2](!0),e1.persisted&&!D1?p1():i1(W,()=>{p1(),O&&O()})};K?K(W,p1,H):H()}else l(W,v,Z)},S1=(g,v,Z,L=!1,T=!1)=>{const{type:W,props:a1,ref:e1,children:j,dynamicChildren:V,shapeFlag:g1,patchFlag:i1,dirs:K,cacheIndex:O,memo:p1}=g;if(i1===-2&&(T=!1),e1!=null&&(u3(),Ke(e1,null,Z,g,!0),d3()),O!=null&&(v.renderCache[O]=void 0),g1&256){v.ctx.deactivate(g);return}const H=g1&1&&K,D1=!re(g);let V1;if(D1&&(V1=a1&&a1.onVnodeBeforeUnmount)&&W2(V1,v,g),g1&6)s1(g.component,Z,L);else{if(g1&128){g.suspense.unmount(Z,L);return}H&&S3(g,null,v,"beforeUnmount"),g1&64?g.type.remove(g,v,Z,A1,L):V&&!V.hasOnce&&(W!==n1||i1>0&&i1&64)?q(V,v,Z,!1,!0):(W===n1&&i1&384||!T&&g1&16)&&q(j,v,Z),L&&Y1(g)}const e2=p1!=null&&O==null;(D1&&(V1=a1&&a1.onVnodeUnmounted)||H||e2)&&m2(()=>{V1&&W2(V1,v,g),H&&S3(g,null,v,"unmounted"),e2&&(g.el=null)},Z)},Y1=g=>{const{type:v,el:Z,anchor:L,transition:T}=g;if(v===n1){q1(Z,L);return}if(v===F4){_(g);return}const W=()=>{o(Z),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(g.shapeFlag&1&&T&&!T.persisted){const{leave:a1,delayLeave:e1}=T,j=()=>a1(Z,W);e1?e1(g.el,W,j):j()}else W()},q1=(g,v)=>{let Z;for(;g!==v;)Z=A(g),o(g),g=Z;o(v)},s1=(g,v,Z)=>{const{bum:L,scope:T,job:W,subTree:a1,um:e1,m:j,a:V}=g;p6(j),p6(V),L&&D4(L),T.stop(),W&&(W.flags|=8,S1(a1,g,v,Z)),e1&&m2(e1,v),m2(()=>{g.isUnmounted=!0},v)},q=(g,v,Z,L=!1,T=!1,W=0)=>{for(let a1=W;a1{if(g.shapeFlag&6)return S(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const v=A(g.anchor||g.el),Z=v&&v[x8];return Z?A(Z):v};let o1=!1;const J=(g,v,Z)=>{let L;g==null?v._vnode&&(S1(v._vnode,null,null,!0),L=v._vnode.component):y(v._vnode||null,g,v,null,null,null,Z),v._vnode=g,o1||(o1=!0,t6(L),y8(),o1=!1)},A1={p:y,um:S1,m:L1,r:Y1,mt:w1,mc:x,pc:y1,pbc:B,n:S,o:e};return{render:J,hydrate:void 0,createApp:Jl(J)}}function I5({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function R3({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function fo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Rt(e,t,n=!1){const l=e.children,o=t.children;if(v1(l)&&v1(o))for(let r=0;r>1,e[n[a]]0&&(t[l]=n[r-1]),n[r]=l)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function J8(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:J8(t)}function p6(e){if(e)for(let t=0;te.__isSuspense;function ho(e,t){t&&t.pendingBranch?v1(e)?t.effects.push(...e):t.effects.push(e):kl(e)}const n1=Symbol.for("v-fgt"),a5=Symbol.for("v-txt"),A2=Symbol.for("v-cmt"),F4=Symbol.for("v-stc"),c3=[];let x2=null;function h(e=!1){c3.push(x2=e?null:[])}function Qt(){c3.pop(),x2=c3[c3.length-1]||null}let Ue=1;function $4(e,t=!1){Ue+=e,e<0&&x2&&t&&(x2.hasOnce=!0)}function X8(e){return e.dynamicChildren=Ue>0?x2||le:null,Qt(),Ue>0&&x2&&x2.push(e),e}function C(e,t,n,l,o,r){return X8(b(e,t,n,l,o,r,!0))}function G(e,t,n,l,o){return X8(I(e,t,n,l,o,!0))}function Je(e){return e?e.__v_isVNode===!0:!1}function L3(e,t){return e.type===t.type&&e.key===t.key}const q8=({key:e})=>e??null,B4=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?T1(e)||n2(e)||I1(e)?{i:i2,r:e,k:t,f:!!n}:e:null);function b(e,t=null,n=null,l=0,o=null,r=e===n1?0:1,s=!1,a=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&q8(t),ref:t&&B4(t),scopeId:k8,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:l,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:i2};return a?(W4(i,n),r&128&&e.normalize(i)):n&&(i.shapeFlag|=T1(n)?8:16),Ue>0&&!s&&x2&&(i.patchFlag>0||r&6)&&i.patchFlag!==32&&x2.push(i),i}const I=po;function po(e,t=null,n=null,l=0,o=null,r=!1){if((!e||e===S8)&&(e=A2),Je(e)){const a=E3(e,t,!0);return n&&W4(a,n),Ue>0&&!r&&x2&&(a.shapeFlag&6?x2[x2.indexOf(e)]=a:x2.push(a)),a.patchFlag=-2,a}if(Mo(e)&&(e=e.__vccOpts),t){t=mo(t);let{class:a,style:i}=t;a&&!T1(a)&&(t.class=f1(a)),G1(i)&&(Dt(i)&&!v1(i)&&(i=r2({},i)),t.style=S2(i))}const s=T1(e)?1:j8(e)?128:l5(e)?64:G1(e)?4:I1(e)?2:0;return b(e,t,n,l,o,s,r,!0)}function mo(e){return e?Dt(e)||P8(e)?r2({},e):e:null}function E3(e,t,n=!1,l=!1){const{props:o,ref:r,patchFlag:s,children:a,transition:i}=e,c=t?vo(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&q8(c),ref:t&&t.ref?n&&r?v1(r)?r.concat(B4(t)):[r,B4(t)]:B4(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==n1?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:i,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&E3(e.ssContent),ssFallback:e.ssFallback&&E3(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return i&&l&&Ye(d,i.clone(d)),d}function U(e=" ",t=0){return I(a5,null,e,t)}function go(e,t){const n=I(F4,null,e);return n.staticCount=t,n}function P(e="",t=!1){return t?(h(),G(A2,null,e)):I(A2,null,e)}function Y2(e){return e==null||typeof e=="boolean"?I(A2):v1(e)?I(n1,null,e.slice()):Je(e)?r3(e):I(a5,null,String(e))}function r3(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:E3(e)}function W4(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(v1(t))n=16;else if(typeof t=="object")if(l&65){const o=t.default;o&&(o._c&&(o._d=!1),W4(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!P8(t)?t._ctx=i2:o===3&&i2&&(i2.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(I1(t)){if(l&65){W4(e,{default:t});return}t={default:t,_ctx:i2},n=32}else t=String(t),l&64?(n=16,t=[U(t)]):n=8;e.children=t,e.shapeFlag|=n}function vo(...e){const t={};for(let n=0;nh2||i2;let L4,ze;{const e=q4(),t=(n,l)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(l),r=>{o.length>1?o.forEach(s=>s(r)):o[0](r)}};L4=t("__VUE_INSTANCE_SETTERS__",n=>h2=n),ze=t("__VUE_SSR_SETTERS__",n=>je=n)}const A4=e=>{const t=h2;return L4(e),e.scope.on(),()=>{e.scope.off(),L4(t)}},m6=()=>{h2&&h2.scope.off(),L4(null)};function t0(e){return e.vnode.shapeFlag&4}let je=!1;function Co(e,t=!1,n=!1){t&&ze(t);const{props:l,children:o}=e.vnode,r=t0(e);lo(e,l,r,t),ao(e,o,n||t);const s=r?wo(e,t):void 0;return t&&ze(!1),s}function wo(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ll);const{setup:l}=n;if(l){u3();const o=e.setupContext=l.length>1?_o(e):null,r=A4(e),s=d4(l,e,0,[e.props,o]),a=T7(s);if(d3(),r(),(a||e.sp)&&!re(e)&&Z8(e),a){if(s.then(m6,m6),t)return s.then(i=>{ze(!0);try{g6(e,i,t)}finally{ze(!1)}}).catch(i=>{n5(i,e,0)});e.asyncDep=s}else g6(e,s)}else n0(e)}function g6(e,t,n){I1(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:G1(t)&&(e.setupState=p8(t)),n0(e)}function n0(e,t,n){const l=e.type;e.render||(e.render=l.render||z2);{const o=A4(e);u3();try{Pl(e)}finally{d3(),o()}}}const xo={get(e,t){return f2(e,"get",""),e[t]}};function _o(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,xo),slots:e.slots,emit:e.emit,expose:t}}function i5(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(p8(dl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ge)return Ge[n](e)},has(t,n){return n in t||n in Ge}})):e.proxy}function Io(e,t=!0){return I1(e)?e.displayName||e.name:e.name||t&&e.__name}function Mo(e){return I1(e)&&"__vccOpts"in e}const t1=(e,t)=>ml(e,t,je);function A3(e,t,n){try{$4(-1);const l=arguments.length;return l===2?G1(t)&&!v1(t)?Je(t)?I(e,null,[t]):I(e,t):I(e,null,t):(l>3?n=Array.prototype.slice.call(arguments,2):l===3&&Je(n)&&(n=[n]),I(e,t,n))}finally{$4(1)}}const Eo="3.5.42";/** +**/function f4(e,t,n,l){try{return l?e(...l):e()}catch(o){A4(o,t,n)}}function F2(e,t,n,l){if(_1(e)){const o=f4(e,t,n,l);return o&&U7(o)&&o.catch(r=>{A4(r,t,n)}),o}if(v1(e)){const o=[];for(let r=0;r>>1,o=y2[l],r=Ue(o);r=Ue(n)?y2.push(e):y2.splice(wl(t),0,e),e.flags|=1,k8()}}function k8(){K4||(K4=y8.then(w8))}function xl(e){if(!v1(e))w3&&e.id===-1?w3.splice(ne+1,0,e):e.flags&1||(re.push(e),e.flags|=1);else for(let t=0;tUe(n)-Ue(l));if(re.length=0,w3){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function w8(e){try{for(T2=0;T2{l._d&&L4(-1);const r=G4(t),s=c3.length;let a;try{a=e(...o)}finally{for(let i=c3.length;i>s;i--)Kt();G4(r),l._d&&L4(1)}return a};return l._n=!0,l._c=!0,l._d=!0,l}function Oe(e,t){if(c2===null)return e;const n=i5(c2),l=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&_1(t)?t.call(l&&l.proxy):t}}const _l=Symbol.for("v-scx"),Il=()=>K2(_l);function q1(e,t,n){return _8(e,t,n)}function _8(e,t,n=L1){const{immediate:l,deep:o,flush:r,once:s}=n,a=r2({},n),i=t&&l||!t&&r!=="post";let c;if(de){if(r==="sync"){const m=Il();c=m.__watcherHandles||(m.__watcherHandles=[])}else if(!i){const m=()=>{};return m.stop=z2,m.resume=z2,m.pause=z2,m}}const u=i2;a.call=(m,p,g)=>F2(m,u,p,g);let d=!1;r==="post"?a.scheduler=m=>{m2(m,u&&u.suspense)}:r!=="sync"&&(d=!0,a.scheduler=(m,p)=>{p?m():Ft(m)}),a.augmentJob=m=>{t&&(m.flags|=4),d&&(m.flags|=2,u&&(m.id=u.uid,m.i=u))};const A=kl(e,t,a);return de&&(c?c.push(A):i&&A()),A}function Ml(e,t,n){const l=this.proxy,o=H1(e)?e.includes(".")?I8(l,e):()=>l[e]:e.bind(l,l);let r;_1(t)?r=t:(r=t.handler,n=t);const s=p4(this),a=_8(o,r.bind(l),n);return s(),a}function I8(e,t){const n=t.split(".");return()=>{let l=e;for(let o=0;oe.__isTeleport,$3=e=>e&&(e.disabled||e.disabled===""),El=e=>e&&(e.defer||e.defer===""),o6=e=>typeof SVGElement<"u"&&e instanceof SVGElement,r6=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,X5=(e,t)=>{const n=e&&e.to;return H1(n)?t?t(n):null:n},Dl={name:"Teleport",__isTeleport:!0,process(e,t,n,l,o,r,s,a,i,c){const{mc:u,pc:d,pbc:A,o:{insert:m,querySelector:p,createText:g,createComment:y,parentNode:F}}=c,I=$3(t.props);let{dynamicChildren:D}=t;const w=(Z,_,R)=>{Z.shapeFlag&16&&u(Z.children,_,R,o,r,s,a,i)},B=(Z=t)=>{const _=$3(Z.props),R=Z.target=X5(Z.props,p),S=q5(R,Z,g,m);R&&(s!=="svg"&&o6(R)?s="svg":s!=="mathml"&&r6(R)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(R),_||(w(Z,R,S),Be(Z,!1)))},W=Z=>{const _=()=>{if(C3.get(Z)===_){if(C3.delete(Z),$3(Z.props)){const R=F(Z.el)||n;w(Z,R,Z.anchor),Be(Z,!0)}B(Z)}};C3.set(Z,_),m2(_,r)};if(e==null){const Z=t.el=g(""),_=t.anchor=g("");if(m(Z,n,l),m(_,n,l),El(t.props)||r&&r.pendingBranch){W(t);return}I&&(w(t,n,_),Be(t,!0)),B()}else{t.el=e.el;const Z=t.anchor=e.anchor,_=C3.get(e);if(_){_.flags|=8,C3.delete(e),W(t);return}t.targetStart=e.targetStart;const R=t.target=e.target,S=t.targetAnchor=e.targetAnchor,q=$3(e.props),V=q?n:R,m1=q?Z:S;if(s==="svg"||o6(R)?s="svg":(s==="mathml"||r6(R))&&(s="mathml"),D?(A(e.dynamicChildren,D,V,o,r,s,a),Nt(e,t,!0)):i||d(e,t,V,m1,o,r,s,a,!1),I)q?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):k4(t,n,Z,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const b1=X5(t.props,p);b1&&(t.target=b1,k4(t,b1,null,c,0))}else q&&k4(t,R,S,c,1);Be(t,I)}},remove(e,t,n,{um:l,o:{remove:o}},r){const{shapeFlag:s,children:a,anchor:i,targetStart:c,targetAnchor:u,target:d,props:A}=e,m=$3(A),p=r||!m,g=C3.get(e);if(g&&(g.flags|=8,C3.delete(e)),d&&(o(c),o(u)),r&&o(i),!g&&(m||d)&&s&16)for(let y=0;y{e.isMounted=!0}),St(()=>{e.isUnmounting=!0}),e}const _2=[Function,Array],E8={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_2,onEnter:_2,onAfterEnter:_2,onEnterCancelled:_2,onBeforeLeave:_2,onLeave:_2,onAfterLeave:_2,onLeaveCancelled:_2,onBeforeAppear:_2,onAppear:_2,onAfterAppear:_2,onAppearCancelled:_2},D8=e=>{const t=e.subTree;return t.component?D8(t.component):t},Sl={name:"BaseTransition",props:E8,setup(e,{slots:t}){const n=n0(),l=Bl();return()=>{const o=t.default&&B8(t.default(),!0),r=o&&o.length?Z8(o):n.subTree?L():void 0;if(!r)return;const s=R1(e),{mode:a}=s;if(l.isLeaving)return x5(r);const i=O4(r);if(!i)return x5(r);let c=et(i,s,l,n,d=>c=d);i.type!==h2&&Je(i,c);let u=n.subTree&&O4(n.subTree);if(u&&u.type!==h2&&!W3(u,i)&&D8(n).type!==h2){let d=et(u,s,l,n);if(Je(u,d),a==="out-in"&&i.type!==h2)return l.isLeaving=!0,d.afterLeave=()=>{l.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},x5(r);a==="in-out"&&i.type!==h2?d.delayLeave=(A,m,p)=>{const g=F8(l,u);g[String(u.key)]=u,A[E2]=()=>{m(),A[E2]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return r}}};function Z8(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==h2){t=n;break}}return t}const Rl=Sl;function F8(e,t){const{leavingVNodes:n}=e;let l=n.get(t.type);return l||(l=Object.create(null),n.set(t.type,l)),l}function et(e,t,n,l,o){const{appear:r,mode:s,persisted:a=!1,onBeforeEnter:i,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:A,onLeave:m,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:y,onAppear:F,onAfterAppear:I,onAppearCancelled:D}=t,w=String(e.key),B=F8(n,e),W=(R,S)=>{R&&F2(R,l,9,S)},Z=(R,S)=>{const q=S[1];W(R,S),v1(R)?R.every(V=>V.length<=1)&&q():R.length<=1&&q()},_={mode:s,persisted:a,beforeEnter(R){let S=i;if(!n.isMounted)if(r)S=y||i;else return;R[E2]&&R[E2](!0);const q=B[w];q&&W3(e,q)&&q.el[E2]&&q.el[E2](),W(S,[R])},enter(R){if(B[w]===e)return;let S=c,q=u,V=d;if(!n.isMounted)if(r)S=F||c,q=I||u,V=D||d;else return;let m1=!1;R[we]=l1=>{m1||(m1=!0,l1?W(V,[R]):W(q,[R]),_.delayedLeave&&_.delayedLeave(),R[we]=void 0)};const b1=R[we].bind(null,!1);S?Z(S,[R,b1]):b1()},leave(R,S){const q=String(e.key);if(R[we]&&R[we](!0),n.isUnmounting)return S();W(A,[R]);let V=!1;R[E2]=b1=>{V||(V=!0,S(),b1?W(g,[R]):W(p,[R]),R[E2]=void 0,B[q]===e&&delete B[q])};const m1=R[E2].bind(null,!1);B[q]=e,m?Z(m,[R,m1]):m1()},clone(R){const S=et(R,t,n,l,o);return o&&o(S),S}};return _}function x5(e){if(h4(e))return e=E3(e),e.children=null,e}function O4(e){if(!h4(e))return o5(e.type)&&e.children?Z8(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&_1(n.default))return n.default()}}function Je(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Je(o5(n.type)&&O4(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function B8(e,t=!1,n){let l=[],o=0;for(let r=0;r1)for(let r=0;r$e(g,t&&(v1(t)?t[y]:t),n,l,o));return}if(se(l)&&!o){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&$e(e,t,n,l.component.subTree);return}const r=l.shapeFlag&4?i5(l.component):l.el,s=o?null:r,{i:a,r:i}=e,c=t&&t.r,u=a.refs===L1?a.refs={}:a.refs,d=a.setupState,A=R1(d),m=d===L1?V7:g=>s6(u,g)?!1:N1(A,g),p=(g,y)=>!(y&&s6(u,y));if(c!=null&&c!==i){if(a6(t),H1(c))u[c]=null,m(c)&&(d[c]=null);else if(n2(c)){const g=t;p(c,g.k)&&(c.value=null),g.k&&(u[g.k]=null)}}if(_1(i))f4(i,a,12,[s,u]);else{const g=H1(i),y=n2(i);if(g||y){const F=()=>{if(e.f){const I=g?m(i)?d[i]:u[i]:p()||!e.k?i.value:u[e.k];if(o)v1(I)&&kt(I,r);else if(v1(I))I.includes(r)||I.push(r);else if(g)u[i]=[r],m(i)&&(d[i]=u[i]);else{const D=[r];p(i,e.k)&&(i.value=D),e.k&&(u[e.k]=D)}}else g?(u[i]=s,m(i)&&(d[i]=s)):y&&(p(i,e.k)&&(i.value=s),e.k&&(u[e.k]=s))};if(s){const I=()=>{F(),$4.delete(e)};I.id=-1,$4.set(e,I),m2(I,n)}else a6(e),F()}}}function a6(e){const t=$4.get(e);t&&(t.flags|=8,$4.delete(e))}const i6=e=>e.nodeType===8;t5().requestIdleCallback;t5().cancelIdleCallback;function Ql(e,t){if(i6(e)&&e.data==="["){let n=1,l=e.nextSibling;for(;l;){if(l.nodeType===1){if(t(l)===!1)break}else if(i6(l))if(l.data==="]"){if(--n===0)break}else l.data==="["&&n++;l=l.nextSibling}}else t(e)}const se=e=>!!e.type.__asyncLoader;function Nl(e){_1(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:l,delay:o=200,hydrate:r,timeout:s,suspensible:a=!0,onError:i}=e;let c=null,u,d=0;const A=()=>(d++,c=null,m()),m=()=>{let p;return c||(p=c=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),i)return new Promise((y,F)=>{i(g,()=>y(A()),()=>F(g),d+1)});throw g}).then(g=>p!==c&&c?c:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),u=g,g)))};return O1({name:"AsyncComponentWrapper",__asyncLoader:m,__asyncHydrate(p,g,y){const F=p.isConnected;let I=!1;(g.bu||(g.bu=[])).push(()=>I=!0);const D=()=>{I||!p.parentNode||F&&!p.isConnected||y()},w=r?()=>{const B=r(D,W=>Ql(p,W));B&&(g.bum||(g.bum=[])).push(B)}:D;u?w():m().then(()=>!g.isUnmounted&&w())},get __asyncResolved(){return u},setup(){const p=i2;if(Bt(p),u)return()=>C4(u,p);const g=B=>{c=null,A4(B,p,13,!l)};if(a&&p.suspense||de)return m().then(B=>()=>C4(B,p)).catch(B=>(g(B),()=>l?M(l,{error:B}):null));const y=j(!1),F=j(),I=j(!!o);let D,w;return ve(()=>{D!=null&&clearTimeout(D),w!=null&&clearTimeout(w)}),o&&(w=setTimeout(()=>{p.isUnmounted||(I.value=!1)},o)),s!=null&&(D=setTimeout(()=>{if(!p.isUnmounted&&!y.value&&!F.value){const B=new Error(`Async component timed out after ${s}ms.`);g(B),F.value=B}},s)),m().then(()=>{p.isUnmounted||(y.value=!0,p.parent&&h4(p.parent.vnode)&&p.parent.update())}).catch(B=>{if(p.isUnmounted){c=null;return}g(B),F.value=B}),()=>{if(y.value&&u)return C4(u,p);if(F.value&&l)return M(l,{error:F.value});if(n&&!I.value)return C4(n,p)}}})}function C4(e,t){const{ref:n,props:l,children:o,ce:r}=t.vnode,s=M(e,l,o);return s.ref=n,s.ce=r,delete t.vnode.ce,s}const h4=e=>e.type.__isKeepAlive;function Kl(e,t){S8(e,"a",t)}function Gl(e,t){S8(e,"da",t)}function S8(e,t,n=i2){const l=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(r5(t,l,n),n){let o=n.parent;for(;o&&o.parent;)h4(o.parent.vnode)&&Ol(l,t,n,o),o=o.parent}}function Ol(e,t,n,l){const o=r5(t,e,l,!0);ve(()=>{kt(l[t],o)},n)}function r5(e,t,n=i2,l=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{u3();const a=p4(n),i=F2(t,n,e,s);return a(),d3(),i});return l?o.unshift(r):o.push(r),r}}const p3=e=>(t,n=i2)=>{(!de||e==="sp")&&r5(e,(...l)=>t(...l),n)},$l=p3("bm"),f2=p3("m"),Wl=p3("bu"),Ll=p3("u"),St=p3("bum"),ve=p3("um"),Pl=p3("sp"),Tl=p3("rtg"),Hl=p3("rtc");function Yl(e,t=i2){r5("ec",e,t)}const R8="components";function tt(e,t){return N8(R8,e,!0,t)||e}const Q8=Symbol.for("v-ndc");function k2(e){return H1(e)?N8(R8,e,!1)||e:e||Q8}function N8(e,t,n=!0,l=!1){const o=c2||i2;if(o){const r=o.type;{const a=Fo(r,!1);if(a&&(a===t||a===b2(t)||a===e5(b2(t))))return r}const s=c6(o[e]||r[e],t)||c6(o.appContext[e],t);return!s&&l?r:s}}function c6(e,t){return e&&(e[t]||e[b2(t)]||e[e5(b2(t))])}function M1(e,t,n,l){let o;const r=n,s=v1(e);if(s||H1(e)){const a=s&&Y3(e);let i=!1,c=!1;a&&(i=!Z2(e),c=f3(e),e=n5(e)),o=new Array(e.length);for(let u=0,d=e.length;ut(a,i,void 0,r));else{const a=Object.keys(e);o=new Array(a.length);for(let i=0,c=a.length;i{const r=l.fn(...o);return r&&(r.key=l.key),r}:l.fn)}return e}function K1(e,t,n,l,o,r){if(n==null&&(n={}),c2.ce||c2.parent&&se(c2.parent)&&c2.parent.ce){const c=n,u=Object.keys(c).length>0;return t!=="default"&&(c.name=t),h(),G(n1,null,[M("slot",c,l&&l())],u?-2:64)}let s=e[t];s&&s._c&&(s._d=!1);const a=c3.length;h();let i;try{const c=s&&K8(s(n)),u=n.key||r||c&&c.key;i=G(n1,{key:(u&&!G2(u)?u:`_${t}`)+(!c&&l?"_fb":"")},c||(l?l():[]),c&&e._===1?64:-2)}catch(c){for(let u=c3.length;u>a;u--)Kt();throw c}finally{s&&s._c&&(s._d=!0)}return i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),i}function K8(e){return e.some(t=>je(t)?!(t.type===h2||t.type===n1&&!K8(t.children)):!0)?e:null}const nt=e=>e?l0(e)?i5(e):nt(e.parent):null,We=r2(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>nt(e.parent),$root:e=>nt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>O8(e),$forceUpdate:e=>e.f||(e.f=()=>{Ft(e.update)}),$nextTick:e=>e.n||(e.n=b8.bind(e.proxy)),$watch:e=>Ml.bind(e)}),_5=(e,t)=>e!==L1&&!e.__isScriptSetup&&N1(e,t),Vl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:o,props:r,accessCache:s,type:a,appContext:i}=e;if(t[0]!=="$"){const A=s[t];if(A!==void 0)switch(A){case 1:return l[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(_5(l,t))return s[t]=1,l[t];if(o!==L1&&N1(o,t))return s[t]=2,o[t];if(N1(r,t))return s[t]=3,r[t];if(n!==L1&&N1(n,t))return s[t]=4,n[t];lt&&(s[t]=0)}}const c=We[t];let u,d;if(c)return t==="$attrs"&&A2(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==L1&&N1(n,t))return s[t]=4,n[t];if(d=i.config.globalProperties,N1(d,t))return d[t]},set({_:e},t,n){const{data:l,setupState:o,ctx:r}=e;return _5(o,t)?(o[t]=n,!0):l!==L1&&N1(l,t)?(l[t]=n,!0):N1(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:o,props:r,type:s}},a){let i;return!!(n[a]||e!==L1&&a[0]!=="$"&&N1(e,a)||_5(t,a)||N1(r,a)||N1(l,a)||N1(We,a)||N1(o.config.globalProperties,a)||(i=s.__cssModules)&&i[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:N1(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function d6(e){return v1(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let lt=!0;function Ul(e){const t=O8(e),n=e.proxy,l=e.ctx;lt=!1,t.beforeCreate&&f6(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:s,watch:a,provide:i,inject:c,created:u,beforeMount:d,mounted:A,beforeUpdate:m,updated:p,activated:g,deactivated:y,beforeDestroy:F,beforeUnmount:I,destroyed:D,unmounted:w,render:B,renderTracked:W,renderTriggered:Z,errorCaptured:_,serverPrefetch:R,expose:S,inheritAttrs:q,components:V,directives:m1,filters:b1}=t;if(c&&Jl(c,l,null),s)for(const y1 in s){const w1=s[y1];_1(w1)&&(l[y1]=w1.bind(n))}if(o){const y1=o.call(n,n);G1(y1)&&(e.data=l5(y1))}if(lt=!0,r)for(const y1 in r){const w1=r[y1],C1=_1(w1)?w1.bind(n,n):_1(w1.get)?w1.get.bind(n,n):z2,s1=!_1(w1)&&_1(w1.set)?w1.set.bind(n):z2,$1=t1({get:C1,set:s1});Object.defineProperty(l,y1,{enumerable:!0,configurable:!0,get:()=>$1.value,set:S1=>$1.value=S1})}if(a)for(const y1 in a)G8(a[y1],l,n,y1);if(i){const y1=_1(i)?i.call(n):i;Reflect.ownKeys(y1).forEach(w1=>{B4(w1,y1[w1])})}u&&f6(u,e,"c");function o1(y1,w1){v1(w1)?w1.forEach(C1=>y1(C1.bind(n))):w1&&y1(w1.bind(n))}if(o1($l,d),o1(f2,A),o1(Wl,m),o1(Ll,p),o1(Kl,g),o1(Gl,y),o1(Yl,_),o1(Hl,W),o1(Tl,Z),o1(St,I),o1(ve,w),o1(Pl,R),v1(S))if(S.length){const y1=e.exposed||(e.exposed={});S.forEach(w1=>{Object.defineProperty(y1,w1,{get:()=>n[w1],set:C1=>n[w1]=C1,enumerable:!0})})}else e.exposed||(e.exposed={});B&&e.render===z2&&(e.render=B),q!=null&&(e.inheritAttrs=q),V&&(e.components=V),m1&&(e.directives=m1),R&&Bt(e)}function Jl(e,t,n=z2){v1(e)&&(e=ot(e));for(const l in e){const o=e[l];let r;G1(o)?"default"in o?r=K2(o.from||l,o.default,!0):r=K2(o.from||l):r=K2(o),n2(r)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[l]=r}}function f6(e,t,n){F2(v1(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function G8(e,t,n,l){let o=l.includes(".")?I8(n,l):()=>n[l];if(H1(e)){const r=t[e];_1(r)&&q1(o,r)}else if(_1(e))q1(o,e.bind(n));else if(G1(e))if(v1(e))e.forEach(r=>G8(r,t,n,l));else{const r=_1(e.handler)?e.handler.bind(n):t[e.handler];_1(r)&&q1(o,r,e)}}function O8(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let i;return a?i=a:!o.length&&!n&&!l?i=t:(i={},o.length&&o.forEach(c=>W4(i,c,s,!0)),W4(i,t,s)),G1(t)&&r.set(t,i),i}function W4(e,t,n,l=!1){const{mixins:o,extends:r}=t;r&&W4(e,r,n,!0),o&&o.forEach(s=>W4(e,s,n,!0));for(const s in t)if(!(l&&s==="expose")){const a=zl[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const zl={data:A6,props:h6,emits:h6,methods:Se,computed:Se,beforeCreate:p2,created:p2,beforeMount:p2,mounted:p2,beforeUpdate:p2,updated:p2,beforeDestroy:p2,beforeUnmount:p2,destroyed:p2,unmounted:p2,activated:p2,deactivated:p2,errorCaptured:p2,serverPrefetch:p2,components:Se,directives:Se,watch:Xl,provide:A6,inject:jl};function A6(e,t){return t?e?function(){return r2(_1(e)?e.call(this,this):e,_1(t)?t.call(this,this):t)}:t:e}function jl(e,t){return Se(ot(e),ot(t))}function ot(e){if(v1(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${b2(t)}Modifiers`]||e[`${Z3(t)}Modifiers`];function no(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||L1;let o=n;const r=t.startsWith("update:"),s=r&&to(l,t.slice(7));s&&(s.trim&&(o=n.map(u=>H1(u)?u.trim():u)),s.number&&(o=o.map(wt)));let a,i=l[a=y5(t)]||l[a=y5(b2(t))];!i&&r&&(i=l[a=y5(Z3(t))]),i&&F2(i,e,6,o);const c=l[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,F2(c,e,6,o)}}const lo=new WeakMap;function W8(e,t,n=!1){const l=n?lo:t.emitsCache,o=l.get(e);if(o!==void 0)return o;const r=e.emits;let s={},a=!1;if(!_1(e)){const i=c=>{const u=W8(c,t,!0);u&&(a=!0,r2(s,u))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return!r&&!a?(G1(e)&&l.set(e,null),null):(v1(r)?r.forEach(i=>s[i]=null):r2(s,r),G1(e)&&l.set(e,s),s)}function s5(e,t){return!e||!j4(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),N1(e,t[0].toLowerCase()+t.slice(1))||N1(e,Z3(t))||N1(e,t))}function p6(e){const{type:t,vnode:n,proxy:l,withProxy:o,propsOptions:[r],slots:s,attrs:a,emit:i,render:c,renderCache:u,props:d,data:A,setupState:m,ctx:p,inheritAttrs:g}=e,y=G4(e);let F,I;try{if(n.shapeFlag&4){const w=o||l,B=w;F=Y2(c.call(B,w,u,d,m,A,p)),I=a}else{const w=t;F=Y2(w.length>1?w(d,{attrs:a,slots:s,emit:i}):w(d,null)),I=t.props?a:oo(a)}}catch(w){c3.length=0,A4(w,e,1),F=M(h2)}let D=F;if(I&&g!==!1){const w=Object.keys(I),{shapeFlag:B}=D;w.length&&B&7&&(r&&w.some(X4)&&(I=ro(I,r)),D=E3(D,I,!1,!0))}if(n.dirs&&(D=E3(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(n.dirs):n.dirs),n.transition){const w=o5(D.type)&&O4(D)||D;Je(w,n.transition)}return F=D,G4(y),F}const oo=e=>{let t;for(const n in e)(n==="class"||n==="style"||j4(n))&&((t||(t={}))[n]=e[n]);return t},ro=(e,t)=>{const n={};for(const l in e)(!X4(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function so(e,t,n){const{props:l,children:o,component:r}=e,{props:s,children:a,patchFlag:i}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&i>=0){if(i&1024)return!0;if(i&16)return l?m6(l,s,c):!!s;if(i&8){const u=t.dynamicProps;for(let d=0;dObject.create(P8),H8=e=>Object.getPrototypeOf(e)===P8;function io(e,t,n,l=!1){const o={},r=T8();e.propsDefaults=Object.create(null),Y8(e,t,o,r);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=l?o:m8(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function co(e,t,n,l){const{props:o,attrs:r,vnode:{patchFlag:s}}=e,a=R1(o),[i]=e.propsOptions;let c=!1;if((l||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let d=0;d{i=!0;const[A,m]=V8(d,t,!0);r2(s,A),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!i)return G1(e)&&l.set(e,oe),oe;if(v1(r))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",Qt=e=>v1(e)?e.map(Y2):[Y2(e)],fo=(e,t,n)=>{if(t._n)return t;const l=x((...o)=>Qt(t(...o)),n);return l._c=!1,l},U8=(e,t,n)=>{const l=e._ctx;for(const o in e){if(Rt(o))continue;const r=e[o];if(_1(r))t[o]=fo(o,r,l);else if(r!=null){const s=Qt(r);t[o]=()=>s}}},J8=(e,t)=>{const n=Qt(t);e.slots.default=()=>n},z8=(e,t,n)=>{for(const l in t)(n||!Rt(l))&&(e[l]=t[l])},Ao=(e,t,n)=>{const l=e.slots=T8();if(e.vnode.shapeFlag&32){const o=t._;o?(z8(l,t,n),n&&j7(l,"_",o,!0)):U8(t,l)}else t&&J8(e,t)},ho=(e,t,n)=>{const{vnode:l,slots:o}=e;let r=!0,s=L1;if(l.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:z8(o,t,n):(r=!t.$stable,U8(t,o)),s=t}else t&&(J8(e,t),s={default:1});if(r)for(const a in o)!Rt(a)&&s[a]==null&&delete o[a]},m2=yo;function po(e){return mo(e)}function mo(e,t){const n=t5();n.__VUE__=!0;const{insert:l,remove:o,patchProp:r,createElement:s,createText:a,createComment:i,setText:c,setElementText:u,parentNode:d,nextSibling:A,setScopeId:m=z2,insertStaticContent:p}=e,g=(v,b,E,P=null,Y=null,T=null,r1=void 0,e1=null,X=!!b.dynamicChildren)=>{if(v===b)return;v&&!W3(v,b)&&(P=$(v),S1(v,Y,T,!0),v=null),b.patchFlag===-2&&(X=!1,b.dynamicChildren=null);const{type:U,ref:g1,shapeFlag:i1}=b;switch(U){case a5:y(v,b,E,P);break;case h2:F(v,b,E,P);break;case S4:v==null&&I(b,E,P,r1);break;case n1:V(v,b,E,P,Y,T,r1,e1,X);break;default:i1&1?B(v,b,E,P,Y,T,r1,e1,X):i1&6?m1(v,b,E,P,Y,T,r1,e1,X):(i1&64||i1&128)&&U.process(v,b,E,P,Y,T,r1,e1,X,f1)}g1!=null&&Y?$e(g1,v&&v.ref,T,b||v,!b):g1==null&&v&&v.ref!=null&&$e(v.ref,null,T,v,!0)},y=(v,b,E,P)=>{if(v==null)l(b.el=a(b.children),E,P);else{const Y=b.el=v.el;b.children!==v.children&&c(Y,b.children)}},F=(v,b,E,P)=>{v==null?l(b.el=i(b.children||""),E,P):b.el=v.el},I=(v,b,E,P)=>{[v.el,v.anchor]=p(v.children,b,E,P,v.el,v.anchor)},D=({el:v,anchor:b},E,P)=>{let Y;for(;v&&v!==b;)Y=A(v),l(v,E,P),v=Y;l(b,E,P)},w=({el:v,anchor:b})=>{let E;for(;v&&v!==b;)E=A(v),o(v),v=E;o(b)},B=(v,b,E,P,Y,T,r1,e1,X)=>{if(b.type==="svg"?r1="svg":b.type==="math"&&(r1="mathml"),v==null)W(b,E,P,Y,T,r1,e1,X);else{const U=v.el&&v.el._isVueCE?v.el:null;try{U&&U._beginPatch(),R(v,b,Y,T,r1,e1,X)}finally{U&&U._endPatch()}}},W=(v,b,E,P,Y,T,r1,e1)=>{let X,U;const{props:g1,shapeFlag:i1,transition:K,dirs:O}=v;if(X=v.el=s(v.type,T,g1&&g1.is,g1),i1&8?u(X,v.children):i1&16&&_(v.children,X,null,P,Y,I5(v,T),r1,e1),O&&B3(v,null,P,"created"),Z(X,v,v.scopeId,r1,P),g1){for(const H in g1)H!=="value"&&!Ne(H)&&r(X,H,null,g1[H],T,P);"value"in g1&&r(X,"value",null,g1.value,T),(U=g1.onVnodeBeforeMount)&&W2(U,P,v)}O&&B3(v,null,P,"beforeMount");const h1=go(Y,K);h1&&K.beforeEnter(X),l(X,b,E),((U=g1&&g1.onVnodeMounted)||h1||O)&&m2(()=>{try{U&&W2(U,P,v),h1&&K.enter(X),O&&B3(v,null,P,"mounted")}finally{}},Y)},Z=(v,b,E,P,Y)=>{if(E&&m(v,E),P)for(let T=0;T{for(let U=X;U{const e1=b.el=v.el;let{patchFlag:X,dynamicChildren:U,dirs:g1}=b;X|=v.patchFlag&16;const i1=v.props||L1,K=b.props||L1;let O;if(E&&S3(E,!1),(O=K.onVnodeBeforeUpdate)&&W2(O,E,b,v),g1&&B3(b,v,E,"beforeUpdate"),E&&S3(E,!0),U&&(!v.dynamicChildren||v.dynamicChildren.length!==U.length)&&(X=0,r1=!1,U=null),(i1.innerHTML&&K.innerHTML==null||i1.textContent&&K.textContent==null)&&u(e1,""),U?S(v.dynamicChildren,U,e1,E,P,I5(b,Y),T):r1||w1(v,b,e1,null,E,P,I5(b,Y),T,!1),X>0){if(X&16)q(e1,i1,K,E,Y);else if(X&2&&i1.class!==K.class&&r(e1,"class",null,K.class,Y),X&4&&r(e1,"style",i1.style,K.style,Y),X&8){const h1=b.dynamicProps;for(let H=0;H{O&&W2(O,E,b,v),g1&&B3(b,v,E,"updated")},P)},S=(v,b,E,P,Y,T,r1)=>{for(let e1=0;e1{if(b!==E){if(b!==L1)for(const T in b)!Ne(T)&&!(T in E)&&r(v,T,b[T],null,Y,P);for(const T in E){if(Ne(T))continue;const r1=E[T],e1=b[T];r1!==e1&&T!=="value"&&r(v,T,e1,r1,Y,P)}"value"in E&&r(v,"value",b.value,E.value,Y)}},V=(v,b,E,P,Y,T,r1,e1,X)=>{const U=b.el=v?v.el:a(""),g1=b.anchor=v?v.anchor:a("");let{patchFlag:i1,dynamicChildren:K,slotScopeIds:O}=b;O&&(e1=e1?e1.concat(O):O),v==null?(l(U,E,P),l(g1,E,P),_(b.children||[],E,g1,Y,T,r1,e1,X)):i1>0&&i1&64&&K&&v.dynamicChildren&&v.dynamicChildren.length===K.length?(S(v.dynamicChildren,K,E,Y,T,r1,e1),(b.key!=null||Y&&b===Y.subTree)&&Nt(v,b,!0)):w1(v,b,E,g1,Y,T,r1,e1,X)},m1=(v,b,E,P,Y,T,r1,e1,X)=>{b.slotScopeIds=e1,v==null?b.shapeFlag&512?Y.ctx.activate(b,E,P,r1,X):b1(b,E,P,Y,T,r1,X):l1(v,b,X)},b1=(v,b,E,P,Y,T,r1)=>{const e1=v.component=Io(v,P,Y);if(h4(v)&&(e1.ctx.renderer=f1),Mo(e1,!1,r1),e1.asyncDep){if(Y&&Y.registerDep(e1,o1,r1),!v.el){const X=e1.subTree=M(h2);F(null,X,b,E),v.placeholder=X.el}}else o1(e1,v,b,E,Y,T,r1)},l1=(v,b,E)=>{const P=b.component=v.component;if(so(v,b,E))if(P.asyncDep&&!P.asyncResolved){y1(P,b,E);return}else P.next=b,P.update();else b.el=v.el,P.vnode=b},o1=(v,b,E,P,Y,T,r1)=>{const e1=()=>{if(v.isMounted){let{next:i1,bu:K,u:O,parent:h1,vnode:H}=v;{const w2=j8(v);if(w2){i1&&(i1.el=H.el,y1(v,i1,r1)),w2.asyncDep.then(()=>{m2(()=>{v.isUnmounted||U()},Y)});return}}let D1=i1,V1;S3(v,!1),i1?(i1.el=H.el,y1(v,i1,r1)):i1=H,K&&F4(K),(V1=i1.props&&i1.props.onVnodeBeforeUpdate)&&W2(V1,h1,i1,H),S3(v,!0);const t2=p6(v),C2=v.subTree;v.subTree=t2,g(C2,t2,d(C2.el),$(C2),v,Y,T),i1.el=t2.el,D1===null&&ao(v,t2.el),O&&m2(O,Y),(V1=i1.props&&i1.props.onVnodeUpdated)&&m2(()=>W2(V1,h1,i1,H),Y)}else{let i1;const{el:K,props:O}=b,{bm:h1,m:H,parent:D1,root:V1,type:t2}=v,C2=se(b);S3(v,!1),h1&&F4(h1),!C2&&(i1=O&&O.onVnodeBeforeMount)&&W2(i1,D1,b),S3(v,!0);{V1.ce&&V1.ce._hasShadowRoot()&&V1.ce._injectChildStyle(t2,v.parent?v.parent.type:void 0);const w2=v.subTree=p6(v);g(null,w2,E,P,v,Y,T),b.el=w2.el}if(H&&m2(H,Y),!C2&&(i1=O&&O.onVnodeMounted)){const w2=b;m2(()=>W2(i1,D1,w2),Y)}(b.shapeFlag&256||D1&&se(D1.vnode)&&D1.vnode.shapeFlag&256)&&v.a&&m2(v.a,Y),v.isMounted=!0,b=E=P=null}};v.scope.on();const X=v.effect=new n8(e1);v.scope.off();const U=v.update=X.run.bind(X),g1=v.job=X.runIfDirty.bind(X);g1.i=v,g1.id=v.uid,X.scheduler=()=>Ft(g1),S3(v,!0),U()},y1=(v,b,E)=>{b.component=v;const P=v.vnode.props;v.vnode=b,v.next=null,co(v,b.props,P,E),ho(v,b.children,E),u3(),l6(v),d3()},w1=(v,b,E,P,Y,T,r1,e1,X=!1)=>{const U=v&&v.children,g1=v?v.shapeFlag:0,i1=b.children,{patchFlag:K,shapeFlag:O}=b;if(K>0){if(K&128){s1(U,i1,E,P,Y,T,r1,e1,X);return}else if(K&256){C1(U,i1,E,P,Y,T,r1,e1,X);return}}O&8?(g1&16&&p1(U,Y,T),i1!==U&&u(E,i1)):g1&16?O&16?s1(U,i1,E,P,Y,T,r1,e1,X):p1(U,Y,T,!0):(g1&8&&u(E,""),O&16&&_(i1,E,P,Y,T,r1,e1,X))},C1=(v,b,E,P,Y,T,r1,e1,X)=>{v=v||oe,b=b||oe;const U=v.length,g1=b.length,i1=Math.min(U,g1);let K;for(K=0;Kg1?p1(v,Y,T,!0,!1,i1):_(b,E,P,Y,T,r1,e1,X,i1)},s1=(v,b,E,P,Y,T,r1,e1,X)=>{let U=0;const g1=b.length;let i1=v.length-1,K=g1-1;for(;U<=i1&&U<=K;){const O=v[U],h1=b[U]=X?r3(b[U]):Y2(b[U]);if(W3(O,h1))g(O,h1,E,null,Y,T,r1,e1,X);else break;U++}for(;U<=i1&&U<=K;){const O=v[i1],h1=b[K]=X?r3(b[K]):Y2(b[K]);if(W3(O,h1))g(O,h1,E,null,Y,T,r1,e1,X);else break;i1--,K--}if(U>i1){if(U<=K){const O=K+1,h1=OK)for(;U<=i1;)S1(v[U],Y,T,!0),U++;else{const O=U,h1=U,H=new Map;for(U=h1;U<=K;U++){const E1=b[U]=X?r3(b[U]):Y2(b[U]);E1.key!=null&&H.set(E1.key,U)}let D1,V1=0;const t2=K-h1+1;let C2=!1,w2=0;const v3=new Array(t2);for(U=0;U=t2){S1(E1,Y,T,!0);continue}let J1;if(E1.key!=null)J1=H.get(E1.key);else for(D1=h1;D1<=K;D1++)if(v3[D1-h1]===0&&W3(E1,b[D1])){J1=D1;break}J1===void 0?S1(E1,Y,T,!0):(v3[J1-h1]=U+1,J1>=w2?w2=J1:C2=!0,g(E1,b[J1],E,null,Y,T,r1,e1,X),V1++)}const ke=C2?vo(v3):oe;for(D1=ke.length-1,U=t2-1;U>=0;U--){const E1=h1+U,J1=b[E1],v5=b[E1+1],jt=E1+1{const{el:T,type:r1,transition:e1,children:X,shapeFlag:U}=v;if(U&6){$1(v.component.subTree,b,E,P);return}if(U&128){v.suspense.move(b,E,P);return}if(U&64){r1.move(v,b,E,f1);return}if(r1===n1){l(T,b,E);for(let i1=0;i1e1.enter(T),Y));else{const{leave:i1,delayLeave:K,afterLeave:O}=e1,h1=()=>{v.ctx.isUnmounted?o(T):l(T,b,E)},H=()=>{const D1=T._isLeaving||!!T[E2];T._isLeaving&&T[E2](!0),e1.persisted&&!D1?h1():i1(T,()=>{h1(),O&&O()})};K?K(T,h1,H):H()}else l(T,b,E)},S1=(v,b,E,P=!1,Y=!1)=>{const{type:T,props:r1,ref:e1,children:X,dynamicChildren:U,shapeFlag:g1,patchFlag:i1,dirs:K,cacheIndex:O,memo:h1}=v;if(i1===-2&&(Y=!1),e1!=null&&(u3(),$e(e1,null,E,v,!0),d3()),O!=null&&(b.renderCache[O]=void 0),g1&256){b.ctx.deactivate(v);return}const H=g1&1&&K,D1=!se(v);let V1;if(D1&&(V1=r1&&r1.onVnodeBeforeUnmount)&&W2(V1,b,v),g1&6)a1(v.component,E,P);else{if(g1&128){v.suspense.unmount(E,P);return}H&&B3(v,null,b,"beforeUnmount"),g1&64?v.type.remove(v,b,E,f1,P):U&&!U.hasOnce&&(T!==n1||i1>0&&i1&64)?p1(U,b,E,!1,!0):(T===n1&&i1&384||!Y&&g1&16)&&p1(X,b,E),P&&Y1(v)}const t2=h1!=null&&O==null;(D1&&(V1=r1&&r1.onVnodeUnmounted)||H||t2)&&m2(()=>{V1&&W2(V1,b,v),H&&B3(v,null,b,"unmounted"),t2&&(v.el=null)},E)},Y1=v=>{const{type:b,el:E,anchor:P,transition:Y}=v;if(b===n1){e2(E,P);return}if(b===S4){w(v);return}const T=()=>{o(E),Y&&!Y.persisted&&Y.afterLeave&&Y.afterLeave()};if(v.shapeFlag&1&&Y&&!Y.persisted){const{leave:r1,delayLeave:e1}=Y,X=()=>r1(E,T);e1?e1(v.el,T,X):X()}else T()},e2=(v,b)=>{let E;for(;v!==b;)E=A(v),o(v),v=E;o(b)},a1=(v,b,E)=>{const{bum:P,scope:Y,job:T,subTree:r1,um:e1,m:X,a:U}=v;v6(X),v6(U),P&&F4(P),Y.stop(),T&&(T.flags|=8,S1(r1,v,b,E)),e1&&m2(e1,b),m2(()=>{v.isUnmounted=!0},b)},p1=(v,b,E,P=!1,Y=!1,T=0)=>{for(let r1=T;r1{if(v.shapeFlag&6)return $(v.component.subTree);if(v.shapeFlag&128)return v.suspense.next();const b=A(v.anchor||v.el),E=b&&b[M8];return E?A(E):b};let z=!1;const N=(v,b,E)=>{let P;v==null?b._vnode&&(S1(b._vnode,null,null,!0),P=b._vnode.component):g(b._vnode||null,v,b,null,null,null,E),b._vnode=v,z||(z=!0,l6(P),C8(),z=!1)},f1={p:g,um:S1,m:$1,r:Y1,mt:b1,mc:_,pc:w1,pbc:S,n:$,o:e};return{render:N,hydrate:void 0,createApp:eo(N)}}function I5({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function S3({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function go(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Nt(e,t,n=!1){const l=e.children,o=t.children;if(v1(l)&&v1(o))for(let r=0;r>1,e[n[a]]0&&(t[l]=n[r-1]),n[r]=l)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function j8(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:j8(t)}function v6(e){if(e)for(let t=0;te.__isSuspense;function yo(e,t){t&&t.pendingBranch?v1(e)?t.effects.push(...e):t.effects.push(e):xl(e)}const n1=Symbol.for("v-fgt"),a5=Symbol.for("v-txt"),h2=Symbol.for("v-cmt"),S4=Symbol.for("v-stc"),c3=[];let x2=null;function h(e=!1){c3.push(x2=e?null:[])}function Kt(){c3.pop(),x2=c3[c3.length-1]||null}let ze=1;function L4(e,t=!1){ze+=e,e<0&&x2&&t&&(x2.hasOnce=!0)}function e0(e){return e.dynamicChildren=ze>0?x2||oe:null,Kt(),ze>0&&x2&&x2.push(e),e}function C(e,t,n,l,o,r){return e0(k(e,t,n,l,o,r,!0))}function G(e,t,n,l,o){return e0(M(e,t,n,l,o,!0))}function je(e){return e?e.__v_isVNode===!0:!1}function W3(e,t){return e.type===t.type&&e.key===t.key}const t0=({key:e})=>e??null,R4=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?H1(e)||n2(e)||_1(e)?{i:c2,r:e,k:t,f:!!n}:e:null);function k(e,t=null,n=null,l=0,o=null,r=e===n1?0:1,s=!1,a=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&t0(t),ref:t&&R4(t),scopeId:x8,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:l,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:c2};return a?(P4(i,n),r&128&&e.normalize(i)):n&&(i.shapeFlag|=H1(n)?8:16),ze>0&&!s&&x2&&(i.patchFlag>0||r&6)&&i.patchFlag!==32&&x2.push(i),i}const M=bo;function bo(e,t=null,n=null,l=0,o=null,r=!1){if((!e||e===Q8)&&(e=h2),je(e)){const a=E3(e,t,!0);return n&&P4(a,n),ze>0&&!r&&x2&&(a.shapeFlag&6?x2[x2.indexOf(e)]=a:x2.push(a)),a.patchFlag=-2,a}if(Bo(e)&&(e=e.__vccOpts),t){t=ko(t);let{class:a,style:i}=t;a&&!H1(a)&&(t.class=c1(a)),G1(i)&&(Zt(i)&&!v1(i)&&(i=r2({},i)),t.style=M2(i))}const s=H1(e)?1:q8(e)?128:o5(e)?64:G1(e)?4:_1(e)?2:0;return k(e,t,n,l,o,s,r,!0)}function ko(e){return e?Zt(e)||H8(e)?r2({},e):e:null}function E3(e,t,n=!1,l=!1){const{props:o,ref:r,patchFlag:s,children:a,transition:i}=e,c=t?wo(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&t0(c),ref:t&&t.ref?n&&r?v1(r)?r.concat(R4(t)):[r,R4(t)]:R4(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==n1?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:i,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&E3(e.ssContent),ssFallback:e.ssFallback&&E3(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return i&&l&&Je(u,i.clone(u)),u}function J(e=" ",t=0){return M(a5,null,e,t)}function Co(e,t){const n=M(S4,null,e);return n.staticCount=t,n}function L(e="",t=!1){return t?(h(),G(h2,null,e)):M(h2,null,e)}function Y2(e){return e==null||typeof e=="boolean"?M(h2):v1(e)?M(n1,null,e.slice()):je(e)?r3(e):M(a5,null,String(e))}function r3(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:E3(e)}function P4(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(v1(t))n=16;else if(typeof t=="object")if(l&65){const o=t.default;o&&(o._c&&(o._d=!1),P4(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!H8(t)?t._ctx=c2:o===3&&c2&&(c2.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(_1(t)){if(l&65){P4(e,{default:t});return}t={default:t,_ctx:c2},n=32}else t=String(t),l&64?(n=16,t=[J(t)]):n=8;e.children=t,e.shapeFlag|=n}function wo(...e){const t={};for(let n=0;ni2||c2;let T4,Xe;{const e=t5(),t=(n,l)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(l),r=>{o.length>1?o.forEach(s=>s(r)):o[0](r)}};T4=t("__VUE_INSTANCE_SETTERS__",n=>i2=n),Xe=t("__VUE_SSR_SETTERS__",n=>de=n)}const p4=e=>{const t=i2;return T4(e),e.scope.on(),()=>{e.scope.off(),T4(t)}},y6=()=>{i2&&i2.scope.off(),T4(null)};function l0(e){return e.vnode.shapeFlag&4}let de=!1;function Mo(e,t=!1,n=!1){t&&Xe(t);const{props:l,children:o}=e.vnode,r=l0(e);io(e,l,r,t),Ao(e,o,n||t);const s=r?Eo(e,t):void 0;return t&&Xe(!1),s}function Eo(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Vl);const{setup:l}=n;if(l){u3();const o=e.setupContext=l.length>1?Zo(e):null,r=p4(e),s=f4(l,e,0,[e.props,o]),a=U7(s);if(d3(),r(),(a||e.sp)&&!se(e)&&Bt(e),a){if(s.then(y6,y6),t)return s.then(i=>{Xe(!0);try{b6(e,i,t)}finally{Xe(!1)}}).catch(i=>{A4(i,e,0)});e.asyncDep=s}else b6(e,s)}else o0(e)}function b6(e,t,n){_1(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:G1(t)&&(e.setupState=v8(t)),o0(e)}function o0(e,t,n){const l=e.type;e.render||(e.render=l.render||z2);{const o=p4(e);u3();try{Ul(e)}finally{d3(),o()}}}const Do={get(e,t){return A2(e,"get",""),e[t]}};function Zo(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Do),slots:e.slots,emit:e.emit,expose:t}}function i5(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(v8(hl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in We)return We[n](e)},has(t,n){return n in t||n in We}})):e.proxy}function Fo(e,t=!0){return _1(e)?e.displayName||e.name:e.name||t&&e.__name}function Bo(e){return _1(e)&&"__vccOpts"in e}const t1=(e,t)=>yl(e,t,de);function A3(e,t,n){try{L4(-1);const l=arguments.length;return l===2?G1(t)&&!v1(t)?je(t)?M(e,null,[t]):M(e,t):M(e,null,t):(l>3?n=Array.prototype.slice.call(arguments,2):l===3&&je(n)&&(n=[n]),M(e,t,n))}finally{L4(1)}}const So="3.5.42";/** * @vue/runtime-dom v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let rt;const v6=typeof window<"u"&&window.trustedTypes;if(v6)try{rt=v6.createPolicy("vue",{createHTML:e=>e})}catch{}const l0=rt?e=>rt.createHTML(e):e=>e,Do="http://www.w3.org/2000/svg",Zo="http://www.w3.org/1998/Math/MathML",o3=typeof document<"u"?document:null,y6=o3&&o3.createElement("template"),Fo={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const o=t==="svg"?o3.createElementNS(Do,e):t==="mathml"?o3.createElementNS(Zo,e):n?o3.createElement(e,{is:n}):o3.createElement(e);return e==="select"&&l&&l.multiple!=null&&o.setAttribute("multiple",l.multiple),o},createText:e=>o3.createTextNode(e),createComment:e=>o3.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>o3.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,o,r){const s=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{y6.innerHTML=l0(l==="svg"?`${e}`:l==="mathml"?`${e}`:e);const a=y6.content;if(l==="svg"||l==="mathml"){const i=a.firstChild;for(;i.firstChild;)a.appendChild(i.firstChild);a.removeChild(i)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},y3="transition",Ce="animation",Xe=Symbol("_vtc"),o0={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Bo=r2({},_8,o0),So=e=>(e.displayName="Transition",e.props=Bo,e),r0=So((e,{slots:t})=>A3(Fl,Ro(e),t)),Q3=(e,t=[])=>{v1(e)?e.forEach(n=>n(...t)):e&&e(...t)},b6=e=>e?v1(e)?e.some(t=>t.length>1):e.length>1:!1;function Ro(e){const t={};for(const Y in e)Y in o0||(t[Y]=e[Y]);if(e.css===!1)return t;const{name:n="v",type:l,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:i=r,appearActiveClass:c=s,appearToClass:d=a,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:A=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,p=Qo(o),y=p&&p[0],k=p&&p[1],{onBeforeEnter:F,onEnter:M,onEnterCancelled:E,onLeave:_,onLeaveCancelled:R,onBeforeAppear:$=F,onAppear:D=M,onAppearCancelled:x=E}=t,Q=(Y,m1,w1,r1)=>{Y._enterCancelled=r1,N3(Y,m1?d:a),N3(Y,m1?c:s),w1&&w1()},B=(Y,m1)=>{Y._isLeaving=!1,N3(Y,u),N3(Y,m),N3(Y,A),m1&&m1()},X=Y=>(m1,w1)=>{const r1=Y?D:M,l1=()=>Q(m1,Y,w1);Q3(r1,[m1,l1]),k6(()=>{N3(m1,Y?i:r),t3(m1,Y?d:a),b6(r1)||C6(m1,l,y,l1)})};return r2(t,{onBeforeEnter(Y){Q3(F,[Y]),t3(Y,r),t3(Y,s)},onBeforeAppear(Y){Q3($,[Y]),t3(Y,i),t3(Y,c)},onEnter:X(!1),onAppear:X(!0),onLeave(Y,m1){Y._isLeaving=!0;const w1=()=>B(Y,m1);t3(Y,u),Y._enterCancelled?(t3(Y,A),_6(Y)):(_6(Y),t3(Y,A)),k6(()=>{Y._isLeaving&&(N3(Y,u),t3(Y,m),b6(_)||C6(Y,l,k,w1))}),Q3(_,[Y,w1])},onEnterCancelled(Y){Q(Y,!1,void 0,!0),Q3(E,[Y])},onAppearCancelled(Y){Q(Y,!0,void 0,!0),Q3(x,[Y])},onLeaveCancelled(Y){B(Y),Q3(R,[Y])}})}function Qo(e){if(e==null)return null;if(G1(e))return[M5(e.enter),M5(e.leave)];{const t=M5(e);return[t,t]}}function M5(e){return Gn(e)}function t3(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Xe]||(e[Xe]=new Set)).add(t)}function N3(e,t){t.split(/\s+/).forEach(l=>l&&e.classList.remove(l));const n=e[Xe];n&&(n.delete(t),n.size||(e[Xe]=void 0))}function k6(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let No=0;function C6(e,t,n,l){const o=e._endId=++No,r=()=>{o===e._endId&&l()};if(n!=null)return setTimeout(r,n);const{type:s,timeout:a,propCount:i}=Ko(e,t);if(!s)return l();const c=s+"end";let d=0;const u=()=>{e.removeEventListener(c,A),r()},A=m=>{m.target===e&&++d>=i&&u()};setTimeout(()=>{d(n[p]||"").split(", "),o=l(`${y3}Delay`),r=l(`${y3}Duration`),s=w6(o,r),a=l(`${Ce}Delay`),i=l(`${Ce}Duration`),c=w6(a,i);let d=null,u=0,A=0;t===y3?s>0&&(d=y3,u=s,A=r.length):t===Ce?c>0&&(d=Ce,u=c,A=i.length):(u=Math.max(s,c),d=u>0?s>c?y3:Ce:null,A=d?d===y3?r.length:i.length:0);const m=d===y3&&/\b(?:transform|all)(?:,|$)/.test(l(`${y3}Property`).toString());return{type:d,timeout:u,propCount:A,hasTransform:m}}function w6(e,t){for(;e.lengthx6(n)+x6(e[l])))}function x6(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function _6(e){return(e?e.ownerDocument:document).body.offsetHeight}function Go(e,t,n){const l=e[Xe];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const P4=Symbol("_vod"),s0=Symbol("_vsh"),Oo={name:"show",beforeMount(e,{value:t},{transition:n}){e[P4]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):we(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:l}){!t!=!n&&(l?t?(l.beforeEnter(e),we(e,!0),l.enter(e)):l.leave(e,()=>{we(e,!1)}):we(e,t))},beforeUnmount(e,{value:t}){we(e,t)}};function we(e,t){e.style.display=t?e[P4]:"none",e[s0]=!t}const $o=Symbol(""),Wo=/(?:^|;)\s*display\s*:/;function Lo(e,t,n){const l=e.style,o=T1(n);let r=!1;if(n&&!o){if(t)if(T1(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&Be(l,a,"")}else for(const s in t)n[s]==null&&Be(l,s,"");for(const s in n){s==="display"&&(r=!0);const a=n[s];a!=null?Ho(e,s,!T1(t)&&t?t[s]:void 0,a)||Be(l,s,a):Be(l,s,"")}}else if(o){if(t!==n){const s=l[$o];s&&(n+=";"+s),l.cssText=n,r=Wo.test(n)}}else t&&e.removeAttribute("style");P4 in e&&(e[P4]=r?l.display:"",e[s0]&&(l.display="none"))}const b4=/\s*!important$/;function Be(e,t,n){if(v1(n))n.forEach(l=>Be(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))b4.test(n)?e.setProperty(t,n.replace(b4,""),"important"):e.setProperty(t,n);else{const l=Po(e,t);b4.test(n)?e.setProperty(Z3(l),n.replace(b4,""),"important"):e[l]=n}}const I6=["Webkit","Moz","ms"],E5={};function Po(e,t){const n=E5[t];if(n)return n;let l=b2(t);if(l!=="filter"&&l in e)return E5[t]=l;l=X4(l);for(let o=0;oD5||(zo.then(()=>D5=0),D5=Date.now());function Xo(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;const o=n.value;if(v1(o)){const r=l.stopImmediatePropagation;l.stopImmediatePropagation=()=>{r.call(l),l._stopped=!0};const s=o.slice(),a=[l];for(let i=0;ie.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,qo=(e,t,n,l,o,r)=>{const s=o==="svg";t==="class"?Go(e,l,s):t==="style"?Lo(e,n,l):J4(t)?z4(t)||Yo(e,t,n,l,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):er(e,t,l,s))?(D6(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&E6(e,t,l,s,r,t!=="value")):e._isVueCE&&(tr(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!T1(l)))?D6(e,b2(t),l,r,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),E6(e,t,l,s))};function er(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&F6(t)&&I1(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return F6(t)&&T1(n)?!1:t in e}function tr(e,t){const n=e._def.props;if(!n)return!1;const l=b2(t);return Array.isArray(n)?n.some(o=>b2(o)===l):Object.keys(n).some(o=>b2(o)===l)}const H4=e=>{const t=e.props["onUpdate:modelValue"]||!1;return v1(t)?n=>D4(t,n):t};function nr(e){e.target.composing=!0}function B6(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const H3=Symbol("_assign"),k4=Symbol("_initialValue");function Z5(e,t,n){return t&&(e=e.trim()),n&&(e=Ct(e)),e}const S6={created(e,{modifiers:{lazy:t,trim:n,number:l}},o){e.parentNode&&(e.type==="text"?e[k4]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[k4]=e.defaultValue.replace(/\r\n?/g,` -`))),e[H3]=H4(o);const r=l||o.props&&o.props.type==="number";P3(e,t?"change":"input",s=>{s.target.composing||e[H3](Z5(e.value,n,r))}),(n||r)&&P3(e,"change",()=>{e.value=Z5(e.value,n,r)}),t||(P3(e,"compositionstart",nr),P3(e,"compositionend",B6),P3(e,"change",B6))},mounted(e,{value:t,modifiers:{trim:n,number:l}}){const o=t??"",r=e[k4];delete e[k4],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[H3](Z5(e.value,n,l)):e.value=o},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:o,number:r}},s){if(e[H3]=H4(s),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?Ct(e.value):e.value,i=t??"";if(a===i)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(l&&t===n||o&&e.value.trim()===i)||(e.value=i)}},a0={deep:!0,created(e,t,n){e[H3]=H4(n),P3(e,"change",()=>{const l=e._modelValue,o=lr(e),r=e.checked,s=e[H3];if(v1(l)){const a=z7(l,o),i=a!==-1;if(r&&!i)s(l.concat(o));else if(!r&&i){const c=[...l];c.splice(a,1),s(c)}}else if(ie(l)){const a=new Set(l);r?a.add(o):a.delete(o),s(a)}else s(i0(e,r))})},mounted:R6,beforeUpdate(e,t,n){e[H3]=H4(n),R6(e,t,n)}};function R6(e,{value:t,oldValue:n},l){e._modelValue=t;let o;if(v1(t))o=z7(t,l.props.value)>-1;else if(ie(t))o=t.has(l.props.value);else{if(t===n)return;o=pe(t,i0(e,!0))}e.checked!==o&&(e.checked=o)}function lr(e){return"_value"in e?e._value:e.value}function i0(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const or=["ctrl","shift","alt","meta"],rr={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>or.some(n=>e[`${n}Key`]&&!t.includes(n))},qe=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),l=t.join(".");return n[l]||(n[l]=((o,...r)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),l=t.join(".");return n[l]||(n[l]=(o=>{if(!("key"in o))return;const r=Z3(o.key);if(t.some(s=>s===r||sr[s]===r))return e(o)}))},ir=r2({patchProp:qo},Fo);let Q6;function cr(){return Q6||(Q6=co(ir))}const ur=((...e)=>{const t=cr().createApp(...e),{mount:n}=t;return t.mount=l=>{const o=fr(l);if(!o)return;const r=t._component;!I1(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,dr(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t});function dr(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function fr(e){return T1(e)?document.querySelector(e):e}/*! +**/let st;const k6=typeof window<"u"&&window.trustedTypes;if(k6)try{st=k6.createPolicy("vue",{createHTML:e=>e})}catch{}const r0=st?e=>st.createHTML(e):e=>e,Ro="http://www.w3.org/2000/svg",Qo="http://www.w3.org/1998/Math/MathML",o3=typeof document<"u"?document:null,C6=o3&&o3.createElement("template"),No={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const o=t==="svg"?o3.createElementNS(Ro,e):t==="mathml"?o3.createElementNS(Qo,e):n?o3.createElement(e,{is:n}):o3.createElement(e);return e==="select"&&l&&l.multiple!=null&&o.setAttribute("multiple",l.multiple),o},createText:e=>o3.createTextNode(e),createComment:e=>o3.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>o3.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,o,r){const s=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{C6.innerHTML=r0(l==="svg"?`${e}`:l==="mathml"?`${e}`:e);const a=C6.content;if(l==="svg"||l==="mathml"){const i=a.firstChild;for(;i.firstChild;)a.appendChild(i.firstChild);a.removeChild(i)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},y3="transition",xe="animation",qe=Symbol("_vtc"),s0={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ko=r2({},E8,s0),Go=e=>(e.displayName="Transition",e.props=Ko,e),a0=Go((e,{slots:t})=>A3(Rl,Oo(e),t)),R3=(e,t=[])=>{v1(e)?e.forEach(n=>n(...t)):e&&e(...t)},w6=e=>e?v1(e)?e.some(t=>t.length>1):e.length>1:!1;function Oo(e){const t={};for(const V in e)V in s0||(t[V]=e[V]);if(e.css===!1)return t;const{name:n="v",type:l,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:i=r,appearActiveClass:c=s,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:A=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,p=$o(o),g=p&&p[0],y=p&&p[1],{onBeforeEnter:F,onEnter:I,onEnterCancelled:D,onLeave:w,onLeaveCancelled:B,onBeforeAppear:W=F,onAppear:Z=I,onAppearCancelled:_=D}=t,R=(V,m1,b1,l1)=>{V._enterCancelled=l1,Q3(V,m1?u:a),Q3(V,m1?c:s),b1&&b1()},S=(V,m1)=>{V._isLeaving=!1,Q3(V,d),Q3(V,m),Q3(V,A),m1&&m1()},q=V=>(m1,b1)=>{const l1=V?Z:I,o1=()=>R(m1,V,b1);R3(l1,[m1,o1]),x6(()=>{Q3(m1,V?i:r),t3(m1,V?u:a),w6(l1)||_6(m1,l,g,o1)})};return r2(t,{onBeforeEnter(V){R3(F,[V]),t3(V,r),t3(V,s)},onBeforeAppear(V){R3(W,[V]),t3(V,i),t3(V,c)},onEnter:q(!1),onAppear:q(!0),onLeave(V,m1){V._isLeaving=!0;const b1=()=>S(V,m1);t3(V,d),V._enterCancelled?(t3(V,A),E6(V)):(E6(V),t3(V,A)),x6(()=>{V._isLeaving&&(Q3(V,d),t3(V,m),w6(w)||_6(V,l,y,b1))}),R3(w,[V,b1])},onEnterCancelled(V){R(V,!1,void 0,!0),R3(D,[V])},onAppearCancelled(V){R(V,!0,void 0,!0),R3(_,[V])},onLeaveCancelled(V){S(V),R3(B,[V])}})}function $o(e){if(e==null)return null;if(G1(e))return[M5(e.enter),M5(e.leave)];{const t=M5(e);return[t,t]}}function M5(e){return Wn(e)}function t3(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[qe]||(e[qe]=new Set)).add(t)}function Q3(e,t){t.split(/\s+/).forEach(l=>l&&e.classList.remove(l));const n=e[qe];n&&(n.delete(t),n.size||(e[qe]=void 0))}function x6(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Wo=0;function _6(e,t,n,l){const o=e._endId=++Wo,r=()=>{o===e._endId&&l()};if(n!=null)return setTimeout(r,n);const{type:s,timeout:a,propCount:i}=Lo(e,t);if(!s)return l();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,A),r()},A=m=>{m.target===e&&++u>=i&&d()};setTimeout(()=>{u(n[p]||"").split(", "),o=l(`${y3}Delay`),r=l(`${y3}Duration`),s=I6(o,r),a=l(`${xe}Delay`),i=l(`${xe}Duration`),c=I6(a,i);let u=null,d=0,A=0;t===y3?s>0&&(u=y3,d=s,A=r.length):t===xe?c>0&&(u=xe,d=c,A=i.length):(d=Math.max(s,c),u=d>0?s>c?y3:xe:null,A=u?u===y3?r.length:i.length:0);const m=u===y3&&/\b(?:transform|all)(?:,|$)/.test(l(`${y3}Property`).toString());return{type:u,timeout:d,propCount:A,hasTransform:m}}function I6(e,t){for(;e.lengthM6(n)+M6(e[l])))}function M6(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function E6(e){return(e?e.ownerDocument:document).body.offsetHeight}function Po(e,t,n){const l=e[qe];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const H4=Symbol("_vod"),i0=Symbol("_vsh"),To={name:"show",beforeMount(e,{value:t},{transition:n}){e[H4]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_e(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:l}){!t!=!n&&(l?t?(l.beforeEnter(e),_e(e,!0),l.enter(e)):l.leave(e,()=>{_e(e,!1)}):_e(e,t))},beforeUnmount(e,{value:t}){_e(e,t)}};function _e(e,t){e.style.display=t?e[H4]:"none",e[i0]=!t}const Ho=Symbol(""),Yo=/(?:^|;)\s*display\s*:/;function Vo(e,t,n){const l=e.style,o=H1(n);let r=!1;if(n&&!o){if(t)if(H1(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&Re(l,a,"")}else for(const s in t)n[s]==null&&Re(l,s,"");for(const s in n){s==="display"&&(r=!0);const a=n[s];a!=null?Jo(e,s,!H1(t)&&t?t[s]:void 0,a)||Re(l,s,a):Re(l,s,"")}}else if(o){if(t!==n){const s=l[Ho];s&&(n+=";"+s),l.cssText=n,r=Yo.test(n)}}else t&&e.removeAttribute("style");H4 in e&&(e[H4]=r?l.display:"",e[i0]&&(l.display="none"))}const w4=/\s*!important$/;function Re(e,t,n){if(v1(n))n.forEach(l=>Re(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))w4.test(n)?e.setProperty(t,n.replace(w4,""),"important"):e.setProperty(t,n);else{const l=Uo(e,t);w4.test(n)?e.setProperty(Z3(l),n.replace(w4,""),"important"):e[l]=n}}const D6=["Webkit","Moz","ms"],E5={};function Uo(e,t){const n=E5[t];if(n)return n;let l=b2(t);if(l!=="filter"&&l in e)return E5[t]=l;l=e5(l);for(let o=0;oD5||(tr.then(()=>D5=0),D5=Date.now());function lr(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;const o=n.value;if(v1(o)){const r=l.stopImmediatePropagation;l.stopImmediatePropagation=()=>{r.call(l),l._stopped=!0};const s=o.slice(),a=[l];for(let i=0;ie.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,or=(e,t,n,l,o,r)=>{const s=o==="svg";t==="class"?Po(e,l,s):t==="style"?Vo(e,n,l):j4(t)?X4(t)||jo(e,t,n,l,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):rr(e,t,l,s))?(B6(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&F6(e,t,l,s,r,t!=="value")):e._isVueCE&&(sr(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!H1(l)))?B6(e,b2(t),l,r,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),F6(e,t,l,s))};function rr(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&R6(t)&&_1(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return R6(t)&&H1(n)?!1:t in e}function sr(e,t){const n=e._def.props;if(!n)return!1;const l=b2(t);return Array.isArray(n)?n.some(o=>b2(o)===l):Object.keys(n).some(o=>b2(o)===l)}const Y4=e=>{const t=e.props["onUpdate:modelValue"]||!1;return v1(t)?n=>F4(t,n):t};function ar(e){e.target.composing=!0}function Q6(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const P3=Symbol("_assign"),x4=Symbol("_initialValue");function Z5(e,t,n){return t&&(e=e.trim()),n&&(e=wt(e)),e}const N6={created(e,{modifiers:{lazy:t,trim:n,number:l}},o){e.parentNode&&(e.type==="text"?e[x4]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[x4]=e.defaultValue.replace(/\r\n?/g,` +`))),e[P3]=Y4(o);const r=l||o.props&&o.props.type==="number";L3(e,t?"change":"input",s=>{s.target.composing||e[P3](Z5(e.value,n,r))}),(n||r)&&L3(e,"change",()=>{e.value=Z5(e.value,n,r)}),t||(L3(e,"compositionstart",ar),L3(e,"compositionend",Q6),L3(e,"change",Q6))},mounted(e,{value:t,modifiers:{trim:n,number:l}}){const o=t??"",r=e[x4];delete e[x4],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[P3](Z5(e.value,n,l)):e.value=o},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:o,number:r}},s){if(e[P3]=Y4(s),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?wt(e.value):e.value,i=t??"";if(a===i)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(l&&t===n||o&&e.value.trim()===i)||(e.value=i)}},c0={deep:!0,created(e,t,n){e[P3]=Y4(n),L3(e,"change",()=>{const l=e._modelValue,o=ir(e),r=e.checked,s=e[P3];if(v1(l)){const a=q7(l,o),i=a!==-1;if(r&&!i)s(l.concat(o));else if(!r&&i){const c=[...l];c.splice(a,1),s(c)}}else if(ce(l)){const a=new Set(l);r?a.add(o):a.delete(o),s(a)}else s(u0(e,r))})},mounted:K6,beforeUpdate(e,t,n){e[P3]=Y4(n),K6(e,t,n)}};function K6(e,{value:t,oldValue:n},l){e._modelValue=t;let o;if(v1(t))o=q7(t,l.props.value)>-1;else if(ce(t))o=t.has(l.props.value);else{if(t===n)return;o=ge(t,u0(e,!0))}e.checked!==o&&(e.checked=o)}function ir(e){return"_value"in e?e._value:e.value}function u0(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const cr=["ctrl","shift","alt","meta"],ur={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>cr.some(n=>e[`${n}Key`]&&!t.includes(n))},e4=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),l=t.join(".");return n[l]||(n[l]=((o,...r)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),l=t.join(".");return n[l]||(n[l]=(o=>{if(!("key"in o))return;const r=Z3(o.key);if(t.some(s=>s===r||dr[s]===r))return e(o)}))},Ar=r2({patchProp:or},No);let G6;function hr(){return G6||(G6=po(Ar))}const pr=((...e)=>{const t=hr().createApp(...e),{mount:n}=t;return t.mount=l=>{const o=gr(l);if(!o)return;const r=t._component;!_1(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,mr(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t});function mr(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function gr(e){return H1(e)?document.querySelector(e):e}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT - */const ne=typeof document<"u";function c0(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ar(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&c0(e.default)}const Q1=Object.assign;function F5(e,t){const n={};for(const l in t){const o=t[l];n[l]=$2(o)?o.map(e):e(o)}return n}const Oe=()=>{},$2=Array.isArray;function N6(e,t){const n={};for(const l in e)n[l]=l in t?t[l]:e[l];return n}const u0=/#/g,hr=/&/g,pr=/\//g,mr=/=/g,gr=/\?/g,d0=/\+/g,vr=/%5B/g,yr=/%5D/g,f0=/%5E/g,br=/%60/g,A0=/%7B/g,kr=/%7C/g,h0=/%7D/g,Cr=/%20/g;function Nt(e){return e==null?"":encodeURI(""+e).replace(kr,"|").replace(vr,"[").replace(yr,"]")}function wr(e){return Nt(e).replace(A0,"{").replace(h0,"}").replace(f0,"^")}function st(e){return Nt(e).replace(d0,"%2B").replace(Cr,"+").replace(u0,"%23").replace(hr,"%26").replace(br,"`").replace(A0,"{").replace(h0,"}").replace(f0,"^")}function xr(e){return st(e).replace(mr,"%3D")}function _r(e){return Nt(e).replace(u0,"%23").replace(gr,"%3F")}function Ir(e){return _r(e).replace(pr,"%2F")}function e4(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Mr=/\/$/,Er=e=>e.replace(Mr,"");function B5(e,t,n="/"){let l,o={},r="",s="";const a=t.indexOf("#");let i=t.indexOf("?");return i=a>=0&&i>a?-1:i,i>=0&&(l=t.slice(0,i),r=t.slice(i,a>0?a:t.length),o=e(r.slice(1))),a>=0&&(l=l||t.slice(0,a),s=t.slice(a,t.length)),l=Br(l??t,n),{fullPath:l+r+s,path:l,query:o,hash:e4(s)}}function Dr(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function K6(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Zr(e,t,n){const l=t.matched.length-1,o=n.matched.length-1;return l>-1&&l===o&&ue(t.matched[l],n.matched[o])&&p0(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ue(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function p0(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Fr(e[n],t[n]))return!1;return!0}function Fr(e,t){return $2(e)?G6(e,t):$2(t)?G6(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function G6(e,t){return $2(t)?e.length===t.length&&e.every((n,l)=>n===t[l]):e.length===1&&e[0]===t}function Br(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),l=e.split("/"),o=l[l.length-1];(o===".."||o===".")&&l.push("");let r=n.length-1,s,a;for(s=0;s1&&r--;else break;return n.slice(0,r).join("/")+"/"+l.slice(s).join("/")}const b3={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let at=(function(e){return e.pop="pop",e.push="push",e})({}),S5=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Sr(e){if(!e)if(ne){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Er(e)}const Rr=/^[^#]+#/;function Qr(e,t){return e.replace(Rr,"#")+t}function Nr(e,t){const n=document.documentElement.getBoundingClientRect(),l=e.getBoundingClientRect();return{behavior:t.behavior,left:l.left-n.left-(t.left||0),top:l.top-n.top-(t.top||0)}}const c5=()=>({left:window.scrollX,top:window.scrollY});function Kr(e){let t;if("el"in e){const n=e.el,l=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?l?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Nr(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 O6(e,t){return(history.state?history.state.position-t:-1)+e}const it=new Map;function Gr(e,t){it.set(e,t)}function Or(e){const t=it.get(e);return it.delete(e),t}function $r(e){return typeof e=="string"||e&&typeof e=="object"}function m0(e){return typeof e=="string"||typeof e=="symbol"}let X1=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const g0=Symbol("");X1.MATCHER_NOT_FOUND+"",X1.NAVIGATION_GUARD_REDIRECT+"",X1.NAVIGATION_ABORTED+"",X1.NAVIGATION_CANCELLED+"",X1.NAVIGATION_DUPLICATED+"";function de(e,t){return Q1(new Error,{type:e,[g0]:!0},t)}function n3(e,t){return e instanceof Error&&g0 in e&&(t==null||!!(e.type&t))}const Wr=["params","query","hash"];function Lr(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Wr)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Pr(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let l=0;lo&&st(o)):[l&&st(l)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Hr(e){const t={};for(const n in e){const l=e[n];l!==void 0&&(t[n]=$2(l)?l.map(o=>o==null?null:""+o):l==null?l:""+l)}return t}const Tr=Symbol(""),W6=Symbol(""),u5=Symbol(""),Kt=Symbol(""),ct=Symbol("");function xe(){let e=[];function t(l){return e.push(l),()=>{const o=e.indexOf(l);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function x3(e,t,n,l,o,r=s=>s()){const s=l&&(l.enterCallbacks[o]=l.enterCallbacks[o]||[]);return()=>new Promise((a,i)=>{const c=A=>{A===!1?i(de(X1.NAVIGATION_ABORTED,{from:n,to:t})):A instanceof Error?i(A):$r(A)?i(de(X1.NAVIGATION_GUARD_REDIRECT,{from:t,to:A})):(s&&l.enterCallbacks[o]===s&&typeof A=="function"&&s.push(A),a())},d=r(()=>e.call(l&&l.instances[o],t,n,c));let u=Promise.resolve(d);e.length<3&&(u=u.then(c)),u.catch(A=>i(A))})}function R5(e,t,n,l,o=r=>r()){const r=[];for(const s of e)for(const a in s.components){let i=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(c0(i)){const c=(i.__vccOpts||i)[t];c&&r.push(x3(c,n,l,s,a,o))}else{let c=i();r.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const u=Ar(d)?d.default:d;s.mods[a]=d,s.components[a]=u;const A=(u.__vccOpts||u)[t];return A&&x3(A,n,l,s,a,o)()}))}}return r}function Yr(e,t){const n=[],l=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;sue(c,a))?l.push(a):n.push(a));const i=e.matched[s];i&&(t.matched.find(c=>ue(c,i))||o.push(i))}return[n,l,o]}/*! + */const le=typeof document<"u";function d0(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vr(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&d0(e.default)}const Q1=Object.assign;function F5(e,t){const n={};for(const l in t){const o=t[l];n[l]=$2(o)?o.map(e):e(o)}return n}const Le=()=>{},$2=Array.isArray;function O6(e,t){const n={};for(const l in e)n[l]=l in t?t[l]:e[l];return n}const f0=/#/g,yr=/&/g,br=/\//g,kr=/=/g,Cr=/\?/g,A0=/\+/g,wr=/%5B/g,xr=/%5D/g,h0=/%5E/g,_r=/%60/g,p0=/%7B/g,Ir=/%7C/g,m0=/%7D/g,Mr=/%20/g;function Gt(e){return e==null?"":encodeURI(""+e).replace(Ir,"|").replace(wr,"[").replace(xr,"]")}function Er(e){return Gt(e).replace(p0,"{").replace(m0,"}").replace(h0,"^")}function at(e){return Gt(e).replace(A0,"%2B").replace(Mr,"+").replace(f0,"%23").replace(yr,"%26").replace(_r,"`").replace(p0,"{").replace(m0,"}").replace(h0,"^")}function Dr(e){return at(e).replace(kr,"%3D")}function Zr(e){return Gt(e).replace(f0,"%23").replace(Cr,"%3F")}function Fr(e){return Zr(e).replace(br,"%2F")}function t4(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Br=/\/$/,Sr=e=>e.replace(Br,"");function B5(e,t,n="/"){let l,o={},r="",s="";const a=t.indexOf("#");let i=t.indexOf("?");return i=a>=0&&i>a?-1:i,i>=0&&(l=t.slice(0,i),r=t.slice(i,a>0?a:t.length),o=e(r.slice(1))),a>=0&&(l=l||t.slice(0,a),s=t.slice(a,t.length)),l=Kr(l??t,n),{fullPath:l+r+s,path:l,query:o,hash:t4(s)}}function Rr(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function $6(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Qr(e,t,n){const l=t.matched.length-1,o=n.matched.length-1;return l>-1&&l===o&&fe(t.matched[l],n.matched[o])&&g0(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function fe(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function g0(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Nr(e[n],t[n]))return!1;return!0}function Nr(e,t){return $2(e)?W6(e,t):$2(t)?W6(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function W6(e,t){return $2(t)?e.length===t.length&&e.every((n,l)=>n===t[l]):e.length===1&&e[0]===t}function Kr(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),l=e.split("/"),o=l[l.length-1];(o===".."||o===".")&&l.push("");let r=n.length-1,s,a;for(s=0;s1&&r--;else break;return n.slice(0,r).join("/")+"/"+l.slice(s).join("/")}const b3={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let it=(function(e){return e.pop="pop",e.push="push",e})({}),S5=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Gr(e){if(!e)if(le){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Sr(e)}const Or=/^[^#]+#/;function $r(e,t){return e.replace(Or,"#")+t}function Wr(e,t){const n=document.documentElement.getBoundingClientRect(),l=e.getBoundingClientRect();return{behavior:t.behavior,left:l.left-n.left-(t.left||0),top:l.top-n.top-(t.top||0)}}const c5=()=>({left:window.scrollX,top:window.scrollY});function Lr(e){let t;if("el"in e){const n=e.el,l=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?l?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Wr(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 L6(e,t){return(history.state?history.state.position-t:-1)+e}const ct=new Map;function Pr(e,t){ct.set(e,t)}function Tr(e){const t=ct.get(e);return ct.delete(e),t}function Hr(e){return typeof e=="string"||e&&typeof e=="object"}function v0(e){return typeof e=="string"||typeof e=="symbol"}let X1=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const y0=Symbol("");X1.MATCHER_NOT_FOUND+"",X1.NAVIGATION_GUARD_REDIRECT+"",X1.NAVIGATION_ABORTED+"",X1.NAVIGATION_CANCELLED+"",X1.NAVIGATION_DUPLICATED+"";function Ae(e,t){return Q1(new Error,{type:e,[y0]:!0},t)}function n3(e,t){return e instanceof Error&&y0 in e&&(t==null||!!(e.type&t))}const Yr=["params","query","hash"];function Vr(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Yr)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Ur(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let l=0;lo&&at(o)):[l&&at(l)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Jr(e){const t={};for(const n in e){const l=e[n];l!==void 0&&(t[n]=$2(l)?l.map(o=>o==null?null:""+o):l==null?l:""+l)}return t}const zr=Symbol(""),T6=Symbol(""),u5=Symbol(""),Ot=Symbol(""),ut=Symbol("");function Ie(){let e=[];function t(l){return e.push(l),()=>{const o=e.indexOf(l);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function x3(e,t,n,l,o,r=s=>s()){const s=l&&(l.enterCallbacks[o]=l.enterCallbacks[o]||[]);return()=>new Promise((a,i)=>{const c=A=>{A===!1?i(Ae(X1.NAVIGATION_ABORTED,{from:n,to:t})):A instanceof Error?i(A):Hr(A)?i(Ae(X1.NAVIGATION_GUARD_REDIRECT,{from:t,to:A})):(s&&l.enterCallbacks[o]===s&&typeof A=="function"&&s.push(A),a())},u=r(()=>e.call(l&&l.instances[o],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(A=>i(A))})}function R5(e,t,n,l,o=r=>r()){const r=[];for(const s of e)for(const a in s.components){let i=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(d0(i)){const c=(i.__vccOpts||i)[t];c&&r.push(x3(c,n,l,s,a,o))}else{let c=i();r.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const d=vr(u)?u.default:u;s.mods[a]=u,s.components[a]=d;const A=(d.__vccOpts||d)[t];return A&&x3(A,n,l,s,a,o)()}))}}return r}function jr(e,t){const n=[],l=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;sfe(c,a))?l.push(a):n.push(a));const i=e.matched[s];i&&(t.matched.find(c=>fe(c,i))||o.push(i))}return[n,l,o]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT - */let Vr=()=>location.protocol+"//"+location.host;function v0(e,t){const{pathname:n,search:l,hash:o}=t,r=e.indexOf("#");if(r>-1){let s=o.includes(e.slice(r))?e.slice(r).length:1,a=o.slice(s);return a[0]!=="/"&&(a="/"+a),K6(a,"")}return K6(n,e)+l+o}function Ur(e,t,n,l){let o=[],r=[],s=null;const a=({state:A})=>{const m=v0(e,location),p=n.value,y=t.value;let k=0;if(A){if(n.value=m,t.value=A,s&&s===p){s=null;return}k=y?A.position-y.position:0}else l(m);o.forEach(F=>{F(n.value,p,{delta:k,type:at.pop,direction:k?k>0?S5.forward:S5.back:S5.unknown})})};function i(){s=n.value}function c(A){o.push(A);const m=()=>{const p=o.indexOf(A);p>-1&&o.splice(p,1)};return r.push(m),m}function d(){if(document.visibilityState==="hidden"){const{history:A}=window;if(!A.state)return;A.replaceState(Q1({},A.state,{scroll:c5()}),"")}}function u(){for(const A of r)A();r=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:i,listen:c,destroy:u}}function L6(e,t,n,l=!1,o=!1){return{back:e,current:t,forward:n,replaced:l,position:window.history.length,scroll:o?c5():null}}function Jr(e){const{history:t,location:n}=window,l={value:v0(e,n)},o={value:t.state};o.value||r(l.value,{back:null,current:l.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(i,c,d){const u=e.indexOf("#"),A=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+i:Vr()+e+i;try{t[d?"replaceState":"pushState"](c,"",A),o.value=c}catch(m){console.error(m),n[d?"replace":"assign"](A)}}function s(i,c){r(i,Q1({},t.state,L6(o.value.back,i,o.value.forward,!0),c,{position:o.value.position}),!0),l.value=i}function a(i,c){const d=Q1({},o.value,t.state,{forward:i,scroll:c5()});r(d.current,d,!0),r(i,Q1({},L6(l.value,i,null),{position:d.position+1},c),!1),l.value=i}return{location:l,state:o,push:a,replace:s}}function zr(e){e=Sr(e);const t=Jr(e),n=Ur(e,t.state,t.location,t.replace);function l(r,s=!0){s||n.pauseListeners(),history.go(r)}const o=Q1({location:"",base:e,go:l,createHref:Qr.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}let T3=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var o2=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(o2||{});const jr={type:T3.Static,value:""},Xr=/[a-zA-Z0-9_]/;function qr(e){if(!e)return[[]];if(e==="/")return[[jr]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=o2.Static,l=n;const o=[];let r;function s(){r&&o.push(r),r=[]}let a=0,i,c="",d="";function u(){c&&(n===o2.Static?r.push({type:T3.Static,value:c}):n===o2.Param||n===o2.ParamRegExp||n===o2.ParamRegExpEnd?(r.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:T3.Param,value:c,regexp:d,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),c="")}function A(){c+=i}for(;at.length?t.length===1&&t[0]===v2.Static+v2.Segment?1:-1:0}function y0(e,t){let n=0;const l=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const os={strict:!1,end:!0,sensitive:!1};function rs(e,t,n){const l=ns(qr(e.path),n),o=Q1(l,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function ss(e,t){const n=[],l=new Map;t=N6(os,t);function o(u){return l.get(u)}function r(u,A,m){const p=!m,y=Y6(u);y.aliasOf=m&&m.record;const k=N6(t,u),F=[y];if("alias"in u){const _=typeof u.alias=="string"?[u.alias]:u.alias;for(const R of _)F.push(Y6(Q1({},y,{components:m?m.record.components:y.components,path:R,aliasOf:m?m.record:y})))}let M,E;for(const _ of F){const{path:R}=_;if(A&&R[0]!=="/"){const $=A.record.path,D=$[$.length-1]==="/"?"":"/";_.path=A.record.path+(R&&D+R)}if(M=rs(_,A,k),m?m.alias.push(M):(E=E||M,E!==M&&E.alias.push(M),p&&u.name&&!V6(M)&&s(u.name)),b0(M)&&i(M),y.children){const $=y.children;for(let D=0;D<$.length;D++)r($[D],M,m&&m.children[D])}m=m||M}return E?()=>{s(E)}:Oe}function s(u){if(m0(u)){const A=l.get(u);A&&(l.delete(u),n.splice(n.indexOf(A),1),A.children.forEach(s),A.alias.forEach(s))}else{const A=n.indexOf(u);A>-1&&(n.splice(A,1),u.record.name&&l.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function a(){return n}function i(u){const A=cs(u,n);n.splice(A,0,u),u.record.name&&!V6(u)&&l.set(u.record.name,u)}function c(u,A){let m,p={},y,k;if("name"in u&&u.name){if(m=l.get(u.name),!m)throw de(X1.MATCHER_NOT_FOUND,{location:u});k=m.record.name,p=Q1(T6(A.params,m.keys.filter(E=>!E.optional).concat(m.parent?m.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),u.params&&T6(u.params,m.keys.map(E=>E.name))),y=m.stringify(p)}else if(u.path!=null)y=u.path,m=n.find(E=>E.re.test(y)),m&&(p=m.parse(y),k=m.record.name);else{if(m=A.name?l.get(A.name):n.find(E=>E.re.test(A.path)),!m)throw de(X1.MATCHER_NOT_FOUND,{location:u,currentLocation:A});k=m.record.name,p=Q1({},A.params,u.params),y=m.stringify(p)}const F=[];let M=m;for(;M;)F.unshift(M.record),M=M.parent;return{name:k,path:y,params:p,matched:F,meta:is(F)}}e.forEach(u=>r(u));function d(){n.length=0,l.clear()}return{addRoute:r,resolve:c,removeRoute:s,clearRoutes:d,getRoutes:a,getRecordMatcher:o}}function T6(e,t){const n={};for(const l of t)l in e&&(n[l]=e[l]);return n}function Y6(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:as(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function as(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const l in e.components)t[l]=typeof n=="object"?n[l]:n;return t}function V6(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function is(e){return e.reduce((t,n)=>Q1(t,n.meta),{})}function cs(e,t){let n=0,l=t.length;for(;n!==l;){const r=n+l>>1;y0(e,t[r])<0?l=r:n=r+1}const o=us(e);return o&&(l=t.lastIndexOf(o,l-1)),l}function us(e){let t=e;for(;t=t.parent;)if(b0(t)&&y0(e,t)===0)return t}function b0({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function U6(e){const t=K2(u5),n=K2(Kt),l=t1(()=>{const i=f(e.to);return t.resolve(i)}),o=t1(()=>{const{matched:i}=l.value,{length:c}=i,d=i[c-1],u=n.matched;if(!d||!u.length)return-1;const A=u.findIndex(ue.bind(null,d));if(A>-1)return A;const m=J6(i[c-2]);return c>1&&J6(d)===m&&u[u.length-1].path!==m?u.findIndex(ue.bind(null,i[c-2])):A}),r=t1(()=>o.value>-1&&ps(n.params,l.value.params)),s=t1(()=>o.value>-1&&o.value===n.matched.length-1&&p0(n.params,l.value.params));function a(i={}){if(hs(i)){const c=t[f(e.replace)?"replace":"push"](f(e.to)).catch(Oe);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:l,href:t1(()=>l.value.href),isActive:r,isExactActive:s,navigate:a}}function ds(e){return e.length===1?e[0]:e}const fs=$1({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"},viewTransition:Boolean},useLink:U6,setup(e,{slots:t}){const n=t5(U6(e)),{options:l}=K2(u5),o=t1(()=>({[z6(e.activeClass,l.linkActiveClass,"router-link-active")]:n.isActive,[z6(e.exactActiveClass,l.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&ds(t.default(n));return e.custom?r:A3("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),As=fs;function hs(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 ps(e,t){for(const n in t){const l=t[n],o=e[n];if(typeof l=="string"){if(l!==o)return!1}else if(!$2(o)||o.length!==l.length||l.some((r,s)=>r.valueOf()!==o[s].valueOf()))return!1}return!0}function J6(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const z6=(e,t,n)=>e??t??n,ms=$1({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const l=K2(ct),o=t1(()=>e.route||l.value),r=K2(W6,0),s=t1(()=>{let c=f(r);const{matched:d}=o.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),a=t1(()=>o.value.matched[s.value]);Z4(W6,t1(()=>s.value+1)),Z4(Tr,a),Z4(ct,o);const i=z();return t2(()=>[i.value,a.value,e.name],([c,d,u],[A,m,p])=>{d&&(d.instances[u]=c,m&&m!==d&&c&&c===A&&(d.leaveGuards.size||(d.leaveGuards=m.leaveGuards),d.updateGuards.size||(d.updateGuards=m.updateGuards))),c&&d&&(!m||!ue(d,m)||!A)&&(d.enterCallbacks[u]||[]).forEach(y=>y(c))},{flush:"post"}),()=>{const c=o.value,d=e.name,u=a.value,A=u&&u.components[d];if(!A)return j6(n.default,{Component:A,route:c});const m=u.props[d],p=m?m===!0?c.params:typeof m=="function"?m(c):m:null,k=A3(A,Q1({},p,t,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(u.instances[d]=null)},ref:i}));return j6(n.default,{Component:k,route:c})||k}}});function j6(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const gs=ms;function vs(e){const t=ss(e.routes,e),n=e.parseQuery||Pr,l=e.stringifyQuery||$6,o=e.history,r=xe(),s=xe(),a=xe(),i=fl(b3);let c=b3;ne&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=F5.bind(null,S=>""+S),u=F5.bind(null,Ir),A=F5.bind(null,e4);function m(S,o1){let J,A1;return m0(S)?(J=t.getRecordMatcher(S),A1=o1):A1=S,t.addRoute(A1,J)}function p(S){const o1=t.getRecordMatcher(S);o1&&t.removeRoute(o1)}function y(){return t.getRoutes().map(S=>S.record)}function k(S){return!!t.getRecordMatcher(S)}function F(S,o1){if(o1=Q1({},o1||i.value),typeof S=="string"){const Z=B5(n,S,o1.path),L=t.resolve({path:Z.path},o1),T=o.createHref(Z.fullPath);return Q1(Z,L,{params:A(L.params),hash:e4(Z.hash),redirectedFrom:void 0,href:T})}let J;if(S.path!=null)J=Q1({},S,{path:B5(n,S.path,o1.path).path});else{const Z=Q1({},S.params);for(const L in Z)Z[L]==null&&delete Z[L];J=Q1({},S,{params:u(Z)}),o1.params=u(o1.params)}const A1=t.resolve(J,o1),x1=S.hash||"";A1.params=d(A(A1.params));const g=Dr(l,Q1({},S,{hash:wr(x1),path:A1.path})),v=o.createHref(g);return Q1({fullPath:g,hash:x1,query:l===$6?Hr(S.query):S.query||{}},A1,{redirectedFrom:void 0,href:v})}function M(S){return typeof S=="string"?B5(n,S,i.value.path):Q1({},S)}function E(S,o1){if(c!==S)return de(X1.NAVIGATION_CANCELLED,{from:o1,to:S})}function _(S){return D(S)}function R(S){return _(Q1(M(S),{replace:!0}))}function $(S,o1){const J=S.matched[S.matched.length-1];if(J&&J.redirect){const{redirect:A1}=J;let x1=typeof A1=="function"?A1(S,o1):A1;return typeof x1=="string"&&(x1=x1.includes("?")||x1.includes("#")?x1=M(x1):{path:x1},x1.params={}),Q1({query:S.query,hash:S.hash,params:x1.path!=null?{}:S.params},x1)}}function D(S,o1){const J=c=F(S),A1=i.value,x1=S.state,g=S.force,v=S.replace===!0,Z=$(J,A1);if(Z)return D(Q1(M(Z),{state:typeof Z=="object"?Q1({},x1,Z.state):x1,force:g,replace:v}),o1||J);const L=J;L.redirectedFrom=o1;let T;return!g&&Zr(l,A1,J)&&(T=de(X1.NAVIGATION_DUPLICATED,{to:L,from:A1}),L1(A1,A1,!0,!1)),(T?Promise.resolve(T):B(L,A1)).catch(W=>n3(W)?n3(W,X1.NAVIGATION_GUARD_REDIRECT)?W:c1(W):y1(W,L,A1)).then(W=>{if(W){if(n3(W,X1.NAVIGATION_GUARD_REDIRECT))return D(Q1({replace:v},M(W.to),{state:typeof W.to=="object"?Q1({},x1,W.to.state):x1,force:g}),o1||L)}else W=Y(L,A1,!0,v,x1);return X(L,A1,W),W})}function x(S,o1){const J=E(S,o1);return J?Promise.reject(J):Promise.resolve()}function Q(S){const o1=q1.values().next().value;return o1&&typeof o1.runWithContext=="function"?o1.runWithContext(S):S()}function B(S,o1){let J;const[A1,x1,g]=Yr(S,o1);J=R5(A1.reverse(),"beforeRouteLeave",S,o1);for(const Z of A1)Z.leaveGuards.forEach(L=>{J.push(x3(L,S,o1))});const v=x.bind(null,S,o1);return J.push(v),q(J).then(()=>{J=[];for(const Z of r.list())J.push(x3(Z,S,o1));return J.push(v),q(J)}).then(()=>{J=R5(x1,"beforeRouteUpdate",S,o1);for(const Z of x1)Z.updateGuards.forEach(L=>{J.push(x3(L,S,o1))});return J.push(v),q(J)}).then(()=>{J=[];for(const Z of g)if(Z.beforeEnter)if($2(Z.beforeEnter))for(const L of Z.beforeEnter)J.push(x3(L,S,o1));else J.push(x3(Z.beforeEnter,S,o1));return J.push(v),q(J)}).then(()=>(S.matched.forEach(Z=>Z.enterCallbacks={}),J=R5(g,"beforeRouteEnter",S,o1,Q),J.push(v),q(J))).then(()=>{J=[];for(const Z of s.list())J.push(x3(Z,S,o1));return J.push(v),q(J)}).catch(Z=>n3(Z,X1.NAVIGATION_CANCELLED)?Z:Promise.reject(Z))}function X(S,o1,J){a.list().forEach(A1=>Q(()=>A1(S,o1,J)))}function Y(S,o1,J,A1,x1){const g=E(S,o1);if(g)return g;const v=o1===b3,Z=ne?history.state:{};J&&(A1||v?o.replace(S.fullPath,Q1({scroll:v&&Z&&Z.scroll},x1)):o.push(S.fullPath,x1)),i.value=S,L1(S,o1,J,v),c1()}let m1;function w1(){m1||(m1=o.listen((S,o1,J)=>{if(!s1.listening)return;const A1=F(S),x1=$(A1,s1.currentRoute.value);if(x1){D(Q1(x1,{replace:!0,force:!0}),A1).catch(Oe);return}c=A1;const g=i.value;ne&&Gr(O6(g.fullPath,J.delta),c5()),B(A1,g).catch(v=>n3(v,X1.NAVIGATION_ABORTED|X1.NAVIGATION_CANCELLED)?v:n3(v,X1.NAVIGATION_GUARD_REDIRECT)?(D(Q1(M(v.to),{force:!0}),A1).then(Z=>{n3(Z,X1.NAVIGATION_ABORTED|X1.NAVIGATION_DUPLICATED)&&!J.delta&&J.type===at.pop&&o.go(-1,!1)}).catch(Oe),Promise.reject()):(J.delta&&o.go(-J.delta,!1),y1(v,A1,g))).then(v=>{v=v||Y(A1,g,!1),v&&(J.delta&&!n3(v,X1.NAVIGATION_CANCELLED)?o.go(-J.delta,!1):J.type===at.pop&&n3(v,X1.NAVIGATION_ABORTED|X1.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),X(A1,g,v)}).catch(Oe)}))}let r1=xe(),l1=xe(),b1;function y1(S,o1,J){c1(S);const A1=l1.list();return A1.length?A1.forEach(x1=>x1(S,o1,J)):console.error(S),Promise.reject(S)}function k1(){return b1&&i.value!==b3?Promise.resolve():new Promise((S,o1)=>{r1.add([S,o1])})}function c1(S){return b1||(b1=!S,w1(),r1.list().forEach(([o1,J])=>S?J(S):o1()),r1.reset()),S}function L1(S,o1,J,A1){const{scrollBehavior:x1}=e;if(!ne||!x1)return Promise.resolve();const g=!J&&Or(O6(S.fullPath,0))||(A1||!J)&&history.state&&history.state.scroll||null;return g8().then(()=>x1(S,o1,g)).then(v=>v&&Kr(v)).catch(v=>y1(v,S,o1))}const S1=S=>o.go(S);let Y1;const q1=new Set,s1={currentRoute:i,listening:!0,addRoute:m,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:k,getRoutes:y,resolve:F,options:e,push:_,replace:R,go:S1,back:()=>S1(-1),forward:()=>S1(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:l1.add,isReady:k1,install(S){S.component("RouterLink",As),S.component("RouterView",gs),S.config.globalProperties.$router=s1,Object.defineProperty(S.config.globalProperties,"$route",{enumerable:!0,get:()=>f(i)}),ne&&!Y1&&i.value===b3&&(Y1=!0,_(o.location).catch(A1=>{}));const o1={};for(const A1 in b3)Object.defineProperty(o1,A1,{get:()=>i.value[A1],enumerable:!0});S.provide(u5,s1),S.provide(Kt,A8(o1)),S.provide(ct,i);const J=S.unmount;q1.add(S),S.unmount=function(){q1.delete(S),q1.size<1&&(c=b3,m1&&m1(),m1=null,i.value=b3,Y1=!1,b1=!1),J()}}};function q(S){return S.reduce((o1,J)=>o1.then(()=>Q(J)),Promise.resolve())}return s1}function me(){return K2(u5)}function d5(e){return K2(Kt)}function k0(e){var t,n,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{const n=new Array(e.length+t.length);for(let l=0;l({classGroupId:e,validator:t}),w0=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),T4="-",X6=[],ks="arbitrary..",Cs=e=>{const t=xs(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:l}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return ws(s);const a=s.split(T4),i=a[0]===""&&a.length>1?1:0;return x0(a,i,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const i=l[s],c=n[s];return i?c?ys(c,i):i:c||X6}return n[s]||X6}}},x0=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],r=n.nextPart.get(o);if(r){const c=x0(e,t+1,r);if(c)return c}const s=n.validators;if(s===null)return;const a=t===0?e.join(T4):e.slice(t).join(T4),i=s.length;for(let c=0;ce.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),l=t.slice(0,n);return l?ks+l:void 0})(),xs=e=>{const{theme:t,classGroups:n}=e;return _s(n,t)},_s=(e,t)=>{const n=w0();for(const l in e){const o=e[l];Gt(o,n,l,t)}return n},Gt=(e,t,n,l)=>{const o=e.length;for(let r=0;r{if(typeof e=="string"){Ms(e,t,n);return}if(typeof e=="function"){Es(e,t,n,l);return}Ds(e,t,n,l)},Ms=(e,t,n)=>{const l=e===""?t:_0(t,e);l.classGroupId=n},Es=(e,t,n,l)=>{if(Zs(e)){Gt(e(l),t,n,l);return}t.validators===null&&(t.validators=[]),t.validators.push(bs(n,e))},Ds=(e,t,n,l)=>{const o=Object.entries(e),r=o.length;for(let s=0;s{let n=e;const l=t.split(T4),o=l.length;for(let r=0;r"isThemeGetter"in e&&e.isThemeGetter===!0,Fs=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),l=Object.create(null);const o=(r,s)=>{n[r]=s,t++,t>e&&(t=0,l=n,n=Object.create(null))};return{get(r){let s=n[r];if(s!==void 0)return s;if((s=l[r])!==void 0)return o(r,s),s},set(r,s){r in n?n[r]=s:o(r,s)}}},ut="!",q6=":",Bs=[],e7=(e,t,n,l,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:l,isExternal:o}),Ss=e=>{const{prefix:t,experimentalParseClassName:n}=e;let l=o=>{const r=[];let s=0,a=0,i=0,c;const d=o.length;for(let y=0;yi?c-i:void 0;return e7(r,m,A,p)};if(t){const o=t+q6,r=l;l=s=>s.startsWith(o)?r(s.slice(o.length)):e7(Bs,!1,s,void 0,!0)}if(n){const o=l;l=r=>n({className:r,parseClassName:o})}return l},Rs=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,l)=>{t.set(n,1e6+l)}),n=>{const l=[];let o=[];for(let r=0;r0&&(o.sort(),l.push(...o),o=[]),l.push(s)):o.push(s)}return o.length>0&&(o.sort(),l.push(...o)),l}},Qs=e=>({cache:Fs(e.cacheSize),parseClassName:Ss(e),sortModifiers:Rs(e),postfixLookupClassGroupIds:Ns(e),...Cs(e)}),Ns=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let l=0;l{const{parseClassName:n,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:r,postfixLookupClassGroupIds:s}=t,a=[],i=e.trim().split(Ks);let c="";for(let d=i.length-1;d>=0;d-=1){const u=i[d],{isExternal:A,modifiers:m,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:k}=n(u);if(A){c=u+(c.length>0?" "+c:c);continue}let F=!!k,M;if(F){const D=y.substring(0,k);M=l(D);const x=M&&s[M]?l(y):void 0;x&&x!==M&&(M=x,F=!1)}else M=l(y);if(!M){if(!F){c=u+(c.length>0?" "+c:c);continue}if(M=l(y),!M){c=u+(c.length>0?" "+c:c);continue}F=!1}const E=m.length===0?"":m.length===1?m[0]:r(m).join(":"),_=p?E+ut:E,R=_+M;if(a.indexOf(R)>-1)continue;a.push(R);const $=o(M,F);for(let D=0;D<$.length;++D){const x=$[D];a.push(_+x)}c=u+(c.length>0?" "+c:c)}return c},Os=(...e)=>{let t=0,n,l,o="";for(;t{if(typeof e=="string")return e;let t,n="";for(let l=0;l{let n,l,o,r;const s=i=>{const c=t.reduce((d,u)=>u(d),e());return n=Qs(c),l=n.cache.get,o=n.cache.set,r=a,a(i)},a=i=>{const c=l(i);if(c)return c;const d=Gs(i,n);return o(i,d),d};return r=s,(...i)=>r(Os(...i))},Ws=[],l2=e=>{const t=n=>n[e]||Ws;return t.isThemeGetter=!0,t},M0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,E0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ls=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ps=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hs=/\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$/,Ts=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ys=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k3=e=>Ls.test(e),Z1=e=>!!e&&!Number.isNaN(Number(e)),L2=e=>!!e&&Number.isInteger(Number(e)),Q5=e=>e.endsWith("%")&&Z1(e.slice(0,-1)),l3=e=>Ps.test(e),D0=()=>!0,Us=e=>Hs.test(e)&&!Ts.test(e),Ot=()=>!1,Js=e=>Ys.test(e),zs=e=>Vs.test(e),js=e=>!u1(e)&&!d1(e),Xs=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),qs=e=>F3(e,B0,Ot),u1=e=>M0.test(e),K3=e=>F3(e,S0,Us),t7=e=>F3(e,aa,Z1),ea=e=>F3(e,Q0,D0),ta=e=>F3(e,R0,Ot),n7=e=>F3(e,Z0,Ot),na=e=>F3(e,F0,zs),C4=e=>F3(e,N0,Js),d1=e=>E0.test(e),_e=e=>j3(e,S0),la=e=>j3(e,R0),l7=e=>j3(e,Z0),oa=e=>j3(e,B0),ra=e=>j3(e,F0),w4=e=>j3(e,N0,!0),sa=e=>j3(e,Q0,!0),F3=(e,t,n)=>{const l=M0.exec(e);return l?l[1]?t(l[1]):n(l[2]):!1},j3=(e,t,n=!1)=>{const l=E0.exec(e);return l?l[1]?t(l[1]):n:!1},Z0=e=>e==="position"||e==="percentage",F0=e=>e==="image"||e==="url",B0=e=>e==="length"||e==="size"||e==="bg-size",S0=e=>e==="length",aa=e=>e==="number",R0=e=>e==="family-name",Q0=e=>e==="number"||e==="weight",N0=e=>e==="shadow",ia=()=>{const e=l2("color"),t=l2("font"),n=l2("text"),l=l2("font-weight"),o=l2("tracking"),r=l2("leading"),s=l2("breakpoint"),a=l2("container"),i=l2("spacing"),c=l2("radius"),d=l2("shadow"),u=l2("inset-shadow"),A=l2("text-shadow"),m=l2("drop-shadow"),p=l2("blur"),y=l2("perspective"),k=l2("aspect"),F=l2("ease"),M=l2("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[..._(),d1,u1],$=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],x=()=>[d1,u1,i],Q=()=>[k3,"full","auto",...x()],B=()=>[L2,"none","subgrid",d1,u1],X=()=>["auto",{span:["full",L2,d1,u1]},L2,d1,u1],Y=()=>[L2,"auto",d1,u1],m1=()=>["auto","min","max","fr",d1,u1],w1=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],r1=()=>["start","end","center","stretch","center-safe","end-safe"],l1=()=>["auto",...x()],b1=()=>[k3,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],y1=()=>[k3,"screen","full","dvw","lvw","svw","min","max","fit",...x()],k1=()=>[k3,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],c1=()=>[e,d1,u1],L1=()=>[..._(),l7,n7,{position:[d1,u1]}],S1=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y1=()=>["auto","cover","contain",oa,qs,{size:[d1,u1]}],q1=()=>[Q5,_e,K3],s1=()=>["","none","full",c,d1,u1],q=()=>["",Z1,_e,K3],S=()=>["solid","dashed","dotted","double"],o1=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[Z1,Q5,l7,n7],A1=()=>["","none",p,d1,u1],x1=()=>["none",Z1,d1,u1],g=()=>["none",Z1,d1,u1],v=()=>[Z1,d1,u1],Z=()=>[k3,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[l3],breakpoint:[l3],color:[D0],container:[l3],"drop-shadow":[l3],ease:["in","out","in-out"],font:[js],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[l3],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[l3],shadow:[l3],spacing:["px",Z1],text:[l3],"text-shadow":[l3],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",k3,u1,d1,k]}],container:["container"],"container-type":[{"@container":["","normal","size",d1,u1]}],"container-named":[Xs],columns:[{columns:[Z1,u1,d1,a]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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"],sr:["sr-only","not-sr-only"],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:R()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Q()}],"inset-x":[{"inset-x":Q()}],"inset-y":[{"inset-y":Q()}],start:[{"inset-s":Q(),start:Q()}],end:[{"inset-e":Q(),end:Q()}],"inset-bs":[{"inset-bs":Q()}],"inset-be":[{"inset-be":Q()}],top:[{top:Q()}],right:[{right:Q()}],bottom:[{bottom:Q()}],left:[{left:Q()}],visibility:["visible","invisible","collapse"],z:[{z:[L2,"auto",d1,u1]}],basis:[{basis:[k3,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Z1,k3,"auto","initial","none",u1]}],grow:[{grow:["",Z1,d1,u1]}],shrink:[{shrink:["",Z1,d1,u1]}],order:[{order:[L2,"first","last","none",d1,u1]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":m1()}],"auto-rows":[{"auto-rows":m1()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...w1(),"normal"]}],"justify-items":[{"justify-items":[...r1(),"normal"]}],"justify-self":[{"justify-self":["auto",...r1()]}],"align-content":[{content:["normal",...w1()]}],"align-items":[{items:[...r1(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...r1(),{baseline:["","last"]}]}],"place-content":[{"place-content":w1()}],"place-items":[{"place-items":[...r1(),"baseline"]}],"place-self":[{"place-self":["auto",...r1()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:l1()}],mx:[{mx:l1()}],my:[{my:l1()}],ms:[{ms:l1()}],me:[{me:l1()}],mbs:[{mbs:l1()}],mbe:[{mbe:l1()}],mt:[{mt:l1()}],mr:[{mr:l1()}],mb:[{mb:l1()}],ml:[{ml:l1()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:b1()}],"inline-size":[{inline:["auto",...y1()]}],"min-inline-size":[{"min-inline":["auto",...y1()]}],"max-inline-size":[{"max-inline":["none",...y1()]}],"block-size":[{block:["auto",...k1()]}],"min-block-size":[{"min-block":["auto",...k1()]}],"max-block-size":[{"max-block":["none",...k1()]}],w:[{w:[a,"screen",...b1()]}],"min-w":[{"min-w":[a,"screen","none",...b1()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...b1()]}],h:[{h:["screen","lh",...b1()]}],"min-h":[{"min-h":["screen","lh","none",...b1()]}],"max-h":[{"max-h":["screen","lh",...b1()]}],"font-size":[{text:["base",n,_e,K3]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,sa,ea]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Q5,u1]}],"font-family":[{font:[la,ta,t]}],"font-features":[{"font-features":[u1]}],"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-fractions"],tracking:[{tracking:[o,d1,u1]}],"line-clamp":[{"line-clamp":[Z1,"none",d1,t7]}],leading:[{leading:[r,...x()]}],"list-image":[{"list-image":["none",d1,u1]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",d1,u1]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c1()}],"text-color":[{text:c1()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...S(),"wavy"]}],"text-decoration-thickness":[{decoration:[Z1,"from-font","auto",d1,K3]}],"text-decoration-color":[{decoration:c1()}],"underline-offset":[{"underline-offset":[Z1,"auto",d1,u1]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[L2,d1,u1]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d1,u1]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d1,u1]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L1()}],"bg-repeat":[{bg:S1()}],"bg-size":[{bg:Y1()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},L2,d1,u1],radial:["",d1,u1],conic:[L2,d1,u1]},ra,na]}],"bg-color":[{bg:c1()}],"gradient-from-pos":[{from:q1()}],"gradient-via-pos":[{via:q1()}],"gradient-to-pos":[{to:q1()}],"gradient-from":[{from:c1()}],"gradient-via":[{via:c1()}],"gradient-to":[{to:c1()}],rounded:[{rounded:s1()}],"rounded-s":[{"rounded-s":s1()}],"rounded-e":[{"rounded-e":s1()}],"rounded-t":[{"rounded-t":s1()}],"rounded-r":[{"rounded-r":s1()}],"rounded-b":[{"rounded-b":s1()}],"rounded-l":[{"rounded-l":s1()}],"rounded-ss":[{"rounded-ss":s1()}],"rounded-se":[{"rounded-se":s1()}],"rounded-ee":[{"rounded-ee":s1()}],"rounded-es":[{"rounded-es":s1()}],"rounded-tl":[{"rounded-tl":s1()}],"rounded-tr":[{"rounded-tr":s1()}],"rounded-br":[{"rounded-br":s1()}],"rounded-bl":[{"rounded-bl":s1()}],"border-w":[{border:q()}],"border-w-x":[{"border-x":q()}],"border-w-y":[{"border-y":q()}],"border-w-s":[{"border-s":q()}],"border-w-e":[{"border-e":q()}],"border-w-bs":[{"border-bs":q()}],"border-w-be":[{"border-be":q()}],"border-w-t":[{"border-t":q()}],"border-w-r":[{"border-r":q()}],"border-w-b":[{"border-b":q()}],"border-w-l":[{"border-l":q()}],"divide-x":[{"divide-x":q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...S(),"hidden","none"]}],"divide-style":[{divide:[...S(),"hidden","none"]}],"border-color":[{border:c1()}],"border-color-x":[{"border-x":c1()}],"border-color-y":[{"border-y":c1()}],"border-color-s":[{"border-s":c1()}],"border-color-e":[{"border-e":c1()}],"border-color-bs":[{"border-bs":c1()}],"border-color-be":[{"border-be":c1()}],"border-color-t":[{"border-t":c1()}],"border-color-r":[{"border-r":c1()}],"border-color-b":[{"border-b":c1()}],"border-color-l":[{"border-l":c1()}],"divide-color":[{divide:c1()}],"outline-style":[{outline:[...S(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Z1,d1,u1]}],"outline-w":[{outline:["",Z1,_e,K3]}],"outline-color":[{outline:c1()}],shadow:[{shadow:["","none",d,w4,C4]}],"shadow-color":[{shadow:c1()}],"inset-shadow":[{"inset-shadow":["none",u,w4,C4]}],"inset-shadow-color":[{"inset-shadow":c1()}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c1()}],"ring-offset-w":[{"ring-offset":[Z1,K3]}],"ring-offset-color":[{"ring-offset":c1()}],"inset-ring-w":[{"inset-ring":q()}],"inset-ring-color":[{"inset-ring":c1()}],"text-shadow":[{"text-shadow":["none",A,w4,C4]}],"text-shadow-color":[{"text-shadow":c1()}],opacity:[{opacity:[Z1,d1,u1]}],"mix-blend":[{"mix-blend":[...o1(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":o1()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Z1]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":c1()}],"mask-image-linear-to-color":[{"mask-linear-to":c1()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":c1()}],"mask-image-t-to-color":[{"mask-t-to":c1()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":c1()}],"mask-image-r-to-color":[{"mask-r-to":c1()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":c1()}],"mask-image-b-to-color":[{"mask-b-to":c1()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":c1()}],"mask-image-l-to-color":[{"mask-l-to":c1()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":c1()}],"mask-image-x-to-color":[{"mask-x-to":c1()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":c1()}],"mask-image-y-to-color":[{"mask-y-to":c1()}],"mask-image-radial":[{"mask-radial":[d1,u1]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":c1()}],"mask-image-radial-to-color":[{"mask-radial-to":c1()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[Z1]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":c1()}],"mask-image-conic-to-color":[{"mask-conic-to":c1()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L1()}],"mask-repeat":[{mask:S1()}],"mask-size":[{mask:Y1()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",d1,u1]}],filter:[{filter:["","none",d1,u1]}],blur:[{blur:A1()}],brightness:[{brightness:[Z1,d1,u1]}],contrast:[{contrast:[Z1,d1,u1]}],"drop-shadow":[{"drop-shadow":["","none",m,w4,C4]}],"drop-shadow-color":[{"drop-shadow":c1()}],grayscale:[{grayscale:["",Z1,d1,u1]}],"hue-rotate":[{"hue-rotate":[Z1,d1,u1]}],invert:[{invert:["",Z1,d1,u1]}],saturate:[{saturate:[Z1,d1,u1]}],sepia:[{sepia:["",Z1,d1,u1]}],"backdrop-filter":[{"backdrop-filter":["","none",d1,u1]}],"backdrop-blur":[{"backdrop-blur":A1()}],"backdrop-brightness":[{"backdrop-brightness":[Z1,d1,u1]}],"backdrop-contrast":[{"backdrop-contrast":[Z1,d1,u1]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Z1,d1,u1]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z1,d1,u1]}],"backdrop-invert":[{"backdrop-invert":["",Z1,d1,u1]}],"backdrop-opacity":[{"backdrop-opacity":[Z1,d1,u1]}],"backdrop-saturate":[{"backdrop-saturate":[Z1,d1,u1]}],"backdrop-sepia":[{"backdrop-sepia":["",Z1,d1,u1]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",d1,u1]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Z1,"initial",d1,u1]}],ease:[{ease:["linear","initial",F,d1,u1]}],delay:[{delay:[Z1,d1,u1]}],animate:[{animate:["none",M,d1,u1]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,d1,u1]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:x1()}],"rotate-x":[{"rotate-x":x1()}],"rotate-y":[{"rotate-y":x1()}],"rotate-z":[{"rotate-z":x1()}],scale:[{scale:g()}],"scale-x":[{"scale-x":g()}],"scale-y":[{"scale-y":g()}],"scale-z":[{"scale-z":g()}],"scale-3d":["scale-3d"],skew:[{skew:v()}],"skew-x":[{"skew-x":v()}],"skew-y":[{"skew-y":v()}],transform:[{transform:[d1,u1,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],zoom:[{zoom:[L2,d1,u1]}],accent:[{accent:c1()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c1()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",d1,u1]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":c1()}],"scrollbar-track-color":[{"scrollbar-track":c1()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",d1,u1]}],fill:[{fill:["none",...c1()]}],"stroke-w":[{stroke:[Z1,_e,K3,t7]}],stroke:[{stroke:["none",...c1()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ca=$s(ia);function E1(...e){return ca(C0(e))}const ua=["src","alt"],da={key:1,class:"flex h-full w-full items-center justify-center bg-muted font-medium text-muted-foreground"},fa=$1({__name:"Avatar",props:{src:{},alt:{},fallback:{default:"?"},size:{default:"md"},class:{}},setup(e){const t=e,n={sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base"},l=z(!1),o=t1(()=>!t.src||l.value);return(r,s)=>(h(),C("div",{class:f1(f(E1)("relative flex shrink-0 overflow-hidden rounded-full",n[e.size],t.class))},[o.value?(h(),C("div",da,N(e.fallback),1)):(h(),C("img",{key:0,src:e.src??void 0,alt:e.alt,class:"aspect-square h-full w-full object-cover",onError:s[0]||(s[0]=a=>l.value=!0)},null,40,ua))],2))}}),o7=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,r7=C0,f5=(e,t)=>n=>{var l;if((t==null?void 0:t.variants)==null)return r7(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:r}=t,s=Object.keys(o).map(c=>{const d=n==null?void 0:n[c],u=r==null?void 0:r[c];if(d===null)return null;const A=o7(d)||o7(u);return o[c][A]}),a=n&&Object.entries(n).reduce((c,d)=>{let[u,A]=d;return A===void 0||(c[u]=A),c},{}),i=t==null||(l=t.compoundVariants)===null||l===void 0?void 0:l.reduce((c,d)=>{let{class:u,className:A,...m}=d;return Object.entries(m).every(p=>{let[y,k]=p;return Array.isArray(k)?k.includes({...r,...a}[y]):{...r,...a}[y]===k})?[...c,u,A]:c},[]);return r7(e,s,i,n==null?void 0:n.class,n==null?void 0:n.className)},c2=$1({__name:"Badge",props:{variant:{default:"default"},class:{}},setup(e){const t=f5("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground shadow",outline:"text-foreground",success:"border-transparent bg-success/20 text-success",warning:"border-transparent bg-warning/20 text-warning",glow:"border-primary/30 bg-primary/10 text-primary"}},defaultVariants:{variant:"default"}}),n=e;return(l,o)=>(h(),C("div",{class:f1(f(E1)(f(t)({variant:e.variant}),n.class))},[K1(l.$slots,"default")],2))}}),C1=$1({__name:"Button",props:{variant:{default:"default"},size:{default:"default"},as:{default:"button"},class:{},disabled:{type:Boolean}},setup(e){const t=f5("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",glow:"bg-primary text-primary-foreground shadow-lg hover:bg-primary/90 glow-sm hover:glow"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-8",xl:"h-12 rounded-lg px-10 text-base",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),n=e;return(l,o)=>(h(),G(k2(e.as),{class:f1(f(E1)(f(t)({variant:e.variant,size:e.size}),n.class)),disabled:e.disabled},{default:w(()=>[K1(l.$slots,"default")]),_:3},8,["class","disabled"]))}}),z1=$1({__name:"Card",props:{class:{},hover:{type:Boolean,default:!1},glow:{type:Boolean,default:!1}},setup(e){const t=e;return(n,l)=>(h(),C("div",{class:f1(f(E1)("rounded-lg border bg-card text-card-foreground shadow-sm",e.hover&&"transition-all duration-200 hover:border-primary/50 hover:-translate-y-1",e.glow&&"glow-sm",t.class))},[K1(n.$slots,"default")],2))}}),Aa="modulepreload",ha=function(e){return"/"+e},s7={},x4=function(t,n,l){let o=Promise.resolve();if(n&&n.length>0){let s=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),i=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=s(n.map(c=>{if(c=ha(c),c in s7)return;s7[c]=!0;const d=c.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const A=document.createElement("link");if(A.rel=d?"stylesheet":Aa,d||(A.as="script"),A.crossOrigin="",A.href=c,i&&A.setAttribute("nonce",i),document.head.appendChild(A),d)return new Promise((m,p)=>{A.addEventListener("load",m),A.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&r(a.reason);return t().catch(r)})},a7={decision:"bg-blue-600/10 text-blue-600 border-blue-600/20",constraint:"bg-amber-600/10 text-amber-600 border-amber-600/20",workaround:"bg-red-600/10 text-red-600 border-red-600/20",convention:"bg-violet-600/10 text-violet-600 border-violet-600/20",pattern:"bg-emerald-600/10 text-emerald-600 border-emerald-600/20",discussion:"bg-cyan-600/10 text-cyan-600 border-cyan-600/20",review:"bg-pink-600/10 text-pink-600 border-pink-600/20",plan:"bg-lime-600/10 text-lime-600 border-lime-600/20"},pa={decision:"bg-blue-600",constraint:"bg-amber-600",workaround:"bg-red-600",convention:"bg-violet-600",pattern:"bg-emerald-600",discussion:"bg-cyan-600",review:"bg-pink-600",plan:"bg-lime-600"},N5={system:"#7c3aed",part:"#d97706",contract:"#0891b2",decision:"#2563eb",constraint:"#d97706",workaround:"#dc2626",convention:"#7c3aed",pattern:"#059669",discussion:"#0891b2",review:"#db2777",plan:"#65a30d"};function K0(){const e="bg-muted text-muted-foreground border-border";function t(r){return a7[(r??"").toLowerCase()]??e}function n(r){return pa[(r??"").toLowerCase()]??"bg-muted-foreground"}function l(r){return N5[(r??"").toLowerCase()]??"#a1a1aa"}const o=Object.keys(N5).map(r=>({kind:r,label:r.charAt(0).toUpperCase()+r.slice(1),color:N5[r]}));return{tone:t,fill:n,ink:l,legend:o,kinds:Object.keys(a7)}}const _4="#6b7280",ma=$1({__name:"CodeGraph",props:{height:{default:"460px"},repo:{default:""},mode:{default:"2d"},data:{default:null},hidden:{default:()=>[]}},emits:["select"],setup(e,{expose:t,emit:n}){const l=n,o=e,r=Q=>[typeof Q.source=="object"?Q.source:null,typeof Q.target=="object"?Q.target:null],s=Q=>{const[B,X]=r(Q);return B&&X&&B.community===X.community&&B.community!==null?B:null},a=z(null);let i=null,c=null,d=null;const u=new Map,{ink:A}=K0(),m=["#4E79A7","#F28E2B","#E15759","#76B7B2","#59A14F","#EDC948","#B07AA1","#FF9DA7","#9C755F","#BAB0AC"];function p(Q){if(typeof Q.community=="number")return m[Q.community%m.length];const B=(Q.kind||"").toLowerCase();return B==="code"?"#E20C18":B==="file"||["class","function","method","module","route","variable","symbol"].includes(B)?_4:A(B)}function y(Q){return Q&&Q.length>28?`${Q.slice(0,27)}…`:Q}const k=t1(()=>!!o.data&&o.data.nodes.length>0);t({hasGraph:k});const F=t1(()=>new Set(o.hidden));function M(){const Q=o.data??{nodes:[],links:[]},B=Q.nodes.filter(r1=>typeof r1.community!="number"||!F.value.has(r1.community)),X=new Set(B.map(r1=>r1.id)),Y=Math.max(1,...B.map(r1=>r1.degree??0)),m1=B.map(r1=>{const l1=u.get(r1.id);return{...r1,...l1??{},color:p(r1),radius:Math.min(3+2.4*Math.sqrt(r1.degree??0),11),named:(r1.degree??0)>=Math.max(4,Y*.5)}}),w1=Q.links.filter(r1=>X.has(String(r1.source))&&X.has(String(r1.target))).map(r1=>({...r1}));return{nodes:m1,links:w1}}function E(Q){return Math.max(.06,Math.min(.5,Math.sqrt(400/Math.max(1,Q))))}function _(Q,B){const X=parseInt(Q.slice(1),16),Y=Math.max(0,Math.min(1,B)).toFixed(3);return`rgba(${X>>16&255}, ${X>>8&255}, ${X&255}, ${Y})`}const R=Q=>Q==="tree"?"td":Q==="radial"?"radialout":Q==="layered"?"zout":null;function $(){if(i)for(const Q of i.graphData().nodes)Number.isFinite(Q.x)&&u.set(Q.id,{x:Q.x,y:Q.y,z:Q.z??0})}function D(){var Q;$(),i&&((Q=i._destructor)==null||Q.call(i),i=null),a.value&&(a.value.innerHTML="")}async function x(Q){var w1,r1;if(!a.value)return;const B=Q==="2d"?"2d":"3d";if(i&&c===B){B==="3d"&&i.dagMode(R(Q)),$(),i.graphData(M());return}if(D(),c=B,B==="2d"){const l1=(await x4(async()=>{const{default:s1}=await import("./force-graph-HZtkkbK0.js");return{default:s1}},__vite__mapDeps([0,1,2]))).default,{forceCollide:b1,forceManyBody:y1,forceX:k1,forceY:c1}=await x4(async()=>{const{forceCollide:s1,forceManyBody:q,forceX:S,forceY:o1}=await import("./index-DHVCIEzJ.js");return{forceCollide:s1,forceManyBody:q,forceX:S,forceY:o1}},__vite__mapDeps([3,1])),L1=M(),S1=E(L1.links.length);let Y1=null;i=new l1(a.value),i.backgroundColor("rgba(0,0,0,0)").graphData(L1).nodeRelSize(4).nodeColor(s1=>s1.color).nodeLabel(s1=>s1.path?`${s1.name} — ${s1.path}`:s1.name).nodeCanvasObject((s1,q,S)=>{const o1=!Y1||Y1===s1.id;if(q.globalAlpha=o1?1:.25,q.beginPath(),q.arc(s1.x,s1.y,s1.radius,0,2*Math.PI),q.fillStyle=s1.color,q.fill(),!s1.named&&Y1!==s1.id){q.globalAlpha=1;return}const J=Math.max(11/S,1.5);q.font=`${J}px ui-sans-serif, system-ui, sans-serif`,q.fillStyle=s1.color,q.textAlign="left",q.textBaseline="middle",q.fillText(y(s1.name),s1.x+s1.radius+2/S,s1.y),q.globalAlpha=1}).nodePointerAreaPaint((s1,q,S)=>{S.fillStyle=q,S.beginPath(),S.arc(s1.x,s1.y,s1.radius+2,0,2*Math.PI),S.fill()}).linkColor(s1=>{const q=s(s1);return _(q?q.color:_4,S1*(q?1.6:1))}).linkWidth(.6).linkDirectionalArrowLength(2.5).linkDirectionalArrowRelPos(1).linkLabel(s1=>s1.type??"").onNodeHover(s1=>{var q;Y1=s1?s1.id:null,a.value&&(a.value.style.cursor=s1?"pointer":""),(q=i==null?void 0:i.refresh)==null||q.call(i)}).width(a.value.clientWidth).height(a.value.clientHeight).onNodeClick(s1=>l("select",String(s1.id))),i.d3AlphaDecay(.02).d3VelocityDecay(.35).cooldownTicks(220),i.d3Force("charge",y1().strength(-140).distanceMax(420)),i.d3Force("center",null),i.d3Force("x",k1(0).strength(.03)),i.d3Force("y",c1(0).strength(.03)),i.d3Force("collide",b1(s1=>s1.radius+2).iterations(2)),(w1=i.d3Force("link"))==null||w1.distance(s1=>s(s1)?26:70).strength(s1=>s(s1)?.7:.08);let q1=!1;i.onEngineTick(()=>{!q1&&i.d3Force("link")&&(q1=!0,setTimeout(()=>i==null?void 0:i.zoomToFit(600,60),700))}),i.onEngineStop(()=>{$(),i==null||i.zoomToFit(600,60)});return}const X=(await x4(async()=>{const{default:l1}=await import("./3d-force-graph-B8lgMx4q.js");return{default:l1}},__vite__mapDeps([4,5,2,1]))).default,Y=await x4(()=>import("./three.module-D-PgY1-x.js").then(l1=>l1.df),[]),m1=M();i=new X(a.value),i.backgroundColor("rgba(0,0,0,0)").showNavInfo(!1).onDagError(()=>{}).dagLevelDistance(46).dagMode(R(Q)).graphData(m1).nodeLabel(l1=>l1.path?`${l1.name} — ${l1.path}`:l1.name).nodeThreeObject(l1=>{const b1=new Y.SphereGeometry(l1.radius,12,10),y1=new Y.MeshLambertMaterial({color:l1.color,transparent:!0,opacity:.92});return new Y.Mesh(b1,y1)}).linkColor(()=>_4).linkOpacity(E(m1.links.length)).linkWidth(.5).linkDirectionalArrowLength(2).linkDirectionalArrowRelPos(1).linkLabel(l1=>l1.type??"").width(a.value.clientWidth).height(a.value.clientHeight).onNodeClick(l1=>l("select",String(l1.id))),(r1=i.d3Force("charge"))==null||r1.strength(-140).distanceMax(420),i.onEngineStop(()=>{$(),i==null||i.zoomToFit(600,60)})}return d2(async()=>{await x(o.mode),d=new ResizeObserver(()=>{i&&a.value&&i.width(a.value.clientWidth).height(a.value.clientHeight)}),a.value&&d.observe(a.value)}),t2(()=>o.mode,Q=>x(Q)),t2(()=>o.repo,()=>{u.clear(),x(o.mode)}),t2(()=>o.data,()=>x(o.mode)),t2(()=>o.hidden,()=>x(o.mode),{deep:!0}),Ft(()=>{d&&(d.disconnect(),d=null),D()}),(Q,B)=>(h(),C("div",{ref_key:"el",ref:a,style:S2({height:o.height}),class:"w-full"},null,4))}}),ga=["for"],va={key:1,class:"mt-1 text-xs text-destructive"},ya={key:2,class:"mt-1 text-xs text-muted-foreground"},R2=$1({__name:"Field",props:{label:{},hint:{},error:{},for:{},class:{}},setup(e){const t=e;return(n,l)=>(h(),C("div",{class:f1(f(E1)("w-full",t.class))},[e.label?(h(),C("label",{key:0,for:t.for,class:"mb-1.5 flex items-center gap-2 text-xs font-medium uppercase tracking-wider text-muted-foreground"},[U(N(e.label)+" ",1),K1(n.$slots,"label")],8,ga)):P("",!0),K1(n.$slots,"default"),e.error?(h(),C("p",va,N(e.error),1)):e.hint?(h(),C("p",ya,N(e.hint),1)):P("",!0)],2))}}),G0=f5(["w-full rounded-md border bg-muted/50 text-foreground outline-none transition-colors","placeholder:text-muted-foreground focus:border-primary/50","disabled:cursor-not-allowed disabled:opacity-50"].join(" "),{variants:{size:{sm:"h-8 px-3 text-xs",default:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},invalid:{true:"border-destructive/60 focus:border-destructive",false:""}},defaultVariants:{size:"default",invalid:!1}}),ba=f5(["w-full resize-y rounded-md border bg-muted/50 text-foreground outline-none transition-colors","placeholder:text-muted-foreground focus:border-primary/50","disabled:cursor-not-allowed disabled:opacity-50"].join(" "),{variants:{size:{sm:"px-3 py-1.5 text-xs",default:"px-3 py-2 text-sm",lg:"px-4 py-2.5 text-base"},invalid:{true:"border-destructive/60 focus:border-destructive",false:""}},defaultVariants:{size:"default",invalid:!1}}),ka=["value"],J3=$1({__name:"Input",props:{modelValue:{},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),C("input",{value:e.modelValue,class:f1(f(E1)(f(G0)({size:e.size,invalid:e.invalid}),t.class)),onInput:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},null,42,ka))}}),Ca={class:"flex items-start gap-4"},wa={class:"min-w-0 flex-1"},xa={class:"mb-1 flex flex-wrap items-center gap-2"},_a={class:"break-all font-semibold"},Ia={key:0,class:"break-all font-mono text-sm text-muted-foreground"},Ma={key:1,class:"mt-2 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-muted-foreground"},Ea={key:1,class:"flex shrink-0 items-center gap-1"},z3=$1({__name:"ItemCard",props:{title:{},subtitle:{},pillar:{default:"graph"},hover:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={memory:"bg-pillar-memory/15 text-pillar-memory",graph:"bg-pillar-graph/15 text-pillar-graph",review:"bg-pillar-review/15 text-pillar-review",tokens:"bg-pillar-tokens/15 text-pillar-tokens",brand:"bg-primary/15 text-primary"};return(l,o)=>(h(),G(z1,{hover:e.hover,class:f1(f(E1)("p-5",t.class))},{default:w(()=>[b("div",Ca,[l.$slots.icon?(h(),C("div",{key:0,class:f1(f(E1)("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",n[e.pillar]))},[K1(l.$slots,"icon")],2)):P("",!0),b("div",wa,[b("div",xa,[b("h3",_a,N(e.title),1),K1(l.$slots,"badges")]),e.subtitle?(h(),C("p",Ia,N(e.subtitle),1)):P("",!0),K1(l.$slots,"default"),l.$slots.meta?(h(),C("div",Ma,[K1(l.$slots,"meta")])):P("",!0)]),l.$slots.actions?(h(),C("div",Ea,[K1(l.$slots,"actions")])):P("",!0)])]),_:3},8,["hover","class"]))}}),Da={class:"flex min-w-0 items-center gap-3"},Za={class:"min-w-0"},Fa={class:"flex flex-wrap items-center gap-2"},Ba={class:"text-xl font-semibold"},Sa={key:1,class:"mt-1.5 flex flex-wrap items-center gap-x-3 gap-y-1.5 text-sm text-muted-foreground"},Ra={key:0,class:"flex flex-wrap items-center gap-2"},m3=$1({__name:"PageHead",props:{title:{},sub:{},pillar:{default:"graph"},tone:{},mono:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={memory:"bg-pillar-memory/15 text-pillar-memory",graph:"bg-pillar-graph/15 text-pillar-graph",review:"bg-pillar-review/15 text-pillar-review",tokens:"bg-pillar-tokens/15 text-pillar-tokens",brand:"bg-primary/15 text-primary"},l={neutral:"bg-muted text-muted-foreground",info:"bg-primary/15 text-primary",success:"bg-success/15 text-success",warning:"bg-warning/15 text-warning",danger:"bg-destructive/15 text-destructive"},o=t1(()=>t.tone?l[t.tone]:n[t.pillar]);return(r,s)=>(h(),C("div",{class:f1(f(E1)("mb-6 flex flex-wrap items-start justify-between gap-4",t.class))},[b("div",Da,[K1(r.$slots,"back"),r.$slots.icon?(h(),C("div",{key:0,class:f1(f(E1)("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",o.value))},[K1(r.$slots,"icon")],2)):P("",!0),b("div",Za,[b("div",Fa,[b("h1",Ba,N(e.title),1),K1(r.$slots,"badges")]),e.sub?(h(),C("p",{key:0,class:f1(f(E1)("text-sm text-muted-foreground",e.mono&&"break-all font-mono"))},N(e.sub),3)):P("",!0),r.$slots.meta?(h(),C("div",Sa,[K1(r.$slots,"meta")])):P("",!0)])]),r.$slots.actions?(h(),C("div",Ra,[K1(r.$slots,"actions")])):P("",!0)],2))}}),Qa=["value"],j2=$1({__name:"Select",props:{modelValue:{},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),C("select",{value:e.modelValue,class:f1(f(E1)(f(G0)({size:e.size,invalid:e.invalid}),"w-auto",t.class)),onChange:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},[K1(n.$slots,"default")],42,Qa))}}),Na=["aria-label"],Ka=["aria-pressed","onClick"],ge=$1({__name:"Tabs",props:{modelValue:{},tabs:{},label:{},class:{}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),C("div",{role:"group","aria-label":e.label,class:f1(f(E1)("inline-flex rounded-md border bg-card p-0.5",t.class))},[(h(!0),C(n1,null,_1(e.tabs,o=>(h(),C("button",{key:o.id,type:"button","aria-pressed":e.modelValue===o.id,class:f1(f(E1)("rounded px-3 py-1 text-xs font-medium transition-colors",e.modelValue===o.id?"bg-primary/15 text-primary":"text-muted-foreground hover:text-foreground")),onClick:r=>n.$emit("update:modelValue",o.id)},N(o.label),11,Ka))),128))],10,Na))}}),Ga=["value","rows"],dt=$1({__name:"Textarea",props:{modelValue:{},rows:{default:3},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),C("textarea",{value:e.modelValue,rows:e.rows,class:f1(f(E1)(f(ba)({size:e.size,invalid:e.invalid}),t.class)),onInput:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},null,42,Ga))}});/** + */let Xr=()=>location.protocol+"//"+location.host;function b0(e,t){const{pathname:n,search:l,hash:o}=t,r=e.indexOf("#");if(r>-1){let s=o.includes(e.slice(r))?e.slice(r).length:1,a=o.slice(s);return a[0]!=="/"&&(a="/"+a),$6(a,"")}return $6(n,e)+l+o}function qr(e,t,n,l){let o=[],r=[],s=null;const a=({state:A})=>{const m=b0(e,location),p=n.value,g=t.value;let y=0;if(A){if(n.value=m,t.value=A,s&&s===p){s=null;return}y=g?A.position-g.position:0}else l(m);o.forEach(F=>{F(n.value,p,{delta:y,type:it.pop,direction:y?y>0?S5.forward:S5.back:S5.unknown})})};function i(){s=n.value}function c(A){o.push(A);const m=()=>{const p=o.indexOf(A);p>-1&&o.splice(p,1)};return r.push(m),m}function u(){if(document.visibilityState==="hidden"){const{history:A}=window;if(!A.state)return;A.replaceState(Q1({},A.state,{scroll:c5()}),"")}}function d(){for(const A of r)A();r=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:i,listen:c,destroy:d}}function H6(e,t,n,l=!1,o=!1){return{back:e,current:t,forward:n,replaced:l,position:window.history.length,scroll:o?c5():null}}function es(e){const{history:t,location:n}=window,l={value:b0(e,n)},o={value:t.state};o.value||r(l.value,{back:null,current:l.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(i,c,u){const d=e.indexOf("#"),A=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+i:Xr()+e+i;try{t[u?"replaceState":"pushState"](c,"",A),o.value=c}catch(m){console.error(m),n[u?"replace":"assign"](A)}}function s(i,c){r(i,Q1({},t.state,H6(o.value.back,i,o.value.forward,!0),c,{position:o.value.position}),!0),l.value=i}function a(i,c){const u=Q1({},o.value,t.state,{forward:i,scroll:c5()});r(u.current,u,!0),r(i,Q1({},H6(l.value,i,null),{position:u.position+1},c),!1),l.value=i}return{location:l,state:o,push:a,replace:s}}function ts(e){e=Gr(e);const t=es(e),n=qr(e,t.state,t.location,t.replace);function l(r,s=!0){s||n.pauseListeners(),history.go(r)}const o=Q1({location:"",base:e,go:l,createHref:$r.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}let T3=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var o2=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(o2||{});const ns={type:T3.Static,value:""},ls=/[a-zA-Z0-9_]/;function os(e){if(!e)return[[]];if(e==="/")return[[ns]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=o2.Static,l=n;const o=[];let r;function s(){r&&o.push(r),r=[]}let a=0,i,c="",u="";function d(){c&&(n===o2.Static?r.push({type:T3.Static,value:c}):n===o2.Param||n===o2.ParamRegExp||n===o2.ParamRegExpEnd?(r.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:T3.Param,value:c,regexp:u,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),c="")}function A(){c+=i}for(;at.length?t.length===1&&t[0]===v2.Static+v2.Segment?1:-1:0}function k0(e,t){let n=0;const l=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const cs={strict:!1,end:!0,sensitive:!1};function us(e,t,n){const l=as(os(e.path),n),o=Q1(l,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function ds(e,t){const n=[],l=new Map;t=O6(cs,t);function o(d){return l.get(d)}function r(d,A,m){const p=!m,g=J6(d);g.aliasOf=m&&m.record;const y=O6(t,d),F=[g];if("alias"in d){const w=typeof d.alias=="string"?[d.alias]:d.alias;for(const B of w)F.push(J6(Q1({},g,{components:m?m.record.components:g.components,path:B,aliasOf:m?m.record:g})))}let I,D;for(const w of F){const{path:B}=w;if(A&&B[0]!=="/"){const W=A.record.path,Z=W[W.length-1]==="/"?"":"/";w.path=A.record.path+(B&&Z+B)}if(I=us(w,A,y),m?m.alias.push(I):(D=D||I,D!==I&&D.alias.push(I),p&&d.name&&!z6(I)&&s(d.name)),C0(I)&&i(I),g.children){const W=g.children;for(let Z=0;Z{s(D)}:Le}function s(d){if(v0(d)){const A=l.get(d);A&&(l.delete(d),n.splice(n.indexOf(A),1),A.children.forEach(s),A.alias.forEach(s))}else{const A=n.indexOf(d);A>-1&&(n.splice(A,1),d.record.name&&l.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function a(){return n}function i(d){const A=hs(d,n);n.splice(A,0,d),d.record.name&&!z6(d)&&l.set(d.record.name,d)}function c(d,A){let m,p={},g,y;if("name"in d&&d.name){if(m=l.get(d.name),!m)throw Ae(X1.MATCHER_NOT_FOUND,{location:d});y=m.record.name,p=Q1(U6(A.params,m.keys.filter(D=>!D.optional).concat(m.parent?m.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),d.params&&U6(d.params,m.keys.map(D=>D.name))),g=m.stringify(p)}else if(d.path!=null)g=d.path,m=n.find(D=>D.re.test(g)),m&&(p=m.parse(g),y=m.record.name);else{if(m=A.name?l.get(A.name):n.find(D=>D.re.test(A.path)),!m)throw Ae(X1.MATCHER_NOT_FOUND,{location:d,currentLocation:A});y=m.record.name,p=Q1({},A.params,d.params),g=m.stringify(p)}const F=[];let I=m;for(;I;)F.unshift(I.record),I=I.parent;return{name:y,path:g,params:p,matched:F,meta:As(F)}}e.forEach(d=>r(d));function u(){n.length=0,l.clear()}return{addRoute:r,resolve:c,removeRoute:s,clearRoutes:u,getRoutes:a,getRecordMatcher:o}}function U6(e,t){const n={};for(const l of t)l in e&&(n[l]=e[l]);return n}function J6(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:fs(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function fs(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const l in e.components)t[l]=typeof n=="object"?n[l]:n;return t}function z6(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function As(e){return e.reduce((t,n)=>Q1(t,n.meta),{})}function hs(e,t){let n=0,l=t.length;for(;n!==l;){const r=n+l>>1;k0(e,t[r])<0?l=r:n=r+1}const o=ps(e);return o&&(l=t.lastIndexOf(o,l-1)),l}function ps(e){let t=e;for(;t=t.parent;)if(C0(t)&&k0(e,t)===0)return t}function C0({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function j6(e){const t=K2(u5),n=K2(Ot),l=t1(()=>{const i=f(e.to);return t.resolve(i)}),o=t1(()=>{const{matched:i}=l.value,{length:c}=i,u=i[c-1],d=n.matched;if(!u||!d.length)return-1;const A=d.findIndex(fe.bind(null,u));if(A>-1)return A;const m=X6(i[c-2]);return c>1&&X6(u)===m&&d[d.length-1].path!==m?d.findIndex(fe.bind(null,i[c-2])):A}),r=t1(()=>o.value>-1&&bs(n.params,l.value.params)),s=t1(()=>o.value>-1&&o.value===n.matched.length-1&&g0(n.params,l.value.params));function a(i={}){if(ys(i)){const c=t[f(e.replace)?"replace":"push"](f(e.to)).catch(Le);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:l,href:t1(()=>l.value.href),isActive:r,isExactActive:s,navigate:a}}function ms(e){return e.length===1?e[0]:e}const gs=O1({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"},viewTransition:Boolean},useLink:j6,setup(e,{slots:t}){const n=l5(j6(e)),{options:l}=K2(u5),o=t1(()=>({[q6(e.activeClass,l.linkActiveClass,"router-link-active")]:n.isActive,[q6(e.exactActiveClass,l.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&ms(t.default(n));return e.custom?r:A3("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),vs=gs;function ys(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 bs(e,t){for(const n in t){const l=t[n],o=e[n];if(typeof l=="string"){if(l!==o)return!1}else if(!$2(o)||o.length!==l.length||l.some((r,s)=>r.valueOf()!==o[s].valueOf()))return!1}return!0}function X6(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const q6=(e,t,n)=>e??t??n,ks=O1({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const l=K2(ut),o=t1(()=>e.route||l.value),r=K2(T6,0),s=t1(()=>{let c=f(r);const{matched:u}=o.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=t1(()=>o.value.matched[s.value]);B4(T6,t1(()=>s.value+1)),B4(zr,a),B4(ut,o);const i=j();return q1(()=>[i.value,a.value,e.name],([c,u,d],[A,m,p])=>{u&&(u.instances[d]=c,m&&m!==u&&c&&c===A&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),c&&u&&(!m||!fe(u,m)||!A)&&(u.enterCallbacks[d]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,d=a.value,A=d&&d.components[u];if(!A)return e7(n.default,{Component:A,route:c});const m=d.props[u],p=m?m===!0?c.params:typeof m=="function"?m(c):m:null,y=A3(A,Q1({},p,t,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(d.instances[u]=null)},ref:i}));return e7(n.default,{Component:y,route:c})||y}}});function e7(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Cs=ks;function ws(e){const t=ds(e.routes,e),n=e.parseQuery||Ur,l=e.stringifyQuery||P6,o=e.history,r=Ie(),s=Ie(),a=Ie(),i=pl(b3);let c=b3;le&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=F5.bind(null,$=>""+$),d=F5.bind(null,Fr),A=F5.bind(null,t4);function m($,z){let N,f1;return v0($)?(N=t.getRecordMatcher($),f1=z):f1=$,t.addRoute(f1,N)}function p($){const z=t.getRecordMatcher($);z&&t.removeRoute(z)}function g(){return t.getRoutes().map($=>$.record)}function y($){return!!t.getRecordMatcher($)}function F($,z){if(z=Q1({},z||i.value),typeof $=="string"){const E=B5(n,$,z.path),P=t.resolve({path:E.path},z),Y=o.createHref(E.fullPath);return Q1(E,P,{params:A(P.params),hash:t4(E.hash),redirectedFrom:void 0,href:Y})}let N;if($.path!=null)N=Q1({},$,{path:B5(n,$.path,z.path).path});else{const E=Q1({},$.params);for(const P in E)E[P]==null&&delete E[P];N=Q1({},$,{params:d(E)}),z.params=d(z.params)}const f1=t.resolve(N,z),I1=$.hash||"";f1.params=u(A(f1.params));const v=Rr(l,Q1({},$,{hash:Er(I1),path:f1.path})),b=o.createHref(v);return Q1({fullPath:v,hash:I1,query:l===P6?Jr($.query):$.query||{}},f1,{redirectedFrom:void 0,href:b})}function I($){return typeof $=="string"?B5(n,$,i.value.path):Q1({},$)}function D($,z){if(c!==$)return Ae(X1.NAVIGATION_CANCELLED,{from:z,to:$})}function w($){return Z($)}function B($){return w(Q1(I($),{replace:!0}))}function W($,z){const N=$.matched[$.matched.length-1];if(N&&N.redirect){const{redirect:f1}=N;let I1=typeof f1=="function"?f1($,z):f1;return typeof I1=="string"&&(I1=I1.includes("?")||I1.includes("#")?I1=I(I1):{path:I1},I1.params={}),Q1({query:$.query,hash:$.hash,params:I1.path!=null?{}:$.params},I1)}}function Z($,z){const N=c=F($),f1=i.value,I1=$.state,v=$.force,b=$.replace===!0,E=W(N,f1);if(E)return Z(Q1(I(E),{state:typeof E=="object"?Q1({},I1,E.state):I1,force:v,replace:b}),z||N);const P=N;P.redirectedFrom=z;let Y;return!v&&Qr(l,f1,N)&&(Y=Ae(X1.NAVIGATION_DUPLICATED,{to:P,from:f1}),$1(f1,f1,!0,!1)),(Y?Promise.resolve(Y):S(P,f1)).catch(T=>n3(T)?n3(T,X1.NAVIGATION_GUARD_REDIRECT)?T:s1(T):w1(T,P,f1)).then(T=>{if(T){if(n3(T,X1.NAVIGATION_GUARD_REDIRECT))return Z(Q1({replace:b},I(T.to),{state:typeof T.to=="object"?Q1({},I1,T.to.state):I1,force:v}),z||P)}else T=V(P,f1,!0,b,I1);return q(P,f1,T),T})}function _($,z){const N=D($,z);return N?Promise.reject(N):Promise.resolve()}function R($){const z=e2.values().next().value;return z&&typeof z.runWithContext=="function"?z.runWithContext($):$()}function S($,z){let N;const[f1,I1,v]=jr($,z);N=R5(f1.reverse(),"beforeRouteLeave",$,z);for(const E of f1)E.leaveGuards.forEach(P=>{N.push(x3(P,$,z))});const b=_.bind(null,$,z);return N.push(b),p1(N).then(()=>{N=[];for(const E of r.list())N.push(x3(E,$,z));return N.push(b),p1(N)}).then(()=>{N=R5(I1,"beforeRouteUpdate",$,z);for(const E of I1)E.updateGuards.forEach(P=>{N.push(x3(P,$,z))});return N.push(b),p1(N)}).then(()=>{N=[];for(const E of v)if(E.beforeEnter)if($2(E.beforeEnter))for(const P of E.beforeEnter)N.push(x3(P,$,z));else N.push(x3(E.beforeEnter,$,z));return N.push(b),p1(N)}).then(()=>($.matched.forEach(E=>E.enterCallbacks={}),N=R5(v,"beforeRouteEnter",$,z,R),N.push(b),p1(N))).then(()=>{N=[];for(const E of s.list())N.push(x3(E,$,z));return N.push(b),p1(N)}).catch(E=>n3(E,X1.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function q($,z,N){a.list().forEach(f1=>R(()=>f1($,z,N)))}function V($,z,N,f1,I1){const v=D($,z);if(v)return v;const b=z===b3,E=le?history.state:{};N&&(f1||b?o.replace($.fullPath,Q1({scroll:b&&E&&E.scroll},I1)):o.push($.fullPath,I1)),i.value=$,$1($,z,N,b),s1()}let m1;function b1(){m1||(m1=o.listen(($,z,N)=>{if(!a1.listening)return;const f1=F($),I1=W(f1,a1.currentRoute.value);if(I1){Z(Q1(I1,{replace:!0,force:!0}),f1).catch(Le);return}c=f1;const v=i.value;le&&Pr(L6(v.fullPath,N.delta),c5()),S(f1,v).catch(b=>n3(b,X1.NAVIGATION_ABORTED|X1.NAVIGATION_CANCELLED)?b:n3(b,X1.NAVIGATION_GUARD_REDIRECT)?(Z(Q1(I(b.to),{force:!0}),f1).then(E=>{n3(E,X1.NAVIGATION_ABORTED|X1.NAVIGATION_DUPLICATED)&&!N.delta&&N.type===it.pop&&o.go(-1,!1)}).catch(Le),Promise.reject()):(N.delta&&o.go(-N.delta,!1),w1(b,f1,v))).then(b=>{b=b||V(f1,v,!1),b&&(N.delta&&!n3(b,X1.NAVIGATION_CANCELLED)?o.go(-N.delta,!1):N.type===it.pop&&n3(b,X1.NAVIGATION_ABORTED|X1.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),q(f1,v,b)}).catch(Le)}))}let l1=Ie(),o1=Ie(),y1;function w1($,z,N){s1($);const f1=o1.list();return f1.length?f1.forEach(I1=>I1($,z,N)):console.error($),Promise.reject($)}function C1(){return y1&&i.value!==b3?Promise.resolve():new Promise(($,z)=>{l1.add([$,z])})}function s1($){return y1||(y1=!$,b1(),l1.list().forEach(([z,N])=>$?N($):z()),l1.reset()),$}function $1($,z,N,f1){const{scrollBehavior:I1}=e;if(!le||!I1)return Promise.resolve();const v=!N&&Tr(L6($.fullPath,0))||(f1||!N)&&history.state&&history.state.scroll||null;return b8().then(()=>I1($,z,v)).then(b=>b&&Lr(b)).catch(b=>w1(b,$,z))}const S1=$=>o.go($);let Y1;const e2=new Set,a1={currentRoute:i,listening:!0,addRoute:m,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:g,resolve:F,options:e,push:w,replace:B,go:S1,back:()=>S1(-1),forward:()=>S1(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:o1.add,isReady:C1,install($){$.component("RouterLink",vs),$.component("RouterView",Cs),$.config.globalProperties.$router=a1,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>f(i)}),le&&!Y1&&i.value===b3&&(Y1=!0,w(o.location).catch(f1=>{}));const z={};for(const f1 in b3)Object.defineProperty(z,f1,{get:()=>i.value[f1],enumerable:!0});$.provide(u5,a1),$.provide(Ot,m8(z)),$.provide(ut,i);const N=$.unmount;e2.add($),$.unmount=function(){e2.delete($),e2.size<1&&(c=b3,m1&&m1(),m1=null,i.value=b3,Y1=!1,y1=!1),N()}}};function p1($){return $.reduce((z,N)=>z.then(()=>R(N)),Promise.resolve())}return a1}function ye(){return K2(u5)}function d5(e){return K2(Ot)}function w0(e){var t,n,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{const n=new Array(e.length+t.length);for(let l=0;l({classGroupId:e,validator:t}),_0=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),V4="-",t7=[],Is="arbitrary..",Ms=e=>{const t=Ds(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:l}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Es(s);const a=s.split(V4),i=a[0]===""&&a.length>1?1:0;return I0(a,i,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const i=l[s],c=n[s];return i?c?xs(c,i):i:c||t7}return n[s]||t7}}},I0=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],r=n.nextPart.get(o);if(r){const c=I0(e,t+1,r);if(c)return c}const s=n.validators;if(s===null)return;const a=t===0?e.join(V4):e.slice(t).join(V4),i=s.length;for(let c=0;ce.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),l=t.slice(0,n);return l?Is+l:void 0})(),Ds=e=>{const{theme:t,classGroups:n}=e;return Zs(n,t)},Zs=(e,t)=>{const n=_0();for(const l in e){const o=e[l];$t(o,n,l,t)}return n},$t=(e,t,n,l)=>{const o=e.length;for(let r=0;r{if(typeof e=="string"){Bs(e,t,n);return}if(typeof e=="function"){Ss(e,t,n,l);return}Rs(e,t,n,l)},Bs=(e,t,n)=>{const l=e===""?t:M0(t,e);l.classGroupId=n},Ss=(e,t,n,l)=>{if(Qs(e)){$t(e(l),t,n,l);return}t.validators===null&&(t.validators=[]),t.validators.push(_s(n,e))},Rs=(e,t,n,l)=>{const o=Object.entries(e),r=o.length;for(let s=0;s{let n=e;const l=t.split(V4),o=l.length;for(let r=0;r"isThemeGetter"in e&&e.isThemeGetter===!0,Ns=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),l=Object.create(null);const o=(r,s)=>{n[r]=s,t++,t>e&&(t=0,l=n,n=Object.create(null))};return{get(r){let s=n[r];if(s!==void 0)return s;if((s=l[r])!==void 0)return o(r,s),s},set(r,s){r in n?n[r]=s:o(r,s)}}},dt="!",n7=":",Ks=[],l7=(e,t,n,l,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:l,isExternal:o}),Gs=e=>{const{prefix:t,experimentalParseClassName:n}=e;let l=o=>{const r=[];let s=0,a=0,i=0,c;const u=o.length;for(let g=0;gi?c-i:void 0;return l7(r,m,A,p)};if(t){const o=t+n7,r=l;l=s=>s.startsWith(o)?r(s.slice(o.length)):l7(Ks,!1,s,void 0,!0)}if(n){const o=l;l=r=>n({className:r,parseClassName:o})}return l},Os=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,l)=>{t.set(n,1e6+l)}),n=>{const l=[];let o=[];for(let r=0;r0&&(o.sort(),l.push(...o),o=[]),l.push(s)):o.push(s)}return o.length>0&&(o.sort(),l.push(...o)),l}},$s=e=>({cache:Ns(e.cacheSize),parseClassName:Gs(e),sortModifiers:Os(e),postfixLookupClassGroupIds:Ws(e),...Ms(e)}),Ws=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let l=0;l{const{parseClassName:n,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:r,postfixLookupClassGroupIds:s}=t,a=[],i=e.trim().split(Ls);let c="";for(let u=i.length-1;u>=0;u-=1){const d=i[u],{isExternal:A,modifiers:m,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:y}=n(d);if(A){c=d+(c.length>0?" "+c:c);continue}let F=!!y,I;if(F){const Z=g.substring(0,y);I=l(Z);const _=I&&s[I]?l(g):void 0;_&&_!==I&&(I=_,F=!1)}else I=l(g);if(!I){if(!F){c=d+(c.length>0?" "+c:c);continue}if(I=l(g),!I){c=d+(c.length>0?" "+c:c);continue}F=!1}const D=m.length===0?"":m.length===1?m[0]:r(m).join(":"),w=p?D+dt:D,B=w+I;if(a.indexOf(B)>-1)continue;a.push(B);const W=o(I,F);for(let Z=0;Z0?" "+c:c)}return c},Ts=(...e)=>{let t=0,n,l,o="";for(;t{if(typeof e=="string")return e;let t,n="";for(let l=0;l{let n,l,o,r;const s=i=>{const c=t.reduce((u,d)=>d(u),e());return n=$s(c),l=n.cache.get,o=n.cache.set,r=a,a(i)},a=i=>{const c=l(i);if(c)return c;const u=Ps(i,n);return o(i,u),u};return r=s,(...i)=>r(Ts(...i))},Ys=[],l2=e=>{const t=n=>n[e]||Ys;return t.isThemeGetter=!0,t},D0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Z0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vs=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Us=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Js=/\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$/,zs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,js=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k3=e=>Vs.test(e),Z1=e=>!!e&&!Number.isNaN(Number(e)),L2=e=>!!e&&Number.isInteger(Number(e)),Q5=e=>e.endsWith("%")&&Z1(e.slice(0,-1)),l3=e=>Us.test(e),F0=()=>!0,qs=e=>Js.test(e)&&!zs.test(e),Wt=()=>!1,ea=e=>js.test(e),ta=e=>Xs.test(e),na=e=>!u1(e)&&!d1(e),la=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),oa=e=>F3(e,R0,Wt),u1=e=>D0.test(e),N3=e=>F3(e,Q0,qs),o7=e=>F3(e,fa,Z1),ra=e=>F3(e,K0,F0),sa=e=>F3(e,N0,Wt),r7=e=>F3(e,B0,Wt),aa=e=>F3(e,S0,ta),_4=e=>F3(e,G0,ea),d1=e=>Z0.test(e),Me=e=>z3(e,Q0),ia=e=>z3(e,N0),s7=e=>z3(e,B0),ca=e=>z3(e,R0),ua=e=>z3(e,S0),I4=e=>z3(e,G0,!0),da=e=>z3(e,K0,!0),F3=(e,t,n)=>{const l=D0.exec(e);return l?l[1]?t(l[1]):n(l[2]):!1},z3=(e,t,n=!1)=>{const l=Z0.exec(e);return l?l[1]?t(l[1]):n:!1},B0=e=>e==="position"||e==="percentage",S0=e=>e==="image"||e==="url",R0=e=>e==="length"||e==="size"||e==="bg-size",Q0=e=>e==="length",fa=e=>e==="number",N0=e=>e==="family-name",K0=e=>e==="number"||e==="weight",G0=e=>e==="shadow",Aa=()=>{const e=l2("color"),t=l2("font"),n=l2("text"),l=l2("font-weight"),o=l2("tracking"),r=l2("leading"),s=l2("breakpoint"),a=l2("container"),i=l2("spacing"),c=l2("radius"),u=l2("shadow"),d=l2("inset-shadow"),A=l2("text-shadow"),m=l2("drop-shadow"),p=l2("blur"),g=l2("perspective"),y=l2("aspect"),F=l2("ease"),I=l2("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...w(),d1,u1],W=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],_=()=>[d1,u1,i],R=()=>[k3,"full","auto",..._()],S=()=>[L2,"none","subgrid",d1,u1],q=()=>["auto",{span:["full",L2,d1,u1]},L2,d1,u1],V=()=>[L2,"auto",d1,u1],m1=()=>["auto","min","max","fr",d1,u1],b1=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],l1=()=>["start","end","center","stretch","center-safe","end-safe"],o1=()=>["auto",..._()],y1=()=>[k3,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],w1=()=>[k3,"screen","full","dvw","lvw","svw","min","max","fit",..._()],C1=()=>[k3,"screen","full","lh","dvh","lvh","svh","min","max","fit",..._()],s1=()=>[e,d1,u1],$1=()=>[...w(),s7,r7,{position:[d1,u1]}],S1=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y1=()=>["auto","cover","contain",ca,oa,{size:[d1,u1]}],e2=()=>[Q5,Me,N3],a1=()=>["","none","full",c,d1,u1],p1=()=>["",Z1,Me,N3],$=()=>["solid","dashed","dotted","double"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>[Z1,Q5,s7,r7],f1=()=>["","none",p,d1,u1],I1=()=>["none",Z1,d1,u1],v=()=>["none",Z1,d1,u1],b=()=>[Z1,d1,u1],E=()=>[k3,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[l3],breakpoint:[l3],color:[F0],container:[l3],"drop-shadow":[l3],ease:["in","out","in-out"],font:[na],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[l3],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[l3],shadow:[l3],spacing:["px",Z1],text:[l3],"text-shadow":[l3],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",k3,u1,d1,y]}],container:["container"],"container-type":[{"@container":["","normal","size",d1,u1]}],"container-named":[la],columns:[{columns:[Z1,u1,d1,a]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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"],sr:["sr-only","not-sr-only"],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:B()}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[L2,"auto",d1,u1]}],basis:[{basis:[k3,"full","auto",a,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Z1,k3,"auto","initial","none",u1]}],grow:[{grow:["",Z1,d1,u1]}],shrink:[{shrink:["",Z1,d1,u1]}],order:[{order:[L2,"first","last","none",d1,u1]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":m1()}],"auto-rows":[{"auto-rows":m1()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...b1(),"normal"]}],"justify-items":[{"justify-items":[...l1(),"normal"]}],"justify-self":[{"justify-self":["auto",...l1()]}],"align-content":[{content:["normal",...b1()]}],"align-items":[{items:[...l1(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...l1(),{baseline:["","last"]}]}],"place-content":[{"place-content":b1()}],"place-items":[{"place-items":[...l1(),"baseline"]}],"place-self":[{"place-self":["auto",...l1()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pbs:[{pbs:_()}],pbe:[{pbe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:o1()}],mx:[{mx:o1()}],my:[{my:o1()}],ms:[{ms:o1()}],me:[{me:o1()}],mbs:[{mbs:o1()}],mbe:[{mbe:o1()}],mt:[{mt:o1()}],mr:[{mr:o1()}],mb:[{mb:o1()}],ml:[{ml:o1()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:y1()}],"inline-size":[{inline:["auto",...w1()]}],"min-inline-size":[{"min-inline":["auto",...w1()]}],"max-inline-size":[{"max-inline":["none",...w1()]}],"block-size":[{block:["auto",...C1()]}],"min-block-size":[{"min-block":["auto",...C1()]}],"max-block-size":[{"max-block":["none",...C1()]}],w:[{w:[a,"screen",...y1()]}],"min-w":[{"min-w":[a,"screen","none",...y1()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...y1()]}],h:[{h:["screen","lh",...y1()]}],"min-h":[{"min-h":["screen","lh","none",...y1()]}],"max-h":[{"max-h":["screen","lh",...y1()]}],"font-size":[{text:["base",n,Me,N3]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,da,ra]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Q5,u1]}],"font-family":[{font:[ia,sa,t]}],"font-features":[{"font-features":[u1]}],"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-fractions"],tracking:[{tracking:[o,d1,u1]}],"line-clamp":[{"line-clamp":[Z1,"none",d1,o7]}],leading:[{leading:[r,..._()]}],"list-image":[{"list-image":["none",d1,u1]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",d1,u1]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:s1()}],"text-color":[{text:s1()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:[Z1,"from-font","auto",d1,N3]}],"text-decoration-color":[{decoration:s1()}],"underline-offset":[{"underline-offset":[Z1,"auto",d1,u1]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"tab-size":[{tab:[L2,d1,u1]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d1,u1]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d1,u1]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$1()}],"bg-repeat":[{bg:S1()}],"bg-size":[{bg:Y1()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},L2,d1,u1],radial:["",d1,u1],conic:[L2,d1,u1]},ua,aa]}],"bg-color":[{bg:s1()}],"gradient-from-pos":[{from:e2()}],"gradient-via-pos":[{via:e2()}],"gradient-to-pos":[{to:e2()}],"gradient-from":[{from:s1()}],"gradient-via":[{via:s1()}],"gradient-to":[{to:s1()}],rounded:[{rounded:a1()}],"rounded-s":[{"rounded-s":a1()}],"rounded-e":[{"rounded-e":a1()}],"rounded-t":[{"rounded-t":a1()}],"rounded-r":[{"rounded-r":a1()}],"rounded-b":[{"rounded-b":a1()}],"rounded-l":[{"rounded-l":a1()}],"rounded-ss":[{"rounded-ss":a1()}],"rounded-se":[{"rounded-se":a1()}],"rounded-ee":[{"rounded-ee":a1()}],"rounded-es":[{"rounded-es":a1()}],"rounded-tl":[{"rounded-tl":a1()}],"rounded-tr":[{"rounded-tr":a1()}],"rounded-br":[{"rounded-br":a1()}],"rounded-bl":[{"rounded-bl":a1()}],"border-w":[{border:p1()}],"border-w-x":[{"border-x":p1()}],"border-w-y":[{"border-y":p1()}],"border-w-s":[{"border-s":p1()}],"border-w-e":[{"border-e":p1()}],"border-w-bs":[{"border-bs":p1()}],"border-w-be":[{"border-be":p1()}],"border-w-t":[{"border-t":p1()}],"border-w-r":[{"border-r":p1()}],"border-w-b":[{"border-b":p1()}],"border-w-l":[{"border-l":p1()}],"divide-x":[{"divide-x":p1()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":p1()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$(),"hidden","none"]}],"divide-style":[{divide:[...$(),"hidden","none"]}],"border-color":[{border:s1()}],"border-color-x":[{"border-x":s1()}],"border-color-y":[{"border-y":s1()}],"border-color-s":[{"border-s":s1()}],"border-color-e":[{"border-e":s1()}],"border-color-bs":[{"border-bs":s1()}],"border-color-be":[{"border-be":s1()}],"border-color-t":[{"border-t":s1()}],"border-color-r":[{"border-r":s1()}],"border-color-b":[{"border-b":s1()}],"border-color-l":[{"border-l":s1()}],"divide-color":[{divide:s1()}],"outline-style":[{outline:[...$(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Z1,d1,u1]}],"outline-w":[{outline:["",Z1,Me,N3]}],"outline-color":[{outline:s1()}],shadow:[{shadow:["","none",u,I4,_4]}],"shadow-color":[{shadow:s1()}],"inset-shadow":[{"inset-shadow":["none",d,I4,_4]}],"inset-shadow-color":[{"inset-shadow":s1()}],"ring-w":[{ring:p1()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:s1()}],"ring-offset-w":[{"ring-offset":[Z1,N3]}],"ring-offset-color":[{"ring-offset":s1()}],"inset-ring-w":[{"inset-ring":p1()}],"inset-ring-color":[{"inset-ring":s1()}],"text-shadow":[{"text-shadow":["none",A,I4,_4]}],"text-shadow-color":[{"text-shadow":s1()}],opacity:[{opacity:[Z1,d1,u1]}],"mix-blend":[{"mix-blend":[...z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":z()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Z1]}],"mask-image-linear-from-pos":[{"mask-linear-from":N()}],"mask-image-linear-to-pos":[{"mask-linear-to":N()}],"mask-image-linear-from-color":[{"mask-linear-from":s1()}],"mask-image-linear-to-color":[{"mask-linear-to":s1()}],"mask-image-t-from-pos":[{"mask-t-from":N()}],"mask-image-t-to-pos":[{"mask-t-to":N()}],"mask-image-t-from-color":[{"mask-t-from":s1()}],"mask-image-t-to-color":[{"mask-t-to":s1()}],"mask-image-r-from-pos":[{"mask-r-from":N()}],"mask-image-r-to-pos":[{"mask-r-to":N()}],"mask-image-r-from-color":[{"mask-r-from":s1()}],"mask-image-r-to-color":[{"mask-r-to":s1()}],"mask-image-b-from-pos":[{"mask-b-from":N()}],"mask-image-b-to-pos":[{"mask-b-to":N()}],"mask-image-b-from-color":[{"mask-b-from":s1()}],"mask-image-b-to-color":[{"mask-b-to":s1()}],"mask-image-l-from-pos":[{"mask-l-from":N()}],"mask-image-l-to-pos":[{"mask-l-to":N()}],"mask-image-l-from-color":[{"mask-l-from":s1()}],"mask-image-l-to-color":[{"mask-l-to":s1()}],"mask-image-x-from-pos":[{"mask-x-from":N()}],"mask-image-x-to-pos":[{"mask-x-to":N()}],"mask-image-x-from-color":[{"mask-x-from":s1()}],"mask-image-x-to-color":[{"mask-x-to":s1()}],"mask-image-y-from-pos":[{"mask-y-from":N()}],"mask-image-y-to-pos":[{"mask-y-to":N()}],"mask-image-y-from-color":[{"mask-y-from":s1()}],"mask-image-y-to-color":[{"mask-y-to":s1()}],"mask-image-radial":[{"mask-radial":[d1,u1]}],"mask-image-radial-from-pos":[{"mask-radial-from":N()}],"mask-image-radial-to-pos":[{"mask-radial-to":N()}],"mask-image-radial-from-color":[{"mask-radial-from":s1()}],"mask-image-radial-to-color":[{"mask-radial-to":s1()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[Z1]}],"mask-image-conic-from-pos":[{"mask-conic-from":N()}],"mask-image-conic-to-pos":[{"mask-conic-to":N()}],"mask-image-conic-from-color":[{"mask-conic-from":s1()}],"mask-image-conic-to-color":[{"mask-conic-to":s1()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$1()}],"mask-repeat":[{mask:S1()}],"mask-size":[{mask:Y1()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",d1,u1]}],filter:[{filter:["","none",d1,u1]}],blur:[{blur:f1()}],brightness:[{brightness:[Z1,d1,u1]}],contrast:[{contrast:[Z1,d1,u1]}],"drop-shadow":[{"drop-shadow":["","none",m,I4,_4]}],"drop-shadow-color":[{"drop-shadow":s1()}],grayscale:[{grayscale:["",Z1,d1,u1]}],"hue-rotate":[{"hue-rotate":[Z1,d1,u1]}],invert:[{invert:["",Z1,d1,u1]}],saturate:[{saturate:[Z1,d1,u1]}],sepia:[{sepia:["",Z1,d1,u1]}],"backdrop-filter":[{"backdrop-filter":["","none",d1,u1]}],"backdrop-blur":[{"backdrop-blur":f1()}],"backdrop-brightness":[{"backdrop-brightness":[Z1,d1,u1]}],"backdrop-contrast":[{"backdrop-contrast":[Z1,d1,u1]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Z1,d1,u1]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z1,d1,u1]}],"backdrop-invert":[{"backdrop-invert":["",Z1,d1,u1]}],"backdrop-opacity":[{"backdrop-opacity":[Z1,d1,u1]}],"backdrop-saturate":[{"backdrop-saturate":[Z1,d1,u1]}],"backdrop-sepia":[{"backdrop-sepia":["",Z1,d1,u1]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",d1,u1]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Z1,"initial",d1,u1]}],ease:[{ease:["linear","initial",F,d1,u1]}],delay:[{delay:[Z1,d1,u1]}],animate:[{animate:["none",I,d1,u1]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,d1,u1]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:I1()}],"rotate-x":[{"rotate-x":I1()}],"rotate-y":[{"rotate-y":I1()}],"rotate-z":[{"rotate-z":I1()}],scale:[{scale:v()}],"scale-x":[{"scale-x":v()}],"scale-y":[{"scale-y":v()}],"scale-z":[{"scale-z":v()}],"scale-3d":["scale-3d"],skew:[{skew:b()}],"skew-x":[{"skew-x":b()}],"skew-y":[{"skew-y":b()}],transform:[{transform:[d1,u1,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:E()}],"translate-x":[{"translate-x":E()}],"translate-y":[{"translate-y":E()}],"translate-z":[{"translate-z":E()}],"translate-none":["translate-none"],zoom:[{zoom:[L2,d1,u1]}],accent:[{accent:s1()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:s1()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",d1,u1]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":s1()}],"scrollbar-track-color":[{"scrollbar-track":s1()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mbs":[{"scroll-mbs":_()}],"scroll-mbe":[{"scroll-mbe":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pbs":[{"scroll-pbs":_()}],"scroll-pbe":[{"scroll-pbe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",d1,u1]}],fill:[{fill:["none",...s1()]}],"stroke-w":[{stroke:[Z1,Me,N3,o7]}],stroke:[{stroke:["none",...s1()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ha=Hs(Aa);function x1(...e){return ha(x0(e))}const pa=["src","alt"],ma={key:1,class:"flex h-full w-full items-center justify-center bg-muted font-medium text-muted-foreground"},ga=O1({__name:"Avatar",props:{src:{},alt:{},fallback:{default:"?"},size:{default:"md"},class:{}},setup(e){const t=e,n={sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base"},l=j(!1),o=t1(()=>!t.src||l.value);return(r,s)=>(h(),C("div",{class:c1(f(x1)("relative flex shrink-0 overflow-hidden rounded-full",n[e.size],t.class))},[o.value?(h(),C("div",ma,Q(e.fallback),1)):(h(),C("img",{key:0,src:e.src??void 0,alt:e.alt,class:"aspect-square h-full w-full object-cover",onError:s[0]||(s[0]=a=>l.value=!0)},null,40,pa))],2))}}),a7=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,i7=x0,f5=(e,t)=>n=>{var l;if((t==null?void 0:t.variants)==null)return i7(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:r}=t,s=Object.keys(o).map(c=>{const u=n==null?void 0:n[c],d=r==null?void 0:r[c];if(u===null)return null;const A=a7(u)||a7(d);return o[c][A]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,A]=u;return A===void 0||(c[d]=A),c},{}),i=t==null||(l=t.compoundVariants)===null||l===void 0?void 0:l.reduce((c,u)=>{let{class:d,className:A,...m}=u;return Object.entries(m).every(p=>{let[g,y]=p;return Array.isArray(y)?y.includes({...r,...a}[g]):{...r,...a}[g]===y})?[...c,d,A]:c},[]);return i7(e,s,i,n==null?void 0:n.class,n==null?void 0:n.className)},u2=O1({__name:"Badge",props:{variant:{default:"default"},class:{}},setup(e){const t=f5("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground shadow",outline:"text-foreground",success:"border-transparent bg-success/20 text-success",warning:"border-transparent bg-warning/20 text-warning",glow:"border-primary/30 bg-primary/10 text-primary"}},defaultVariants:{variant:"default"}}),n=e;return(l,o)=>(h(),C("div",{class:c1(f(x1)(f(t)({variant:e.variant}),n.class))},[K1(l.$slots,"default")],2))}}),k1=O1({__name:"Button",props:{variant:{default:"default"},size:{default:"default"},as:{default:"button"},class:{},disabled:{type:Boolean}},setup(e){const t=f5("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",glow:"bg-primary text-primary-foreground shadow-lg hover:bg-primary/90 glow-sm hover:glow"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-8",xl:"h-12 rounded-lg px-10 text-base",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),n=e;return(l,o)=>(h(),G(k2(e.as),{class:c1(f(x1)(f(t)({variant:e.variant,size:e.size}),n.class)),disabled:e.disabled},{default:x(()=>[K1(l.$slots,"default")]),_:3},8,["class","disabled"]))}}),j1=O1({__name:"Card",props:{class:{},hover:{type:Boolean,default:!1},glow:{type:Boolean,default:!1}},setup(e){const t=e;return(n,l)=>(h(),C("div",{class:c1(f(x1)("rounded-lg border bg-card text-card-foreground shadow-sm",e.hover&&"transition-all duration-200 hover:border-primary/50 hover:-translate-y-1",e.glow&&"glow-sm",t.class))},[K1(n.$slots,"default")],2))}}),va="modulepreload",ya=function(e){return"/"+e},c7={},Qe=function(t,n,l){let o=Promise.resolve();if(n&&n.length>0){let s=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),i=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=s(n.map(c=>{if(c=ya(c),c in c7)return;c7[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const A=document.createElement("link");if(A.rel=u?"stylesheet":va,u||(A.as="script"),A.crossOrigin="",A.href=c,i&&A.setAttribute("nonce",i),document.head.appendChild(A),u)return new Promise((m,p)=>{A.addEventListener("load",m),A.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&r(a.reason);return t().catch(r)})},u7={intent:"bg-fuchsia-600/10 text-fuchsia-600 border-fuchsia-600/20",decision:"bg-blue-600/10 text-blue-600 border-blue-600/20",constraint:"bg-amber-600/10 text-amber-600 border-amber-600/20",workaround:"bg-red-600/10 text-red-600 border-red-600/20",convention:"bg-violet-600/10 text-violet-600 border-violet-600/20",pattern:"bg-emerald-600/10 text-emerald-600 border-emerald-600/20",discussion:"bg-cyan-600/10 text-cyan-600 border-cyan-600/20",review:"bg-pink-600/10 text-pink-600 border-pink-600/20",plan:"bg-lime-600/10 text-lime-600 border-lime-600/20"},ba={intent:"bg-fuchsia-600",decision:"bg-blue-600",constraint:"bg-amber-600",workaround:"bg-red-600",convention:"bg-violet-600",pattern:"bg-emerald-600",discussion:"bg-cyan-600",review:"bg-pink-600",plan:"bg-lime-600"},N5={system:"#7c3aed",part:"#d97706",contract:"#0891b2",intent:"#c026d3",decision:"#2563eb",constraint:"#d97706",workaround:"#dc2626",convention:"#7c3aed",pattern:"#059669",discussion:"#0891b2",review:"#db2777",plan:"#65a30d"},ka=["Intent","Decision","Constraint","Workaround","Convention","Pattern","Discussion","Review","Plan"],Ca={Intent:"What this exists to do, who for, and what it deliberately is not",Decision:"A deliberate choice made about architecture, tooling, or approach",Constraint:"A hard limitation imposed by external factors or requirements",Workaround:"A temporary fix for a known issue or limitation",Convention:"An established principle or standard the team follows",Pattern:"An observed model, recurring choice, or emergent practice",Discussion:"Key points from a team discussion or debate",Review:"Insights surfaced during code review",Plan:"A future intention or roadmap item"};function O0(){const e="bg-muted text-muted-foreground border-border";function t(r){return u7[(r??"").toLowerCase()]??e}function n(r){return ba[(r??"").toLowerCase()]??"bg-muted-foreground"}function l(r){return N5[(r??"").toLowerCase()]??"#a1a1aa"}const o=Object.keys(N5).map(r=>({kind:r,label:r.charAt(0).toUpperCase()+r.slice(1),color:N5[r]}));return{tone:t,fill:n,ink:l,legend:o,kinds:Object.keys(u7),kindOptions:ka,kindDescriptions:Ca}}const M4="#6b7280",wa=O1({__name:"CodeGraph",props:{height:{default:"460px"},repo:{default:""},mode:{default:"2d"},data:{default:null},hidden:{default:()=>[]}},emits:["select"],setup(e,{expose:t,emit:n}){const l=n,o=e,r=R=>[typeof R.source=="object"?R.source:null,typeof R.target=="object"?R.target:null],s=R=>{const[S,q]=r(R);return S&&q&&S.community===q.community&&S.community!==null?S:null},a=j(null);let i=null,c=null,u=null;const d=new Map,{ink:A}=O0(),m=["#4E79A7","#F28E2B","#E15759","#76B7B2","#59A14F","#EDC948","#B07AA1","#FF9DA7","#9C755F","#BAB0AC"];function p(R){if(typeof R.community=="number")return m[R.community%m.length];const S=(R.kind||"").toLowerCase();return S==="code"?"#E20C18":S==="file"||["class","function","method","module","route","variable","symbol"].includes(S)?M4:A(S)}function g(R){return R&&R.length>28?`${R.slice(0,27)}…`:R}const y=t1(()=>!!o.data&&o.data.nodes.length>0);t({hasGraph:y});const F=t1(()=>new Set(o.hidden));function I(){const R=o.data??{nodes:[],links:[]},S=R.nodes.filter(l1=>typeof l1.community!="number"||!F.value.has(l1.community)),q=new Set(S.map(l1=>l1.id)),V=Math.max(1,...S.map(l1=>l1.degree??0)),m1=S.map(l1=>{const o1=d.get(l1.id);return{...l1,...o1??{},color:p(l1),radius:Math.min(3+2.4*Math.sqrt(l1.degree??0),11),named:(l1.degree??0)>=Math.max(4,V*.5)}}),b1=R.links.filter(l1=>q.has(String(l1.source))&&q.has(String(l1.target))).map(l1=>({...l1}));return{nodes:m1,links:b1}}function D(R){return Math.max(.06,Math.min(.5,Math.sqrt(400/Math.max(1,R))))}function w(R,S){const q=parseInt(R.slice(1),16),V=Math.max(0,Math.min(1,S)).toFixed(3);return`rgba(${q>>16&255}, ${q>>8&255}, ${q&255}, ${V})`}const B=R=>R==="tree"?"td":R==="radial"?"radialout":R==="layered"?"zout":null;function W(){if(i)for(const R of i.graphData().nodes)Number.isFinite(R.x)&&d.set(R.id,{x:R.x,y:R.y,z:R.z??0})}function Z(){var R;W(),i&&((R=i._destructor)==null||R.call(i),i=null),a.value&&(a.value.innerHTML="")}async function _(R){var b1,l1;if(!a.value)return;const S=R==="2d"?"2d":"3d";if(i&&c===S){S==="3d"&&i.dagMode(B(R)),W(),i.graphData(I());return}if(Z(),c=S,S==="2d"){const o1=(await Qe(async()=>{const{default:a1}=await import("./force-graph-HZtkkbK0.js");return{default:a1}},__vite__mapDeps([0,1,2]))).default,{forceCollide:y1,forceManyBody:w1,forceX:C1,forceY:s1}=await Qe(async()=>{const{forceCollide:a1,forceManyBody:p1,forceX:$,forceY:z}=await import("./index-DHVCIEzJ.js");return{forceCollide:a1,forceManyBody:p1,forceX:$,forceY:z}},__vite__mapDeps([3,1])),$1=I(),S1=D($1.links.length);let Y1=null;i=new o1(a.value),i.backgroundColor("rgba(0,0,0,0)").graphData($1).nodeRelSize(4).nodeColor(a1=>a1.color).nodeLabel(a1=>a1.path?`${a1.name} — ${a1.path}`:a1.name).nodeCanvasObject((a1,p1,$)=>{const z=!Y1||Y1===a1.id;if(p1.globalAlpha=z?1:.25,p1.beginPath(),p1.arc(a1.x,a1.y,a1.radius,0,2*Math.PI),p1.fillStyle=a1.color,p1.fill(),!a1.named&&Y1!==a1.id){p1.globalAlpha=1;return}const N=Math.max(11/$,1.5);p1.font=`${N}px ui-sans-serif, system-ui, sans-serif`,p1.fillStyle=a1.color,p1.textAlign="left",p1.textBaseline="middle",p1.fillText(g(a1.name),a1.x+a1.radius+2/$,a1.y),p1.globalAlpha=1}).nodePointerAreaPaint((a1,p1,$)=>{$.fillStyle=p1,$.beginPath(),$.arc(a1.x,a1.y,a1.radius+2,0,2*Math.PI),$.fill()}).linkColor(a1=>{const p1=s(a1);return w(p1?p1.color:M4,S1*(p1?1.6:1))}).linkWidth(.6).linkDirectionalArrowLength(2.5).linkDirectionalArrowRelPos(1).linkLabel(a1=>a1.type??"").onNodeHover(a1=>{var p1;Y1=a1?a1.id:null,a.value&&(a.value.style.cursor=a1?"pointer":""),(p1=i==null?void 0:i.refresh)==null||p1.call(i)}).width(a.value.clientWidth).height(a.value.clientHeight).onNodeClick(a1=>l("select",String(a1.id))),i.d3AlphaDecay(.02).d3VelocityDecay(.35).cooldownTicks(220),i.d3Force("charge",w1().strength(-140).distanceMax(420)),i.d3Force("center",null),i.d3Force("x",C1(0).strength(.03)),i.d3Force("y",s1(0).strength(.03)),i.d3Force("collide",y1(a1=>a1.radius+2).iterations(2)),(b1=i.d3Force("link"))==null||b1.distance(a1=>s(a1)?26:70).strength(a1=>s(a1)?.7:.08);let e2=!1;i.onEngineTick(()=>{!e2&&i.d3Force("link")&&(e2=!0,setTimeout(()=>i==null?void 0:i.zoomToFit(600,60),700))}),i.onEngineStop(()=>{W(),i==null||i.zoomToFit(600,60)});return}const q=(await Qe(async()=>{const{default:o1}=await import("./3d-force-graph-B8lgMx4q.js");return{default:o1}},__vite__mapDeps([4,5,2,1]))).default,V=await Qe(()=>import("./three.module-D-PgY1-x.js").then(o1=>o1.df),[]),m1=I();i=new q(a.value),i.backgroundColor("rgba(0,0,0,0)").showNavInfo(!1).onDagError(()=>{}).dagLevelDistance(46).dagMode(B(R)).graphData(m1).nodeLabel(o1=>o1.path?`${o1.name} — ${o1.path}`:o1.name).nodeThreeObject(o1=>{const y1=new V.SphereGeometry(o1.radius,12,10),w1=new V.MeshLambertMaterial({color:o1.color,transparent:!0,opacity:.92});return new V.Mesh(y1,w1)}).linkColor(()=>M4).linkOpacity(D(m1.links.length)).linkWidth(.5).linkDirectionalArrowLength(2).linkDirectionalArrowRelPos(1).linkLabel(o1=>o1.type??"").width(a.value.clientWidth).height(a.value.clientHeight).onNodeClick(o1=>l("select",String(o1.id))),(l1=i.d3Force("charge"))==null||l1.strength(-140).distanceMax(420),i.onEngineStop(()=>{W(),i==null||i.zoomToFit(600,60)})}return f2(async()=>{await _(o.mode),u=new ResizeObserver(()=>{i&&a.value&&i.width(a.value.clientWidth).height(a.value.clientHeight)}),a.value&&u.observe(a.value)}),q1(()=>o.mode,R=>_(R)),q1(()=>o.repo,()=>{d.clear(),_(o.mode)}),q1(()=>o.data,()=>_(o.mode)),q1(()=>o.hidden,()=>_(o.mode),{deep:!0}),St(()=>{u&&(u.disconnect(),u=null),Z()}),(R,S)=>(h(),C("div",{ref_key:"el",ref:a,style:M2({height:o.height}),class:"w-full"},null,4))}}),xa=["for"],_a={key:1,class:"mt-1 text-xs text-destructive"},Ia={key:2,class:"mt-1 text-xs text-muted-foreground"},R2=O1({__name:"Field",props:{label:{},hint:{},error:{},for:{},class:{}},setup(e){const t=e;return(n,l)=>(h(),C("div",{class:c1(f(x1)("w-full",t.class))},[e.label?(h(),C("label",{key:0,for:t.for,class:"mb-1.5 flex items-center gap-2 text-xs font-medium uppercase tracking-wider text-muted-foreground"},[J(Q(e.label)+" ",1),K1(n.$slots,"label")],8,xa)):L("",!0),K1(n.$slots,"default"),e.error?(h(),C("p",_a,Q(e.error),1)):e.hint?(h(),C("p",Ia,Q(e.hint),1)):L("",!0)],2))}}),$0=f5(["w-full rounded-md border bg-muted/50 text-foreground outline-none transition-colors","placeholder:text-muted-foreground focus:border-primary/50","disabled:cursor-not-allowed disabled:opacity-50"].join(" "),{variants:{size:{sm:"h-8 px-3 text-xs",default:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},invalid:{true:"border-destructive/60 focus:border-destructive",false:""}},defaultVariants:{size:"default",invalid:!1}}),Ma=f5(["w-full resize-y rounded-md border bg-muted/50 text-foreground outline-none transition-colors","placeholder:text-muted-foreground focus:border-primary/50","disabled:cursor-not-allowed disabled:opacity-50"].join(" "),{variants:{size:{sm:"px-3 py-1.5 text-xs",default:"px-3 py-2 text-sm",lg:"px-4 py-2.5 text-base"},invalid:{true:"border-destructive/60 focus:border-destructive",false:""}},defaultVariants:{size:"default",invalid:!1}}),Ea=["value"],U3=O1({__name:"Input",props:{modelValue:{},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),C("input",{value:e.modelValue,class:c1(f(x1)(f($0)({size:e.size,invalid:e.invalid}),t.class)),onInput:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},null,42,Ea))}}),Da={class:"flex items-start gap-4"},Za={class:"min-w-0 flex-1"},Fa={class:"mb-1 flex flex-wrap items-center gap-2"},Ba={class:"break-all font-semibold"},Sa={key:0,class:"break-all font-mono text-sm text-muted-foreground"},Ra={key:1,class:"mt-2 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-muted-foreground"},Qa={key:1,class:"flex shrink-0 items-center gap-1"},J3=O1({__name:"ItemCard",props:{title:{},subtitle:{},pillar:{default:"graph"},hover:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={memory:"bg-pillar-memory/15 text-pillar-memory",graph:"bg-pillar-graph/15 text-pillar-graph",review:"bg-pillar-review/15 text-pillar-review",tokens:"bg-pillar-tokens/15 text-pillar-tokens",brand:"bg-primary/15 text-primary"};return(l,o)=>(h(),G(j1,{hover:e.hover,class:c1(f(x1)("p-5",t.class))},{default:x(()=>[k("div",Da,[l.$slots.icon?(h(),C("div",{key:0,class:c1(f(x1)("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",n[e.pillar]))},[K1(l.$slots,"icon")],2)):L("",!0),k("div",Za,[k("div",Fa,[k("h3",Ba,Q(e.title),1),K1(l.$slots,"badges")]),e.subtitle?(h(),C("p",Sa,Q(e.subtitle),1)):L("",!0),K1(l.$slots,"default"),l.$slots.meta?(h(),C("div",Ra,[K1(l.$slots,"meta")])):L("",!0)]),l.$slots.actions?(h(),C("div",Qa,[K1(l.$slots,"actions")])):L("",!0)])]),_:3},8,["hover","class"]))}}),Na={class:"flex min-w-0 items-center gap-3"},Ka={class:"min-w-0"},Ga={class:"flex flex-wrap items-center gap-2"},Oa={class:"text-xl font-semibold"},$a={key:1,class:"mt-1.5 flex flex-wrap items-center gap-x-3 gap-y-1.5 text-sm text-muted-foreground"},Wa={key:0,class:"flex flex-wrap items-center gap-2"},m3=O1({__name:"PageHead",props:{title:{},sub:{},pillar:{default:"graph"},tone:{},mono:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={memory:"bg-pillar-memory/15 text-pillar-memory",graph:"bg-pillar-graph/15 text-pillar-graph",review:"bg-pillar-review/15 text-pillar-review",tokens:"bg-pillar-tokens/15 text-pillar-tokens",brand:"bg-primary/15 text-primary"},l={neutral:"bg-muted text-muted-foreground",info:"bg-primary/15 text-primary",success:"bg-success/15 text-success",warning:"bg-warning/15 text-warning",danger:"bg-destructive/15 text-destructive"},o=t1(()=>t.tone?l[t.tone]:n[t.pillar]);return(r,s)=>(h(),C("div",{class:c1(f(x1)("mb-6 flex flex-wrap items-start justify-between gap-4",t.class))},[k("div",Na,[K1(r.$slots,"back"),r.$slots.icon?(h(),C("div",{key:0,class:c1(f(x1)("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",o.value))},[K1(r.$slots,"icon")],2)):L("",!0),k("div",Ka,[k("div",Ga,[k("h1",Oa,Q(e.title),1),K1(r.$slots,"badges")]),e.sub?(h(),C("p",{key:0,class:c1(f(x1)("text-sm text-muted-foreground",e.mono&&"break-all font-mono"))},Q(e.sub),3)):L("",!0),r.$slots.meta?(h(),C("div",$a,[K1(r.$slots,"meta")])):L("",!0)])]),r.$slots.actions?(h(),C("div",Wa,[K1(r.$slots,"actions")])):L("",!0)],2))}}),La=["value"],j2=O1({__name:"Select",props:{modelValue:{},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),C("select",{value:e.modelValue,class:c1(f(x1)(f($0)({size:e.size,invalid:e.invalid}),"w-auto",t.class)),onChange:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},[K1(n.$slots,"default")],42,La))}});/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Oa=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** + */const Pa=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const i7=e=>e==="";/** + */const d7=e=>e==="";/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const $a=(...e)=>e.filter((t,n,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===n).join(" ").trim();/** + */const Ta=(...e)=>e.filter((t,n,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===n).join(" ").trim();/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const c7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** + */const f7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Wa=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,l)=>l?l.toUpperCase():n.toLowerCase());/** + */const Ha=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,l)=>l?l.toUpperCase():n.toLowerCase());/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const La=e=>{const t=Wa(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** + */const Ya=e=>{const t=Ha(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var Ie={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** + */var Ee={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Pa=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":l,strokeWidth:o,"stroke-width":r,size:s=Ie.width,color:a=Ie.stroke,...i},{slots:c})=>A3("svg",{...Ie,...i,width:s,height:s,stroke:a,"stroke-width":i7(n)||i7(l)||n===!0||l===!0?Number(o||r||Ie["stroke-width"])*24/Number(s):o||r||Ie["stroke-width"],class:$a("lucide",i.class,...e?[`lucide-${c7(La(e))}-icon`,`lucide-${c7(e)}`]:["lucide-icon"]),...!c.default&&!Oa(i)&&{"aria-hidden":"true"}},[...t.map(d=>A3(...d)),...c.default?[c.default()]:[]]);/** + */const Va=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":l,strokeWidth:o,"stroke-width":r,size:s=Ee.width,color:a=Ee.stroke,...i},{slots:c})=>A3("svg",{...Ee,...i,width:s,height:s,stroke:a,"stroke-width":d7(n)||d7(l)||n===!0||l===!0?Number(o||r||Ee["stroke-width"])*24/Number(s):o||r||Ee["stroke-width"],class:Ta("lucide",i.class,...e?[`lucide-${f7(Ya(e))}-icon`,`lucide-${f7(e)}`]:["lucide-icon"]),...!c.default&&!Pa(i)&&{"aria-hidden":"true"}},[...t.map(u=>A3(...u)),...c.default?[c.default()]:[]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const B3=(e,t)=>(n,{slots:l,attrs:o})=>A3(Pa,{...o,...n,iconNode:t,name:e},l);/** + */const j3=(e,t)=>(n,{slots:l,attrs:o})=>A3(Va,{...o,...n,iconNode:t,name:e},l);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ha=B3("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + */const Ua=j3("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ta=B3("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** + */const Ja=j3("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ya=B3("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** + */const za=j3("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Va=B3("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** + */const ja=j3("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ua=B3("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** + */const Xa=j3("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ja=B3("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** + */const qa=j3("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const za=B3("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** - * @license lucide-vue-next v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const $t=B3("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ja={key:0,class:"space-y-1.5"},Xa={class:"flex gap-2"},O0=$1({__name:"ListInput",props:{modelValue:{default:()=>[]},placeholder:{},noun:{default:"entry"},mono:{type:Boolean,default:!1},size:{default:"default"},class:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,l=t,o=z("");function r(){const a=o.value.trim();if(!a||n.modelValue.includes(a)){o.value="";return}l("update:modelValue",[...n.modelValue,a]),o.value=""}function s(a){l("update:modelValue",n.modelValue.filter(i=>i!==a))}return(a,i)=>(h(),C("div",{class:f1(f(E1)("space-y-2",n.class))},[e.modelValue.length?(h(),C("ul",ja,[(h(!0),C(n1,null,_1(e.modelValue,c=>(h(),C("li",{key:c,class:"flex items-center gap-2 rounded-md border bg-muted/40 py-1 pl-3 pr-1 text-sm"},[b("span",{class:f1(f(E1)("min-w-0 flex-1 break-all",e.mono&&"font-mono text-xs"))},N(c),3),I(C1,{variant:"ghost",size:"icon",class:"h-6 w-6 shrink-0","aria-label":`Remove ${c}`,onClick:d=>s(c)},{default:w(()=>[I(f($t),{class:"h-3.5 w-3.5"})]),_:1},8,["aria-label","onClick"])]))),128))])):P("",!0),b("div",Xa,[I(J3,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=c=>o.value=c),size:e.size,placeholder:e.placeholder,class:f1(e.mono?"font-mono":void 0),"aria-label":`Add ${e.noun}`,onKeydown:ar(qe(r,["prevent"]),["enter"])},null,8,["modelValue","size","placeholder","class","aria-label","onKeydown"]),I(C1,{size:e.size,variant:"outline",class:"shrink-0",disabled:!o.value.trim(),onClick:r},{default:w(()=>[I(f(Ja),{class:"mr-1.5 h-3.5 w-3.5"}),i[1]||(i[1]=U(" Add ",-1))]),_:1},8,["size","disabled"])])],2))}}),qa={class:"min-w-0 truncate"},ei=["aria-label"],u7=$1({__name:"Chip",props:{tone:{default:"default"},removable:{type:Boolean,default:!1},label:{},class:{}},emits:["remove"],setup(e){const t=e,n={default:"border-primary/30 bg-primary/10 text-foreground",success:"border-success/40 bg-success/10 text-foreground",warning:"border-warning/40 bg-warning/10 text-foreground",danger:"border-destructive/40 bg-destructive/10 text-foreground",muted:"border-border bg-muted/60 text-muted-foreground"};return(l,o)=>(h(),C("span",{class:f1(f(E1)("inline-flex max-w-full items-center gap-1 rounded-full border py-0.5 pl-2.5 text-xs",e.removable?"pr-1":"pr-2.5",n[e.tone],t.class))},[K1(l.$slots,"mark"),b("span",qa,[K1(l.$slots,"default")]),e.removable?(h(),C("button",{key:0,type:"button",class:"shrink-0 rounded-full p-0.5 text-muted-foreground transition-colors hover:bg-background/60 hover:text-foreground","aria-label":e.label?`Remove ${e.label}`:"Remove",onClick:o[0]||(o[0]=r=>l.$emit("remove"))},[I(f($t),{class:"h-3 w-3"})],8,ei)):P("",!0)],2))}}),ti=["title"],ni={class:"relative flex h-2 w-2 shrink-0"},li={key:1,class:"sr-only"},$e=$1({__name:"DotIndicator",props:{tone:{default:"neutral"},title:{},label:{},pulse:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={neutral:"bg-muted-foreground",info:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-destructive"},l={neutral:"text-muted-foreground",info:"text-primary",success:"text-success",warning:"text-warning",danger:"text-destructive"};return(o,r)=>(h(),C("span",{class:f1(f(E1)("inline-flex items-center gap-1.5 align-middle",t.class)),title:e.title},[b("span",ni,[e.pulse?(h(),C("span",{key:0,class:f1(f(E1)("absolute inline-flex h-full w-full animate-ping rounded-full opacity-60",n[e.tone]))},null,2)):P("",!0),b("span",{class:f1(f(E1)("relative inline-flex h-2 w-2 rounded-full",n[e.tone]))},null,2)]),e.label?(h(),C("span",{key:0,class:f1(f(E1)("text-xs font-medium",l[e.tone]))},N(e.label),3)):(h(),C("span",li,N(e.title),1))],10,ti))}}),d7={};function oi(e){let t=d7[e];if(t)return t;t=d7[e]=[];for(let n=0;n<128;n++){const l=String.fromCharCode(n);t.push(l)}for(let n=0;n=55296&&d<=57343?o+="���":o+=String.fromCharCode(d),r+=6;continue}}if((a&248)===240&&r+91114111?o+="����":(u-=65536,o+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),r+=9;continue}}o+="�"}return o})}fe.defaultChars=";/?:@&=+$,#";fe.componentChars="";const f7={};function ri(e){let t=f7[e];if(t)return t;t=f7[e]=[];for(let n=0;n<128;n++){const l=String.fromCharCode(n);/^[0-9a-z]$/i.test(l)?t.push(l):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n"u"&&(n=!0);const l=ri(t);let o="";for(let r=0,s=e.length;r=55296&&a<=57343){if(a>=55296&&a<=56319&&r+1=56320&&i<=57343){o+=encodeURIComponent(e[r]+e[r+1]),r++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[r])}return o}i3.defaultChars=";/?:@&=+$,-_.!~*'()#";i3.componentChars="-_.!~*'()";function ft(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Y4(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const si=/^([a-z0-9.+-]+:)/i,ai=/:[0-9]*$/,ii=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ci=["<",">",'"',"`"," ","\r",` -`," "],ui=["{","}","|","\\","^","`"].concat(ci),di=["'"].concat(ui),A7=["%","/","?",";","#"].concat(di),h7=["/","?","#"],fi=255,p7=/^[+a-z0-9A-Z_-]{0,63}$/,Ai=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m7={javascript:!0,"javascript:":!0},g7={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function At(e,t){if(e&&e instanceof Y4)return e;const n=new Y4;return n.parse(e,t),n}Y4.prototype.parse=function(e,t){let n,l,o,r=e;if(r=r.trim(),!t&&e.split("#").length===1){const c=ii.exec(r);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let s=si.exec(r);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,r=r.substr(s.length)),(t||s||r.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=r.substr(0,2)==="//",o&&!(s&&m7[s])&&(r=r.substr(2),this.slashes=!0)),!m7[s]&&(o||s&&!g7[s])){let c=-1;for(let p=0;p127?M+="x":M+=F[E];if(!M.match(p7)){const E=p.slice(0,y),_=p.slice(y+1),R=F.match(Ai);R&&(E.push(R[1]),_.unshift(R[2])),_.length&&(r=_.join(".")+r),this.hostname=E.join(".");break}}}}this.hostname.length>fi&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=r.indexOf("#");a!==-1&&(this.hash=r.substr(a),r=r.slice(0,a));const i=r.indexOf("?");return i!==-1&&(this.search=r.substr(i),r=r.slice(0,i)),r&&(this.pathname=r),g7[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Y4.prototype.parseHost=function(e){let t=ai.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const hi=Object.freeze(Object.defineProperty({__proto__:null,decode:fe,encode:i3,format:ft,parse:At},Symbol.toStringTag,{value:"Module"})),$0=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,W0=/[\0-\x1F\x7F-\x9F]/,pi=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Wt=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,L0=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA]/,P0=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,mi=Object.freeze(Object.defineProperty({__proto__:null,Any:$0,Cc:W0,Cf:pi,P:Wt,S:L0,Z:P0},Symbol.toStringTag,{value:"Module"})),gi=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function vi(e){return e>=55296&&e<=57343||e>1114111?65533:gi.get(e)??e}function yi(e){const t=atob(e),n=t.length&-2,l=new Uint16Array(n/2);for(let o=0,r=0;o=J1.ZERO&&e<=J1.NINE}function ki(e){return e>=J1.UPPER_A&&e<=J1.UPPER_F||e>=J1.LOWER_A&&e<=J1.LOWER_F}function Ci(e){return e>=J1.UPPER_A&&e<=J1.UPPER_Z||e>=J1.LOWER_A&&e<=J1.LOWER_Z||ht(e)}function wi(e){return e===J1.EQUALS||Ci(e)}var s2;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(s2||(s2={}));var I3;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(I3||(I3={}));class xi{constructor(t,n,l){O1(this,"decodeTree");O1(this,"emitCodePoint");O1(this,"errors");O1(this,"state",s2.EntityStart);O1(this,"consumed",1);O1(this,"result",0);O1(this,"treeIndex",0);O1(this,"excess",1);O1(this,"decodeMode",I3.Strict);O1(this,"runConsumed",0);this.decodeTree=t,this.emitCodePoint=n,this.errors=l}startEntity(t){this.decodeMode=t,this.state=s2.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(t,n){switch(this.state){case s2.EntityStart:return t.charCodeAt(n)===J1.NUM?(this.state=s2.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=s2.NamedEntity,this.stateNamedEntity(t,n));case s2.NumericStart:return this.stateNumericStart(t,n);case s2.NumericDecimal:return this.stateNumericDecimal(t,n);case s2.NumericHex:return this.stateNumericHex(t,n);case s2.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|v7)===J1.LOWER_X?(this.state=s2.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=s2.NumericDecimal,this.stateNumericDecimal(t,n))}stateNumericHex(t,n){for(;n>14;for(;n>7;if(this.runConsumed===0){const i=o&g2.JUMP_TABLE;if(t.charCodeAt(n)!==i)return this.result===0?0:this.emitNotTerminatedNamedEntity();n++,this.excess++,this.runConsumed++}for(;this.runConsumed=t.length)return-1;const i=this.runConsumed-1,c=l[this.treeIndex+1+(i>>1)],d=i%2===0?c&255:c>>8&255;if(t.charCodeAt(n)!==d)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();n++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),o=l[this.treeIndex],r=(o&g2.VALUE_LENGTH)>>14}if(n>=t.length)break;const s=t.charCodeAt(n);if(s===J1.SEMI&&r!==0&&(o&g2.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);if(this.treeIndex=Ii(l,o,this.treeIndex+Math.max(1,r),s),this.treeIndex<0)return this.result===0||this.decodeMode===I3.Attribute&&(r===0||wi(s))?0:this.emitNotTerminatedNamedEntity();if(o=l[this.treeIndex],r=(o&g2.VALUE_LENGTH)>>14,r!==0){if(s===J1.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==I3.Strict&&(o&g2.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}n++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var o;const{result:t,decodeTree:n}=this,l=(n[t]&g2.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,l,this.consumed),(o=this.errors)==null||o.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,l){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~(g2.VALUE_LENGTH|g2.FLAG13):o[t+1],l),n===3&&this.emitCodePoint(o[t+2],l),l}end(){var t;switch(this.state){case s2.NamedEntity:return this.result!==0&&(this.decodeMode!==I3.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case s2.NumericDecimal:return this.emitNumericEntity(0,2);case s2.NumericHex:return this.emitNumericEntity(0,3);case s2.NumericStart:return(t=this.errors)==null||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case s2.EntityStart:return 0}}}function _i(e){let t="";const n=new xi(e,l=>t+=String.fromCodePoint(l));return function(o,r){let s=0,a=0;for(;(a=o.indexOf("&",a))>=0;){t+=o.slice(s,a),n.startEntity(r);const c=n.write(o,a+1);if(c<0){s=a+n.end();break}s=a+c,a=c===0?s+1:s}const i=t+o.slice(s);return t="",i}}function Ii(e,t,n,l){const o=(t&g2.BRANCH_LENGTH)>>7,r=t&g2.JUMP_TABLE;if(o===0)return r!==0&&l===r?n:-1;if(r){const c=l-r;return c<0||c>=o?-1:e[n+c]-1}const s=o+1>>1;let a=0,i=o-1;for(;a<=i;){const c=a+i>>>1,d=c>>1,A=e[n+d]>>(c&1)*8&255;if(Al)i=c-1;else return e[n+s+c]}return-1}const Mi=_i(bi);function H0(e){return Mi(e,I3.Strict)}var Ei=class{constructor(e={}){O1(this,"src_Any",$0.source);O1(this,"src_Cc",W0.source);O1(this,"src_Z",P0.source);O1(this,"src_P",Wt.source);O1(this,"src_ZPCc",[this.src_Z,this.src_P,this.src_Cc].join("|"));O1(this,"src_ZCc",[this.src_Z,this.src_Cc].join("|"));O1(this,"cache",{});O1(this,"opts",{maxLength:1e4,urlAuth:!1,schema_names:[]});this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(e,t,n=4){const l=this.escapeRE(e),o=this.escapeRE(t),r=`(?:(?!${this.src_ZCc}|${l}|${o}).)`;let s=`${l}${r}{0,1000}${o}`;for(let a=2;a<=n;a++)s=`${l}(?:${r}|${s}){0,1000}${o}`;return s}get_text_separators(){var e;return(e=this.cache).text_separators??(e.text_separators=/[><\uff5c]/)}get_pseudo_letter(){var e;return(e=this.cache).src_pseudo_letter??(e.src_pseudo_letter=new RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`))}get_ipv4_addr(){var e;return(e=this.cache).src_ip4??(e.src_ip4=new RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])"))}get_ipv6_addr(){var n;const e="[0-9A-Fa-f]{1,4}",t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return(n=this.cache).src_ip6_addr??(n.src_ip6_addr=new RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`))}get_ipv6_url_host(){var e;return(e=this.cache).src_ip6_host??(e.src_ip6_host=new RegExp(`\\[${this.get_ipv6_addr().source}\\]`))}get_ipv6_mail_host(){var e;return(e=this.cache).src_ipv6_mail_host??(e.src_ipv6_mail_host=new RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`))}get_auth(){var e;return(e=this.cache).src_auth??(e.src_auth=new RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`))}get_port(){var e;return(e=this.cache).src_port??(e.src_port=new RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?"))}get_host_terminator(){var e;return(e=this.cache).src_host_terminator??(e.src_host_terminator=new RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`))}get_path_terminator(){var e;return(e=this.cache).src_path_terminator??(e.src_path_terminator=new RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`))}get_path(){var e;return(e=this.cache).src_path??(e.src_path=new RegExp(`(?:[/?#](?:${this.nestedPairRE("[","]")}|${this.nestedPairRE("(",")")}|${this.nestedPairRE("{","}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts["---"]?"\\-(?!--(?:[^-]|$))(?:-{0,19})|":"\\-{1,20}|")+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`))}get_mail_name(){var e;return(e=this.cache).src_mail_name??(e.src_mail_name=new RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}"))}get_xn(){var e;return(e=this.cache).src_xn??(e.src_xn=new RegExp("xn--[a-z0-9\\-]{1,59}"))}get_tld(){if(this.cache.tld)return this.cache.tld;const e=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=new RegExp(`${e||"$#none#$"}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){var e;return(e=this.cache).src_domain_root??(e.src_domain_root=new RegExp("(?:"+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`))}get_domain(){var e;return(e=this.cache).src_domain??(e.src_domain=new RegExp("(?:"+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`))}get_url_host_port(){var e;return(e=this.cache).url_host_port??(e.url_host_port=new RegExp("(?:"+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source))}get_fuzzy_url_host_port(){var e;return(e=this.cache).fuzzy_url_host_port??(e.fuzzy_url_host_port=new RegExp("(?:"+(this.opts.fuzzyIP?this.get_ipv4_addr().source+"|":"")+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source))}get_mail_host(){var e;return(e=this.cache).src_mail_host??(e.src_mail_host=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source))}get_fuzzy_mail_host(){var e;return(e=this.cache).src_fuzzy_mail_host??(e.src_fuzzy_mail_host=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source))}get_path_extra(){var e;return(e=this.cache).src_path_extra??(e.src_path_extra=new RegExp(""))}get_fuzzy_mail_host_search(){var e;return(e=this.cache).mail_fuzzy_host_search??(e.mail_fuzzy_host_search=new RegExp(`@${this.get_fuzzy_mail_host().source}`,"ig"))}get_fuzzy_link_search(){var e;return(e=this.cache).link_fuzzy_search??(e.link_fuzzy_search=new RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${this.src_ZPCc}))(?:(?![$+<=>^\`||])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,"ig"))}get_http_validator(){var e;return(e=this.cache).http_validator??(e.http_validator=new RegExp("\\/\\/"+(this.opts.urlAuth?this.get_auth().source:"")+this.get_url_host_port().source+this.get_path().source,"iy"))}get_relative_proto_validator(){var e;return(e=this.cache).relative_proto_validator??(e.relative_proto_validator=new RegExp((this.opts.urlAuth?this.get_auth().source:"")+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,"iy"))}get_mail_name_validator(){var e;return(e=this.cache).mail_name_validator??(e.mail_name_validator=new RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`))}get_mailto_validator(){var e;return(e=this.cache).mailto_validator??(e.mailto_validator=new RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,"iy"))}get_schema_names(){var e;return(e=this.cache).schema_names??(e.schema_names=new RegExp((this.opts.schema_names||[]).map(t=>this.escapeRE(t)).join("|")))}get_schema_search(){var e;return(e=this.cache).schema_search??(e.schema_search=new RegExp(`(^|(?!_)(?:[><|]|${this.src_ZPCc}))(${this.get_schema_names().source})`,"ig"))}get_schema_at_start(){var e;return(e=this.cache).schema_at_start??(e.schema_at_start=new RegExp(`^${this.get_schema_search().source}`,"i"))}},K5={validate:(e,t,n)=>{const l=n.re.get_http_validator();l.lastIndex=t;const o=l.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)},Di={"http:":K5,"https:":K5,"ftp:":K5,"//":{validate:function(e,t,n){const l=n.re.get_relative_proto_validator();l.lastIndex=t;const o=l.exec(e);return o?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,n){const l=n.re.get_mailto_validator();l.lastIndex=t;const o=l.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)}},Zi="a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw",Fi="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф";function Bi(){const e=Fi.split("|");return Zi.split("|").forEach(t=>{const n=t.indexOf(":"),l=t.slice(0,n);for(const o of t.slice(n+1))e.push(l+o)}),e}var Si={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:Bi(),urlAuth:!1,maxLength:1e4},y7=class{constructor(e,t,n,l){O1(this,"schema");O1(this,"index");O1(this,"lastIndex");O1(this,"raw");O1(this,"text");O1(this,"url");const o=e.slice(n,l);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=l,this.raw=o,this.text=o,this.url=o}},Ri=class{constructor(e={}){O1(this,"__opts__");O1(this,"__schemas__");O1(this,"re");const{rebuilder:t,...n}=e;this.__opts__={...Si,...n},this.__schemas__={...Di},this.re=t||new Ei,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(!t)delete this.__schemas__[e];else{const n={normalize:(l,o)=>o.normalize(l),...t};this.__schemas__[e]=n}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let t,n;for(n=this.re.get_schema_search(),n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0,n.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&e.indexOf("@")>=0){const l=this.re.get_fuzzy_mail_host_search(),o=this.re.get_mail_name_validator();for(l.lastIndex=0;(t=l.exec(e))!==null;){const r=e.slice(Math.max(0,t.index-65),t.index);if(o.test(r))return!0}}return!1}testSchemaAt(e,t,n){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,n+this.__opts__.maxLength),n,this):0}match(e){const t=[],n=this.re.get_schema_search();let l,o,r,s,a,i,c=!1,d=!1,u=!1,A=0;if(!e.length)return null;for(n.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(l=this.re.get_fuzzy_link_search(),l.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&(o=this.re.get_fuzzy_mail_host_search(),o.lastIndex=0,r=this.re.get_mail_name_validator());;){const m=Math.max(A-1,0);if(o&&r&&!u&&(!a||a.index=A)break;o.lastIndex=A)break;l.lastIndexp.lastIndex))&&(p=s);let y;if(!c)for(;;){if(!i){n.lastIndexp.index)break;const M=i;i=void 0;const E=this.testSchemaAt(e,M.schema,M.lastIndex);if(E){y={schema:M.schema,index:M.index,lastIndex:M.lastIndex+E};break}}let k=y;if((!k||a&&(a.indexk.lastIndex))&&(k=a),(!k||s&&(s.indexk.lastIndex))&&(k=s),!k)break;k===a?a=void 0:k===s&&(s=void 0);const F=new y7(e,k.schema,k.index,k.lastIndex);F.schema?this.__schemas__[F.schema].normalize(F,this):this.normalize(F),t.push(F),A=k.lastIndex}return t.length?t:null}matchAtStart(e){if(!e.length)return null;const t=this.re.get_schema_at_start().exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;const l=new y7(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__schemas__[l.schema].normalize(l,this),l}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}};const ae=2147483647,U2=36,Lt=1,t4=26,Qi=38,Ni=700,T0=72,Y0=128,V0="-",Ki=/^xn--/,Gi=/[^\0-\x7F]/,Oi=/[\x2E\u3002\uFF0E\uFF61]/g,$i={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},G5=U2-Lt,J2=Math.floor,O5=String.fromCharCode;function _3(e){throw new RangeError($i[e])}function Wi(e,t){const n=[];let l=e.length;for(;l--;)n[l]=t(e[l]);return n}function U0(e,t){const n=e.split("@");let l="";n.length>1&&(l=n[0]+"@",e=n[1]),e=e.replace(Oi,".");const o=e.split("."),r=Wi(o,t).join(".");return l+r}function J0(e){const t=[];let n=0;const l=e.length;for(;n=55296&&o<=56319&&nString.fromCodePoint(...e),Pi=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:U2},b7=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},z0=function(e,t,n){let l=0;for(e=n?J2(e/Ni):e>>1,e+=J2(e/t);e>G5*t4>>1;l+=U2)e=J2(e/G5);return J2(l+(G5+1)*e/(e+Qi))},j0=function(e){const t=[],n=e.length;let l=0,o=Y0,r=T0,s=e.lastIndexOf(V0);s<0&&(s=0);for(let a=0;a=128&&_3("not-basic"),t.push(e.charCodeAt(a));for(let a=s>0?s+1:0;a=n&&_3("invalid-input");const A=Pi(e.charCodeAt(a++));A>=U2&&_3("invalid-input"),A>J2((ae-l)/d)&&_3("overflow"),l+=A*d;const m=u<=r?Lt:u>=r+t4?t4:u-r;if(AJ2(ae/p)&&_3("overflow"),d*=p}const c=t.length+1;r=z0(l-i,c,i==0),J2(l/c)>ae-o&&_3("overflow"),o+=J2(l/c),l%=c,t.splice(l++,0,o)}return String.fromCodePoint(...t)},X0=function(e){const t=[];e=J0(e);const n=e.length;let l=Y0,o=0,r=T0;for(const i of e)i<128&&t.push(O5(i));const s=t.length;let a=s;for(s&&t.push(V0);a=l&&dJ2((ae-o)/c)&&_3("overflow"),o+=(i-l)*c,l=i;for(const d of e)if(dae&&_3("overflow"),d===l){let u=o;for(let A=U2;;A+=U2){const m=A<=r?Lt:A>=r+t4?t4:A-r;if(u{let n={};for(var l in e)C7(n,l,{get:e[l],enumerable:!0});return C7(n,Symbol.toStringTag,{value:"Module"}),n},Yi=q0({arrayReplaceAt:()=>Vi,asciiTrim:()=>h5,callable:()=>en,escapeHtml:()=>D3,escapeRE:()=>lc,fromCodePoint:()=>n4,isMdAsciiPunct:()=>r4,isPunctChar:()=>nn,isPunctCharCode:()=>o4,isSpace:()=>H1,isValidEntityCode:()=>Pt,isWhiteSpace:()=>l4,lib:()=>oc,normalizeReference:()=>A5,unescapeAll:()=>Ae,unescapeMd:()=>ji});function en(e){const t=function(...n){return Reflect.construct(e,n,new.target&&new.target!==t?new.target:e)};return Object.defineProperty(t,"name",{value:e.name}),Object.setPrototypeOf(t,e),t.prototype=e.prototype,t}function Vi(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Pt(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function n4(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var tn=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Ui=new RegExp(`${tn.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),Ji=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function zi(e,t){if(t.charCodeAt(0)===35&&Ji.test(t)){const l=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Pt(l)?n4(l):e}const n=H0(e);return n!==e?n:e}function ji(e){return e.indexOf("\\")<0?e:e.replace(tn,"$1")}function Ae(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Ui,function(t,n,l){return n||zi(t,l)})}var Xi=/[&<>"]/,qi=/[&<>"]/g,ec={"&":"&","<":"<",">":">",'"':"""};function tc(e){return ec[e]}function D3(e){return Xi.test(e)?e.replace(qi,tc):e}var nc=/[.?*+^$[\]\\(){}|-]/g;function lc(e){return e.replace(nc,"\\$&")}function H1(e){switch(e){case 9:case 32:return!0}return!1}function l4(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function nn(e){return Wt.test(e)||L0.test(e)}function o4(e){return nn(n4(e))}function r4(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function A5(e){return e=e.trim().replace(/\s+/g," "),e.toLowerCase().toUpperCase()}function w7(e){return e===32||e===9||e===10||e===13}function h5(e){let t=0;for(;t=t&&w7(e.charCodeAt(n));n--);return e.slice(t,n+1)}var oc={mdurl:hi,ucmicro:mi};function rc(e,t,n){let l,o,r,s;const a=e.posMax,i=e.pos;for(e.pos=t+1,l=1;e.pos32))return r;if(l===41){if(s===0)break;s--}o++}return t===o||s!==0||(r.str=Ae(e.slice(t,o)),r.pos=o,r.ok=!0),r}function ac(e,t,n,l){let o,r=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(l)s.str=l.str,s.marker=l.marker;else{if(r>=n)return s;let a=e.charCodeAt(r);if(a!==34&&a!==39&&a!==40)return s;t++,r++,a===40&&(a=41),s.marker=a}for(;rsc,parseLinkLabel:()=>rc,parseLinkTitle:()=>ac});function s4(e){"@babel/helpers - typeof";return s4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s4(e)}function cc(e,t){if(s4(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var l=n.call(e,t);if(s4(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uc(e){var t=cc(e,"string");return s4(t)=="symbol"?t:t+""}function h1(e,t,n){return(t=uc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U3=class{constructor(e,t,n){h1(this,"map",null),h1(this,"level",0),h1(this,"children",null),h1(this,"content",""),h1(this,"markup",""),h1(this,"info",""),h1(this,"block",!1),h1(this,"hidden",!1),this.type=e,this.tag=t,this.attrs=null,this.nesting=n,this.meta=null}attrIndex(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,l=t.length;n=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},a4=class{constructor(){h1(this,"__rules__",[]),h1(this,"__cache__",null)}__find__(e){for(let t=0;t{t.enabled&&t.alt.forEach(n=>{n&&e.add(n)})}),this.__cache__=Object.create(null),this.__cache__[""]=[],this.__rules__.forEach(t=>{t.enabled&&this.__cache__[""].push(t.fn)}),e.forEach(t=>{this.__cache__[t]=[],this.__rules__.forEach(n=>{n.enabled&&n.alt.indexOf(t)>=0&&this.__cache__[t].push(n.fn)})})}at(e,t,n={}){const l=this.__find__(e);if(l===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__[l].fn=t,this.__rules__[l].alt=n.alt||[],this.__cache__=null}before(e,t,n,l={}){const o=this.__find__(e);if(o===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:l.alt||[]}),this.__cache__=null}after(e,t,n,l={}){const o=this.__find__(e);if(o===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:l.alt||[]}),this.__cache__=null}push(e,t,n={}){this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null}enable(e,t=!1){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(l=>{const o=this.__find__(l);if(o<0){if(t)return;throw new Error(`Rules manager: invalid rule name ${l}`)}this.__rules__[o].enabled=!0,n.push(l)}),this.__cache__=null,n}enableOnly(e,t=!1){Array.isArray(e)||(e=[e]),this.__rules__.forEach(n=>{n.enabled=!1}),this.enable(e,t)}disable(e,t=!1){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(l=>{const o=this.__find__(l);if(o<0){if(t)return;throw new Error(`Rules manager: invalid rule name ${l}`)}this.__rules__[o].enabled=!1,n.push(l)}),this.__cache__=null,n}getRules(e){return this.__cache__||this.__compile__(),this.__cache__[e]||[]}},X2={};X2.code_inline=function(e,t,n,l,o){const r=e[t];return`${D3(r.content)}`};X2.code_block=function(e,t,n,l,o){const r=e[t];return`${D3(e[t].content)} -`};X2.fence=function(e,t,n,l,o){const r=e[t],s=r.info?Ae(r.info).trim():"";let a="",i="";if(s){const d=s.split(/(\s+)/g);a=d[0],i=d.slice(2).join("")}let c;if(n.highlight?c=n.highlight(r.content,a,i)||D3(r.content):c=D3(r.content),c.indexOf("${c} + */const Lt=j3("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ei=["aria-label"],ti=["aria-pressed","disabled","title","onClick"],ni={key:1,class:"opacity-60"},X3=O1({__name:"Tabs",props:{modelValue:{},tabs:{},label:{},size:{default:"default"},class:{}},emits:["update:modelValue"],setup(e){const t=e,n={sm:"gap-1 px-1.5 py-0.5 text-[10px]",default:"gap-1.5 px-2.5 py-1 text-xs",lg:"gap-2 px-3 py-1 text-sm"};return(l,o)=>(h(),C("div",{role:"group","aria-label":e.label,class:c1(f(x1)("inline-flex rounded-md border bg-card p-0.5",t.class))},[(h(!0),C(n1,null,M1(e.tabs,r=>(h(),C("button",{key:r.id,type:"button","aria-pressed":e.modelValue===r.id,disabled:r.disabled,title:r.title,class:c1(f(x1)("inline-flex shrink-0 items-center rounded font-medium transition-colors disabled:pointer-events-none disabled:opacity-40",n[e.size],e.modelValue===r.id?"bg-primary/15 text-primary":"text-muted-foreground hover:text-foreground")),onClick:s=>l.$emit("update:modelValue",r.id)},[r.icon?(h(),G(k2(r.icon),{key:0,class:c1(e.size==="sm"?"h-3 w-3":"h-3.5 w-3.5")},null,8,["class"])):L("",!0),J(" "+Q(r.label)+" ",1),r.count?(h(),C("span",ni,Q(r.count),1)):L("",!0)],10,ti))),128))],10,ei))}}),li=["value","rows"],ft=O1({__name:"Textarea",props:{modelValue:{},rows:{default:3},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),C("textarea",{value:e.modelValue,rows:e.rows,class:c1(f(x1)(f(Ma)({size:e.size,invalid:e.invalid}),t.class)),onInput:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},null,42,li))}}),oi={key:0,class:"space-y-1.5"},ri={class:"flex gap-2"},W0=O1({__name:"ListInput",props:{modelValue:{default:()=>[]},placeholder:{},noun:{default:"entry"},mono:{type:Boolean,default:!1},size:{default:"default"},class:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,l=t,o=j("");function r(){const a=o.value.trim();if(!a||n.modelValue.includes(a)){o.value="";return}l("update:modelValue",[...n.modelValue,a]),o.value=""}function s(a){l("update:modelValue",n.modelValue.filter(i=>i!==a))}return(a,i)=>(h(),C("div",{class:c1(f(x1)("space-y-2",n.class))},[e.modelValue.length?(h(),C("ul",oi,[(h(!0),C(n1,null,M1(e.modelValue,c=>(h(),C("li",{key:c,class:"flex items-center gap-2 rounded-md border bg-muted/40 py-1 pl-3 pr-1 text-sm"},[k("span",{class:c1(f(x1)("min-w-0 flex-1 break-all",e.mono&&"font-mono text-xs"))},Q(c),3),M(k1,{variant:"ghost",size:"icon",class:"h-6 w-6 shrink-0","aria-label":`Remove ${c}`,onClick:u=>s(c)},{default:x(()=>[M(f(Lt),{class:"h-3.5 w-3.5"})]),_:1},8,["aria-label","onClick"])]))),128))])):L("",!0),k("div",ri,[M(U3,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=c=>o.value=c),size:e.size,placeholder:e.placeholder,class:c1(e.mono?"font-mono":void 0),"aria-label":`Add ${e.noun}`,onKeydown:fr(e4(r,["prevent"]),["enter"])},null,8,["modelValue","size","placeholder","class","aria-label","onKeydown"]),M(k1,{size:e.size,variant:"outline",class:"shrink-0",disabled:!o.value.trim(),onClick:r},{default:x(()=>[M(f(Xa),{class:"mr-1.5 h-3.5 w-3.5"}),i[1]||(i[1]=J(" Add ",-1))]),_:1},8,["size","disabled"])])],2))}}),si={class:"min-w-0 truncate"},ai=["aria-label"],A7=O1({__name:"Chip",props:{tone:{default:"default"},removable:{type:Boolean,default:!1},label:{},class:{}},emits:["remove"],setup(e){const t=e,n={default:"border-primary/30 bg-primary/10 text-foreground",success:"border-success/40 bg-success/10 text-foreground",warning:"border-warning/40 bg-warning/10 text-foreground",danger:"border-destructive/40 bg-destructive/10 text-foreground",muted:"border-border bg-muted/60 text-muted-foreground"};return(l,o)=>(h(),C("span",{class:c1(f(x1)("inline-flex max-w-full items-center gap-1 rounded-full border py-0.5 pl-2.5 text-xs",e.removable?"pr-1":"pr-2.5",n[e.tone],t.class))},[K1(l.$slots,"mark"),k("span",si,[K1(l.$slots,"default")]),e.removable?(h(),C("button",{key:0,type:"button",class:"shrink-0 rounded-full p-0.5 text-muted-foreground transition-colors hover:bg-background/60 hover:text-foreground","aria-label":e.label?`Remove ${e.label}`:"Remove",onClick:o[0]||(o[0]=r=>l.$emit("remove"))},[M(f(Lt),{class:"h-3 w-3"})],8,ai)):L("",!0)],2))}}),ii=["title"],ci={class:"relative flex h-2 w-2 shrink-0"},ui={key:1,class:"sr-only"},Pe=O1({__name:"DotIndicator",props:{tone:{default:"neutral"},title:{},label:{},pulse:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={neutral:"bg-muted-foreground",info:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-destructive"},l={neutral:"text-muted-foreground",info:"text-primary",success:"text-success",warning:"text-warning",danger:"text-destructive"};return(o,r)=>(h(),C("span",{class:c1(f(x1)("inline-flex items-center gap-1.5 align-middle",t.class)),title:e.title},[k("span",ci,[e.pulse?(h(),C("span",{key:0,class:c1(f(x1)("absolute inline-flex h-full w-full animate-ping rounded-full opacity-60",n[e.tone]))},null,2)):L("",!0),k("span",{class:c1(f(x1)("relative inline-flex h-2 w-2 rounded-full",n[e.tone]))},null,2)]),e.label?(h(),C("span",{key:0,class:c1(f(x1)("text-xs font-medium",l[e.tone]))},Q(e.label),3)):(h(),C("span",ui,Q(e.title),1))],10,ii))}}),h7={};function di(e){let t=h7[e];if(t)return t;t=h7[e]=[];for(let n=0;n<128;n++){const l=String.fromCharCode(n);t.push(l)}for(let n=0;n=55296&&u<=57343?o+="���":o+=String.fromCharCode(u),r+=6;continue}}if((a&248)===240&&r+91114111?o+="����":(d-=65536,o+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),r+=9;continue}}o+="�"}return o})}he.defaultChars=";/?:@&=+$,#";he.componentChars="";const p7={};function fi(e){let t=p7[e];if(t)return t;t=p7[e]=[];for(let n=0;n<128;n++){const l=String.fromCharCode(n);/^[0-9a-z]$/i.test(l)?t.push(l):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n"u"&&(n=!0);const l=fi(t);let o="";for(let r=0,s=e.length;r=55296&&a<=57343){if(a>=55296&&a<=56319&&r+1=56320&&i<=57343){o+=encodeURIComponent(e[r]+e[r+1]),r++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[r])}return o}i3.defaultChars=";/?:@&=+$,-_.!~*'()#";i3.componentChars="-_.!~*'()";function At(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function U4(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Ai=/^([a-z0-9.+-]+:)/i,hi=/:[0-9]*$/,pi=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,mi=["<",">",'"',"`"," ","\r",` +`," "],gi=["{","}","|","\\","^","`"].concat(mi),vi=["'"].concat(gi),m7=["%","/","?",";","#"].concat(vi),g7=["/","?","#"],yi=255,v7=/^[+a-z0-9A-Z_-]{0,63}$/,bi=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y7={javascript:!0,"javascript:":!0},b7={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ht(e,t){if(e&&e instanceof U4)return e;const n=new U4;return n.parse(e,t),n}U4.prototype.parse=function(e,t){let n,l,o,r=e;if(r=r.trim(),!t&&e.split("#").length===1){const c=pi.exec(r);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let s=Ai.exec(r);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,r=r.substr(s.length)),(t||s||r.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=r.substr(0,2)==="//",o&&!(s&&y7[s])&&(r=r.substr(2),this.slashes=!0)),!y7[s]&&(o||s&&!b7[s])){let c=-1;for(let p=0;p127?I+="x":I+=F[D];if(!I.match(v7)){const D=p.slice(0,g),w=p.slice(g+1),B=F.match(bi);B&&(D.push(B[1]),w.unshift(B[2])),w.length&&(r=w.join(".")+r),this.hostname=D.join(".");break}}}}this.hostname.length>yi&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=r.indexOf("#");a!==-1&&(this.hash=r.substr(a),r=r.slice(0,a));const i=r.indexOf("?");return i!==-1&&(this.search=r.substr(i),r=r.slice(0,i)),r&&(this.pathname=r),b7[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};U4.prototype.parseHost=function(e){let t=hi.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const ki=Object.freeze(Object.defineProperty({__proto__:null,decode:he,encode:i3,format:At,parse:ht},Symbol.toStringTag,{value:"Module"})),L0=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,P0=/[\0-\x1F\x7F-\x9F]/,Ci=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Pt=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,T0=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA]/,H0=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,wi=Object.freeze(Object.defineProperty({__proto__:null,Any:L0,Cc:P0,Cf:Ci,P:Pt,S:T0,Z:H0},Symbol.toStringTag,{value:"Module"})),xi=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function _i(e){return e>=55296&&e<=57343||e>1114111?65533:xi.get(e)??e}function Ii(e){const t=atob(e),n=t.length&-2,l=new Uint16Array(n/2);for(let o=0,r=0;o=z1.ZERO&&e<=z1.NINE}function Ei(e){return e>=z1.UPPER_A&&e<=z1.UPPER_F||e>=z1.LOWER_A&&e<=z1.LOWER_F}function Di(e){return e>=z1.UPPER_A&&e<=z1.UPPER_Z||e>=z1.LOWER_A&&e<=z1.LOWER_Z||pt(e)}function Zi(e){return e===z1.EQUALS||Di(e)}var s2;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(s2||(s2={}));var I3;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(I3||(I3={}));class Fi{constructor(t,n,l){W1(this,"decodeTree");W1(this,"emitCodePoint");W1(this,"errors");W1(this,"state",s2.EntityStart);W1(this,"consumed",1);W1(this,"result",0);W1(this,"treeIndex",0);W1(this,"excess",1);W1(this,"decodeMode",I3.Strict);W1(this,"runConsumed",0);this.decodeTree=t,this.emitCodePoint=n,this.errors=l}startEntity(t){this.decodeMode=t,this.state=s2.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(t,n){switch(this.state){case s2.EntityStart:return t.charCodeAt(n)===z1.NUM?(this.state=s2.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=s2.NamedEntity,this.stateNamedEntity(t,n));case s2.NumericStart:return this.stateNumericStart(t,n);case s2.NumericDecimal:return this.stateNumericDecimal(t,n);case s2.NumericHex:return this.stateNumericHex(t,n);case s2.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|k7)===z1.LOWER_X?(this.state=s2.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=s2.NumericDecimal,this.stateNumericDecimal(t,n))}stateNumericHex(t,n){for(;n>14;for(;n>7;if(this.runConsumed===0){const i=o&g2.JUMP_TABLE;if(t.charCodeAt(n)!==i)return this.result===0?0:this.emitNotTerminatedNamedEntity();n++,this.excess++,this.runConsumed++}for(;this.runConsumed=t.length)return-1;const i=this.runConsumed-1,c=l[this.treeIndex+1+(i>>1)],u=i%2===0?c&255:c>>8&255;if(t.charCodeAt(n)!==u)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();n++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),o=l[this.treeIndex],r=(o&g2.VALUE_LENGTH)>>14}if(n>=t.length)break;const s=t.charCodeAt(n);if(s===z1.SEMI&&r!==0&&(o&g2.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);if(this.treeIndex=Si(l,o,this.treeIndex+Math.max(1,r),s),this.treeIndex<0)return this.result===0||this.decodeMode===I3.Attribute&&(r===0||Zi(s))?0:this.emitNotTerminatedNamedEntity();if(o=l[this.treeIndex],r=(o&g2.VALUE_LENGTH)>>14,r!==0){if(s===z1.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==I3.Strict&&(o&g2.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}n++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var o;const{result:t,decodeTree:n}=this,l=(n[t]&g2.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,l,this.consumed),(o=this.errors)==null||o.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,l){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~(g2.VALUE_LENGTH|g2.FLAG13):o[t+1],l),n===3&&this.emitCodePoint(o[t+2],l),l}end(){var t;switch(this.state){case s2.NamedEntity:return this.result!==0&&(this.decodeMode!==I3.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case s2.NumericDecimal:return this.emitNumericEntity(0,2);case s2.NumericHex:return this.emitNumericEntity(0,3);case s2.NumericStart:return(t=this.errors)==null||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case s2.EntityStart:return 0}}}function Bi(e){let t="";const n=new Fi(e,l=>t+=String.fromCodePoint(l));return function(o,r){let s=0,a=0;for(;(a=o.indexOf("&",a))>=0;){t+=o.slice(s,a),n.startEntity(r);const c=n.write(o,a+1);if(c<0){s=a+n.end();break}s=a+c,a=c===0?s+1:s}const i=t+o.slice(s);return t="",i}}function Si(e,t,n,l){const o=(t&g2.BRANCH_LENGTH)>>7,r=t&g2.JUMP_TABLE;if(o===0)return r!==0&&l===r?n:-1;if(r){const c=l-r;return c<0||c>=o?-1:e[n+c]-1}const s=o+1>>1;let a=0,i=o-1;for(;a<=i;){const c=a+i>>>1,u=c>>1,A=e[n+u]>>(c&1)*8&255;if(Al)i=c-1;else return e[n+s+c]}return-1}const Ri=Bi(Mi);function Y0(e){return Ri(e,I3.Strict)}var Qi=class{constructor(e={}){W1(this,"src_Any",L0.source);W1(this,"src_Cc",P0.source);W1(this,"src_Z",H0.source);W1(this,"src_P",Pt.source);W1(this,"src_ZPCc",[this.src_Z,this.src_P,this.src_Cc].join("|"));W1(this,"src_ZCc",[this.src_Z,this.src_Cc].join("|"));W1(this,"cache",{});W1(this,"opts",{maxLength:1e4,urlAuth:!1,schema_names:[]});this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(e,t,n=4){const l=this.escapeRE(e),o=this.escapeRE(t),r=`(?:(?!${this.src_ZCc}|${l}|${o}).)`;let s=`${l}${r}{0,1000}${o}`;for(let a=2;a<=n;a++)s=`${l}(?:${r}|${s}){0,1000}${o}`;return s}get_text_separators(){var e;return(e=this.cache).text_separators??(e.text_separators=/[><\uff5c]/)}get_pseudo_letter(){var e;return(e=this.cache).src_pseudo_letter??(e.src_pseudo_letter=new RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`))}get_ipv4_addr(){var e;return(e=this.cache).src_ip4??(e.src_ip4=new RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])"))}get_ipv6_addr(){var n;const e="[0-9A-Fa-f]{1,4}",t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return(n=this.cache).src_ip6_addr??(n.src_ip6_addr=new RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`))}get_ipv6_url_host(){var e;return(e=this.cache).src_ip6_host??(e.src_ip6_host=new RegExp(`\\[${this.get_ipv6_addr().source}\\]`))}get_ipv6_mail_host(){var e;return(e=this.cache).src_ipv6_mail_host??(e.src_ipv6_mail_host=new RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`))}get_auth(){var e;return(e=this.cache).src_auth??(e.src_auth=new RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`))}get_port(){var e;return(e=this.cache).src_port??(e.src_port=new RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?"))}get_host_terminator(){var e;return(e=this.cache).src_host_terminator??(e.src_host_terminator=new RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`))}get_path_terminator(){var e;return(e=this.cache).src_path_terminator??(e.src_path_terminator=new RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`))}get_path(){var e;return(e=this.cache).src_path??(e.src_path=new RegExp(`(?:[/?#](?:${this.nestedPairRE("[","]")}|${this.nestedPairRE("(",")")}|${this.nestedPairRE("{","}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts["---"]?"\\-(?!--(?:[^-]|$))(?:-{0,19})|":"\\-{1,20}|")+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`))}get_mail_name(){var e;return(e=this.cache).src_mail_name??(e.src_mail_name=new RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}"))}get_xn(){var e;return(e=this.cache).src_xn??(e.src_xn=new RegExp("xn--[a-z0-9\\-]{1,59}"))}get_tld(){if(this.cache.tld)return this.cache.tld;const e=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=new RegExp(`${e||"$#none#$"}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){var e;return(e=this.cache).src_domain_root??(e.src_domain_root=new RegExp("(?:"+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`))}get_domain(){var e;return(e=this.cache).src_domain??(e.src_domain=new RegExp("(?:"+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`))}get_url_host_port(){var e;return(e=this.cache).url_host_port??(e.url_host_port=new RegExp("(?:"+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source))}get_fuzzy_url_host_port(){var e;return(e=this.cache).fuzzy_url_host_port??(e.fuzzy_url_host_port=new RegExp("(?:"+(this.opts.fuzzyIP?this.get_ipv4_addr().source+"|":"")+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source))}get_mail_host(){var e;return(e=this.cache).src_mail_host??(e.src_mail_host=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source))}get_fuzzy_mail_host(){var e;return(e=this.cache).src_fuzzy_mail_host??(e.src_fuzzy_mail_host=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source))}get_path_extra(){var e;return(e=this.cache).src_path_extra??(e.src_path_extra=new RegExp(""))}get_fuzzy_mail_host_search(){var e;return(e=this.cache).mail_fuzzy_host_search??(e.mail_fuzzy_host_search=new RegExp(`@${this.get_fuzzy_mail_host().source}`,"ig"))}get_fuzzy_link_search(){var e;return(e=this.cache).link_fuzzy_search??(e.link_fuzzy_search=new RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${this.src_ZPCc}))(?:(?![$+<=>^\`||])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,"ig"))}get_http_validator(){var e;return(e=this.cache).http_validator??(e.http_validator=new RegExp("\\/\\/"+(this.opts.urlAuth?this.get_auth().source:"")+this.get_url_host_port().source+this.get_path().source,"iy"))}get_relative_proto_validator(){var e;return(e=this.cache).relative_proto_validator??(e.relative_proto_validator=new RegExp((this.opts.urlAuth?this.get_auth().source:"")+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,"iy"))}get_mail_name_validator(){var e;return(e=this.cache).mail_name_validator??(e.mail_name_validator=new RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`))}get_mailto_validator(){var e;return(e=this.cache).mailto_validator??(e.mailto_validator=new RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,"iy"))}get_schema_names(){var e;return(e=this.cache).schema_names??(e.schema_names=new RegExp((this.opts.schema_names||[]).map(t=>this.escapeRE(t)).join("|")))}get_schema_search(){var e;return(e=this.cache).schema_search??(e.schema_search=new RegExp(`(^|(?!_)(?:[><|]|${this.src_ZPCc}))(${this.get_schema_names().source})`,"ig"))}get_schema_at_start(){var e;return(e=this.cache).schema_at_start??(e.schema_at_start=new RegExp(`^${this.get_schema_search().source}`,"i"))}},K5={validate:(e,t,n)=>{const l=n.re.get_http_validator();l.lastIndex=t;const o=l.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)},Ni={"http:":K5,"https:":K5,"ftp:":K5,"//":{validate:function(e,t,n){const l=n.re.get_relative_proto_validator();l.lastIndex=t;const o=l.exec(e);return o?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,n){const l=n.re.get_mailto_validator();l.lastIndex=t;const o=l.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)}},Ki="a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw",Gi="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф";function Oi(){const e=Gi.split("|");return Ki.split("|").forEach(t=>{const n=t.indexOf(":"),l=t.slice(0,n);for(const o of t.slice(n+1))e.push(l+o)}),e}var $i={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:Oi(),urlAuth:!1,maxLength:1e4},C7=class{constructor(e,t,n,l){W1(this,"schema");W1(this,"index");W1(this,"lastIndex");W1(this,"raw");W1(this,"text");W1(this,"url");const o=e.slice(n,l);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=l,this.raw=o,this.text=o,this.url=o}},Wi=class{constructor(e={}){W1(this,"__opts__");W1(this,"__schemas__");W1(this,"re");const{rebuilder:t,...n}=e;this.__opts__={...$i,...n},this.__schemas__={...Ni},this.re=t||new Qi,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(!t)delete this.__schemas__[e];else{const n={normalize:(l,o)=>o.normalize(l),...t};this.__schemas__[e]=n}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let t,n;for(n=this.re.get_schema_search(),n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0,n.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&e.indexOf("@")>=0){const l=this.re.get_fuzzy_mail_host_search(),o=this.re.get_mail_name_validator();for(l.lastIndex=0;(t=l.exec(e))!==null;){const r=e.slice(Math.max(0,t.index-65),t.index);if(o.test(r))return!0}}return!1}testSchemaAt(e,t,n){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,n+this.__opts__.maxLength),n,this):0}match(e){const t=[],n=this.re.get_schema_search();let l,o,r,s,a,i,c=!1,u=!1,d=!1,A=0;if(!e.length)return null;for(n.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(l=this.re.get_fuzzy_link_search(),l.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&(o=this.re.get_fuzzy_mail_host_search(),o.lastIndex=0,r=this.re.get_mail_name_validator());;){const m=Math.max(A-1,0);if(o&&r&&!d&&(!a||a.index=A)break;o.lastIndex=A)break;l.lastIndexp.lastIndex))&&(p=s);let g;if(!c)for(;;){if(!i){n.lastIndexp.index)break;const I=i;i=void 0;const D=this.testSchemaAt(e,I.schema,I.lastIndex);if(D){g={schema:I.schema,index:I.index,lastIndex:I.lastIndex+D};break}}let y=g;if((!y||a&&(a.indexy.lastIndex))&&(y=a),(!y||s&&(s.indexy.lastIndex))&&(y=s),!y)break;y===a?a=void 0:y===s&&(s=void 0);const F=new C7(e,y.schema,y.index,y.lastIndex);F.schema?this.__schemas__[F.schema].normalize(F,this):this.normalize(F),t.push(F),A=y.lastIndex}return t.length?t:null}matchAtStart(e){if(!e.length)return null;const t=this.re.get_schema_at_start().exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;const l=new C7(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__schemas__[l.schema].normalize(l,this),l}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}};const ie=2147483647,U2=36,Tt=1,n4=26,Li=38,Pi=700,V0=72,U0=128,J0="-",Ti=/^xn--/,Hi=/[^\0-\x7F]/,Yi=/[\x2E\u3002\uFF0E\uFF61]/g,Vi={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},G5=U2-Tt,J2=Math.floor,O5=String.fromCharCode;function _3(e){throw new RangeError(Vi[e])}function Ui(e,t){const n=[];let l=e.length;for(;l--;)n[l]=t(e[l]);return n}function z0(e,t){const n=e.split("@");let l="";n.length>1&&(l=n[0]+"@",e=n[1]),e=e.replace(Yi,".");const o=e.split("."),r=Ui(o,t).join(".");return l+r}function j0(e){const t=[];let n=0;const l=e.length;for(;n=55296&&o<=56319&&nString.fromCodePoint(...e),zi=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:U2},w7=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},X0=function(e,t,n){let l=0;for(e=n?J2(e/Pi):e>>1,e+=J2(e/t);e>G5*n4>>1;l+=U2)e=J2(e/G5);return J2(l+(G5+1)*e/(e+Li))},q0=function(e){const t=[],n=e.length;let l=0,o=U0,r=V0,s=e.lastIndexOf(J0);s<0&&(s=0);for(let a=0;a=128&&_3("not-basic"),t.push(e.charCodeAt(a));for(let a=s>0?s+1:0;a=n&&_3("invalid-input");const A=zi(e.charCodeAt(a++));A>=U2&&_3("invalid-input"),A>J2((ie-l)/u)&&_3("overflow"),l+=A*u;const m=d<=r?Tt:d>=r+n4?n4:d-r;if(AJ2(ie/p)&&_3("overflow"),u*=p}const c=t.length+1;r=X0(l-i,c,i==0),J2(l/c)>ie-o&&_3("overflow"),o+=J2(l/c),l%=c,t.splice(l++,0,o)}return String.fromCodePoint(...t)},en=function(e){const t=[];e=j0(e);const n=e.length;let l=U0,o=0,r=V0;for(const i of e)i<128&&t.push(O5(i));const s=t.length;let a=s;for(s&&t.push(J0);a=l&&uJ2((ie-o)/c)&&_3("overflow"),o+=(i-l)*c,l=i;for(const u of e)if(uie&&_3("overflow"),u===l){let d=o;for(let A=U2;;A+=U2){const m=A<=r?Tt:A>=r+n4?n4:A-r;if(d{let n={};for(var l in e)_7(n,l,{get:e[l],enumerable:!0});return _7(n,Symbol.toStringTag,{value:"Module"}),n},qi=tn({arrayReplaceAt:()=>ec,asciiTrim:()=>h5,callable:()=>nn,escapeHtml:()=>D3,escapeRE:()=>uc,fromCodePoint:()=>l4,isMdAsciiPunct:()=>s4,isPunctChar:()=>on,isPunctCharCode:()=>r4,isSpace:()=>T1,isValidEntityCode:()=>Ht,isWhiteSpace:()=>o4,lib:()=>dc,normalizeReference:()=>A5,unescapeAll:()=>pe,unescapeMd:()=>oc});function nn(e){const t=function(...n){return Reflect.construct(e,n,new.target&&new.target!==t?new.target:e)};return Object.defineProperty(t,"name",{value:e.name}),Object.setPrototypeOf(t,e),t.prototype=e.prototype,t}function ec(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Ht(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function l4(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var ln=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,tc=new RegExp(`${ln.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),nc=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function lc(e,t){if(t.charCodeAt(0)===35&&nc.test(t)){const l=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Ht(l)?l4(l):e}const n=Y0(e);return n!==e?n:e}function oc(e){return e.indexOf("\\")<0?e:e.replace(ln,"$1")}function pe(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(tc,function(t,n,l){return n||lc(t,l)})}var rc=/[&<>"]/,sc=/[&<>"]/g,ac={"&":"&","<":"<",">":">",'"':"""};function ic(e){return ac[e]}function D3(e){return rc.test(e)?e.replace(sc,ic):e}var cc=/[.?*+^$[\]\\(){}|-]/g;function uc(e){return e.replace(cc,"\\$&")}function T1(e){switch(e){case 9:case 32:return!0}return!1}function o4(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function on(e){return Pt.test(e)||T0.test(e)}function r4(e){return on(l4(e))}function s4(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function A5(e){return e=e.trim().replace(/\s+/g," "),e.toLowerCase().toUpperCase()}function I7(e){return e===32||e===9||e===10||e===13}function h5(e){let t=0;for(;t=t&&I7(e.charCodeAt(n));n--);return e.slice(t,n+1)}var dc={mdurl:ki,ucmicro:wi};function fc(e,t,n){let l,o,r,s;const a=e.posMax,i=e.pos;for(e.pos=t+1,l=1;e.pos32))return r;if(l===41){if(s===0)break;s--}o++}return t===o||s!==0||(r.str=pe(e.slice(t,o)),r.pos=o,r.ok=!0),r}function hc(e,t,n,l){let o,r=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(l)s.str=l.str,s.marker=l.marker;else{if(r>=n)return s;let a=e.charCodeAt(r);if(a!==34&&a!==39&&a!==40)return s;t++,r++,a===40&&(a=41),s.marker=a}for(;rAc,parseLinkLabel:()=>fc,parseLinkTitle:()=>hc});function a4(e){"@babel/helpers - typeof";return a4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a4(e)}function mc(e,t){if(a4(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var l=n.call(e,t);if(a4(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gc(e){var t=mc(e,"string");return a4(t)=="symbol"?t:t+""}function A1(e,t,n){return(t=gc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V3=class{constructor(e,t,n){A1(this,"map",null),A1(this,"level",0),A1(this,"children",null),A1(this,"content",""),A1(this,"markup",""),A1(this,"info",""),A1(this,"block",!1),A1(this,"hidden",!1),this.type=e,this.tag=t,this.attrs=null,this.nesting=n,this.meta=null}attrIndex(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,l=t.length;n=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},i4=class{constructor(){A1(this,"__rules__",[]),A1(this,"__cache__",null)}__find__(e){for(let t=0;t{t.enabled&&t.alt.forEach(n=>{n&&e.add(n)})}),this.__cache__=Object.create(null),this.__cache__[""]=[],this.__rules__.forEach(t=>{t.enabled&&this.__cache__[""].push(t.fn)}),e.forEach(t=>{this.__cache__[t]=[],this.__rules__.forEach(n=>{n.enabled&&n.alt.indexOf(t)>=0&&this.__cache__[t].push(n.fn)})})}at(e,t,n={}){const l=this.__find__(e);if(l===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__[l].fn=t,this.__rules__[l].alt=n.alt||[],this.__cache__=null}before(e,t,n,l={}){const o=this.__find__(e);if(o===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:l.alt||[]}),this.__cache__=null}after(e,t,n,l={}){const o=this.__find__(e);if(o===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:l.alt||[]}),this.__cache__=null}push(e,t,n={}){this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null}enable(e,t=!1){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(l=>{const o=this.__find__(l);if(o<0){if(t)return;throw new Error(`Rules manager: invalid rule name ${l}`)}this.__rules__[o].enabled=!0,n.push(l)}),this.__cache__=null,n}enableOnly(e,t=!1){Array.isArray(e)||(e=[e]),this.__rules__.forEach(n=>{n.enabled=!1}),this.enable(e,t)}disable(e,t=!1){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(l=>{const o=this.__find__(l);if(o<0){if(t)return;throw new Error(`Rules manager: invalid rule name ${l}`)}this.__rules__[o].enabled=!1,n.push(l)}),this.__cache__=null,n}getRules(e){return this.__cache__||this.__compile__(),this.__cache__[e]||[]}},X2={};X2.code_inline=function(e,t,n,l,o){const r=e[t];return`${D3(r.content)}`};X2.code_block=function(e,t,n,l,o){const r=e[t];return`${D3(e[t].content)} +`};X2.fence=function(e,t,n,l,o){const r=e[t],s=r.info?pe(r.info).trim():"";let a="",i="";if(s){const u=s.split(/(\s+)/g);a=u[0],i=u.slice(2).join("")}let c;if(n.highlight?c=n.highlight(r.content,a,i)||D3(r.content):c=D3(r.content),c.indexOf("${c} `}return`
${c}
`};X2.image=function(e,t,n,l,o){const r=e[t];return r.attrs[r.attrIndex("alt")][1]=o.renderInlineAsText(r.children,n,l),o.renderToken(e,t,n)};X2.hardbreak=function(e,t,n){return n.xhtmlOut?`
`:`
`};X2.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`
`:`
`:` -`};X2.text=function(e,t){return D3(e[t].content)};X2.html_block=function(e,t){return e[t].content};X2.html_inline=function(e,t){return e[t].content};var ln=class{constructor(){h1(this,"rules",Object.assign({},X2))}renderAttrs(e){let t,n,l;if(!e.attrs)return"";for(l="",t=0,n=e.attrs.length;t=0&&e[r].hidden&&e[r].nesting===0;)r--;l.block&&l.nesting!==-1&&r>=0&&e[r].hidden&&e[r].nesting===-1&&(o+=` +`};X2.text=function(e,t){return D3(e[t].content)};X2.html_block=function(e,t){return e[t].content};X2.html_inline=function(e,t){return e[t].content};var rn=class{constructor(){A1(this,"rules",Object.assign({},X2))}renderAttrs(e){let t,n,l;if(!e.attrs)return"";for(l="",t=0,n=e.attrs.length;t=0&&e[r].hidden&&e[r].nesting===0;)r--;l.block&&l.nesting!==-1&&r>=0&&e[r].hidden&&e[r].nesting===-1&&(o+=` `),o+=(l.nesting===-1?" `:">",o}renderInline(e,t,n){let l="";const o=this.rules;for(let r=0,s=e.length;r\s]/i.test(e)}function vc(e){return/^<\/a\s*>/i.test(e)}function yc(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,l=t.length;n=0;a--){const i=o[a];if(i.type==="link_close"){for(a--;o[a].level!==i.level&&o[a].type!=="link_open";)a--;continue}if(i.type==="html_inline"&&(gc(i.content)&&s>0&&s--,vc(i.content)&&s++),!(s>0)&&i.type==="text"&&e.md.linkify.test(i.content)){const c=i.content;let d=e.md.linkify.match(c);const u=[];let A=i.level,m=0;d.length>0&&d[0].index===0&&a>0&&o[a-1].type==="text_special"&&(d=d.slice(1));for(let p=0;pm){const $=new e.Token("text","",0);$.content=c.slice(m,M),$.level=A,u.push($)}const E=new e.Token("link_open","a",1);E.attrs=[["href",k]],E.level=A++,E.markup="linkify",E.info="auto",u.push(E);const _=new e.Token("text","",0);_.content=F,_.level=A,u.push(_);const R=new e.Token("link_close","a",-1);R.level=--A,R.markup="linkify",R.info="auto",u.push(R),m=d[p].lastIndex}if(m0){let a=o.length;for(const u of r)a+=u.nodes.length-1;const i=new Array(a);let c=0,d=0;r.reverse();for(let u=0;u=0;n--){const l=e[n];l.type==="text"&&!t&&(l.content=l.content.replace(kc,wc)),l.type==="link_open"&&l.info==="auto"&&t--,l.type==="link_close"&&l.info==="auto"&&t++}}function _c(e){let t=0;for(let n=e.length-1;n>=0;n--){const l=e[n];l.type==="text"&&!t&&rn.test(l.content)&&(l.content=l.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),l.type==="link_open"&&l.info==="auto"&&t--,l.type==="link_close"&&l.info==="auto"&&t++}}function Ic(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(bc.test(e.tokens[t].content)&&xc(e.tokens[t].children),rn.test(e.tokens[t].content)&&_c(e.tokens[t].children))}var Mc=/['"]/,x7=/['"]/g,_7="’";function I4(e,t,n,l){e[t]||(e[t]=[]),e[t].push({pos:n,ch:l})}function Ec(e,t){let n="",l=0;t.sort((o,r)=>o.pos-r.pos);for(let o=0;o=0&&!(l[n].level<=a);n--);if(l.length=n+1,s.type!=="text")continue;const i=s.content;let c=0;const d=i.length;e:for(;c=0)y=i.charCodeAt(u.index-1);else for(n=r-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){y=e[n].content.charCodeAt(e[n].content.length-1);break}let k=32;if(c=48&&y<=57&&(m=A=!1),A&&m&&(A=F,m=M),!A&&!m){p&&I4(o,r,u.index,_7);continue}if(m)for(n=l.length-1;n>=0;n--){let R=l[n];if(l[n].level=0;t--)e.tokens[t].type!=="inline"||!Mc.test(e.tokens[t].content)||Dc(e.tokens[t].children,e)}function Fc(e){let t,n;const l=e.length;for(t=0;t0&&this.level++,this.tokens.push(l),l}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;et;)if(!H1(this.src.charCodeAt(--e)))return e+1;return e}skipChars(e,t){for(let n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e}getLines(e,t,n,l){if(e>=t)return"";const o=new Array(t-e);for(let r=0,s=e;sn?o[r]=new Array(a-n+1).join(" ")+this.src.slice(c,d):o[r]=this.src.slice(c,d)}return o.join("")}},Sc=65536;function W5(e,t){const n=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];return e.src.slice(n,l)}function I7(e){const t=[],n=e.length;let l=0,o=e.charCodeAt(l),r=!1,s=0,a="";for(;ln)return!1;let o=t+1;if(e.sCount[o]=4)return!1;let r=e.bMarks[o]+e.tShift[o];if(r>=e.eMarks[o])return!1;const s=e.src.charCodeAt(r++);if(s!==124&&s!==45&&s!==58||r>=e.eMarks[o])return!1;const a=e.src.charCodeAt(r++);if(a!==124&&a!==45&&a!==58&&!H1(a)||s===45&&H1(a))return!1;for(;r=4)return!1;c=I7(i),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const u=c.length;if(u===0||u!==d.length)return!1;if(l)return!0;const A=e.parentType;e.parentType="table";const m=e.md.block.ruler.getRules("blockquote"),p=e.push("table_open","table",1),y=[t,0];p.map=y;const k=e.push("thead_open","thead",1);k.map=[t,t+1];const F=e.push("tr_open","tr",1);F.map=[t,t+1];for(let _=0;_=4||(c=I7(i),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),E+=u-c.length,E>Sc))break;if(o===t+2){const $=e.push("tbody_open","tbody",1);$.map=M=[t+2,0]}const R=e.push("tr_open","tr",1);R.map=[o,o+1];for(let $=0;$=4){l++,o=l;continue}break}e.line=o;const r=e.push("code_block","code",0);return r.content=e.getLines(t,o,4+e.blkIndent,!1)+` -`,r.map=[t,e.line],!0}function Nc(e,t,n,l){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>r)return!1;const s=e.src.charCodeAt(o);if(s!==126&&s!==96)return!1;let a=o;o=e.skipChars(o,s);let i=o-a;if(i<3)return!1;const c=e.src.slice(a,o),d=e.src.slice(o,r);if(s===96&&d.indexOf(String.fromCharCode(s))>=0)return!1;if(l)return!0;let u=t,A=!1;for(;u++,!(u>=n||(o=a=e.bMarks[u]+e.tShift[u],r=e.eMarks[u],o=4)&&(o=e.skipChars(o,s),!(o-a=4||e.src.charCodeAt(o)!==62)return!1;if(l)return!0;const a=[],i=[],c=[],d=[],u=e.md.block.ruler.getRules("blockquote"),A=e.parentType;e.parentType="blockquote";let m=!1,p;for(p=t;p=r)break;if(e.src.charCodeAt(o++)===62&&!E){let R=e.sCount[p]+1,$,D;e.src.charCodeAt(o)===32?(o++,R++,D=!1,$=!0):e.src.charCodeAt(o)===9?($=!0,(e.bsCount[p]+R)%4===3?(o++,R++,D=!1):D=!0):$=!1;let x=R;for(a.push(e.bMarks[p]),e.bMarks[p]=o;o=r,i.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+($?1:0),c.push(e.sCount[p]),e.sCount[p]=x-R,d.push(e.tShift[p]),e.tShift[p]=o-e.bMarks[p];continue}if(m)break;let _=!1;for(let R=0,$=u.length;R<$;R++)if(u[R](e,p,n,!0)){_=!0;break}if(_){e.lineMax=p,e.blkIndent!==0&&(a.push(e.bMarks[p]),i.push(e.bsCount[p]),d.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}a.push(e.bMarks[p]),i.push(e.bsCount[p]),d.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]=-1}const y=e.blkIndent;e.blkIndent=0;const k=e.push("blockquote_open","blockquote",1);k.markup=">";const F=[t,0];k.map=F,e.md.block.tokenize(e,t,p);const M=e.push("blockquote_close","blockquote",-1);M.markup=">",e.lineMax=s,e.parentType=A,F[1]=e.line;for(let E=0;E=4)return!1;let r=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(r++);if(s!==42&&s!==45&&s!==95)return!1;let a=1;for(;r=l)return-1;let r=e.src.charCodeAt(o++);if(r<48||r>57)return-1;for(;;){if(o>=l)return-1;if(r=e.src.charCodeAt(o++),r>=48&&r<=57){if(o-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return o=4||e.listIndent>=0&&e.sCount[i]-e.listIndent>=4&&e.sCount[i]=e.blkIndent&&(d=!0);let u,A,m;if((m=E7(e,i))>=0){if(u=!0,s=e.bMarks[i]+e.tShift[i],A=Number(e.src.slice(s,m-1)),d&&A!==1)return!1}else if((m=M7(e,i))>=0)u=!1;else return!1;if(d&&e.skipSpaces(m)>=e.eMarks[i])return!1;if(l)return!0;const p=e.src.charCodeAt(m-1),y=e.tokens.length;u?(a=e.push("ordered_list_open","ol",1),A!==1&&(a.attrs=[["start",A]])):a=e.push("bullet_list_open","ul",1);const k=[i,0];a.map=k,a.markup=String.fromCharCode(p);let F=!1;const M=e.md.block.ruler.getRules("list"),E=e.parentType;for(e.parentType="list";i=o?D=1:D=R-_,D>4&&(D=1);const x=_+D;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(p);const Q=[i,0];a.map=Q,u&&(a.info=e.src.slice(s,m-1));const B=e.tight,X=e.tShift[i],Y=e.sCount[i],m1=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=x,e.tight=!0,e.tShift[i]=$-e.bMarks[i],e.sCount[i]=R,$>=o&&e.isEmpty(i+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,i,n),(!e.tight||F)&&(c=!1),F=e.line-i>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=m1,e.tShift[i]=X,e.sCount[i]=Y,e.tight=B,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(p),i=e.line,Q[1]=i,i>=n||e.sCount[i]=4)break;let w1=!1;for(let r1=0,l1=M.length;r1=4||e.src.charCodeAt(o)!==91)return!1;function a(_){const R=e.lineMax;if(_>=R||e.isEmpty(_))return null;let $=!1;if(e.sCount[_]-e.blkIndent>3&&($=!0),e.sCount[_]<0&&($=!0),!$){const Q=e.md.block.ruler.getRules("reference"),B=e.parentType;e.parentType="reference";let X=!1;for(let Y=0,m1=Q.length;Y"u"&&(e.env.references={}),typeof e.env.references[F]>"u"&&(e.env.references[F]={title:k,href:u});const M=e.push("reference_definition","",0);M.map=[t,s],M.hidden=!0;const E=Object.create(null);return E.label=F,M.meta=E,e.line=s,!0}var Lc=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],cn=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,un="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Pc=new RegExp(`^(?:${cn}|${un}||<[?][\\s\\S]*?[?]>|]*>|)`),Hc=new RegExp(`^(?:${cn}|${un})`),G3=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp(`^|$))`,"i"),/^$/,!0],[new RegExp(`${Hc.source}\\s*$`),/^$/,!1]];function Tc(e,t,n,l){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let s=e.src.slice(o,r),a=0;for(;a=4)return!1;let s=e.src.charCodeAt(o);if(s!==35||o>=r)return!1;let a=1;for(s=e.src.charCodeAt(++o);s===35&&o6||oo&&H1(e.src.charCodeAt(i-1))&&(r=i),e.line=t+1;const c=e.push("heading_open",`h${a}`,1);c.markup="########".slice(0,a),c.map=[t,e.line];const d=e.push("inline","",0);d.content=h5(e.src.slice(o,r)),d.map=[t,e.line],d.children=[];const u=e.push("heading_close",`h${a}`,-1);return u.markup="########".slice(0,a),!0}function Vc(e,t,n){const l=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let r=0,s,a=t+1;for(;a3)continue;if(e.sCount[a]>=e.blkIndent){let m=e.bMarks[a]+e.tShift[a];const p=e.eMarks[a];if(m=p))){r=s===61?1:2;break}}if(e.sCount[a]<0)continue;let A=!1;for(let m=0,p=l.length;m3||e.sCount[r]<0)continue;let c=!1;for(let d=0,u=l.length;d=n||e.sCount[s]=r){e.line=n;break}const i=e.line;let c=!1;for(let d=0;d=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(l),this.tokens_meta.push(o),l}scanDelims(e,t){const n=this.posMax,l=this.src.charCodeAt(e);let o;if(e===0)o=32;else if(e===1)o=this.src.charCodeAt(0),(o&63488)===55296&&(o=65533);else if(o=this.src.charCodeAt(e-1),(o&64512)===56320){const p=this.src.charCodeAt(e-2);o=(p&64512)===55296?65536+(p-55296<<10)+(o-56320):65533}else(o&64512)===55296&&(o=65533);let r=e;for(;r=65&&e<=90||e>=97&&e<=122}function Xc(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function qc(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,l=e.posMax;if(n+3>l||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=n-Math.min(10,e.pending.length,n);let r=n;for(;r>o&&Xc(e.src.charCodeAt(r-1));)r--;if(r===n||!jc(e.src.charCodeAt(r)))return!1;const s=n-r,a=e.md.linkify.matchAtStart(e.src.slice(r));if(!a)return!1;let i=a.url;if(i.length<=s)return!1;let c=i.length;for(;c>0&&i.charCodeAt(c-1)===42;)c--;c!==i.length&&(i=i.slice(0,c));const d=e.md.normalizeLink(i);if(!e.md.validateLink(d))return!1;if(!t){e.pending=e.pending.slice(0,-s);const u=e.push("link_open","a",1);u.attrs=[["href",d]],u.markup="linkify",u.info="auto";const A=e.push("text","",0);A.content=e.md.normalizeLinkText(i);const m=e.push("link_close","a",-1);m.markup="linkify",m.info="auto"}return e.pos+=i.length-s,!0}function e9(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const l=e.pending.length-1,o=e.posMax;if(!t)if(l>=0&&e.pending.charCodeAt(l)===32)if(l>=1&&e.pending.charCodeAt(l-1)===32){let r=l-1;for(;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n?@[]^_`{|}~-".split("").forEach(function(e){Ht[e.charCodeAt(0)]=1});function t9(e,t){let n=e.pos;const l=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=l))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n=55296&&o<=56319&&n+1=56320&&a<=57343&&(r+=e.src[n+1],n++)}const s="\\"+r;if(!t){const a=e.push("text_special","",0);o<256&&Ht[o]!==0?a.content=r:a.content=s,a.markup=s,a.info="escape"}return e.pos=n+1,!0}function n9(e){const t={};let n=0;for(;(n=e.indexOf("`",n))!==-1;){const l=n;for(;e.charCodeAt(++n)===96;);t[n-l]=l}return t}function l9(e,t){var n;const l=e.pos;if(e.src.charCodeAt(l)!==96)return!1;const o=e.posMax;let r=l+1;for(;r=r){let i=r,c;for(;(c=e.src.indexOf("`",i))!==-1&&co)break;if(i-c===a){if(!t){const d=e.push("code_inline","code",0);d.markup=s;let u=e.src.slice(r,c).replace(/\n/g," ");u.startsWith(" ")&&u.endsWith(" ")&&/[^ ]/.test(u)&&(u=u.slice(1,-1)),d.content=u}return e.pos=i,!0}}}return t||(e.pending+=s),e.pos=r,!0}function o9(e,t){const n=e.pos,l=e.src.charCodeAt(n);if(t||l!==126)return!1;const o=e.scanDelims(e.pos,!0);let r=o.length;const s=String.fromCharCode(l);if(r<2)return!1;let a;r%2&&(a=e.push("text","",0),a.content=s,r--);for(let i=0;i=0;l--){const o=t[l];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const r=t[o.end],s=l>0&&t[l-1].end===o.end+1&&t[l-1].marker===o.marker&&t[l-1].token===o.token-1&&t[o.end+1].token===r.token+1,a=String.fromCharCode(o.marker),i=e.tokens[o.token];i.type=s?"strong_open":"em_open",i.tag=s?"strong":"em",i.nesting=1,i.markup=s?a+a:a,i.content="";const c=e.tokens[r.token];c.type=s?"strong_close":"em_close",c.tag=s?"strong":"em",c.nesting=-1,c.markup=s?a+a:a,c.content="",s&&(e.tokens[t[l-1].token].content="",e.tokens[t[o.end+1].token].content="",l--)}}function a9(e){const t=e.tokens_meta,n=e.tokens_meta.length;Z7(e,e.delimiters);for(let o=0;o=u)return!1;if(i=p,o=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),o.ok){for(s=e.md.normalizeLink(o.str),e.md.validateLink(s)?p=o.pos:s="",i=p;p=u||e.src.charCodeAt(p)!==41)&&(c=!0),p++}if(c){if(typeof e.env.references>"u")return!1;if(p=0?l=e.src.slice(i,p++):p=m+1):p=m+1,l||(l=e.src.slice(A,m)),l=A5(l),r=e.env.references[l],!r)return e.pos=d,!1;s=r.href,a=r.title}if(!t){e.pos=A,e.posMax=m;const y=e.push("link_open","a",1),k=[["href",s]];if(y.attrs=k,a&&k.push(["title",a]),l){const F=Object.create(null);F.label=l,y.meta=F}e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=u,!0}function c9(e,t){let n,l,o,r,s,a,i,c,d="";const u=e.pos,A=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const m=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(r=p+1,r=A)return!1;for(c=r,a=e.md.helpers.parseLinkDestination(e.src,r,e.posMax),a.ok&&(d=e.md.normalizeLink(a.str),e.md.validateLink(d)?r=a.pos:d=""),c=r;r=A||e.src.charCodeAt(r)!==41)return e.pos=u,!1;r++}else{if(typeof e.env.references>"u")return!1;if(r=0?o=e.src.slice(c,r++):r=p+1):r=p+1,o||(o=e.src.slice(m,p)),o=A5(o),s=e.env.references[o],!s)return e.pos=u,!1;d=s.href,i=s.title}if(!t){l=e.src.slice(m,p);const y=[];e.md.inline.parse(l,e.md,e.env,y);const k=e.push("image","img",0),F=[["src",d],["alt",""]];if(k.attrs=F,k.children=y,k.content=l,i&&F.push(["title",i]),o){const M=Object.create(null);M.label=o,k.meta=M}}return e.pos=r,e.posMax=A,!0}var u9=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,d9=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function f9(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const l=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const r=e.src.slice(l+1,n);if(d9.test(r)){const s=e.md.normalizeLink(r);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const i=e.push("text","",0);i.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}if(u9.test(r)){const s=e.md.normalizeLink(`mailto:${r}`);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const i=e.push("text","",0);i.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}return!1}function A9(e){return/^\s]/i.test(e)}function h9(e){return/^<\/a\s*>/i.test(e)}function p9(e){const t=e|32;return t>=97&&t<=122}function m9(e,t){if(!e.md.options.html)return!1;const n=e.posMax,l=e.pos;if(e.src.charCodeAt(l)!==60||l+2>=n)return!1;const o=e.src.charCodeAt(l+1);if(o!==33&&o!==63&&o!==47&&!p9(o))return!1;const r=e.src.slice(l).match(Pc);if(!r)return!1;if(!t){const s=e.push("html_inline","",0);s.content=r[0],A9(s.content)&&e.linkLevel++,h9(s.content)&&e.linkLevel--}return e.pos+=r[0].length,!0}var g9=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,v9=/^&([a-z][a-z0-9]{1,31});/i;function y9(e,t){const n=e.pos,l=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=l)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(g9);if(o){if(!t){const r=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0);s.content=Pt(r)?n4(r):n4(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(v9);if(o){const r=H0(o[0]);if(r!==o[0]){if(!t){const s=e.push("text_special","",0);s.content=r,s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function F7(e){const t={},n=e.length;if(!n)return;let l=0,o=-2;const r=[];for(let s=0;si;c-=r[c]+1){const u=e[c];if(u.marker===a.marker&&u.open&&u.end<0){let A=!1;if((u.close||a.open)&&(u.length+a.length)%3===0&&(u.length%3!==0||a.length%3!==0)&&(A=!0),!A){const m=c>0&&!e[c-1].open?r[c-1]+1:0;r[s]=s-c+m,r[c]=m,a.open=!1,u.end=s,u.close=!1,d=-1,o=-2;break}}}d!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=d)}}function b9(e){const t=e.tokens_meta,n=e.tokens_meta.length;F7(e.delimiters);for(let o=0;o0&&l++,o[t].type==="text"&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,r[t]=e.pos}tokenize(e){const t=this.ruler.getRules(""),n=t.length,l=e.posMax,o=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=l)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,l){const o=new this.State(e,t,n,l);this.tokenize(o);const r=this.ruler2.getRules(""),s=r.length;for(let a=0;a=0))try{t.hostname=k7.toASCII(t.hostname)}catch{}return t.auth&&(t.auth=i3(t.auth)),t.hostname&&(t.hostname=i3(t.hostname)),t.pathname&&(t.pathname=i3(t.pathname)),t.search&&(t.search=i3(t.search)),t.hash&&(t.hash=i3(t.hash)),ft(t)}normalizeLinkText(e){const t=At(e,!0);if(t.hostname&&(!t.protocol||B7.indexOf(t.protocol)>=0))try{t.hostname=k7.toUnicode(t.hostname)}catch{}return fe(ft(t),fe.defaultChars+"%")}constructor(...e){h1(this,"inline",new pn),h1(this,"block",new dn),h1(this,"core",new sn),h1(this,"renderer",new ln),h1(this,"linkify",new Ri),h1(this,"utils",Yi),h1(this,"helpers",Object.assign({},ic));const[t,n]=e;typeof t=="string"?(this.configure(t),n&&this.set(n)):(this.configure("default"),this.set(t||{}))}set(e){return Object.assign(this.options,e),this}configure(e){let t;if(typeof e=="string"){const o=e;if(t=C9[o],!t)throw new Error(`Wrong 'markdown-it' preset "${o}", check name`)}else t=e;if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");t.options&&(this.options={...t.options});const n=t.components;if(n){var l;["core","block","inline"].forEach(r=>{var s;const a=(s=n[r])===null||s===void 0?void 0:s.rules;a&&this[r].ruler.enableOnly(a)});const o=(l=n.inline)===null||l===void 0?void 0:l.rules2;o&&this.inline.ruler2.enableOnly(o)}return this}enable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(o=>{n=n.concat(this[o].ruler.enable(e,!0))}),n=n.concat(this.inline.ruler2.enable(e,!0));const l=e.filter(o=>n.indexOf(o)<0);if(l.length&&!t)throw new Error(`MarkdownIt. Failed to enable unknown rule(s): ${l}`);return this}disable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(o=>{n=n.concat(this[o].ruler.disable(e,!0))}),n=n.concat(this.inline.ruler2.disable(e,!0));const l=e.filter(o=>n.indexOf(o)<0);if(l.length&&!t)throw new Error(`MarkdownIt. Failed to disable unknown rule(s): ${l}`);return this}use(e,...t){return e.apply(e,[this,...t]),this}parse(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens}render(e,t={}){return this.renderer.render(this.parse(e,t),this.options,t)}parseInline(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens}renderInline(e,t={}){return this.renderer.render(this.parseInline(e,t),this.options,t)}};h1(q2,"Token",U3);h1(q2,"Ruler",a4);h1(q2,"Renderer",ln);h1(q2,"ParserCore",sn);h1(q2,"StateCore",on);h1(q2,"ParserBlock",dn);h1(q2,"StateBlock",an);h1(q2,"ParserInline",pn);h1(q2,"StateInline",fn);var _9=en(q2);const I9=["innerHTML"],B2=$1({__name:"Markdown",props:{source:{},class:{}},setup(e){const t=e,n=new _9({html:!1,linkify:!0,breaks:!1}),l=t1(()=>n.render(t.source??"")),o=["prose prose-sm max-w-none","prose-headings:text-foreground prose-headings:font-semibold","prose-p:text-muted-foreground prose-li:text-muted-foreground","prose-strong:text-foreground prose-em:text-foreground","prose-a:text-primary prose-a:no-underline hover:prose-a:underline","prose-code:text-foreground prose-code:before:content-none prose-code:after:content-none","prose-code:rounded prose-code:bg-muted/60 prose-code:px-1 prose-code:py-0.5","prose-pre:bg-muted/50 prose-pre:text-foreground prose-pre:border","prose-blockquote:border-border prose-blockquote:text-muted-foreground","prose-hr:border-border prose-th:text-foreground prose-td:text-muted-foreground"].join(" ");return(r,s)=>(h(),C("div",{class:f1(f(E1)(f(o),t.class)),innerHTML:l.value},null,10,I9))}}),M9={key:0,class:"space-y-2 border-b bg-muted/30 p-3"},E9={class:"px-3 py-2"},D9={key:0,class:"overflow-x-auto border-t bg-destructive/10 px-3 py-2 font-mono text-xs"},Z9={key:1,class:"overflow-x-auto border-t bg-success/10 px-3 py-2 font-mono text-xs"},F9={key:1,class:"p-4 text-sm text-muted-foreground"},B9={key:2,class:"overflow-x-auto"},S9={class:"w-full border-collapse font-mono text-xs leading-relaxed"},R9={class:"w-12 select-none border-r px-2 text-right align-top text-muted-foreground"},Q9={class:"w-12 select-none border-r px-2 text-right align-top text-muted-foreground"},N9={class:"w-4 select-none pl-2 align-top text-muted-foreground"},K9={class:"whitespace-pre-wrap break-all py-0.5 pr-3 align-top"},G9={colspan:"4",class:"px-3 py-2"},O9={class:"px-3 py-2"},$9={key:0,class:"overflow-x-auto border-t bg-destructive/10 px-3 py-2 font-mono text-xs"},W9={key:1,class:"overflow-x-auto border-t bg-success/10 px-3 py-2 font-mono text-xs"},L9=$1({__name:"Diff",props:{patch:{default:""},notes:{default:()=>[]},class:{}},setup(e){const t=e,n={neutral:"bg-card",info:"border-primary/30 bg-primary/5",success:"border-success/40 bg-success/5",warning:"border-warning/40 bg-warning/5",danger:"border-destructive/40 bg-destructive/5"};function l(d){return d.severity==="blocking"?n.danger:n[d.tone??"neutral"]??n.neutral}const o=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/,r=t1(()=>{const d=[];let u=0,A=0,m=!1;for(const p of(t.patch??"").split(` -`)){const y=o.exec(p);if(y){u=Number(y[1]),A=Number(y[2]),m=!0,d.push({kind:"hunk",text:p,before:null,after:null});continue}m&&(p.startsWith("+")?d.push({kind:"added",text:p.slice(1),before:null,after:A++}):p.startsWith("-")?d.push({kind:"removed",text:p.slice(1),before:u++,after:null}):p.startsWith("\\")?d.push({kind:"meta",text:p,before:null,after:null}):d.push({kind:"kept",text:p.slice(1),before:u++,after:A++}))}return d}),s={added:"bg-success/10",removed:"bg-destructive/10",hunk:"bg-muted/60 text-muted-foreground",meta:"text-muted-foreground",kept:""},a={added:"+",removed:"-",kept:" ",hunk:"",meta:""},i=t1(()=>{const d=new Map;for(const u of t.notes??[])u.line&&d.set(u.line,[...d.get(u.line)??[],u]);return d}),c=t1(()=>(t.notes??[]).filter(d=>!d.line));return(d,u)=>(h(),C("div",{class:f1(f(E1)("overflow-hidden rounded-md border",t.class))},[c.value.length?(h(),C("div",M9,[(h(!0),C(n1,null,_1(c.value,(A,m)=>(h(),C("div",{key:m,class:f1(["rounded border text-sm",l(A)])},[b("div",E9,[A.from?(h(),G($e,{key:0,tone:A.severity==="blocking"?"danger":A.tone??"neutral",title:String(A.from),label:String(A.from).toLowerCase(),class:"mr-2"},null,8,["tone","title","label"])):P("",!0),I(B2,{source:A.detail,class:"inline [&>p]:inline"},null,8,["source"])]),A.replacing?(h(),C("pre",D9,N(A.replacing),1)):P("",!0),A.code?(h(),C("pre",Z9,N(A.code),1)):P("",!0)],2))),128))])):P("",!0),r.value.length?(h(),C("div",B9,[b("table",S9,[b("tbody",null,[(h(!0),C(n1,null,_1(r.value,(A,m)=>(h(),C(n1,{key:m},[b("tr",{class:f1(s[A.kind])},[b("td",R9,N(A.before??""),1),b("td",Q9,N(A.after??""),1),b("td",N9,N(a[A.kind]),1),b("td",K9,N(A.text),1)],2),(h(!0),C(n1,null,_1(i.value.get(A.after??-1)??[],(p,y)=>(h(),C("tr",{key:`${m}-${y}`},[b("td",G9,[b("div",{class:f1(["rounded border font-sans text-sm",l(p)])},[b("div",O9,[p.from?(h(),G($e,{key:0,tone:p.severity==="blocking"?"danger":p.tone??"neutral",title:String(p.from),label:String(p.from).toLowerCase(),class:"mr-2"},null,8,["tone","title","label"])):P("",!0),I(B2,{source:p.detail,class:"inline [&>p]:inline"},null,8,["source"])]),p.replacing?(h(),C("pre",$9,N(p.replacing),1)):P("",!0),p.code?(h(),C("pre",W9,N(p.code),1)):P("",!0)],2)])]))),128))],64))),128))])])])):(h(),C("div",F9," Nothing to show for this one. It may be a file git stores whole rather than as lines. "))],2))}}),P9={class:"flex items-center gap-2.5"},H9=$1({__name:"Logo",props:{size:{default:"md"},showText:{type:Boolean,default:!0}},setup(e){const t={sm:"h-7 w-7 min-h-7 min-w-7",md:"h-8 w-8 min-h-8 min-w-8",lg:"h-10 w-10 min-h-10 min-w-10"},n={sm:"text-base",md:"text-lg",lg:"text-xl"};return(l,o)=>(h(),C("div",P9,[b("div",{class:f1([t[e.size],"relative flex-shrink-0"])},[...o[0]||(o[0]=[go('',1)])],2),e.showText?(h(),C("span",{key:0,class:f1([n[e.size],"font-semibold tracking-tight"])},[...o[1]||(o[1]=[b("span",{class:"text-brand"},"Source",-1),b("span",{class:"text-brand"},"Ant",-1),b("span",{class:"text-muted-foreground font-normal ml-1"},"Memory",-1)])],2)):P("",!0)]))}}),T9={key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4"},Tt=$1({__name:"Modal",props:{open:{type:Boolean},class:{},maxWidth:{default:"lg"}},emits:["close"],setup(e,{emit:t}){const n=e,l=t,o={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl"};function r(s){s.key==="Escape"&&l("close")}return d2(()=>window.addEventListener("keydown",r)),f4(()=>window.removeEventListener("keydown",r)),(s,a)=>(h(),G(El,{to:"body"},[I(r0,{"enter-active-class":"transition duration-200","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition duration-150","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:w(()=>[e.open?(h(),C("div",T9,[b("div",{class:"absolute inset-0 bg-background/80 backdrop-blur-sm",onClick:a[0]||(a[0]=i=>l("close"))}),I(z1,{class:f1(f(E1)("relative w-full max-h-[85vh] overflow-auto p-6 animate-fade-up",o[e.maxWidth],n.class))},{default:w(()=>[b("button",{class:"absolute top-4 right-4 p-1 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",onClick:a[1]||(a[1]=i=>l("close"))},[I(f($t),{class:"h-4 w-4"})]),K1(s.$slots,"default")]),_:3},8,["class"])])):P("",!0)]),_:3})]))}}),Y9=["role"],V9={class:"min-w-0 flex-1"},u2=$1({__name:"Notice",props:{tone:{default:"info"},icon:{type:Boolean,default:!0},class:{}},setup(e){const t=e,n={info:"border-border bg-muted/50 text-foreground",success:"border-success/40 bg-success/10 text-foreground",warning:"border-warning/40 bg-warning/10 text-foreground",danger:"border-destructive/40 bg-destructive/10 text-foreground"},l={info:Va,success:Ya,warning:za,danger:Ta},o={info:"text-muted-foreground",success:"text-success",warning:"text-warning",danger:"text-destructive"},r=t1(()=>l[t.tone]);return(s,a)=>(h(),C("div",{class:f1(f(E1)("flex gap-3 rounded-md border px-4 py-3 text-sm",n[e.tone],t.class)),role:e.tone==="danger"?"alert":"status"},[e.icon?(h(),G(k2(r.value),{key:0,class:f1(f(E1)("mt-0.5 h-4 w-4 shrink-0",o[e.tone]))},null,8,["class"])):P("",!0),b("div",V9,[K1(s.$slots,"default")]),K1(s.$slots,"actions")],10,Y9))}}),U9={class:"relative flex h-2 w-2 shrink-0"},J9={key:0,class:"text-muted-foreground tabular-nums"},mn=$1({__name:"Status",props:{tone:{default:"neutral"},label:{},count:{default:null},busy:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={neutral:"bg-muted-foreground",info:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-destructive"},l={neutral:"text-muted-foreground",info:"text-foreground",success:"text-foreground",warning:"text-foreground",danger:"text-foreground"},o=t1(()=>t.count===null||t.count===void 0?null:t.count);return(r,s)=>(h(),C("span",{class:f1(f(E1)("inline-flex items-center gap-2 text-sm font-medium",l[e.tone],t.class)),role:"status"},[b("span",U9,[e.busy?(h(),C("span",{key:0,class:f1(f(E1)("absolute inline-flex h-full w-full animate-ping rounded-full opacity-60",n[e.tone]))},null,2)):P("",!0),b("span",{class:f1(f(E1)("relative inline-flex h-2 w-2 rounded-full",n[e.tone]))},null,2)]),b("span",null,N(e.label),1),o.value!==null?(h(),C("span",J9,N(o.value),1)):P("",!0)],2))}}),z9={key:0,class:"mb-3 flex justify-center text-muted-foreground"},j9={key:1,class:"mx-auto mt-1 max-w-lg text-sm text-muted-foreground"},X9={key:2,class:"mt-4 flex flex-wrap items-center justify-center gap-2"},We=$1({__name:"Empty",props:{title:{},compact:{type:Boolean,default:!1},class:{}},setup(e){const t=e;return(n,l)=>(h(),G(z1,{class:f1(f(E1)("px-6 text-center",t.compact?"py-8":"py-16",t.class))},{default:w(()=>[n.$slots.icon?(h(),C("div",z9,[K1(n.$slots,"icon")])):P("",!0),b("h2",{class:f1(f(E1)("font-semibold",t.compact?"text-base":"text-lg"))},N(e.title),3),n.$slots.default?(h(),C("p",j9,[K1(n.$slots,"default")])):P("",!0),n.$slots.actions?(h(),C("div",X9,[K1(n.$slots,"actions")])):P("",!0)]),_:3},8,["class"]))}}),q9={class:"relative flex items-center justify-center"},eu={key:0,class:"max-w-md text-sm text-muted-foreground"},tu=$1({__name:"Loading",props:{label:{default:"Working"},note:{},size:{default:"md"},fill:{type:Boolean,default:!0},class:{}},setup(e){const t=e,n={sm:"h-5 w-5",md:"h-8 w-8",lg:"h-10 w-10"},l={sm:"text-sm",md:"text-base",lg:"text-lg"},o=t1(()=>t.size==="sm"?"py-8":"py-16");return(r,s)=>(h(),C("div",{class:f1(f(E1)("flex flex-col items-center justify-center gap-3 text-center",e.fill?"min-h-0 flex-1":o.value,t.class)),role:"status","aria-live":"polite"},[b("span",q9,[b("span",{class:f1(f(E1)("absolute inline-flex animate-ping rounded-full bg-primary/20",n[e.size]))},null,2),I(f(Ua),{class:f1(f(E1)("relative animate-spin text-muted-foreground",n[e.size]))},null,8,["class"])]),b("p",{class:f1(f(E1)("font-medium",l[e.size]))},N(e.label),3),e.note||r.$slots.default?(h(),C("p",eu,[K1(r.$slots,"default",{},()=>[U(N(e.note),1)])])):P("",!0)],2))}}),nu={key:0,class:"shrink-0"},lu={class:"truncate"},gn=$1({__name:"Origin",props:{name:{},mono:{type:Boolean,default:!0},class:{}},setup(e){const t=e;return(n,l)=>(h(),C("span",{class:f1(f(E1)("inline-flex max-w-full items-center gap-1 rounded border border-border/60 bg-muted/40 px-1.5 py-0.5 text-[11px] text-muted-foreground",t.mono&&"font-mono",t.class))},[n.$slots.icon?(h(),C("span",nu,[K1(n.$slots,"icon")])):P("",!0),b("span",lu,N(e.name),1)],2))}}),ou={class:"font-semibold"},ru={class:"mt-3"},O3=$1({__name:"Section",props:{title:{},tone:{default:"neutral"},count:{default:null},collapsible:{type:Boolean,default:!1},closed:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n=z(!t.closed),l={neutral:"text-muted-foreground",info:"text-primary",success:"text-success",warning:"text-warning",danger:"text-destructive"},o={neutral:"bg-muted text-muted-foreground",info:"bg-primary/10 text-primary",success:"bg-success/10 text-success",warning:"bg-warning/10 text-warning",danger:"bg-destructive/10 text-destructive"},r=t1(()=>t.collapsible?n.value:!0);return(s,a)=>(h(),C("section",{class:f1(f(E1)("py-4 first:pt-0 last:pb-0",t.class))},[(h(),G(k2(e.collapsible?"button":"div"),{type:e.collapsible?"button":void 0,"aria-expanded":e.collapsible?String(n.value):void 0,class:f1(f(E1)("flex w-full items-center gap-2 text-left",e.collapsible&&"cursor-pointer")),onClick:a[0]||(a[0]=i=>e.collapsible&&(n.value=!n.value))},{default:w(()=>[s.$slots.icon?(h(),C("span",{key:0,class:f1(f(E1)("shrink-0",l[e.tone]))},[K1(s.$slots,"icon")],2)):P("",!0),b("h2",ou,N(e.title),1),e.count!==null?(h(),C("span",{key:1,class:f1(f(E1)("rounded-full px-2 py-0.5 text-xs font-medium tabular-nums",o[e.tone]))},N(e.count),3)):P("",!0),e.collapsible?(h(),G(f(Ha),{key:2,class:f1(f(E1)("ml-auto h-4 w-4 shrink-0 text-muted-foreground transition-transform",n.value&&"rotate-180"))},null,8,["class"])):P("",!0)]),_:3},8,["type","aria-expanded","class"])),Ne(b("div",ru,[K1(s.$slots,"default")],512),[[Oo,r.value]])],2))}});/** +`}return l}render(e,t,n){let l="";const o=this.rules;for(let r=0,s=e.length;r\s]/i.test(e)}function _c(e){return/^<\/a\s*>/i.test(e)}function Ic(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,l=t.length;n=0;a--){const i=o[a];if(i.type==="link_close"){for(a--;o[a].level!==i.level&&o[a].type!=="link_open";)a--;continue}if(i.type==="html_inline"&&(xc(i.content)&&s>0&&s--,_c(i.content)&&s++),!(s>0)&&i.type==="text"&&e.md.linkify.test(i.content)){const c=i.content;let u=e.md.linkify.match(c);const d=[];let A=i.level,m=0;u.length>0&&u[0].index===0&&a>0&&o[a-1].type==="text_special"&&(u=u.slice(1));for(let p=0;pm){const W=new e.Token("text","",0);W.content=c.slice(m,I),W.level=A,d.push(W)}const D=new e.Token("link_open","a",1);D.attrs=[["href",y]],D.level=A++,D.markup="linkify",D.info="auto",d.push(D);const w=new e.Token("text","",0);w.content=F,w.level=A,d.push(w);const B=new e.Token("link_close","a",-1);B.level=--A,B.markup="linkify",B.info="auto",d.push(B),m=u[p].lastIndex}if(m0){let a=o.length;for(const d of r)a+=d.nodes.length-1;const i=new Array(a);let c=0,u=0;r.reverse();for(let d=0;d=0;n--){const l=e[n];l.type==="text"&&!t&&(l.content=l.content.replace(Ec,Zc)),l.type==="link_open"&&l.info==="auto"&&t--,l.type==="link_close"&&l.info==="auto"&&t++}}function Bc(e){let t=0;for(let n=e.length-1;n>=0;n--){const l=e[n];l.type==="text"&&!t&&an.test(l.content)&&(l.content=l.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),l.type==="link_open"&&l.info==="auto"&&t--,l.type==="link_close"&&l.info==="auto"&&t++}}function Sc(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Mc.test(e.tokens[t].content)&&Fc(e.tokens[t].children),an.test(e.tokens[t].content)&&Bc(e.tokens[t].children))}var Rc=/['"]/,M7=/['"]/g,E7="’";function E4(e,t,n,l){e[t]||(e[t]=[]),e[t].push({pos:n,ch:l})}function Qc(e,t){let n="",l=0;t.sort((o,r)=>o.pos-r.pos);for(let o=0;o=0&&!(l[n].level<=a);n--);if(l.length=n+1,s.type!=="text")continue;const i=s.content;let c=0;const u=i.length;e:for(;c=0)g=i.charCodeAt(d.index-1);else for(n=r-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){g=e[n].content.charCodeAt(e[n].content.length-1);break}let y=32;if(c=48&&g<=57&&(m=A=!1),A&&m&&(A=F,m=I),!A&&!m){p&&E4(o,r,d.index,E7);continue}if(m)for(n=l.length-1;n>=0;n--){let B=l[n];if(l[n].level=0;t--)e.tokens[t].type!=="inline"||!Rc.test(e.tokens[t].content)||Nc(e.tokens[t].children,e)}function Gc(e){let t,n;const l=e.length;for(t=0;t0&&this.level++,this.tokens.push(l),l}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;et;)if(!T1(this.src.charCodeAt(--e)))return e+1;return e}skipChars(e,t){for(let n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e}getLines(e,t,n,l){if(e>=t)return"";const o=new Array(t-e);for(let r=0,s=e;sn?o[r]=new Array(a-n+1).join(" ")+this.src.slice(c,u):o[r]=this.src.slice(c,u)}return o.join("")}},$c=65536;function W5(e,t){const n=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];return e.src.slice(n,l)}function D7(e){const t=[],n=e.length;let l=0,o=e.charCodeAt(l),r=!1,s=0,a="";for(;ln)return!1;let o=t+1;if(e.sCount[o]=4)return!1;let r=e.bMarks[o]+e.tShift[o];if(r>=e.eMarks[o])return!1;const s=e.src.charCodeAt(r++);if(s!==124&&s!==45&&s!==58||r>=e.eMarks[o])return!1;const a=e.src.charCodeAt(r++);if(a!==124&&a!==45&&a!==58&&!T1(a)||s===45&&T1(a))return!1;for(;r=4)return!1;c=D7(i),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==u.length)return!1;if(l)return!0;const A=e.parentType;e.parentType="table";const m=e.md.block.ruler.getRules("blockquote"),p=e.push("table_open","table",1),g=[t,0];p.map=g;const y=e.push("thead_open","thead",1);y.map=[t,t+1];const F=e.push("tr_open","tr",1);F.map=[t,t+1];for(let w=0;w=4||(c=D7(i),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),D+=d-c.length,D>$c))break;if(o===t+2){const W=e.push("tbody_open","tbody",1);W.map=I=[t+2,0]}const B=e.push("tr_open","tr",1);B.map=[o,o+1];for(let W=0;W=4){l++,o=l;continue}break}e.line=o;const r=e.push("code_block","code",0);return r.content=e.getLines(t,o,4+e.blkIndent,!1)+` +`,r.map=[t,e.line],!0}function Pc(e,t,n,l){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>r)return!1;const s=e.src.charCodeAt(o);if(s!==126&&s!==96)return!1;let a=o;o=e.skipChars(o,s);let i=o-a;if(i<3)return!1;const c=e.src.slice(a,o),u=e.src.slice(o,r);if(s===96&&u.indexOf(String.fromCharCode(s))>=0)return!1;if(l)return!0;let d=t,A=!1;for(;d++,!(d>=n||(o=a=e.bMarks[d]+e.tShift[d],r=e.eMarks[d],o=4)&&(o=e.skipChars(o,s),!(o-a=4||e.src.charCodeAt(o)!==62)return!1;if(l)return!0;const a=[],i=[],c=[],u=[],d=e.md.block.ruler.getRules("blockquote"),A=e.parentType;e.parentType="blockquote";let m=!1,p;for(p=t;p=r)break;if(e.src.charCodeAt(o++)===62&&!D){let B=e.sCount[p]+1,W,Z;e.src.charCodeAt(o)===32?(o++,B++,Z=!1,W=!0):e.src.charCodeAt(o)===9?(W=!0,(e.bsCount[p]+B)%4===3?(o++,B++,Z=!1):Z=!0):W=!1;let _=B;for(a.push(e.bMarks[p]),e.bMarks[p]=o;o=r,i.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(W?1:0),c.push(e.sCount[p]),e.sCount[p]=_-B,u.push(e.tShift[p]),e.tShift[p]=o-e.bMarks[p];continue}if(m)break;let w=!1;for(let B=0,W=d.length;B";const F=[t,0];y.map=F,e.md.block.tokenize(e,t,p);const I=e.push("blockquote_close","blockquote",-1);I.markup=">",e.lineMax=s,e.parentType=A,F[1]=e.line;for(let D=0;D=4)return!1;let r=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(r++);if(s!==42&&s!==45&&s!==95)return!1;let a=1;for(;r=l)return-1;let r=e.src.charCodeAt(o++);if(r<48||r>57)return-1;for(;;){if(o>=l)return-1;if(r=e.src.charCodeAt(o++),r>=48&&r<=57){if(o-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return o=4||e.listIndent>=0&&e.sCount[i]-e.listIndent>=4&&e.sCount[i]=e.blkIndent&&(u=!0);let d,A,m;if((m=F7(e,i))>=0){if(d=!0,s=e.bMarks[i]+e.tShift[i],A=Number(e.src.slice(s,m-1)),u&&A!==1)return!1}else if((m=Z7(e,i))>=0)d=!1;else return!1;if(u&&e.skipSpaces(m)>=e.eMarks[i])return!1;if(l)return!0;const p=e.src.charCodeAt(m-1),g=e.tokens.length;d?(a=e.push("ordered_list_open","ol",1),A!==1&&(a.attrs=[["start",A]])):a=e.push("bullet_list_open","ul",1);const y=[i,0];a.map=y,a.markup=String.fromCharCode(p);let F=!1;const I=e.md.block.ruler.getRules("list"),D=e.parentType;for(e.parentType="list";i=o?Z=1:Z=B-w,Z>4&&(Z=1);const _=w+Z;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(p);const R=[i,0];a.map=R,d&&(a.info=e.src.slice(s,m-1));const S=e.tight,q=e.tShift[i],V=e.sCount[i],m1=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=_,e.tight=!0,e.tShift[i]=W-e.bMarks[i],e.sCount[i]=B,W>=o&&e.isEmpty(i+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,i,n),(!e.tight||F)&&(c=!1),F=e.line-i>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=m1,e.tShift[i]=q,e.sCount[i]=V,e.tight=S,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(p),i=e.line,R[1]=i,i>=n||e.sCount[i]=4)break;let b1=!1;for(let l1=0,o1=I.length;l1=4||e.src.charCodeAt(o)!==91)return!1;function a(w){const B=e.lineMax;if(w>=B||e.isEmpty(w))return null;let W=!1;if(e.sCount[w]-e.blkIndent>3&&(W=!0),e.sCount[w]<0&&(W=!0),!W){const R=e.md.block.ruler.getRules("reference"),S=e.parentType;e.parentType="reference";let q=!1;for(let V=0,m1=R.length;V"u"&&(e.env.references={}),typeof e.env.references[F]>"u"&&(e.env.references[F]={title:y,href:d});const I=e.push("reference_definition","",0);I.map=[t,s],I.hidden=!0;const D=Object.create(null);return D.label=F,I.meta=D,e.line=s,!0}var Jc=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],dn=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,fn="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",zc=new RegExp(`^(?:${dn}|${fn}||<[?][\\s\\S]*?[?]>|]*>|)`),jc=new RegExp(`^(?:${dn}|${fn})`),K3=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp(`^|$))`,"i"),/^$/,!0],[new RegExp(`${jc.source}\\s*$`),/^$/,!1]];function Xc(e,t,n,l){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let s=e.src.slice(o,r),a=0;for(;a=4)return!1;let s=e.src.charCodeAt(o);if(s!==35||o>=r)return!1;let a=1;for(s=e.src.charCodeAt(++o);s===35&&o6||oo&&T1(e.src.charCodeAt(i-1))&&(r=i),e.line=t+1;const c=e.push("heading_open",`h${a}`,1);c.markup="########".slice(0,a),c.map=[t,e.line];const u=e.push("inline","",0);u.content=h5(e.src.slice(o,r)),u.map=[t,e.line],u.children=[];const d=e.push("heading_close",`h${a}`,-1);return d.markup="########".slice(0,a),!0}function e9(e,t,n){const l=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let r=0,s,a=t+1;for(;a3)continue;if(e.sCount[a]>=e.blkIndent){let m=e.bMarks[a]+e.tShift[a];const p=e.eMarks[a];if(m=p))){r=s===61?1:2;break}}if(e.sCount[a]<0)continue;let A=!1;for(let m=0,p=l.length;m3||e.sCount[r]<0)continue;let c=!1;for(let u=0,d=l.length;u=n||e.sCount[s]=r){e.line=n;break}const i=e.line;let c=!1;for(let u=0;u=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(l),this.tokens_meta.push(o),l}scanDelims(e,t){const n=this.posMax,l=this.src.charCodeAt(e);let o;if(e===0)o=32;else if(e===1)o=this.src.charCodeAt(0),(o&63488)===55296&&(o=65533);else if(o=this.src.charCodeAt(e-1),(o&64512)===56320){const p=this.src.charCodeAt(e-2);o=(p&64512)===55296?65536+(p-55296<<10)+(o-56320):65533}else(o&64512)===55296&&(o=65533);let r=e;for(;r=65&&e<=90||e>=97&&e<=122}function r9(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function s9(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,l=e.posMax;if(n+3>l||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=n-Math.min(10,e.pending.length,n);let r=n;for(;r>o&&r9(e.src.charCodeAt(r-1));)r--;if(r===n||!o9(e.src.charCodeAt(r)))return!1;const s=n-r,a=e.md.linkify.matchAtStart(e.src.slice(r));if(!a)return!1;let i=a.url;if(i.length<=s)return!1;let c=i.length;for(;c>0&&i.charCodeAt(c-1)===42;)c--;c!==i.length&&(i=i.slice(0,c));const u=e.md.normalizeLink(i);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-s);const d=e.push("link_open","a",1);d.attrs=[["href",u]],d.markup="linkify",d.info="auto";const A=e.push("text","",0);A.content=e.md.normalizeLinkText(i);const m=e.push("link_close","a",-1);m.markup="linkify",m.info="auto"}return e.pos+=i.length-s,!0}function a9(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const l=e.pending.length-1,o=e.posMax;if(!t)if(l>=0&&e.pending.charCodeAt(l)===32)if(l>=1&&e.pending.charCodeAt(l-1)===32){let r=l-1;for(;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n?@[]^_`{|}~-".split("").forEach(function(e){Yt[e.charCodeAt(0)]=1});function i9(e,t){let n=e.pos;const l=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=l))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n=55296&&o<=56319&&n+1=56320&&a<=57343&&(r+=e.src[n+1],n++)}const s="\\"+r;if(!t){const a=e.push("text_special","",0);o<256&&Yt[o]!==0?a.content=r:a.content=s,a.markup=s,a.info="escape"}return e.pos=n+1,!0}function c9(e){const t={};let n=0;for(;(n=e.indexOf("`",n))!==-1;){const l=n;for(;e.charCodeAt(++n)===96;);t[n-l]=l}return t}function u9(e,t){var n;const l=e.pos;if(e.src.charCodeAt(l)!==96)return!1;const o=e.posMax;let r=l+1;for(;r=r){let i=r,c;for(;(c=e.src.indexOf("`",i))!==-1&&co)break;if(i-c===a){if(!t){const u=e.push("code_inline","code",0);u.markup=s;let d=e.src.slice(r,c).replace(/\n/g," ");d.startsWith(" ")&&d.endsWith(" ")&&/[^ ]/.test(d)&&(d=d.slice(1,-1)),u.content=d}return e.pos=i,!0}}}return t||(e.pending+=s),e.pos=r,!0}function d9(e,t){const n=e.pos,l=e.src.charCodeAt(n);if(t||l!==126)return!1;const o=e.scanDelims(e.pos,!0);let r=o.length;const s=String.fromCharCode(l);if(r<2)return!1;let a;r%2&&(a=e.push("text","",0),a.content=s,r--);for(let i=0;i=0;l--){const o=t[l];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const r=t[o.end],s=l>0&&t[l-1].end===o.end+1&&t[l-1].marker===o.marker&&t[l-1].token===o.token-1&&t[o.end+1].token===r.token+1,a=String.fromCharCode(o.marker),i=e.tokens[o.token];i.type=s?"strong_open":"em_open",i.tag=s?"strong":"em",i.nesting=1,i.markup=s?a+a:a,i.content="";const c=e.tokens[r.token];c.type=s?"strong_close":"em_close",c.tag=s?"strong":"em",c.nesting=-1,c.markup=s?a+a:a,c.content="",s&&(e.tokens[t[l-1].token].content="",e.tokens[t[o.end+1].token].content="",l--)}}function h9(e){const t=e.tokens_meta,n=e.tokens_meta.length;S7(e,e.delimiters);for(let o=0;o=d)return!1;if(i=p,o=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),o.ok){for(s=e.md.normalizeLink(o.str),e.md.validateLink(s)?p=o.pos:s="",i=p;p=d||e.src.charCodeAt(p)!==41)&&(c=!0),p++}if(c){if(typeof e.env.references>"u")return!1;if(p=0?l=e.src.slice(i,p++):p=m+1):p=m+1,l||(l=e.src.slice(A,m)),l=A5(l),r=e.env.references[l],!r)return e.pos=u,!1;s=r.href,a=r.title}if(!t){e.pos=A,e.posMax=m;const g=e.push("link_open","a",1),y=[["href",s]];if(g.attrs=y,a&&y.push(["title",a]),l){const F=Object.create(null);F.label=l,g.meta=F}e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=d,!0}function m9(e,t){let n,l,o,r,s,a,i,c,u="";const d=e.pos,A=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const m=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(r=p+1,r=A)return!1;for(c=r,a=e.md.helpers.parseLinkDestination(e.src,r,e.posMax),a.ok&&(u=e.md.normalizeLink(a.str),e.md.validateLink(u)?r=a.pos:u=""),c=r;r=A||e.src.charCodeAt(r)!==41)return e.pos=d,!1;r++}else{if(typeof e.env.references>"u")return!1;if(r=0?o=e.src.slice(c,r++):r=p+1):r=p+1,o||(o=e.src.slice(m,p)),o=A5(o),s=e.env.references[o],!s)return e.pos=d,!1;u=s.href,i=s.title}if(!t){l=e.src.slice(m,p);const g=[];e.md.inline.parse(l,e.md,e.env,g);const y=e.push("image","img",0),F=[["src",u],["alt",""]];if(y.attrs=F,y.children=g,y.content=l,i&&F.push(["title",i]),o){const I=Object.create(null);I.label=o,y.meta=I}}return e.pos=r,e.posMax=A,!0}var g9=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,v9=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function y9(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const l=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const r=e.src.slice(l+1,n);if(v9.test(r)){const s=e.md.normalizeLink(r);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const i=e.push("text","",0);i.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}if(g9.test(r)){const s=e.md.normalizeLink(`mailto:${r}`);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const i=e.push("text","",0);i.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}return!1}function b9(e){return/^\s]/i.test(e)}function k9(e){return/^<\/a\s*>/i.test(e)}function C9(e){const t=e|32;return t>=97&&t<=122}function w9(e,t){if(!e.md.options.html)return!1;const n=e.posMax,l=e.pos;if(e.src.charCodeAt(l)!==60||l+2>=n)return!1;const o=e.src.charCodeAt(l+1);if(o!==33&&o!==63&&o!==47&&!C9(o))return!1;const r=e.src.slice(l).match(zc);if(!r)return!1;if(!t){const s=e.push("html_inline","",0);s.content=r[0],b9(s.content)&&e.linkLevel++,k9(s.content)&&e.linkLevel--}return e.pos+=r[0].length,!0}var x9=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,_9=/^&([a-z][a-z0-9]{1,31});/i;function I9(e,t){const n=e.pos,l=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=l)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(x9);if(o){if(!t){const r=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0);s.content=Ht(r)?l4(r):l4(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(_9);if(o){const r=Y0(o[0]);if(r!==o[0]){if(!t){const s=e.push("text_special","",0);s.content=r,s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function R7(e){const t={},n=e.length;if(!n)return;let l=0,o=-2;const r=[];for(let s=0;si;c-=r[c]+1){const d=e[c];if(d.marker===a.marker&&d.open&&d.end<0){let A=!1;if((d.close||a.open)&&(d.length+a.length)%3===0&&(d.length%3!==0||a.length%3!==0)&&(A=!0),!A){const m=c>0&&!e[c-1].open?r[c-1]+1:0;r[s]=s-c+m,r[c]=m,a.open=!1,d.end=s,d.close=!1,u=-1,o=-2;break}}}u!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=u)}}function M9(e){const t=e.tokens_meta,n=e.tokens_meta.length;R7(e.delimiters);for(let o=0;o0&&l++,o[t].type==="text"&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,r[t]=e.pos}tokenize(e){const t=this.ruler.getRules(""),n=t.length,l=e.posMax,o=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=l)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,l){const o=new this.State(e,t,n,l);this.tokenize(o);const r=this.ruler2.getRules(""),s=r.length;for(let a=0;a=0))try{t.hostname=x7.toASCII(t.hostname)}catch{}return t.auth&&(t.auth=i3(t.auth)),t.hostname&&(t.hostname=i3(t.hostname)),t.pathname&&(t.pathname=i3(t.pathname)),t.search&&(t.search=i3(t.search)),t.hash&&(t.hash=i3(t.hash)),At(t)}normalizeLinkText(e){const t=ht(e,!0);if(t.hostname&&(!t.protocol||Q7.indexOf(t.protocol)>=0))try{t.hostname=x7.toUnicode(t.hostname)}catch{}return he(At(t),he.defaultChars+"%")}constructor(...e){A1(this,"inline",new gn),A1(this,"block",new An),A1(this,"core",new cn),A1(this,"renderer",new rn),A1(this,"linkify",new Wi),A1(this,"utils",qi),A1(this,"helpers",Object.assign({},pc));const[t,n]=e;typeof t=="string"?(this.configure(t),n&&this.set(n)):(this.configure("default"),this.set(t||{}))}set(e){return Object.assign(this.options,e),this}configure(e){let t;if(typeof e=="string"){const o=e;if(t=D9[o],!t)throw new Error(`Wrong 'markdown-it' preset "${o}", check name`)}else t=e;if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");t.options&&(this.options={...t.options});const n=t.components;if(n){var l;["core","block","inline"].forEach(r=>{var s;const a=(s=n[r])===null||s===void 0?void 0:s.rules;a&&this[r].ruler.enableOnly(a)});const o=(l=n.inline)===null||l===void 0?void 0:l.rules2;o&&this.inline.ruler2.enableOnly(o)}return this}enable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(o=>{n=n.concat(this[o].ruler.enable(e,!0))}),n=n.concat(this.inline.ruler2.enable(e,!0));const l=e.filter(o=>n.indexOf(o)<0);if(l.length&&!t)throw new Error(`MarkdownIt. Failed to enable unknown rule(s): ${l}`);return this}disable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(o=>{n=n.concat(this[o].ruler.disable(e,!0))}),n=n.concat(this.inline.ruler2.disable(e,!0));const l=e.filter(o=>n.indexOf(o)<0);if(l.length&&!t)throw new Error(`MarkdownIt. Failed to disable unknown rule(s): ${l}`);return this}use(e,...t){return e.apply(e,[this,...t]),this}parse(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens}render(e,t={}){return this.renderer.render(this.parse(e,t),this.options,t)}parseInline(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens}renderInline(e,t={}){return this.renderer.render(this.parseInline(e,t),this.options,t)}};A1(q2,"Token",V3);A1(q2,"Ruler",i4);A1(q2,"Renderer",rn);A1(q2,"ParserCore",cn);A1(q2,"StateCore",sn);A1(q2,"ParserBlock",An);A1(q2,"StateBlock",un);A1(q2,"ParserInline",gn);A1(q2,"StateInline",hn);var B9=nn(q2);const S9=["innerHTML"],S2=O1({__name:"Markdown",props:{source:{},class:{}},setup(e){const t=e,n=new B9({html:!1,linkify:!0,breaks:!1}),l=t1(()=>n.render(t.source??"")),o=["prose prose-sm max-w-none","prose-headings:text-foreground prose-headings:font-semibold","prose-p:text-muted-foreground prose-li:text-muted-foreground","prose-strong:text-foreground prose-em:text-foreground","prose-a:text-primary prose-a:no-underline hover:prose-a:underline","prose-code:text-foreground prose-code:before:content-none prose-code:after:content-none","prose-code:rounded prose-code:bg-muted/60 prose-code:px-1 prose-code:py-0.5","prose-pre:bg-muted/50 prose-pre:text-foreground prose-pre:border","prose-blockquote:border-border prose-blockquote:text-muted-foreground","prose-hr:border-border prose-th:text-foreground prose-td:text-muted-foreground"].join(" ");return(r,s)=>(h(),C("div",{class:c1(f(x1)(f(o),t.class)),innerHTML:l.value},null,10,S9))}}),R9={key:0,class:"space-y-2 border-b bg-muted/30 p-3"},Q9={class:"px-3 py-2"},N9={key:0,class:"overflow-x-auto border-t bg-destructive/10 px-3 py-2 font-mono text-xs"},K9={key:1,class:"overflow-x-auto border-t bg-success/10 px-3 py-2 font-mono text-xs"},G9={key:1,class:"p-4 text-sm text-muted-foreground"},O9={key:2,class:"overflow-x-auto"},$9={class:"w-full border-collapse font-mono text-xs leading-relaxed"},W9={class:"w-12 select-none border-r px-2 text-right align-top text-muted-foreground"},L9={class:"w-12 select-none border-r px-2 text-right align-top text-muted-foreground"},P9={class:"w-4 select-none pl-2 align-top text-muted-foreground"},T9={class:"whitespace-pre-wrap break-all py-0.5 pr-3 align-top"},H9={colspan:"4",class:"px-3 py-2"},Y9={class:"px-3 py-2"},V9={key:0,class:"overflow-x-auto border-t bg-destructive/10 px-3 py-2 font-mono text-xs"},U9={key:1,class:"overflow-x-auto border-t bg-success/10 px-3 py-2 font-mono text-xs"},J9=O1({__name:"Diff",props:{patch:{default:""},notes:{default:()=>[]},class:{}},setup(e){const t=e,n={neutral:"bg-card",info:"border-primary/30 bg-primary/5",success:"border-success/40 bg-success/5",warning:"border-warning/40 bg-warning/5",danger:"border-destructive/40 bg-destructive/5"};function l(u){return u.severity==="blocking"?n.danger:n[u.tone??"neutral"]??n.neutral}const o=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/,r=t1(()=>{const u=[];let d=0,A=0,m=!1;for(const p of(t.patch??"").split(` +`)){const g=o.exec(p);if(g){d=Number(g[1]),A=Number(g[2]),m=!0,u.push({kind:"hunk",text:p,before:null,after:null});continue}m&&(p.startsWith("+")?u.push({kind:"added",text:p.slice(1),before:null,after:A++}):p.startsWith("-")?u.push({kind:"removed",text:p.slice(1),before:d++,after:null}):p.startsWith("\\")?u.push({kind:"meta",text:p,before:null,after:null}):u.push({kind:"kept",text:p.slice(1),before:d++,after:A++}))}return u}),s={added:"bg-success/10",removed:"bg-destructive/10",hunk:"bg-muted/60 text-muted-foreground",meta:"text-muted-foreground",kept:""},a={added:"+",removed:"-",kept:" ",hunk:"",meta:""},i=t1(()=>{const u=new Map;for(const d of t.notes??[])d.line&&u.set(d.line,[...u.get(d.line)??[],d]);return u}),c=t1(()=>(t.notes??[]).filter(u=>!u.line));return(u,d)=>(h(),C("div",{class:c1(f(x1)("overflow-hidden rounded-md border",t.class))},[c.value.length?(h(),C("div",R9,[(h(!0),C(n1,null,M1(c.value,(A,m)=>(h(),C("div",{key:m,class:c1(["rounded border text-sm",l(A)])},[k("div",Q9,[A.from?(h(),G(Pe,{key:0,tone:A.severity==="blocking"?"danger":A.tone??"neutral",title:String(A.from),label:String(A.from).toLowerCase(),class:"mr-2"},null,8,["tone","title","label"])):L("",!0),M(S2,{source:A.detail,class:"inline [&>p]:inline"},null,8,["source"])]),A.replacing?(h(),C("pre",N9,Q(A.replacing),1)):L("",!0),A.code?(h(),C("pre",K9,Q(A.code),1)):L("",!0)],2))),128))])):L("",!0),r.value.length?(h(),C("div",O9,[k("table",$9,[k("tbody",null,[(h(!0),C(n1,null,M1(r.value,(A,m)=>(h(),C(n1,{key:m},[k("tr",{class:c1(s[A.kind])},[k("td",W9,Q(A.before??""),1),k("td",L9,Q(A.after??""),1),k("td",P9,Q(a[A.kind]),1),k("td",T9,Q(A.text),1)],2),(h(!0),C(n1,null,M1(i.value.get(A.after??-1)??[],(p,g)=>(h(),C("tr",{key:`${m}-${g}`},[k("td",H9,[k("div",{class:c1(["rounded border font-sans text-sm",l(p)])},[k("div",Y9,[p.from?(h(),G(Pe,{key:0,tone:p.severity==="blocking"?"danger":p.tone??"neutral",title:String(p.from),label:String(p.from).toLowerCase(),class:"mr-2"},null,8,["tone","title","label"])):L("",!0),M(S2,{source:p.detail,class:"inline [&>p]:inline"},null,8,["source"])]),p.replacing?(h(),C("pre",V9,Q(p.replacing),1)):L("",!0),p.code?(h(),C("pre",U9,Q(p.code),1)):L("",!0)],2)])]))),128))],64))),128))])])])):(h(),C("div",G9," Nothing to show for this one. It may be a file git stores whole rather than as lines. "))],2))}}),z9={class:"flex items-center gap-2.5"},j9=O1({__name:"Logo",props:{size:{default:"md"},showText:{type:Boolean,default:!0}},setup(e){const t={sm:"h-7 w-7 min-h-7 min-w-7",md:"h-8 w-8 min-h-8 min-w-8",lg:"h-10 w-10 min-h-10 min-w-10"},n={sm:"text-base",md:"text-lg",lg:"text-xl"};return(l,o)=>(h(),C("div",z9,[k("div",{class:c1([t[e.size],"relative flex-shrink-0"])},[...o[0]||(o[0]=[Co('',1)])],2),e.showText?(h(),C("span",{key:0,class:c1([n[e.size],"font-semibold tracking-tight"])},[...o[1]||(o[1]=[k("span",{class:"text-brand"},"Source",-1),k("span",{class:"text-brand"},"Ant",-1),k("span",{class:"text-muted-foreground font-normal ml-1"},"Memory",-1)])],2)):L("",!0)]))}}),X9={key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4"},Vt=O1({__name:"Modal",props:{open:{type:Boolean},class:{},maxWidth:{default:"lg"}},emits:["close"],setup(e,{emit:t}){const n=e,l=t,o={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl"};function r(s){s.key==="Escape"&&l("close")}return f2(()=>window.addEventListener("keydown",r)),ve(()=>window.removeEventListener("keydown",r)),(s,a)=>(h(),G(Fl,{to:"body"},[M(a0,{"enter-active-class":"transition duration-200","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition duration-150","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:x(()=>[e.open?(h(),C("div",X9,[k("div",{class:"absolute inset-0 bg-background/80 backdrop-blur-sm",onClick:a[0]||(a[0]=i=>l("close"))}),M(j1,{class:c1(f(x1)("relative w-full max-h-[85vh] overflow-auto p-6 animate-fade-up",o[e.maxWidth],n.class))},{default:x(()=>[k("button",{class:"absolute top-4 right-4 p-1 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",onClick:a[1]||(a[1]=i=>l("close"))},[M(f(Lt),{class:"h-4 w-4"})]),K1(s.$slots,"default")]),_:3},8,["class"])])):L("",!0)]),_:3})]))}}),q9=["role"],eu={class:"min-w-0 flex-1"},d2=O1({__name:"Notice",props:{tone:{default:"info"},icon:{type:Boolean,default:!0},class:{}},setup(e){const t=e,n={info:"border-border bg-muted/50 text-foreground",success:"border-success/40 bg-success/10 text-foreground",warning:"border-warning/40 bg-warning/10 text-foreground",danger:"border-destructive/40 bg-destructive/10 text-foreground"},l={info:ja,success:za,warning:qa,danger:Ja},o={info:"text-muted-foreground",success:"text-success",warning:"text-warning",danger:"text-destructive"},r=t1(()=>l[t.tone]);return(s,a)=>(h(),C("div",{class:c1(f(x1)("flex gap-3 rounded-md border px-4 py-3 text-sm",n[e.tone],t.class)),role:e.tone==="danger"?"alert":"status"},[e.icon?(h(),G(k2(r.value),{key:0,class:c1(f(x1)("mt-0.5 h-4 w-4 shrink-0",o[e.tone]))},null,8,["class"])):L("",!0),k("div",eu,[K1(s.$slots,"default")]),K1(s.$slots,"actions")],10,q9))}}),tu={class:"relative flex h-2 w-2 shrink-0"},nu={key:0,class:"text-muted-foreground tabular-nums"},vn=O1({__name:"Status",props:{tone:{default:"neutral"},label:{},count:{default:null},busy:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={neutral:"bg-muted-foreground",info:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-destructive"},l={neutral:"text-muted-foreground",info:"text-foreground",success:"text-foreground",warning:"text-foreground",danger:"text-foreground"},o=t1(()=>t.count===null||t.count===void 0?null:t.count);return(r,s)=>(h(),C("span",{class:c1(f(x1)("inline-flex items-center gap-2 text-sm font-medium",l[e.tone],t.class)),role:"status"},[k("span",tu,[e.busy?(h(),C("span",{key:0,class:c1(f(x1)("absolute inline-flex h-full w-full animate-ping rounded-full opacity-60",n[e.tone]))},null,2)):L("",!0),k("span",{class:c1(f(x1)("relative inline-flex h-2 w-2 rounded-full",n[e.tone]))},null,2)]),k("span",null,Q(e.label),1),o.value!==null?(h(),C("span",nu,Q(o.value),1)):L("",!0)],2))}}),lu={key:0,class:"mb-3 flex justify-center text-muted-foreground"},ou={key:1,class:"mx-auto mt-1 max-w-lg text-sm text-muted-foreground"},ru={key:2,class:"mt-4 flex flex-wrap items-center justify-center gap-2"},Te=O1({__name:"Empty",props:{title:{},compact:{type:Boolean,default:!1},class:{}},setup(e){const t=e;return(n,l)=>(h(),G(j1,{class:c1(f(x1)("px-6 text-center",t.compact?"py-8":"py-16",t.class))},{default:x(()=>[n.$slots.icon?(h(),C("div",lu,[K1(n.$slots,"icon")])):L("",!0),k("h2",{class:c1(f(x1)("font-semibold",t.compact?"text-base":"text-lg"))},Q(e.title),3),n.$slots.default?(h(),C("p",ou,[K1(n.$slots,"default")])):L("",!0),n.$slots.actions?(h(),C("div",ru,[K1(n.$slots,"actions")])):L("",!0)]),_:3},8,["class"]))}}),su={class:"relative flex items-center justify-center"},au={class:"animate-fade-in space-y-1.5"},yn=O1({__name:"Loading",props:{label:{default:"Working"},source:{},note:{},size:{default:"md"},fill:{type:Boolean,default:!0},class:{}},setup(e){const t=e,n={sm:"h-10 w-10",md:"h-14 w-14",lg:"h-16 w-16"},l={sm:"h-14 w-14",md:"h-20 w-20",lg:"h-24 w-24"},o={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2.5 w-2.5"},r={sm:"text-xs",md:"text-sm",lg:"text-base"},s={sm:"text-[11px]",md:"text-xs",lg:"text-sm"},a=t1(()=>t.size==="sm"?"py-8":"py-16"),i=t1(()=>t.source?`${t.label} from ${t.source}`:t.label);return(c,u)=>(h(),C("div",{class:c1(f(x1)("flex flex-col items-center justify-center gap-5 px-6 text-center",e.fill?"min-h-0 flex-1":a.value,t.class)),role:"status","aria-live":"polite"},[k("div",su,[k("span",{class:c1(f(x1)("absolute animate-pulse rounded-full bg-primary/25 blur-2xl",l[e.size])),"aria-hidden":"true"},null,2),k("span",{class:c1(f(x1)("rounded-full border-2 border-border/70",n[e.size])),"aria-hidden":"true"},null,2),k("span",{class:c1(f(x1)("absolute animate-spin rounded-full border-2 border-transparent border-t-primary border-r-primary/50",n[e.size])),"aria-hidden":"true"},null,2),k("span",{class:c1(f(x1)("absolute animate-pulse rounded-full bg-primary",o[e.size])),"aria-hidden":"true"},null,2)]),k("div",au,[k("p",{class:c1(f(x1)("font-medium text-foreground",r[e.size]))},Q(i.value),3),e.note||c.$slots.default?(h(),C("p",{key:0,class:c1(f(x1)("mx-auto max-w-md text-muted-foreground",s[e.size]))},[K1(c.$slots,"default",{},()=>[J(Q(e.note),1)])],2)):L("",!0)])],2))}}),iu={key:0,class:"shrink-0"},cu={class:"truncate"},bn=O1({__name:"Origin",props:{name:{},mono:{type:Boolean,default:!0},class:{}},setup(e){const t=e;return(n,l)=>(h(),C("span",{class:c1(f(x1)("inline-flex max-w-full items-center gap-1 rounded border border-border/60 bg-muted/40 px-1.5 py-0.5 text-[11px] text-muted-foreground",t.mono&&"font-mono",t.class))},[n.$slots.icon?(h(),C("span",iu,[K1(n.$slots,"icon")])):L("",!0),k("span",cu,Q(e.name),1)],2))}}),uu={class:"font-semibold"},du={class:"mt-3"},G3=O1({__name:"Section",props:{title:{},tone:{default:"neutral"},count:{default:null},collapsible:{type:Boolean,default:!1},closed:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n=j(!t.closed),l={neutral:"text-muted-foreground",info:"text-primary",success:"text-success",warning:"text-warning",danger:"text-destructive"},o={neutral:"bg-muted text-muted-foreground",info:"bg-primary/10 text-primary",success:"bg-success/10 text-success",warning:"bg-warning/10 text-warning",danger:"bg-destructive/10 text-destructive"},r=t1(()=>t.collapsible?n.value:!0);return(s,a)=>(h(),C("section",{class:c1(f(x1)("py-4 first:pt-0 last:pb-0",t.class))},[(h(),G(k2(e.collapsible?"button":"div"),{type:e.collapsible?"button":void 0,"aria-expanded":e.collapsible?String(n.value):void 0,class:c1(f(x1)("flex w-full items-center gap-2 text-left",e.collapsible&&"cursor-pointer")),onClick:a[0]||(a[0]=i=>e.collapsible&&(n.value=!n.value))},{default:x(()=>[s.$slots.icon?(h(),C("span",{key:0,class:c1(f(x1)("shrink-0",l[e.tone]))},[K1(s.$slots,"icon")],2)):L("",!0),k("h2",uu,Q(e.title),1),e.count!==null?(h(),C("span",{key:1,class:c1(f(x1)("rounded-full px-2 py-0.5 text-xs font-medium tabular-nums",o[e.tone]))},Q(e.count),3)):L("",!0),e.collapsible?(h(),G(f(Ua),{key:2,class:c1(f(x1)("ml-auto h-4 w-4 shrink-0 text-muted-foreground transition-transform",n.value&&"rotate-180"))},null,8,["class"])):L("",!0)]),_:3},8,["type","aria-expanded","class"])),Oe(k("div",du,[K1(s.$slots,"default")],512),[[To,r.value]])],2))}});/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const su=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** + */const fu=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const S7=e=>e==="";/** + */const N7=e=>e==="";/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const au=(...e)=>e.filter((t,n,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===n).join(" ").trim();/** + */const Au=(...e)=>e.filter((t,n,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===n).join(" ").trim();/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const R7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** + */const K7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const iu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,l)=>l?l.toUpperCase():n.toLowerCase());/** + */const hu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,l)=>l?l.toUpperCase():n.toLowerCase());/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const cu=e=>{const t=iu(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** + */const pu=e=>{const t=hu(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var Me={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** + */var De={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const uu=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":l,strokeWidth:o,"stroke-width":r,size:s=Me.width,color:a=Me.stroke,...i},{slots:c})=>A3("svg",{...Me,...i,width:s,height:s,stroke:a,"stroke-width":S7(n)||S7(l)||n===!0||l===!0?Number(o||r||Me["stroke-width"])*24/Number(s):o||r||Me["stroke-width"],class:au("lucide",i.class,...e?[`lucide-${R7(cu(e))}-icon`,`lucide-${R7(e)}`]:["lucide-icon"]),...!c.default&&!su(i)&&{"aria-hidden":"true"}},[...t.map(d=>A3(...d)),...c.default?[c.default()]:[]]);/** + */const mu=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":l,strokeWidth:o,"stroke-width":r,size:s=De.width,color:a=De.stroke,...i},{slots:c})=>A3("svg",{...De,...i,width:s,height:s,stroke:a,"stroke-width":N7(n)||N7(l)||n===!0||l===!0?Number(o||r||De["stroke-width"])*24/Number(s):o||r||De["stroke-width"],class:Au("lucide",i.class,...e?[`lucide-${K7(pu(e))}-icon`,`lucide-${K7(e)}`]:["lucide-icon"]),...!c.default&&!fu(i)&&{"aria-hidden":"true"}},[...t.map(u=>A3(...u)),...c.default?[c.default()]:[]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const F1=(e,t)=>(n,{slots:l,attrs:o})=>A3(uu,{...o,...n,iconNode:t,name:e},l);/** + */const F1=(e,t)=>(n,{slots:l,attrs:o})=>A3(mu,{...o,...n,iconNode:t,name:e},l);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Yt=F1("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** + */const Ut=F1("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const du=F1("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** + */const gu=F1("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const vn=F1("book-open-check",[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]]);/** + */const kn=F1("book-open-check",[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const S4=F1("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** + */const Q4=F1("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const i4=F1("boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/** + */const c4=F1("boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const fu=F1("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);/** + */const vu=F1("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const he=F1("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** + */const me=F1("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Au=F1("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** + */const yu=F1("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Q7=F1("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** + */const G7=F1("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const hu=F1("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** + */const bu=F1("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const pu=F1("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** + */const ku=F1("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const pt=F1("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** + */const mt=F1("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const mu=F1("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]);/** + */const Cu=F1("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. @@ -245,7 +240,7 @@ var Bn=Object.defineProperty;var Sn=(e,t,n)=>t in e?Bn(e,t,{enumerable:!0,config * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const N7=F1("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** + */const O7=F1("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. @@ -255,42 +250,42 @@ var Bn=Object.defineProperty;var Sn=(e,t,n)=>t in e?Bn(e,t,{enumerable:!0,config * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const gu=F1("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/** + */const wu=F1("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const yn=F1("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** + */const Cn=F1("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const V4=F1("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** + */const J4=F1("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const bn=F1("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** + */const wn=F1("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const M2=F1("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** + */const D2=F1("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const vu=F1("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);/** + */const xu=F1("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const yu=F1("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);/** + */const _u=F1("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const kn=F1("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/** + */const xn=F1("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. @@ -300,7 +295,7 @@ var Bn=Object.defineProperty;var Sn=(e,t,n)=>t in e?Bn(e,t,{enumerable:!0,config * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const bu=F1("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** + */const Iu=F1("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. @@ -310,75 +305,75 @@ var Bn=Object.defineProperty;var Sn=(e,t,n)=>t in e?Bn(e,t,{enumerable:!0,config * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Cn=F1("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** + */const _n=F1("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ku=F1("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** + */const Mu=F1("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const c4=F1("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/** + */const u4=F1("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const wn=F1("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/** + */const In=F1("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const mt=F1("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** + */const gt=F1("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Le=F1("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** + */const He=F1("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const gt=F1("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);/** + */const vt=F1("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const xn=F1("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** + */const Mn=F1("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const h4=F1("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/** + */const m4=F1("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Cu=F1("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** + */const Eu=F1("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const _n=F1("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/** + */const En=F1("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const In=F1("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Q2(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}function wu(e){var t,n,l,o,r,s,a;const i=(t=e.meta)===null||t===void 0?void 0:t.title,c=(n=e.meta)===null||n===void 0?void 0:n.creator,d=(l=e.meta)===null||l===void 0?void 0:l.source,u=(r=(o=e.meta)===null||o===void 0?void 0:o.license)===null||r===void 0?void 0:r.url,A=xu(e);return!i&&!c&&!d&&!u&&!A?"":''+(i?`${Q2(i)}`:"")+(c?`${Q2(c)}`:"")+(d?`${Q2((a=(s=e.meta)===null||s===void 0?void 0:s.source)!==null&&a!==void 0?a:"")}`:"")+(u?`${Q2(u)}`:"")+(A?`${Q2(A)}`:"")+""}function xu(e){var t,n,l,o,r,s,a,i,c,d,u,A,m,p,y;let k=!((t=e.meta)===null||t===void 0)&&t.title?`„${(n=e.meta)===null||n===void 0?void 0:n.title}”`:"Design",F=`„${(o=(l=e.meta)===null||l===void 0?void 0:l.creator)!==null&&o!==void 0?o:"Unknown"}”`;!((r=e.meta)===null||r===void 0)&&r.source&&(k+=` (${e.meta.source})`);let M="";return((a=(s=e.meta)===null||s===void 0?void 0:s.license)===null||a===void 0?void 0:a.name)!=="MIT"&&((i=e.meta)===null||i===void 0?void 0:i.creator)!=="DiceBear"&&(!((c=e.meta)===null||c===void 0)&&c.title)&&(M+="Remix of "),M+=`${k} by ${F}`,!((u=(d=e.meta)===null||d===void 0?void 0:d.license)===null||u===void 0)&&u.name&&(M+=`, licensed under „${(m=(A=e.meta)===null||A===void 0?void 0:A.license)===null||m===void 0?void 0:m.name}”`,!((y=(p=e.meta)===null||p===void 0?void 0:p.license)===null||y===void 0)&&y.url&&(M+=` (${e.meta.license.url})`)),M}const K7=-2147483648,_u=2147483647,Iu=1024;function Mn(e){return e^=e<<13,e^=e>>17,e^=e<<5,e}function Mu(e){let t=0;for(let n=0;nt=Mn(t),l=(o,r)=>Math.floor((n()-K7)/(_u-K7)*(r+1-o)+o);return{seed:e,next:n,bool(o=50){return l(1,100)<=o},integer(o,r){return l(o,r)},pick(o,r){var s;return o.length===0?(n(),r):(s=o[l(0,o.length-1)])!==null&&s!==void 0?s:r},shuffle(o){const r=U4(n().toString()),s=[...o];for(let a=s.length-1;a>0;a--){const i=r.integer(0,a);[s[a],s[i]]=[s[i],s[a]]}return s},string(o,r="abcdefghijklmnopqrstuvwxyz1234567890"){const s=U4(n().toString());let a="";for(let i=0;i`;switch(l){case"solid":return c+e.body;case"gradientLinear":return``+e.body}}function Du(e,t){let{width:n,height:l,x:o,y:r}=ve(e),s=t?(t-100)/100:0,a=(n/2+o)*s*-1,i=(l/2+r)*s*-1;return`${e.body}`}function Zu(e,t,n){let l=ve(e),o=(l.width+l.x*2)*((t??0)/100),r=(l.height+l.y*2)*((n??0)/100);return`${e.body}`}function Fu(e,t){let{width:n,height:l,x:o,y:r}=ve(e);return`${e.body}`}function Bu(e){let{width:t,x:n}=ve(e);return`${e.body}`}function Su(e,t){let{width:n,height:l,x:o,y:r}=ve(e),s=t?n*t/100:0,a=t?l*t/100:0;return`${e.body}`}function Ru(e){const t={xmlns:"http://www.w3.org/2000/svg",...e.attributes};return Object.keys(t).map(n=>`${Q2(n)}="${Q2(t[n])}"`).join(" ")}function Qu(e){const t=U4(Math.random().toString()),n={};return e.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(l,o,r,s)=>(n[r]=n[r]||t.string(8),`${o}${n[r]}${s}`))}const Nu={properties:{seed:{type:"string"},flip:{type:"boolean",default:!1},rotate:{type:"integer",minimum:0,maximum:360,default:0},scale:{type:"integer",minimum:0,maximum:200,default:100},radius:{type:"integer",minimum:0,maximum:50,default:0},size:{type:"integer",minimum:1},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"}},backgroundType:{type:"array",items:{type:"string",enum:["solid","gradientLinear"]},default:["solid"]},backgroundRotation:{type:"array",items:{type:"integer",minimum:-360,maximum:360},default:[0,360]},translateX:{type:"integer",minimum:-100,maximum:100,default:0},translateY:{type:"integer",minimum:-100,maximum:100,default:0},clip:{type:"boolean",default:!0},randomizeIds:{type:"boolean",default:!1}}};function G7(e){var t;let n={},l=(t=e.properties)!==null&&t!==void 0?t:{};return Object.keys(l).forEach(o=>{let r=l[o];typeof r=="object"&&r.default!==void 0&&(Array.isArray(r.default)?n[o]=[...r.default]:typeof r.default=="object"?n[o]={...r.default}:n[o]=r.default)}),n}function Ku(e,t){var n;let l={...G7(Nu),...G7((n=e.schema)!==null&&n!==void 0?n:{}),...t};return JSON.parse(JSON.stringify(l))}function O7(e){return e==="transparent"?e:`#${e}`}function Gu(e,t,n){var l;let o=e.shuffle(t);o.length<=1||t.length==2&&n=="gradientLinear"?(o=t,e.next()):o=e.shuffle(t),o.length===0&&(o=["transparent"]);const r=o[0],s=(l=o[1])!==null&&l!==void 0?l:o[0];return{primary:O7(r),secondary:O7(s)}}function Ou(e,t={}){var n,l,o,r,s;t=Ku(e,t);const a=U4(t.seed),i=e.create({prng:a,options:t}),c=a.pick((n=t.backgroundType)!==null&&n!==void 0?n:[],"solid"),{primary:d,secondary:u}=Gu(a,(l=t.backgroundColor)!==null&&l!==void 0?l:[],c),A=a.integer(!((o=t.backgroundRotation)===null||o===void 0)&&o.length?Math.min(...t.backgroundRotation):0,!((r=t.backgroundRotation)===null||r===void 0)&&r.length?Math.max(...t.backgroundRotation):0);t.size&&(i.attributes.width=t.size.toString(),i.attributes.height=t.size.toString()),t.scale!==void 0&&t.scale!==100&&(i.body=Du(i,t.scale)),t.flip&&(i.body=Bu(i)),t.rotate&&(i.body=Fu(i,t.rotate)),(t.translateX||t.translateY)&&(i.body=Zu(i,t.translateX,t.translateY)),d!=="transparent"&&u!=="transparent"&&(i.body=Eu(i,d,u,c,A)),(t.radius||t.clip)&&(i.body=Su(i,(s=t.radius)!==null&&s!==void 0?s:0)),t.randomizeIds&&(i.body=Qu(i));const m=Ru(i),p=wu(e),y=`${p}${i.body}`;return{toString:()=>y,toJson:()=>{var k;return{svg:y,extra:{primaryBackgroundColor:d,secondaryBackgroundColor:u,backgroundType:c,backgroundRotation:A,...(k=i.extra)===null||k===void 0?void 0:k.call(i)}}},toDataUri:()=>`data:image/svg+xml;utf8,${encodeURIComponent(y)}`}}const $u={variant01:(e,t)=>''},Wu={variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant09:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant08:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant07:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant06:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant05:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant04:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant03:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant02:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant01:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`}},Lu={variant63:(e,t)=>'',variant62:(e,t)=>'',variant61:(e,t)=>'',variant60:(e,t)=>'',variant59:(e,t)=>'',variant58:(e,t)=>'',variant57:(e,t)=>'',variant56:(e,t)=>'',variant55:(e,t)=>'',variant54:(e,t)=>'',variant53:(e,t)=>'',variant52:(e,t)=>'',variant51:(e,t)=>'',variant50:(e,t)=>'',variant49:(e,t)=>'',variant48:(e,t)=>'',variant47:(e,t)=>'',variant46:(e,t)=>'',variant45:(e,t)=>'',variant44:(e,t)=>'',variant43:(e,t)=>'',variant42:(e,t)=>'',variant41:(e,t)=>'',variant40:(e,t)=>'',variant39:(e,t)=>'',variant38:(e,t)=>'',variant37:(e,t)=>'',variant36:(e,t)=>'',variant35:(e,t)=>'',variant34:(e,t)=>'',variant33:(e,t)=>'',variant32:(e,t)=>'',variant31:(e,t)=>'',variant30:(e,t)=>'',variant29:(e,t)=>'',variant28:(e,t)=>'',variant27:(e,t)=>'',variant26:(e,t)=>'',variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>'',hat:(e,t)=>''},Pu={variant30:(e,t)=>'',variant29:(e,t)=>'',variant28:(e,t)=>'',variant27:(e,t)=>'',variant26:(e,t)=>'',variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Hu={variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Tu={variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Yu={variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Vu={variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Uu={variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Ju={wavePointLongArms:(e,t)=>'',waveOkLongArms:(e,t)=>'',waveLongArms:(e,t)=>'',waveLongArm:(e,t)=>'',pointLongArm:(e,t)=>'',okLongArm:(e,t)=>'',point:(e,t)=>'',ok:(e,t)=>'',hand:(e,t)=>'',handPhone:(e,t)=>''},zu={electric:(e,t)=>'',saturn:(e,t)=>'',galaxy:(e,t)=>''},ju=Object.freeze(Object.defineProperty({__proto__:null,base:$u,beard:Hu,body:Wu,bodyIcon:zu,brows:Uu,eyes:Yu,gesture:Ju,glasses:Vu,hair:Lu,lips:Pu,nose:Tu},Symbol.toStringTag,{value:"Module"}));function Z2({prng:e,group:t,values:n=[]}){const l=ju,o=e.pick(n);if(o&&l[t][o])return{name:o,value:l[t][o]}}function Xu({prng:e,options:t}){const n=Z2({prng:e,group:"base",values:t.base}),l=Z2({prng:e,group:"body",values:t.body}),o=Z2({prng:e,group:"hair",values:t.hair}),r=Z2({prng:e,group:"lips",values:t.lips}),s=Z2({prng:e,group:"beard",values:t.beard}),a=Z2({prng:e,group:"nose",values:t.nose}),i=Z2({prng:e,group:"eyes",values:t.eyes}),c=Z2({prng:e,group:"glasses",values:t.glasses}),d=Z2({prng:e,group:"brows",values:t.brows}),u=Z2({prng:e,group:"gesture",values:t.gesture}),A=Z2({prng:e,group:"bodyIcon",values:t.bodyIcon});return{base:n,body:l,hair:o,lips:r,beard:e.bool(t.beardProbability)?s:void 0,nose:a,eyes:i,glasses:e.bool(t.glassesProbability)?c:void 0,brows:d,gesture:e.bool(t.gestureProbability)?u:void 0,bodyIcon:e.bool(t.bodyIconProbability)?A:void 0}}function qu({prng:e,options:t}){return{}}const ed={$schema:"http://json-schema.org/draft-07/schema#",properties:{base:{type:"array",items:{type:"string",enum:["variant01"]},default:["variant01"]},beard:{type:"array",items:{type:"string",enum:["variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},beardProbability:{type:"integer",minimum:0,maximum:100,default:10},body:{type:"array",items:{type:"string",enum:["variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},bodyIcon:{type:"array",items:{type:"string",enum:["electric","saturn","galaxy"]},default:["electric","saturn","galaxy"]},bodyIconProbability:{type:"integer",minimum:0,maximum:100,default:75},brows:{type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyes:{type:"array",items:{type:"string",enum:["variant05","variant04","variant03","variant02","variant01"]},default:["variant05","variant04","variant03","variant02","variant01"]},gesture:{type:"array",items:{type:"string",enum:["wavePointLongArms","waveOkLongArms","waveLongArms","waveLongArm","pointLongArm","okLongArm","point","ok","hand","handPhone"]},default:["wavePointLongArms","waveOkLongArms","waveLongArms","waveLongArm","pointLongArm","okLongArm","point","ok","hand","handPhone"]},gestureProbability:{type:"integer",minimum:0,maximum:100,default:10},glasses:{type:"array",items:{type:"string",enum:["variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},glassesProbability:{type:"integer",minimum:0,maximum:100,default:20},hair:{type:"array",items:{type:"string",enum:["variant63","variant62","variant61","variant60","variant59","variant58","variant57","variant56","variant55","variant54","variant53","variant52","variant51","variant50","variant49","variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01","hat"]},default:["variant63","variant62","variant61","variant60","variant59","variant58","variant57","variant56","variant55","variant54","variant53","variant52","variant51","variant50","variant49","variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01","hat"]},lips:{type:"array",items:{type:"string",enum:["variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},nose:{type:"array",items:{type:"string",enum:["variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]}}},td={title:"Notionists",creator:"Zoish",source:"https://heyzoish.gumroad.com/l/notionists",homepage:"https://bio.link/heyzoish",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},nd=({prng:e,options:t})=>{var n,l,o,r,s,a,i,c,d,u,A,m,p,y,k,F,M,E,_,R;const $=Xu({prng:e,options:t}),D=qu({prng:e,options:t});return{attributes:{viewBox:"0 0 1744 1744",fill:"none","shape-rendering":"auto"},body:`${(l=(n=$.base)===null||n===void 0?void 0:n.value($,D))!==null&&l!==void 0?l:""}${(r=(o=$.body)===null||o===void 0?void 0:o.value($,D))!==null&&r!==void 0?r:""}${(a=(s=$.hair)===null||s===void 0?void 0:s.value($,D))!==null&&a!==void 0?a:""}${(c=(i=$.lips)===null||i===void 0?void 0:i.value($,D))!==null&&c!==void 0?c:""}${(u=(d=$.beard)===null||d===void 0?void 0:d.value($,D))!==null&&u!==void 0?u:""}${(m=(A=$.nose)===null||A===void 0?void 0:A.value($,D))!==null&&m!==void 0?m:""}${(y=(p=$.eyes)===null||p===void 0?void 0:p.value($,D))!==null&&y!==void 0?y:""}${(F=(k=$.glasses)===null||k===void 0?void 0:k.value($,D))!==null&&F!==void 0?F:""}${(E=(M=$.brows)===null||M===void 0?void 0:M.value($,D))!==null&&E!==void 0?E:""}${(R=(_=$.gesture)===null||_===void 0?void 0:_.value($,D))!==null&&R!==void 0?R:""}`,extra:()=>({...Object.entries($).reduce((x,[Q,B])=>(x[Q]=B==null?void 0:B.name,x),{}),...Object.entries(D).reduce((x,[Q,B])=>(x[`${Q}Color`]=B,x),{})})}},ld=Object.freeze(Object.defineProperty({__proto__:null,create:nd,meta:td,schema:ed},Symbol.toStringTag,{value:"Module"})),vt=z(!0);function $7(e){vt.value=e,document.documentElement.classList.toggle("dark",e),document.documentElement.classList.toggle("light",!e);try{localStorage.setItem("sourceant-theme",e?"dark":"light")}catch{}}function En(){return{isDark:vt,toggleTheme:()=>$7(!vt.value),restoreTheme:()=>{let e=null;try{e=localStorage.getItem("sourceant-theme")}catch{e=null}$7(e!=="light")}}}async function j1(e,t={}){const n=await fetch(e,{...t,headers:t.body?{"Content-Type":"application/json"}:void 0}),l=await n.text(),o=l?JSON.parse(l):null;if(!n.ok)throw new Error((o==null?void 0:o.error)||`the agent answered ${n.status}`);return o}const F2=e=>new URLSearchParams(Object.entries(e).filter(([,t])=>t!==""&&t!==!1)),B1={status:()=>j1("/health"),repositories:()=>j1("/api/repositories"),addRepository:(e,t)=>j1("/api/repositories",{method:"POST",body:JSON.stringify({path:e,name:t})}),dropRepository:e=>j1(`/api/repositories?${F2({path:e})}`,{method:"DELETE"}),index:(e="",{everything:t=!1,update:n=!1}={})=>j1("/api/index",{method:"POST",body:JSON.stringify({repository:e,everything:t,update:n})}),attention:e=>j1(`/api/attention?${F2({repository:e})}`),graph:(e,{includeTests:t=!1,pathPrefix:n=""}={})=>j1(`/api/graph?${F2({repository:e,include_tests:t,path_prefix:n})}`),knowledge:e=>j1(`/api/knowledge?${F2({repository:e,limit:100})}`),recordKnowledge:e=>j1("/api/knowledge",{method:"PUT",body:JSON.stringify(e)}),forgetKnowledge:(e,t)=>j1(`/api/knowledge?${F2({repository:e,id:t})}`,{method:"DELETE"}),browse:(e="")=>j1(`/api/browse?${F2({path:e})}`),initialize:(e,{dryRun:t=!1,useModel:n=!1}={})=>j1("/api/knowledge/initialize",{method:"POST",body:JSON.stringify({repository:e,dry_run:t,use_model:n})}),skills:(e="")=>j1(`/api/skills?${F2({repository:e})}`),skill:(e,t="")=>j1(`/api/skills/${e}?${F2({repository:t})}`),recordSkill:e=>j1("/api/skills",{method:"PUT",body:JSON.stringify({scope:"repository",paths:[],reviews:null,...e})}),forgetSkill:(e,t,n)=>j1(`/api/skills?${F2({repository:e,scope:t,id:n})}`,{method:"DELETE"}),startReview:(e,{against:t="",title:n="",description:l="",skills:o=[],useModel:r=!0}={})=>j1("/api/reviews",{method:"POST",body:JSON.stringify({repository:e,against:t,title:n,description:l,skills:o,use_model:r})}),reviewed:e=>j1(`/api/reviews/${e}`),reviews:(e="")=>j1(`/api/reviews?${F2({repository:e})}`),settings:()=>j1("/api/settings"),setSetting:(e,t)=>j1("/api/settings",{method:"PUT",body:JSON.stringify({key:e,value:t})}),resetSetting:e=>j1(`/api/settings?${F2({key:e})}`,{method:"DELETE"})},od={class:"space-y-4"},rd={key:0,class:"flex items-center gap-2 py-6 text-sm text-muted-foreground"},sd=["onClick"],ad=["value"],id={key:1,class:"flex items-center gap-2 text-sm"},cd=["id","onUpdate:modelValue"],ud={class:"text-muted-foreground"},dd={key:0,class:"py-6 text-sm text-muted-foreground"},fd={key:2,class:"flex items-center gap-3"},Ad={key:0,class:"text-xs text-success"},Dn={__name:"SettingsPanel",props:{group:{type:String,required:!0}},emits:["saved"],setup(e,{emit:t}){const n=e,l=t,o=z([]),r=z({}),s=z(!1),a=z(!0),i=z(""),c=z(!1),d=t1(()=>o.value.filter(E=>E.group===n.group));function u(E){return E.secret?"":E.listed?String(E.value??"").split(` -`).map(_=>_.trim()).filter(Boolean):E.value??""}const A=(E,_)=>E.listed?(_??[]).join(` -`):_,m=(E,_)=>String(A(E,_)??"")===String(E.value??""),p=t1(()=>d.value.some(E=>{const _=r.value[E.key];return E.secret?!!_:!m(E,_)}));async function y(){a.value=!0;try{o.value=await B1.settings(),r.value=Object.fromEntries(d.value.map(E=>[E.key,u(E)])),i.value=""}catch(E){i.value=E.message}finally{a.value=!1}}async function k(){s.value=!0,c.value=!1,i.value="";try{for(const E of d.value){const _=r.value[E.key];E.secret&&!_||!E.secret&&m(E,_)||await B1.setSetting(E.key,A(E,_))}await y(),c.value=!0,l("saved")}catch(E){i.value=E.message}finally{s.value=!1}}async function F(E){i.value="";try{await B1.resetSetting(E.key),await y()}catch(_){i.value=_.message}}function M(E){return E.secret?E.is_set:String(E.value??"")!==String(E.default??"")}return t2(()=>n.group,y),d2(y),(E,_)=>(h(),C("div",od,[a.value?(h(),C("p",rd,[I(f(M2),{class:"h-4 w-4 animate-spin"}),_[0]||(_[0]=U(" Reading what this machine can be told. ",-1))])):(h(),C(n1,{key:1},[(h(!0),C(n1,null,_1(d.value,R=>(h(),G(f(R2),{key:R.key,label:R.label,for:R.key,hint:R.description},{label:w(()=>[R.secret&&R.is_set?(h(),G(f(c2),{key:0,variant:"success"},{default:w(()=>[..._[1]||(_[1]=[U("set",-1)])]),_:1})):P("",!0),M(R)?(h(),C("button",{key:1,type:"button",class:"inline-flex items-center gap-1 text-[11px] font-normal normal-case tracking-normal text-muted-foreground hover:text-foreground",onClick:$=>F(R)},[I(f(ku),{class:"h-3 w-3"}),_[2]||(_[2]=U(" put back ",-1))],8,sd)):P("",!0)]),default:w(()=>{var $;return[($=R.choices)!=null&&$.length?(h(),G(f(j2),{key:0,id:R.key,modelValue:r.value[R.key],"onUpdate:modelValue":D=>r.value[R.key]=D,class:"w-full"},{default:w(()=>[(h(!0),C(n1,null,_1(R.choices,D=>(h(),C("option",{key:D,value:D},N(D),9,ad))),128))]),_:2},1032,["id","modelValue","onUpdate:modelValue"])):R.type==="bool"?(h(),C("label",id,[Ne(b("input",{id:R.key,"onUpdate:modelValue":D=>r.value[R.key]=D,type:"checkbox",class:"h-3.5 w-3.5 rounded border"},null,8,cd),[[a0,r.value[R.key]]]),b("span",ud,N(r.value[R.key]?"On":"Off"),1)])):R.listed?(h(),G(f(O0),{key:2,modelValue:r.value[R.key],"onUpdate:modelValue":D=>r.value[R.key]=D,mono:"",noun:"a folder",placeholder:"/home/you/work/knowledgebase/skills"},null,8,["modelValue","onUpdate:modelValue"])):(h(),G(f(J3),{key:3,id:R.key,modelValue:r.value[R.key],"onUpdate:modelValue":D=>r.value[R.key]=D,type:R.secret?"password":R.type==="int"||R.type==="float"?"number":"text",autocomplete:R.secret?"off":void 0,placeholder:R.secret&&R.is_set?"Leave empty to keep what is set":String(R.default??"")},null,8,["id","modelValue","onUpdate:modelValue","type","autocomplete","placeholder"]))]}),_:2},1032,["label","for","hint"]))),128)),d.value.length?P("",!0):(h(),C("p",dd," Nothing in this group is configurable here. ")),i.value?(h(),G(f(u2),{key:1,tone:"danger"},{default:w(()=>[U(N(i.value),1)]),_:1})):P("",!0),d.value.length?(h(),C("div",fd,[I(f(C1),{disabled:s.value||!p.value,onClick:k},{default:w(()=>[s.value?(h(),G(f(M2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(he),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),_[3]||(_[3]=U(" Save ",-1))]),_:1},8,["disabled"]),c.value&&!p.value?(h(),C("span",Ad,"Saved.")):P("",!0),K1(E.$slots,"after")])):P("",!0)],64))]))}},hd={class:"mb-2 text-xs font-mono text-muted-foreground break-all"},pd={class:"h-64 overflow-y-auto rounded-md border bg-muted/30"},md=["onClick"],gd={class:"truncate"},vd={key:1,class:"px-3 py-6 text-center text-sm text-muted-foreground"},yd={class:"mt-2 text-xs text-muted-foreground"},bd={class:"font-mono"},kd={class:"flex items-center gap-2 pt-5"},Zn={__name:"FolderPicker",props:{open:Boolean},emits:["close","added"],setup(e,{emit:t}){const n=e,l=t,o=z(null),r=z(""),s=z(!1),a=z("");async function i(d){try{o.value=await B1.browse(d),a.value=""}catch(u){a.value=u.message}}t2(()=>n.open,d=>{d&&(r.value="",a.value="",s.value=!1,i(""))});async function c(){if(o.value){s.value=!0,a.value="";try{await B1.addRepository(o.value.path,r.value.trim()),await B1.index("",{everything:!0}),l("added"),l("close")}catch(d){a.value=d.message}finally{s.value=!1}}}return(d,u)=>(h(),G(f(Tt),{open:e.open,"max-width":"lg",onClose:u[3]||(u[3]=A=>l("close"))},{default:w(()=>{var A,m,p,y;return[u[8]||(u[8]=b("h2",{class:"text-lg font-semibold mb-3"},"Add a folder",-1)),b("p",hd,N((A=o.value)==null?void 0:A.path),1),b("div",pd,[(m=o.value)!=null&&m.parent?(h(),C("button",{key:0,class:"flex w-full items-center gap-2 px-3 py-2 text-sm hover:bg-accent",onClick:u[0]||(u[0]=k=>i(o.value.parent))},[I(f(Au),{class:"h-3.5 w-3.5"}),u[4]||(u[4]=b("span",{class:"text-muted-foreground"},"Up one",-1))])):P("",!0),(h(!0),C(n1,null,_1(((p=o.value)==null?void 0:p.entries)??[],k=>(h(),C("button",{key:k.path,class:"flex w-full items-center gap-2 px-3 py-2 text-sm hover:bg-accent",onClick:F=>i(k.path)},[I(f(m5),{class:"h-3.5 w-3.5 text-muted-foreground"}),b("span",gd,N(k.name),1),k.repository?(h(),G(f(c2),{key:0,variant:"glow",class:"ml-auto shrink-0"},{default:w(()=>[...u[5]||(u[5]=[U("git",-1)])]),_:1})):P("",!0)],8,md))),128)),o.value&&o.value.entries.length===0?(h(),C("p",vd," Nothing inside. ")):P("",!0)]),I(f(R2),{label:"Name it (optional)",for:"repo-name",class:"mt-4"},{default:w(()=>[I(f(J3),{id:"repo-name",modelValue:r.value,"onUpdate:modelValue":u[1]||(u[1]=k=>r.value=k),placeholder:"Taken from the git remote, or the folder name"},null,8,["modelValue"])]),_:1}),b("p",yd,[u[6]||(u[6]=U(" Adding ",-1)),b("code",bd,N((y=o.value)==null?void 0:y.path),1)]),a.value?(h(),G(f(u2),{key:0,tone:"danger",class:"mt-3"},{default:w(()=>[U(N(a.value),1)]),_:1})):P("",!0),b("div",kd,[I(f(C1),{disabled:s.value||!o.value,onClick:c},{default:w(()=>[s.value?(h(),G(f(M2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(h3),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+N(s.value?"Reading…":"Add and index"),1)]),_:1},8,["disabled"]),I(f(C1),{variant:"outline",onClick:u[2]||(u[2]=k=>l("close"))},{default:w(()=>[...u[7]||(u[7]=[U("Cancel",-1)])]),_:1})])]}),_:1},8,["open"]))}},q3=z([]),Ee=z(""),H5=z(""),T5=z(!1),Vt="";function g3({all:e=!1}={}){const t=t1(()=>e&&!Ee.value&&q3.value.length>1);async function n(){var l;T5.value=!0;try{q3.value=await B1.repositories(),H5.value=""}catch(o){q3.value=[],H5.value=`${o.message}. Is sourceant-agent running?`}finally{T5.value=!1}Ee.value===Vt&&e||q3.value.some(o=>o.name===Ee.value)||(Ee.value=((l=q3.value[0])==null?void 0:l.name)??"")}return{repositories:q3,chosen:Ee,error:H5,loading:T5,mixed:t,fetchRepositories:n}}const Cd={class:"flex items-center gap-2"},W7="sourceant-onboarded",wd={__name:"Onboarding",setup(e){const{repositories:t,fetchRepositories:n}=g3(),l=z(!1),o=z("folder"),r=z(!1),s=t1(()=>t.value.length>0);function a(){try{localStorage.setItem(W7,"yes")}catch{}l.value=!1}return d2(async()=>{let i=null;try{i=localStorage.getItem(W7)}catch{i=null}i||(await n(),l.value=t.value.length===0)}),(i,c)=>(h(),G(f(Tt),{open:l.value,"max-width":"xl",onClose:a},{default:w(()=>[o.value==="folder"?(h(),C(n1,{key:0},[c[4]||(c[4]=b("h2",{class:"text-lg font-semibold mb-1"},"Point it at some code",-1)),c[5]||(c[5]=b("p",{class:"text-sm text-muted-foreground mb-5"}," SourceAnt reads a folder on this machine into a graph, and keeps what you record about it beside the code it belongs to. Nothing leaves this machine. ",-1)),b("div",Cd,[I(f(C1),{onClick:c[0]||(c[0]=d=>r.value=!0)},{default:w(()=>[I(f(h3),{class:"mr-1.5 h-3.5 w-3.5"}),c[3]||(c[3]=U(" Add a folder ",-1))]),_:1}),I(f(C1),{variant:"outline",onClick:c[1]||(c[1]=d=>o.value="model")},{default:w(()=>[s.value?(h(),C(n1,{key:0},[U("Next")],64)):(h(),C(n1,{key:1},[U("Skip for now")],64)),I(f(du),{class:"ml-1.5 h-3.5 w-3.5"})]),_:1})]),I(Zn,{open:r.value,onClose:c[2]||(c[2]=d=>r.value=!1),onAdded:f(n)},null,8,["open","onAdded"])],64)):(h(),C(n1,{key:1},[c[7]||(c[7]=b("h2",{class:"text-lg font-semibold mb-1"},"Bring a model, or don't",-1)),c[8]||(c[8]=b("p",{class:"text-sm text-muted-foreground mb-5"}," Reading your code and reading what it already states about itself need no model at all. Proposing what nobody wrote down does. Your key stays on this machine and goes to that provider and nowhere else. ",-1)),I(Dn,{group:"Model",onSaved:a},{after:w(()=>[I(f(C1),{variant:"ghost",onClick:a},{default:w(()=>[...c[6]||(c[6]=[U("Not now",-1)])]),_:1})]),_:1})],64))]),_:1},8,["open"]))}},xd={class:"flex h-screen flex-col bg-background"},_d={class:"z-40 h-12 shrink-0 border-b bg-card/80 backdrop-blur-sm"},Id={class:"flex items-center h-full min-w-0 px-3 gap-1 sm:px-4"},Md={class:"hidden lg:flex items-center gap-0.5 min-w-0"},Ed={class:"hidden xl:inline"},Dd={class:"relative shrink-0","data-dropdown":"user"},Zd={key:0,class:"absolute top-full right-0 mt-1 w-52 bg-card border rounded-lg shadow-lg py-1 z-50"},Fd=["aria-label"],Bd={key:0,class:"lg:hidden shrink-0 border-b bg-card px-4 py-2 space-y-0.5"},Sd={class:"min-h-0 flex-1 overflow-y-auto"},Rd={class:"container mx-auto flex h-full flex-col px-4 pb-4 pt-3 lg:px-6 lg:pb-6 lg:pt-4"},Qd={__name:"App",setup(e){const{isDark:t,toggleTheme:n,restoreTheme:l}=En(),o=d5(),r=z(!1),s=z(!1),a=[{name:"Overview",href:"/",icon:yn},{name:"Knowledge",href:"/knowledge",icon:S4},{name:"Graphs",href:"/graph",icon:g5},{name:"Reviews",href:"/reviews",icon:Le},{name:"Skills",href:"/skills",icon:vn},{name:"Repositories",href:"/repositories",icon:i4},{name:"Settings",href:"/settings",icon:mt}],i=t1(()=>Ou(ld,{seed:location.hostname||"sourceant",radius:50}).toDataUri());function c(d){d.target.closest('[data-dropdown="user"]')||(s.value=!1)}return d2(()=>{l(),document.addEventListener("click",c)}),f4(()=>document.removeEventListener("click",c)),(d,u)=>{const A=Ve("RouterLink"),m=Ve("RouterView");return h(),C("div",xd,[b("header",_d,[b("div",Id,[I(A,{to:"/",class:"shrink-0 mr-1 sm:mr-3"},{default:w(()=>[I(f(H9),{size:"sm","show-text":!1})]),_:1}),u[7]||(u[7]=b("span",{class:"hidden lg:block h-4 w-px bg-border mx-1 shrink-0"},null,-1)),b("nav",Md,[(h(),C(n1,null,_1(a,p=>I(A,{key:p.href,to:p.href,title:p.name,class:f1(["flex shrink-0 items-center gap-1.5 px-2 py-1 rounded-md text-sm transition-colors 2xl:px-2.5",f(o).path===p.href?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-muted hover:text-foreground"])},{default:w(()=>[(h(),G(k2(p.icon),{class:"h-3.5 w-3.5 shrink-0"})),b("span",Ed,N(p.name),1)]),_:2},1032,["to","title","class"])),64))]),u[8]||(u[8]=b("div",{class:"flex-1 min-w-0"},null,-1)),b("div",Dd,[b("button",{class:"flex items-center gap-1.5 p-1 rounded-md hover:bg-muted transition-colors","aria-label":"Account",onClick:u[0]||(u[0]=qe(p=>s.value=!s.value,["stop"]))},[I(f(fa),{src:i.value,size:"sm",class:"h-6 w-6"},null,8,["src"])]),I(r0,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition duration-75 ease-in","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:w(()=>[s.value?(h(),C("div",Zd,[u[6]||(u[6]=b("div",{class:"px-3 py-2 border-b"},[b("p",{class:"text-sm font-medium truncate"},"This machine"),b("p",{class:"text-xs text-muted-foreground truncate"},"Nothing here has been shared.")],-1)),I(A,{to:"/settings",class:"flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-muted transition-colors",onClick:u[1]||(u[1]=p=>s.value=!1)},{default:w(()=>[I(f(mt),{class:"h-3.5 w-3.5 text-muted-foreground"}),u[5]||(u[5]=U(" Settings ",-1))]),_:1}),b("button",{class:"flex items-center gap-2 w-full px-3 py-1.5 text-sm hover:bg-muted transition-colors",onClick:u[2]||(u[2]=(...p)=>f(n)&&f(n)(...p))},[(h(),G(k2(f(t)?f(xn):f(kn)),{class:"h-3.5 w-3.5 text-muted-foreground"})),b("span",null,N(f(t)?"Light mode":"Dark mode"),1)])])):P("",!0)]),_:1})]),b("button",{class:"lg:hidden shrink-0 p-1 rounded-md hover:bg-muted transition-colors","aria-label":r.value?"Close menu":"Open menu",onClick:u[3]||(u[3]=p=>r.value=!r.value)},[r.value?(h(),G(f(In),{key:1,class:"h-5 w-5"})):(h(),G(f(vu),{key:0,class:"h-5 w-5"}))],8,Fd)])]),r.value?(h(),C("div",Bd,[(h(),C(n1,null,_1(a,p=>I(A,{key:p.href,to:p.href,class:f1(["flex items-center gap-2 px-3 py-2 rounded-md text-sm transition-colors",f(o).path===p.href?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-muted hover:text-foreground"]),onClick:u[4]||(u[4]=y=>r.value=!1)},{default:w(()=>[(h(),G(k2(p.icon),{class:"h-4 w-4"})),U(" "+N(p.name),1)]),_:2},1032,["to","class"])),64))])):P("",!0),b("main",Sd,[b("div",Rd,[I(m)])]),I(wd)])}}},p4={__name:"EmptyMachine",setup(e){return(t,n)=>(h(),G(f(z1),{class:"text-center py-16 px-6"},{default:w(()=>[n[1]||(n[1]=b("h2",{class:"text-lg font-semibold mb-1"},"Nothing indexed yet",-1)),n[2]||(n[2]=b("p",{class:"text-muted-foreground text-sm mb-4 max-w-lg mx-auto"}," Point SourceAnt at a folder on this machine and it reads the code into a graph you can look at and record against. ",-1)),I(f(C1),{as:"a",href:"/repositories",variant:"glow"},{default:w(()=>[I(f(h3),{class:"mr-2 h-4 w-4"}),n[0]||(n[0]=U(" Add a repository ",-1))]),_:1})]),_:1}))}},Nd={class:"grid gap-3 mb-6 sm:grid-cols-2 lg:grid-cols-4"},Kd={class:"text-xs text-muted-foreground capitalize"},Gd={class:"mt-1 text-2xl font-semibold tabular-nums"},Od={class:"grid gap-3"},$d={class:"flex items-center gap-1.5"},Wd={class:"flex items-center gap-1.5"},Ld={__name:"Overview",setup(e){const{repositories:t,error:n,fetchRepositories:l}=g3(),o=z([]),r=t1(()=>({repositories:t.value.length,files:o.value.reduce((s,a)=>s+a.files,0),nodes:o.value.reduce((s,a)=>s+a.nodes,0),knowledge:o.value.reduce((s,a)=>s+a.knowledge,0)}));return d2(async()=>{await l(),o.value=await Promise.all(t.value.map(async s=>{const[a,i]=await Promise.all([B1.graph(s.name).catch(()=>null),B1.knowledge(s.name).catch(()=>null)]);return{repository:s,files:a?a.nodes.filter(c=>c.kind==="file").length:0,nodes:a?a.nodes.length:0,knowledge:i?i.total:0}}))}),(s,a)=>(h(),C("div",null,[I(f(m3),{pillar:"memory",title:"Overview",sub:"What SourceAnt has on this machine."},{icon:w(()=>[I(f(yn),{class:"h-6 w-6"})]),_:1}),f(n)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(f(n)),1)]),_:1})):P("",!0),!f(n)&&f(t).length===0?(h(),G(p4,{key:1})):f(t).length?(h(),C(n1,{key:2},[b("div",Nd,[(h(!0),C(n1,null,_1(r.value,(i,c)=>(h(),G(f(z1),{key:c,class:"p-5"},{default:w(()=>[b("p",Kd,N(c),1),b("p",Gd,N(i.toLocaleString()),1)]),_:2},1024))),128))]),b("div",Od,[(h(!0),C(n1,null,_1(o.value,i=>(h(),G(f(z3),{key:i.repository.name,title:i.repository.name,subtitle:i.repository.path,hover:""},{icon:w(()=>[I(f(m5),{class:"h-5 w-5"})]),badges:w(()=>[I(f(c2),{variant:i.files?"success":"warning"},{default:w(()=>[U(N(i.files?"Indexed":"Not indexed"),1)]),_:2},1032,["variant"])]),meta:w(()=>[b("span",$d,[I(f(p5),{class:"h-3.5 w-3.5"}),U(N(i.files.toLocaleString())+" files ",1)]),b("span",Wd,[I(f(V4),{class:"h-3.5 w-3.5"}),U(N(i.knowledge.toLocaleString())+" recorded ",1)])]),actions:w(()=>[I(f(C1),{as:"a",href:"/graph",variant:"ghost",size:"sm"},{default:w(()=>[...a[0]||(a[0]=[U("Graph",-1)])]),_:1})]),_:2},1032,["title","subtitle"]))),128))]),a[1]||(a[1]=b("p",{class:"mt-4 text-xs text-muted-foreground"}," Reviews are not here. A review reads a pull request, and nothing on this machine produces one. ",-1))],64)):P("",!0)]))}};function Pd(){const e=z(null),t=z(!1),n=z(null);async function l(o,r,s={}){t.value=!0;try{e.value=await B1.graph(`${o}/${r}`,s),n.value=null}catch(a){e.value=null,n.value=a}finally{t.value=!1}}return{graph:e,loading:t,fetchCodeGraph:l,failureFor:()=>n.value}}function Hd(){const e=z(null);async function t(){return e.value={nodes:[],links:[]},e.value}return{fetchGraph:t,failureFor:()=>null}}const Td={key:0},Yd={class:"inline-flex w-full rounded-md border bg-muted/40 p-0.5"},Vd=["onClick"],Ud={class:"mt-1.5 text-[11px] text-muted-foreground"},Jd={key:1},zd={class:"relative"},jd={key:2},Xd={class:"space-y-0.5"},qd=["onClick"],ef={class:"flex-1 truncate text-foreground"},tf={class:"tabular-nums text-muted-foreground"},nf={key:3},lf={class:"flex flex-wrap gap-1.5"},of=["onClick"],rf={key:4},sf={class:"flex cursor-pointer items-center gap-2 text-[11px] text-muted-foreground"},af={key:5},cf={key:6},uf={class:"mb-1.5 flex items-center justify-between"},df=["disabled"],ff={key:0,class:"mt-1 text-[11px] text-muted-foreground"},Af={key:1,class:"mt-1.5 space-y-1.5"},hf={class:"flex items-start gap-1.5 text-[11px]"},pf={class:"min-w-0 break-words"},mf={class:"font-medium"},gf={class:"min-w-0"},vf={class:"min-w-0"},yf={class:"overflow-hidden rounded-lg border bg-card"},bf={class:"space-y-1"},kf={class:"mx-auto max-w-sm text-xs text-muted-foreground"},Cf={key:0,class:"mt-2 text-xs text-warning"},wf={key:1,class:"mt-2 text-xs text-muted-foreground"},Fn=$1({__name:"GraphWorkbench",props:{repository:{},sources:{default:()=>["knowledge","code"]},controls:{default:()=>["filter","kinds","parts","layouts","depth","retired"]},height:{default:"640px"}},emits:["select"],setup(e,{expose:t,emit:n}){const l=e,o=n,{fetchGraph:r,failureFor:s}=Hd(),{legend:a}=K0(),{graph:i,loading:c,fetchCodeGraph:d,failureFor:u}=Pd(),A=z(l.sources[0]??"knowledge"),m=z(null),p=z(!1),y=t1(()=>A.value==="code"?i.value:m.value),k=t1(()=>A.value==="code"?c.value:p.value),F=t1(()=>A.value==="code"?u("code-graph"):s("graph")),M=t1(()=>l.repository.split("/").pop()??l.repository),E=t1(()=>!!y.value&&y.value.nodes.length>0);function _(q){return l.controls.includes(q)}const R=z(""),$=z(2),D=z([]),x=z(""),Q=z("2d"),B=z([]),X=z(!1),Y=t1(()=>!!R.value),m1=t1(()=>{var S;const q=(S=y.value)==null?void 0:S.nodes.find(o1=>o1.id===R.value);return(q==null?void 0:q.name)??R.value.replace(/^(file|symbol):/,"")}),w1=t1(()=>{var q;return((q=y.value)==null?void 0:q.communities)??[]}),r1=[{id:"2d",label:"2D"},{id:"3d",label:"3D"},{id:"tree",label:"Tree"},{id:"radial",label:"Radial"},{id:"layered",label:"Layered"},{id:"web",label:"Force"}],l1={knowledge:"Knowledge",code:"Code"},b1=["#4E79A7","#F28E2B","#E15759","#76B7B2","#59A14F","#EDC948","#B07AA1","#FF9DA7","#9C755F","#BAB0AC"];async function y1(){const[q,S]=l.repository.split("/");if(!q||!S){m.value=null;return}if(A.value==="code"){await d(q,S,{focus:R.value||void 0,depth:Y.value?$.value:void 0,q:x.value.trim()||void 0});return}p.value=!0;try{m.value=await r(q,S,{focus:R.value||void 0,depth:Y.value?$.value:void 0,kind:D.value,q:x.value.trim()||void 0,status:X.value?"all":void 0})}finally{p.value=!1}}let k1=null;function c1(){k1&&clearTimeout(k1),k1=setTimeout(y1,250)}t2([$,D,x,X],c1,{deep:!0}),t2(R,y1),t2(A,()=>{R.value="",B.value=[],y1()}),t2(()=>l.repository,()=>{R.value="",B.value=[],y1()},{immediate:!0});function L1(q){o("select",q),_("depth")&&(R.value=R.value===q?"":q)}function S1(){R.value=""}function Y1(q){D.value=D.value.includes(q)?D.value.filter(S=>S!==q):[...D.value,q]}function q1(q){B.value=B.value.includes(q)?B.value.filter(S=>S!==q):[...B.value,q]}const s1=t1(()=>l.sources.length>1||_("filter")||_("kinds")||_("parts")||_("layouts")||_("depth")||_("retired"));return t({reload:y1}),(q,S)=>{var A1,x1,g;const o1=Ve("UiLoadFailure"),J=Ve("UiLoadingState");return h(),C("div",{class:f1(["grid gap-4 lg:items-start",s1.value?"lg:grid-cols-[16rem_1fr]":""])},[s1.value?(h(),C("aside",{key:0,class:"space-y-4 overflow-y-auto rounded-lg border bg-card p-3",style:S2({height:e.height})},[e.sources.length>1?(h(),C("div",Td,[S[5]||(S[5]=b("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Draw",-1)),b("div",Yd,[(h(!0),C(n1,null,_1(e.sources,v=>(h(),C("button",{key:v,type:"button",class:f1(["flex-1 rounded px-2 py-1 text-xs font-medium transition-colors",A.value===v?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"]),onClick:Z=>A.value=v},N(l1[v]),11,Vd))),128))]),b("p",Ud,N(A.value==="code"?"What is defined and what calls what, read from the code.":"What your team decided, and the files it covers."),1)])):P("",!0),_("filter")?(h(),C("div",Jd,[S[6]||(S[6]=b("label",{class:"mb-1.5 block text-[11px] font-medium uppercase tracking-wide text-muted-foreground"}," Only what mentions ",-1)),b("div",zd,[I(f(wn),{class:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),Ne(b("input",{"onUpdate:modelValue":S[0]||(S[0]=v=>x.value=v),type:"search",placeholder:"a word",class:"w-full rounded-md border bg-background py-1.5 pl-8 pr-2 text-sm"},null,512),[[S6,x.value]])])])):P("",!0),_("parts")&&A.value==="code"&&w1.value.length?(h(),C("div",jd,[S[7]||(S[7]=b("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Parts",-1)),b("ul",Xd,[(h(!0),C(n1,null,_1(w1.value,v=>(h(),C("li",{key:v.id},[b("button",{type:"button",class:f1(["flex w-full items-center gap-2 rounded-md px-1 py-1 text-left text-[11px] transition-colors hover:bg-muted",B.value.includes(v.id)?"opacity-40":""]),onClick:Z=>q1(v.id)},[b("span",{class:"h-2.5 w-2.5 shrink-0 rounded-full",style:S2({backgroundColor:b1[v.id%b1.length]})},null,4),b("span",ef,N(v.name),1),b("span",tf,N(v.size),1)],10,qd)]))),128))]),S[8]||(S[8]=b("p",{class:"mt-1.5 text-[11px] text-muted-foreground"}," Grouped by what calls what. Click one to hide it. ",-1))])):P("",!0),_("kinds")&&A.value==="knowledge"?(h(),C("div",nf,[S[9]||(S[9]=b("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Kinds",-1)),b("div",lf,[(h(!0),C(n1,null,_1(f(a),v=>(h(),C("button",{key:v.label,type:"button",class:f1(["inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-[11px] transition-colors",D.value.includes(v.label.toLowerCase())?"border-primary/40 bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"]),onClick:Z=>Y1(v.label.toLowerCase())},[b("span",{class:"h-2 w-2 rounded-sm",style:S2({backgroundColor:v.color})},null,4),U(" "+N(v.label),1)],10,of))),128)),D.value.length?(h(),C("button",{key:0,type:"button",class:"text-[11px] text-muted-foreground underline-offset-2 hover:underline",onClick:S[1]||(S[1]=v=>D.value=[])},"Any")):P("",!0)])])):P("",!0),_("retired")&&A.value==="knowledge"?(h(),C("div",rf,[b("label",sf,[Ne(b("input",{"onUpdate:modelValue":S[2]||(S[2]=v=>X.value=v),type:"checkbox",class:"h-3 w-3 rounded border"},null,512),[[a0,X.value]]),S[10]||(S[10]=U(" Include retired records ",-1))])])):P("",!0),_("layouts")?(h(),C("div",af,[S[11]||(S[11]=b("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Shape",-1)),I(f(ge),{modelValue:Q.value,"onUpdate:modelValue":S[3]||(S[3]=v=>Q.value=v),tabs:r1,label:"Shape",class:"grid w-full grid-cols-2"},null,8,["modelValue"])])):P("",!0),_("depth")?(h(),C("div",cf,[b("div",uf,[b("span",{class:f1(["text-[11px] font-medium uppercase tracking-wide",Y.value?"text-muted-foreground":"text-muted-foreground/50"])}," Steps out ",2),b("span",{class:f1(["font-mono text-xs",Y.value?"":"opacity-50"])},N($.value),3)]),Ne(b("input",{"onUpdate:modelValue":S[4]||(S[4]=v=>$.value=v),type:"range",min:"1",max:"5",disabled:!Y.value,class:"w-full"},null,8,df),[[S6,$.value,void 0,{number:!0}]]),Y.value?(h(),C("div",Af,[b("p",hf,[I(f(mu),{class:"mt-0.5 h-3 w-3 shrink-0 text-primary"}),b("span",pf,[S[12]||(S[12]=U("From ",-1)),b("span",mf,N(m1.value),1)])]),b("button",{type:"button",class:"inline-flex w-full items-center justify-center gap-1 rounded-md border px-2 py-1 text-[11px] hover:bg-muted",onClick:S1},[I(f(In),{class:"h-3 w-3"}),S[13]||(S[13]=U(" Draw everything ",-1))])])):(h(),C("p",ff," Click anything on the graph to walk out from it. "))])):P("",!0)],4)):P("",!0),b("div",gf,[b("div",{class:f1(["grid gap-4",q.$slots.inspector?"lg:grid-cols-[1fr_20rem]":""])},[b("div",vf,[b("div",yf,[F.value?(h(),G(o1,{key:0,what:"this graph",message:F.value,onRetry:y1},null,8,["message"])):k.value?(h(),C("div",{key:1,style:S2({height:e.height})},[I(J,{label:A.value==="code"?"Reading the code":"Reading the knowledge graph",compact:""},null,8,["label"])],4)):E.value?(h(),G(f(ma),{key:3,repo:M.value,mode:Q.value,data:y.value,hidden:B.value,height:e.height,onSelect:L1},null,8,["repo","mode","data","hidden","height"])):(h(),C("div",{key:2,class:"flex flex-col items-center justify-center gap-3 px-6 text-center",style:S2({height:e.height})},[I(f(g5),{class:"h-7 w-7 text-muted-foreground"}),b("div",bf,[S[14]||(S[14]=b("p",{class:"text-sm font-medium"},"Nothing to draw",-1)),b("p",kf,N(A.value==="code"?"This repository has not been read yet, so there is no code map for it.":"Initialize this repository and approve what it proposes, and its decisions appear here."),1)])],4))]),(A1=y.value)!=null&&A1.truncated?(h(),C("p",Cf," More than fits in one drawing, so this is the most connected part of it. Narrow it"+N(s1.value?" on the left":"")+", or click something to walk out from it. ",1)):E.value?(h(),C("p",wf,N((x1=y.value)==null?void 0:x1.nodes.length)+" symbols, "+N((g=y.value)==null?void 0:g.links.length)+" connections. ",1)):P("",!0)]),q.$slots.inspector?(h(),C("div",{key:0,class:"overflow-y-auto rounded-lg border bg-card",style:S2({height:e.height})},[K1(q.$slots,"inspector")],4)):P("",!0)],2)])],2)}}}),xf={class:"flex h-full min-h-0 flex-col"},_f=["value"],If={__name:"Graph",setup(e){const{repositories:t,chosen:n,error:l,fetchRepositories:o}=g3();return d2(o),(r,s)=>(h(),C("div",xf,[I(f(m3),{title:"Graphs",sub:"Your code, and how it holds together."},{icon:w(()=>[I(f(g5),{class:"h-6 w-6"})]),actions:w(()=>[f(t).length>1?(h(),G(f(j2),{key:0,modelValue:f(n),"onUpdate:modelValue":s[0]||(s[0]=a=>n2(n)?n.value=a:null),size:"sm","aria-label":"Repository"},{default:w(()=>[(h(!0),C(n1,null,_1(f(t),a=>(h(),C("option",{key:a.name,value:a.name},N(a.name),9,_f))),128))]),_:1},8,["modelValue"])):P("",!0)]),_:1}),f(l)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(f(l)),1)]),_:1})):P("",!0),f(t).length===0?(h(),G(p4,{key:1})):(h(),G(Fn,{key:f(n),repository:f(n),sources:["code"],controls:["filter","kinds","parts","layouts","depth"],height:"calc(100vh - 15rem)"},null,8,["repository"]))]))}},Mf=["value"],Ef=["value"],Df=["value"],Zf={key:4,class:"grid gap-3"},Ff={class:"text-sm text-muted-foreground"},Bf={key:0,class:"mt-2 grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 text-xs"},Sf={class:"break-all font-mono"},Rf={class:"text-lg font-semibold mb-4"},Qf={class:"space-y-4"},Nf={class:"flex items-center gap-2 pt-2"},Kf={__name:"Knowledge",setup(e){const t=["decision","convention","constraint","pattern","workaround","requirement"],{repositories:n,chosen:l,error:o,mixed:r,fetchRepositories:s}=g3({all:!0});async function a(D){D&&(l.value=D)}const i=z([]),c=z(null),d=z({id:"",kind:"decision",summary:"",why:""}),u=z(""),A=z(!1),m=z(!1),p=z(!1),y=z(null),k=z(!1);async function F(){try{const D=await B1.settings(),x=D.find(B=>B.key==="model.name"),Q=D.find(B=>B.key==="model.api_key");k.value=!!(x!=null&&x.value)&&!!(Q!=null&&Q.is_set)}catch{k.value=!1}}async function M(D=!1){const x=D?p:m;x.value=!0,y.value=null;try{const Q=await B1.initialize(l.value,{useModel:D});y.value=Q.recorded,o.value="",await E()}catch(Q){o.value=Q.message}finally{x.value=!1}}async function E(){if(l.value)try{const D=await B1.knowledge(l.value);i.value=D.items,o.value=""}catch(D){i.value=[],o.value=D.message}}function _(D){var x;c.value=D??{fresh:!0},d.value=D?{id:D.id,kind:D.kind,summary:D.summary,why:((x=D.properties)==null?void 0:x.why)??""}:{id:"",kind:"decision",summary:"",why:""},u.value=""}async function R(){var D,x,Q;if(!d.value.id.trim()||!d.value.summary.trim()){u.value="A name and what is true are both needed.";return}A.value=!0;try{await B1.recordKnowledge({repository:l.value,id:d.value.id.trim(),kind:d.value.kind,status:((D=c.value)==null?void 0:D.status)??"accepted",summary:d.value.summary.trim(),properties:d.value.why.trim()?{...((x=c.value)==null?void 0:x.properties)??{},why:d.value.why.trim()}:((Q=c.value)==null?void 0:Q.properties)??{}}),c.value=null,await E()}catch(B){u.value=B.message}finally{A.value=!1}}async function $(D){if(confirm(`Forget ${D.id}?`)){try{await B1.forgetKnowledge(l.value,D.id)}catch(x){o.value=x.message}await E()}}return t2(l,E),d2(async()=>{await s(),await Promise.all([E(),F()])}),(D,x)=>{const Q=Ve("X");return h(),C("div",null,[I(f(m3),{pillar:"memory",title:"Knowledge",sub:"The decisions, conventions and constraints behind this code."},{icon:w(()=>[I(f(V4),{class:"h-6 w-6"})]),actions:w(()=>[f(n).length>1?(h(),G(f(j2),{key:0,modelValue:f(l),"onUpdate:modelValue":x[0]||(x[0]=B=>n2(l)?l.value=B:null),size:"sm","aria-label":"Repository"},{default:w(()=>[b("option",{value:f(Vt)},"All repositories",8,Mf),(h(!0),C(n1,null,_1(f(n),B=>(h(),C("option",{key:B.name,value:B.name},N(B.name),9,Ef))),128))]),_:1},8,["modelValue"])):P("",!0),f(n).length&&f(l)?(h(),G(f(C1),{key:1,size:"sm",variant:"outline",disabled:m.value,onClick:M},{default:w(()=>[m.value?(h(),G(f(M2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(gt),{key:1,class:"mr-2 h-4 w-4"})),U(" "+N(m.value?"Finding…":"Find in what the repo states"),1)]),_:1},8,["disabled"])):P("",!0),f(n).length&&k.value&&f(l)?(h(),G(f(C1),{key:2,size:"sm",variant:"outline",disabled:p.value,onClick:x[1]||(x[1]=B=>M(!0))},{default:w(()=>[p.value?(h(),G(f(M2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(_n),{key:1,class:"mr-2 h-4 w-4"})),U(" "+N(p.value?"Finding…":"Find more with a model"),1)]),_:1},8,["disabled"])):P("",!0),f(n).length&&f(l)?(h(),G(f(C1),{key:3,size:"sm",variant:"glow",onClick:x[2]||(x[2]=B=>_(null))},{default:w(()=>[I(f(h3),{class:"mr-2 h-4 w-4"}),x[10]||(x[10]=U(" Record something ",-1))]),_:1})):f(n).length?(h(),G(f(j2),{key:4,"model-value":"",size:"sm","aria-label":"Choose a repository","onUpdate:modelValue":a},{default:w(()=>[x[11]||(x[11]=b("option",{value:""},"Choose a repository…",-1)),(h(!0),C(n1,null,_1(f(n),B=>(h(),C("option",{key:B.name,value:B.name},N(B.name),9,Df))),128))]),_:1})):P("",!0)]),_:1}),f(o)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(f(o)),1)]),_:1})):P("",!0),y.value!==null?(h(),G(f(u2),{key:1,tone:"info",class:"mb-4"},{default:w(()=>[y.value?(h(),C(n1,{key:0},[U(" Read "+N(y.value)+" thing"+N(y.value===1?"":"s")+" this repository already states. Nobody has agreed to any of it, so it is all proposed. ",1)],64)):(h(),C(n1,{key:1},[U(" This repository does not state anything in the places projects usually write these down: a decision record, or a conventions section in a contributing guide. ")],64))]),_:1})):P("",!0),f(n).length===0?(h(),G(p4,{key:2})):i.value.length===0?(h(),G(f(We),{key:3,title:"Nothing recorded yet"},{actions:w(()=>[I(f(C1),{variant:"glow",onClick:x[3]||(x[3]=B=>_(null))},{default:w(()=>[I(f(h3),{class:"mr-2 h-4 w-4"}),x[12]||(x[12]=U(" Record something ",-1))]),_:1}),I(f(C1),{variant:"outline",disabled:m.value,onClick:M},{default:w(()=>[m.value?(h(),G(f(M2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(gt),{key:1,class:"mr-2 h-4 w-4"})),x[13]||(x[13]=U(" Read what the repo states ",-1))]),_:1},8,["disabled"])]),default:w(()=>[x[14]||(x[14]=U(" Why a thing is the way it is outlives the code that does it. Write one down and every agent reading this repository over MCP gets it too. ",-1))]),_:1})):(h(),C("div",Zf,[(h(!0),C(n1,null,_1(i.value,B=>(h(),G(f(z3),{key:`${B.repository??""}${B.id}`,title:B.id,pillar:"memory"},{icon:w(()=>[I(f(V4),{class:"h-5 w-5"})]),badges:w(()=>[I(f(c2),{variant:"secondary"},{default:w(()=>[U(N(B.kind),1)]),_:2},1024),B.status?(h(),G(f(c2),{key:0,variant:"outline"},{default:w(()=>[U(N(B.status),1)]),_:2},1024)):P("",!0),f(r)&&B.repository?(h(),G(f(gn),{key:1,name:B.repository},{icon:w(()=>[I(f(i4),{class:"h-3 w-3"})]),_:1},8,["name"])):P("",!0)]),actions:w(()=>[B.status===D.PROPOSED?(h(),C(n1,{key:0},[I(f(C1),{variant:"outline",size:"sm",disabled:D.deciding===B.id,"aria-label":`Accept ${B.id}`,onClick:X=>D.decide(B,D.ACCEPTED)},{default:w(()=>[D.deciding===B.id?(h(),G(f(M2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(he),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),x[16]||(x[16]=U(" Accept ",-1))]),_:2},1032,["disabled","aria-label","onClick"]),I(f(C1),{variant:"ghost",size:"icon","aria-label":`Throw out ${B.id}`,onClick:X=>D.decide(B,null)},{default:w(()=>[I(Q,{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])],64)):(h(),C(n1,{key:1},[I(f(C1),{variant:"ghost",size:"icon","aria-label":"Edit",onClick:X=>_(B)},{default:w(()=>[I(f(bu),{class:"h-4 w-4"})]),_:1},8,["onClick"]),I(f(C1),{variant:"ghost",size:"icon","aria-label":"Remove",onClick:X=>$(B)},{default:w(()=>[I(f(h4),{class:"h-4 w-4"})]),_:1},8,["onClick"])],64))]),default:w(()=>{var X;return[b("p",Ff,N(B.summary),1),(X=B.properties)!=null&&X.why?(h(),C("dl",Bf,[x[15]||(x[15]=b("dt",{class:"text-muted-foreground"},"why",-1)),b("dd",Sf,N(B.properties.why),1)])):P("",!0)]}),_:2},1032,["title"]))),128))])),I(f(Tt),{open:!!c.value,"max-width":"xl",onClose:x[9]||(x[9]=B=>c.value=null)},{default:w(()=>{var B;return[b("h2",Rf,N((B=c.value)!=null&&B.fresh?"Record something":"Edit"),1),b("div",Qf,[I(f(R2),{label:"Name",hint:"What this will be called, and how it is found again."},{default:w(()=>{var X;return[I(f(J3),{modelValue:d.value.id,"onUpdate:modelValue":x[4]||(x[4]=Y=>d.value.id=Y),readonly:!((X=c.value)!=null&&X.fresh),placeholder:"retry-limit"},null,8,["modelValue","readonly"])]}),_:1}),I(f(R2),{label:"Kind"},{default:w(()=>[I(f(j2),{modelValue:d.value.kind,"onUpdate:modelValue":x[5]||(x[5]=X=>d.value.kind=X),class:"w-full"},{default:w(()=>[(h(),C(n1,null,_1(t,X=>b("option",{key:X},N(X),1)),64))]),_:1},8,["modelValue"])]),_:1}),I(f(R2),{label:"What is true"},{default:w(()=>[I(f(dt),{modelValue:d.value.summary,"onUpdate:modelValue":x[6]||(x[6]=X=>d.value.summary=X),placeholder:"Charges retry three times, then stop."},null,8,["modelValue"])]),_:1}),I(f(R2),{label:"Why",hint:"What stops somebody undoing it next year."},{default:w(()=>[I(f(dt),{modelValue:d.value.why,"onUpdate:modelValue":x[7]||(x[7]=X=>d.value.why=X),placeholder:"The provider rate limits after four."},null,8,["modelValue"])]),_:1}),u.value?(h(),G(f(u2),{key:0,tone:"danger"},{default:w(()=>[U(N(u.value),1)]),_:1})):P("",!0),b("div",Nf,[I(f(C1),{disabled:A.value,onClick:R},{default:w(()=>[I(f(he),{class:"mr-1.5 h-3.5 w-3.5"}),x[17]||(x[17]=U(" Save ",-1))]),_:1},8,["disabled"]),I(f(C1),{variant:"outline",onClick:x[8]||(x[8]=X=>c.value=null)},{default:w(()=>[...x[18]||(x[18]=[U("Cancel",-1)])]),_:1})])])]}),_:1},8,["open"])])}}},Gf={key:2,class:"grid gap-3"},Of={class:"flex items-center gap-1.5"},$f={class:"flex items-center gap-1.5"},Wf={key:1},Lf={key:2},Pf={key:3,class:"text-primary"},Hf={__name:"Repositories",setup(e){const t=me(),{repositories:n,error:l,fetchRepositories:o}=g3(),r=z({}),s=z(""),a=z(!1),i=z({});async function c(){for(const p of n.value){const y=await B1.graph(p.name).catch(()=>null);r.value={...r.value,[p.name]:y?{files:y.nodes.filter(k=>k.kind==="file").length,links:y.links.length}:null}}}async function d(){await o(),await c()}async function u(p){s.value=p;try{const[y]=await B1.index(p);i.value={...i.value,[p]:y},l.value=""}catch(y){l.value=y.message}s.value="",await c()}function A(p){return p?p.indexed?`Read ${p.indexed.toLocaleString()} files just now.`:"Nothing had changed.":""}async function m(p){if(confirm(`Stop covering ${p.path}? + */const Dn=F1("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Q2(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}function Du(e){var t,n,l,o,r,s,a;const i=(t=e.meta)===null||t===void 0?void 0:t.title,c=(n=e.meta)===null||n===void 0?void 0:n.creator,u=(l=e.meta)===null||l===void 0?void 0:l.source,d=(r=(o=e.meta)===null||o===void 0?void 0:o.license)===null||r===void 0?void 0:r.url,A=Zu(e);return!i&&!c&&!u&&!d&&!A?"":''+(i?`${Q2(i)}`:"")+(c?`${Q2(c)}`:"")+(u?`${Q2((a=(s=e.meta)===null||s===void 0?void 0:s.source)!==null&&a!==void 0?a:"")}`:"")+(d?`${Q2(d)}`:"")+(A?`${Q2(A)}`:"")+""}function Zu(e){var t,n,l,o,r,s,a,i,c,u,d,A,m,p,g;let y=!((t=e.meta)===null||t===void 0)&&t.title?`„${(n=e.meta)===null||n===void 0?void 0:n.title}”`:"Design",F=`„${(o=(l=e.meta)===null||l===void 0?void 0:l.creator)!==null&&o!==void 0?o:"Unknown"}”`;!((r=e.meta)===null||r===void 0)&&r.source&&(y+=` (${e.meta.source})`);let I="";return((a=(s=e.meta)===null||s===void 0?void 0:s.license)===null||a===void 0?void 0:a.name)!=="MIT"&&((i=e.meta)===null||i===void 0?void 0:i.creator)!=="DiceBear"&&(!((c=e.meta)===null||c===void 0)&&c.title)&&(I+="Remix of "),I+=`${y} by ${F}`,!((d=(u=e.meta)===null||u===void 0?void 0:u.license)===null||d===void 0)&&d.name&&(I+=`, licensed under „${(m=(A=e.meta)===null||A===void 0?void 0:A.license)===null||m===void 0?void 0:m.name}”`,!((g=(p=e.meta)===null||p===void 0?void 0:p.license)===null||g===void 0)&&g.url&&(I+=` (${e.meta.license.url})`)),I}const $7=-2147483648,Fu=2147483647,Bu=1024;function Zn(e){return e^=e<<13,e^=e>>17,e^=e<<5,e}function Su(e){let t=0;for(let n=0;nt=Zn(t),l=(o,r)=>Math.floor((n()-$7)/(Fu-$7)*(r+1-o)+o);return{seed:e,next:n,bool(o=50){return l(1,100)<=o},integer(o,r){return l(o,r)},pick(o,r){var s;return o.length===0?(n(),r):(s=o[l(0,o.length-1)])!==null&&s!==void 0?s:r},shuffle(o){const r=z4(n().toString()),s=[...o];for(let a=s.length-1;a>0;a--){const i=r.integer(0,a);[s[a],s[i]]=[s[i],s[a]]}return s},string(o,r="abcdefghijklmnopqrstuvwxyz1234567890"){const s=z4(n().toString());let a="";for(let i=0;i`;switch(l){case"solid":return c+e.body;case"gradientLinear":return``+e.body}}function Qu(e,t){let{width:n,height:l,x:o,y:r}=be(e),s=t?(t-100)/100:0,a=(n/2+o)*s*-1,i=(l/2+r)*s*-1;return`${e.body}`}function Nu(e,t,n){let l=be(e),o=(l.width+l.x*2)*((t??0)/100),r=(l.height+l.y*2)*((n??0)/100);return`${e.body}`}function Ku(e,t){let{width:n,height:l,x:o,y:r}=be(e);return`${e.body}`}function Gu(e){let{width:t,x:n}=be(e);return`${e.body}`}function Ou(e,t){let{width:n,height:l,x:o,y:r}=be(e),s=t?n*t/100:0,a=t?l*t/100:0;return`${e.body}`}function $u(e){const t={xmlns:"http://www.w3.org/2000/svg",...e.attributes};return Object.keys(t).map(n=>`${Q2(n)}="${Q2(t[n])}"`).join(" ")}function Wu(e){const t=z4(Math.random().toString()),n={};return e.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(l,o,r,s)=>(n[r]=n[r]||t.string(8),`${o}${n[r]}${s}`))}const Lu={properties:{seed:{type:"string"},flip:{type:"boolean",default:!1},rotate:{type:"integer",minimum:0,maximum:360,default:0},scale:{type:"integer",minimum:0,maximum:200,default:100},radius:{type:"integer",minimum:0,maximum:50,default:0},size:{type:"integer",minimum:1},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"}},backgroundType:{type:"array",items:{type:"string",enum:["solid","gradientLinear"]},default:["solid"]},backgroundRotation:{type:"array",items:{type:"integer",minimum:-360,maximum:360},default:[0,360]},translateX:{type:"integer",minimum:-100,maximum:100,default:0},translateY:{type:"integer",minimum:-100,maximum:100,default:0},clip:{type:"boolean",default:!0},randomizeIds:{type:"boolean",default:!1}}};function W7(e){var t;let n={},l=(t=e.properties)!==null&&t!==void 0?t:{};return Object.keys(l).forEach(o=>{let r=l[o];typeof r=="object"&&r.default!==void 0&&(Array.isArray(r.default)?n[o]=[...r.default]:typeof r.default=="object"?n[o]={...r.default}:n[o]=r.default)}),n}function Pu(e,t){var n;let l={...W7(Lu),...W7((n=e.schema)!==null&&n!==void 0?n:{}),...t};return JSON.parse(JSON.stringify(l))}function L7(e){return e==="transparent"?e:`#${e}`}function Tu(e,t,n){var l;let o=e.shuffle(t);o.length<=1||t.length==2&&n=="gradientLinear"?(o=t,e.next()):o=e.shuffle(t),o.length===0&&(o=["transparent"]);const r=o[0],s=(l=o[1])!==null&&l!==void 0?l:o[0];return{primary:L7(r),secondary:L7(s)}}function Hu(e,t={}){var n,l,o,r,s;t=Pu(e,t);const a=z4(t.seed),i=e.create({prng:a,options:t}),c=a.pick((n=t.backgroundType)!==null&&n!==void 0?n:[],"solid"),{primary:u,secondary:d}=Tu(a,(l=t.backgroundColor)!==null&&l!==void 0?l:[],c),A=a.integer(!((o=t.backgroundRotation)===null||o===void 0)&&o.length?Math.min(...t.backgroundRotation):0,!((r=t.backgroundRotation)===null||r===void 0)&&r.length?Math.max(...t.backgroundRotation):0);t.size&&(i.attributes.width=t.size.toString(),i.attributes.height=t.size.toString()),t.scale!==void 0&&t.scale!==100&&(i.body=Qu(i,t.scale)),t.flip&&(i.body=Gu(i)),t.rotate&&(i.body=Ku(i,t.rotate)),(t.translateX||t.translateY)&&(i.body=Nu(i,t.translateX,t.translateY)),u!=="transparent"&&d!=="transparent"&&(i.body=Ru(i,u,d,c,A)),(t.radius||t.clip)&&(i.body=Ou(i,(s=t.radius)!==null&&s!==void 0?s:0)),t.randomizeIds&&(i.body=Wu(i));const m=$u(i),p=Du(e),g=`${p}${i.body}`;return{toString:()=>g,toJson:()=>{var y;return{svg:g,extra:{primaryBackgroundColor:u,secondaryBackgroundColor:d,backgroundType:c,backgroundRotation:A,...(y=i.extra)===null||y===void 0?void 0:y.call(i)}}},toDataUri:()=>`data:image/svg+xml;utf8,${encodeURIComponent(g)}`}}const Yu={variant01:(e,t)=>''},Vu={variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant09:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant08:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant07:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant06:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant05:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant04:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant03:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant02:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant01:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`}},Uu={variant63:(e,t)=>'',variant62:(e,t)=>'',variant61:(e,t)=>'',variant60:(e,t)=>'',variant59:(e,t)=>'',variant58:(e,t)=>'',variant57:(e,t)=>'',variant56:(e,t)=>'',variant55:(e,t)=>'',variant54:(e,t)=>'',variant53:(e,t)=>'',variant52:(e,t)=>'',variant51:(e,t)=>'',variant50:(e,t)=>'',variant49:(e,t)=>'',variant48:(e,t)=>'',variant47:(e,t)=>'',variant46:(e,t)=>'',variant45:(e,t)=>'',variant44:(e,t)=>'',variant43:(e,t)=>'',variant42:(e,t)=>'',variant41:(e,t)=>'',variant40:(e,t)=>'',variant39:(e,t)=>'',variant38:(e,t)=>'',variant37:(e,t)=>'',variant36:(e,t)=>'',variant35:(e,t)=>'',variant34:(e,t)=>'',variant33:(e,t)=>'',variant32:(e,t)=>'',variant31:(e,t)=>'',variant30:(e,t)=>'',variant29:(e,t)=>'',variant28:(e,t)=>'',variant27:(e,t)=>'',variant26:(e,t)=>'',variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>'',hat:(e,t)=>''},Ju={variant30:(e,t)=>'',variant29:(e,t)=>'',variant28:(e,t)=>'',variant27:(e,t)=>'',variant26:(e,t)=>'',variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},zu={variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},ju={variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Xu={variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},qu={variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},ed={variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},td={wavePointLongArms:(e,t)=>'',waveOkLongArms:(e,t)=>'',waveLongArms:(e,t)=>'',waveLongArm:(e,t)=>'',pointLongArm:(e,t)=>'',okLongArm:(e,t)=>'',point:(e,t)=>'',ok:(e,t)=>'',hand:(e,t)=>'',handPhone:(e,t)=>''},nd={electric:(e,t)=>'',saturn:(e,t)=>'',galaxy:(e,t)=>''},ld=Object.freeze(Object.defineProperty({__proto__:null,base:Yu,beard:zu,body:Vu,bodyIcon:nd,brows:ed,eyes:Xu,gesture:td,glasses:qu,hair:Uu,lips:Ju,nose:ju},Symbol.toStringTag,{value:"Module"}));function B2({prng:e,group:t,values:n=[]}){const l=ld,o=e.pick(n);if(o&&l[t][o])return{name:o,value:l[t][o]}}function od({prng:e,options:t}){const n=B2({prng:e,group:"base",values:t.base}),l=B2({prng:e,group:"body",values:t.body}),o=B2({prng:e,group:"hair",values:t.hair}),r=B2({prng:e,group:"lips",values:t.lips}),s=B2({prng:e,group:"beard",values:t.beard}),a=B2({prng:e,group:"nose",values:t.nose}),i=B2({prng:e,group:"eyes",values:t.eyes}),c=B2({prng:e,group:"glasses",values:t.glasses}),u=B2({prng:e,group:"brows",values:t.brows}),d=B2({prng:e,group:"gesture",values:t.gesture}),A=B2({prng:e,group:"bodyIcon",values:t.bodyIcon});return{base:n,body:l,hair:o,lips:r,beard:e.bool(t.beardProbability)?s:void 0,nose:a,eyes:i,glasses:e.bool(t.glassesProbability)?c:void 0,brows:u,gesture:e.bool(t.gestureProbability)?d:void 0,bodyIcon:e.bool(t.bodyIconProbability)?A:void 0}}function rd({prng:e,options:t}){return{}}const sd={$schema:"http://json-schema.org/draft-07/schema#",properties:{base:{type:"array",items:{type:"string",enum:["variant01"]},default:["variant01"]},beard:{type:"array",items:{type:"string",enum:["variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},beardProbability:{type:"integer",minimum:0,maximum:100,default:10},body:{type:"array",items:{type:"string",enum:["variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},bodyIcon:{type:"array",items:{type:"string",enum:["electric","saturn","galaxy"]},default:["electric","saturn","galaxy"]},bodyIconProbability:{type:"integer",minimum:0,maximum:100,default:75},brows:{type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyes:{type:"array",items:{type:"string",enum:["variant05","variant04","variant03","variant02","variant01"]},default:["variant05","variant04","variant03","variant02","variant01"]},gesture:{type:"array",items:{type:"string",enum:["wavePointLongArms","waveOkLongArms","waveLongArms","waveLongArm","pointLongArm","okLongArm","point","ok","hand","handPhone"]},default:["wavePointLongArms","waveOkLongArms","waveLongArms","waveLongArm","pointLongArm","okLongArm","point","ok","hand","handPhone"]},gestureProbability:{type:"integer",minimum:0,maximum:100,default:10},glasses:{type:"array",items:{type:"string",enum:["variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},glassesProbability:{type:"integer",minimum:0,maximum:100,default:20},hair:{type:"array",items:{type:"string",enum:["variant63","variant62","variant61","variant60","variant59","variant58","variant57","variant56","variant55","variant54","variant53","variant52","variant51","variant50","variant49","variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01","hat"]},default:["variant63","variant62","variant61","variant60","variant59","variant58","variant57","variant56","variant55","variant54","variant53","variant52","variant51","variant50","variant49","variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01","hat"]},lips:{type:"array",items:{type:"string",enum:["variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},nose:{type:"array",items:{type:"string",enum:["variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]}}},ad={title:"Notionists",creator:"Zoish",source:"https://heyzoish.gumroad.com/l/notionists",homepage:"https://bio.link/heyzoish",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},id=({prng:e,options:t})=>{var n,l,o,r,s,a,i,c,u,d,A,m,p,g,y,F,I,D,w,B;const W=od({prng:e,options:t}),Z=rd({prng:e,options:t});return{attributes:{viewBox:"0 0 1744 1744",fill:"none","shape-rendering":"auto"},body:`${(l=(n=W.base)===null||n===void 0?void 0:n.value(W,Z))!==null&&l!==void 0?l:""}${(r=(o=W.body)===null||o===void 0?void 0:o.value(W,Z))!==null&&r!==void 0?r:""}${(a=(s=W.hair)===null||s===void 0?void 0:s.value(W,Z))!==null&&a!==void 0?a:""}${(c=(i=W.lips)===null||i===void 0?void 0:i.value(W,Z))!==null&&c!==void 0?c:""}${(d=(u=W.beard)===null||u===void 0?void 0:u.value(W,Z))!==null&&d!==void 0?d:""}${(m=(A=W.nose)===null||A===void 0?void 0:A.value(W,Z))!==null&&m!==void 0?m:""}${(g=(p=W.eyes)===null||p===void 0?void 0:p.value(W,Z))!==null&&g!==void 0?g:""}${(F=(y=W.glasses)===null||y===void 0?void 0:y.value(W,Z))!==null&&F!==void 0?F:""}${(D=(I=W.brows)===null||I===void 0?void 0:I.value(W,Z))!==null&&D!==void 0?D:""}${(B=(w=W.gesture)===null||w===void 0?void 0:w.value(W,Z))!==null&&B!==void 0?B:""}`,extra:()=>({...Object.entries(W).reduce((_,[R,S])=>(_[R]=S==null?void 0:S.name,_),{}),...Object.entries(Z).reduce((_,[R,S])=>(_[`${R}Color`]=S,_),{})})}},cd=Object.freeze(Object.defineProperty({__proto__:null,create:id,meta:ad,schema:sd},Symbol.toStringTag,{value:"Module"})),yt=j(!0);function P7(e){yt.value=e,document.documentElement.classList.toggle("dark",e),document.documentElement.classList.toggle("light",!e);try{localStorage.setItem("sourceant-theme",e?"dark":"light")}catch{}}function Fn(){return{isDark:yt,toggleTheme:()=>P7(!yt.value),restoreTheme:()=>{let e=null;try{e=localStorage.getItem("sourceant-theme")}catch{e=null}P7(e!=="light")}}}async function U1(e,t={}){const n=await fetch(e,{...t,headers:t.body?{"Content-Type":"application/json"}:void 0}),l=await n.text(),o=l?JSON.parse(l):null;if(!n.ok)throw new Error((o==null?void 0:o.error)||`the agent answered ${n.status}`);return o}const I2=e=>new URLSearchParams(Object.entries(e).filter(([,t])=>t!==""&&t!==!1)),B1={status:()=>U1("/health"),architecture:(e,t=1)=>U1(`/api/architecture?${I2({repository:e,depth:t})}`),compareArchitecture:e=>U1("/api/architecture/compare",{method:"POST",body:JSON.stringify(e)}),repositories:()=>U1("/api/repositories"),addRepository:(e,t)=>U1("/api/repositories",{method:"POST",body:JSON.stringify({path:e,name:t})}),dropRepository:e=>U1(`/api/repositories?${I2({path:e})}`,{method:"DELETE"}),index:(e="",{everything:t=!1,update:n=!1}={})=>U1("/api/index",{method:"POST",body:JSON.stringify({repository:e,everything:t,update:n})}),attention:e=>U1(`/api/attention?${I2({repository:e})}`),graph:(e,{includeTests:t=!1,pathPrefix:n="",focus:l="",depth:o,q:r=""}={})=>U1(`/api/graph?${I2({repository:e,include_tests:t,path_prefix:n,focus:l,depth:o,q:r})}`),knowledge:e=>U1(`/api/knowledge?${I2({repository:e,limit:100})}`),recordKnowledge:e=>U1("/api/knowledge",{method:"PUT",body:JSON.stringify(e)}),forgetKnowledge:(e,t)=>U1(`/api/knowledge?${I2({repository:e,id:t})}`,{method:"DELETE"}),browse:(e="")=>U1(`/api/browse?${I2({path:e})}`),initialize:(e,{dryRun:t=!1,useModel:n=!1}={})=>U1("/api/knowledge/initialize",{method:"POST",body:JSON.stringify({repository:e,dry_run:t,use_model:n})}),skills:(e="")=>U1(`/api/skills?${I2({repository:e})}`),skill:(e,t="")=>U1(`/api/skills/${e}?${I2({repository:t})}`),recordSkill:e=>U1("/api/skills",{method:"PUT",body:JSON.stringify({scope:"repository",paths:[],reviews:null,...e})}),forgetSkill:(e,t,n)=>U1(`/api/skills?${I2({repository:e,scope:t,id:n})}`,{method:"DELETE"}),startReview:(e,{against:t="",title:n="",description:l="",skills:o=[],useModel:r=!0}={})=>U1("/api/reviews",{method:"POST",body:JSON.stringify({repository:e,against:t,title:n,description:l,skills:o,use_model:r})}),reviewed:e=>U1(`/api/reviews/${e}`),reviews:(e="")=>U1(`/api/reviews?${I2({repository:e})}`),settings:()=>U1("/api/settings"),setSetting:(e,t)=>U1("/api/settings",{method:"PUT",body:JSON.stringify({key:e,value:t})}),resetSetting:e=>U1(`/api/settings?${I2({key:e})}`,{method:"DELETE"})},ud={class:"space-y-4"},dd={key:0,class:"flex items-center gap-2 py-6 text-sm text-muted-foreground"},fd=["onClick"],Ad=["value"],hd={key:1,class:"flex items-center gap-2 text-sm"},pd=["id","onUpdate:modelValue"],md={class:"text-muted-foreground"},gd={key:0,class:"py-6 text-sm text-muted-foreground"},vd={key:2,class:"flex items-center gap-3"},yd={key:0,class:"text-xs text-success"},Bn={__name:"SettingsPanel",props:{group:{type:String,required:!0}},emits:["saved"],setup(e,{emit:t}){const n=e,l=t,o=j([]),r=j({}),s=j(!1),a=j(!0),i=j(""),c=j(!1),u=t1(()=>o.value.filter(D=>D.group===n.group));function d(D){return D.secret?"":D.listed?String(D.value??"").split(` +`).map(w=>w.trim()).filter(Boolean):D.value??""}const A=(D,w)=>D.listed?(w??[]).join(` +`):w,m=(D,w)=>String(A(D,w)??"")===String(D.value??""),p=t1(()=>u.value.some(D=>{const w=r.value[D.key];return D.secret?!!w:!m(D,w)}));async function g(){a.value=!0;try{o.value=await B1.settings(),r.value=Object.fromEntries(u.value.map(D=>[D.key,d(D)])),i.value=""}catch(D){i.value=D.message}finally{a.value=!1}}async function y(){s.value=!0,c.value=!1,i.value="";try{for(const D of u.value){const w=r.value[D.key];D.secret&&!w||!D.secret&&m(D,w)||await B1.setSetting(D.key,A(D,w))}await g(),c.value=!0,l("saved")}catch(D){i.value=D.message}finally{s.value=!1}}async function F(D){i.value="";try{await B1.resetSetting(D.key),await g()}catch(w){i.value=w.message}}function I(D){return D.secret?D.is_set:String(D.value??"")!==String(D.default??"")}return q1(()=>n.group,g),f2(g),(D,w)=>(h(),C("div",ud,[a.value?(h(),C("p",dd,[M(f(D2),{class:"h-4 w-4 animate-spin"}),w[0]||(w[0]=J(" Reading what this machine can be told. ",-1))])):(h(),C(n1,{key:1},[(h(!0),C(n1,null,M1(u.value,B=>(h(),G(f(R2),{key:B.key,label:B.label,for:B.key,hint:B.description},{label:x(()=>[B.secret&&B.is_set?(h(),G(f(u2),{key:0,variant:"success"},{default:x(()=>[...w[1]||(w[1]=[J("set",-1)])]),_:1})):L("",!0),I(B)?(h(),C("button",{key:1,type:"button",class:"inline-flex items-center gap-1 text-[11px] font-normal normal-case tracking-normal text-muted-foreground hover:text-foreground",onClick:W=>F(B)},[M(f(Mu),{class:"h-3 w-3"}),w[2]||(w[2]=J(" put back ",-1))],8,fd)):L("",!0)]),default:x(()=>{var W;return[(W=B.choices)!=null&&W.length?(h(),G(f(j2),{key:0,id:B.key,modelValue:r.value[B.key],"onUpdate:modelValue":Z=>r.value[B.key]=Z,class:"w-full"},{default:x(()=>[(h(!0),C(n1,null,M1(B.choices,Z=>(h(),C("option",{key:Z,value:Z},Q(Z),9,Ad))),128))]),_:2},1032,["id","modelValue","onUpdate:modelValue"])):B.type==="bool"?(h(),C("label",hd,[Oe(k("input",{id:B.key,"onUpdate:modelValue":Z=>r.value[B.key]=Z,type:"checkbox",class:"h-3.5 w-3.5 rounded border"},null,8,pd),[[c0,r.value[B.key]]]),k("span",md,Q(r.value[B.key]?"On":"Off"),1)])):B.listed?(h(),G(f(W0),{key:2,modelValue:r.value[B.key],"onUpdate:modelValue":Z=>r.value[B.key]=Z,mono:"",noun:"a folder",placeholder:"/home/you/work/knowledgebase/skills"},null,8,["modelValue","onUpdate:modelValue"])):(h(),G(f(U3),{key:3,id:B.key,modelValue:r.value[B.key],"onUpdate:modelValue":Z=>r.value[B.key]=Z,type:B.secret?"password":B.type==="int"||B.type==="float"?"number":"text",autocomplete:B.secret?"off":void 0,placeholder:B.secret&&B.is_set?"Leave empty to keep what is set":String(B.default??"")},null,8,["id","modelValue","onUpdate:modelValue","type","autocomplete","placeholder"]))]}),_:2},1032,["label","for","hint"]))),128)),u.value.length?L("",!0):(h(),C("p",gd," Nothing in this group is configurable here. ")),i.value?(h(),G(f(d2),{key:1,tone:"danger"},{default:x(()=>[J(Q(i.value),1)]),_:1})):L("",!0),u.value.length?(h(),C("div",vd,[M(f(k1),{disabled:s.value||!p.value,onClick:y},{default:x(()=>[s.value?(h(),G(f(D2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(me),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),w[3]||(w[3]=J(" Save ",-1))]),_:1},8,["disabled"]),c.value&&!p.value?(h(),C("span",yd,"Saved.")):L("",!0),K1(D.$slots,"after")])):L("",!0)],64))]))}},bd={class:"mb-2 text-xs font-mono text-muted-foreground break-all"},kd={class:"h-64 overflow-y-auto rounded-md border bg-muted/30"},Cd=["onClick"],wd={class:"truncate"},xd={key:1,class:"px-3 py-6 text-center text-sm text-muted-foreground"},_d={class:"mt-2 text-xs text-muted-foreground"},Id={class:"font-mono"},Md={key:1,role:"status",class:"mt-3 text-sm text-muted-foreground"},Ed={class:"flex items-center gap-2 pt-5"},Sn={__name:"FolderPicker",props:{open:Boolean},emits:["close","added"],setup(e,{emit:t}){const n=e,l=t,o=j(null),r=j(""),s=j(!1),a=j("");async function i(u){try{o.value=await B1.browse(u),a.value=""}catch(d){a.value=d.message}}q1(()=>n.open,u=>{u&&(r.value="",a.value="",s.value=!1,i(""))});async function c(){if(o.value){s.value=!0,a.value="";try{const u=await B1.addRepository(o.value.path,r.value.trim());await B1.index(u.name),l("added"),l("close")}catch(u){a.value=u.message}finally{s.value=!1}}}return(u,d)=>(h(),G(f(Vt),{open:e.open,"max-width":"lg",onClose:d[3]||(d[3]=A=>l("close"))},{default:x(()=>{var A,m,p,g;return[d[8]||(d[8]=k("h2",{class:"text-lg font-semibold mb-3"},"Add a folder",-1)),k("p",bd,Q((A=o.value)==null?void 0:A.path),1),k("div",kd,[(m=o.value)!=null&&m.parent?(h(),C("button",{key:0,class:"flex w-full items-center gap-2 px-3 py-2 text-sm hover:bg-accent",onClick:d[0]||(d[0]=y=>i(o.value.parent))},[M(f(yu),{class:"h-3.5 w-3.5"}),d[4]||(d[4]=k("span",{class:"text-muted-foreground"},"Up one",-1))])):L("",!0),(h(!0),C(n1,null,M1(((p=o.value)==null?void 0:p.entries)??[],y=>(h(),C("button",{key:y.path,class:"flex w-full items-center gap-2 px-3 py-2 text-sm hover:bg-accent",onClick:F=>i(y.path)},[M(f(m5),{class:"h-3.5 w-3.5 text-muted-foreground"}),k("span",wd,Q(y.name),1),y.repository?(h(),G(f(u2),{key:0,variant:"glow",class:"ml-auto shrink-0"},{default:x(()=>[...d[5]||(d[5]=[J("git",-1)])]),_:1})):L("",!0)],8,Cd))),128)),o.value&&o.value.entries.length===0?(h(),C("p",xd," Nothing inside. ")):L("",!0)]),M(f(R2),{label:"Name it (optional)",for:"repo-name",class:"mt-4"},{default:x(()=>[M(f(U3),{id:"repo-name",modelValue:r.value,"onUpdate:modelValue":d[1]||(d[1]=y=>r.value=y),placeholder:"Taken from the git remote, or the folder name"},null,8,["modelValue"])]),_:1}),k("p",_d,[d[6]||(d[6]=J(" Adding ",-1)),k("code",Id,Q((g=o.value)==null?void 0:g.path),1)]),a.value?(h(),G(f(d2),{key:0,tone:"danger",class:"mt-3"},{default:x(()=>[J(Q(a.value),1)]),_:1})):L("",!0),s.value?(h(),C("p",Md," Reading this repository. Large repositories can take several minutes. ")):L("",!0),k("div",Ed,[M(f(k1),{disabled:s.value||!o.value,onClick:c},{default:x(()=>[s.value?(h(),G(f(D2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(h3),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),J(" "+Q(s.value?"Reading…":"Add and index"),1)]),_:1},8,["disabled"]),M(f(k1),{variant:"outline",onClick:d[2]||(d[2]=y=>l("close"))},{default:x(()=>[...d[7]||(d[7]=[J("Cancel",-1)])]),_:1})])]}),_:1},8,["open"]))}},ee=j([]),Ze=j(""),T5=j(""),H5=j(!1),Jt="";function g3({all:e=!1}={}){const t=t1(()=>e&&!Ze.value&&ee.value.length>1);async function n(){var l;H5.value=!0;try{ee.value=await B1.repositories(),T5.value=""}catch(o){ee.value=[],T5.value=`${o.message}. Is sourceant-agent running?`}finally{H5.value=!1}Ze.value===Jt&&e||ee.value.some(o=>o.name===Ze.value)||(Ze.value=((l=ee.value[0])==null?void 0:l.name)??"")}return{repositories:ee,chosen:Ze,error:T5,loading:H5,mixed:t,fetchRepositories:n}}const Dd={class:"flex items-center gap-2"},T7="sourceant-onboarded",Zd={__name:"Onboarding",setup(e){const{repositories:t,fetchRepositories:n}=g3(),l=j(!1),o=j("folder"),r=j(!1),s=t1(()=>t.value.length>0);function a(){try{localStorage.setItem(T7,"yes")}catch{}l.value=!1}return f2(async()=>{let i=null;try{i=localStorage.getItem(T7)}catch{i=null}i||(await n(),o.value=t.value.length?"model":"folder",l.value=!0)}),(i,c)=>(h(),G(f(Vt),{open:l.value,"max-width":"xl",onClose:a},{default:x(()=>[o.value==="folder"?(h(),C(n1,{key:0},[c[4]||(c[4]=k("h2",{class:"text-lg font-semibold mb-1"},"Point it at some code",-1)),c[5]||(c[5]=k("p",{class:"text-sm text-muted-foreground mb-5"}," SourceAnt reads a folder on this machine into a graph, and keeps what you record about it beside the code it belongs to. Nothing leaves this machine. ",-1)),k("div",Dd,[M(f(k1),{onClick:c[0]||(c[0]=u=>r.value=!0)},{default:x(()=>[M(f(h3),{class:"mr-1.5 h-3.5 w-3.5"}),c[3]||(c[3]=J(" Add a folder ",-1))]),_:1}),M(f(k1),{variant:"outline",onClick:c[1]||(c[1]=u=>o.value="model")},{default:x(()=>[s.value?(h(),C(n1,{key:0},[J("Next")],64)):(h(),C(n1,{key:1},[J("Skip for now")],64)),M(f(gu),{class:"ml-1.5 h-3.5 w-3.5"})]),_:1})]),M(Sn,{open:r.value,onClose:c[2]||(c[2]=u=>r.value=!1),onAdded:f(n)},null,8,["open","onAdded"])],64)):(h(),C(n1,{key:1},[c[7]||(c[7]=k("h2",{class:"text-lg font-semibold mb-1"},"Add a model and API key",-1)),c[8]||(c[8]=k("p",{class:"text-sm text-muted-foreground mb-5"}," Reading your code and reading what it already states about itself need no model at all. Proposing what nobody wrote down does. Your key stays on this machine and goes to that provider and nowhere else. ",-1)),M(Bn,{group:"Model",onSaved:a}),M(f(k1),{variant:"ghost",class:"mt-4",onClick:a},{default:x(()=>[...c[6]||(c[6]=[J("Skip for now",-1)])]),_:1})],64))]),_:1},8,["open"]))}},Fd={class:"flex h-screen flex-col bg-background"},Bd={class:"z-40 h-12 shrink-0 border-b bg-card/80 backdrop-blur-sm"},Sd={class:"flex items-center h-full min-w-0 px-3 gap-1 sm:px-4"},Rd={class:"hidden lg:flex items-center gap-0.5 min-w-0"},Qd={class:"hidden xl:inline"},Nd={class:"relative shrink-0","data-dropdown":"user"},Kd={key:0,class:"absolute top-full right-0 mt-1 w-52 bg-card border rounded-lg shadow-lg py-1 z-50"},Gd=["aria-label"],Od={key:0,class:"lg:hidden shrink-0 border-b bg-card px-4 py-2 space-y-0.5"},$d={class:"min-h-0 flex-1 overflow-y-auto"},Wd={class:"container mx-auto flex h-full flex-col px-4 pb-4 pt-3 lg:px-6 lg:pb-6 lg:pt-4"},Ld={__name:"App",setup(e){const{isDark:t,toggleTheme:n,restoreTheme:l}=Fn(),o=d5(),r=j(!1),s=j(!1),a=[{name:"Overview",href:"/",icon:Cn},{name:"Knowledge",href:"/knowledge",icon:Q4},{name:"Graphs",href:"/graph",icon:g5},{name:"Reviews",href:"/reviews",icon:He},{name:"Skills",href:"/skills",icon:kn},{name:"Repositories",href:"/repositories",icon:c4},{name:"Settings",href:"/settings",icon:gt}],i=t1(()=>Hu(cd,{seed:location.hostname||"sourceant",radius:50}).toDataUri());function c(u){u.target.closest('[data-dropdown="user"]')||(s.value=!1)}return f2(()=>{l(),document.addEventListener("click",c)}),ve(()=>document.removeEventListener("click",c)),(u,d)=>{const A=tt("RouterLink"),m=tt("RouterView");return h(),C("div",Fd,[k("header",Bd,[k("div",Sd,[M(A,{to:"/",class:"shrink-0 mr-1 sm:mr-3"},{default:x(()=>[M(f(j9),{size:"sm","show-text":!1})]),_:1}),d[7]||(d[7]=k("span",{class:"hidden lg:block h-4 w-px bg-border mx-1 shrink-0"},null,-1)),k("nav",Rd,[(h(),C(n1,null,M1(a,p=>M(A,{key:p.href,to:p.href,title:p.name,class:c1(["flex shrink-0 items-center gap-1.5 px-2 py-1 rounded-md text-sm transition-colors 2xl:px-2.5",f(o).path===p.href?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-muted hover:text-foreground"])},{default:x(()=>[(h(),G(k2(p.icon),{class:"h-3.5 w-3.5 shrink-0"})),k("span",Qd,Q(p.name),1)]),_:2},1032,["to","title","class"])),64))]),d[8]||(d[8]=k("div",{class:"flex-1 min-w-0"},null,-1)),k("div",Nd,[k("button",{class:"flex items-center gap-1.5 p-1 rounded-md hover:bg-muted transition-colors","aria-label":"Account",onClick:d[0]||(d[0]=e4(p=>s.value=!s.value,["stop"]))},[M(f(ga),{src:i.value,size:"sm",class:"h-6 w-6"},null,8,["src"])]),M(a0,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition duration-75 ease-in","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:x(()=>[s.value?(h(),C("div",Kd,[d[6]||(d[6]=k("div",{class:"px-3 py-2 border-b"},[k("p",{class:"text-sm font-medium truncate"},"This machine"),k("p",{class:"text-xs text-muted-foreground truncate"},"Nothing here has been shared.")],-1)),M(A,{to:"/settings",class:"flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-muted transition-colors",onClick:d[1]||(d[1]=p=>s.value=!1)},{default:x(()=>[M(f(gt),{class:"h-3.5 w-3.5 text-muted-foreground"}),d[5]||(d[5]=J(" Settings ",-1))]),_:1}),k("button",{class:"flex items-center gap-2 w-full px-3 py-1.5 text-sm hover:bg-muted transition-colors",onClick:d[2]||(d[2]=(...p)=>f(n)&&f(n)(...p))},[(h(),G(k2(f(t)?f(Mn):f(xn)),{class:"h-3.5 w-3.5 text-muted-foreground"})),k("span",null,Q(f(t)?"Light mode":"Dark mode"),1)])])):L("",!0)]),_:1})]),k("button",{class:"lg:hidden shrink-0 p-1 rounded-md hover:bg-muted transition-colors","aria-label":r.value?"Close menu":"Open menu",onClick:d[3]||(d[3]=p=>r.value=!r.value)},[r.value?(h(),G(f(Dn),{key:1,class:"h-5 w-5"})):(h(),G(f(xu),{key:0,class:"h-5 w-5"}))],8,Gd)])]),r.value?(h(),C("div",Od,[(h(),C(n1,null,M1(a,p=>M(A,{key:p.href,to:p.href,class:c1(["flex items-center gap-2 px-3 py-2 rounded-md text-sm transition-colors",f(o).path===p.href?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-muted hover:text-foreground"]),onClick:d[4]||(d[4]=g=>r.value=!1)},{default:x(()=>[(h(),G(k2(p.icon),{class:"h-4 w-4"})),J(" "+Q(p.name),1)]),_:2},1032,["to","class"])),64))])):L("",!0),k("main",$d,[k("div",Wd,[M(m)])]),M(Zd)])}}},g4={__name:"EmptyMachine",setup(e){return(t,n)=>(h(),G(f(j1),{class:"text-center py-16 px-6"},{default:x(()=>[n[1]||(n[1]=k("h2",{class:"text-lg font-semibold mb-1"},"Nothing indexed yet",-1)),n[2]||(n[2]=k("p",{class:"text-muted-foreground text-sm mb-4 max-w-lg mx-auto"}," Point SourceAnt at a folder on this machine and it reads the code into a graph you can look at and record against. ",-1)),M(f(k1),{as:"a",href:"/repositories",variant:"glow"},{default:x(()=>[M(f(h3),{class:"mr-2 h-4 w-4"}),n[0]||(n[0]=J(" Add a repository ",-1))]),_:1})]),_:1}))}},Pd={class:"grid gap-3 mb-6 sm:grid-cols-2 lg:grid-cols-4"},Td={class:"text-xs text-muted-foreground capitalize"},Hd={class:"mt-1 text-2xl font-semibold tabular-nums"},Yd={class:"grid gap-3"},Vd={class:"flex items-center gap-1.5"},Ud={class:"flex items-center gap-1.5"},Jd={__name:"Overview",setup(e){const{repositories:t,error:n,fetchRepositories:l}=g3(),o=j([]),r=t1(()=>({repositories:t.value.length,files:o.value.reduce((s,a)=>s+a.files,0),nodes:o.value.reduce((s,a)=>s+a.nodes,0),knowledge:o.value.reduce((s,a)=>s+a.knowledge,0)}));return f2(async()=>{await l(),o.value=await Promise.all(t.value.map(async s=>{const[a,i]=await Promise.all([B1.graph(s.name).catch(()=>null),B1.knowledge(s.name).catch(()=>null)]);return{repository:s,files:a?a.nodes.filter(c=>c.kind==="file").length:0,nodes:a?a.nodes.length:0,knowledge:i?i.total:0}}))}),(s,a)=>(h(),C("div",null,[M(f(m3),{pillar:"memory",title:"Overview",sub:"What SourceAnt has on this machine."},{icon:x(()=>[M(f(Cn),{class:"h-6 w-6"})]),_:1}),f(n)?(h(),G(f(d2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[J(Q(f(n)),1)]),_:1})):L("",!0),!f(n)&&f(t).length===0?(h(),G(g4,{key:1})):f(t).length?(h(),C(n1,{key:2},[k("div",Pd,[(h(!0),C(n1,null,M1(r.value,(i,c)=>(h(),G(f(j1),{key:c,class:"p-5"},{default:x(()=>[k("p",Td,Q(c),1),k("p",Hd,Q(i.toLocaleString()),1)]),_:2},1024))),128))]),k("div",Yd,[(h(!0),C(n1,null,M1(o.value,i=>(h(),G(f(J3),{key:i.repository.name,title:i.repository.name,subtitle:i.repository.path,hover:""},{icon:x(()=>[M(f(m5),{class:"h-5 w-5"})]),badges:x(()=>[M(f(u2),{variant:i.files?"success":"warning"},{default:x(()=>[J(Q(i.files?"Indexed":"Not indexed"),1)]),_:2},1032,["variant"])]),meta:x(()=>[k("span",Vd,[M(f(p5),{class:"h-3.5 w-3.5"}),J(Q(i.files.toLocaleString())+" files ",1)]),k("span",Ud,[M(f(J4),{class:"h-3.5 w-3.5"}),J(Q(i.knowledge.toLocaleString())+" recorded ",1)])]),actions:x(()=>[M(f(k1),{as:"a",href:"/graph",variant:"ghost",size:"sm"},{default:x(()=>[...a[0]||(a[0]=[J("Graph",-1)])]),_:1})]),_:2},1032,["title","subtitle"]))),128))]),a[1]||(a[1]=k("p",{class:"mt-4 text-xs text-muted-foreground"}," Reviews are not here. A review reads a pull request, and nothing on this machine produces one. ",-1))],64)):L("",!0)]))}};function zd(){const e=j(null),t=j(!1),n=j(null);async function l(o,r,s={}){t.value=!0,n.value=null;try{e.value=await B1.graph(`${o}/${r}`,s),n.value=null}catch(a){e.value=null,n.value=a}finally{t.value=!1}}return{graph:e,loading:t,fetchCodeGraph:l,failureFor:()=>n.value}}function jd(){const e=j(null);async function t(){return e.value={nodes:[],links:[]},e.value}return{fetchGraph:t,failureFor:()=>null}}const Xd={key:0},qd={class:"inline-flex w-full rounded-md border bg-muted/40 p-0.5"},ef=["onClick"],tf={class:"mt-1.5 text-[11px] text-muted-foreground"},nf={key:1},lf={class:"relative"},of={key:2},rf={class:"space-y-0.5"},sf=["onClick"],af={class:"flex-1 truncate text-foreground"},cf={class:"tabular-nums text-muted-foreground"},uf={key:3},df={class:"flex flex-wrap gap-1.5"},ff=["onClick"],Af={key:4},hf={class:"flex cursor-pointer items-center gap-2 text-[11px] text-muted-foreground"},pf={key:5},mf={key:6},gf={class:"mb-1.5 flex items-center justify-between"},vf=["disabled"],yf={key:0,class:"mt-1 text-[11px] text-muted-foreground"},bf={key:1,class:"mt-1.5 space-y-1.5"},kf={class:"flex items-start gap-1.5 text-[11px]"},Cf={class:"min-w-0 break-words"},wf={class:"font-medium"},xf={class:"min-w-0"},_f={class:"min-w-0"},If={class:"overflow-hidden rounded-lg border bg-card"},Mf={class:"text-xs text-muted-foreground"},Ef={class:"space-y-1"},Df={class:"mx-auto max-w-sm text-xs text-muted-foreground"},Zf={key:0,class:"mt-2 text-xs text-warning"},Ff={key:1,class:"mt-2 text-xs text-muted-foreground"},Bf={key:2,class:"mt-2 text-xs text-muted-foreground"},Rn=O1({__name:"GraphWorkbench",props:{repository:{},sources:{default:()=>["knowledge","code"]},controls:{default:()=>["filter","kinds","parts","layouts","depth","retired"]},height:{default:"640px"}},emits:["select"],setup(e,{expose:t,emit:n}){const l=e,o=n,{fetchGraph:r,failureFor:s}=jd(),{legend:a}=O0(),{graph:i,loading:c,fetchCodeGraph:u,failureFor:d}=zd(),A=j(l.sources[0]??"knowledge"),m=j(null),p=j(!1),g=t1(()=>A.value==="code"?i.value:m.value),y=t1(()=>A.value==="code"?c.value:p.value),F=t1(()=>A.value==="code"?d("code-graph"):s("graph")),I=t1(()=>l.repository.split("/").pop()??l.repository),D=t1(()=>!!g.value&&g.value.nodes.length>0);function w(z){return l.controls.includes(z)}const B=j(""),W=j(2),Z=j([]),_=j(""),R=j("2d"),S=j([]),q=j(!1),V=t1(()=>!!B.value),m1=t1(()=>{var N;const z=(N=g.value)==null?void 0:N.nodes.find(f1=>f1.id===B.value);return(z==null?void 0:z.name)??B.value.replace(/^(file|symbol):/,"")}),b1=t1(()=>{var z;return((z=g.value)==null?void 0:z.communities)??[]}),l1=j(50),o1=t1(()=>b1.value.slice(0,l1.value));q1(b1,()=>{l1.value=50});const y1=[{id:"2d",label:"2D"},{id:"3d",label:"3D"},{id:"tree",label:"Tree"},{id:"radial",label:"Radial"},{id:"layered",label:"Layered"},{id:"web",label:"Force"}],w1={knowledge:"Knowledge",code:"Code"},C1=["#4E79A7","#F28E2B","#E15759","#76B7B2","#59A14F","#EDC948","#B07AA1","#FF9DA7","#9C755F","#BAB0AC"];async function s1(){const[z,N]=l.repository.split("/");if(!z||!N){m.value=null;return}if(A.value==="code"){await u(z,N,{focus:B.value||void 0,depth:V.value?W.value:void 0,q:_.value.trim()||void 0});return}p.value=!0;try{m.value=await r(z,N,{focus:B.value||void 0,depth:V.value?W.value:void 0,kind:Z.value,q:_.value.trim()||void 0,status:q.value?"all":void 0})}finally{p.value=!1}}let $1=null;function S1(){$1&&clearTimeout($1),$1=setTimeout(s1,250)}q1([W,Z,_,q],S1,{deep:!0}),q1(B,s1),q1(A,()=>{B.value="",S.value=[],s1()}),q1(()=>l.repository,()=>{B.value="",S.value=[],s1()},{immediate:!0});function Y1(z){o("select",z),w("depth")&&(B.value=B.value===z?"":z)}function e2(){B.value=""}function a1(z){Z.value=Z.value.includes(z)?Z.value.filter(N=>N!==z):[...Z.value,z]}function p1(z){S.value=S.value.includes(z)?S.value.filter(N=>N!==z):[...S.value,z]}const $=t1(()=>l.sources.length>1||w("filter")||w("kinds")||w("parts")||w("layouts")||w("depth")||w("retired"));return t({reload:s1}),(z,N)=>{var f1,I1,v,b;return h(),C("div",{class:c1(["grid gap-4 lg:items-start",$.value?"lg:grid-cols-[16rem_1fr]":""])},[$.value?(h(),C("aside",{key:0,class:"space-y-4 overflow-y-auto rounded-lg border bg-card p-3",style:M2({height:e.height})},[e.sources.length>1?(h(),C("div",Xd,[N[6]||(N[6]=k("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Draw",-1)),k("div",qd,[(h(!0),C(n1,null,M1(e.sources,E=>(h(),C("button",{key:E,type:"button",class:c1(["flex-1 rounded px-2 py-1 text-xs font-medium transition-colors",A.value===E?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"]),onClick:P=>A.value=E},Q(w1[E]),11,ef))),128))]),k("p",tf,Q(A.value==="code"?"What is defined and what calls what, read from the code.":"What your team decided, and the files it covers."),1)])):L("",!0),w("filter")?(h(),C("div",nf,[N[7]||(N[7]=k("label",{class:"mb-1.5 block text-[11px] font-medium uppercase tracking-wide text-muted-foreground"}," Only what mentions ",-1)),k("div",lf,[M(f(In),{class:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),Oe(k("input",{"onUpdate:modelValue":N[0]||(N[0]=E=>_.value=E),type:"search",placeholder:"a word",class:"w-full rounded-md border bg-background py-1.5 pl-8 pr-2 text-sm"},null,512),[[N6,_.value]])])])):L("",!0),w("parts")&&A.value==="code"&&b1.value.length?(h(),C("div",of,[N[8]||(N[8]=k("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Parts",-1)),k("ul",rf,[(h(!0),C(n1,null,M1(o1.value,E=>(h(),C("li",{key:E.id},[k("button",{type:"button",class:c1(["flex w-full items-center gap-2 rounded-md px-1 py-1 text-left text-[11px] transition-colors hover:bg-muted",S.value.includes(E.id)?"opacity-40":""]),onClick:P=>p1(E.id)},[k("span",{class:"h-2.5 w-2.5 shrink-0 rounded-full",style:M2({backgroundColor:C1[E.id%C1.length]})},null,4),k("span",af,Q(E.name),1),k("span",cf,Q(E.size),1)],10,sf)]))),128))]),l1.valuel1.value+=50)},{default:x(()=>[J("Show more parts ("+Q(l1.value)+" of "+Q(b1.value.length)+")",1)]),_:1})):L("",!0),N[9]||(N[9]=k("p",{class:"mt-1.5 text-[11px] text-muted-foreground"}," Grouped by what calls what. Click one to hide it. ",-1))])):L("",!0),w("kinds")&&A.value==="knowledge"?(h(),C("div",uf,[N[10]||(N[10]=k("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Kinds",-1)),k("div",df,[(h(!0),C(n1,null,M1(f(a),E=>(h(),C("button",{key:E.label,type:"button",class:c1(["inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-[11px] transition-colors",Z.value.includes(E.label.toLowerCase())?"border-primary/40 bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"]),onClick:P=>a1(E.label.toLowerCase())},[k("span",{class:"h-2 w-2 rounded-sm",style:M2({backgroundColor:E.color})},null,4),J(" "+Q(E.label),1)],10,ff))),128)),Z.value.length?(h(),C("button",{key:0,type:"button",class:"text-[11px] text-muted-foreground underline-offset-2 hover:underline",onClick:N[2]||(N[2]=E=>Z.value=[])},"Any")):L("",!0)])])):L("",!0),w("retired")&&A.value==="knowledge"?(h(),C("div",Af,[k("label",hf,[Oe(k("input",{"onUpdate:modelValue":N[3]||(N[3]=E=>q.value=E),type:"checkbox",class:"h-3 w-3 rounded border"},null,512),[[c0,q.value]]),N[11]||(N[11]=J(" Include retired records ",-1))])])):L("",!0),w("layouts")?(h(),C("div",pf,[N[12]||(N[12]=k("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Shape",-1)),M(f(X3),{modelValue:R.value,"onUpdate:modelValue":N[4]||(N[4]=E=>R.value=E),tabs:y1,label:"Shape",class:"grid w-full grid-cols-2"},null,8,["modelValue"])])):L("",!0),w("depth")?(h(),C("div",mf,[k("div",gf,[k("span",{class:c1(["text-[11px] font-medium uppercase tracking-wide",V.value?"text-muted-foreground":"text-muted-foreground/50"])}," Steps out ",2),k("span",{class:c1(["font-mono text-xs",V.value?"":"opacity-50"])},Q(W.value),3)]),Oe(k("input",{"onUpdate:modelValue":N[5]||(N[5]=E=>W.value=E),type:"range",min:"1",max:"5",disabled:!V.value,class:"w-full"},null,8,vf),[[N6,W.value,void 0,{number:!0}]]),V.value?(h(),C("div",bf,[k("p",kf,[M(f(Cu),{class:"mt-0.5 h-3 w-3 shrink-0 text-primary"}),k("span",Cf,[N[13]||(N[13]=J("From ",-1)),k("span",wf,Q(m1.value),1)])]),k("button",{type:"button",class:"inline-flex w-full items-center justify-center gap-1 rounded-md border px-2 py-1 text-[11px] hover:bg-muted",onClick:e2},[M(f(Dn),{class:"h-3 w-3"}),N[14]||(N[14]=J(" Draw everything ",-1))])])):(h(),C("p",yf," Click anything on the graph to walk out from it. "))])):L("",!0)],4)):L("",!0),k("div",xf,[k("div",{class:c1(["grid gap-4",z.$slots.inspector?"lg:grid-cols-[1fr_20rem]":""])},[k("div",_f,[k("div",If,[y.value?(h(),C("div",{key:0,class:"flex",style:M2({height:e.height})},[M(f(yn),{label:A.value==="code"?"Reading the code":"Reading the knowledge graph",note:"Large repositories can take longer to load.",size:"sm"},null,8,["label"])],4)):F.value?(h(),C("div",{key:1,role:"alert",class:"flex flex-col items-center justify-center gap-3 px-6 text-center",style:M2({height:e.height})},[N[16]||(N[16]=k("p",{class:"text-sm font-medium"},"Could not load this graph",-1)),k("p",Mf,Q(F.value.message),1),M(f(k1),{variant:"outline",size:"sm",onClick:s1},{default:x(()=>[...N[15]||(N[15]=[J("Try again",-1)])]),_:1})],4)):D.value?(h(),G(f(wa),{key:3,repo:I.value,mode:R.value,data:g.value,hidden:S.value,height:e.height,onSelect:Y1},null,8,["repo","mode","data","hidden","height"])):(h(),C("div",{key:2,class:"flex flex-col items-center justify-center gap-3 px-6 text-center",style:M2({height:e.height})},[M(f(g5),{class:"h-7 w-7 text-muted-foreground"}),k("div",Ef,[N[17]||(N[17]=k("p",{class:"text-sm font-medium"},"Nothing to draw",-1)),k("p",Df,Q(A.value==="code"?"This repository has not been read yet, so there is no code map for it.":"Initialize this repository and approve what it proposes, and its decisions appear here."),1)])],4))]),(f1=g.value)!=null&&f1.truncated?(h(),C("p",Zf," More than fits in one drawing, so this is the most connected part of it. Narrow it"+Q($.value?" on the left":"")+", or click something to walk out from it. ",1)):L("",!0),D.value?(h(),C("p",Ff,Q((I1=g.value)==null?void 0:I1.nodes.length)+" symbols, "+Q((v=g.value)==null?void 0:v.links.length)+" connections. ",1)):L("",!0),D.value&&!((b=g.value)!=null&&b.links.length)?(h(),C("p",Bf," No connections were found between these files. ")):L("",!0)]),z.$slots.inspector?(h(),C("div",{key:0,class:"overflow-y-auto rounded-lg border bg-card",style:M2({height:e.height})},[K1(z.$slots,"inspector")],4)):L("",!0)],2)])],2)}}}),Sf={class:"flex h-full min-h-0 flex-col"},Rf=["value"],Qf={__name:"Graph",setup(e){const{repositories:t,chosen:n,error:l,fetchRepositories:o}=g3(),r=Nl(()=>Qe(()=>import("./Architecture-zdoEceFG.js"),[])),s=j("components");return f2(o),(a,i)=>(h(),C("div",Sf,[M(f(m3),{title:"Graphs",sub:"Your code, and how it holds together."},{icon:x(()=>[M(f(g5),{class:"h-6 w-6"})]),actions:x(()=>[f(t).length>1?(h(),G(f(j2),{key:0,modelValue:f(n),"onUpdate:modelValue":i[0]||(i[0]=c=>n2(n)?n.value=c:null),size:"sm","aria-label":"Repository"},{default:x(()=>[(h(!0),C(n1,null,M1(f(t),c=>(h(),C("option",{key:c.name,value:c.name},Q(c.name),9,Rf))),128))]),_:1},8,["modelValue"])):L("",!0)]),_:1}),f(l)?(h(),G(f(d2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[J(Q(f(l)),1)]),_:1})):L("",!0),f(t).length===0?(h(),G(g4,{key:1})):L("",!0),f(t).length?(h(),G(f(X3),{key:2,modelValue:s.value,"onUpdate:modelValue":i[1]||(i[1]=c=>s.value=c),tabs:[{id:"components",label:"Components"},{id:"graph",label:"Code graph"}],label:"Graph view",class:"mb-4 self-start"},null,8,["modelValue"])):L("",!0),f(t).length&&s.value==="components"?(h(),G(f(r),{key:3,repository:f(n)},null,8,["repository"])):f(t).length?(h(),G(Rn,{key:f(n),repository:f(n),sources:["code"],controls:["filter","kinds","parts","layouts","depth"],height:"calc(100vh - 15rem)"},null,8,["repository"])):L("",!0)]))}},Nf=["value"],Kf=["value"],Gf=["value"],Of={key:4,class:"grid gap-3"},$f={class:"text-sm text-muted-foreground"},Wf={key:0,class:"mt-2 grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 text-xs"},Lf={class:"break-all font-mono"},Pf={class:"text-lg font-semibold mb-4"},Tf={class:"space-y-4"},Hf={class:"flex items-center gap-2 pt-2"},Yf={__name:"Knowledge",setup(e){const t=["decision","convention","constraint","pattern","workaround","requirement"],{repositories:n,chosen:l,error:o,mixed:r,fetchRepositories:s}=g3({all:!0});async function a(Z){Z&&(l.value=Z)}const i=j([]),c=j(null),u=j({id:"",kind:"decision",summary:"",why:""}),d=j(""),A=j(!1),m=j(!1),p=j(!1),g=j(null),y=j(!1);async function F(){try{const Z=await B1.settings(),_=Z.find(S=>S.key==="model.name"),R=Z.find(S=>S.key==="model.api_key");y.value=!!(_!=null&&_.value)&&!!(R!=null&&R.is_set)}catch{y.value=!1}}async function I(Z=!1){const _=Z?p:m;_.value=!0,g.value=null;try{const R=await B1.initialize(l.value,{useModel:Z});g.value=R.recorded,o.value="",await D()}catch(R){o.value=R.message}finally{_.value=!1}}async function D(){if(l.value)try{const Z=await B1.knowledge(l.value);i.value=Z.items,o.value=""}catch(Z){i.value=[],o.value=Z.message}}function w(Z){var _;c.value=Z??{fresh:!0},u.value=Z?{id:Z.id,kind:Z.kind,summary:Z.summary,why:((_=Z.properties)==null?void 0:_.why)??""}:{id:"",kind:"decision",summary:"",why:""},d.value=""}async function B(){var Z,_,R;if(!u.value.id.trim()||!u.value.summary.trim()){d.value="A name and what is true are both needed.";return}A.value=!0;try{await B1.recordKnowledge({repository:l.value,id:u.value.id.trim(),kind:u.value.kind,status:((Z=c.value)==null?void 0:Z.status)??"accepted",summary:u.value.summary.trim(),properties:u.value.why.trim()?{...((_=c.value)==null?void 0:_.properties)??{},why:u.value.why.trim()}:((R=c.value)==null?void 0:R.properties)??{}}),c.value=null,await D()}catch(S){d.value=S.message}finally{A.value=!1}}async function W(Z){if(confirm(`Forget ${Z.id}?`)){try{await B1.forgetKnowledge(l.value,Z.id)}catch(_){o.value=_.message}await D()}}return q1(l,D),f2(async()=>{await s(),await Promise.all([D(),F()])}),(Z,_)=>{const R=tt("X");return h(),C("div",null,[M(f(m3),{pillar:"memory",title:"Knowledge",sub:"The decisions, conventions and constraints behind this code."},{icon:x(()=>[M(f(J4),{class:"h-6 w-6"})]),actions:x(()=>[f(n).length>1?(h(),G(f(j2),{key:0,modelValue:f(l),"onUpdate:modelValue":_[0]||(_[0]=S=>n2(l)?l.value=S:null),size:"sm","aria-label":"Repository"},{default:x(()=>[k("option",{value:f(Jt)},"All repositories",8,Nf),(h(!0),C(n1,null,M1(f(n),S=>(h(),C("option",{key:S.name,value:S.name},Q(S.name),9,Kf))),128))]),_:1},8,["modelValue"])):L("",!0),f(n).length&&f(l)?(h(),G(f(k1),{key:1,size:"sm",variant:"outline",disabled:m.value,onClick:I},{default:x(()=>[m.value?(h(),G(f(D2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(vt),{key:1,class:"mr-2 h-4 w-4"})),J(" "+Q(m.value?"Finding…":"Find in what the repo states"),1)]),_:1},8,["disabled"])):L("",!0),f(n).length&&y.value&&f(l)?(h(),G(f(k1),{key:2,size:"sm",variant:"outline",disabled:p.value,onClick:_[1]||(_[1]=S=>I(!0))},{default:x(()=>[p.value?(h(),G(f(D2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(En),{key:1,class:"mr-2 h-4 w-4"})),J(" "+Q(p.value?"Finding…":"Find more with a model"),1)]),_:1},8,["disabled"])):L("",!0),f(n).length&&f(l)?(h(),G(f(k1),{key:3,size:"sm",variant:"glow",onClick:_[2]||(_[2]=S=>w(null))},{default:x(()=>[M(f(h3),{class:"mr-2 h-4 w-4"}),_[10]||(_[10]=J(" Record something ",-1))]),_:1})):f(n).length?(h(),G(f(j2),{key:4,"model-value":"",size:"sm","aria-label":"Choose a repository","onUpdate:modelValue":a},{default:x(()=>[_[11]||(_[11]=k("option",{value:""},"Choose a repository…",-1)),(h(!0),C(n1,null,M1(f(n),S=>(h(),C("option",{key:S.name,value:S.name},Q(S.name),9,Gf))),128))]),_:1})):L("",!0)]),_:1}),f(o)?(h(),G(f(d2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[J(Q(f(o)),1)]),_:1})):L("",!0),g.value!==null?(h(),G(f(d2),{key:1,tone:"info",class:"mb-4"},{default:x(()=>[g.value?(h(),C(n1,{key:0},[J(" Read "+Q(g.value)+" thing"+Q(g.value===1?"":"s")+" this repository already states. Nobody has agreed to any of it, so it is all proposed. ",1)],64)):(h(),C(n1,{key:1},[J(" This repository does not state anything in the places projects usually write these down: a decision record, or a conventions section in a contributing guide. ")],64))]),_:1})):L("",!0),f(n).length===0?(h(),G(g4,{key:2})):i.value.length===0?(h(),G(f(Te),{key:3,title:"Nothing recorded yet"},{actions:x(()=>[M(f(k1),{variant:"glow",onClick:_[3]||(_[3]=S=>w(null))},{default:x(()=>[M(f(h3),{class:"mr-2 h-4 w-4"}),_[12]||(_[12]=J(" Record something ",-1))]),_:1}),M(f(k1),{variant:"outline",disabled:m.value,onClick:I},{default:x(()=>[m.value?(h(),G(f(D2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(vt),{key:1,class:"mr-2 h-4 w-4"})),_[13]||(_[13]=J(" Read what the repo states ",-1))]),_:1},8,["disabled"])]),default:x(()=>[_[14]||(_[14]=J(" Why a thing is the way it is outlives the code that does it. Write one down and every agent reading this repository over MCP gets it too. ",-1))]),_:1})):(h(),C("div",Of,[(h(!0),C(n1,null,M1(i.value,S=>(h(),G(f(J3),{key:`${S.repository??""}${S.id}`,title:S.id,pillar:"memory"},{icon:x(()=>[M(f(J4),{class:"h-5 w-5"})]),badges:x(()=>[M(f(u2),{variant:"secondary"},{default:x(()=>[J(Q(S.kind),1)]),_:2},1024),S.status?(h(),G(f(u2),{key:0,variant:"outline"},{default:x(()=>[J(Q(S.status),1)]),_:2},1024)):L("",!0),f(r)&&S.repository?(h(),G(f(bn),{key:1,name:S.repository},{icon:x(()=>[M(f(c4),{class:"h-3 w-3"})]),_:1},8,["name"])):L("",!0)]),actions:x(()=>[S.status===Z.PROPOSED?(h(),C(n1,{key:0},[M(f(k1),{variant:"outline",size:"sm",disabled:Z.deciding===S.id,"aria-label":`Accept ${S.id}`,onClick:q=>Z.decide(S,Z.ACCEPTED)},{default:x(()=>[Z.deciding===S.id?(h(),G(f(D2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(me),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),_[16]||(_[16]=J(" Accept ",-1))]),_:2},1032,["disabled","aria-label","onClick"]),M(f(k1),{variant:"ghost",size:"icon","aria-label":`Throw out ${S.id}`,onClick:q=>Z.decide(S,null)},{default:x(()=>[M(R,{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])],64)):(h(),C(n1,{key:1},[M(f(k1),{variant:"ghost",size:"icon","aria-label":"Edit",onClick:q=>w(S)},{default:x(()=>[M(f(Iu),{class:"h-4 w-4"})]),_:1},8,["onClick"]),M(f(k1),{variant:"ghost",size:"icon","aria-label":"Remove",onClick:q=>W(S)},{default:x(()=>[M(f(m4),{class:"h-4 w-4"})]),_:1},8,["onClick"])],64))]),default:x(()=>{var q;return[k("p",$f,Q(S.summary),1),(q=S.properties)!=null&&q.why?(h(),C("dl",Wf,[_[15]||(_[15]=k("dt",{class:"text-muted-foreground"},"why",-1)),k("dd",Lf,Q(S.properties.why),1)])):L("",!0)]}),_:2},1032,["title"]))),128))])),M(f(Vt),{open:!!c.value,"max-width":"xl",onClose:_[9]||(_[9]=S=>c.value=null)},{default:x(()=>{var S;return[k("h2",Pf,Q((S=c.value)!=null&&S.fresh?"Record something":"Edit"),1),k("div",Tf,[M(f(R2),{label:"Name",hint:"What this will be called, and how it is found again."},{default:x(()=>{var q;return[M(f(U3),{modelValue:u.value.id,"onUpdate:modelValue":_[4]||(_[4]=V=>u.value.id=V),readonly:!((q=c.value)!=null&&q.fresh),placeholder:"retry-limit"},null,8,["modelValue","readonly"])]}),_:1}),M(f(R2),{label:"Kind"},{default:x(()=>[M(f(j2),{modelValue:u.value.kind,"onUpdate:modelValue":_[5]||(_[5]=q=>u.value.kind=q),class:"w-full"},{default:x(()=>[(h(),C(n1,null,M1(t,q=>k("option",{key:q},Q(q),1)),64))]),_:1},8,["modelValue"])]),_:1}),M(f(R2),{label:"What is true"},{default:x(()=>[M(f(ft),{modelValue:u.value.summary,"onUpdate:modelValue":_[6]||(_[6]=q=>u.value.summary=q),placeholder:"Charges retry three times, then stop."},null,8,["modelValue"])]),_:1}),M(f(R2),{label:"Why",hint:"What stops somebody undoing it next year."},{default:x(()=>[M(f(ft),{modelValue:u.value.why,"onUpdate:modelValue":_[7]||(_[7]=q=>u.value.why=q),placeholder:"The provider rate limits after four."},null,8,["modelValue"])]),_:1}),d.value?(h(),G(f(d2),{key:0,tone:"danger"},{default:x(()=>[J(Q(d.value),1)]),_:1})):L("",!0),k("div",Hf,[M(f(k1),{disabled:A.value,onClick:B},{default:x(()=>[M(f(me),{class:"mr-1.5 h-3.5 w-3.5"}),_[17]||(_[17]=J(" Save ",-1))]),_:1},8,["disabled"]),M(f(k1),{variant:"outline",onClick:_[8]||(_[8]=q=>c.value=null)},{default:x(()=>[..._[18]||(_[18]=[J("Cancel",-1)])]),_:1})])])]}),_:1},8,["open"])])}}},Vf={key:2,class:"grid gap-3"},Uf={class:"flex items-center gap-1.5"},Jf={class:"flex items-center gap-1.5"},zf={key:1},jf={key:2},Xf={key:3,class:"text-primary"},qf={__name:"Repositories",setup(e){const t=ye(),{repositories:n,error:l,fetchRepositories:o}=g3(),r=j({}),s=j(""),a=j(!1),i=j({});async function c(){for(const p of n.value){const g=await B1.graph(p.name).catch(()=>null);r.value={...r.value,[p.name]:g?{files:g.nodes.filter(y=>y.kind==="file").length,links:g.links.length}:null}}}async function u(){await o(),await c()}async function d(p){s.value=p;try{const[g]=await B1.index(p);i.value={...i.value,[p]:g},l.value=""}catch(g){l.value=g.message}s.value="",await c()}function A(p){return p?p.indexed?`Read ${p.indexed.toLocaleString()} files just now.`:"Nothing had changed.":""}async function m(p){if(confirm(`Stop covering ${p.path}? -What was already indexed is left alone.`)){try{await B1.dropRepository(p.path)}catch(y){l.value=y.message}await d()}}return d2(d),(p,y)=>(h(),C("div",null,[I(f(m3),{title:"Repositories",sub:"The folders SourceAnt reads on this machine."},{icon:w(()=>[I(f(i4),{class:"h-6 w-6"})]),actions:w(()=>[I(f(C1),{variant:"glow",onClick:y[0]||(y[0]=k=>a.value=!0)},{default:w(()=>[I(f(h3),{class:"mr-2 h-4 w-4"}),y[3]||(y[3]=U(" Add a folder ",-1))]),_:1})]),_:1}),f(l)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(f(l)),1)]),_:1})):P("",!0),f(n).length===0?(h(),G(f(We),{key:1,title:"No folders yet"},{actions:w(()=>[I(f(C1),{variant:"glow",onClick:y[1]||(y[1]=k=>a.value=!0)},{default:w(()=>[I(f(h3),{class:"mr-2 h-4 w-4"}),y[4]||(y[4]=U(" Add a folder ",-1))]),_:1})]),default:w(()=>[y[5]||(y[5]=U(" Point SourceAnt at a repository and it reads the files into a graph. ",-1))]),_:1})):(h(),C("div",Gf,[(h(!0),C(n1,null,_1(f(n),k=>(h(),G(f(z3),{key:k.path,title:k.name,subtitle:k.path,hover:"",class:"cursor-pointer",onClick:F=>f(t).push(`/repositories/${k.name}`)},{icon:w(()=>[I(f(m5),{class:"h-5 w-5"})]),meta:w(()=>[r.value[k.name]?(h(),C(n1,{key:0},[b("span",Of,[I(f(p5),{class:"h-3.5 w-3.5"}),U(N(r.value[k.name].files.toLocaleString())+" files ",1)]),b("span",$f,[I(f(bn),{class:"h-3.5 w-3.5"}),U(N(r.value[k.name].links.toLocaleString())+" links ",1)])],64)):r.value[k.name]===null?(h(),C("span",Wf,"Not read yet. Re-index to read it.")):(h(),C("span",Lf,"Reading…")),i.value[k.name]?(h(),C("span",Pf,N(A(i.value[k.name])),1)):P("",!0)]),actions:w(()=>[I(f(C1),{variant:"outline",size:"sm",disabled:s.value===k.name,onClick:qe(F=>u(k.name),["stop"])},{default:w(()=>[s.value===k.name?(h(),G(f(M2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(Cn),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+N(s.value===k.name?"Reading…":"Re-index"),1)]),_:2},1032,["disabled","onClick"]),I(f(C1),{variant:"ghost",size:"icon","aria-label":`Remove ${k.name}`,onClick:qe(F=>m(k),["stop"])},{default:w(()=>[I(f(h4),{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])]),_:2},1032,["title","subtitle","onClick"]))),128))])),I(Zn,{open:a.value,onClose:y[2]||(y[2]=k=>a.value=!1),onAdded:d},null,8,["open"])]))}};function Ut(){const e=me();return t=>e.push(t)}const Tf={class:"flex h-full min-h-0 flex-col"},Yf={key:1,class:"space-y-3"},Vf={class:"flex flex-wrap gap-x-8 gap-y-3"},Uf={class:"flex items-center gap-1.5 text-xs uppercase tracking-wider text-muted-foreground"},Jf={class:"mt-0.5 text-lg font-semibold"},zf={key:0,class:"mt-4 text-sm text-primary"},jf={key:1,class:"mt-4 text-sm text-muted-foreground"},Xf={class:"mt-4 flex flex-wrap gap-2"},qf={class:"mb-4 mt-0.5 text-sm text-muted-foreground"},eA={class:"space-y-2"},tA=["title"],nA={class:"hidden h-1.5 w-24 shrink-0 overflow-hidden rounded-full bg-muted sm:block"},lA={class:"w-28 shrink-0 text-right text-xs tabular-nums text-muted-foreground"},oA={class:"w-24 shrink-0 text-right text-xs tabular-nums text-muted-foreground"},rA={key:2,class:"space-y-3"},sA={class:"text-sm text-muted-foreground"},aA={key:3,class:"space-y-3"},iA={class:"text-sm text-muted-foreground"},cA={__name:"Repository",setup(e){const t=d5(),n=me(),l=Ut(),{repositories:o,chosen:r,fetchRepositories:s}=g3(),a=t1(()=>String(t.params.name??"")),i=t1(()=>o.value.find(D=>D.name===a.value)),c=z("overview"),d=z(null),u=z([]),A=z([]),m=z({files:[],since:""}),p=z(!1),y=z(null),k=z(""),F=t1(()=>{var D,x,Q;return[{label:"Files",value:((D=d.value)==null?void 0:D.files)??0,icon:p5},{label:"Connections",value:((x=d.value)==null?void 0:x.links)??0,icon:bn},{label:"Parts",value:((Q=d.value)==null?void 0:Q.parts)??0,icon:g5},{label:"Recorded",value:u.value.length,icon:S4},{label:"Rules",value:A.value.length,icon:c4}]}),M=t1(()=>{var D;return((D=m.value.files[0])==null?void 0:D.changes)||1}),E=t1(()=>[{id:"overview",label:"Overview"},{id:"knowledge",label:`Knowledge${u.value.length?` ${u.value.length}`:""}`},{id:"skills",label:`Skills${A.value.length?` ${A.value.length}`:""}`},{id:"graph",label:"Graph"}]);async function _(){if(!a.value)return;r.value=a.value;const[D,x,Q,B]=await Promise.all([B1.graph(a.value).catch(()=>null),B1.knowledge(a.value).catch(()=>({items:[]})),B1.skills(a.value).catch(()=>({skills:[]})),B1.attention(a.value).catch(()=>({files:[],since:""}))]);d.value=D?{files:D.nodes.filter(X=>X.kind==="file").length,links:D.links.length,parts:(D.communities??[]).length}:null,u.value=x.items??[],A.value=Q.skills??[],m.value=B}async function R(){p.value=!0;try{const[D]=await B1.index(a.value);y.value=D,k.value=""}catch(D){k.value=D.message}p.value=!1,await _()}async function $(){if(confirm(`Stop covering ${i.value.path}? +What was already indexed is left alone.`)){try{await B1.dropRepository(p.path)}catch(g){l.value=g.message}await u()}}return f2(u),(p,g)=>(h(),C("div",null,[M(f(m3),{title:"Repositories",sub:"The folders SourceAnt reads on this machine."},{icon:x(()=>[M(f(c4),{class:"h-6 w-6"})]),actions:x(()=>[M(f(k1),{variant:"glow",onClick:g[0]||(g[0]=y=>a.value=!0)},{default:x(()=>[M(f(h3),{class:"mr-2 h-4 w-4"}),g[3]||(g[3]=J(" Add a folder ",-1))]),_:1})]),_:1}),f(l)?(h(),G(f(d2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[J(Q(f(l)),1)]),_:1})):L("",!0),f(n).length===0?(h(),G(f(Te),{key:1,title:"No folders yet"},{actions:x(()=>[M(f(k1),{variant:"glow",onClick:g[1]||(g[1]=y=>a.value=!0)},{default:x(()=>[M(f(h3),{class:"mr-2 h-4 w-4"}),g[4]||(g[4]=J(" Add a folder ",-1))]),_:1})]),default:x(()=>[g[5]||(g[5]=J(" Point SourceAnt at a repository and it reads the files into a graph. ",-1))]),_:1})):(h(),C("div",Vf,[(h(!0),C(n1,null,M1(f(n),y=>(h(),G(f(J3),{key:y.path,title:y.name,subtitle:y.path,hover:"",class:"cursor-pointer",onClick:F=>f(t).push(`/repositories/${y.name}`)},{icon:x(()=>[M(f(m5),{class:"h-5 w-5"})]),meta:x(()=>[r.value[y.name]?(h(),C(n1,{key:0},[k("span",Uf,[M(f(p5),{class:"h-3.5 w-3.5"}),J(Q(r.value[y.name].files.toLocaleString())+" files ",1)]),k("span",Jf,[M(f(wn),{class:"h-3.5 w-3.5"}),J(Q(r.value[y.name].links.toLocaleString())+" links ",1)])],64)):r.value[y.name]===null?(h(),C("span",zf,"Not read yet. Re-index to read it.")):(h(),C("span",jf,"Reading…")),i.value[y.name]?(h(),C("span",Xf,Q(A(i.value[y.name])),1)):L("",!0)]),actions:x(()=>[M(f(k1),{variant:"outline",size:"sm",disabled:s.value===y.name,onClick:e4(F=>d(y.name),["stop"])},{default:x(()=>[s.value===y.name?(h(),G(f(D2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(_n),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),J(" "+Q(s.value===y.name?"Reading…":"Re-index"),1)]),_:2},1032,["disabled","onClick"]),M(f(k1),{variant:"ghost",size:"icon","aria-label":`Remove ${y.name}`,onClick:e4(F=>m(y),["stop"])},{default:x(()=>[M(f(m4),{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])]),_:2},1032,["title","subtitle","onClick"]))),128))])),M(Sn,{open:a.value,onClose:g[2]||(g[2]=y=>a.value=!1),onAdded:u},null,8,["open"])]))}};function zt(){const e=ye();return t=>e.push(t)}const eA={class:"flex h-full min-h-0 flex-col"},tA={key:1,class:"space-y-3"},nA={class:"flex flex-wrap gap-x-8 gap-y-3"},lA={class:"flex items-center gap-1.5 text-xs uppercase tracking-wider text-muted-foreground"},oA={class:"mt-0.5 text-lg font-semibold"},rA={key:0,class:"mt-4 text-sm text-primary"},sA={key:1,class:"mt-4 text-sm text-muted-foreground"},aA={class:"mt-4 flex flex-wrap gap-2"},iA={class:"mb-4 mt-0.5 text-sm text-muted-foreground"},cA={class:"space-y-2"},uA=["title"],dA={class:"hidden h-1.5 w-24 shrink-0 overflow-hidden rounded-full bg-muted sm:block"},fA={class:"w-28 shrink-0 text-right text-xs tabular-nums text-muted-foreground"},AA={class:"w-24 shrink-0 text-right text-xs tabular-nums text-muted-foreground"},hA={key:2,class:"space-y-3"},pA={class:"text-sm text-muted-foreground"},mA={key:3,class:"space-y-3"},gA={class:"text-sm text-muted-foreground"},vA={__name:"Repository",setup(e){const t=d5(),n=ye(),l=zt(),{repositories:o,chosen:r,fetchRepositories:s}=g3(),a=t1(()=>String(t.params.name??"")),i=t1(()=>o.value.find(Z=>Z.name===a.value)),c=j("overview"),u=j(null),d=j([]),A=j([]),m=j({files:[],since:""}),p=j(!1),g=j(null),y=j(""),F=t1(()=>{var Z,_,R;return[{label:"Files",value:((Z=u.value)==null?void 0:Z.files)??0,icon:p5},{label:"Connections",value:((_=u.value)==null?void 0:_.links)??0,icon:wn},{label:"Parts",value:((R=u.value)==null?void 0:R.parts)??0,icon:g5},{label:"Recorded",value:d.value.length,icon:Q4},{label:"Rules",value:A.value.length,icon:u4}]}),I=t1(()=>{var Z;return((Z=m.value.files[0])==null?void 0:Z.changes)||1}),D=t1(()=>[{id:"overview",label:"Overview"},{id:"knowledge",label:`Knowledge${d.value.length?` ${d.value.length}`:""}`},{id:"skills",label:`Skills${A.value.length?` ${A.value.length}`:""}`},{id:"graph",label:"Graph"}]);async function w(){if(!a.value)return;r.value=a.value;const[Z,_,R,S]=await Promise.all([B1.graph(a.value).catch(()=>null),B1.knowledge(a.value).catch(()=>({items:[]})),B1.skills(a.value).catch(()=>({skills:[]})),B1.attention(a.value).catch(()=>({files:[],since:""}))]);u.value=Z?{files:Z.nodes.filter(q=>q.kind==="file").length,links:Z.links.length,parts:(Z.communities??[]).length}:null,d.value=_.items??[],A.value=R.skills??[],m.value=S}async function B(){p.value=!0;try{const[Z]=await B1.index(a.value);g.value=Z,y.value=""}catch(Z){y.value=Z.message}p.value=!1,await w()}async function W(){if(confirm(`Stop covering ${i.value.path}? -What was already indexed is left alone.`))try{await B1.dropRepository(i.value.path),await s(),n.push("/repositories")}catch(D){k.value=D.message}}return t2(a,_),d2(async()=>{await s(),await _()}),(D,x)=>{var Q;return h(),C("div",Tf,[I(f(m3),{title:a.value,sub:(Q=i.value)==null?void 0:Q.path,mono:""},{back:w(()=>[I(f(C1),{variant:"ghost",size:"icon","aria-label":"Back to repositories",onClick:x[0]||(x[0]=B=>f(l)("/repositories"))},{default:w(()=>[I(f(Yt),{class:"h-4 w-4"})]),_:1})]),icon:w(()=>[I(f(m5),{class:"h-5 w-5"})]),badges:w(()=>{var B;return[I(f(c2),{variant:(B=d.value)!=null&&B.files?"success":"warning"},{default:w(()=>{var X;return[U(N((X=d.value)!=null&&X.files?"Indexed":"Not indexed"),1)]}),_:1},8,["variant"])]}),actions:w(()=>[I(f(C1),{variant:"outline",disabled:p.value,onClick:R},{default:w(()=>[p.value?(h(),G(f(M2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(Cn),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+N(p.value?"Reading…":"Re-index"),1)]),_:1},8,["disabled"]),I(f(C1),{variant:"ghost",size:"icon","aria-label":"Stop covering this folder",onClick:$},{default:w(()=>[I(f(h4),{class:"h-4 w-4"})]),_:1})]),_:1},8,["title","sub"]),k.value?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(k.value),1)]),_:1})):P("",!0),I(f(ge),{modelValue:c.value,"onUpdate:modelValue":x[1]||(x[1]=B=>c.value=B),tabs:E.value,label:"What to look at",class:"mb-4 w-fit"},null,8,["modelValue","tabs"]),c.value==="overview"?(h(),C("div",Yf,[I(f(z1),{class:"p-5"},{default:w(()=>[b("dl",Vf,[(h(!0),C(n1,null,_1(F.value,B=>(h(),C("div",{key:B.label},[b("dt",Uf,[(h(),G(k2(B.icon),{class:"h-3.5 w-3.5"})),U(N(B.label),1)]),b("dd",Jf,N(B.value.toLocaleString()),1)]))),128))]),y.value?(h(),C("p",zf,[y.value.indexed?(h(),C(n1,{key:0},[U("Read "+N(y.value.indexed.toLocaleString())+" files just now.",1)],64)):(h(),C(n1,{key:1},[U("Nothing had changed.")],64))])):d.value===null?(h(),C("p",jf," Not read yet. Re-index to read it. ")):P("",!0),b("div",Xf,[I(f(C1),{variant:"outline",size:"sm",onClick:x[2]||(x[2]=B=>f(n).push("/reviews"))},{default:w(()=>[I(f(Le),{class:"mr-1.5 h-3.5 w-3.5"}),x[6]||(x[6]=U(" Review what has changed ",-1))]),_:1}),I(f(C1),{variant:"outline",size:"sm",onClick:x[3]||(x[3]=B=>f(n).push("/knowledge"))},{default:w(()=>[I(f(S4),{class:"mr-1.5 h-3.5 w-3.5"}),x[7]||(x[7]=U(" Record something ",-1))]),_:1})])]),_:1}),m.value.files.length?(h(),G(f(z1),{key:0,class:"p-5"},{default:w(()=>[x[8]||(x[8]=b("h2",{class:"font-semibold"},"Where to look first",-1)),b("p",qf," Files that have been changing in the last "+N(m.value.since)+" and that the rest of the code leans on. Either on its own says little: something everything imports and nobody touches is settled, and something nothing imports that changes daily is a scratch pad. Where they meet is where a change is most likely to catch somebody out, and is the shortest list worth reading first. ",1),b("ul",eA,[(h(!0),C(n1,null,_1(m.value.files,B=>(h(),C("li",{key:B.path,class:"flex items-center gap-3"},[b("span",{class:"min-w-0 flex-1 truncate font-mono text-sm",title:B.path},N(B.path),9,tA),b("span",nA,[b("span",{class:"block h-full rounded-full bg-pillar-graph",style:S2({width:`${Math.max(4,B.changes/M.value*100)}%`})},null,4)]),b("span",lA,N(B.changes)+" change"+N(B.changes===1?"":"s"),1),b("span",oA,N(B.dependants)+" depend"+N(B.dependants===1?"s":""),1)]))),128))])]),_:1})):P("",!0)])):c.value==="knowledge"?(h(),C("div",rA,[(h(!0),C(n1,null,_1(u.value,B=>(h(),G(f(z3),{key:B.id,title:B.id,pillar:"memory"},{icon:w(()=>[I(f(S4),{class:"h-5 w-5"})]),badges:w(()=>[I(f(c2),{variant:"secondary"},{default:w(()=>[U(N(B.kind),1)]),_:2},1024),B.status?(h(),G(f(c2),{key:0,variant:"outline"},{default:w(()=>[U(N(B.status),1)]),_:2},1024)):P("",!0)]),default:w(()=>[b("p",sA,N(B.summary),1)]),_:2},1032,["title"]))),128)),u.value.length?P("",!0):(h(),G(f(z1),{key:0,class:"p-10 text-center"},{default:w(()=>[x[10]||(x[10]=b("p",{class:"font-medium"},"Nothing recorded about this repository yet.",-1)),I(f(C1),{class:"mt-3",variant:"outline",onClick:x[4]||(x[4]=B=>f(n).push("/knowledge"))},{default:w(()=>[...x[9]||(x[9]=[U("Record something",-1)])]),_:1})]),_:1}))])):c.value==="skills"?(h(),C("div",aA,[(h(!0),C(n1,null,_1(A.value,B=>(h(),G(f(z3),{key:B.id,title:B.name,subtitle:B.path,pillar:"review"},{icon:w(()=>[I(f(c4),{class:"h-5 w-5"})]),badges:w(()=>[I(f(c2),{variant:B.origin==="repository"?"success":"outline"},{default:w(()=>[U(N(B.origin==="repository"?"this repository":B.origin),1)]),_:2},1032,["variant"])]),default:w(()=>[b("p",iA,N(B.description),1)]),_:2},1032,["title","subtitle"]))),128)),A.value.length?P("",!0):(h(),G(f(z1),{key:0,class:"p-10 text-center"},{default:w(()=>[x[12]||(x[12]=b("p",{class:"font-medium"},"Nothing written down for this repository yet.",-1)),I(f(C1),{class:"mt-3",variant:"outline",onClick:x[5]||(x[5]=B=>f(n).push("/skills/new"))},{default:w(()=>[...x[11]||(x[11]=[U("Write one down",-1)])]),_:1})]),_:1}))])):(h(),G(Fn,{key:a.value,repository:a.value,sources:["code"],controls:["filter","kinds","parts","layouts","depth"],height:"calc(100vh - 19rem)"},null,8,["repository"]))])}}},uA={class:"flex h-full min-h-0 flex-col"},dA={key:0},fA=["value"],AA=["value"],hA=["value"],pA={class:"space-y-2"},mA={key:1,class:"font-mono"},gA={class:"mb-3 flex flex-wrap items-center gap-x-3 gap-y-2"},vA={class:"ml-auto flex flex-wrap items-center gap-1.5"},yA=["value"],bA={key:1,class:"min-h-0 flex-1 overflow-y-auto"},kA={class:"min-w-0 flex-1 truncate font-medium"},CA={class:"shrink-0 font-mono text-xs text-muted-foreground"},wA={class:"shrink-0 text-xs text-muted-foreground"},xA={class:"shrink-0 text-xs text-muted-foreground"},_A={key:0,class:"mt-2 whitespace-pre-wrap pl-5 text-sm text-muted-foreground"},IA={key:2,class:"min-h-0 flex-1 overflow-y-auto"},MA={class:"divide-y"},EA={class:"flex cursor-pointer items-center gap-2 text-sm"},DA={class:"font-medium"},ZA={class:"min-w-0 flex-1 truncate text-muted-foreground"},FA={class:"flex cursor-pointer items-center gap-2 text-sm"},BA={class:"font-medium"},SA={class:"min-w-0 flex-1 truncate text-muted-foreground"},RA={class:"space-y-2"},QA={class:"space-y-2"},NA={class:"space-y-2"},KA={class:"space-y-1.5 text-sm"},GA=["onClick"],OA={class:"font-mono text-xs"},$A={key:3,class:"grid min-h-0 flex-1 gap-3 lg:grid-cols-[18rem_1fr]"},WA={class:"min-h-0 flex-1 overflow-y-auto py-1"},LA=["onClick"],PA=["title"],HA={class:"shrink-0 text-[10px] uppercase text-muted-foreground"},TA={class:"min-h-0 overflow-y-auto"},YA={class:"mb-2 flex flex-wrap items-center gap-2"},VA={class:"break-all font-mono text-sm"},UA=1500,L7={__name:"Reviews",setup(e){const t=d5(),n=me(),l=Ut(),{repositories:o,chosen:r,error:s,mixed:a,fetchRepositories:i}=g3({all:!0}),c=z(!1),d=z(!1),u=z(null),A=z(null),m=z(!1),p=z(""),y=z([]),k=z(""),F=z([]),M=z([]),E=z("overview"),_=t1(()=>{var K;return((K=u.value)==null?void 0:K.changed)??[]}),R=t1(()=>String(t.params.id??"")),$=t1(()=>F.value.filter(K=>!y.value.includes(K.id))),D=t1(()=>Object.fromEntries(F.value.map(K=>[K.id,K]))),x=K=>{var O;return((O=D.value[K])==null?void 0:O.name)??K},Q=K=>{var O;return(O=m1.value.find(p1=>p1.skill===K))==null?void 0:O.passed};function B(K){y.value=y.value.filter(O=>O!==K)}function X(K){K&&!y.value.includes(K)&&(y.value=[...y.value,K]),k.value=""}const Y=t1(()=>{var K;return((K=u.value)==null?void 0:K.where)??null}),m1=t1(()=>{var K;return((K=u.value)==null?void 0:K.verdicts)??[]}),w1=t1(()=>m1.value.flatMap(K=>K.findings.map(O=>({...O,skill:K.skill})))),r1=t1(()=>w1.value.filter(K=>K.severity==="blocking")),l1=t1(()=>w1.value.filter(K=>K.severity!=="blocking")),b1=t1(()=>{const K={};for(const O of w1.value)O.path&&(K[O.path]=(K[O.path]??0)+(O.severity==="blocking"?10:1));for(const O of Y1.value)K[O.path]=(K[O.path]??0)+1;return K}),y1=t1(()=>[..._.value].sort((K,O)=>(b1.value[O.path]??0)-(b1.value[K.path]??0))),k1=t1(()=>_.value.find(K=>K.path===p.value)??y1.value[0]??null),c1=t1(()=>w1.value.filter(K=>!K.path)),L1=t1(()=>{var K;return((K=u.value)==null?void 0:K.review)??null}),S1=t1(()=>{var K;return((K=L1.value)==null?void 0:K.summary)??null}),Y1=t1(()=>{var K;return((K=L1.value)==null?void 0:K.suggestions)??[]}),q1=t1(()=>m1.value.filter(K=>!K.passed)),s1=t1(()=>{var K;return((K=u.value)==null?void 0:K.commits)??[]}),q=t1(()=>{var K,O;return!!((K=S1.value)!=null&&K.overview)||q1.value.length>0||c1.value.length>0||Y1.value.length>0||Object.keys(((O=L1.value)==null?void 0:O.notes)??{}).length>0}),S=t1(()=>{const K=[{id:"overview",label:"Overview"},{id:"details",label:`Files${_.value.length?` ${_.value.length}`:""}`}];return K.push({id:"commits",label:`Commits${s1.value.length?` ${s1.value.length}`:""}`}),K}),o1={APPROVE:{label:"Approved",tone:"success"},REQUEST_CHANGES:{label:"Changes requested",tone:"danger"},COMMENT:{label:"Commented",tone:"warning"}},J=t1(()=>{var O;if(r1.value.length)return{label:"Changes requested",tone:"danger",count:r1.value.length};const K=(O=L1.value)==null?void 0:O.verdict;return K&&o1[K]?{...o1[K],count:Y1.value.length||null}:!m1.value.length&&!L1.value?{label:"Not reviewed",tone:"neutral",count:null}:{label:"Commented",tone:"warning",count:l1.value.length||null}}),A1={success:hu,danger:Q7,warning:yu,neutral:Le},x1=t1(()=>u.value?A1[J.value.tone]:Le),g={BUG:"danger",SECURITY:"danger",PERFORMANCE:"warning",REFACTOR:"info",STYLE:"neutral",CLARITY:"neutral",TEST:"info",DOCUMENTATION:"neutral"},v=K=>g[String(K||"").toUpperCase()]??"info",Z=K=>[...w1.value.filter(O=>O.path===K).map(O=>({...O,from:O.skill,tone:O.severity==="blocking"?"danger":"warning"})),...Y1.value.filter(O=>O.path===K).map(O=>({line:O.start_line,severity:"suggestion",detail:O.comment,code:O.suggested_code,replacing:O.existing_code,from:O.category||"review",tone:v(O.category)}))];async function L(K){K&&(r.value=K,await Promise.all([e1(),T()]))}async function T(){try{M.value=await B1.reviews(r.value)}catch{M.value=[]}}function W(K){if(!K)return"";const O=new Date(K),p1=Math.round((Date.now()-O.getTime())/6e4);if(p1<1)return"just now";if(p1<60)return`${p1} minute${p1===1?"":"s"} ago`;const H=Math.round(p1/60);return H<24?`${H} hour${H===1?"":"s"} ago`:O.toLocaleDateString()}async function a1(){try{const K=await B1.settings(),O=K.find(H=>H.key==="model.name"),p1=K.find(H=>H.key==="model.api_key");m.value=!!(O!=null&&O.value)&&!!(p1!=null&&p1.is_set)}catch{m.value=!1}}async function e1(){try{F.value=(await B1.skills(r.value)).skills}catch{F.value=[]}}let j=null;function V(){j&&clearTimeout(j),j=null}async function g1(K){V();const O=K?d:c;O.value=!0,s.value="";try{const p1=await B1.startReview(r.value,{useModel:K,skills:[...y.value]});n.replace(`/reviews/${p1.id}`),await i1(p1.id,K)}catch(p1){s.value=p1.message,O.value=!1}}async function i1(K,O=!0){const p1=O?d:c;let H;try{H=await B1.reviewed(K)}catch(D1){s.value=D1.message,p1.value=!1;return}if(A.value=H,H.status==="running"){p1.value=!0,j=setTimeout(()=>i1(K,O),UA);return}if(p1.value=!1,H.status==="failed"){s.value=H.error;return}H.repository&&H.repository!==r.value&&(r.value=H.repository),u.value=H.review,p.value="",E.value="overview",T(),H.repository&&(r.value=H.repository),y.value=(H.review.skills??[]).map(D1=>D1.id)}return t2(r,()=>{V(),e1(),T()}),t2(R,K=>{if(V(),!K){u.value=null,A.value=null,T();return}i1(K)}),f4(V),d2(async()=>{await i(),await Promise.all([a1(),e1(),T()]),R.value&&await i1(R.value)}),(K,O)=>{var p1;return h(),C("div",uA,[I(f(m3),{pillar:"review",title:Y.value?`${Y.value.branch||"no branch"} → ${Y.value.against}`:"Reviews",sub:Y.value?Y.value.path:"Your work read here, before anybody else is asked to read it.",mono:!!Y.value,tone:u.value?J.value.tone:void 0},a6({icon:w(()=>[(h(),G(k2(x1.value),{class:"h-6 w-6"}))]),actions:w(()=>[f(o).length>1?(h(),G(f(j2),{key:0,modelValue:f(r),"onUpdate:modelValue":O[1]||(O[1]=H=>n2(r)?r.value=H:null),size:"sm","aria-label":"Repository"},{default:w(()=>[b("option",{value:f(Vt)},"All repositories",8,fA),(h(!0),C(n1,null,_1(f(o),H=>(h(),C("option",{key:H.name,value:H.name},N(H.name),9,AA))),128))]),_:1},8,["modelValue"])):P("",!0),f(o).length&&f(r)?(h(),G(f(C1),{key:1,size:"sm",variant:"outline",disabled:c.value,onClick:O[2]||(O[2]=H=>g1(!1))},{default:w(()=>[c.value?(h(),G(f(M2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(p5),{key:1,class:"mr-2 h-4 w-4"})),U(" "+N(c.value?"Reading…":"Read what changed"),1)]),_:1},8,["disabled"])):P("",!0),f(o).length&&m.value&&f(r)?(h(),G(f(C1),{key:2,size:"sm",variant:"glow",disabled:d.value,onClick:O[3]||(O[3]=H=>g1(!0))},{default:w(()=>[d.value?(h(),G(f(M2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(_n),{key:1,class:"mr-2 h-4 w-4"})),U(" "+N(d.value?"Reviewing…":"Review it"),1)]),_:1},8,["disabled"])):f(o).length&&m.value?(h(),G(f(j2),{key:3,"model-value":"",size:"sm","aria-label":"Choose a repository to review","onUpdate:modelValue":L},{default:w(()=>[O[5]||(O[5]=b("option",{value:""},"Choose a repository…",-1)),(h(!0),C(n1,null,_1(f(o),H=>(h(),C("option",{key:H.name,value:H.name},N(H.name),9,hA))),128))]),_:1})):P("",!0)]),_:2},[R.value?{name:"back",fn:w(()=>[I(f(C1),{variant:"ghost",size:"icon","aria-label":"Back to reviews",onClick:O[0]||(O[0]=H=>f(l)("/reviews"))},{default:w(()=>[I(f(Yt),{class:"h-4 w-4"})]),_:1})]),key:"0"}:void 0,u.value?{name:"meta",fn:w(()=>[I(f(mn),{label:J.value.label,tone:J.value.tone,count:J.value.count},null,8,["label","tone","count"]),Y.value?(h(),C("span",dA,N(Y.value.commits)+" commit"+N(Y.value.commits===1?"":"s")+" ahead",1)):P("",!0),b("span",null,N(_.value.length)+" file"+N(_.value.length===1?"":"s"),1)]),key:"1"}:void 0]),1032,["title","sub","mono","tone"]),f(s)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(f(s)),1)]),_:1})):P("",!0),f(o).length===0?(h(),G(p4,{key:1})):(h(),C(n1,{key:2},[!m.value&&f(r)?(h(),G(f(u2),{key:0,tone:"info",class:"mb-4"},{default:w(()=>[...O[6]||(O[6]=[U(" No model is configured, so nothing here can be judged. Reading what changed needs nothing. Choose a model in Settings to have the work read against your skills. ",-1)])]),_:1})):P("",!0),u.value?(h(),C(n1,{key:2},[b("div",gA,[I(f(ge),{modelValue:E.value,"onUpdate:modelValue":O[4]||(O[4]=H=>E.value=H),tabs:S.value,label:"What to look at",class:"w-fit"},null,8,["modelValue","tabs"]),b("div",vA,[O[11]||(O[11]=b("span",{class:"text-xs uppercase tracking-wider text-muted-foreground"}," Skills applied ",-1)),(h(!0),C(n1,null,_1(y.value,H=>(h(),G(f(u7),{key:H,label:x(H),tone:Q(H)===void 0?"default":Q(H)?"success":"danger",removable:"",onRemove:D1=>B(H)},{default:w(()=>[U(N(x(H)),1)]),_:2},1032,["label","tone","onRemove"]))),128)),y.value.length?P("",!0):(h(),G(f(u7),{key:0,tone:"muted"},{default:w(()=>[...O[9]||(O[9]=[U("Whatever applies",-1)])]),_:1})),$.value.length?(h(),G(f(j2),{key:1,"model-value":k.value,size:"sm","aria-label":"Add a skill","onUpdate:modelValue":X},{default:w(()=>[O[10]||(O[10]=b("option",{value:""},"Add…",-1)),(h(!0),C(n1,null,_1($.value,H=>(h(),C("option",{key:H.id,value:H.id},N(H.name),9,yA))),128))]),_:1},8,["model-value"])):P("",!0)])]),u.value.note&&!L1.value?(h(),G(f(u2),{key:0,tone:"info",class:"mb-3"},{default:w(()=>[U(N(u.value.note),1)]),_:1})):P("",!0),E.value==="commits"?(h(),C("div",bA,[s1.value.length?(h(),G(f(z1),{key:1,class:"divide-y px-4 py-1"},{default:w(()=>[(h(!0),C(n1,null,_1(s1.value,H=>(h(),C("div",{key:H.sha,class:"py-2.5"},[(h(),G(k2(H.body?"details":"div"),{class:f1(H.body&&"group")},{default:w(()=>[(h(),G(k2(H.body?"summary":"div"),{class:f1(["flex items-baseline gap-2 text-sm",H.body&&"cursor-pointer list-none"])},{default:w(()=>[I(f(gu),{class:"h-3.5 w-3.5 shrink-0 self-center text-muted-foreground"}),b("span",kA,N(H.subject),1),b("span",CA,N(H.sha.slice(0,8)),1),b("span",wA,N(H.author),1),b("span",xA,N(W(H.at)),1)]),_:2},1032,["class"])),H.body?(h(),C("p",_A,N(H.body),1)):P("",!0)]),_:2},1032,["class"]))]))),128))]),_:1})):(h(),G(f(We),{key:0,title:"Nothing committed on this branch",compact:""},{default:w(()=>[...O[12]||(O[12]=[U(" Everything here is uncommitted work, which is in the diff rather than in a commit. ",-1)])]),_:1}))])):E.value==="overview"?(h(),C("div",IA,[q.value?(h(),G(f(z1),{key:1,class:"divide-y px-5 py-1"},{default:w(()=>{var H,D1,V1,e2,C2,w2,v3,ye;return[(H=S1.value)!=null&&H.overview?(h(),G(f(O3),{key:0,title:"What this change does",tone:"info"},{icon:w(()=>[I(f(N7),{class:"h-4 w-4"})]),default:w(()=>[I(f(B2),{source:S1.value.overview},null,8,["source"])]),_:1})):P("",!0),q1.value.length||c1.value.length?(h(),G(f(O3),{key:1,title:"Against what this team wrote down",tone:"warning",count:q1.value.length+c1.value.length,collapsible:"",closed:""},{icon:w(()=>[I(f(Cu),{class:"h-4 w-4"})]),default:w(()=>[b("ul",MA,[(h(!0),C(n1,null,_1(q1.value,M1=>(h(),C("li",{key:M1.skill,class:"py-2 first:pt-0"},[b("details",null,[b("summary",EA,[I(f($e),{tone:"danger",title:`${M1.skill} is not met`},null,8,["title"]),b("span",DA,N(M1.skill),1),b("span",ZA,N((M1.note||"").split(` -`)[0]),1)]),M1.note?(h(),G(f(B2),{key:0,source:M1.note,class:"mt-2 pl-5 text-sm text-muted-foreground"},null,8,["source"])):P("",!0)])]))),128)),(h(!0),C(n1,null,_1(c1.value,(M1,U1)=>(h(),C("li",{key:`o${U1}`,class:"py-2 first:pt-0"},[b("details",null,[b("summary",FA,[I(f($e),{tone:M1.severity==="blocking"?"danger":"warning",title:M1.skill||"A skill"},null,8,["tone","title"]),b("span",BA,N(M1.skill),1),b("span",SA,N((M1.detail||"").split(` -`)[0]),1)]),I(f(B2),{source:M1.detail,class:"mt-2 pl-5 text-sm text-muted-foreground"},null,8,["source"])])]))),128))])]),_:1},8,["count"])):P("",!0),(V1=(D1=S1.value)==null?void 0:D1.critical_issues)!=null&&V1.length?(h(),G(f(O3),{key:2,title:"Worth stopping for",tone:"danger",count:S1.value.critical_issues.length,collapsible:""},{icon:w(()=>[I(f(Q7),{class:"h-4 w-4"})]),default:w(()=>[b("ul",RA,[(h(!0),C(n1,null,_1(S1.value.critical_issues,(M1,U1)=>(h(),C("li",{key:U1},[I(f(B2),{source:M1},null,8,["source"])]))),128))])]),_:1},8,["count"])):P("",!0),(C2=(e2=S1.value)==null?void 0:e2.key_improvements)!=null&&C2.length?(h(),G(f(O3),{key:3,title:"Worth changing",tone:"warning",count:S1.value.key_improvements.length,collapsible:""},{icon:w(()=>[I(f(V4),{class:"h-4 w-4"})]),default:w(()=>[b("ul",QA,[(h(!0),C(n1,null,_1(S1.value.key_improvements,(M1,U1)=>(h(),C("li",{key:U1},[I(f(B2),{source:M1},null,8,["source"])]))),128))])]),_:1},8,["count"])):P("",!0),(v3=(w2=S1.value)==null?void 0:w2.minor_suggestions)!=null&&v3.length?(h(),G(f(O3),{key:4,title:"Nice to have",count:S1.value.minor_suggestions.length,collapsible:"",closed:""},{icon:w(()=>[I(f(gt),{class:"h-4 w-4"})]),default:w(()=>[b("ul",NA,[(h(!0),C(n1,null,_1(S1.value.minor_suggestions,(M1,U1)=>(h(),C("li",{key:U1},[I(f(B2),{source:M1},null,8,["source"])]))),128))])]),_:1},8,["count"])):P("",!0),Y1.value.length?(h(),G(f(O3),{key:5,title:"Suggestions",tone:"info",count:Y1.value.length,collapsible:""},{icon:w(()=>[I(f(fu),{class:"h-4 w-4"})]),default:w(()=>[O[13]||(O[13]=b("p",{class:"mb-3 text-sm text-muted-foreground"}," Each one is drawn against the line it is about, under Files. ",-1)),b("ul",KA,[(h(!0),C(n1,null,_1(Y1.value,(M1,U1)=>(h(),C("li",{key:U1,class:"flex gap-2"},[M1.category?(h(),G(f($e),{key:0,tone:v(M1.category),title:M1.category,label:M1.category.toLowerCase(),class:"mt-0.5 shrink-0"},null,8,["tone","title","label"])):P("",!0),b("button",{type:"button",class:"min-w-0 text-left hover:underline",onClick:v5=>{p.value=M1.path,E.value="details"}},[b("span",OA,N(M1.path)+":"+N(M1.start_line),1),I(f(B2),{source:M1.comment,class:"text-muted-foreground"},null,8,["source"])],8,GA)]))),128))])]),_:1},8,["count"])):P("",!0),(h(!0),C(n1,null,_1(((ye=L1.value)==null?void 0:ye.notes)??{},(M1,U1)=>(h(),G(f(O3),{key:U1,title:String(U1).replace(/_/g," "),collapsible:"",closed:"",class:"capitalize"},{icon:w(()=>[I(f(N7),{class:"h-4 w-4"})]),default:w(()=>[I(f(B2),{source:M1,class:"normal-case"},null,8,["source"])]),_:2},1032,["title"]))),128))]}),_:1})):(h(),G(f(We),{key:0,title:"Read, not judged",compact:""},{default:w(()=>[U(N(u.value.note||"Ask for a review to have it read properly."),1)]),_:1}))])):(h(),C("div",$A,[I(f(z1),{class:"flex min-h-0 flex-col overflow-hidden"},{default:w(()=>[O[14]||(O[14]=b("div",{class:"border-b px-3 py-2 text-xs uppercase tracking-wider text-muted-foreground"}," Changed ",-1)),b("ul",WA,[(h(!0),C(n1,null,_1(y1.value,H=>{var D1;return h(),C("li",{key:H.path},[b("button",{type:"button",class:f1(["flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm transition-colors",((D1=k1.value)==null?void 0:D1.path)===H.path?"bg-primary/10 text-primary":"hover:bg-muted"]),onClick:V1=>p.value=H.path},[b("span",{class:"min-w-0 flex-1 truncate font-mono text-xs",title:H.path},N(H.path),9,PA),Z(H.path).length?(h(),G(f(c2),{key:0,variant:b1.value[H.path]>=10?"destructive":"secondary"},{default:w(()=>[U(N(Z(H.path).length),1)]),_:2},1032,["variant"])):P("",!0),b("span",HA,N(H.change.slice(0,3)),1)],10,LA)])}),128))])]),_:1}),b("div",TA,[k1.value?(h(),C(n1,{key:0},[b("div",YA,[b("span",VA,N(k1.value.path),1),I(f(c2),{variant:"secondary"},{default:w(()=>[U(N(k1.value.change),1)]),_:1})]),I(f(L9),{patch:k1.value.patch,notes:Z(k1.value.path)},null,8,["patch","notes"])],64)):(h(),G(f(z1),{key:1,class:"p-10 text-center text-sm text-muted-foreground"},{default:w(()=>[...O[15]||(O[15]=[U(" Nothing has changed in this checkout. ",-1)])]),_:1}))])]))],64)):(h(),C(n1,{key:1},[((p1=A.value)==null?void 0:p1.status)==="running"?(h(),G(f(tu),{key:0,label:"Reading it",note:"This keeps going whether or not anybody is watching, and the link to it keeps working."})):(h(),C(n1,{key:1},[M.value.length?P("",!0):(h(),G(f(We),{key:0,title:"Nothing read here yet"},a6({icon:w(()=>[I(f(Le),{class:"h-8 w-8"})]),default:w(()=>[O[7]||(O[7]=U(" Everything comes off the checkout, so work you have not pushed, or not committed, still gets a review. ",-1))]),_:2},[f(r)?void 0:{name:"actions",fn:w(()=>[(h(!0),C(n1,null,_1(f(o),H=>(h(),G(f(C1),{key:H.name,size:"sm",variant:"outline",onClick:D1=>L(H.name)},{default:w(()=>[I(f(i4),{class:"mr-2 h-4 w-4"}),U(" "+N(H.name),1)]),_:2},1032,["onClick"]))),128))]),key:"0"}]),1024)),M.value.length?(h(),C(n1,{key:1},[O[8]||(O[8]=b("p",{class:"mb-2 text-xs uppercase tracking-wider text-muted-foreground"},"Earlier",-1)),b("div",pA,[(h(!0),C(n1,null,_1(M.value,H=>(h(),G(f(z3),{key:H.id,title:H.title||H.repository,subtitle:H.id,pillar:"review",hover:"",class:"cursor-pointer",onClick:D1=>f(n).push(`/reviews/${H.id}`)},{icon:w(()=>[I(f(pu),{class:"h-5 w-5"})]),badges:w(()=>[I(f(c2),{variant:H.status==="done"?"success":H.status==="failed"?"destructive":"secondary"},{default:w(()=>[U(N(H.status),1)]),_:2},1032,["variant"])]),meta:w(()=>[b("span",null,N(W(H.started)),1),f(a)?(h(),G(f(gn),{key:0,name:H.repository},{icon:w(()=>[I(f(i4),{class:"h-3 w-3"})]),_:1},8,["name"])):(h(),C("span",mA,N(H.repository),1))]),_:2},1032,["title","subtitle","onClick"]))),128))])],64)):P("",!0)],64))],64))],64))])}}},JA={class:"flex h-full min-h-0 flex-col"},zA={key:0,class:"text-xs text-success"},jA={key:2,class:"py-10 text-center text-sm text-muted-foreground"},XA=["value"],qA={class:"flex flex-wrap gap-1.5"},eh={class:"mt-2 text-xs text-muted-foreground"},th={class:"mb-2 flex items-center justify-between gap-3"},nh={class:"text-xs text-muted-foreground"},lh={class:"grid min-h-0 flex-1 gap-3 lg:grid-cols-2"},oh={key:1,class:"text-sm text-muted-foreground"},rh="new",E4="repository",P2="global",sh={__name:"Skill",setup(e){const t=[E4,P2],n=d5(),l=me(),o=Ut(),{repositories:r,chosen:s,fetchRepositories:a}=g3(),i=t1(()=>String(n.params.id??"")),c=t1(()=>i.value===rh),d=z(null),u=z({id:"",name:"",description:"",body:"",paths:[],reviews:null}),A=z(P2),m=z("write"),p=z(!1),y=z(!1),k=z(""),F=z(!0),M=[{id:"write",label:"Write"},{id:"preview",label:"Preview"}],E=[{id:null,label:"When it looks relevant"},{id:!0,label:"Always"},{id:!1,label:"Never"}],_=t1(()=>u.value.reviews===!0?"Read against every change here.":u.value.reviews===!1?"Left out of reviews entirely.":"Picked when what it says matches what a change touches."),R=t1(()=>D.value?"Kept on this machine and read for every repository you work in.":`Kept on this machine and read for ${A.value}. Nothing is written into the checkout.`),$=t1(()=>[{id:P2,label:"Everywhere"},...r.value.map(r1=>({id:r1.name,label:r1.name}))]),D=t1(()=>A.value===P2),x=t1(()=>!!d.value&&!t.includes(d.value.origin)),Q=t1(()=>x.value),B=t1(()=>c.value?!!(u.value.id||u.value.description||u.value.body):d.value?u.value.name!==d.value.name||u.value.description!==d.value.description||u.value.body!==(d.value.body??"")||u.value.paths.join(` -`)!==(d.value.paths??[]).join(` -`)||u.value.reviews!==d.value.reviews:!1),X=t1(()=>u.value.body?u.value.body.split(` -`).length:0);async function Y(){if(F.value=!0,k.value="",c.value){d.value=null,u.value={id:"",name:"",description:"",body:"",paths:[],reviews:null},A.value=n.query.for||s.value||P2,F.value=!1;return}try{const r1=await B1.skill(i.value,s.value);d.value=r1,A.value=r1.origin===E4?s.value:r1.origin===P2?P2:s.value||P2,u.value={id:r1.id.split("/").pop(),name:r1.name,description:r1.description,body:r1.body??"",paths:[...r1.paths??[]],reviews:r1.reviews}}catch(r1){k.value=r1.message}finally{F.value=!1}}async function m1(){p.value=!0,y.value=!1,k.value="";try{const r1=await B1.recordSkill({scope:D.value?P2:E4,repository:D.value?"":A.value,id:u.value.id||u.value.name,name:u.value.name||u.value.id,description:u.value.description,body:u.value.body,paths:u.value.paths,reviews:u.value.reviews});y.value=!0,c.value||r1.id!==i.value?l.replace(`/skills/${r1.id}`):await Y()}catch(r1){k.value=r1.message}finally{p.value=!1}}async function w1(){const r1=D.value?"everywhere":A.value;if(confirm(`Forget ${u.value.name}? +What was already indexed is left alone.`))try{await B1.dropRepository(i.value.path),await s(),n.push("/repositories")}catch(Z){y.value=Z.message}}return q1(a,w),f2(async()=>{await s(),await w()}),(Z,_)=>{var R;return h(),C("div",eA,[M(f(m3),{title:a.value,sub:(R=i.value)==null?void 0:R.path,mono:""},{back:x(()=>[M(f(k1),{variant:"ghost",size:"icon","aria-label":"Back to repositories",onClick:_[0]||(_[0]=S=>f(l)("/repositories"))},{default:x(()=>[M(f(Ut),{class:"h-4 w-4"})]),_:1})]),icon:x(()=>[M(f(m5),{class:"h-5 w-5"})]),badges:x(()=>{var S;return[M(f(u2),{variant:(S=u.value)!=null&&S.files?"success":"warning"},{default:x(()=>{var q;return[J(Q((q=u.value)!=null&&q.files?"Indexed":"Not indexed"),1)]}),_:1},8,["variant"])]}),actions:x(()=>[M(f(k1),{variant:"outline",disabled:p.value,onClick:B},{default:x(()=>[p.value?(h(),G(f(D2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(_n),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),J(" "+Q(p.value?"Reading…":"Re-index"),1)]),_:1},8,["disabled"]),M(f(k1),{variant:"ghost",size:"icon","aria-label":"Stop covering this folder",onClick:W},{default:x(()=>[M(f(m4),{class:"h-4 w-4"})]),_:1})]),_:1},8,["title","sub"]),y.value?(h(),G(f(d2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[J(Q(y.value),1)]),_:1})):L("",!0),M(f(X3),{modelValue:c.value,"onUpdate:modelValue":_[1]||(_[1]=S=>c.value=S),tabs:D.value,label:"What to look at",class:"mb-4 w-fit"},null,8,["modelValue","tabs"]),c.value==="overview"?(h(),C("div",tA,[M(f(j1),{class:"p-5"},{default:x(()=>[k("dl",nA,[(h(!0),C(n1,null,M1(F.value,S=>(h(),C("div",{key:S.label},[k("dt",lA,[(h(),G(k2(S.icon),{class:"h-3.5 w-3.5"})),J(Q(S.label),1)]),k("dd",oA,Q(S.value.toLocaleString()),1)]))),128))]),g.value?(h(),C("p",rA,[g.value.indexed?(h(),C(n1,{key:0},[J("Read "+Q(g.value.indexed.toLocaleString())+" files just now.",1)],64)):(h(),C(n1,{key:1},[J("Nothing had changed.")],64))])):u.value===null?(h(),C("p",sA," Not read yet. Re-index to read it. ")):L("",!0),k("div",aA,[M(f(k1),{variant:"outline",size:"sm",onClick:_[2]||(_[2]=S=>f(n).push("/reviews"))},{default:x(()=>[M(f(He),{class:"mr-1.5 h-3.5 w-3.5"}),_[6]||(_[6]=J(" Review what has changed ",-1))]),_:1}),M(f(k1),{variant:"outline",size:"sm",onClick:_[3]||(_[3]=S=>f(n).push("/knowledge"))},{default:x(()=>[M(f(Q4),{class:"mr-1.5 h-3.5 w-3.5"}),_[7]||(_[7]=J(" Record something ",-1))]),_:1})])]),_:1}),m.value.files.length?(h(),G(f(j1),{key:0,class:"p-5"},{default:x(()=>[_[8]||(_[8]=k("h2",{class:"font-semibold"},"Where to look first",-1)),k("p",iA," Files that have been changing in the last "+Q(m.value.since)+" and that the rest of the code leans on. Either on its own says little: something everything imports and nobody touches is settled, and something nothing imports that changes daily is a scratch pad. Where they meet is where a change is most likely to catch somebody out, and is the shortest list worth reading first. ",1),k("ul",cA,[(h(!0),C(n1,null,M1(m.value.files,S=>(h(),C("li",{key:S.path,class:"flex items-center gap-3"},[k("span",{class:"min-w-0 flex-1 truncate font-mono text-sm",title:S.path},Q(S.path),9,uA),k("span",dA,[k("span",{class:"block h-full rounded-full bg-pillar-graph",style:M2({width:`${Math.max(4,S.changes/I.value*100)}%`})},null,4)]),k("span",fA,Q(S.changes)+" change"+Q(S.changes===1?"":"s"),1),k("span",AA,Q(S.dependants)+" depend"+Q(S.dependants===1?"s":""),1)]))),128))])]),_:1})):L("",!0)])):c.value==="knowledge"?(h(),C("div",hA,[(h(!0),C(n1,null,M1(d.value,S=>(h(),G(f(J3),{key:S.id,title:S.id,pillar:"memory"},{icon:x(()=>[M(f(Q4),{class:"h-5 w-5"})]),badges:x(()=>[M(f(u2),{variant:"secondary"},{default:x(()=>[J(Q(S.kind),1)]),_:2},1024),S.status?(h(),G(f(u2),{key:0,variant:"outline"},{default:x(()=>[J(Q(S.status),1)]),_:2},1024)):L("",!0)]),default:x(()=>[k("p",pA,Q(S.summary),1)]),_:2},1032,["title"]))),128)),d.value.length?L("",!0):(h(),G(f(j1),{key:0,class:"p-10 text-center"},{default:x(()=>[_[10]||(_[10]=k("p",{class:"font-medium"},"Nothing recorded about this repository yet.",-1)),M(f(k1),{class:"mt-3",variant:"outline",onClick:_[4]||(_[4]=S=>f(n).push("/knowledge"))},{default:x(()=>[..._[9]||(_[9]=[J("Record something",-1)])]),_:1})]),_:1}))])):c.value==="skills"?(h(),C("div",mA,[(h(!0),C(n1,null,M1(A.value,S=>(h(),G(f(J3),{key:S.id,title:S.name,subtitle:S.path,pillar:"review"},{icon:x(()=>[M(f(u4),{class:"h-5 w-5"})]),badges:x(()=>[M(f(u2),{variant:S.origin==="repository"?"success":"outline"},{default:x(()=>[J(Q(S.origin==="repository"?"this repository":S.origin),1)]),_:2},1032,["variant"])]),default:x(()=>[k("p",gA,Q(S.description),1)]),_:2},1032,["title","subtitle"]))),128)),A.value.length?L("",!0):(h(),G(f(j1),{key:0,class:"p-10 text-center"},{default:x(()=>[_[12]||(_[12]=k("p",{class:"font-medium"},"Nothing written down for this repository yet.",-1)),M(f(k1),{class:"mt-3",variant:"outline",onClick:_[5]||(_[5]=S=>f(n).push("/skills/new"))},{default:x(()=>[..._[11]||(_[11]=[J("Write one down",-1)])]),_:1})]),_:1}))])):(h(),G(Rn,{key:a.value,repository:a.value,sources:["code"],controls:["filter","kinds","parts","layouts","depth"],height:"calc(100vh - 19rem)"},null,8,["repository"]))])}}},yA={class:"flex h-full min-h-0 flex-col"},bA={key:0},kA=["value"],CA=["value"],wA=["value"],xA={class:"space-y-2"},_A={key:1,class:"font-mono"},IA={class:"mb-3 flex flex-wrap items-center gap-x-3 gap-y-2"},MA={class:"ml-auto flex flex-wrap items-center gap-1.5"},EA=["value"],DA={key:1,class:"min-h-0 flex-1 overflow-y-auto"},ZA={class:"min-w-0 flex-1 truncate font-medium"},FA={class:"shrink-0 font-mono text-xs text-muted-foreground"},BA={class:"shrink-0 text-xs text-muted-foreground"},SA={class:"shrink-0 text-xs text-muted-foreground"},RA={key:0,class:"mt-2 whitespace-pre-wrap pl-5 text-sm text-muted-foreground"},QA={key:2,class:"min-h-0 flex-1 overflow-y-auto"},NA={class:"divide-y"},KA={class:"flex cursor-pointer items-center gap-2 text-sm"},GA={class:"font-medium"},OA={class:"min-w-0 flex-1 truncate text-muted-foreground"},$A={class:"flex cursor-pointer items-center gap-2 text-sm"},WA={class:"font-medium"},LA={class:"min-w-0 flex-1 truncate text-muted-foreground"},PA={class:"space-y-2"},TA={class:"space-y-2"},HA={class:"space-y-2"},YA={class:"space-y-1.5 text-sm"},VA=["onClick"],UA={class:"font-mono text-xs"},JA={key:3,class:"grid min-h-0 flex-1 gap-3 lg:grid-cols-[18rem_1fr]"},zA={class:"min-h-0 flex-1 overflow-y-auto py-1"},jA=["onClick"],XA=["title"],qA={class:"shrink-0 text-[10px] uppercase text-muted-foreground"},eh={class:"min-h-0 overflow-y-auto"},th={class:"mb-2 flex flex-wrap items-center gap-2"},nh={class:"break-all font-mono text-sm"},lh=1500,H7={__name:"Reviews",setup(e){const t=d5(),n=ye(),l=zt(),{repositories:o,chosen:r,error:s,mixed:a,fetchRepositories:i}=g3({all:!0}),c=j(!1),u=j(!1),d=j(null),A=j(null),m=j(!1),p=j(""),g=j([]),y=j(""),F=j([]),I=j([]),D=j("overview"),w=t1(()=>{var K;return((K=d.value)==null?void 0:K.changed)??[]}),B=t1(()=>String(t.params.id??"")),W=t1(()=>F.value.filter(K=>!g.value.includes(K.id))),Z=t1(()=>Object.fromEntries(F.value.map(K=>[K.id,K]))),_=K=>{var O;return((O=Z.value[K])==null?void 0:O.name)??K},R=K=>{var O;return(O=m1.value.find(h1=>h1.skill===K))==null?void 0:O.passed};function S(K){g.value=g.value.filter(O=>O!==K)}function q(K){K&&!g.value.includes(K)&&(g.value=[...g.value,K]),y.value=""}const V=t1(()=>{var K;return((K=d.value)==null?void 0:K.where)??null}),m1=t1(()=>{var K;return((K=d.value)==null?void 0:K.verdicts)??[]}),b1=t1(()=>m1.value.flatMap(K=>K.findings.map(O=>({...O,skill:K.skill})))),l1=t1(()=>b1.value.filter(K=>K.severity==="blocking")),o1=t1(()=>b1.value.filter(K=>K.severity!=="blocking")),y1=t1(()=>{const K={};for(const O of b1.value)O.path&&(K[O.path]=(K[O.path]??0)+(O.severity==="blocking"?10:1));for(const O of Y1.value)K[O.path]=(K[O.path]??0)+1;return K}),w1=t1(()=>[...w.value].sort((K,O)=>(y1.value[O.path]??0)-(y1.value[K.path]??0))),C1=t1(()=>w.value.find(K=>K.path===p.value)??w1.value[0]??null),s1=t1(()=>b1.value.filter(K=>!K.path)),$1=t1(()=>{var K;return((K=d.value)==null?void 0:K.review)??null}),S1=t1(()=>{var K;return((K=$1.value)==null?void 0:K.summary)??null}),Y1=t1(()=>{var K;return((K=$1.value)==null?void 0:K.suggestions)??[]}),e2=t1(()=>m1.value.filter(K=>!K.passed)),a1=t1(()=>{var K;return((K=d.value)==null?void 0:K.commits)??[]}),p1=t1(()=>{var K,O;return!!((K=S1.value)!=null&&K.overview)||e2.value.length>0||s1.value.length>0||Y1.value.length>0||Object.keys(((O=$1.value)==null?void 0:O.notes)??{}).length>0}),$=t1(()=>{const K=[{id:"overview",label:"Overview"},{id:"details",label:`Files${w.value.length?` ${w.value.length}`:""}`}];return K.push({id:"commits",label:`Commits${a1.value.length?` ${a1.value.length}`:""}`}),K}),z={APPROVE:{label:"Approved",tone:"success"},REQUEST_CHANGES:{label:"Changes requested",tone:"danger"},COMMENT:{label:"Commented",tone:"warning"}},N=t1(()=>{var O;if(l1.value.length)return{label:"Changes requested",tone:"danger",count:l1.value.length};const K=(O=$1.value)==null?void 0:O.verdict;return K&&z[K]?{...z[K],count:Y1.value.length||null}:!m1.value.length&&!$1.value?{label:"Not reviewed",tone:"neutral",count:null}:{label:"Commented",tone:"warning",count:o1.value.length||null}}),f1={success:bu,danger:G7,warning:_u,neutral:He},I1=t1(()=>d.value?f1[N.value.tone]:He),v={BUG:"danger",SECURITY:"danger",PERFORMANCE:"warning",REFACTOR:"info",STYLE:"neutral",CLARITY:"neutral",TEST:"info",DOCUMENTATION:"neutral"},b=K=>v[String(K||"").toUpperCase()]??"info",E=K=>[...b1.value.filter(O=>O.path===K).map(O=>({...O,from:O.skill,tone:O.severity==="blocking"?"danger":"warning"})),...Y1.value.filter(O=>O.path===K).map(O=>({line:O.start_line,severity:"suggestion",detail:O.comment,code:O.suggested_code,replacing:O.existing_code,from:O.category||"review",tone:b(O.category)}))];async function P(K){K&&(r.value=K,await Promise.all([e1(),Y()]))}async function Y(){try{I.value=await B1.reviews(r.value)}catch{I.value=[]}}function T(K){if(!K)return"";const O=new Date(K),h1=Math.round((Date.now()-O.getTime())/6e4);if(h1<1)return"just now";if(h1<60)return`${h1} minute${h1===1?"":"s"} ago`;const H=Math.round(h1/60);return H<24?`${H} hour${H===1?"":"s"} ago`:O.toLocaleDateString()}async function r1(){try{const K=await B1.settings(),O=K.find(H=>H.key==="model.name"),h1=K.find(H=>H.key==="model.api_key");m.value=!!(O!=null&&O.value)&&!!(h1!=null&&h1.is_set)}catch{m.value=!1}}async function e1(){try{F.value=(await B1.skills(r.value)).skills}catch{F.value=[]}}let X=null;function U(){X&&clearTimeout(X),X=null}async function g1(K){U();const O=K?u:c;O.value=!0,s.value="";try{const h1=await B1.startReview(r.value,{useModel:K,skills:[...g.value]});n.replace(`/reviews/${h1.id}`),await i1(h1.id,K)}catch(h1){s.value=h1.message,O.value=!1}}async function i1(K,O=!0){const h1=O?u:c;let H;try{H=await B1.reviewed(K)}catch(D1){s.value=D1.message,h1.value=!1;return}if(A.value=H,H.status==="running"){h1.value=!0,X=setTimeout(()=>i1(K,O),lh);return}if(h1.value=!1,H.status==="failed"){s.value=H.error;return}H.repository&&H.repository!==r.value&&(r.value=H.repository),d.value=H.review,p.value="",D.value="overview",Y(),H.repository&&(r.value=H.repository),g.value=(H.review.skills??[]).map(D1=>D1.id)}return q1(r,()=>{U(),e1(),Y()}),q1(B,K=>{if(U(),!K){d.value=null,A.value=null,Y();return}i1(K)}),ve(U),f2(async()=>{await i(),await Promise.all([r1(),e1(),Y()]),B.value&&await i1(B.value)}),(K,O)=>{var h1;return h(),C("div",yA,[M(f(m3),{pillar:"review",title:V.value?`${V.value.branch||"no branch"} → ${V.value.against}`:"Reviews",sub:V.value?V.value.path:"Your work read here, before anybody else is asked to read it.",mono:!!V.value,tone:d.value?N.value.tone:void 0},u6({icon:x(()=>[(h(),G(k2(I1.value),{class:"h-6 w-6"}))]),actions:x(()=>[f(o).length>1?(h(),G(f(j2),{key:0,modelValue:f(r),"onUpdate:modelValue":O[1]||(O[1]=H=>n2(r)?r.value=H:null),size:"sm","aria-label":"Repository"},{default:x(()=>[k("option",{value:f(Jt)},"All repositories",8,kA),(h(!0),C(n1,null,M1(f(o),H=>(h(),C("option",{key:H.name,value:H.name},Q(H.name),9,CA))),128))]),_:1},8,["modelValue"])):L("",!0),f(o).length&&f(r)?(h(),G(f(k1),{key:1,size:"sm",variant:"outline",disabled:c.value,onClick:O[2]||(O[2]=H=>g1(!1))},{default:x(()=>[c.value?(h(),G(f(D2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(p5),{key:1,class:"mr-2 h-4 w-4"})),J(" "+Q(c.value?"Reading…":"Read what changed"),1)]),_:1},8,["disabled"])):L("",!0),f(o).length&&m.value&&f(r)?(h(),G(f(k1),{key:2,size:"sm",variant:"glow",disabled:u.value,onClick:O[3]||(O[3]=H=>g1(!0))},{default:x(()=>[u.value?(h(),G(f(D2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(En),{key:1,class:"mr-2 h-4 w-4"})),J(" "+Q(u.value?"Reviewing…":"Review it"),1)]),_:1},8,["disabled"])):f(o).length&&m.value?(h(),G(f(j2),{key:3,"model-value":"",size:"sm","aria-label":"Choose a repository to review","onUpdate:modelValue":P},{default:x(()=>[O[5]||(O[5]=k("option",{value:""},"Choose a repository…",-1)),(h(!0),C(n1,null,M1(f(o),H=>(h(),C("option",{key:H.name,value:H.name},Q(H.name),9,wA))),128))]),_:1})):L("",!0)]),_:2},[B.value?{name:"back",fn:x(()=>[M(f(k1),{variant:"ghost",size:"icon","aria-label":"Back to reviews",onClick:O[0]||(O[0]=H=>f(l)("/reviews"))},{default:x(()=>[M(f(Ut),{class:"h-4 w-4"})]),_:1})]),key:"0"}:void 0,d.value?{name:"meta",fn:x(()=>[M(f(vn),{label:N.value.label,tone:N.value.tone,count:N.value.count},null,8,["label","tone","count"]),V.value?(h(),C("span",bA,Q(V.value.commits)+" commit"+Q(V.value.commits===1?"":"s")+" ahead",1)):L("",!0),k("span",null,Q(w.value.length)+" file"+Q(w.value.length===1?"":"s"),1)]),key:"1"}:void 0]),1032,["title","sub","mono","tone"]),f(s)?(h(),G(f(d2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[J(Q(f(s)),1)]),_:1})):L("",!0),f(o).length===0?(h(),G(g4,{key:1})):(h(),C(n1,{key:2},[!m.value&&f(r)?(h(),G(f(d2),{key:0,tone:"info",class:"mb-4"},{default:x(()=>[...O[6]||(O[6]=[J(" No model is configured, so nothing here can be judged. Reading what changed needs nothing. Choose a model in Settings to have the work read against your skills. ",-1)])]),_:1})):L("",!0),d.value?(h(),C(n1,{key:2},[k("div",IA,[M(f(X3),{modelValue:D.value,"onUpdate:modelValue":O[4]||(O[4]=H=>D.value=H),tabs:$.value,label:"What to look at",class:"w-fit"},null,8,["modelValue","tabs"]),k("div",MA,[O[11]||(O[11]=k("span",{class:"text-xs uppercase tracking-wider text-muted-foreground"}," Skills applied ",-1)),(h(!0),C(n1,null,M1(g.value,H=>(h(),G(f(A7),{key:H,label:_(H),tone:R(H)===void 0?"default":R(H)?"success":"danger",removable:"",onRemove:D1=>S(H)},{default:x(()=>[J(Q(_(H)),1)]),_:2},1032,["label","tone","onRemove"]))),128)),g.value.length?L("",!0):(h(),G(f(A7),{key:0,tone:"muted"},{default:x(()=>[...O[9]||(O[9]=[J("Whatever applies",-1)])]),_:1})),W.value.length?(h(),G(f(j2),{key:1,"model-value":y.value,size:"sm","aria-label":"Add a skill","onUpdate:modelValue":q},{default:x(()=>[O[10]||(O[10]=k("option",{value:""},"Add…",-1)),(h(!0),C(n1,null,M1(W.value,H=>(h(),C("option",{key:H.id,value:H.id},Q(H.name),9,EA))),128))]),_:1},8,["model-value"])):L("",!0)])]),d.value.note&&!$1.value?(h(),G(f(d2),{key:0,tone:"info",class:"mb-3"},{default:x(()=>[J(Q(d.value.note),1)]),_:1})):L("",!0),D.value==="commits"?(h(),C("div",DA,[a1.value.length?(h(),G(f(j1),{key:1,class:"divide-y px-4 py-1"},{default:x(()=>[(h(!0),C(n1,null,M1(a1.value,H=>(h(),C("div",{key:H.sha,class:"py-2.5"},[(h(),G(k2(H.body?"details":"div"),{class:c1(H.body&&"group")},{default:x(()=>[(h(),G(k2(H.body?"summary":"div"),{class:c1(["flex items-baseline gap-2 text-sm",H.body&&"cursor-pointer list-none"])},{default:x(()=>[M(f(wu),{class:"h-3.5 w-3.5 shrink-0 self-center text-muted-foreground"}),k("span",ZA,Q(H.subject),1),k("span",FA,Q(H.sha.slice(0,8)),1),k("span",BA,Q(H.author),1),k("span",SA,Q(T(H.at)),1)]),_:2},1032,["class"])),H.body?(h(),C("p",RA,Q(H.body),1)):L("",!0)]),_:2},1032,["class"]))]))),128))]),_:1})):(h(),G(f(Te),{key:0,title:"Nothing committed on this branch",compact:""},{default:x(()=>[...O[12]||(O[12]=[J(" Everything here is uncommitted work, which is in the diff rather than in a commit. ",-1)])]),_:1}))])):D.value==="overview"?(h(),C("div",QA,[p1.value?(h(),G(f(j1),{key:1,class:"divide-y px-5 py-1"},{default:x(()=>{var H,D1,V1,t2,C2,w2,v3,ke;return[(H=S1.value)!=null&&H.overview?(h(),G(f(G3),{key:0,title:"What this change does",tone:"info"},{icon:x(()=>[M(f(O7),{class:"h-4 w-4"})]),default:x(()=>[M(f(S2),{source:S1.value.overview},null,8,["source"])]),_:1})):L("",!0),e2.value.length||s1.value.length?(h(),G(f(G3),{key:1,title:"Against what this team wrote down",tone:"warning",count:e2.value.length+s1.value.length,collapsible:"",closed:""},{icon:x(()=>[M(f(Eu),{class:"h-4 w-4"})]),default:x(()=>[k("ul",NA,[(h(!0),C(n1,null,M1(e2.value,E1=>(h(),C("li",{key:E1.skill,class:"py-2 first:pt-0"},[k("details",null,[k("summary",KA,[M(f(Pe),{tone:"danger",title:`${E1.skill} is not met`},null,8,["title"]),k("span",GA,Q(E1.skill),1),k("span",OA,Q((E1.note||"").split(` +`)[0]),1)]),E1.note?(h(),G(f(S2),{key:0,source:E1.note,class:"mt-2 pl-5 text-sm text-muted-foreground"},null,8,["source"])):L("",!0)])]))),128)),(h(!0),C(n1,null,M1(s1.value,(E1,J1)=>(h(),C("li",{key:`o${J1}`,class:"py-2 first:pt-0"},[k("details",null,[k("summary",$A,[M(f(Pe),{tone:E1.severity==="blocking"?"danger":"warning",title:E1.skill||"A skill"},null,8,["tone","title"]),k("span",WA,Q(E1.skill),1),k("span",LA,Q((E1.detail||"").split(` +`)[0]),1)]),M(f(S2),{source:E1.detail,class:"mt-2 pl-5 text-sm text-muted-foreground"},null,8,["source"])])]))),128))])]),_:1},8,["count"])):L("",!0),(V1=(D1=S1.value)==null?void 0:D1.critical_issues)!=null&&V1.length?(h(),G(f(G3),{key:2,title:"Worth stopping for",tone:"danger",count:S1.value.critical_issues.length,collapsible:""},{icon:x(()=>[M(f(G7),{class:"h-4 w-4"})]),default:x(()=>[k("ul",PA,[(h(!0),C(n1,null,M1(S1.value.critical_issues,(E1,J1)=>(h(),C("li",{key:J1},[M(f(S2),{source:E1},null,8,["source"])]))),128))])]),_:1},8,["count"])):L("",!0),(C2=(t2=S1.value)==null?void 0:t2.key_improvements)!=null&&C2.length?(h(),G(f(G3),{key:3,title:"Worth changing",tone:"warning",count:S1.value.key_improvements.length,collapsible:""},{icon:x(()=>[M(f(J4),{class:"h-4 w-4"})]),default:x(()=>[k("ul",TA,[(h(!0),C(n1,null,M1(S1.value.key_improvements,(E1,J1)=>(h(),C("li",{key:J1},[M(f(S2),{source:E1},null,8,["source"])]))),128))])]),_:1},8,["count"])):L("",!0),(v3=(w2=S1.value)==null?void 0:w2.minor_suggestions)!=null&&v3.length?(h(),G(f(G3),{key:4,title:"Nice to have",count:S1.value.minor_suggestions.length,collapsible:"",closed:""},{icon:x(()=>[M(f(vt),{class:"h-4 w-4"})]),default:x(()=>[k("ul",HA,[(h(!0),C(n1,null,M1(S1.value.minor_suggestions,(E1,J1)=>(h(),C("li",{key:J1},[M(f(S2),{source:E1},null,8,["source"])]))),128))])]),_:1},8,["count"])):L("",!0),Y1.value.length?(h(),G(f(G3),{key:5,title:"Suggestions",tone:"info",count:Y1.value.length,collapsible:""},{icon:x(()=>[M(f(vu),{class:"h-4 w-4"})]),default:x(()=>[O[13]||(O[13]=k("p",{class:"mb-3 text-sm text-muted-foreground"}," Each one is drawn against the line it is about, under Files. ",-1)),k("ul",YA,[(h(!0),C(n1,null,M1(Y1.value,(E1,J1)=>(h(),C("li",{key:J1,class:"flex gap-2"},[E1.category?(h(),G(f(Pe),{key:0,tone:b(E1.category),title:E1.category,label:E1.category.toLowerCase(),class:"mt-0.5 shrink-0"},null,8,["tone","title","label"])):L("",!0),k("button",{type:"button",class:"min-w-0 text-left hover:underline",onClick:v5=>{p.value=E1.path,D.value="details"}},[k("span",UA,Q(E1.path)+":"+Q(E1.start_line),1),M(f(S2),{source:E1.comment,class:"text-muted-foreground"},null,8,["source"])],8,VA)]))),128))])]),_:1},8,["count"])):L("",!0),(h(!0),C(n1,null,M1(((ke=$1.value)==null?void 0:ke.notes)??{},(E1,J1)=>(h(),G(f(G3),{key:J1,title:String(J1).replace(/_/g," "),collapsible:"",closed:"",class:"capitalize"},{icon:x(()=>[M(f(O7),{class:"h-4 w-4"})]),default:x(()=>[M(f(S2),{source:E1,class:"normal-case"},null,8,["source"])]),_:2},1032,["title"]))),128))]}),_:1})):(h(),G(f(Te),{key:0,title:"Read, not judged",compact:""},{default:x(()=>[J(Q(d.value.note||"Ask for a review to have it read properly."),1)]),_:1}))])):(h(),C("div",JA,[M(f(j1),{class:"flex min-h-0 flex-col overflow-hidden"},{default:x(()=>[O[14]||(O[14]=k("div",{class:"border-b px-3 py-2 text-xs uppercase tracking-wider text-muted-foreground"}," Changed ",-1)),k("ul",zA,[(h(!0),C(n1,null,M1(w1.value,H=>{var D1;return h(),C("li",{key:H.path},[k("button",{type:"button",class:c1(["flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm transition-colors",((D1=C1.value)==null?void 0:D1.path)===H.path?"bg-primary/10 text-primary":"hover:bg-muted"]),onClick:V1=>p.value=H.path},[k("span",{class:"min-w-0 flex-1 truncate font-mono text-xs",title:H.path},Q(H.path),9,XA),E(H.path).length?(h(),G(f(u2),{key:0,variant:y1.value[H.path]>=10?"destructive":"secondary"},{default:x(()=>[J(Q(E(H.path).length),1)]),_:2},1032,["variant"])):L("",!0),k("span",qA,Q(H.change.slice(0,3)),1)],10,jA)])}),128))])]),_:1}),k("div",eh,[C1.value?(h(),C(n1,{key:0},[k("div",th,[k("span",nh,Q(C1.value.path),1),M(f(u2),{variant:"secondary"},{default:x(()=>[J(Q(C1.value.change),1)]),_:1})]),M(f(J9),{patch:C1.value.patch,notes:E(C1.value.path)},null,8,["patch","notes"])],64)):(h(),G(f(j1),{key:1,class:"p-10 text-center text-sm text-muted-foreground"},{default:x(()=>[...O[15]||(O[15]=[J(" Nothing has changed in this checkout. ",-1)])]),_:1}))])]))],64)):(h(),C(n1,{key:1},[((h1=A.value)==null?void 0:h1.status)==="running"?(h(),G(f(yn),{key:0,label:"Reading it",note:"This keeps going whether or not anybody is watching, and the link to it keeps working."})):(h(),C(n1,{key:1},[I.value.length?L("",!0):(h(),G(f(Te),{key:0,title:"Nothing read here yet"},u6({icon:x(()=>[M(f(He),{class:"h-8 w-8"})]),default:x(()=>[O[7]||(O[7]=J(" Everything comes off the checkout, so work you have not pushed, or not committed, still gets a review. ",-1))]),_:2},[f(r)?void 0:{name:"actions",fn:x(()=>[(h(!0),C(n1,null,M1(f(o),H=>(h(),G(f(k1),{key:H.name,size:"sm",variant:"outline",onClick:D1=>P(H.name)},{default:x(()=>[M(f(c4),{class:"mr-2 h-4 w-4"}),J(" "+Q(H.name),1)]),_:2},1032,["onClick"]))),128))]),key:"0"}]),1024)),I.value.length?(h(),C(n1,{key:1},[O[8]||(O[8]=k("p",{class:"mb-2 text-xs uppercase tracking-wider text-muted-foreground"},"Earlier",-1)),k("div",xA,[(h(!0),C(n1,null,M1(I.value,H=>(h(),G(f(J3),{key:H.id,title:H.title||H.repository,subtitle:H.id,pillar:"review",hover:"",class:"cursor-pointer",onClick:D1=>f(n).push(`/reviews/${H.id}`)},{icon:x(()=>[M(f(ku),{class:"h-5 w-5"})]),badges:x(()=>[M(f(u2),{variant:H.status==="done"?"success":H.status==="failed"?"destructive":"secondary"},{default:x(()=>[J(Q(H.status),1)]),_:2},1032,["variant"])]),meta:x(()=>[k("span",null,Q(T(H.started)),1),f(a)?(h(),G(f(bn),{key:0,name:H.repository},{icon:x(()=>[M(f(c4),{class:"h-3 w-3"})]),_:1},8,["name"])):(h(),C("span",_A,Q(H.repository),1))]),_:2},1032,["title","subtitle","onClick"]))),128))])],64)):L("",!0)],64))],64))],64))])}}},oh={class:"flex h-full min-h-0 flex-col"},rh={key:0,class:"text-xs text-success"},sh={key:2,class:"py-10 text-center text-sm text-muted-foreground"},ah=["value"],ih={class:"flex flex-wrap gap-1.5"},ch={class:"mt-2 text-xs text-muted-foreground"},uh={class:"mb-2 flex items-center justify-between gap-3"},dh={class:"text-xs text-muted-foreground"},fh={class:"grid min-h-0 flex-1 gap-3 lg:grid-cols-2"},Ah={key:1,class:"text-sm text-muted-foreground"},hh="new",Z4="repository",P2="global",ph={__name:"Skill",setup(e){const t=[Z4,P2],n=d5(),l=ye(),o=zt(),{repositories:r,chosen:s,fetchRepositories:a}=g3(),i=t1(()=>String(n.params.id??"")),c=t1(()=>i.value===hh),u=j(null),d=j({id:"",name:"",description:"",body:"",paths:[],reviews:null}),A=j(P2),m=j("write"),p=j(!1),g=j(!1),y=j(""),F=j(!0),I=[{id:"write",label:"Write"},{id:"preview",label:"Preview"}],D=[{id:null,label:"When it looks relevant"},{id:!0,label:"Always"},{id:!1,label:"Never"}],w=t1(()=>d.value.reviews===!0?"Read against every change here.":d.value.reviews===!1?"Left out of reviews entirely.":"Picked when what it says matches what a change touches."),B=t1(()=>Z.value?"Kept on this machine and read for every repository you work in.":`Kept on this machine and read for ${A.value}. Nothing is written into the checkout.`),W=t1(()=>[{id:P2,label:"Everywhere"},...r.value.map(l1=>({id:l1.name,label:l1.name}))]),Z=t1(()=>A.value===P2),_=t1(()=>!!u.value&&!t.includes(u.value.origin)),R=t1(()=>_.value),S=t1(()=>c.value?!!(d.value.id||d.value.description||d.value.body):u.value?d.value.name!==u.value.name||d.value.description!==u.value.description||d.value.body!==(u.value.body??"")||d.value.paths.join(` +`)!==(u.value.paths??[]).join(` +`)||d.value.reviews!==u.value.reviews:!1),q=t1(()=>d.value.body?d.value.body.split(` +`).length:0);async function V(){if(F.value=!0,y.value="",c.value){u.value=null,d.value={id:"",name:"",description:"",body:"",paths:[],reviews:null},A.value=n.query.for||s.value||P2,F.value=!1;return}try{const l1=await B1.skill(i.value,s.value);u.value=l1,A.value=l1.origin===Z4?s.value:l1.origin===P2?P2:s.value||P2,d.value={id:l1.id.split("/").pop(),name:l1.name,description:l1.description,body:l1.body??"",paths:[...l1.paths??[]],reviews:l1.reviews}}catch(l1){y.value=l1.message}finally{F.value=!1}}async function m1(){p.value=!0,g.value=!1,y.value="";try{const l1=await B1.recordSkill({scope:Z.value?P2:Z4,repository:Z.value?"":A.value,id:d.value.id||d.value.name,name:d.value.name||d.value.id,description:d.value.description,body:d.value.body,paths:d.value.paths,reviews:d.value.reviews});g.value=!0,c.value||l1.id!==i.value?l.replace(`/skills/${l1.id}`):await V()}catch(l1){y.value=l1.message}finally{p.value=!1}}async function b1(){const l1=Z.value?"everywhere":A.value;if(confirm(`Forget ${d.value.name}? -It stops being read for ${r1}.`))try{await B1.forgetSkill(D.value?"":A.value,D.value?P2:E4,i.value),l.push("/skills")}catch(l1){k.value=l1.message}}return t2(i,Y),d2(async()=>{await a(),await Y()}),(r1,l1)=>{var b1,y1;return h(),C("div",JA,[I(f(m3),{pillar:"review",title:c.value?"A new skill":u.value.name||i.value,sub:((b1=d.value)==null?void 0:b1.path)||R.value,mono:!!((y1=d.value)!=null&&y1.path)},{back:w(()=>[I(f(C1),{variant:"ghost",size:"icon","aria-label":"Back to skills",onClick:l1[0]||(l1[0]=k1=>f(o)("/skills"))},{default:w(()=>[I(f(Yt),{class:"h-4 w-4"})]),_:1})]),icon:w(()=>[I(f(c4),{class:"h-5 w-5"})]),badges:w(()=>[d.value?(h(),G(f(c2),{key:0,variant:x.value?"outline":"success"},{default:w(()=>[U(N(x.value?d.value.origin:D.value?"everywhere":A.value),1)]),_:1},8,["variant"])):P("",!0)]),actions:w(()=>[y.value&&!B.value?(h(),C("span",zA,"Saved.")):P("",!0),d.value&&!x.value?(h(),G(f(C1),{key:1,variant:"ghost",size:"icon","aria-label":"Forget this skill",onClick:w1},{default:w(()=>[I(f(h4),{class:"h-4 w-4"})]),_:1})):P("",!0),I(f(C1),{size:"sm",disabled:p.value||!B.value,onClick:m1},{default:w(()=>[p.value?(h(),G(f(M2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(k2(Q.value?f(pt):f(he)),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+N(Q.value?"Save your own copy":"Save"),1)]),_:1},8,["disabled"])]),_:1},8,["title","sub","mono"]),Q.value?(h(),G(f(u2),{key:0,tone:"info",class:"mb-4"},{default:w(()=>[...l1[7]||(l1[7]=[U(" This one is not ours to change: it belongs to your coding agent, or your team committed it to the repository. Saving keeps a copy of our own, for whatever you choose below, and the copy is then the one that gets used. ",-1)])]),_:1})):P("",!0),k.value?(h(),G(f(u2),{key:1,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(k.value),1)]),_:1})):P("",!0),F.value?(h(),C("p",jA,"Reading it.")):(h(),C(n1,{key:3},[I(f(z1),{class:"mb-3 grid gap-4 p-5 lg:grid-cols-3"},{default:w(()=>[I(f(R2),{label:"Name",for:"skill-id",hint:"Lower case words joined by hyphens. It names the folder the skill is saved in."},{default:w(()=>[I(f(J3),{id:"skill-id",modelValue:u.value.id,"onUpdate:modelValue":l1[1]||(l1[1]=k1=>u.value.id=k1),readonly:!!d.value&&!x.value,placeholder:"retry-limit"},null,8,["modelValue","readonly"])]),_:1}),I(f(R2),{label:"Used for",for:"skill-belongs",hint:D.value?"Read for every repository you work in.":"Read only when reviewing that repository."},{default:w(()=>[I(f(j2),{id:"skill-belongs",modelValue:A.value,"onUpdate:modelValue":l1[2]||(l1[2]=k1=>A.value=k1),disabled:!!d.value&&!x.value,class:"w-full"},{default:w(()=>[(h(!0),C(n1,null,_1($.value,k1=>(h(),C("option",{key:k1.id,value:k1.id},N(k1.label),9,XA))),128))]),_:1},8,["modelValue","disabled"])]),_:1},8,["hint"]),I(f(R2),{label:"When it applies",for:"skill-description",hint:"One sentence. It decides whether a change gets read against this skill."},{default:w(()=>[I(f(J3),{id:"skill-description",modelValue:u.value.description,"onUpdate:modelValue":l1[3]||(l1[3]=k1=>u.value.description=k1),placeholder:"Use when a change adds or edits a database migration."},null,8,["modelValue"])]),_:1})]),_:1}),I(f(z1),{class:"mb-3 grid gap-4 p-5 lg:grid-cols-2"},{default:w(()=>[I(f(R2),{label:"Files it is about",for:"skill-paths",hint:`Globs, one to a line. Named here, a change is read against this only when it - touches one of them, whatever the wording says. Left empty, the wording decides.`},{default:w(()=>[I(f(O0),{modelValue:u.value.paths,"onUpdate:modelValue":l1[4]||(l1[4]=k1=>u.value.paths=k1),mono:"",size:"sm",noun:"a pattern",placeholder:"db/migrations/**"},null,8,["modelValue"])]),_:1}),I(f(R2),{label:"Use in reviews",hint:"Not everything you teach an agent is about judging a change."},{default:w(()=>[b("div",qA,[(h(),C(n1,null,_1(E,k1=>I(f(C1),{key:String(k1.id),size:"sm",variant:u.value.reviews===k1.id?"default":"outline",onClick:c1=>u.value.reviews=k1.id},{default:w(()=>[U(N(k1.label),1)]),_:2},1032,["variant","onClick"])),64))]),b("p",eh,N(_.value),1)]),_:1})]),_:1}),b("div",th,[I(f(ge),{modelValue:m.value,"onUpdate:modelValue":l1[5]||(l1[5]=k1=>m.value=k1),tabs:M,label:"Write or preview",class:"lg:hidden"},null,8,["modelValue"]),l1[8]||(l1[8]=b("p",{class:"hidden text-xs uppercase tracking-wider text-muted-foreground lg:block"}," What it says ",-1)),b("p",nh,N(X.value)+" line"+N(X.value===1?"":"s")+" · markdown ",1)]),b("div",lh,[I(f(dt),{modelValue:u.value.body,"onUpdate:modelValue":l1[6]||(l1[6]=k1=>u.value.body=k1),class:f1(["h-full min-h-[24rem] resize-none font-mono leading-relaxed",m.value==="write"?"":"hidden lg:block"]),placeholder:"Never edit a migration that has already run. Add a new one instead.","aria-label":"What the skill says"},null,8,["modelValue","class"]),I(f(z1),{class:f1(["h-full min-h-[24rem] overflow-auto p-5",m.value==="preview"?"":"hidden lg:block"])},{default:w(()=>[u.value.body?(h(),G(f(B2),{key:0,source:u.value.body},null,8,["source"])):(h(),C("p",oh," Nothing written yet. What appears here is what a person reads, and what a model is given when your work is checked against this skill. "))]),_:1},8,["class"])])],64))])}}},ah=["value"],ih={class:"relative"},ch={key:0,class:"space-y-3"},uh={class:"text-sm text-muted-foreground"},dh={key:0,class:"text-success"},fh={key:1},Ah={key:2},hh={key:3,class:"font-mono"},De="repository",ee="global",ph={__name:"Skills",setup(e){const t=[De,ee],n=me(),{repositories:l,chosen:o,error:r,fetchRepositories:s}=g3(),a=z([]),i=z(""),c=z("all"),d=[{id:"all",label:"All"},{id:De,label:"This repository"},{id:ee,label:"Everywhere"},{id:"agents",label:"Your coding agents"}],u=t1(()=>{const k=i.value.trim().toLowerCase();return a.value.filter(F=>c.value===De&&F.origin!==De||c.value===ee&&F.origin!==ee||c.value==="agents"&&t.includes(F.origin)?!1:k?F.name.toLowerCase().includes(k)||F.description.toLowerCase().includes(k):!0)}),A=k=>t.includes(k.origin),m=k=>k.origin===ee?"everywhere":k.origin===De?o.value:k.origin;async function p(){try{const k=await B1.skills(o.value);a.value=k.skills,r.value=""}catch(k){a.value=[],r.value=k.message}}async function y(k){if(confirm(`Forget ${k.name}? +It stops being read for ${l1}.`))try{await B1.forgetSkill(Z.value?"":A.value,Z.value?P2:Z4,i.value),l.push("/skills")}catch(o1){y.value=o1.message}}return q1(i,V),f2(async()=>{await a(),await V()}),(l1,o1)=>{var y1,w1;return h(),C("div",oh,[M(f(m3),{pillar:"review",title:c.value?"A new skill":d.value.name||i.value,sub:((y1=u.value)==null?void 0:y1.path)||B.value,mono:!!((w1=u.value)!=null&&w1.path)},{back:x(()=>[M(f(k1),{variant:"ghost",size:"icon","aria-label":"Back to skills",onClick:o1[0]||(o1[0]=C1=>f(o)("/skills"))},{default:x(()=>[M(f(Ut),{class:"h-4 w-4"})]),_:1})]),icon:x(()=>[M(f(u4),{class:"h-5 w-5"})]),badges:x(()=>[u.value?(h(),G(f(u2),{key:0,variant:_.value?"outline":"success"},{default:x(()=>[J(Q(_.value?u.value.origin:Z.value?"everywhere":A.value),1)]),_:1},8,["variant"])):L("",!0)]),actions:x(()=>[g.value&&!S.value?(h(),C("span",rh,"Saved.")):L("",!0),u.value&&!_.value?(h(),G(f(k1),{key:1,variant:"ghost",size:"icon","aria-label":"Forget this skill",onClick:b1},{default:x(()=>[M(f(m4),{class:"h-4 w-4"})]),_:1})):L("",!0),M(f(k1),{size:"sm",disabled:p.value||!S.value,onClick:m1},{default:x(()=>[p.value?(h(),G(f(D2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(k2(R.value?f(mt):f(me)),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),J(" "+Q(R.value?"Save your own copy":"Save"),1)]),_:1},8,["disabled"])]),_:1},8,["title","sub","mono"]),R.value?(h(),G(f(d2),{key:0,tone:"info",class:"mb-4"},{default:x(()=>[...o1[7]||(o1[7]=[J(" This one is not ours to change: it belongs to your coding agent, or your team committed it to the repository. Saving keeps a copy of our own, for whatever you choose below, and the copy is then the one that gets used. ",-1)])]),_:1})):L("",!0),y.value?(h(),G(f(d2),{key:1,tone:"danger",class:"mb-4"},{default:x(()=>[J(Q(y.value),1)]),_:1})):L("",!0),F.value?(h(),C("p",sh,"Reading it.")):(h(),C(n1,{key:3},[M(f(j1),{class:"mb-3 grid gap-4 p-5 lg:grid-cols-3"},{default:x(()=>[M(f(R2),{label:"Name",for:"skill-id",hint:"Lower case words joined by hyphens. It names the folder the skill is saved in."},{default:x(()=>[M(f(U3),{id:"skill-id",modelValue:d.value.id,"onUpdate:modelValue":o1[1]||(o1[1]=C1=>d.value.id=C1),readonly:!!u.value&&!_.value,placeholder:"retry-limit"},null,8,["modelValue","readonly"])]),_:1}),M(f(R2),{label:"Used for",for:"skill-belongs",hint:Z.value?"Read for every repository you work in.":"Read only when reviewing that repository."},{default:x(()=>[M(f(j2),{id:"skill-belongs",modelValue:A.value,"onUpdate:modelValue":o1[2]||(o1[2]=C1=>A.value=C1),disabled:!!u.value&&!_.value,class:"w-full"},{default:x(()=>[(h(!0),C(n1,null,M1(W.value,C1=>(h(),C("option",{key:C1.id,value:C1.id},Q(C1.label),9,ah))),128))]),_:1},8,["modelValue","disabled"])]),_:1},8,["hint"]),M(f(R2),{label:"When it applies",for:"skill-description",hint:"One sentence. It decides whether a change gets read against this skill."},{default:x(()=>[M(f(U3),{id:"skill-description",modelValue:d.value.description,"onUpdate:modelValue":o1[3]||(o1[3]=C1=>d.value.description=C1),placeholder:"Use when a change adds or edits a database migration."},null,8,["modelValue"])]),_:1})]),_:1}),M(f(j1),{class:"mb-3 grid gap-4 p-5 lg:grid-cols-2"},{default:x(()=>[M(f(R2),{label:"Files it is about",for:"skill-paths",hint:`Globs, one to a line. Named here, a change is read against this only when it + touches one of them, whatever the wording says. Left empty, the wording decides.`},{default:x(()=>[M(f(W0),{modelValue:d.value.paths,"onUpdate:modelValue":o1[4]||(o1[4]=C1=>d.value.paths=C1),mono:"",size:"sm",noun:"a pattern",placeholder:"db/migrations/**"},null,8,["modelValue"])]),_:1}),M(f(R2),{label:"Use in reviews",hint:"Not everything you teach an agent is about judging a change."},{default:x(()=>[k("div",ih,[(h(),C(n1,null,M1(D,C1=>M(f(k1),{key:String(C1.id),size:"sm",variant:d.value.reviews===C1.id?"default":"outline",onClick:s1=>d.value.reviews=C1.id},{default:x(()=>[J(Q(C1.label),1)]),_:2},1032,["variant","onClick"])),64))]),k("p",ch,Q(w.value),1)]),_:1})]),_:1}),k("div",uh,[M(f(X3),{modelValue:m.value,"onUpdate:modelValue":o1[5]||(o1[5]=C1=>m.value=C1),tabs:I,label:"Write or preview",class:"lg:hidden"},null,8,["modelValue"]),o1[8]||(o1[8]=k("p",{class:"hidden text-xs uppercase tracking-wider text-muted-foreground lg:block"}," What it says ",-1)),k("p",dh,Q(q.value)+" line"+Q(q.value===1?"":"s")+" · markdown ",1)]),k("div",fh,[M(f(ft),{modelValue:d.value.body,"onUpdate:modelValue":o1[6]||(o1[6]=C1=>d.value.body=C1),class:c1(["h-full min-h-[24rem] resize-none font-mono leading-relaxed",m.value==="write"?"":"hidden lg:block"]),placeholder:"Never edit a migration that has already run. Add a new one instead.","aria-label":"What the skill says"},null,8,["modelValue","class"]),M(f(j1),{class:c1(["h-full min-h-[24rem] overflow-auto p-5",m.value==="preview"?"":"hidden lg:block"])},{default:x(()=>[d.value.body?(h(),G(f(S2),{key:0,source:d.value.body},null,8,["source"])):(h(),C("p",Ah," Nothing written yet. What appears here is what a person reads, and what a model is given when your work is checked against this skill. "))]),_:1},8,["class"])])],64))])}}},mh=["value"],gh={class:"relative"},vh={key:0,class:"space-y-3"},yh={class:"text-sm text-muted-foreground"},bh={key:0,class:"text-success"},kh={key:1},Ch={key:2},wh={key:3,class:"font-mono"},Fe="repository",te="global",xh={__name:"Skills",setup(e){const t=[Fe,te],n=ye(),{repositories:l,chosen:o,error:r,fetchRepositories:s}=g3(),a=j([]),i=j(""),c=j("all"),u=[{id:"all",label:"All"},{id:Fe,label:"This repository"},{id:te,label:"Everywhere"},{id:"agents",label:"Your coding agents"}],d=t1(()=>{const y=i.value.trim().toLowerCase();return a.value.filter(F=>c.value===Fe&&F.origin!==Fe||c.value===te&&F.origin!==te||c.value==="agents"&&t.includes(F.origin)?!1:y?F.name.toLowerCase().includes(y)||F.description.toLowerCase().includes(y):!0)}),A=y=>t.includes(y.origin),m=y=>y.origin===te?"everywhere":y.origin===Fe?o.value:y.origin;async function p(){try{const y=await B1.skills(o.value);a.value=y.skills,r.value=""}catch(y){a.value=[],r.value=y.message}}async function g(y){if(confirm(`Forget ${y.name}? -The file is removed from ${m(k)}.`))try{await B1.forgetSkill(k.origin===ee?"":o.value,k.origin,k.id),await p()}catch(F){r.value=F.message}}return t2(o,p),d2(async()=>{await s(),await p()}),(k,F)=>(h(),C("div",null,[I(f(m3),{pillar:"review",title:"Skills",sub:"What your work is read against: this repository's, this machine's, and your own."},{icon:w(()=>[I(f(vn),{class:"h-6 w-6"})]),actions:w(()=>[f(l).length>1?(h(),G(f(j2),{key:0,modelValue:f(o),"onUpdate:modelValue":F[0]||(F[0]=M=>n2(o)?o.value=M:null),size:"sm","aria-label":"Repository"},{default:w(()=>[(h(!0),C(n1,null,_1(f(l),M=>(h(),C("option",{key:M.name,value:M.name},N(M.name),9,ah))),128))]),_:1},8,["modelValue"])):P("",!0),b("div",ih,[I(f(wn),{class:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),I(f(J3),{modelValue:i.value,"onUpdate:modelValue":F[1]||(F[1]=M=>i.value=M),size:"sm",placeholder:"Find a skill",class:"w-48 pl-8","aria-label":"Find a skill"},null,8,["modelValue"])]),f(l).length?(h(),G(f(C1),{key:1,size:"sm",variant:"glow",onClick:F[2]||(F[2]=M=>f(n).push({path:"/skills/new",query:{for:f(o)}}))},{default:w(()=>[I(f(h3),{class:"mr-2 h-4 w-4"}),F[5]||(F[5]=U(" Write one down ",-1))]),_:1})):P("",!0)]),_:1}),f(r)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(f(r)),1)]),_:1})):P("",!0),f(l).length===0?(h(),G(p4,{key:1})):(h(),C(n1,{key:2},[I(f(ge),{modelValue:c.value,"onUpdate:modelValue":F[3]||(F[3]=M=>c.value=M),tabs:d,label:"Where they are kept",class:"mb-4"},null,8,["modelValue"]),u.value.length?(h(),C("div",ch,[(h(!0),C(n1,null,_1(u.value,M=>(h(),G(f(z3),{key:M.id,title:M.name,subtitle:M.path,pillar:"review",hover:"",class:"cursor-pointer",onClick:E=>f(n).push(`/skills/${M.id}`)},{icon:w(()=>[I(f(c4),{class:"h-5 w-5"})]),badges:w(()=>[I(f(c2),{variant:A(M)?"success":"outline"},{default:w(()=>[U(N(m(M)),1)]),_:2},1032,["variant"])]),meta:w(()=>{var E;return[M.reviews===!0?(h(),C("span",dh,"always in reviews")):M.reviews===!1?(h(),C("span",fh,"not used in reviews")):M.automatic?P("",!0):(h(),C("span",Ah,"only when you invoke it")),(E=M.paths)!=null&&E.length?(h(),C("span",hh,N(M.paths.join(" ")),1)):P("",!0)]}),actions:w(()=>[A(M)?(h(),G(f(C1),{key:0,variant:"ghost",size:"icon","aria-label":`Forget ${M.name}`,onClick:qe(E=>y(M),["stop"])},{default:w(()=>[I(f(h4),{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])):P("",!0)]),default:w(()=>[b("p",uh,N(M.description),1)]),_:2},1032,["title","subtitle","onClick"]))),128))])):(h(),G(f(z1),{key:1,class:"p-10 text-center"},{default:w(()=>[I(f(c4),{class:"mx-auto mb-3 h-8 w-8 text-muted-foreground"}),F[7]||(F[7]=b("p",{class:"font-medium"},"Nothing written down here yet.",-1)),F[8]||(F[8]=b("p",{class:"mx-auto mt-1 max-w-lg text-sm text-muted-foreground"}," A skill says when it applies and what it says to do. Anything you have already taught Claude or Codex is read from their own folders, and anything your team committed is read from the repository. What you write here is kept beside the index rather than in anybody's checkout. ",-1)),I(f(C1),{class:"mt-4",variant:"glow",onClick:F[4]||(F[4]=M=>f(n).push({path:"/skills/new",query:{for:f(o)}}))},{default:w(()=>[I(f(h3),{class:"mr-2 h-4 w-4"}),F[6]||(F[6]=U(" Write one down ",-1))]),_:1})]),_:1}))],64))]))}},mh={class:"space-y-4"},gh={class:"mb-3 flex flex-wrap items-center justify-between gap-2"},vh={class:"font-mono text-sm text-muted-foreground"},yh={class:"mb-2 flex flex-wrap items-center justify-between gap-2"},bh={class:"overflow-x-auto rounded-md bg-muted/50 p-3 text-xs"},kh={class:"mb-2 flex flex-wrap items-center justify-between gap-2"},Ch={class:"overflow-x-auto rounded-md bg-muted/50 p-3 text-xs"},wh={__name:"McpPanel",setup(e){const t=z(""),n=z(null),l=z(""),o=t1(()=>window.location.origin),r=t1(()=>JSON.stringify({mcpServers:{sourceant:{command:"sourceant",args:["mcp"],env:{SOURCEANT_UI_URL:o.value}}}},null,2)),s=t1(()=>JSON.stringify({mcpServers:{sourceant:{type:"http",url:`${o.value}/mcp`}}},null,2));async function a(i,c){await navigator.clipboard.writeText(c),l.value=i,setTimeout(()=>l.value="",1500)}return d2(async()=>{t.value=`${o.value}/mcp`;try{const i=await fetch(t.value,{method:"GET"});n.value=i.status!==404}catch{n.value=!1}}),(i,c)=>(h(),C("div",mh,[I(f(z1),{class:"p-5"},{default:w(()=>[b("div",gh,[c[2]||(c[2]=b("h2",{class:"font-semibold"},"Endpoint",-1)),I(f(mn),{label:n.value===null?"Checking":n.value?"Serving":"Not mounted",tone:n.value===null?"neutral":n.value?"success":"warning",busy:n.value===null},null,8,["label","tone","busy"])]),b("p",vh,N(t.value),1),n.value===!1?(h(),G(f(u2),{key:0,tone:"info",class:"mt-3"},{default:w(()=>[...c[3]||(c[3]=[U(" Nothing is mounted there. The HTTP endpoint is served when this machine is running in local mode; over stdio it needs no endpoint at all. ",-1)])]),_:1})):P("",!0)]),_:1}),I(f(z1),{class:"p-5"},{default:w(()=>[b("div",yh,[c[4]||(c[4]=b("h2",{class:"font-semibold"},"Over stdio",-1)),I(f(C1),{size:"sm",variant:"outline",onClick:c[0]||(c[0]=d=>a("stdio",r.value))},{default:w(()=>[(h(),G(k2(l.value==="stdio"?f(he):f(pt)),{class:"mr-2 h-3.5 w-3.5"})),U(" "+N(l.value==="stdio"?"Copied":"Copy"),1)]),_:1})]),c[5]||(c[5]=b("p",{class:"mb-3 text-sm text-muted-foreground"}," One process per client, started by the client. A review asked for this way is handed to this agent, so it finishes even after the client goes away. ",-1)),b("pre",bh,[b("code",null,N(r.value),1)])]),_:1}),I(f(z1),{class:"p-5"},{default:w(()=>[b("div",kh,[c[6]||(c[6]=b("h2",{class:"font-semibold"},"Over HTTP",-1)),I(f(C1),{size:"sm",variant:"outline",onClick:c[1]||(c[1]=d=>a("http",s.value))},{default:w(()=>[(h(),G(k2(l.value==="http"?f(he):f(pt)),{class:"mr-2 h-3.5 w-3.5"})),U(" "+N(l.value==="http"?"Copied":"Copy"),1)]),_:1})]),c[7]||(c[7]=b("p",{class:"mb-3 text-sm text-muted-foreground"}," One server, several clients. Reachable from this machine only. ",-1)),b("pre",Ch,[b("code",null,N(s.value),1)])]),_:1})]))}},xh={key:0,class:"grid gap-x-4 gap-y-2 text-sm sm:grid-cols-[auto_1fr]"},_h={class:"font-mono"},Ih={class:"break-all font-mono"},Mh={class:"font-mono"},Eh={key:0,class:"ml-2 text-xs text-muted-foreground"},Dh={class:"break-all font-mono"},Zh={class:"font-mono"},Fh={class:"font-mono"},Bh={class:"mb-1 font-semibold"},Sh={key:0,class:"mb-4 text-sm text-muted-foreground"},Y5="overview",P7="mcp",Rh={__name:"Settings",setup(e){const{isDark:t,toggleTheme:n}=En(),l=z(null),o=z([]),r=z([]),s=z(""),a=z(Y5),i=t1(()=>[{id:Y5,label:"Overview"},...r.value.map(d=>({id:d,label:d})),{id:P7,label:"MCP"}]),c=t1(()=>{var u;return((u=l.value)==null?void 0:u.model)||"None chosen"});return d2(async()=>{var d,u;try{const[A,m,p]=await Promise.all([B1.status(),B1.settings(),B1.repositories().catch(()=>[])]);l.value={...A,model:((d=m.find(y=>y.key==="model.name"))==null?void 0:d.value)??"",keySet:!!((u=m.find(y=>y.key==="model.api_key"))!=null&&u.is_set)},o.value=p,r.value=[...new Set(m.map(y=>y.group).filter(Boolean))].sort()}catch(A){s.value=A.message}}),(d,u)=>(h(),C("div",null,[I(f(m3),{pillar:"tokens",title:"Settings",sub:"What is running, and how this looks."},{icon:w(()=>[I(f(mt),{class:"h-6 w-6"})]),actions:w(()=>[I(f(ge),{modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=A=>a.value=A),tabs:i.value,label:"Settings"},null,8,["modelValue","tabs"])]),_:1}),s.value?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(s.value),1)]),_:1})):P("",!0),a.value===Y5?(h(),C(n1,{key:1},[I(f(z1),{class:"mb-3 p-5"},{default:w(()=>[u[9]||(u[9]=b("h2",{class:"mb-3 font-semibold"},"This machine",-1)),l.value?(h(),C("dl",xh,[u[4]||(u[4]=b("dt",{class:"text-muted-foreground"},"Agent",-1)),b("dd",_h,N(l.value.version),1),u[5]||(u[5]=b("dt",{class:"text-muted-foreground"},"Indexer",-1)),b("dd",Ih,[U(N(l.value.core_url)+" ",1),I(f(c2),{variant:l.value.core_up?"success":"destructive",class:"ml-2"},{default:w(()=>[U(N(l.value.core_up?"answering":"not answering"),1)]),_:1},8,["variant"])]),u[6]||(u[6]=b("dt",{class:"text-muted-foreground"},"Starts",-1)),b("dd",Mh,[U(N(l.value.core_starts)+" ",1),l.value.core_starts>1?(h(),C("span",Eh," a number that keeps climbing is an indexer that keeps dying ")):P("",!0)]),l.value.last_exit?(h(),C(n1,{key:0},[u[1]||(u[1]=b("dt",{class:"text-muted-foreground"},"Last exit",-1)),b("dd",Dh,N(l.value.last_exit),1)],64)):P("",!0),u[7]||(u[7]=b("dt",{class:"text-muted-foreground"},"Folders read",-1)),b("dd",Zh,N(o.value.length),1),u[8]||(u[8]=b("dt",{class:"text-muted-foreground"},"Model",-1)),b("dd",Fh,[U(N(c.value)+" ",1),l.value.model&&l.value.keySet?(h(),G(f(c2),{key:0,variant:"success",class:"ml-2"},{default:w(()=>[...u[2]||(u[2]=[U("key set",-1)])]),_:1})):l.value.model?(h(),G(f(c2),{key:1,variant:"warning",class:"ml-2"},{default:w(()=>[...u[3]||(u[3]=[U("no key",-1)])]),_:1})):P("",!0)])])):P("",!0),u[10]||(u[10]=b("p",{class:"mt-4 text-xs text-muted-foreground"},[U(" Where the indexer comes from is chosen at install time and kept in "),b("code",{class:"font-mono"},"~/.sourceant/config.json"),U(". Nothing on this page has left this machine. ")],-1))]),_:1}),I(f(z1),{class:"p-5"},{default:w(()=>[u[11]||(u[11]=b("h2",{class:"mb-1 font-semibold"},"Appearance",-1)),u[12]||(u[12]=b("p",{class:"mb-4 text-sm text-muted-foreground"}," Kept in this browser, so it follows the screen rather than the machine. ",-1)),I(f(C1),{variant:"outline",onClick:f(n)},{default:w(()=>[(h(),G(k2(f(t)?f(xn):f(kn)),{class:"mr-2 h-4 w-4"})),U(" "+N(f(t)?"Light mode":"Dark mode"),1)]),_:1},8,["onClick"])]),_:1})],64)):a.value===P7?(h(),G(wh,{key:2})):(h(),G(f(z1),{key:3,class:"p-5"},{default:w(()=>[b("h2",Bh,N(a.value),1),a.value==="Model"?(h(),C("p",Sh," Reading a repository needs none of this. Anything that proposes or judges rather than reads does, and it stays off until you say which model to ask. ")):P("",!0),(h(),G(Dn,{key:a.value,group:a.value},null,8,["group"]))]),_:1}))]))}},Qh=vs({history:zr(),routes:[{path:"/",component:Ld},{path:"/graph",component:If},{path:"/knowledge",component:Kf},{path:"/reviews",component:L7},{path:"/reviews/:id",component:L7},{path:"/skills",component:ph},{path:"/skills/:id(.*)",component:sh},{path:"/repositories",component:Hf},{path:"/repositories/:name(.*)",component:cA},{path:"/settings",component:Rh},{path:"/:rest(.*)*",redirect:"/"}]});ur(Qd).use(Qh).mount("#app"); +The file is removed from ${m(y)}.`))try{await B1.forgetSkill(y.origin===te?"":o.value,y.origin,y.id),await p()}catch(F){r.value=F.message}}return q1(o,p),f2(async()=>{await s(),await p()}),(y,F)=>(h(),C("div",null,[M(f(m3),{pillar:"review",title:"Skills",sub:"What your work is read against: this repository's, this machine's, and your own."},{icon:x(()=>[M(f(kn),{class:"h-6 w-6"})]),actions:x(()=>[f(l).length>1?(h(),G(f(j2),{key:0,modelValue:f(o),"onUpdate:modelValue":F[0]||(F[0]=I=>n2(o)?o.value=I:null),size:"sm","aria-label":"Repository"},{default:x(()=>[(h(!0),C(n1,null,M1(f(l),I=>(h(),C("option",{key:I.name,value:I.name},Q(I.name),9,mh))),128))]),_:1},8,["modelValue"])):L("",!0),k("div",gh,[M(f(In),{class:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),M(f(U3),{modelValue:i.value,"onUpdate:modelValue":F[1]||(F[1]=I=>i.value=I),size:"sm",placeholder:"Find a skill",class:"w-48 pl-8","aria-label":"Find a skill"},null,8,["modelValue"])]),f(l).length?(h(),G(f(k1),{key:1,size:"sm",variant:"glow",onClick:F[2]||(F[2]=I=>f(n).push({path:"/skills/new",query:{for:f(o)}}))},{default:x(()=>[M(f(h3),{class:"mr-2 h-4 w-4"}),F[5]||(F[5]=J(" Write one down ",-1))]),_:1})):L("",!0)]),_:1}),f(r)?(h(),G(f(d2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[J(Q(f(r)),1)]),_:1})):L("",!0),f(l).length===0?(h(),G(g4,{key:1})):(h(),C(n1,{key:2},[M(f(X3),{modelValue:c.value,"onUpdate:modelValue":F[3]||(F[3]=I=>c.value=I),tabs:u,label:"Where they are kept",class:"mb-4"},null,8,["modelValue"]),d.value.length?(h(),C("div",vh,[(h(!0),C(n1,null,M1(d.value,I=>(h(),G(f(J3),{key:I.id,title:I.name,subtitle:I.path,pillar:"review",hover:"",class:"cursor-pointer",onClick:D=>f(n).push(`/skills/${I.id}`)},{icon:x(()=>[M(f(u4),{class:"h-5 w-5"})]),badges:x(()=>[M(f(u2),{variant:A(I)?"success":"outline"},{default:x(()=>[J(Q(m(I)),1)]),_:2},1032,["variant"])]),meta:x(()=>{var D;return[I.reviews===!0?(h(),C("span",bh,"always in reviews")):I.reviews===!1?(h(),C("span",kh,"not used in reviews")):I.automatic?L("",!0):(h(),C("span",Ch,"only when you invoke it")),(D=I.paths)!=null&&D.length?(h(),C("span",wh,Q(I.paths.join(" ")),1)):L("",!0)]}),actions:x(()=>[A(I)?(h(),G(f(k1),{key:0,variant:"ghost",size:"icon","aria-label":`Forget ${I.name}`,onClick:e4(D=>g(I),["stop"])},{default:x(()=>[M(f(m4),{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])):L("",!0)]),default:x(()=>[k("p",yh,Q(I.description),1)]),_:2},1032,["title","subtitle","onClick"]))),128))])):(h(),G(f(j1),{key:1,class:"p-10 text-center"},{default:x(()=>[M(f(u4),{class:"mx-auto mb-3 h-8 w-8 text-muted-foreground"}),F[7]||(F[7]=k("p",{class:"font-medium"},"Nothing written down here yet.",-1)),F[8]||(F[8]=k("p",{class:"mx-auto mt-1 max-w-lg text-sm text-muted-foreground"}," A skill says when it applies and what it says to do. Anything you have already taught Claude or Codex is read from their own folders, and anything your team committed is read from the repository. What you write here is kept beside the index rather than in anybody's checkout. ",-1)),M(f(k1),{class:"mt-4",variant:"glow",onClick:F[4]||(F[4]=I=>f(n).push({path:"/skills/new",query:{for:f(o)}}))},{default:x(()=>[M(f(h3),{class:"mr-2 h-4 w-4"}),F[6]||(F[6]=J(" Write one down ",-1))]),_:1})]),_:1}))],64))]))}},_h={class:"space-y-4"},Ih={class:"mb-3 flex flex-wrap items-center justify-between gap-2"},Mh={class:"font-mono text-sm text-muted-foreground"},Eh={class:"mb-2 flex flex-wrap items-center justify-between gap-2"},Dh={class:"overflow-x-auto rounded-md bg-muted/50 p-3 text-xs"},Zh={class:"mb-2 flex flex-wrap items-center justify-between gap-2"},Fh={class:"overflow-x-auto rounded-md bg-muted/50 p-3 text-xs"},Bh={__name:"McpPanel",setup(e){const t=j(""),n=j(null),l=j(""),o=t1(()=>window.location.origin),r=t1(()=>JSON.stringify({mcpServers:{sourceant:{command:"sourceant",args:["mcp"],env:{SOURCEANT_UI_URL:o.value}}}},null,2)),s=t1(()=>JSON.stringify({mcpServers:{sourceant:{type:"http",url:`${o.value}/mcp`}}},null,2));async function a(i,c){await navigator.clipboard.writeText(c),l.value=i,setTimeout(()=>l.value="",1500)}return f2(async()=>{t.value=`${o.value}/mcp`;try{const i=await fetch(t.value,{method:"GET"});n.value=i.status!==404}catch{n.value=!1}}),(i,c)=>(h(),C("div",_h,[M(f(j1),{class:"p-5"},{default:x(()=>[k("div",Ih,[c[2]||(c[2]=k("h2",{class:"font-semibold"},"Endpoint",-1)),M(f(vn),{label:n.value===null?"Checking":n.value?"Serving":"Not mounted",tone:n.value===null?"neutral":n.value?"success":"warning",busy:n.value===null},null,8,["label","tone","busy"])]),k("p",Mh,Q(t.value),1),n.value===!1?(h(),G(f(d2),{key:0,tone:"info",class:"mt-3"},{default:x(()=>[...c[3]||(c[3]=[J(" Nothing is mounted there. The HTTP endpoint is served when this machine is running in local mode; over stdio it needs no endpoint at all. ",-1)])]),_:1})):L("",!0)]),_:1}),M(f(j1),{class:"p-5"},{default:x(()=>[k("div",Eh,[c[4]||(c[4]=k("h2",{class:"font-semibold"},"Over stdio",-1)),M(f(k1),{size:"sm",variant:"outline",onClick:c[0]||(c[0]=u=>a("stdio",r.value))},{default:x(()=>[(h(),G(k2(l.value==="stdio"?f(me):f(mt)),{class:"mr-2 h-3.5 w-3.5"})),J(" "+Q(l.value==="stdio"?"Copied":"Copy"),1)]),_:1})]),c[5]||(c[5]=k("p",{class:"mb-3 text-sm text-muted-foreground"}," One process per client, started by the client. A review asked for this way is handed to this agent, so it finishes even after the client goes away. ",-1)),k("pre",Dh,[k("code",null,Q(r.value),1)])]),_:1}),M(f(j1),{class:"p-5"},{default:x(()=>[k("div",Zh,[c[6]||(c[6]=k("h2",{class:"font-semibold"},"Over HTTP",-1)),M(f(k1),{size:"sm",variant:"outline",onClick:c[1]||(c[1]=u=>a("http",s.value))},{default:x(()=>[(h(),G(k2(l.value==="http"?f(me):f(mt)),{class:"mr-2 h-3.5 w-3.5"})),J(" "+Q(l.value==="http"?"Copied":"Copy"),1)]),_:1})]),c[7]||(c[7]=k("p",{class:"mb-3 text-sm text-muted-foreground"}," One server, several clients. Reachable from this machine only. ",-1)),k("pre",Fh,[k("code",null,Q(s.value),1)])]),_:1})]))}},Sh={key:0,class:"grid gap-x-4 gap-y-2 text-sm sm:grid-cols-[auto_1fr]"},Rh={class:"font-mono"},Qh={class:"break-all font-mono"},Nh={class:"font-mono"},Kh={key:0,class:"ml-2 text-xs text-muted-foreground"},Gh={class:"break-all font-mono"},Oh={class:"font-mono"},$h={class:"font-mono"},Wh={class:"mb-1 font-semibold"},Lh={key:0,class:"mb-4 text-sm text-muted-foreground"},Y5="overview",Y7="mcp",Ph={__name:"Settings",setup(e){const{isDark:t,toggleTheme:n}=Fn(),l=j(null),o=j([]),r=j([]),s=j(""),a=j(Y5),i=t1(()=>[{id:Y5,label:"Overview"},...r.value.map(u=>({id:u,label:u})),{id:Y7,label:"MCP"}]),c=t1(()=>{var d;return((d=l.value)==null?void 0:d.model)||"None chosen"});return f2(async()=>{var u,d;try{const[A,m,p]=await Promise.all([B1.status(),B1.settings(),B1.repositories().catch(()=>[])]);l.value={...A,model:((u=m.find(g=>g.key==="model.name"))==null?void 0:u.value)??"",keySet:!!((d=m.find(g=>g.key==="model.api_key"))!=null&&d.is_set)},o.value=p,r.value=[...new Set(m.map(g=>g.group).filter(Boolean))].sort()}catch(A){s.value=A.message}}),(u,d)=>(h(),C("div",null,[M(f(m3),{pillar:"tokens",title:"Settings",sub:"What is running, and how this looks."},{icon:x(()=>[M(f(gt),{class:"h-6 w-6"})]),actions:x(()=>[M(f(X3),{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=A=>a.value=A),tabs:i.value,label:"Settings"},null,8,["modelValue","tabs"])]),_:1}),s.value?(h(),G(f(d2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[J(Q(s.value),1)]),_:1})):L("",!0),a.value===Y5?(h(),C(n1,{key:1},[M(f(j1),{class:"mb-3 p-5"},{default:x(()=>[d[9]||(d[9]=k("h2",{class:"mb-3 font-semibold"},"This machine",-1)),l.value?(h(),C("dl",Sh,[d[4]||(d[4]=k("dt",{class:"text-muted-foreground"},"Agent",-1)),k("dd",Rh,Q(l.value.version),1),d[5]||(d[5]=k("dt",{class:"text-muted-foreground"},"Indexer",-1)),k("dd",Qh,[J(Q(l.value.core_url)+" ",1),M(f(u2),{variant:l.value.core_up?"success":"destructive",class:"ml-2"},{default:x(()=>[J(Q(l.value.core_up?"answering":"not answering"),1)]),_:1},8,["variant"])]),d[6]||(d[6]=k("dt",{class:"text-muted-foreground"},"Starts",-1)),k("dd",Nh,[J(Q(l.value.core_starts)+" ",1),l.value.core_starts>1?(h(),C("span",Kh," a number that keeps climbing is an indexer that keeps dying ")):L("",!0)]),l.value.last_exit?(h(),C(n1,{key:0},[d[1]||(d[1]=k("dt",{class:"text-muted-foreground"},"Last exit",-1)),k("dd",Gh,Q(l.value.last_exit),1)],64)):L("",!0),d[7]||(d[7]=k("dt",{class:"text-muted-foreground"},"Folders read",-1)),k("dd",Oh,Q(o.value.length),1),d[8]||(d[8]=k("dt",{class:"text-muted-foreground"},"Model",-1)),k("dd",$h,[J(Q(c.value)+" ",1),l.value.model&&l.value.keySet?(h(),G(f(u2),{key:0,variant:"success",class:"ml-2"},{default:x(()=>[...d[2]||(d[2]=[J("key set",-1)])]),_:1})):l.value.model?(h(),G(f(u2),{key:1,variant:"warning",class:"ml-2"},{default:x(()=>[...d[3]||(d[3]=[J("no key",-1)])]),_:1})):L("",!0)])])):L("",!0),d[10]||(d[10]=k("p",{class:"mt-4 text-xs text-muted-foreground"},[J(" Where the indexer comes from is chosen at install time and kept in "),k("code",{class:"font-mono"},"~/.sourceant/config.json"),J(". Nothing on this page has left this machine. ")],-1))]),_:1}),M(f(j1),{class:"p-5"},{default:x(()=>[d[11]||(d[11]=k("h2",{class:"mb-1 font-semibold"},"Appearance",-1)),d[12]||(d[12]=k("p",{class:"mb-4 text-sm text-muted-foreground"}," Kept in this browser, so it follows the screen rather than the machine. ",-1)),M(f(k1),{variant:"outline",onClick:f(n)},{default:x(()=>[(h(),G(k2(f(t)?f(Mn):f(xn)),{class:"mr-2 h-4 w-4"})),J(" "+Q(f(t)?"Light mode":"Dark mode"),1)]),_:1},8,["onClick"])]),_:1})],64)):a.value===Y7?(h(),G(Bh,{key:2})):(h(),G(f(j1),{key:3,class:"p-5"},{default:x(()=>[k("h2",Wh,Q(a.value),1),a.value==="Model"?(h(),C("p",Lh," Reading a repository needs none of this. Anything that proposes or judges rather than reads does, and it stays off until you say which model to ask. ")):L("",!0),(h(),G(Bn,{key:a.value,group:a.value},null,8,["group"]))]),_:1}))]))}},Th=ws({history:ts(),routes:[{path:"/",component:Jd},{path:"/graph",component:Qf},{path:"/knowledge",component:Yf},{path:"/reviews",component:H7},{path:"/reviews/:id",component:H7},{path:"/skills",component:xh},{path:"/skills/:id(.*)",component:ph},{path:"/repositories",component:qf},{path:"/repositories/:name(.*)",component:vA},{path:"/settings",component:Ph},{path:"/:rest(.*)*",redirect:"/"}]});pr(Ld).use(Th).mount("#app");export{n1 as F,j2 as _,k as a,J as b,C as c,M as d,x as e,k1 as f,G as g,L as h,d2 as i,j,B1 as k,t1 as l,c1 as n,h as o,M1 as r,Q as t,f as u,q1 as w}; diff --git a/internal/ui/assets/index.html b/internal/ui/assets/index.html index bb15d90..cff87d0 100644 --- a/internal/ui/assets/index.html +++ b/internal/ui/assets/index.html @@ -5,8 +5,8 @@ SourceAnt - - + +
diff --git a/ui/src/api.js b/ui/src/api.js index 7830fc8..981e6c7 100644 --- a/ui/src/api.js +++ b/ui/src/api.js @@ -17,6 +17,8 @@ const query = (values) => export const api = { status: () => call('/health'), + architecture: (repository, depth = 1) => call(`/api/architecture?${query({ repository, depth })}`), + compareArchitecture: (baseline) => call('/api/architecture/compare', { method: 'POST', body: JSON.stringify(baseline) }), repositories: () => call('/api/repositories'), addRepository: (path, name) => @@ -37,8 +39,8 @@ export const api = { * time, and is also the shortest list of files worth reading first. */ attention: (repository) => call(`/api/attention?${query({ repository })}`), - graph: (repository, { includeTests = false, pathPrefix = '' } = {}) => - call(`/api/graph?${query({ repository, include_tests: includeTests, path_prefix: pathPrefix })}`), + graph: (repository, { includeTests = false, pathPrefix = '', focus = '', depth, q = '' } = {}) => + call(`/api/graph?${query({ repository, include_tests: includeTests, path_prefix: pathPrefix, focus, depth, q })}`), knowledge: (repository) => call(`/api/knowledge?${query({ repository, limit: 100 })}`), recordKnowledge: (item) => diff --git a/ui/src/components/Architecture.vue b/ui/src/components/Architecture.vue new file mode 100644 index 0000000..ded5566 --- /dev/null +++ b/ui/src/components/Architecture.vue @@ -0,0 +1,139 @@ + + + diff --git a/ui/src/pages/Graph.vue b/ui/src/pages/Graph.vue index d3a049c..7fbbae6 100644 --- a/ui/src/pages/Graph.vue +++ b/ui/src/pages/Graph.vue @@ -1,12 +1,14 @@