From 30df20c48d82ad0fd61d1e68d6f661a3363dbafb Mon Sep 17 00:00:00 2001 From: Jakub Zych Date: Tue, 6 Oct 2026 18:14:24 +0200 Subject: [PATCH] feat(02-01): gate the public presentation path - 404 /_presentations before the SPA shell - serve /prezentacje/{slugHash} only when presentations is active - rebuild the embedded student app --- .../assets/{CourseView-CS3LyBRp.js => CourseView-BrtQf6Ix.js} | 2 +- .../{CoursesView-BmmjRNCQ.js => CoursesView-CSNtxDFY.js} | 2 +- .../{DashboardView-Bbpchoxb.js => DashboardView-Dfvs0M8g.js} | 2 +- .../{DeadlinesView-BlxBIb-a.js => DeadlinesView-QfLdRQAY.js} | 2 +- ...lectiveBar.vue_vue_type_script_setup_true_lang-DalXwVxD.js} | 2 +- .../assets/{ForgotView-Cs41d0Vc.js => ForgotView-3wxOP3D0.js} | 2 +- ... LoadState.vue_vue_type_script_setup_true_lang-Bzg7dKHt.js} | 2 +- public/assets/{LoginView-CV0vWG8v.js => LoginView-CHeK-5Bc.js} | 2 +- .../{MaterialView-C-GKgARj.js => MaterialView-Cks1ThSX.js} | 2 +- .../{MaterialsView-DLRl9uuu.js => MaterialsView-q7P-jkv-.js} | 2 +- public/assets/{MoreView-DCK1_hNZ.js => MoreView-DOB3EP92.js} | 2 +- .../{NotFoundView-ymGOdYTB.js => NotFoundView-DmCjuaxt.js} | 2 +- ...> PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js} | 2 +- public/assets/PresentationPublicView-C_hYF7I1.js | 1 + public/assets/PresentationPublicView-Cfps4bfr.css | 1 + .../{ProfileView-CpeFz2WO.js => ProfileView--Mea7hJf.js} | 2 +- public/assets/{QuizView-CF18K_CT.js => QuizView-Tr8Ule5Q.js} | 2 +- .../{QuizzesView-BOuyfpUe.js => QuizzesView-CV2z8jhd.js} | 2 +- ...eadingItem.vue_vue_type_script_setup_true_lang-BHoX7Hou.js} | 2 +- .../{ReadingsView-dREpHSZ_.js => ReadingsView-B-MVj8QM.js} | 2 +- .../{RegisterView-D0r589HT.js => RegisterView-dAhzOEz2.js} | 2 +- public/assets/{ResetView-BQnpRsQD.js => ResetView-B6S5Obs5.js} | 2 +- .../{ScheduleView-DRXKDOhJ.js => ScheduleView-BzYdpyrd.js} | 2 +- public/assets/{forms-wljlKyMv.js => forms-Baj3w_Pg.js} | 2 +- public/assets/index-Bm0qbefx.js | 3 +++ public/assets/index-D5YFSKUV.js | 3 --- public/assets/{quizzes-C4a6BQv2.js => quizzes-G41zxwRD.js} | 2 +- public/index.html | 2 +- routes.go | 3 +++ static.go | 2 +- 30 files changed, 33 insertions(+), 28 deletions(-) rename public/assets/{CourseView-CS3LyBRp.js => CourseView-BrtQf6Ix.js} (95%) rename public/assets/{CoursesView-BmmjRNCQ.js => CoursesView-CSNtxDFY.js} (90%) rename public/assets/{DashboardView-Bbpchoxb.js => DashboardView-Dfvs0M8g.js} (95%) rename public/assets/{DeadlinesView-BlxBIb-a.js => DeadlinesView-QfLdRQAY.js} (89%) rename public/assets/{ElectiveBar.vue_vue_type_script_setup_true_lang-DoecCJhC.js => ElectiveBar.vue_vue_type_script_setup_true_lang-DalXwVxD.js} (93%) rename public/assets/{ForgotView-Cs41d0Vc.js => ForgotView-3wxOP3D0.js} (92%) rename public/assets/{LoadState.vue_vue_type_script_setup_true_lang-CkJKaMnT.js => LoadState.vue_vue_type_script_setup_true_lang-Bzg7dKHt.js} (90%) rename public/assets/{LoginView-CV0vWG8v.js => LoginView-CHeK-5Bc.js} (94%) rename public/assets/{MaterialView-C-GKgARj.js => MaterialView-Cks1ThSX.js} (94%) rename public/assets/{MaterialsView-DLRl9uuu.js => MaterialsView-q7P-jkv-.js} (97%) rename public/assets/{MoreView-DCK1_hNZ.js => MoreView-DOB3EP92.js} (84%) rename public/assets/{NotFoundView-ymGOdYTB.js => NotFoundView-DmCjuaxt.js} (74%) rename public/assets/{PageHead.vue_vue_type_script_setup_true_lang-CmzkJbRP.js => PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js} (84%) create mode 100644 public/assets/PresentationPublicView-C_hYF7I1.js create mode 100644 public/assets/PresentationPublicView-Cfps4bfr.css rename public/assets/{ProfileView-CpeFz2WO.js => ProfileView--Mea7hJf.js} (98%) rename public/assets/{QuizView-CF18K_CT.js => QuizView-Tr8Ule5Q.js} (97%) rename public/assets/{QuizzesView-BOuyfpUe.js => QuizzesView-CV2z8jhd.js} (86%) rename public/assets/{ReadingItem.vue_vue_type_script_setup_true_lang-BEpVkt6V.js => ReadingItem.vue_vue_type_script_setup_true_lang-BHoX7Hou.js} (93%) rename public/assets/{ReadingsView-dREpHSZ_.js => ReadingsView-B-MVj8QM.js} (91%) rename public/assets/{RegisterView-D0r589HT.js => RegisterView-dAhzOEz2.js} (98%) rename public/assets/{ResetView-BQnpRsQD.js => ResetView-B6S5Obs5.js} (97%) rename public/assets/{ScheduleView-DRXKDOhJ.js => ScheduleView-BzYdpyrd.js} (94%) rename public/assets/{forms-wljlKyMv.js => forms-Baj3w_Pg.js} (85%) create mode 100644 public/assets/index-Bm0qbefx.js delete mode 100644 public/assets/index-D5YFSKUV.js rename public/assets/{quizzes-C4a6BQv2.js => quizzes-G41zxwRD.js} (96%) diff --git a/public/assets/CourseView-CS3LyBRp.js b/public/assets/CourseView-BrtQf6Ix.js similarity index 95% rename from public/assets/CourseView-CS3LyBRp.js rename to public/assets/CourseView-BrtQf6Ix.js index 652ac5c..23c114c 100644 --- a/public/assets/CourseView-CS3LyBRp.js +++ b/public/assets/CourseView-BrtQf6Ix.js @@ -1 +1 @@ -import{_ as N}from"./PageHead.vue_vue_type_script_setup_true_lang-CmzkJbRP.js";import{_ as R}from"./LoadState.vue_vue_type_script_setup_true_lang-CkJKaMnT.js";import{_ as B}from"./ReadingItem.vue_vue_type_script_setup_true_lang-BEpVkt6V.js";import{d as D,p as S,q as V,A as q,c as a,h as m,i as y,r as T,E as A,G as F,o as t,F as r,b as d,m as z,a as e,t as n,e as i,y as p,s as f,k as M,x as j,B as C}from"./index-D5YFSKUV.js";import{F as P,b as O,a as $,T as Z,c as G}from"./format-bcE-cYHJ.js";const K={class:"card"},W={style:{margin:"0",display:"grid","grid-template-columns":"auto 1fr",gap:"4px 16px"}},Y={style:{margin:"0"}},H={style:{margin:"0"},class:"mono small"},I={style:{margin:"0"}},J={style:{margin:"0"}},Q={key:0,style:{margin:"10px 0 0"}},U={key:1,style:{margin:"10px 0 0"}},X=["href"],ee={class:"section","aria-labelledby":"sess-h"},se={class:"section-head"},te={class:"muted small"},ae={key:0,class:"rows"},le={class:"row-main"},oe={class:"title"},ne={class:"when"},ie={class:"muted small"},re={key:0},de={key:1,class:"badge online",style:{"margin-left":"6px"}},ue={key:2,class:"badge onsite",style:{"margin-left":"6px"}},_e={key:3},ce={key:1,class:"empty"},me={class:"section","aria-labelledby":"read-h"},ye={class:"section-head"},pe={class:"muted small"},ge={class:"rows"},ve={class:"rows"},he={key:1,class:"empty"},ke={class:"section","aria-labelledby":"mat-h"},fe={class:"section-head"},be={class:"muted small"},we={key:0,class:"rows"},xe={class:"muted small"},Be={class:"badge"},Te={key:0},ze={key:1,class:"empty"},Re=D({__name:"CourseView",props:{id:{}},setup(E){const g=E,c=S(),l=T(null),v=T("");async function h(){l.value=null,v.value="";try{l.value=await A.course(Number(g.id))}catch(u){v.value=F(u)}}V(()=>{h(),c.loadReadings()}),q(()=>g.id,()=>{h()});const _=f(()=>c.allReadings.filter(u=>u.course_id===Number(g.id))),b=f(()=>_.value.filter(u=>u.is_required)),w=f(()=>_.value.filter(u=>!u.is_required)),L=Date.now();return(u,o)=>{const x=M("router-link");return t(),a("div",null,[m(R,{ready:!!l.value,error:v.value,onRetry:o[0]||(o[0]=s=>h())},{default:y(()=>[l.value?(t(),a(r,{key:0},[m(N,{eyebrow:`${d(P)[l.value.form]} · semestr ${l.value.semester}`,title:l.value.name},{default:y(()=>[m(x,{class:"btn small ghost",to:"/przedmioty"},{default:y(()=>[...o[1]||(o[1]=[z("← Przedmioty",-1)])]),_:1})]),_:1},8,["eyebrow","title"]),e("section",K,[e("dl",W,[l.value.lecturer?(t(),a(r,{key:0},[o[2]||(o[2]=e("dt",{class:"muted"},"Prowadzący",-1)),e("dd",Y,n(l.value.lecturer),1)],64)):i("",!0),l.value.code?(t(),a(r,{key:1},[o[3]||(o[3]=e("dt",{class:"muted"},"Kod",-1)),e("dd",H,n(l.value.code),1)],64)):i("",!0),l.value.ects?(t(),a(r,{key:2},[o[4]||(o[4]=e("dt",{class:"muted"},"ECTS",-1)),e("dd",I,n(l.value.ects),1)],64)):i("",!0),l.value.assessment?(t(),a(r,{key:3},[o[5]||(o[5]=e("dt",{class:"muted"},"Zaliczenie",-1)),e("dd",J,n(l.value.assessment),1)],64)):i("",!0),l.value.elective_group?(t(),a(r,{key:4},[o[6]||(o[6]=e("dt",{class:"muted"},"Wybór",-1)),o[7]||(o[7]=e("dd",{style:{margin:"0"}},[e("span",{class:"badge alert"},"do wyboru")],-1))],64)):i("",!0)]),l.value.description?(t(),a("p",Q,n(l.value.description),1)):i("",!0),l.value.syllabus_url?(t(),a("p",U,[e("a",{href:l.value.syllabus_url,target:"_blank",rel:"noopener noreferrer"},"Sylabus",8,X)])):i("",!0)]),e("section",ee,[e("div",se,[o[8]||(o[8]=e("h2",{id:"sess-h"},"Zajęcia",-1)),e("span",te,n(l.value.sessions.length),1)]),l.value.sessions.length?(t(),a("ul",ae,[(t(!0),a(r,null,p(l.value.sessions,s=>(t(),a("li",{key:s.id,class:j({past:Date.parse(s.ends_at)s.read_at).length)+"/"+n(_.value.length),1)]),_.value.length?(t(),a(r,{key:0},[b.value.length?(t(),a(r,{key:0},[o[10]||(o[10]=e("h3",{class:"subhead"},"Obowiązkowe",-1)),e("ul",ge,[(t(!0),a(r,null,p(b.value,s=>(t(),C(B,{key:s.id,reading:s,onToggle:k=>d(c).toggleReading(s.id,k)},null,8,["reading","onToggle"]))),128))])],64)):i("",!0),w.value.length?(t(),a(r,{key:1},[o[11]||(o[11]=e("h3",{class:"subhead"},"Dodatkowe",-1)),e("ul",ve,[(t(!0),a(r,null,p(w.value,s=>(t(),C(B,{key:s.id,reading:s,onToggle:k=>d(c).toggleReading(s.id,k)},null,8,["reading","onToggle"]))),128))])],64)):i("",!0)],64)):(t(),a("p",he,"Brak lektur."))]),e("section",ke,[e("div",fe,[o[12]||(o[12]=e("h2",{id:"mat-h"},"Materiały",-1)),e("span",be,n(l.value.materials.length),1)]),l.value.materials.length?(t(),a("ul",we,[(t(!0),a(r,null,p(l.value.materials,s=>(t(),a("li",{key:s.id},[m(x,{to:`/materialy/${s.id}`,class:"title"},{default:y(()=>[z(n(s.title),1)]),_:2},1032,["to"]),e("div",xe,[e("span",Be,n(d(Z)[s.type]),1),s.files_count?(t(),a("span",Te," · "+n(d(G)(s.files_count,"plik","pliki","plików")),1)):i("",!0)])]))),128))])):(t(),a("p",ze,"Brak materiałów."))])],64)):i("",!0)]),_:1},8,["ready","error"])])}}});export{Re as default}; +import{_ as N}from"./PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js";import{_ as R}from"./LoadState.vue_vue_type_script_setup_true_lang-Bzg7dKHt.js";import{_ as B}from"./ReadingItem.vue_vue_type_script_setup_true_lang-BHoX7Hou.js";import{d as D,p as S,q as V,A as q,c as a,h as m,i as y,r as T,E as A,G as F,o as t,F as r,b as d,m as z,a as e,t as n,e as i,y as p,s as f,k as M,x as j,B as C}from"./index-Bm0qbefx.js";import{F as P,b as O,a as $,T as Z,c as G}from"./format-bcE-cYHJ.js";const K={class:"card"},W={style:{margin:"0",display:"grid","grid-template-columns":"auto 1fr",gap:"4px 16px"}},Y={style:{margin:"0"}},H={style:{margin:"0"},class:"mono small"},I={style:{margin:"0"}},J={style:{margin:"0"}},Q={key:0,style:{margin:"10px 0 0"}},U={key:1,style:{margin:"10px 0 0"}},X=["href"],ee={class:"section","aria-labelledby":"sess-h"},se={class:"section-head"},te={class:"muted small"},ae={key:0,class:"rows"},le={class:"row-main"},oe={class:"title"},ne={class:"when"},ie={class:"muted small"},re={key:0},de={key:1,class:"badge online",style:{"margin-left":"6px"}},ue={key:2,class:"badge onsite",style:{"margin-left":"6px"}},_e={key:3},ce={key:1,class:"empty"},me={class:"section","aria-labelledby":"read-h"},ye={class:"section-head"},pe={class:"muted small"},ge={class:"rows"},ve={class:"rows"},he={key:1,class:"empty"},ke={class:"section","aria-labelledby":"mat-h"},fe={class:"section-head"},be={class:"muted small"},we={key:0,class:"rows"},xe={class:"muted small"},Be={class:"badge"},Te={key:0},ze={key:1,class:"empty"},Re=D({__name:"CourseView",props:{id:{}},setup(E){const g=E,c=S(),l=T(null),v=T("");async function h(){l.value=null,v.value="";try{l.value=await A.course(Number(g.id))}catch(u){v.value=F(u)}}V(()=>{h(),c.loadReadings()}),q(()=>g.id,()=>{h()});const _=f(()=>c.allReadings.filter(u=>u.course_id===Number(g.id))),b=f(()=>_.value.filter(u=>u.is_required)),w=f(()=>_.value.filter(u=>!u.is_required)),L=Date.now();return(u,o)=>{const x=M("router-link");return t(),a("div",null,[m(R,{ready:!!l.value,error:v.value,onRetry:o[0]||(o[0]=s=>h())},{default:y(()=>[l.value?(t(),a(r,{key:0},[m(N,{eyebrow:`${d(P)[l.value.form]} · semestr ${l.value.semester}`,title:l.value.name},{default:y(()=>[m(x,{class:"btn small ghost",to:"/przedmioty"},{default:y(()=>[...o[1]||(o[1]=[z("← Przedmioty",-1)])]),_:1})]),_:1},8,["eyebrow","title"]),e("section",K,[e("dl",W,[l.value.lecturer?(t(),a(r,{key:0},[o[2]||(o[2]=e("dt",{class:"muted"},"Prowadzący",-1)),e("dd",Y,n(l.value.lecturer),1)],64)):i("",!0),l.value.code?(t(),a(r,{key:1},[o[3]||(o[3]=e("dt",{class:"muted"},"Kod",-1)),e("dd",H,n(l.value.code),1)],64)):i("",!0),l.value.ects?(t(),a(r,{key:2},[o[4]||(o[4]=e("dt",{class:"muted"},"ECTS",-1)),e("dd",I,n(l.value.ects),1)],64)):i("",!0),l.value.assessment?(t(),a(r,{key:3},[o[5]||(o[5]=e("dt",{class:"muted"},"Zaliczenie",-1)),e("dd",J,n(l.value.assessment),1)],64)):i("",!0),l.value.elective_group?(t(),a(r,{key:4},[o[6]||(o[6]=e("dt",{class:"muted"},"Wybór",-1)),o[7]||(o[7]=e("dd",{style:{margin:"0"}},[e("span",{class:"badge alert"},"do wyboru")],-1))],64)):i("",!0)]),l.value.description?(t(),a("p",Q,n(l.value.description),1)):i("",!0),l.value.syllabus_url?(t(),a("p",U,[e("a",{href:l.value.syllabus_url,target:"_blank",rel:"noopener noreferrer"},"Sylabus",8,X)])):i("",!0)]),e("section",ee,[e("div",se,[o[8]||(o[8]=e("h2",{id:"sess-h"},"Zajęcia",-1)),e("span",te,n(l.value.sessions.length),1)]),l.value.sessions.length?(t(),a("ul",ae,[(t(!0),a(r,null,p(l.value.sessions,s=>(t(),a("li",{key:s.id,class:j({past:Date.parse(s.ends_at)s.read_at).length)+"/"+n(_.value.length),1)]),_.value.length?(t(),a(r,{key:0},[b.value.length?(t(),a(r,{key:0},[o[10]||(o[10]=e("h3",{class:"subhead"},"Obowiązkowe",-1)),e("ul",ge,[(t(!0),a(r,null,p(b.value,s=>(t(),C(B,{key:s.id,reading:s,onToggle:k=>d(c).toggleReading(s.id,k)},null,8,["reading","onToggle"]))),128))])],64)):i("",!0),w.value.length?(t(),a(r,{key:1},[o[11]||(o[11]=e("h3",{class:"subhead"},"Dodatkowe",-1)),e("ul",ve,[(t(!0),a(r,null,p(w.value,s=>(t(),C(B,{key:s.id,reading:s,onToggle:k=>d(c).toggleReading(s.id,k)},null,8,["reading","onToggle"]))),128))])],64)):i("",!0)],64)):(t(),a("p",he,"Brak lektur."))]),e("section",ke,[e("div",fe,[o[12]||(o[12]=e("h2",{id:"mat-h"},"Materiały",-1)),e("span",be,n(l.value.materials.length),1)]),l.value.materials.length?(t(),a("ul",we,[(t(!0),a(r,null,p(l.value.materials,s=>(t(),a("li",{key:s.id},[m(x,{to:`/materialy/${s.id}`,class:"title"},{default:y(()=>[z(n(s.title),1)]),_:2},1032,["to"]),e("div",xe,[e("span",Be,n(d(Z)[s.type]),1),s.files_count?(t(),a("span",Te," · "+n(d(G)(s.files_count,"plik","pliki","plików")),1)):i("",!0)])]))),128))])):(t(),a("p",ze,"Brak materiałów."))])],64)):i("",!0)]),_:1},8,["ready","error"])])}}});export{Re as default}; diff --git a/public/assets/CoursesView-BmmjRNCQ.js b/public/assets/CoursesView-CSNtxDFY.js similarity index 90% rename from public/assets/CoursesView-BmmjRNCQ.js rename to public/assets/CoursesView-CSNtxDFY.js index 358745a..ea68826 100644 --- a/public/assets/CoursesView-BmmjRNCQ.js +++ b/public/assets/CoursesView-CSNtxDFY.js @@ -1 +1 @@ -import{_ as C}from"./PageHead.vue_vue_type_script_setup_true_lang-CmzkJbRP.js";import{_ as w}from"./LoadState.vue_vue_type_script_setup_true_lang-CkJKaMnT.js";import{_ as B}from"./ElectiveBar.vue_vue_type_script_setup_true_lang-DoecCJhC.js";import{d as z,p as $,C as x,q as S,c as t,h as m,i as k,b as r,o as s,a as o,F as c,y as v,e as n,r as V,s as h,k as E,t as a,B as F,D as N,m as _}from"./index-D5YFSKUV.js";import{F as j,c as f}from"./format-bcE-cYHJ.js";const L={key:0,class:"chips",role:"group","aria-label":"Semestr"},D=["aria-pressed"],M=["aria-pressed","onClick"],P={key:1,class:"stack",style:{"margin-top":"10px"}},R={class:"row-main"},T={class:"badge"},q={class:"muted small",style:{margin:"0 0 6px"}},A={key:0},O={key:1},U={key:2},W={class:"small",style:{margin:"0"}},G={key:0,class:"badge alert"},H={class:"muted"},I={key:2,class:"empty"},se=z({__name:"CoursesView",setup(J){const i=$(),g=x(),l=V(null);S(()=>{i.loadCourses()});const p=h(()=>[...new Set((i.courses??[]).map(u=>u.semester))].sort((u,d)=>u-d)),y=h(()=>i.visibleCourses.filter(u=>l.value===null||u.semester===l.value));return(u,d)=>{const b=E("router-link");return s(),t("div",null,[m(C,{eyebrow:"Program studiów",title:"Przedmioty"}),m(w,{ready:r(i).loaded.courses,error:r(i).error,onRetry:d[1]||(d[1]=e=>r(i).retry())},{default:k(()=>[m(B),p.value.length>1?(s(),t("div",L,[o("button",{class:"chip",type:"button","aria-pressed":l.value===null,onClick:d[0]||(d[0]=e=>l.value=null)},"Wszystkie",8,D),(s(!0),t(c,null,v(p.value,e=>(s(),t("button",{key:e,class:"chip",type:"button","aria-pressed":l.value===e,onClick:K=>l.value=e},"Semestr "+a(e),9,M))),128))])):n("",!0),y.value.length?(s(),t("div",P,[(s(!0),t(c,null,v(y.value,e=>(s(),F(b,{key:e.id,to:`/przedmioty/${e.id}`,class:"card link"},{default:k(()=>[o("div",R,[o("h3",null,a(e.name),1),o("span",T,a(r(j)[e.form]),1)]),o("p",q,[e.lecturer?(s(),t("span",A,a(e.lecturer),1)):n("",!0),e.ects?(s(),t("span",O," · "+a(e.ects)+" ECTS",1)):n("",!0),e.assessment?(s(),t("span",U," · "+a(e.assessment),1)):n("",!0)]),o("p",W,[r(N)(e,r(g).choices)?(s(),t("span",G,"do wyboru")):n("",!0),o("span",H,[_(a(r(f)(e.counts.sessions,"zajęcia","zajęcia","zajęć")),1),e.counts.readings?(s(),t(c,{key:0},[_(" · lektury "+a(e.counts.readings_read)+"/"+a(e.counts.readings),1)],64)):n("",!0),e.counts.materials?(s(),t(c,{key:1},[_(" · "+a(r(f)(e.counts.materials,"materiał","materiały","materiałów")),1)],64)):n("",!0)])])]),_:2},1032,["to"]))),128))])):(s(),t("p",I,"Brak przedmiotów."))]),_:1},8,["ready","error"])])}}});export{se as default}; +import{_ as C}from"./PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js";import{_ as w}from"./LoadState.vue_vue_type_script_setup_true_lang-Bzg7dKHt.js";import{_ as B}from"./ElectiveBar.vue_vue_type_script_setup_true_lang-DalXwVxD.js";import{d as z,p as $,C as x,q as S,c as t,h as m,i as k,b as r,o as s,a as o,F as c,y as v,e as n,r as V,s as h,k as E,t as a,B as F,D as N,m as _}from"./index-Bm0qbefx.js";import{F as j,c as f}from"./format-bcE-cYHJ.js";const L={key:0,class:"chips",role:"group","aria-label":"Semestr"},D=["aria-pressed"],M=["aria-pressed","onClick"],P={key:1,class:"stack",style:{"margin-top":"10px"}},R={class:"row-main"},T={class:"badge"},q={class:"muted small",style:{margin:"0 0 6px"}},A={key:0},O={key:1},U={key:2},W={class:"small",style:{margin:"0"}},G={key:0,class:"badge alert"},H={class:"muted"},I={key:2,class:"empty"},se=z({__name:"CoursesView",setup(J){const i=$(),g=x(),l=V(null);S(()=>{i.loadCourses()});const p=h(()=>[...new Set((i.courses??[]).map(u=>u.semester))].sort((u,d)=>u-d)),y=h(()=>i.visibleCourses.filter(u=>l.value===null||u.semester===l.value));return(u,d)=>{const b=E("router-link");return s(),t("div",null,[m(C,{eyebrow:"Program studiów",title:"Przedmioty"}),m(w,{ready:r(i).loaded.courses,error:r(i).error,onRetry:d[1]||(d[1]=e=>r(i).retry())},{default:k(()=>[m(B),p.value.length>1?(s(),t("div",L,[o("button",{class:"chip",type:"button","aria-pressed":l.value===null,onClick:d[0]||(d[0]=e=>l.value=null)},"Wszystkie",8,D),(s(!0),t(c,null,v(p.value,e=>(s(),t("button",{key:e,class:"chip",type:"button","aria-pressed":l.value===e,onClick:K=>l.value=e},"Semestr "+a(e),9,M))),128))])):n("",!0),y.value.length?(s(),t("div",P,[(s(!0),t(c,null,v(y.value,e=>(s(),F(b,{key:e.id,to:`/przedmioty/${e.id}`,class:"card link"},{default:k(()=>[o("div",R,[o("h3",null,a(e.name),1),o("span",T,a(r(j)[e.form]),1)]),o("p",q,[e.lecturer?(s(),t("span",A,a(e.lecturer),1)):n("",!0),e.ects?(s(),t("span",O," · "+a(e.ects)+" ECTS",1)):n("",!0),e.assessment?(s(),t("span",U," · "+a(e.assessment),1)):n("",!0)]),o("p",W,[r(N)(e,r(g).choices)?(s(),t("span",G,"do wyboru")):n("",!0),o("span",H,[_(a(r(f)(e.counts.sessions,"zajęcia","zajęcia","zajęć")),1),e.counts.readings?(s(),t(c,{key:0},[_(" · lektury "+a(e.counts.readings_read)+"/"+a(e.counts.readings),1)],64)):n("",!0),e.counts.materials?(s(),t(c,{key:1},[_(" · "+a(r(f)(e.counts.materials,"materiał","materiały","materiałów")),1)],64)):n("",!0)])])]),_:2},1032,["to"]))),128))])):(s(),t("p",I,"Brak przedmiotów."))]),_:1},8,["ready","error"])])}}});export{se as default}; diff --git a/public/assets/DashboardView-Bbpchoxb.js b/public/assets/DashboardView-Dfvs0M8g.js similarity index 95% rename from public/assets/DashboardView-Bbpchoxb.js rename to public/assets/DashboardView-Dfvs0M8g.js index 68fa7b6..1196cd2 100644 --- a/public/assets/DashboardView-Bbpchoxb.js +++ b/public/assets/DashboardView-Dfvs0M8g.js @@ -1 +1 @@ -import{_ as S}from"./PageHead.vue_vue_type_script_setup_true_lang-CmzkJbRP.js";import{_ as R}from"./LoadState.vue_vue_type_script_setup_true_lang-CkJKaMnT.js";import{_ as $}from"./ElectiveBar.vue_vue_type_script_setup_true_lang-DoecCJhC.js";import{d as F,u as P,p as V,q as E,c as o,h as u,i as p,b as i,r as M,s as d,o as n,x as b,a as e,t as a,m,e as v,F as j,y as D,z as A,k as Z}from"./index-D5YFSKUV.js";import{f as I,m as T,r as q,c as C,a as N,b as K,F as O,d as Q,e as U,K as W,g as G}from"./format-bcE-cYHJ.js";const H={class:"eyebrow"},J={id:"meeting-h",style:{margin:"4px 0 6px"}},X={style:{margin:"0 0 6px"}},Y={key:0,class:"muted small",style:{margin:"0 0 6px"}},ee={key:1,class:"muted small",style:{margin:"0 0 8px"}},se={key:1,class:"card"},ae={class:"grid-2 section"},te={"aria-labelledby":"next-h"},le={class:"section-head"},oe={key:0,class:"rows"},ne={class:"row-main"},ie={class:"title"},re={class:"when"},de={class:"muted small"},ue={key:0,class:"badge online"},me={key:1,class:"badge onsite"},ce={key:1,class:"empty"},_e={"aria-labelledby":"dl-h"},pe={class:"section-head"},ye={key:0,class:"rows"},ve={class:"row-main"},he={class:"title"},ze={class:"muted small"},ge={key:0},be={key:1,class:"empty"},ke={class:"grid-2 section"},we={class:"card","aria-labelledby":"read-h"},fe={style:{margin:"0 0 8px"}},xe={class:"big-num"},je={class:"muted"},De=["aria-valuenow"],Te={class:"muted small",style:{margin:"8px 0 10px"}},qe={class:"card","aria-labelledby":"quiz-h"},$e=F({__name:"DashboardView",setup(Ce){const k=P(),l=V(),_=M(new Date);E(()=>{_.value=new Date,Promise.all([l.loadDashboard(),l.loadCourses(),l.loadSchedule(),l.loadDeadlines(),l.loadReadings()])});const B=d(()=>l.loaded.schedule&&l.loaded.courses&&l.loaded.readings&&l.loaded.deadlines&&l.loaded.dashboard),r=d(()=>l.dashboard?.current_meeting??l.dashboard?.next_meeting??null),z=d(()=>!!l.dashboard?.current_meeting),g=d(()=>G(r.value?.notes)),w=d(()=>l.schedule.filter(h=>Date.parse(h.ends_at)>_.value.getTime()).slice(0,5)),f=d(()=>l.deadlines.filter(h=>Date.parse(h.due_at)>=_.value.getTime()).slice(0,5)),c=d(()=>l.readingStats),x=d(()=>c.value.requiredTotal?Math.round(c.value.requiredRead/c.value.requiredTotal*100):0),L=d(()=>k.user?.name?`Cześć, ${k.user.name}`:"Pulpit");return(h,s)=>{const y=Z("router-link");return n(),o("div",null,[u(S,{eyebrow:"Pulpit",title:L.value},null,8,["title"]),u(R,{ready:B.value,error:i(l).error,onRetry:s[0]||(s[0]=t=>i(l).retry())},{default:p(()=>[u($),r.value?(n(),o("section",{key:0,class:b(["card accent",{hl:z.value}]),"aria-labelledby":"meeting-h"},[e("span",H,a(z.value?"Trwa zjazd":"Najbliższy zjazd"),1),e("h2",J,"Zjazd "+a(r.value.number),1),e("p",X,[m(a(i(I)(r.value.starts_on,r.value.ends_on))+" ",1),g.value?(n(),o("span",{key:0,class:b(["badge",g.value==="online"?"online":"onsite"]),style:{"margin-left":"6px"}},a(g.value),3)):v("",!0)]),i(T)(r.value.notes)?(n(),o("p",Y,a(i(T)(r.value.notes)),1)):v("",!0),z.value?v("",!0):(n(),o("p",ee,a(i(q)(`${r.value.starts_on}T12:00:00+02:00`,_.value))+" · "+a(i(C)(r.value.sessions_count,"zajęcia","zajęcia","zajęć")),1)),u(y,{class:"btn small",to:{name:"schedule",query:{zjazd:r.value.number}}},{default:p(()=>[...s[1]||(s[1]=[m("Zobacz plan zjazdu",-1)])]),_:1},8,["to"])],2)):(n(),o("section",se,[...s[2]||(s[2]=[e("p",{class:"muted",style:{margin:"0"}},"Brak zaplanowanych zjazdów.",-1)])])),e("div",ae,[e("section",te,[e("div",le,[s[4]||(s[4]=e("h2",{id:"next-h"},"Najbliższe zajęcia",-1)),u(y,{to:"/plan",class:"small"},{default:p(()=>[...s[3]||(s[3]=[m("Cały plan",-1)])]),_:1})]),w.value.length?(n(),o("ul",oe,[(n(!0),o(j,null,D(w.value,t=>(n(),o("li",{key:t.id},[e("div",ne,[e("span",ie,a(t.course.name),1),e("span",re,a(i(N)(t.starts_at))+"–"+a(i(N)(t.ends_at)),1)]),e("div",de,[m(a(i(K)(t.starts_at))+" · "+a(i(O)[t.course.form])+" ",1),t.is_online?(n(),o("span",ue,"online")):t.room?(n(),o("span",me,"sala "+a(t.room),1)):v("",!0)])]))),128))])):(n(),o("p",ce,"Nie ma już zaplanowanych zajęć."))]),e("section",_e,[e("div",pe,[s[6]||(s[6]=e("h2",{id:"dl-h"},"Terminy",-1)),u(y,{to:"/terminarz",class:"small"},{default:p(()=>[...s[5]||(s[5]=[m("Terminarz",-1)])]),_:1})]),f.value.length?(n(),o("ul",ye,[(n(!0),o(j,null,D(f.value,t=>(n(),o("li",{key:t.id},[e("div",ve,[e("span",he,a(t.title),1),e("span",{class:b(["badge",{alert:i(Q)(t.due_at,_.value)<=3}])},a(i(q)(t.due_at,_.value)),3)]),e("div",ze,[m(a(i(U)(t.due_at))+" · "+a(i(W)[t.kind]),1),t.course?(n(),o("span",ge," · "+a(t.course.name),1)):v("",!0)])]))),128))])):(n(),o("p",be,"Brak nadchodzących terminów."))])]),e("div",ke,[e("section",we,[s[8]||(s[8]=e("span",{class:"eyebrow"},"Lektury",-1)),s[9]||(s[9]=e("h2",{id:"read-h",style:{margin:"4px 0 8px"}},"Postęp czytania",-1)),e("p",fe,[e("span",xe,a(c.value.requiredRead),1),e("span",je," z "+a(c.value.requiredTotal)+" obowiązkowych",1)]),e("div",{class:"progress-bar",role:"progressbar","aria-valuenow":x.value,"aria-valuemin":"0","aria-valuemax":"100","aria-label":"Przeczytane lektury obowiązkowe"},[e("span",{style:A({width:x.value+"%"})},null,4)],8,De),e("p",Te,"Łącznie przeczytano "+a(c.value.read)+" z "+a(i(C)(c.value.total,"lektury","lektur","lektur"))+".",1),u(y,{class:"btn small",to:"/lektury"},{default:p(()=>[...s[7]||(s[7]=[m("Lista lektur",-1)])]),_:1})]),e("section",qe,[s[11]||(s[11]=e("span",{class:"eyebrow"},"Quizy",-1)),s[12]||(s[12]=e("h2",{id:"quiz-h",style:{margin:"4px 0 8px"}},"Sprawdź się",-1)),s[13]||(s[13]=e("p",{class:"muted",style:{margin:"0 0 12px"}},"Fiszki z powtórki: losuj po 5 pytań, oznaczaj Wiem / Nie wiem i wracaj do tych, których nie znasz.",-1)),u(y,{class:"btn primary small",to:"/quizy"},{default:p(()=>[...s[10]||(s[10]=[m("Zacznij quiz",-1)])]),_:1})])])]),_:1},8,["ready","error"])])}}});export{$e as default}; +import{_ as S}from"./PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js";import{_ as R}from"./LoadState.vue_vue_type_script_setup_true_lang-Bzg7dKHt.js";import{_ as $}from"./ElectiveBar.vue_vue_type_script_setup_true_lang-DalXwVxD.js";import{d as F,u as P,p as V,q as E,c as o,h as u,i as p,b as i,r as M,s as d,o as n,x as b,a as e,t as a,m,e as v,F as j,y as D,z as A,k as Z}from"./index-Bm0qbefx.js";import{f as I,m as T,r as q,c as C,a as N,b as K,F as O,d as Q,e as U,K as W,g as G}from"./format-bcE-cYHJ.js";const H={class:"eyebrow"},J={id:"meeting-h",style:{margin:"4px 0 6px"}},X={style:{margin:"0 0 6px"}},Y={key:0,class:"muted small",style:{margin:"0 0 6px"}},ee={key:1,class:"muted small",style:{margin:"0 0 8px"}},se={key:1,class:"card"},ae={class:"grid-2 section"},te={"aria-labelledby":"next-h"},le={class:"section-head"},oe={key:0,class:"rows"},ne={class:"row-main"},ie={class:"title"},re={class:"when"},de={class:"muted small"},ue={key:0,class:"badge online"},me={key:1,class:"badge onsite"},ce={key:1,class:"empty"},_e={"aria-labelledby":"dl-h"},pe={class:"section-head"},ye={key:0,class:"rows"},ve={class:"row-main"},he={class:"title"},ze={class:"muted small"},ge={key:0},be={key:1,class:"empty"},ke={class:"grid-2 section"},we={class:"card","aria-labelledby":"read-h"},fe={style:{margin:"0 0 8px"}},xe={class:"big-num"},je={class:"muted"},De=["aria-valuenow"],Te={class:"muted small",style:{margin:"8px 0 10px"}},qe={class:"card","aria-labelledby":"quiz-h"},$e=F({__name:"DashboardView",setup(Ce){const k=P(),l=V(),_=M(new Date);E(()=>{_.value=new Date,Promise.all([l.loadDashboard(),l.loadCourses(),l.loadSchedule(),l.loadDeadlines(),l.loadReadings()])});const B=d(()=>l.loaded.schedule&&l.loaded.courses&&l.loaded.readings&&l.loaded.deadlines&&l.loaded.dashboard),r=d(()=>l.dashboard?.current_meeting??l.dashboard?.next_meeting??null),z=d(()=>!!l.dashboard?.current_meeting),g=d(()=>G(r.value?.notes)),w=d(()=>l.schedule.filter(h=>Date.parse(h.ends_at)>_.value.getTime()).slice(0,5)),f=d(()=>l.deadlines.filter(h=>Date.parse(h.due_at)>=_.value.getTime()).slice(0,5)),c=d(()=>l.readingStats),x=d(()=>c.value.requiredTotal?Math.round(c.value.requiredRead/c.value.requiredTotal*100):0),L=d(()=>k.user?.name?`Cześć, ${k.user.name}`:"Pulpit");return(h,s)=>{const y=Z("router-link");return n(),o("div",null,[u(S,{eyebrow:"Pulpit",title:L.value},null,8,["title"]),u(R,{ready:B.value,error:i(l).error,onRetry:s[0]||(s[0]=t=>i(l).retry())},{default:p(()=>[u($),r.value?(n(),o("section",{key:0,class:b(["card accent",{hl:z.value}]),"aria-labelledby":"meeting-h"},[e("span",H,a(z.value?"Trwa zjazd":"Najbliższy zjazd"),1),e("h2",J,"Zjazd "+a(r.value.number),1),e("p",X,[m(a(i(I)(r.value.starts_on,r.value.ends_on))+" ",1),g.value?(n(),o("span",{key:0,class:b(["badge",g.value==="online"?"online":"onsite"]),style:{"margin-left":"6px"}},a(g.value),3)):v("",!0)]),i(T)(r.value.notes)?(n(),o("p",Y,a(i(T)(r.value.notes)),1)):v("",!0),z.value?v("",!0):(n(),o("p",ee,a(i(q)(`${r.value.starts_on}T12:00:00+02:00`,_.value))+" · "+a(i(C)(r.value.sessions_count,"zajęcia","zajęcia","zajęć")),1)),u(y,{class:"btn small",to:{name:"schedule",query:{zjazd:r.value.number}}},{default:p(()=>[...s[1]||(s[1]=[m("Zobacz plan zjazdu",-1)])]),_:1},8,["to"])],2)):(n(),o("section",se,[...s[2]||(s[2]=[e("p",{class:"muted",style:{margin:"0"}},"Brak zaplanowanych zjazdów.",-1)])])),e("div",ae,[e("section",te,[e("div",le,[s[4]||(s[4]=e("h2",{id:"next-h"},"Najbliższe zajęcia",-1)),u(y,{to:"/plan",class:"small"},{default:p(()=>[...s[3]||(s[3]=[m("Cały plan",-1)])]),_:1})]),w.value.length?(n(),o("ul",oe,[(n(!0),o(j,null,D(w.value,t=>(n(),o("li",{key:t.id},[e("div",ne,[e("span",ie,a(t.course.name),1),e("span",re,a(i(N)(t.starts_at))+"–"+a(i(N)(t.ends_at)),1)]),e("div",de,[m(a(i(K)(t.starts_at))+" · "+a(i(O)[t.course.form])+" ",1),t.is_online?(n(),o("span",ue,"online")):t.room?(n(),o("span",me,"sala "+a(t.room),1)):v("",!0)])]))),128))])):(n(),o("p",ce,"Nie ma już zaplanowanych zajęć."))]),e("section",_e,[e("div",pe,[s[6]||(s[6]=e("h2",{id:"dl-h"},"Terminy",-1)),u(y,{to:"/terminarz",class:"small"},{default:p(()=>[...s[5]||(s[5]=[m("Terminarz",-1)])]),_:1})]),f.value.length?(n(),o("ul",ye,[(n(!0),o(j,null,D(f.value,t=>(n(),o("li",{key:t.id},[e("div",ve,[e("span",he,a(t.title),1),e("span",{class:b(["badge",{alert:i(Q)(t.due_at,_.value)<=3}])},a(i(q)(t.due_at,_.value)),3)]),e("div",ze,[m(a(i(U)(t.due_at))+" · "+a(i(W)[t.kind]),1),t.course?(n(),o("span",ge," · "+a(t.course.name),1)):v("",!0)])]))),128))])):(n(),o("p",be,"Brak nadchodzących terminów."))])]),e("div",ke,[e("section",we,[s[8]||(s[8]=e("span",{class:"eyebrow"},"Lektury",-1)),s[9]||(s[9]=e("h2",{id:"read-h",style:{margin:"4px 0 8px"}},"Postęp czytania",-1)),e("p",fe,[e("span",xe,a(c.value.requiredRead),1),e("span",je," z "+a(c.value.requiredTotal)+" obowiązkowych",1)]),e("div",{class:"progress-bar",role:"progressbar","aria-valuenow":x.value,"aria-valuemin":"0","aria-valuemax":"100","aria-label":"Przeczytane lektury obowiązkowe"},[e("span",{style:A({width:x.value+"%"})},null,4)],8,De),e("p",Te,"Łącznie przeczytano "+a(c.value.read)+" z "+a(i(C)(c.value.total,"lektury","lektur","lektur"))+".",1),u(y,{class:"btn small",to:"/lektury"},{default:p(()=>[...s[7]||(s[7]=[m("Lista lektur",-1)])]),_:1})]),e("section",qe,[s[11]||(s[11]=e("span",{class:"eyebrow"},"Quizy",-1)),s[12]||(s[12]=e("h2",{id:"quiz-h",style:{margin:"4px 0 8px"}},"Sprawdź się",-1)),s[13]||(s[13]=e("p",{class:"muted",style:{margin:"0 0 12px"}},"Fiszki z powtórki: losuj po 5 pytań, oznaczaj Wiem / Nie wiem i wracaj do tych, których nie znasz.",-1)),u(y,{class:"btn primary small",to:"/quizy"},{default:p(()=>[...s[10]||(s[10]=[m("Zacznij quiz",-1)])]),_:1})])])]),_:1},8,["ready","error"])])}}});export{$e as default}; diff --git a/public/assets/DeadlinesView-BlxBIb-a.js b/public/assets/DeadlinesView-QfLdRQAY.js similarity index 89% rename from public/assets/DeadlinesView-BlxBIb-a.js rename to public/assets/DeadlinesView-QfLdRQAY.js index 57c3f05..d384ce6 100644 --- a/public/assets/DeadlinesView-BlxBIb-a.js +++ b/public/assets/DeadlinesView-QfLdRQAY.js @@ -1 +1 @@ -import{_ as B}from"./PageHead.vue_vue_type_script_setup_true_lang-CmzkJbRP.js";import{_ as x}from"./LoadState.vue_vue_type_script_setup_true_lang-CkJKaMnT.js";import{_ as C}from"./ElectiveBar.vue_vue_type_script_setup_true_lang-DoecCJhC.js";import{d as $,p as N,q as T,c as o,h as m,i as v,b as s,r as y,o as t,F as h,y as f,a as n,t as a,e as u,s as k,k as V,x as L,m as g,B as M}from"./index-D5YFSKUV.js";import{d as w,r as E,b as D,a as F,K as b,c as K}from"./format-bcE-cYHJ.js";const P={key:0,class:"rows card"},S={class:"row-main"},j={class:"title"},q={class:"muted small"},A={class:"badge"},I={key:0,class:"small",style:{margin:"6px 0 0"}},R={key:1,class:"empty"},U={key:2,class:"section"},Z=["aria-pressed"],G={key:0,class:"rows card past",style:{"margin-top":"10px"}},H={class:"row-main"},J={class:"title"},O={class:"when"},Q={class:"muted small"},te=$({__name:"DeadlinesView",setup(W){const r=N(),i=y(new Date),l=y(!1);T(()=>{i.value=new Date,Promise.all([r.loadDeadlines(),r.loadCourses()])});const p=k(()=>r.deadlines.filter(c=>Date.parse(c.due_at)>=i.value.getTime())),_=k(()=>r.deadlines.filter(c=>Date.parse(c.due_at){const z=V("router-link");return t(),o("div",null,[m(B,{eyebrow:"Zaliczenia, egzaminy, sprawy organizacyjne",title:"Terminarz"}),m(x,{ready:s(r).loaded.deadlines&&s(r).loaded.courses,error:s(r).error,onRetry:d[1]||(d[1]=e=>s(r).retry())},{default:v(()=>[m(C),p.value.length?(t(),o("ul",P,[(t(!0),o(h,null,f(p.value,e=>(t(),o("li",{key:e.id},[n("div",S,[n("span",j,a(e.title),1),n("span",{class:L(["badge",{alert:s(w)(e.due_at,i.value)<=3}])},a(s(E)(e.due_at,i.value)),3)]),n("div",q,[g(a(s(D)(e.due_at))+", "+a(s(F)(e.due_at))+" · ",1),n("span",A,a(s(b)[e.kind]),1),e.course?(t(),M(z,{key:0,to:`/przedmioty/${e.course.id}`},{default:v(()=>[g(" · "+a(e.course.name),1)]),_:2},1032,["to"])):u("",!0)]),e.description?(t(),o("p",I,a(e.description),1)):u("",!0)]))),128))])):(t(),o("p",R,"Brak nadchodzących terminów.")),_.value.length?(t(),o("div",U,[n("button",{class:"chip",type:"button","aria-pressed":l.value,onClick:d[0]||(d[0]=e=>l.value=!l.value)},"Minione ("+a(_.value.length)+")",9,Z),l.value?(t(),o("ul",G,[(t(!0),o(h,null,f(_.value,e=>(t(),o("li",{key:e.id},[n("div",H,[n("span",J,a(e.title),1),n("span",O,a(s(K)(Math.abs(s(w)(e.due_at,i.value)),"dzień","dni","dni"))+" temu",1)]),n("div",Q,a(s(D)(e.due_at))+" · "+a(s(b)[e.kind]),1)]))),128))])):u("",!0)])):u("",!0)]),_:1},8,["ready","error"])])}}});export{te as default}; +import{_ as B}from"./PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js";import{_ as x}from"./LoadState.vue_vue_type_script_setup_true_lang-Bzg7dKHt.js";import{_ as C}from"./ElectiveBar.vue_vue_type_script_setup_true_lang-DalXwVxD.js";import{d as $,p as N,q as T,c as o,h as m,i as v,b as s,r as y,o as t,F as h,y as f,a as n,t as a,e as u,s as k,k as V,x as L,m as g,B as M}from"./index-Bm0qbefx.js";import{d as w,r as E,b as D,a as F,K as b,c as K}from"./format-bcE-cYHJ.js";const P={key:0,class:"rows card"},S={class:"row-main"},j={class:"title"},q={class:"muted small"},A={class:"badge"},I={key:0,class:"small",style:{margin:"6px 0 0"}},R={key:1,class:"empty"},U={key:2,class:"section"},Z=["aria-pressed"],G={key:0,class:"rows card past",style:{"margin-top":"10px"}},H={class:"row-main"},J={class:"title"},O={class:"when"},Q={class:"muted small"},te=$({__name:"DeadlinesView",setup(W){const r=N(),i=y(new Date),l=y(!1);T(()=>{i.value=new Date,Promise.all([r.loadDeadlines(),r.loadCourses()])});const p=k(()=>r.deadlines.filter(c=>Date.parse(c.due_at)>=i.value.getTime())),_=k(()=>r.deadlines.filter(c=>Date.parse(c.due_at){const z=V("router-link");return t(),o("div",null,[m(B,{eyebrow:"Zaliczenia, egzaminy, sprawy organizacyjne",title:"Terminarz"}),m(x,{ready:s(r).loaded.deadlines&&s(r).loaded.courses,error:s(r).error,onRetry:d[1]||(d[1]=e=>s(r).retry())},{default:v(()=>[m(C),p.value.length?(t(),o("ul",P,[(t(!0),o(h,null,f(p.value,e=>(t(),o("li",{key:e.id},[n("div",S,[n("span",j,a(e.title),1),n("span",{class:L(["badge",{alert:s(w)(e.due_at,i.value)<=3}])},a(s(E)(e.due_at,i.value)),3)]),n("div",q,[g(a(s(D)(e.due_at))+", "+a(s(F)(e.due_at))+" · ",1),n("span",A,a(s(b)[e.kind]),1),e.course?(t(),M(z,{key:0,to:`/przedmioty/${e.course.id}`},{default:v(()=>[g(" · "+a(e.course.name),1)]),_:2},1032,["to"])):u("",!0)]),e.description?(t(),o("p",I,a(e.description),1)):u("",!0)]))),128))])):(t(),o("p",R,"Brak nadchodzących terminów.")),_.value.length?(t(),o("div",U,[n("button",{class:"chip",type:"button","aria-pressed":l.value,onClick:d[0]||(d[0]=e=>l.value=!l.value)},"Minione ("+a(_.value.length)+")",9,Z),l.value?(t(),o("ul",G,[(t(!0),o(h,null,f(_.value,e=>(t(),o("li",{key:e.id},[n("div",H,[n("span",J,a(e.title),1),n("span",O,a(s(K)(Math.abs(s(w)(e.due_at,i.value)),"dzień","dni","dni"))+" temu",1)]),n("div",Q,a(s(D)(e.due_at))+" · "+a(s(b)[e.kind]),1)]))),128))])):u("",!0)])):u("",!0)]),_:1},8,["ready","error"])])}}});export{te as default}; diff --git a/public/assets/ElectiveBar.vue_vue_type_script_setup_true_lang-DoecCJhC.js b/public/assets/ElectiveBar.vue_vue_type_script_setup_true_lang-DalXwVxD.js similarity index 93% rename from public/assets/ElectiveBar.vue_vue_type_script_setup_true_lang-DoecCJhC.js rename to public/assets/ElectiveBar.vue_vue_type_script_setup_true_lang-DalXwVxD.js index a94aafa..79907f7 100644 --- a/public/assets/ElectiveBar.vue_vue_type_script_setup_true_lang-DoecCJhC.js +++ b/public/assets/ElectiveBar.vue_vue_type_script_setup_true_lang-DalXwVxD.js @@ -1 +1 @@ -import{d as l,C as d,p as u,b as e,o as a,c as r,m as i,t as m,h as y,i as w,e as n,a as h,s as _,k}from"./index-D5YFSKUV.js";import{c as b}from"./format-bcE-cYHJ.js";const g={key:0,class:"stack",style:{"margin-bottom":"16px"}},v={key:0,class:"notice"},z={key:1,class:"chips wrap"},C=["aria-pressed"],V=l({__name:"ElectiveBar",setup(f){const t=d(),o=u(),c=_(()=>b(o.pendingElectives.length,"grupa przedmiotów do wyboru","grupy przedmiotów do wyboru","grup przedmiotów do wyboru"));return(x,s)=>{const p=k("router-link");return e(o).pendingElectives.length||e(t).hasChoices?(a(),r("div",g,[e(o).pendingElectives.length?(a(),r("p",v,[i(" Masz "+m(c.value)+". Do czasu wyboru widać wszystkie alternatywy. ",1),y(p,{to:{name:"profile",hash:"#wybor"}},{default:w(()=>[...s[1]||(s[1]=[i("Wybierz",-1)])]),_:1})])):n("",!0),e(t).hasChoices?(a(),r("div",z,[h("button",{class:"chip",type:"button","aria-pressed":e(t).showAll,onClick:s[0]||(s[0]=E=>e(t).setShowAll(!e(t).showAll))},"Pokaż wszystkie przedmioty do wyboru",8,C)])):n("",!0)])):n("",!0)}}});export{V as _}; +import{d as l,C as d,p as u,b as e,o as a,c as r,m as i,t as m,h as y,i as w,e as n,a as h,s as _,k}from"./index-Bm0qbefx.js";import{c as b}from"./format-bcE-cYHJ.js";const g={key:0,class:"stack",style:{"margin-bottom":"16px"}},v={key:0,class:"notice"},z={key:1,class:"chips wrap"},C=["aria-pressed"],V=l({__name:"ElectiveBar",setup(f){const t=d(),o=u(),c=_(()=>b(o.pendingElectives.length,"grupa przedmiotów do wyboru","grupy przedmiotów do wyboru","grup przedmiotów do wyboru"));return(x,s)=>{const p=k("router-link");return e(o).pendingElectives.length||e(t).hasChoices?(a(),r("div",g,[e(o).pendingElectives.length?(a(),r("p",v,[i(" Masz "+m(c.value)+". Do czasu wyboru widać wszystkie alternatywy. ",1),y(p,{to:{name:"profile",hash:"#wybor"}},{default:w(()=>[...s[1]||(s[1]=[i("Wybierz",-1)])]),_:1})])):n("",!0),e(t).hasChoices?(a(),r("div",z,[h("button",{class:"chip",type:"button","aria-pressed":e(t).showAll,onClick:s[0]||(s[0]=E=>e(t).setShowAll(!e(t).showAll))},"Pokaż wszystkie przedmioty do wyboru",8,C)])):n("",!0)])):n("",!0)}}});export{V as _}; diff --git a/public/assets/ForgotView-Cs41d0Vc.js b/public/assets/ForgotView-3wxOP3D0.js similarity index 92% rename from public/assets/ForgotView-Cs41d0Vc.js rename to public/assets/ForgotView-3wxOP3D0.js index cb58e8c..b681527 100644 --- a/public/assets/ForgotView-Cs41d0Vc.js +++ b/public/assets/ForgotView-3wxOP3D0.js @@ -1 +1 @@ -import{d as f,c as t,a,g as y,t as n,e as m,w as _,v as k,h as w,i as b,r,k as h,o,m as g,n as x}from"./index-D5YFSKUV.js";import{f as V}from"./forms-wljlKyMv.js";const B={class:"auth"},C={key:0,class:"notice",role:"status"},N={key:0,class:"notice error",role:"alert",style:{"margin-bottom":"14px"}},W={class:"field"},j={key:0,class:"error-text"},M=["disabled"],z={class:"auth-links"},I=f({__name:"ForgotView",setup(A){const l=r(""),i=r(!1),u=r(!1),s=r(null);async function c(){i.value=!0,s.value=null;try{await x.forgotPassword(l.value.trim()),u.value=!0}catch(d){s.value=V(d)}finally{i.value=!1}}return(d,e)=>{const p=h("router-link");return o(),t("div",B,[e[3]||(e[3]=a("header",{class:"page-head"},[a("span",{class:"eyebrow"},"BM II° · UWr"),a("h1",null,"Przypomnij hasło")],-1)),u.value?(o(),t("p",C,"Jeśli konto o tym adresie istnieje, wysłaliśmy na nie wiadomość z linkiem do ustawienia nowego hasła.")):(o(),t("form",{key:1,onSubmit:y(c,["prevent"]),novalidate:""},[s.value?.message?(o(),t("div",N,n(s.value.message),1)):m("",!0),a("div",W,[e[1]||(e[1]=a("label",{for:"email"},"Adres e-mail",-1)),_(a("input",{id:"email","onUpdate:modelValue":e[0]||(e[0]=v=>l.value=v),type:"email",autocomplete:"email",inputmode:"email",required:"",autofocus:""},null,512),[[k,l.value]]),s.value?.fields.email?(o(),t("p",j,n(s.value.fields.email),1)):m("",!0)]),a("button",{class:"btn primary block",type:"submit",disabled:i.value||!l.value},n(i.value?"Wysyłanie…":"Wyślij link"),9,M)],32)),a("div",z,[w(p,{to:"/logowanie"},{default:b(()=>[...e[2]||(e[2]=[g("Wróć do logowania",-1)])]),_:1})])])}}});export{I as default}; +import{d as f,c as t,a,g as y,t as n,e as m,w as _,v as k,h as w,i as b,r,k as h,o,m as g,n as x}from"./index-Bm0qbefx.js";import{f as V}from"./forms-Baj3w_Pg.js";const B={class:"auth"},C={key:0,class:"notice",role:"status"},N={key:0,class:"notice error",role:"alert",style:{"margin-bottom":"14px"}},W={class:"field"},j={key:0,class:"error-text"},M=["disabled"],z={class:"auth-links"},I=f({__name:"ForgotView",setup(A){const l=r(""),i=r(!1),u=r(!1),s=r(null);async function c(){i.value=!0,s.value=null;try{await x.forgotPassword(l.value.trim()),u.value=!0}catch(d){s.value=V(d)}finally{i.value=!1}}return(d,e)=>{const p=h("router-link");return o(),t("div",B,[e[3]||(e[3]=a("header",{class:"page-head"},[a("span",{class:"eyebrow"},"BM II° · UWr"),a("h1",null,"Przypomnij hasło")],-1)),u.value?(o(),t("p",C,"Jeśli konto o tym adresie istnieje, wysłaliśmy na nie wiadomość z linkiem do ustawienia nowego hasła.")):(o(),t("form",{key:1,onSubmit:y(c,["prevent"]),novalidate:""},[s.value?.message?(o(),t("div",N,n(s.value.message),1)):m("",!0),a("div",W,[e[1]||(e[1]=a("label",{for:"email"},"Adres e-mail",-1)),_(a("input",{id:"email","onUpdate:modelValue":e[0]||(e[0]=v=>l.value=v),type:"email",autocomplete:"email",inputmode:"email",required:"",autofocus:""},null,512),[[k,l.value]]),s.value?.fields.email?(o(),t("p",j,n(s.value.fields.email),1)):m("",!0)]),a("button",{class:"btn primary block",type:"submit",disabled:i.value||!l.value},n(i.value?"Wysyłanie…":"Wyślij link"),9,M)],32)),a("div",z,[w(p,{to:"/logowanie"},{default:b(()=>[...e[2]||(e[2]=[g("Wróć do logowania",-1)])]),_:1})])])}}});export{I as default}; diff --git a/public/assets/LoadState.vue_vue_type_script_setup_true_lang-CkJKaMnT.js b/public/assets/LoadState.vue_vue_type_script_setup_true_lang-Bzg7dKHt.js similarity index 90% rename from public/assets/LoadState.vue_vue_type_script_setup_true_lang-CkJKaMnT.js rename to public/assets/LoadState.vue_vue_type_script_setup_true_lang-Bzg7dKHt.js index c6d965d..b0b53ce 100644 --- a/public/assets/LoadState.vue_vue_type_script_setup_true_lang-CkJKaMnT.js +++ b/public/assets/LoadState.vue_vue_type_script_setup_true_lang-Bzg7dKHt.js @@ -1 +1 @@ -import{d as n,c as r,m as l,t as i,a as o,M as d,o as s}from"./index-D5YFSKUV.js";const y={key:0,class:"notice error",role:"alert"},c={key:1,class:"stack","aria-busy":"true","aria-label":"Wczytywanie"},m=n({__name:"LoadState",props:{loading:{type:Boolean},error:{},ready:{type:Boolean}},emits:["retry"],setup(e){return(a,t)=>e.error&&!e.ready?(s(),r("div",y,[l(i(e.error)+" ",1),o("button",{class:"linkish",type:"button",onClick:t[0]||(t[0]=u=>a.$emit("retry"))},"Spróbuj ponownie")])):e.ready?d(a.$slots,"default",{},void 0,void 0,2):(s(),r("div",c,[...t[1]||(t[1]=[o("div",{class:"skeleton"},null,-1),o("div",{class:"skeleton"},null,-1),o("div",{class:"skeleton"},null,-1)])]))}});export{m as _}; +import{d as n,c as r,m as l,t as i,a as o,M as d,o as s}from"./index-Bm0qbefx.js";const y={key:0,class:"notice error",role:"alert"},c={key:1,class:"stack","aria-busy":"true","aria-label":"Wczytywanie"},m=n({__name:"LoadState",props:{loading:{type:Boolean},error:{},ready:{type:Boolean}},emits:["retry"],setup(e){return(a,t)=>e.error&&!e.ready?(s(),r("div",y,[l(i(e.error)+" ",1),o("button",{class:"linkish",type:"button",onClick:t[0]||(t[0]=u=>a.$emit("retry"))},"Spróbuj ponownie")])):e.ready?d(a.$slots,"default",{},void 0,void 0,2):(s(),r("div",c,[...t[1]||(t[1]=[o("div",{class:"skeleton"},null,-1),o("div",{class:"skeleton"},null,-1),o("div",{class:"skeleton"},null,-1)])]))}});export{m as _}; diff --git a/public/assets/LoginView-CV0vWG8v.js b/public/assets/LoginView-CHeK-5Bc.js similarity index 94% rename from public/assets/LoginView-CV0vWG8v.js rename to public/assets/LoginView-CHeK-5Bc.js index 8d5b575..d583d1a 100644 --- a/public/assets/LoginView-CV0vWG8v.js +++ b/public/assets/LoginView-CHeK-5Bc.js @@ -1 +1 @@ -import{d as j,u as V,c as o,a as s,b as C,e as d,t as m,w as v,v as b,f as N,g as q,h as w,i as k,j as B,r as l,k as M,l as U,o as r,m as _}from"./index-D5YFSKUV.js";import{s as Z,f as z}from"./forms-wljlKyMv.js";const R={class:"auth"},S={key:0,class:"notice",role:"status"},A={key:0,class:"notice error",role:"alert",style:{"margin-bottom":"14px"}},D={class:"field"},E={key:0,class:"error-text"},I={class:"field"},L={key:0,class:"error-text"},T={class:"check",style:{"margin-bottom":"16px"}},H=["disabled"],P={class:"auth-links"},J=j({__name:"LoginView",setup(W){const g=V(),c=B(),x=U(),i=l(""),u=l(""),p=l(!0),n=l(!1),t=l(null);async function h(){n.value=!0,t.value=null;try{await g.login(i.value.trim(),u.value,p.value),await x.replace(Z(c.query.redirect))}catch(f){t.value=z(f)}finally{n.value=!1}}return(f,e)=>{const y=M("router-link");return r(),o("div",R,[e[8]||(e[8]=s("header",{class:"page-head"},[s("span",{class:"eyebrow"},"BM II° · UWr"),s("h1",null,"Zaloguj się")],-1)),C(c).query.expired?(r(),o("p",S,"Sesja wygasła. Zaloguj się ponownie.")):d("",!0),s("form",{onSubmit:q(h,["prevent"]),novalidate:""},[t.value?.message?(r(),o("div",A,m(t.value.message),1)):d("",!0),s("div",D,[e[3]||(e[3]=s("label",{for:"email"},"Adres e-mail",-1)),v(s("input",{id:"email","onUpdate:modelValue":e[0]||(e[0]=a=>i.value=a),type:"email",autocomplete:"username",inputmode:"email",required:"",autofocus:""},null,512),[[b,i.value]]),t.value?.fields.email?(r(),o("p",E,m(t.value.fields.email),1)):d("",!0)]),s("div",I,[e[4]||(e[4]=s("label",{for:"password"},"Hasło",-1)),v(s("input",{id:"password","onUpdate:modelValue":e[1]||(e[1]=a=>u.value=a),type:"password",autocomplete:"current-password",required:""},null,512),[[b,u.value]]),t.value?.fields.password?(r(),o("p",L,m(t.value.fields.password),1)):d("",!0)]),s("label",T,[v(s("input",{"onUpdate:modelValue":e[2]||(e[2]=a=>p.value=a),type:"checkbox"},null,512),[[N,p.value]]),e[5]||(e[5]=s("span",null,"Pamiętaj mnie na tym urządzeniu",-1))]),s("button",{class:"btn primary block",type:"submit",disabled:n.value||!i.value||!u.value},m(n.value?"Logowanie…":"Zaloguj się"),9,H)],32),s("div",P,[w(y,{to:"/przypomnij-haslo"},{default:k(()=>[...e[6]||(e[6]=[_("Nie pamiętam hasła",-1)])]),_:1}),w(y,{to:"/rejestracja"},{default:k(()=>[...e[7]||(e[7]=[_("Załóż konto",-1)])]),_:1})])])}}});export{J as default}; +import{d as j,u as V,c as o,a as s,b as C,e as d,t as m,w as v,v as b,f as N,g as q,h as w,i as k,j as B,r as l,k as M,l as U,o as r,m as _}from"./index-Bm0qbefx.js";import{s as Z,f as z}from"./forms-Baj3w_Pg.js";const R={class:"auth"},S={key:0,class:"notice",role:"status"},A={key:0,class:"notice error",role:"alert",style:{"margin-bottom":"14px"}},D={class:"field"},E={key:0,class:"error-text"},I={class:"field"},L={key:0,class:"error-text"},T={class:"check",style:{"margin-bottom":"16px"}},H=["disabled"],P={class:"auth-links"},J=j({__name:"LoginView",setup(W){const g=V(),c=B(),x=U(),i=l(""),u=l(""),p=l(!0),n=l(!1),t=l(null);async function h(){n.value=!0,t.value=null;try{await g.login(i.value.trim(),u.value,p.value),await x.replace(Z(c.query.redirect))}catch(f){t.value=z(f)}finally{n.value=!1}}return(f,e)=>{const y=M("router-link");return r(),o("div",R,[e[8]||(e[8]=s("header",{class:"page-head"},[s("span",{class:"eyebrow"},"BM II° · UWr"),s("h1",null,"Zaloguj się")],-1)),C(c).query.expired?(r(),o("p",S,"Sesja wygasła. Zaloguj się ponownie.")):d("",!0),s("form",{onSubmit:q(h,["prevent"]),novalidate:""},[t.value?.message?(r(),o("div",A,m(t.value.message),1)):d("",!0),s("div",D,[e[3]||(e[3]=s("label",{for:"email"},"Adres e-mail",-1)),v(s("input",{id:"email","onUpdate:modelValue":e[0]||(e[0]=a=>i.value=a),type:"email",autocomplete:"username",inputmode:"email",required:"",autofocus:""},null,512),[[b,i.value]]),t.value?.fields.email?(r(),o("p",E,m(t.value.fields.email),1)):d("",!0)]),s("div",I,[e[4]||(e[4]=s("label",{for:"password"},"Hasło",-1)),v(s("input",{id:"password","onUpdate:modelValue":e[1]||(e[1]=a=>u.value=a),type:"password",autocomplete:"current-password",required:""},null,512),[[b,u.value]]),t.value?.fields.password?(r(),o("p",L,m(t.value.fields.password),1)):d("",!0)]),s("label",T,[v(s("input",{"onUpdate:modelValue":e[2]||(e[2]=a=>p.value=a),type:"checkbox"},null,512),[[N,p.value]]),e[5]||(e[5]=s("span",null,"Pamiętaj mnie na tym urządzeniu",-1))]),s("button",{class:"btn primary block",type:"submit",disabled:n.value||!i.value||!u.value},m(n.value?"Logowanie…":"Zaloguj się"),9,H)],32),s("div",P,[w(y,{to:"/przypomnij-haslo"},{default:k(()=>[...e[6]||(e[6]=[_("Nie pamiętam hasła",-1)])]),_:1}),w(y,{to:"/rejestracja"},{default:k(()=>[...e[7]||(e[7]=[_("Załóż konto",-1)])]),_:1})])])}}});export{J as default}; diff --git a/public/assets/MaterialView-C-GKgARj.js b/public/assets/MaterialView-Cks1ThSX.js similarity index 94% rename from public/assets/MaterialView-C-GKgARj.js rename to public/assets/MaterialView-Cks1ThSX.js index 6535096..ab9343a 100644 --- a/public/assets/MaterialView-C-GKgARj.js +++ b/public/assets/MaterialView-Cks1ThSX.js @@ -1,4 +1,4 @@ -import{_ as C}from"./PageHead.vue_vue_type_script_setup_true_lang-CmzkJbRP.js";import{_ as E}from"./LoadState.vue_vue_type_script_setup_true_lang-CkJKaMnT.js";import{d as L,q as V,A as z,c as u,h as k,i as g,r as B,E as A,G as H,o as l,F as y,b,m as j,a as d,B as W,t as f,e as h,y as M,s as N,k as D}from"./index-D5YFSKUV.js";import{T as F,i as P,j as G}from"./format-bcE-cYHJ.js";const O={"&":"&","<":"<",">":">",'"':""","'":"'"};function _(o){return o.replace(/[&<>"']/g,t=>O[t])}function T(o){const t=o.trim().replace(/[\u0000-\u001f\u007f\s]+/g,"");return/^https?:\/\/[^/]/i.test(t)||/^mailto:[^\s]+$/i.test(t)||t.startsWith("/")&&!t.startsWith("//")||t.startsWith("#")?t:null}function w(o){const t=[],s=i=>`\0${t.push(i)-1}\0`;let e=o.replace(/\u0000/g,"");return e=e.replace(/`([^`\n]+)`/g,(i,c)=>s(`${_(c)}`)),e=e.replace(/\[([^\]\n]+)\]\(([^()\s]*(?:\([^()\s]*\)[^()\s]*)*)\)/g,(i,c,r)=>{const p=T(r),a=S(_(c));if(!p)return s(a);const n=/^https?:/i.test(p)?' target="_blank" rel="noopener noreferrer nofollow"':"";return s(`${a}`)}),e=S(_(e)),e.replace(/\u0000(\d+)\u0000/g,(i,c)=>t[Number(c)]??"")}function S(o){return o.replace(/\*\*([^*\n]+)\*\*/g,"$1").replace(/(^|[\s(])\*([^*\n]+)\*(?=$|[\s).,;:!?])/g,"$1$2").replace(/(^|[\s(])_([^_\n]+)_(?=$|[\s).,;:!?])/g,"$1$2")}function q(o){if(!o)return"";const t=o.replace(/\r\n?/g,` +import{_ as C}from"./PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js";import{_ as E}from"./LoadState.vue_vue_type_script_setup_true_lang-Bzg7dKHt.js";import{d as L,q as V,A as z,c as u,h as k,i as g,r as B,E as A,G as H,o as l,F as y,b,m as j,a as d,B as W,t as f,e as h,y as M,s as N,k as D}from"./index-Bm0qbefx.js";import{T as F,i as P,j as G}from"./format-bcE-cYHJ.js";const O={"&":"&","<":"<",">":">",'"':""","'":"'"};function _(o){return o.replace(/[&<>"']/g,t=>O[t])}function T(o){const t=o.trim().replace(/[\u0000-\u001f\u007f\s]+/g,"");return/^https?:\/\/[^/]/i.test(t)||/^mailto:[^\s]+$/i.test(t)||t.startsWith("/")&&!t.startsWith("//")||t.startsWith("#")?t:null}function w(o){const t=[],s=i=>`\0${t.push(i)-1}\0`;let e=o.replace(/\u0000/g,"");return e=e.replace(/`([^`\n]+)`/g,(i,c)=>s(`${_(c)}`)),e=e.replace(/\[([^\]\n]+)\]\(([^()\s]*(?:\([^()\s]*\)[^()\s]*)*)\)/g,(i,c,r)=>{const p=T(r),a=S(_(c));if(!p)return s(a);const n=/^https?:/i.test(p)?' target="_blank" rel="noopener noreferrer nofollow"':"";return s(`${a}`)}),e=S(_(e)),e.replace(/\u0000(\d+)\u0000/g,(i,c)=>t[Number(c)]??"")}function S(o){return o.replace(/\*\*([^*\n]+)\*\*/g,"$1").replace(/(^|[\s(])\*([^*\n]+)\*(?=$|[\s).,;:!?])/g,"$1$2").replace(/(^|[\s(])_([^_\n]+)_(?=$|[\s).,;:!?])/g,"$1$2")}function q(o){if(!o)return"";const t=o.replace(/\r\n?/g,` `).split(` `),s=[];let e=0;const i=r=>r.trim()==="",c=r=>/^(#{1,6})\s/.test(r)||/^```/.test(r)||/^>\s?/.test(r)||/^\s*([-*+]|\d+[.)])\s+/.test(r)||/^(-{3,}|\*{3,}|_{3,})\s*$/.test(r);for(;e${_(n.join(` `))}`);continue}const p=/^(#{1,6})\s+(.*?)\s*#*\s*$/.exec(r);if(p){const n=Math.min(p[1].length+1,6);s.push(`${w(p[2])}`),e++;continue}if(/^(-{3,}|\*{3,}|_{3,})\s*$/.test(r)){s.push("
"),e++;continue}if(/^>\s?/.test(r)){const n=[];for(;e\s?/.test(t[e]);)n.push(t[e++].replace(/^>\s?/,""));s.push(`
${q(n.join(` diff --git a/public/assets/MaterialsView-DLRl9uuu.js b/public/assets/MaterialsView-q7P-jkv-.js similarity index 97% rename from public/assets/MaterialsView-DLRl9uuu.js rename to public/assets/MaterialsView-q7P-jkv-.js index cd772e6..420f7d4 100644 --- a/public/assets/MaterialsView-DLRl9uuu.js +++ b/public/assets/MaterialsView-q7P-jkv-.js @@ -1 +1 @@ -import{d as V,p as j,q as $,E as D,G as E,A as P,c as a,h as A,a as l,w as N,H as B,F as c,y as v,b as y,g as F,e as d,m as L,t as n,I as W,r as m,s as M,o as s,k as q,B as U,i as G}from"./index-D5YFSKUV.js";import{_ as H}from"./PageHead.vue_vue_type_script_setup_true_lang-CmzkJbRP.js";import{T as S,i as I,c as O}from"./format-bcE-cYHJ.js";const R={class:"field"},Y=["value"],J={class:"field"},K=["value"],Q={key:0,class:"chips wrap",role:"group","aria-label":"Tagi",style:{"margin-bottom":"12px"}},X=["aria-pressed","onClick"],Z={key:2,class:"notice error",role:"alert"},ee={key:3,class:"stack","aria-busy":"true"},te=["aria-busy"],se={class:"row-main"},ae={class:"badge"},le={class:"muted small",style:{margin:"0"}},oe={key:0},ne={key:1},ie={key:2},re={key:0,style:{margin:"6px 0 0"}},ue={key:1,class:"empty",style:{"margin-top":"12px"}},de={key:2,class:"btn-row",style:{"margin-top":"16px","justify-content":"space-between","align-items":"center"},"aria-label":"Strony"},pe=["disabled"],ce={class:"muted small nums"},ve=["disabled"],fe=V({__name:"MaterialsView",setup(ye){const h=j(),o=W({course:"",type:"",tag:""}),i=m(1),u=m(null),b=m(!1),g=m(""),k=m(new Map);$(()=>{h.loadCourses(),_()});let f=0;async function _(){const r=++f;b.value=!0,g.value="";try{const t=await D.materials({course:o.course?Number(o.course):null,type:o.type||null,tag:o.tag||null,page:i.value});if(r!==f)return;u.value=t;for(const w of t.data)for(const e of w.tags)k.value.set(e.slug,e);k.value=new Map(k.value)}catch(t){r===f&&(g.value=E(t))}finally{r===f&&(b.value=!1)}}P(o,()=>{i.value=1,_()});function C(r){i.value=r,_(),window.scrollTo({top:0})}const x=M(()=>[...k.value.values()].sort((r,t)=>r.name.localeCompare(t.name,"pl"))),z=M(()=>!!(o.course||o.type||o.tag)),T=()=>Object.assign(o,{course:"",type:"",tag:""});return(r,t)=>{const w=q("router-link");return s(),a("div",null,[A(H,{eyebrow:"Notatki, PDF-y, linki",title:"Materiały"}),l("form",{class:"grid-2",style:{"margin-bottom":"8px"},onSubmit:t[2]||(t[2]=F(()=>{},["prevent"]))},[l("div",R,[t[7]||(t[7]=l("label",{for:"f-course"},"Przedmiot",-1)),N(l("select",{id:"f-course","onUpdate:modelValue":t[0]||(t[0]=e=>o.course=e)},[t[6]||(t[6]=l("option",{value:""},"Wszystkie",-1)),(s(!0),a(c,null,v(y(h).visibleCourses,e=>(s(),a("option",{key:e.id,value:String(e.id)},n(e.name)+" ("+n(e.form==="wyklad"?"wykład":e.form==="cwiczenia"?"ćwiczenia":e.form)+")",9,Y))),128))],512),[[B,o.course]])]),l("div",J,[t[9]||(t[9]=l("label",{for:"f-type"},"Rodzaj",-1)),N(l("select",{id:"f-type","onUpdate:modelValue":t[1]||(t[1]=e=>o.type=e)},[t[8]||(t[8]=l("option",{value:""},"Wszystkie",-1)),(s(!0),a(c,null,v(y(S),(e,p)=>(s(),a("option",{key:p,value:p},n(e),9,K))),128))],512),[[B,o.type]])])],32),x.value.length?(s(),a("div",Q,[(s(!0),a(c,null,v(x.value,e=>(s(),a("button",{key:e.slug,class:"chip",type:"button","aria-pressed":o.tag===e.slug,onClick:p=>o.tag=o.tag===e.slug?"":e.slug},n(e.name),9,X))),128))])):d("",!0),z.value?(s(),a("button",{key:1,class:"linkish small",type:"button",onClick:T},"Wyczyść filtry")):d("",!0),g.value?(s(),a("div",Z,[L(n(g.value)+" ",1),l("button",{class:"linkish",type:"button",onClick:t[3]||(t[3]=e=>_())},"Spróbuj ponownie")])):u.value?(s(),a(c,{key:4},[u.value.data.length?(s(),a("div",{key:0,class:"stack",style:{"margin-top":"12px"},"aria-busy":b.value},[(s(!0),a(c,null,v(u.value.data,e=>(s(),U(w,{key:e.id,to:`/materialy/${e.id}`,class:"card link"},{default:G(()=>[l("div",se,[l("h3",null,n(e.title),1),l("span",ae,n(y(S)[e.type]),1)]),l("p",le,[e.course?(s(),a("span",oe,n(e.course.name),1)):d("",!0),e.published_at?(s(),a("span",ne," · "+n(y(I)(e.published_at)),1)):d("",!0),e.files_count?(s(),a("span",ie," · "+n(y(O)(e.files_count,"plik","pliki","plików")),1)):d("",!0)]),e.tags.length?(s(),a("p",re,[(s(!0),a(c,null,v(e.tags,p=>(s(),a("span",{key:p.id,class:"badge",style:{"margin-right":"4px"}},n(p.name),1))),128))])):d("",!0)]),_:2},1032,["to"]))),128))],8,te)):(s(),a("p",ue,n(z.value?"Nic nie pasuje do filtrów.":"Nie ma jeszcze żadnych materiałów."),1)),u.value.meta.last_page>1?(s(),a("nav",de,[l("button",{class:"btn small",type:"button",disabled:i.value<=1,onClick:t[4]||(t[4]=e=>C(i.value-1))},"← Poprzednia",8,pe),l("span",ce,n(i.value)+" / "+n(u.value.meta.last_page),1),l("button",{class:"btn small",type:"button",disabled:i.value>=u.value.meta.last_page,onClick:t[5]||(t[5]=e=>C(i.value+1))},"Następna →",8,ve)])):d("",!0)],64)):(s(),a("div",ee,[...t[10]||(t[10]=[l("div",{class:"skeleton"},null,-1),l("div",{class:"skeleton"},null,-1)])]))])}}});export{fe as default}; +import{d as V,p as j,q as $,E as D,G as E,A as P,c as a,h as A,a as l,w as N,H as B,F as c,y as v,b as y,g as F,e as d,m as L,t as n,I as W,r as m,s as M,o as s,k as q,B as U,i as G}from"./index-Bm0qbefx.js";import{_ as H}from"./PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js";import{T as S,i as I,c as O}from"./format-bcE-cYHJ.js";const R={class:"field"},Y=["value"],J={class:"field"},K=["value"],Q={key:0,class:"chips wrap",role:"group","aria-label":"Tagi",style:{"margin-bottom":"12px"}},X=["aria-pressed","onClick"],Z={key:2,class:"notice error",role:"alert"},ee={key:3,class:"stack","aria-busy":"true"},te=["aria-busy"],se={class:"row-main"},ae={class:"badge"},le={class:"muted small",style:{margin:"0"}},oe={key:0},ne={key:1},ie={key:2},re={key:0,style:{margin:"6px 0 0"}},ue={key:1,class:"empty",style:{"margin-top":"12px"}},de={key:2,class:"btn-row",style:{"margin-top":"16px","justify-content":"space-between","align-items":"center"},"aria-label":"Strony"},pe=["disabled"],ce={class:"muted small nums"},ve=["disabled"],fe=V({__name:"MaterialsView",setup(ye){const h=j(),o=W({course:"",type:"",tag:""}),i=m(1),u=m(null),b=m(!1),g=m(""),k=m(new Map);$(()=>{h.loadCourses(),_()});let f=0;async function _(){const r=++f;b.value=!0,g.value="";try{const t=await D.materials({course:o.course?Number(o.course):null,type:o.type||null,tag:o.tag||null,page:i.value});if(r!==f)return;u.value=t;for(const w of t.data)for(const e of w.tags)k.value.set(e.slug,e);k.value=new Map(k.value)}catch(t){r===f&&(g.value=E(t))}finally{r===f&&(b.value=!1)}}P(o,()=>{i.value=1,_()});function C(r){i.value=r,_(),window.scrollTo({top:0})}const x=M(()=>[...k.value.values()].sort((r,t)=>r.name.localeCompare(t.name,"pl"))),z=M(()=>!!(o.course||o.type||o.tag)),T=()=>Object.assign(o,{course:"",type:"",tag:""});return(r,t)=>{const w=q("router-link");return s(),a("div",null,[A(H,{eyebrow:"Notatki, PDF-y, linki",title:"Materiały"}),l("form",{class:"grid-2",style:{"margin-bottom":"8px"},onSubmit:t[2]||(t[2]=F(()=>{},["prevent"]))},[l("div",R,[t[7]||(t[7]=l("label",{for:"f-course"},"Przedmiot",-1)),N(l("select",{id:"f-course","onUpdate:modelValue":t[0]||(t[0]=e=>o.course=e)},[t[6]||(t[6]=l("option",{value:""},"Wszystkie",-1)),(s(!0),a(c,null,v(y(h).visibleCourses,e=>(s(),a("option",{key:e.id,value:String(e.id)},n(e.name)+" ("+n(e.form==="wyklad"?"wykład":e.form==="cwiczenia"?"ćwiczenia":e.form)+")",9,Y))),128))],512),[[B,o.course]])]),l("div",J,[t[9]||(t[9]=l("label",{for:"f-type"},"Rodzaj",-1)),N(l("select",{id:"f-type","onUpdate:modelValue":t[1]||(t[1]=e=>o.type=e)},[t[8]||(t[8]=l("option",{value:""},"Wszystkie",-1)),(s(!0),a(c,null,v(y(S),(e,p)=>(s(),a("option",{key:p,value:p},n(e),9,K))),128))],512),[[B,o.type]])])],32),x.value.length?(s(),a("div",Q,[(s(!0),a(c,null,v(x.value,e=>(s(),a("button",{key:e.slug,class:"chip",type:"button","aria-pressed":o.tag===e.slug,onClick:p=>o.tag=o.tag===e.slug?"":e.slug},n(e.name),9,X))),128))])):d("",!0),z.value?(s(),a("button",{key:1,class:"linkish small",type:"button",onClick:T},"Wyczyść filtry")):d("",!0),g.value?(s(),a("div",Z,[L(n(g.value)+" ",1),l("button",{class:"linkish",type:"button",onClick:t[3]||(t[3]=e=>_())},"Spróbuj ponownie")])):u.value?(s(),a(c,{key:4},[u.value.data.length?(s(),a("div",{key:0,class:"stack",style:{"margin-top":"12px"},"aria-busy":b.value},[(s(!0),a(c,null,v(u.value.data,e=>(s(),U(w,{key:e.id,to:`/materialy/${e.id}`,class:"card link"},{default:G(()=>[l("div",se,[l("h3",null,n(e.title),1),l("span",ae,n(y(S)[e.type]),1)]),l("p",le,[e.course?(s(),a("span",oe,n(e.course.name),1)):d("",!0),e.published_at?(s(),a("span",ne," · "+n(y(I)(e.published_at)),1)):d("",!0),e.files_count?(s(),a("span",ie," · "+n(y(O)(e.files_count,"plik","pliki","plików")),1)):d("",!0)]),e.tags.length?(s(),a("p",re,[(s(!0),a(c,null,v(e.tags,p=>(s(),a("span",{key:p.id,class:"badge",style:{"margin-right":"4px"}},n(p.name),1))),128))])):d("",!0)]),_:2},1032,["to"]))),128))],8,te)):(s(),a("p",ue,n(z.value?"Nic nie pasuje do filtrów.":"Nie ma jeszcze żadnych materiałów."),1)),u.value.meta.last_page>1?(s(),a("nav",de,[l("button",{class:"btn small",type:"button",disabled:i.value<=1,onClick:t[4]||(t[4]=e=>C(i.value-1))},"← Poprzednia",8,pe),l("span",ce,n(i.value)+" / "+n(u.value.meta.last_page),1),l("button",{class:"btn small",type:"button",disabled:i.value>=u.value.meta.last_page,onClick:t[5]||(t[5]=e=>C(i.value+1))},"Następna →",8,ve)])):d("",!0)],64)):(s(),a("div",ee,[...t[10]||(t[10]=[l("div",{class:"skeleton"},null,-1),l("div",{class:"skeleton"},null,-1)])]))])}}});export{fe as default}; diff --git a/public/assets/MoreView-DCK1_hNZ.js b/public/assets/MoreView-DOB3EP92.js similarity index 84% rename from public/assets/MoreView-DCK1_hNZ.js rename to public/assets/MoreView-DOB3EP92.js index ac75c96..a834582 100644 --- a/public/assets/MoreView-DCK1_hNZ.js +++ b/public/assets/MoreView-DOB3EP92.js @@ -1 +1 @@ -import{_ as d}from"./PageHead.vue_vue_type_script_setup_true_lang-CmzkJbRP.js";import{d as u,u as _,c as i,h as a,a as t,F as p,y,b as r,t as o,o as l,i as h,_ as f,k as b}from"./index-D5YFSKUV.js";const g={class:"stack"},k={class:"row-main",style:{"align-items":"center"}},w={class:"muted small"},C=u({__name:"MoreView",setup(z){const n=_(),c=[{to:"/terminarz",label:"Terminarz",hint:"Zaliczenia, egzaminy, sprawy organizacyjne",icon:"flag"},{to:"/przedmioty",label:"Przedmioty",hint:"Program studiów, prowadzący, materiały",icon:"grad"},{to:"/materialy",label:"Materiały",hint:"Notatki, PDF-y, linki",icon:"file"},{to:"/profil",label:"Profil",hint:"Dane, hasło, wybór przedmiotów",icon:"user"}];return(v,s)=>{const m=b("router-link");return l(),i("div",null,[a(d,{eyebrow:"Pozostałe",title:"Więcej"}),t("div",g,[(l(),i(p,null,y(c,e=>a(m,{key:e.to,to:e.to,class:"card link"},{default:h(()=>[t("div",k,[t("div",null,[t("h3",null,o(e.label),1),t("span",w,o(e.hint),1)]),a(f,{name:"chevron",style:{width:"20px",height:"20px"}})])]),_:2},1032,["to"])),64)),t("button",{class:"btn miss",type:"button",onClick:s[0]||(s[0]=e=>r(n).logout())},"Wyloguj ("+o(r(n).displayName)+")",1)])])}}});export{C as default}; +import{_ as d}from"./PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js";import{d as u,u as _,c as i,h as a,a as t,F as p,y,b as r,t as o,o as l,i as h,_ as f,k as b}from"./index-Bm0qbefx.js";const g={class:"stack"},k={class:"row-main",style:{"align-items":"center"}},w={class:"muted small"},C=u({__name:"MoreView",setup(z){const n=_(),c=[{to:"/terminarz",label:"Terminarz",hint:"Zaliczenia, egzaminy, sprawy organizacyjne",icon:"flag"},{to:"/przedmioty",label:"Przedmioty",hint:"Program studiów, prowadzący, materiały",icon:"grad"},{to:"/materialy",label:"Materiały",hint:"Notatki, PDF-y, linki",icon:"file"},{to:"/profil",label:"Profil",hint:"Dane, hasło, wybór przedmiotów",icon:"user"}];return(v,s)=>{const m=b("router-link");return l(),i("div",null,[a(d,{eyebrow:"Pozostałe",title:"Więcej"}),t("div",g,[(l(),i(p,null,y(c,e=>a(m,{key:e.to,to:e.to,class:"card link"},{default:h(()=>[t("div",k,[t("div",null,[t("h3",null,o(e.label),1),t("span",w,o(e.hint),1)]),a(f,{name:"chevron",style:{width:"20px",height:"20px"}})])]),_:2},1032,["to"])),64)),t("button",{class:"btn miss",type:"button",onClick:s[0]||(s[0]=e=>r(n).logout())},"Wyloguj ("+o(r(n).displayName)+")",1)])])}}});export{C as default}; diff --git a/public/assets/NotFoundView-ymGOdYTB.js b/public/assets/NotFoundView-DmCjuaxt.js similarity index 74% rename from public/assets/NotFoundView-ymGOdYTB.js rename to public/assets/NotFoundView-DmCjuaxt.js index 740f801..45addfa 100644 --- a/public/assets/NotFoundView-ymGOdYTB.js +++ b/public/assets/NotFoundView-DmCjuaxt.js @@ -1 +1 @@ -import{o as r,c,a as o,h as l,i,m as d,k as p}from"./index-D5YFSKUV.js";const _=(s,e)=>{const t=s.__vccOpts||s;for(const[n,a]of e)t[n]=a;return t},u={},f={class:"stack"};function k(s,e){const t=p("router-link");return r(),c("div",f,[e[1]||(e[1]=o("header",{class:"page-head"},[o("span",{class:"eyebrow"},"404"),o("h1",null,"Nie ma takiej strony")],-1)),o("p",null,[l(t,{to:"/"},{default:i(()=>[...e[0]||(e[0]=[d("Wróć na pulpit",-1)])]),_:1})])])}const x=_(u,[["render",k]]);export{x as default}; +import{o as r,c,a as o,h as l,i,m as d,k as p}from"./index-Bm0qbefx.js";const _=(s,e)=>{const t=s.__vccOpts||s;for(const[n,a]of e)t[n]=a;return t},u={},f={class:"stack"};function k(s,e){const t=p("router-link");return r(),c("div",f,[e[1]||(e[1]=o("header",{class:"page-head"},[o("span",{class:"eyebrow"},"404"),o("h1",null,"Nie ma takiej strony")],-1)),o("p",null,[l(t,{to:"/"},{default:i(()=>[...e[0]||(e[0]=[d("Wróć na pulpit",-1)])]),_:1})])])}const x=_(u,[["render",k]]);export{x as default}; diff --git a/public/assets/PageHead.vue_vue_type_script_setup_true_lang-CmzkJbRP.js b/public/assets/PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js similarity index 84% rename from public/assets/PageHead.vue_vue_type_script_setup_true_lang-CmzkJbRP.js rename to public/assets/PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js index 1bf7892..ec6aafd 100644 --- a/public/assets/PageHead.vue_vue_type_script_setup_true_lang-CmzkJbRP.js +++ b/public/assets/PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js @@ -1 +1 @@ -import{d as r,c as s,t as o,e as c,a as t,M as d,o as a}from"./index-D5YFSKUV.js";const l={class:"page-head"},i={key:0,class:"eyebrow"},_={class:"row"},h={class:"btn-row"},u=r({__name:"PageHead",props:{eyebrow:{},title:{}},setup(e){return(n,m)=>(a(),s("header",l,[e.eyebrow?(a(),s("span",i,o(e.eyebrow),1)):c("",!0),t("div",_,[t("h1",null,o(e.title),1),t("div",h,[d(n.$slots,"default")])])]))}});export{u as _}; +import{d as r,c as s,t as o,e as c,a as t,M as d,o as a}from"./index-Bm0qbefx.js";const l={class:"page-head"},i={key:0,class:"eyebrow"},_={class:"row"},h={class:"btn-row"},u=r({__name:"PageHead",props:{eyebrow:{},title:{}},setup(e){return(n,m)=>(a(),s("header",l,[e.eyebrow?(a(),s("span",i,o(e.eyebrow),1)):c("",!0),t("div",_,[t("h1",null,o(e.title),1),t("div",h,[d(n.$slots,"default")])])]))}});export{u as _}; diff --git a/public/assets/PresentationPublicView-C_hYF7I1.js b/public/assets/PresentationPublicView-C_hYF7I1.js new file mode 100644 index 0000000..603f225 --- /dev/null +++ b/public/assets/PresentationPublicView-C_hYF7I1.js @@ -0,0 +1 @@ +import{L as H,d as T,q as L,K as j,S as _,A as q,c as x,B,T as N,a as r,t as S,F as M,y as P,e as C,r as b,s as D,o as m,b as $,x as R,R as z}from"./index-Bm0qbefx.js";const I={publicDeck:o=>H.request(`/_presentations/api/v1/public/${encodeURIComponent(o)}`,{auth:!1})},E=':host{--paper: #e9ebe3;--paper-2: #dfe2d8;--ink: #16201f;--ink-2: #4b5551;--rule: #b9beb3;--empire: #b5302c;--khaki: #7f7047;--display: "Libre Caslon Display", "Times New Roman", Georgia, serif;--body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;--mono: "Courier Prime", "Courier New", Courier, monospace}@media(prefers-color-scheme:dark){:host:not([data-theme=light]){--paper: #141a18;--paper-2: #1c2421;--ink: #e4e4da;--ink-2: #a7ada4;--rule: #3a443f;--empire: #e0675f;--khaki: #c2ad72;color-scheme:dark}}:host[data-theme=dark]{--paper: #141a18;--paper-2: #1c2421;--ink: #e4e4da;--ink-2: #a7ada4;--rule: #3a443f;--empire: #e0675f;--khaki: #c2ad72;color-scheme:dark}*{box-sizing:border-box}:host,.deck{height:100%;margin:0}.deck{position:relative;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:24px;line-height:1.4;overflow:hidden}h1,h2,h3{font-family:var(--display);font-weight:400;margin:0;text-wrap:balance;line-height:1.08}p{margin:0}ul{margin:0;padding-left:1.1em}li{margin-block:.25em}li::marker{color:var(--empire)}em{font-style:italic}strong{font-weight:600}a{color:inherit}.k{font-family:var(--mono);font-size:.72em;letter-spacing:.08em;text-transform:uppercase;color:var(--khaki)}.red{color:var(--empire)}.muted{color:var(--ink-2)}.small{font-size:.78em;line-height:1.35}.bib{font-size:17px;line-height:1.3;gap:36px}.bib li{margin-block:.2em}.bib .k{font-size:13px;margin-bottom:6px}#stage{position:absolute;left:50%;top:50%;width:1280px;height:720px;transform-origin:0 0}.slide{position:absolute;inset:0;display:none;padding:64px 88px 72px;background:var(--paper);grid-template-rows:auto 1fr;gap:28px}.slide.on{display:grid}.slide.special{border-top:6px solid var(--khaki)}.sp-close{position:absolute;top:18px;right:22px;width:44px;height:44px;border:1px solid var(--rule);background:transparent;color:var(--ink-2);font-size:28px;line-height:1;cursor:pointer}.sp-link{border-bottom:2px dotted var(--empire);cursor:pointer}.slide>header{display:grid;gap:10px}.slide>header h2{font-size:50px}.slide .body{min-height:0;display:grid;gap:22px;align-content:start}.cols{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:start}.cols>*{min-width:0}.cols.w{grid-template-columns:1.3fr 1fr}.rule-top{border-top:1px solid var(--rule);padding-top:16px}.note{font-size:20px;color:var(--ink-2);border-left:3px solid var(--empire);padding-left:14px}.quote{font-family:var(--display);font-size:34px;line-height:1.25}.quote+.k{margin-top:6px}.slide.sec{grid-template-rows:1fr;align-content:center;background:var(--paper-2)}.slide.sec .k{font-size:20px}.slide.sec h2{font-size:72px;max-width:18ch;margin-top:12px}.slide.sec p{font-size:26px;color:var(--ink-2);max-width:44ch;margin-top:22px}.slide.title{grid-template-rows:1fr auto;background:var(--paper-2)}.slide.title h1{font-size:86px;max-width:14ch}.slide.title .sub{font-size:30px;color:var(--ink-2);margin-top:20px;font-family:var(--display)}.slide.title footer{display:flex;justify-content:space-between;align-items:end;border-top:1px solid var(--rule);padding-top:18px;font-size:20px}.tl{display:grid;grid-template-columns:max-content 1fr;column-gap:26px;row-gap:8px;font-size:22px;align-content:start}.tl .y{font-family:var(--mono);color:var(--empire);font-variant-numeric:tabular-nums}.tl.compact{font-size:20px;row-gap:6px}table{border-collapse:collapse;width:100%;font-size:21px}th,td{text-align:left;vertical-align:top;padding:8px 12px 8px 0;border-bottom:1px solid var(--rule)}th{font-family:var(--mono);font-weight:400;font-size:16px;letter-spacing:.08em;text-transform:uppercase;color:var(--khaki)}.people{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.p{border-top:2px solid var(--empire);padding-top:10px;font-size:20px;line-height:1.35;min-width:0}.p b{display:block;font-family:var(--display);font-weight:400;font-size:26px;margin-bottom:4px}.theses{display:grid;gap:18px;counter-reset:t}.theses>div{display:grid;grid-template-columns:56px 1fr;gap:14px;align-items:start}.theses>div:before{counter-increment:t;content:counter(t);font-family:var(--display);font-size:48px;line-height:1;color:var(--empire)}.theses b{font-weight:600}.body.v2{grid-template-rows:1fr;align-content:stretch;gap:20px}.body.v2>:first-child{align-self:start}.body.v2>.people+.cols{align-self:start}.pts{font-size:28px;line-height:1.3}.pts li{margin-block:.4em}.tl.big{font-size:26px;row-gap:10px}table.big{font-size:24px}.sum{font-family:var(--display);font-size:30px;line-height:1.25;border-top:2px solid var(--empire);padding-top:14px;align-self:end;text-wrap:balance}.body.v2 .p{font-size:22px}.body.v2 .theses{font-size:30px;gap:26px}.body.v2 .theses>div{align-items:center}.notes .full{opacity:.9}@media(max-width:900px)and (orientation:portrait){.pts{font-size:17px}.tl.big{font-size:16px}table.big{font-size:15px}.sum{font-size:20px}.body.v2 .p{font-size:16px}}#bar{position:fixed;left:0;right:0;bottom:0;height:4px;background:var(--rule)}#bar i{display:block;height:100%;width:0;background:var(--empire);transition:width .25s}#meta{position:fixed;right:20px;bottom:12px;font-family:var(--mono);font-size:14px;color:var(--ink-2);letter-spacing:.06em}#meta b{font-weight:400;color:var(--ink)}#sect{position:fixed;left:20px;bottom:12px;font-family:var(--mono);font-size:14px;color:var(--ink-2);letter-spacing:.08em;text-transform:uppercase}.notes,.srcs{display:none}.deck.notes-on .notes,.deck.srcs-on .srcs{display:block;position:absolute;left:0;right:0;bottom:0;max-height:46%;overflow:auto;background:var(--ink);color:var(--paper);padding:18px 88px;font-size:19px;line-height:1.45}.notes:before,.srcs:before{display:block;font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;margin-bottom:6px;opacity:.7}.notes:before{content:"Komentarz · N"}.srcs:before{content:"Źródła · Z"}.srcs ul{margin:0;padding-left:1.1em}.srcs li+li{margin-top:.35em}.deck.notes-on .notes p+p{margin-top:.5em}.deck.notes-on #nav,.deck.srcs-on #nav{bottom:50%}#nav{position:fixed;inset:0;display:grid;grid-template-columns:1fr 2fr 1fr}#nav button{background:transparent;border:0;cursor:pointer;opacity:0;font-size:0}#nav button:focus-visible{outline:3px solid var(--empire);opacity:1}#nav .mid{pointer-events:none}.status-retry{margin-top:28px;font:16px var(--mono);letter-spacing:.04em;color:var(--ink);background:var(--paper);border:1px solid var(--rule);min-height:44px;padding:8px 16px;cursor:pointer}.status-retry:focus-visible{outline:3px solid var(--empire)}@media(max-width:900px)and (orientation:portrait){.deck{overflow:auto;font-size:17px}#stage{position:static;width:auto;height:auto;transform:none!important;padding:0 16px;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}.slide{position:static;display:grid!important;padding:28px 0;border-bottom:1px solid var(--rule);gap:16px}.slide>header h2{font-size:30px}.slide.sec h2{font-size:36px}.slide.sec p{font-size:18px}.slide.title h1{font-size:40px}.slide.title .sub{font-size:20px}.slide.title footer{flex-direction:column;align-items:start;gap:6px;font-size:15px}.cols,.cols.w{grid-template-columns:1fr;gap:16px}.people{grid-template-columns:1fr}.tl,.tl.compact{font-size:16px}table{font-size:15px}.quote{font-size:22px}.note,.p{font-size:16px}.p b{font-size:20px}.theses>div{grid-template-columns:36px 1fr}.theses>div:before{font-size:30px}.notes,.srcs{display:block;margin-top:10px;padding:12px 14px;background:var(--paper-2);font-size:15px;color:var(--ink-2);border-left:3px solid var(--khaki)}.notes p+p{margin-top:.5em}#bar,#meta,#sect,#nav,.sp-close{display:none}}@media print{.deck{overflow:visible;background:#fff;color:#000}#stage{position:static;width:auto;height:auto;transform:none!important}.slide{position:static;display:grid!important;page-break-after:always;height:100vh}#bar,#meta,#sect,#nav,.notes,.srcs,.sp-close{display:none!important}}@media(prefers-reduced-motion:reduce){#bar i{transition:none}}',V=/^[a-z][a-z0-9-]*$/;function A(o){return`${o.special?'':""}${o.body_html}`}function U(o,u={}){const s=["slide"];for(const f of o.split(/\s+/))V.test(f)&&s.push(f);return u.special&&s.push("special"),u.on&&s.push("on"),s.join(" ")}const Z=["aria-busy"],F={id:"stage"},K={key:0,class:"slide sec on","aria-busy":"true"},O={key:1,class:"slide sec on"},W={key:2,class:"slide sec on"},G={key:3,class:"slide sec on"},Q=["id","innerHTML"],J="(max-width: 900px) and (orientation: portrait)",X=T({__name:"DeckViewer",props:{phase:{},deck:{},error:{}},emits:["retry"],setup(o,{emit:u}){const s=o,f=u,p=b(null),h=b(null),d=b(null),c=b("");function v(){const i=c.value.match(/^#(\d+)(s)?$/);return i?i[2]?`${i[1]}s`:i[1]:""}const k=D(()=>{const i=s.deck?.slides??[],t=v(),e=[];for(const a of i){const y=String(a.number);if(e.push({id:y,slide:a,special:!1,on:y===t}),a.special){const w=`${a.number}s`;e.push({id:w,slide:a.special,special:!0,on:w===t})}}if(e.length>0&&!e.some(a=>a.on)){const a=e.find(y=>!y.special)??e[0];a.on=!0}return e});function l(){const i=h.value?.getElementById("stage"),t=p.value;if(!i||!t)return;if(window.matchMedia(J).matches){i.style.transform="";return}const e=Math.min(t.clientWidth/1280,t.clientHeight/720);i.style.transform=`translate(${-640*e}px, ${-360*e}px) scale(${e})`}function g(){c.value=window.location.hash}let n=null;return L(()=>{const i=p.value;if(!i)return;const t=i.attachShadow({mode:"open"});h.value=t;try{const a=new CSSStyleSheet;a.replaceSync(E),t.adoptedStyleSheets=[a]}catch{const a=document.createElement("style");a.textContent=E,t.appendChild(a)}const e=document.createElement("div");e.className="deck",t.appendChild(e),d.value=e,c.value=window.location.hash,window.addEventListener("hashchange",g),n=new ResizeObserver(()=>l()),n.observe(i),j(l)}),_(()=>{window.removeEventListener("hashchange",g),n?.disconnect()}),q([()=>s.phase,k,c],()=>{j(l)}),(i,t)=>(m(),x("div",{ref_key:"host",ref:p,class:"deck-host","aria-busy":o.phase==="loading"?"true":void 0},[d.value?(m(),B(N,{key:0,to:d.value},[r("div",F,[o.phase==="loading"?(m(),x("section",K,[...t[1]||(t[1]=[r("div",null,[r("p",{class:"k"},"Wczytywanie prezentacji…")],-1)])])):o.phase==="notfound"?(m(),x("section",O,[...t[2]||(t[2]=[r("div",null,[r("p",{class:"k"},"404"),r("h2",null,"Nie ma takiej prezentacji"),r("p",null,"Link jest nieaktualny albo prezentacja nie jest już udostępniona.")],-1)])])):o.phase==="error"?(m(),x("section",W,[r("div",null,[t[3]||(t[3]=r("p",{class:"k"},"Błąd",-1)),t[4]||(t[4]=r("h2",null,"Nie udało się wczytać prezentacji",-1)),r("p",null,S(o.error),1),r("button",{type:"button",class:"status-retry",onClick:t[0]||(t[0]=e=>f("retry"))},"Spróbuj ponownie")])])):o.phase==="empty"?(m(),x("section",G,[r("div",null,[r("h2",null,S(o.deck?.title),1),t[5]||(t[5]=r("p",null,"Ta prezentacja nie ma jeszcze slajdów.",-1))])])):o.phase==="ready"?(m(!0),x(M,{key:4},P(k.value,e=>(m(),x("section",{id:e.id,key:e.id,class:R($(U)(e.slide.css_class,{special:e.special,on:e.on})),innerHTML:$(A)({body_html:e.slide.body_html,comment_html:e.slide.comment_html,sources_html:e.slide.sources_html,special:e.special})},null,10,Q))),128)):C("",!0)])],8,["to"])):C("",!0)],8,Z))}}),Y="Sprawdź połączenie z internetem i spróbuj ponownie.",ee="Za dużo żądań w krótkim czasie. Odczekaj minutę i spróbuj ponownie.",oe=T({__name:"PresentationPublicView",props:{slugHash:{}},setup(o){const u=o,s=b("pending"),f=b(null),p=b("");let h=0,d=0;function c(){h&&window.clearTimeout(h),h=0}async function v(l){const g=++d;c(),s.value="pending",f.value=null,p.value="",h=window.setTimeout(()=>{g===d&&s.value==="pending"&&(s.value="loading")},200);try{const n=await I.publicDeck(l);if(g!==d)return;c();const i=n.slides??[];f.value={...n,slides:i},n.title&&(document.title=n.title),s.value=i.length===0?"empty":"ready"}catch(n){if(g!==d)return;if(c(),n instanceof z&&n.status===404){s.value="notfound";return}n instanceof z&&n.status===429?p.value=ee:n instanceof z&&n.message?p.value=n.message:p.value=Y,s.value="error"}}function k(){v(u.slugHash)}return q(()=>u.slugHash,l=>{v(l)},{immediate:!0}),L(()=>{if(document.documentElement.classList.add("deck-public"),!document.querySelector('meta[data-deck-public="1"]')){const l=document.createElement("meta");l.name="robots",l.content="noindex",l.dataset.deckPublic="1",document.head.appendChild(l)}}),_(()=>{d+=1,c(),document.documentElement.classList.remove("deck-public"),document.querySelector('meta[data-deck-public="1"]')?.remove()}),(l,g)=>(m(),B(X,{phase:s.value,deck:f.value,error:p.value,onRetry:k},null,8,["phase","deck","error"]))}});export{oe as default}; diff --git a/public/assets/PresentationPublicView-Cfps4bfr.css b/public/assets/PresentationPublicView-Cfps4bfr.css new file mode 100644 index 0000000..7c68ead --- /dev/null +++ b/public/assets/PresentationPublicView-Cfps4bfr.css @@ -0,0 +1 @@ +.deck-host{position:fixed;inset:0}html.deck-public,html.deck-public body{height:100%;margin:0;background:#e9ebe3;overflow:hidden}@media(max-width:900px)and (orientation:portrait){html.deck-public,html.deck-public body{overflow:auto}}@media(prefers-color-scheme:dark){html.deck-public,html.deck-public body{background:#141a18}}@media print{html.deck-public,html.deck-public body{overflow:visible;background:#fff}} diff --git a/public/assets/ProfileView-CpeFz2WO.js b/public/assets/ProfileView--Mea7hJf.js similarity index 98% rename from public/assets/ProfileView-CpeFz2WO.js rename to public/assets/ProfileView--Mea7hJf.js index ef9067f..da62b5a 100644 --- a/public/assets/ProfileView-CpeFz2WO.js +++ b/public/assets/ProfileView--Mea7hJf.js @@ -1 +1 @@ -import{d as L,u as O,p as S,C as $,N as E,O as W,q as A,I as U,c as l,h as M,a as e,g as V,t as i,e as r,w as b,v as k,b as o,F as j,y as N,m as D,r as y,P as J,o as n,Q as q,n as H}from"./index-D5YFSKUV.js";import{_ as Q}from"./PageHead.vue_vue_type_script_setup_true_lang-CmzkJbRP.js";import{f as Z}from"./forms-wljlKyMv.js";const R={class:"card","aria-labelledby":"dane-h"},X={key:0,class:"notice error",role:"alert",style:{"margin-bottom":"12px"}},Y={key:1,class:"notice",role:"status",style:{"margin-bottom":"12px"}},ee={class:"grid-2"},se={class:"field"},oe={key:0,class:"error-text"},ae={class:"field"},te={key:0,class:"error-text"},le={class:"field"},ne={key:0,class:"error-text"},ie=["disabled"],re={id:"wybor",class:"card section","aria-labelledby":"wybor-h"},de={key:0,class:"skeleton"},ue={key:1,class:"muted"},pe={class:"eyebrow",style:{padding:"0","margin-bottom":"6px"}},me=["name","value","checked","onChange"],ce={key:0,class:"muted small",style:{margin:"4px 0 0"}},ye=["onClick"],we={id:"kalendarz",class:"card section","aria-labelledby":"kalendarz-h"},be={key:0,class:"notice error",role:"alert",style:{margin:"12px 0"}},ke={key:1,class:"skeleton",style:{"margin-top":"12px"}},fe={key:2,style:{"margin-top":"12px"}},ze=["disabled"],ve={class:"field",style:{"margin-top":"12px"}},ge={style:{display:"flex",gap:"8px"}},_e=["value"],he={key:0,class:"muted small",style:{margin:"0"}},xe={class:"check"},je=["checked","disabled"],Ce={class:"check"},Pe=["checked","disabled"],Ue={class:"btn-row",style:{"margin-top":"12px"}},Ve=["disabled"],Ne=["disabled"],De={class:"card section","aria-labelledby":"haslo-h"},Ze={key:0,class:"notice error",role:"alert",style:{"margin-bottom":"12px"}},Fe={key:1,class:"notice",role:"status",style:{"margin-bottom":"12px"}},Ke={class:"field"},Te={key:0,class:"error-text"},Ge={class:"field"},Be={key:0,class:"error-text"},Ie={class:"field"},Le=["disabled"],Oe={class:"section"},Me=L({__name:"ProfileView",setup(Se){const f=O(),z=S(),v=$(),t=E(),C=W();A(()=>{z.loadCourses(),t.load()});const P=y(null);async function F(){const m=t.feed?.url;m&&(await J(m)?C.show("Skopiowano link do schowka."):(P.value?.select(),C.show("Nie udało się skopiować. Link jest zaznaczony: skopiuj go ręcznie.")))}function K(){window.confirm("Wygenerować nowy link? Stary przestanie działać i kalendarze, które go subskrybują, trzeba będzie dodać od nowa.")&&t.rotate()}function T(){window.confirm("Usunąć link do kalendarza? Kalendarze, które go subskrybują, przestaną się aktualizować.")&&t.remove()}function G(m){return new Date(m).toLocaleString("pl-PL",{day:"numeric",month:"long",hour:"2-digit",minute:"2-digit"})}const p=U({name:f.user?.name??"",surname:f.user?.surname??"",email:f.user?.email??""}),g=y(!1),d=y(null),h=y(!1);async function B(){g.value=!0,d.value=null,h.value=!1;try{await f.updateProfile({name:p.name.trim(),surname:p.surname.trim(),email:p.email.trim()}),h.value=!0}catch(m){d.value=Z(m)}finally{g.value=!1}}const u=U({current_password:"",password:"",password_confirmation:""}),_=y(!1),c=y(null),x=y(!1);async function I(){_.value=!0,c.value=null,x.value=!1;try{await H.changePassword({...u}),x.value=!0,Object.assign(u,{current_password:"",password:"",password_confirmation:""})}catch(m){c.value=Z(m)}finally{_.value=!1}}return(m,s)=>(n(),l("div",null,[M(Q,{eyebrow:"Konto",title:"Profil"}),e("section",R,[s[14]||(s[14]=e("h2",{id:"dane-h",style:{"margin-bottom":"12px"}},"Dane",-1)),e("form",{onSubmit:V(B,["prevent"]),novalidate:""},[d.value?.message?(n(),l("p",X,i(d.value.message),1)):r("",!0),h.value?(n(),l("p",Y,"Zapisano.")):r("",!0),e("div",ee,[e("div",se,[s[11]||(s[11]=e("label",{for:"p-name"},"Imię",-1)),b(e("input",{id:"p-name","onUpdate:modelValue":s[0]||(s[0]=a=>p.name=a),type:"text",autocomplete:"given-name"},null,512),[[k,p.name]]),d.value?.fields.name?(n(),l("p",oe,i(d.value.fields.name),1)):r("",!0)]),e("div",ae,[s[12]||(s[12]=e("label",{for:"p-surname"},"Nazwisko",-1)),b(e("input",{id:"p-surname","onUpdate:modelValue":s[1]||(s[1]=a=>p.surname=a),type:"text",autocomplete:"family-name"},null,512),[[k,p.surname]]),d.value?.fields.surname?(n(),l("p",te,i(d.value.fields.surname),1)):r("",!0)])]),e("div",le,[s[13]||(s[13]=e("label",{for:"p-email"},"Adres e-mail",-1)),b(e("input",{id:"p-email","onUpdate:modelValue":s[2]||(s[2]=a=>p.email=a),type:"email",autocomplete:"email",inputmode:"email"},null,512),[[k,p.email]]),d.value?.fields.email?(n(),l("p",ne,i(d.value.fields.email),1)):r("",!0)]),e("button",{class:"btn primary",type:"submit",disabled:g.value},i(g.value?"Zapisywanie…":"Zapisz dane"),9,ie)],32)]),e("section",re,[s[15]||(s[15]=e("h2",{id:"wybor-h",style:{"margin-bottom":"6px"}},"Przedmioty do wyboru",-1)),s[16]||(s[16]=e("p",{class:"muted small"},"Z każdej grupy wybierasz jeden przedmiot. Pozostałe znikną z planu, pulpitu i list (można je pokazać przełącznikiem „Pokaż wszystkie”). Wybór zapamiętuje to urządzenie.",-1)),o(z).loaded.courses?o(z).electiveGroups.length?r("",!0):(n(),l("p",ue,"Nie ma teraz przedmiotów do wyboru.")):(n(),l("div",de)),(n(!0),l(j,null,N(o(z).electiveGroups,a=>(n(),l("fieldset",{key:a.code,style:{border:"0",padding:"0",margin:"14px 0 0"}},[e("legend",pe,i(o(q)(a.code)),1),(n(!0),l(j,null,N(a.options,w=>(n(),l("label",{key:w,class:"check"},[e("input",{type:"radio",name:`g-${a.code}`,value:w,checked:o(v).choices[a.code]===w,onChange:$e=>o(v).choose(a.code,w)},null,40,me),e("span",null,i(w),1)]))),128)),o(v).choices[a.code]?(n(),l("button",{key:1,class:"linkish small",type:"button",onClick:w=>o(v).choose(a.code,null)},"Wyczyść wybór",8,ye)):(n(),l("p",ce,"Jeszcze nie wybrano. Do tego czasu widać wszystkie alternatywy."))]))),128))]),e("section",we,[s[23]||(s[23]=e("h2",{id:"kalendarz-h",style:{"margin-bottom":"6px"}},"Kalendarz Google / telefon",-1)),s[24]||(s[24]=e("p",{class:"muted small"}," Prywatny link do planu zajęć w formacie iCalendar. Dodaj go w Kalendarzu Google albo w telefonie, a zajęcia pojawią się obok Twoich wydarzeń. Plan uwzględnia przedmioty do wyboru wybrane wyżej. ",-1)),o(t).error?(n(),l("p",be,i(o(t).error),1)):r("",!0),o(t).feed===void 0&&(o(t).loading||!o(t).error)?(n(),l("div",ke)):o(t).feed?(n(),l(j,{key:3},[e("div",ve,[s[17]||(s[17]=e("label",{for:"cal-url"},"Twój link (nie udostępniaj go)",-1)),e("div",ge,[e("input",{id:"cal-url",ref_key:"urlInput",ref:P,class:"mono",type:"text",readonly:"",value:o(t).feed.url,style:{"font-size":"14px","min-width":"0"},onFocus:s[4]||(s[4]=a=>a.target.select())},null,40,_e),e("button",{class:"btn",type:"button",onClick:F},"Kopiuj")]),o(t).feed.last_fetched_at?(n(),l("p",he,"Ostatnio pobrany przez kalendarz: "+i(G(o(t).feed.last_fetched_at))+".",1)):r("",!0)]),e("label",xe,[e("input",{type:"checkbox",checked:o(t).feed.include_meetings,disabled:o(t).busy,onChange:s[5]||(s[5]=a=>o(t).save({include_meetings:a.target.checked}))},null,40,je),s[18]||(s[18]=e("span",null,"Zjazdy jako wydarzenia całodniowe",-1))]),e("label",Ce,[e("input",{type:"checkbox",checked:o(t).feed.include_deadlines,disabled:o(t).busy,onChange:s[6]||(s[6]=a=>o(t).save({include_deadlines:a.target.checked}))},null,40,Pe),s[19]||(s[19]=e("span",null,"Terminy z terminarza",-1))]),e("div",Ue,[e("button",{class:"btn small ghost",type:"button",disabled:o(t).busy,onClick:K},"Wygeneruj nowy link",8,Ve),e("button",{class:"btn small miss",type:"button",disabled:o(t).busy,onClick:T},"Usuń link",8,Ne)]),s[20]||(s[20]=e("h3",{class:"eyebrow",style:{margin:"18px 0 6px"}},"Jak dodać",-1)),s[21]||(s[21]=e("ol",{class:"small",style:{margin:"0","padding-left":"20px",display:"grid",gap:"6px"}},[e("li",null,[e("b",null,"Kalendarz Google"),D(" (na komputerze, calendar.google.com): po lewej przy „Inne kalendarze” kliknij „+”, wybierz „Z adresu URL”, wklej link i kliknij „Dodaj kalendarz”. Na telefonie z Androidem kalendarz pojawi się sam po synchronizacji konta Google. ")]),e("li",null,[e("b",null,"iPhone / iPad"),D(": Ustawienia → Kalendarz → Konta → Dodaj konto → Inne → Dodaj subskrybowany kalendarz, wklej link i zapisz. ")])],-1)),s[22]||(s[22]=e("p",{class:"muted small",style:{margin:"10px 0 0"}}," Google odświeża subskrybowane kalendarze co kilka godzin, nie od razu: zmiana planu albo wyboru przedmiotów pojawi się w kalendarzu z opóźnieniem. ",-1))],64)):(n(),l("div",fe,[e("button",{class:"btn primary",type:"button",disabled:o(t).busy,onClick:s[3]||(s[3]=a=>o(t).create())},i(o(t).busy?"Tworzenie…":"Utwórz link do kalendarza"),9,ze)]))]),e("section",De,[s[28]||(s[28]=e("h2",{id:"haslo-h",style:{"margin-bottom":"12px"}},"Zmiana hasła",-1)),e("form",{onSubmit:V(I,["prevent"]),novalidate:""},[c.value?.message?(n(),l("p",Ze,i(c.value.message),1)):r("",!0),x.value?(n(),l("p",Fe,"Hasło zostało zmienione.")):r("",!0),e("div",Ke,[s[25]||(s[25]=e("label",{for:"pw-current"},"Obecne hasło",-1)),b(e("input",{id:"pw-current","onUpdate:modelValue":s[7]||(s[7]=a=>u.current_password=a),type:"password",autocomplete:"current-password"},null,512),[[k,u.current_password]]),c.value?.fields.current_password?(n(),l("p",Te,i(c.value.fields.current_password),1)):r("",!0)]),e("div",Ge,[s[26]||(s[26]=e("label",{for:"pw-new"},"Nowe hasło (min. 8 znaków)",-1)),b(e("input",{id:"pw-new","onUpdate:modelValue":s[8]||(s[8]=a=>u.password=a),type:"password",autocomplete:"new-password"},null,512),[[k,u.password]]),c.value?.fields.password?(n(),l("p",Be,i(c.value.fields.password),1)):r("",!0)]),e("div",Ie,[s[27]||(s[27]=e("label",{for:"pw-confirm"},"Powtórz nowe hasło",-1)),b(e("input",{id:"pw-confirm","onUpdate:modelValue":s[9]||(s[9]=a=>u.password_confirmation=a),type:"password",autocomplete:"new-password"},null,512),[[k,u.password_confirmation]])]),e("button",{class:"btn primary",type:"submit",disabled:_.value||!u.current_password||!u.password},i(_.value?"Zapisywanie…":"Zmień hasło"),9,Le)],32)]),e("section",Oe,[e("button",{class:"btn miss",type:"button",onClick:s[10]||(s[10]=a=>o(f).logout())},"Wyloguj się")])]))}});export{Me as default}; +import{d as L,u as O,p as S,C as $,N as E,O as W,q as A,I as U,c as l,h as M,a as e,g as V,t as i,e as r,w as b,v as k,b as o,F as j,y as N,m as D,r as y,P as J,o as n,Q as q,n as H}from"./index-Bm0qbefx.js";import{_ as Q}from"./PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js";import{f as Z}from"./forms-Baj3w_Pg.js";const R={class:"card","aria-labelledby":"dane-h"},X={key:0,class:"notice error",role:"alert",style:{"margin-bottom":"12px"}},Y={key:1,class:"notice",role:"status",style:{"margin-bottom":"12px"}},ee={class:"grid-2"},se={class:"field"},oe={key:0,class:"error-text"},ae={class:"field"},te={key:0,class:"error-text"},le={class:"field"},ne={key:0,class:"error-text"},ie=["disabled"],re={id:"wybor",class:"card section","aria-labelledby":"wybor-h"},de={key:0,class:"skeleton"},ue={key:1,class:"muted"},pe={class:"eyebrow",style:{padding:"0","margin-bottom":"6px"}},me=["name","value","checked","onChange"],ce={key:0,class:"muted small",style:{margin:"4px 0 0"}},ye=["onClick"],we={id:"kalendarz",class:"card section","aria-labelledby":"kalendarz-h"},be={key:0,class:"notice error",role:"alert",style:{margin:"12px 0"}},ke={key:1,class:"skeleton",style:{"margin-top":"12px"}},fe={key:2,style:{"margin-top":"12px"}},ze=["disabled"],ve={class:"field",style:{"margin-top":"12px"}},ge={style:{display:"flex",gap:"8px"}},_e=["value"],he={key:0,class:"muted small",style:{margin:"0"}},xe={class:"check"},je=["checked","disabled"],Ce={class:"check"},Pe=["checked","disabled"],Ue={class:"btn-row",style:{"margin-top":"12px"}},Ve=["disabled"],Ne=["disabled"],De={class:"card section","aria-labelledby":"haslo-h"},Ze={key:0,class:"notice error",role:"alert",style:{"margin-bottom":"12px"}},Fe={key:1,class:"notice",role:"status",style:{"margin-bottom":"12px"}},Ke={class:"field"},Te={key:0,class:"error-text"},Ge={class:"field"},Be={key:0,class:"error-text"},Ie={class:"field"},Le=["disabled"],Oe={class:"section"},Me=L({__name:"ProfileView",setup(Se){const f=O(),z=S(),v=$(),t=E(),C=W();A(()=>{z.loadCourses(),t.load()});const P=y(null);async function F(){const m=t.feed?.url;m&&(await J(m)?C.show("Skopiowano link do schowka."):(P.value?.select(),C.show("Nie udało się skopiować. Link jest zaznaczony: skopiuj go ręcznie.")))}function K(){window.confirm("Wygenerować nowy link? Stary przestanie działać i kalendarze, które go subskrybują, trzeba będzie dodać od nowa.")&&t.rotate()}function T(){window.confirm("Usunąć link do kalendarza? Kalendarze, które go subskrybują, przestaną się aktualizować.")&&t.remove()}function G(m){return new Date(m).toLocaleString("pl-PL",{day:"numeric",month:"long",hour:"2-digit",minute:"2-digit"})}const p=U({name:f.user?.name??"",surname:f.user?.surname??"",email:f.user?.email??""}),g=y(!1),d=y(null),h=y(!1);async function B(){g.value=!0,d.value=null,h.value=!1;try{await f.updateProfile({name:p.name.trim(),surname:p.surname.trim(),email:p.email.trim()}),h.value=!0}catch(m){d.value=Z(m)}finally{g.value=!1}}const u=U({current_password:"",password:"",password_confirmation:""}),_=y(!1),c=y(null),x=y(!1);async function I(){_.value=!0,c.value=null,x.value=!1;try{await H.changePassword({...u}),x.value=!0,Object.assign(u,{current_password:"",password:"",password_confirmation:""})}catch(m){c.value=Z(m)}finally{_.value=!1}}return(m,s)=>(n(),l("div",null,[M(Q,{eyebrow:"Konto",title:"Profil"}),e("section",R,[s[14]||(s[14]=e("h2",{id:"dane-h",style:{"margin-bottom":"12px"}},"Dane",-1)),e("form",{onSubmit:V(B,["prevent"]),novalidate:""},[d.value?.message?(n(),l("p",X,i(d.value.message),1)):r("",!0),h.value?(n(),l("p",Y,"Zapisano.")):r("",!0),e("div",ee,[e("div",se,[s[11]||(s[11]=e("label",{for:"p-name"},"Imię",-1)),b(e("input",{id:"p-name","onUpdate:modelValue":s[0]||(s[0]=a=>p.name=a),type:"text",autocomplete:"given-name"},null,512),[[k,p.name]]),d.value?.fields.name?(n(),l("p",oe,i(d.value.fields.name),1)):r("",!0)]),e("div",ae,[s[12]||(s[12]=e("label",{for:"p-surname"},"Nazwisko",-1)),b(e("input",{id:"p-surname","onUpdate:modelValue":s[1]||(s[1]=a=>p.surname=a),type:"text",autocomplete:"family-name"},null,512),[[k,p.surname]]),d.value?.fields.surname?(n(),l("p",te,i(d.value.fields.surname),1)):r("",!0)])]),e("div",le,[s[13]||(s[13]=e("label",{for:"p-email"},"Adres e-mail",-1)),b(e("input",{id:"p-email","onUpdate:modelValue":s[2]||(s[2]=a=>p.email=a),type:"email",autocomplete:"email",inputmode:"email"},null,512),[[k,p.email]]),d.value?.fields.email?(n(),l("p",ne,i(d.value.fields.email),1)):r("",!0)]),e("button",{class:"btn primary",type:"submit",disabled:g.value},i(g.value?"Zapisywanie…":"Zapisz dane"),9,ie)],32)]),e("section",re,[s[15]||(s[15]=e("h2",{id:"wybor-h",style:{"margin-bottom":"6px"}},"Przedmioty do wyboru",-1)),s[16]||(s[16]=e("p",{class:"muted small"},"Z każdej grupy wybierasz jeden przedmiot. Pozostałe znikną z planu, pulpitu i list (można je pokazać przełącznikiem „Pokaż wszystkie”). Wybór zapamiętuje to urządzenie.",-1)),o(z).loaded.courses?o(z).electiveGroups.length?r("",!0):(n(),l("p",ue,"Nie ma teraz przedmiotów do wyboru.")):(n(),l("div",de)),(n(!0),l(j,null,N(o(z).electiveGroups,a=>(n(),l("fieldset",{key:a.code,style:{border:"0",padding:"0",margin:"14px 0 0"}},[e("legend",pe,i(o(q)(a.code)),1),(n(!0),l(j,null,N(a.options,w=>(n(),l("label",{key:w,class:"check"},[e("input",{type:"radio",name:`g-${a.code}`,value:w,checked:o(v).choices[a.code]===w,onChange:$e=>o(v).choose(a.code,w)},null,40,me),e("span",null,i(w),1)]))),128)),o(v).choices[a.code]?(n(),l("button",{key:1,class:"linkish small",type:"button",onClick:w=>o(v).choose(a.code,null)},"Wyczyść wybór",8,ye)):(n(),l("p",ce,"Jeszcze nie wybrano. Do tego czasu widać wszystkie alternatywy."))]))),128))]),e("section",we,[s[23]||(s[23]=e("h2",{id:"kalendarz-h",style:{"margin-bottom":"6px"}},"Kalendarz Google / telefon",-1)),s[24]||(s[24]=e("p",{class:"muted small"}," Prywatny link do planu zajęć w formacie iCalendar. Dodaj go w Kalendarzu Google albo w telefonie, a zajęcia pojawią się obok Twoich wydarzeń. Plan uwzględnia przedmioty do wyboru wybrane wyżej. ",-1)),o(t).error?(n(),l("p",be,i(o(t).error),1)):r("",!0),o(t).feed===void 0&&(o(t).loading||!o(t).error)?(n(),l("div",ke)):o(t).feed?(n(),l(j,{key:3},[e("div",ve,[s[17]||(s[17]=e("label",{for:"cal-url"},"Twój link (nie udostępniaj go)",-1)),e("div",ge,[e("input",{id:"cal-url",ref_key:"urlInput",ref:P,class:"mono",type:"text",readonly:"",value:o(t).feed.url,style:{"font-size":"14px","min-width":"0"},onFocus:s[4]||(s[4]=a=>a.target.select())},null,40,_e),e("button",{class:"btn",type:"button",onClick:F},"Kopiuj")]),o(t).feed.last_fetched_at?(n(),l("p",he,"Ostatnio pobrany przez kalendarz: "+i(G(o(t).feed.last_fetched_at))+".",1)):r("",!0)]),e("label",xe,[e("input",{type:"checkbox",checked:o(t).feed.include_meetings,disabled:o(t).busy,onChange:s[5]||(s[5]=a=>o(t).save({include_meetings:a.target.checked}))},null,40,je),s[18]||(s[18]=e("span",null,"Zjazdy jako wydarzenia całodniowe",-1))]),e("label",Ce,[e("input",{type:"checkbox",checked:o(t).feed.include_deadlines,disabled:o(t).busy,onChange:s[6]||(s[6]=a=>o(t).save({include_deadlines:a.target.checked}))},null,40,Pe),s[19]||(s[19]=e("span",null,"Terminy z terminarza",-1))]),e("div",Ue,[e("button",{class:"btn small ghost",type:"button",disabled:o(t).busy,onClick:K},"Wygeneruj nowy link",8,Ve),e("button",{class:"btn small miss",type:"button",disabled:o(t).busy,onClick:T},"Usuń link",8,Ne)]),s[20]||(s[20]=e("h3",{class:"eyebrow",style:{margin:"18px 0 6px"}},"Jak dodać",-1)),s[21]||(s[21]=e("ol",{class:"small",style:{margin:"0","padding-left":"20px",display:"grid",gap:"6px"}},[e("li",null,[e("b",null,"Kalendarz Google"),D(" (na komputerze, calendar.google.com): po lewej przy „Inne kalendarze” kliknij „+”, wybierz „Z adresu URL”, wklej link i kliknij „Dodaj kalendarz”. Na telefonie z Androidem kalendarz pojawi się sam po synchronizacji konta Google. ")]),e("li",null,[e("b",null,"iPhone / iPad"),D(": Ustawienia → Kalendarz → Konta → Dodaj konto → Inne → Dodaj subskrybowany kalendarz, wklej link i zapisz. ")])],-1)),s[22]||(s[22]=e("p",{class:"muted small",style:{margin:"10px 0 0"}}," Google odświeża subskrybowane kalendarze co kilka godzin, nie od razu: zmiana planu albo wyboru przedmiotów pojawi się w kalendarzu z opóźnieniem. ",-1))],64)):(n(),l("div",fe,[e("button",{class:"btn primary",type:"button",disabled:o(t).busy,onClick:s[3]||(s[3]=a=>o(t).create())},i(o(t).busy?"Tworzenie…":"Utwórz link do kalendarza"),9,ze)]))]),e("section",De,[s[28]||(s[28]=e("h2",{id:"haslo-h",style:{"margin-bottom":"12px"}},"Zmiana hasła",-1)),e("form",{onSubmit:V(I,["prevent"]),novalidate:""},[c.value?.message?(n(),l("p",Ze,i(c.value.message),1)):r("",!0),x.value?(n(),l("p",Fe,"Hasło zostało zmienione.")):r("",!0),e("div",Ke,[s[25]||(s[25]=e("label",{for:"pw-current"},"Obecne hasło",-1)),b(e("input",{id:"pw-current","onUpdate:modelValue":s[7]||(s[7]=a=>u.current_password=a),type:"password",autocomplete:"current-password"},null,512),[[k,u.current_password]]),c.value?.fields.current_password?(n(),l("p",Te,i(c.value.fields.current_password),1)):r("",!0)]),e("div",Ge,[s[26]||(s[26]=e("label",{for:"pw-new"},"Nowe hasło (min. 8 znaków)",-1)),b(e("input",{id:"pw-new","onUpdate:modelValue":s[8]||(s[8]=a=>u.password=a),type:"password",autocomplete:"new-password"},null,512),[[k,u.password]]),c.value?.fields.password?(n(),l("p",Be,i(c.value.fields.password),1)):r("",!0)]),e("div",Ie,[s[27]||(s[27]=e("label",{for:"pw-confirm"},"Powtórz nowe hasło",-1)),b(e("input",{id:"pw-confirm","onUpdate:modelValue":s[9]||(s[9]=a=>u.password_confirmation=a),type:"password",autocomplete:"new-password"},null,512),[[k,u.password_confirmation]])]),e("button",{class:"btn primary",type:"submit",disabled:_.value||!u.current_password||!u.password},i(_.value?"Zapisywanie…":"Zmień hasło"),9,Le)],32)]),e("section",Oe,[e("button",{class:"btn miss",type:"button",onClick:s[10]||(s[10]=a=>o(f).logout())},"Wyloguj się")])]))}});export{Me as default}; diff --git a/public/assets/QuizView-CF18K_CT.js b/public/assets/QuizView-Tr8Ule5Q.js similarity index 97% rename from public/assets/QuizView-CF18K_CT.js rename to public/assets/QuizView-Tr8Ule5Q.js index 2c8cf07..fafdb03 100644 --- a/public/assets/QuizView-CF18K_CT.js +++ b/public/assets/QuizView-Tr8Ule5Q.js @@ -1 +1 @@ -var ne=Object.defineProperty;var le=(m,o,n)=>o in m?ne(m,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):m[o]=n;var c=(m,o,n)=>le(m,typeof o!="symbol"?o+"":o,n);import{_ as oe}from"./PageHead.vue_vue_type_script_setup_true_lang-CmzkJbRP.js";import{_ as ie}from"./LoadState.vue_vue_type_script_setup_true_lang-CkJKaMnT.js";import{q as j,_ as re}from"./quizzes-C4a6BQv2.js";import{d as ue,q as de,J as ce,c as i,h as S,i as P,r as v,G as I,o as r,F as k,m as _,t as l,e as h,a as e,y as R,z as ve,x as Z,s as x,K as he,k as pe}from"./index-D5YFSKUV.js";import{c as ye}from"./format-bcE-cYHJ.js";function me(m,o=Math.random){const n=m.slice();for(let p=n.length-1;p>0;p--){const f=Math.floor(o()*(p+1));[n[p],n[f]]=[n[f],n[p]]}return n}class fe{constructor(o,n=5,p=Math.random){c(this,"cards");c(this,"roundSize");c(this,"rng");c(this,"pool",[]);c(this,"round",[]);c(this,"cur",0);c(this,"roundMarks",[]);c(this,"marks",{});c(this,"order",[]);c(this,"review",!1);c(this,"phase","card");this.cards=new Map(o.map(f=>[f.id,f])),this.roundSize=Math.max(1,n),this.rng=p,this.reset()}reset(){this.marks={},this.order=[],this.pool=[...this.cards.keys()],this.draw()}draw(){if(this.review=!1,this.pool.length===0){this.round=[],this.roundMarks=[],this.cur=0,this.phase="final";return}const o=[];for(;o.lengthnull),this.cur=0,this.phase="card"}get current(){const o=this.round[this.cur];return o===void 0?null:this.cards.get(o)??null}get isLastInRound(){return this.cur===this.round.length-1}get answeredCount(){return this.order.length}get remaining(){return this.pool.length}get total(){return this.cards.size}mark(o){const n=this.round[this.cur];n===void 0||this.phase!=="card"||(this.roundMarks[this.cur]=o,n in this.marks||this.order.push(n),this.marks[n]=o)}next(){this.phase==="card"&&(this.cur++,this.cur>=this.round.length&&(this.phase=this.review||this.pool.length===0?"final":"round"))}finish(){this.phase="final"}ids(o){return this.order.filter(n=>this.marks[n]===o)}get missed(){return this.ids("n")}get known(){return this.ids("y")}get tally(){return{y:this.known.length,n:this.missed.length}}startReview(){const o=this.missed;o.length!==0&&(this.review=!0,this.startRound(me(o,this.rng)))}}const ge={key:0,class:"muted"},ke={class:"card accent","aria-labelledby":"start-h"},_e={class:"small muted"},we={key:0,class:"chips wrap",role:"group","aria-label":"Kategoria"},be=["aria-pressed"],ze=["aria-pressed","onClick"],xe={class:"btn-row",style:{"margin-top":"12px"}},Ce=["disabled"],Me={key:1,class:"section","aria-labelledby":"hist-h"},qe={class:"card"},je={class:"quiz-bar"},Ne={class:"score"},$e={class:"y"},We={class:"n"},Re={class:"count"},Se={class:"btn-row"},Le=["disabled"],Be=["disabled"],Pe={class:"step","aria-live":"polite"},Ze={key:0},Ke={key:1,class:"qcard"},Te={class:"q"},Ve={key:1,class:"answer","aria-live":"polite"},De={class:"qactions"},Qe=["aria-pressed","disabled"],Ee=["aria-pressed","disabled"],Ae=["disabled"],Fe={key:2,class:"error-text",role:"alert"},He={key:2,class:"qcard sum"},Ie={class:"tag"},Oe={class:"qactions"},Ge={key:3,class:"qcard sum"},Je={class:"qactions",style:{margin:"0 0 18px"}},Ue={key:0,class:"grp miss"},Xe={class:"tag"},Ye={key:1,class:"grp ok"},et={class:"tag"},tt={key:2,class:"muted small mono",style:{margin:"14px 0 0"}},ut=ue({__name:"QuizView",props:{slug:{}},setup(m){const o=m,n=v(null),p=v(""),f=v([]),y=v(null),d=v(null),g=v(null),w=v(!1),N=v({}),C=v(!1),$=v(""),b=v(null),K=v(null);async function T(){p.value="";try{n.value=await j.quiz(o.slug),V()}catch(t){p.value=I(t)}}async function V(){try{f.value=(await j.attempts(o.slug)).data}catch{}}de(T),ce(()=>{g.value&&!w.value&&d.value?.answeredCount&&j.finish(g.value.id).catch(()=>{})});const D=x(()=>{const t=new Map;for(const a of n.value?.questions??[])a.category&&t.set(a.category,(t.get(a.category)??0)+1);return[...t].sort(([a],[M])=>a.localeCompare(M,"pl"))}),Q=x(()=>(n.value?.questions??[]).filter(t=>!y.value||t.category===y.value).length);function O(){const t=(n.value?.questions??[]).filter(a=>a.type==="self_check"&&(!y.value||a.category===y.value)).map(a=>({id:a.id,text:a.text,category:a.category,answer:a.answer_text??""}));d.value=new fe(t,n.value?.round_size??5),g.value=null,w.value=!1,N.value={},$.value="",b.value=null}async function G(){return g.value||(g.value=await j.start(o.slug,y.value),w.value=!1),g.value}async function E(t){const a=d.value,M=a?.current;if(!(!a||!M||C.value)){C.value=!0,$.value="";try{const u=await G();await j.answer(u.id,{question_id:M.id,known:t==="y"}),a.mark(t),await he(),K.value?.focus()}catch(u){$.value=`Nie udało się zapisać odpowiedzi. ${I(u)}`}finally{C.value=!1}}}function J(){const t=d.value?.current?.id;t!==void 0&&(N.value={...N.value,[t]:!0})}function U(){const t=d.value;t&&(t.next(),t.phase==="final"&&W())}function A(){d.value?.draw(),d.value?.phase==="final"&&W()}function F(){d.value?.finish(),W()}async function W(){const t=g.value;if(!(!t||w.value)){w.value=!0;try{b.value=await j.finish(t.id)}catch{}V()}}function X(){const t=d.value;t&&(t.startReview(),g.value=null,w.value=!1,b.value=null)}function Y(){d.value?.reset(),g.value=null,w.value=!1,N.value={},b.value=null,d.value?.phase==="final"&&W()}function ee(){W(),d.value=null}const s=x(()=>d.value),z=x(()=>s.value?.current??null),L=x(()=>z.value?s.value?.roundMarks[s.value.cur]??null:null),H=t=>s.value?.cards.get(t)?.answer??"",te=t=>s.value?.roundMarks[t]??(t===s.value?.cur?"cur":""),se=x(()=>{const t=s.value;return t?t.isLastInRound?t.review?"Wynik powtórki":t.remaining?"Koniec rundy":"Podsumowanie":"Dalej":""}),B=t=>ye(t,"pytanie","pytania","pytań"),ae=x(()=>{const t=s.value;return t?t.phase==="round"?"Koniec rundy":t.phase==="final"?t.review?"Wynik po powtórce":t.remaining?"Podsumowanie sesji":"Cała pula za Tobą":`${t.review?"Powtórka · ":""}Pytanie ${t.cur+1} z ${t.round.length}`:""});return(t,a)=>{const M=pe("router-link");return r(),i("div",null,[S(ie,{ready:!!n.value,error:p.value,onRetry:a[3]||(a[3]=u=>T())},{default:P(()=>[n.value?(r(),i(k,{key:0},[S(oe,{eyebrow:"Quiz",title:n.value.title},{default:P(()=>[S(M,{class:"btn small ghost",to:"/quizy"},{default:P(()=>[...a[4]||(a[4]=[_("← Quizy",-1)])]),_:1})]),_:1},8,["title"]),s.value?(r(),i(k,{key:1},[e("div",je,[e("div",null,[e("div",Ne,[e("span",$e,[a[7]||(a[7]=_("Wiem ",-1)),e("b",null,l(s.value.tally.y),1)]),e("span",We,[a[8]||(a[8]=_("Nie wiem ",-1)),e("b",null,l(s.value.tally.n),1)])]),e("span",Re,[_(l(B(s.value.total))+" w puli · "+l(s.value.remaining)+" jeszcze nie padło",1),y.value?(r(),i(k,{key:0},[_(" · "+l(y.value),1)],64)):h("",!0)])]),e("div",Se,[e("button",{class:"btn small",type:"button",disabled:s.value.phase==="final",onClick:A},"Losuj "+l(n.value.round_size??5)+" nowych",9,Le),e("button",{class:"btn small primary",type:"button",disabled:s.value.answeredCount===0||s.value.phase==="final",onClick:F},"Zakończ",8,Be)])]),s.value.phase!=="final"?(r(),i("div",{key:0,class:"round-progress",style:ve({gridTemplateColumns:`repeat(${s.value.round.length}, 1fr)`}),"aria-hidden":"true"},[(r(!0),i(k,null,R(s.value.round,(u,q)=>(r(),i("span",{key:q,class:Z(te(q))},null,2))),128))],4)):h("",!0),e("div",Pe,[e("span",null,l(ae.value),1),s.value.phase==="card"&&z.value?.category?(r(),i("span",Ze,l(z.value.category),1)):h("",!0)]),s.value.phase==="card"&&z.value?(r(),i("div",Ke,[e("p",Te,l(z.value.text),1),N.value[z.value.id]?(r(),i("div",Ve,[a[9]||(a[9]=e("span",{class:"tag"},"Odpowiedź",-1)),_(" "+l(z.value.answer),1)])):(r(),i("button",{key:0,class:"reveal",type:"button",onClick:J},"odpowiedź")),e("div",De,[e("button",{class:"btn yes",type:"button","aria-pressed":L.value==="y",disabled:C.value,onClick:a[1]||(a[1]=u=>E("y"))},"Wiem!",8,Qe),e("button",{class:"btn no",type:"button","aria-pressed":L.value==="n",disabled:C.value,onClick:a[2]||(a[2]=u=>E("n"))},"Nie wiem",8,Ee),e("button",{ref_key:"nextBtn",ref:K,class:"btn primary next",type:"button",disabled:!L.value||C.value,onClick:U},l(se.value),9,Ae)]),$.value?(r(),i("p",Fe,l($.value),1)):h("",!0)])):s.value.phase==="round"?(r(),i("div",He,[e("h2",null,"Wiem "+l(s.value.roundMarks.filter(u=>u==="y").length)+" z "+l(s.value.round.length),1),a[10]||(a[10]=e("p",null,"Pytania „Nie wiem” trafiają do powtórki. Zbierzesz je przyciskiem „Zakończ”.",-1)),e("ol",null,[(r(!0),i(k,null,R(s.value.round,(u,q)=>(r(),i("li",{key:u,class:Z(s.value.roundMarks[q])},[e("span",Ie,l(s.value.cards.get(u)?.category),1),_(" "+l(s.value.cards.get(u)?.text)+" ",1),e("small",null,l(H(u)),1)],2))),128))]),e("div",Oe,[e("button",{class:"btn primary",type:"button",onClick:A},"Losuj "+l(n.value.round_size??5)+" nowych",1),e("button",{class:"btn",type:"button",onClick:F},"Zakończ")])])):(r(),i("div",Ge,[e("h2",null,"Wiem "+l(s.value.known.length)+" z "+l(s.value.answeredCount),1),e("p",null,l(s.value.missed.length?`Do powtórki: ${s.value.missed.length}.`:s.value.answeredCount?"Wszystko umiesz. Nie ma nic do powtórki.":"Nie udzielono żadnej odpowiedzi."),1),e("div",Je,[s.value.missed.length?(r(),i("button",{key:0,class:"btn primary",type:"button",onClick:X},"Powtórz "+l(B(s.value.missed.length)),1)):h("",!0),e("button",{class:Z(["btn",{primary:!s.value.missed.length}]),type:"button",onClick:Y},"Nowa sesja",2),e("button",{class:"btn ghost",type:"button",onClick:ee},"Wróć do quizu")]),s.value.missed.length?(r(),i("div",Ue,[a[11]||(a[11]=e("h3",null,"Nie wiem",-1)),e("ol",null,[(r(!0),i(k,null,R(s.value.missed,u=>(r(),i("li",{key:u,class:"n"},[e("span",Xe,l(s.value.cards.get(u)?.category),1),_(" "+l(s.value.cards.get(u)?.text)+" ",1),e("small",null,l(H(u)),1)]))),128))])])):h("",!0),s.value.known.length?(r(),i("div",Ye,[a[12]||(a[12]=e("h3",null,"Wiem",-1)),e("ol",null,[(r(!0),i(k,null,R(s.value.known,u=>(r(),i("li",{key:u,class:"y"},[e("span",et,l(s.value.cards.get(u)?.category),1),_(" "+l(s.value.cards.get(u)?.text),1)]))),128))])])):h("",!0),b.value?(r(),i("p",tt,"Zapisano w historii: "+l(Math.round(b.value.score_points))+"/"+l(Math.round(b.value.max_points)),1)):h("",!0)]))],64)):(r(),i(k,{key:0},[n.value.description?(r(),i("p",ge,l(n.value.description),1)):h("",!0),e("section",ke,[a[5]||(a[5]=e("h2",{id:"start-h",style:{"margin-bottom":"8px"}},"Nowa sesja",-1)),e("p",_e,"Rundy po "+l(n.value.round_size??5)+" losowych pytań, które jeszcze nie padły. Każdą odpowiedź zapisujemy na koncie.",1),D.value.length?(r(),i("div",we,[e("button",{class:"chip",type:"button","aria-pressed":y.value===null,onClick:a[0]||(a[0]=u=>y.value=null)},"Wszystkie",8,be),(r(!0),i(k,null,R(D.value,([u,q])=>(r(),i("button",{key:u,class:"chip",type:"button","aria-pressed":y.value===u,onClick:st=>y.value=u},l(u)+" · "+l(q),9,ze))),128))])):h("",!0),e("div",xe,[e("button",{class:"btn primary",type:"button",disabled:Q.value===0,onClick:O},"Zacznij · "+l(B(Q.value)),9,Ce)])]),f.value.length?(r(),i("section",Me,[a[6]||(a[6]=e("div",{class:"section-head"},[e("h2",{id:"hist-h"},"Historia podejść")],-1)),e("div",qe,[S(re,{attempts:f.value},null,8,["attempts"])])])):h("",!0)],64))],64)):h("",!0)]),_:1},8,["ready","error"])])}}});export{ut as default}; +var ne=Object.defineProperty;var le=(m,o,n)=>o in m?ne(m,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):m[o]=n;var c=(m,o,n)=>le(m,typeof o!="symbol"?o+"":o,n);import{_ as oe}from"./PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js";import{_ as ie}from"./LoadState.vue_vue_type_script_setup_true_lang-Bzg7dKHt.js";import{q as j,_ as re}from"./quizzes-G41zxwRD.js";import{d as ue,q as de,J as ce,c as i,h as S,i as P,r as v,G as I,o as r,F as k,m as _,t as l,e as h,a as e,y as R,z as ve,x as Z,s as x,K as he,k as pe}from"./index-Bm0qbefx.js";import{c as ye}from"./format-bcE-cYHJ.js";function me(m,o=Math.random){const n=m.slice();for(let p=n.length-1;p>0;p--){const f=Math.floor(o()*(p+1));[n[p],n[f]]=[n[f],n[p]]}return n}class fe{constructor(o,n=5,p=Math.random){c(this,"cards");c(this,"roundSize");c(this,"rng");c(this,"pool",[]);c(this,"round",[]);c(this,"cur",0);c(this,"roundMarks",[]);c(this,"marks",{});c(this,"order",[]);c(this,"review",!1);c(this,"phase","card");this.cards=new Map(o.map(f=>[f.id,f])),this.roundSize=Math.max(1,n),this.rng=p,this.reset()}reset(){this.marks={},this.order=[],this.pool=[...this.cards.keys()],this.draw()}draw(){if(this.review=!1,this.pool.length===0){this.round=[],this.roundMarks=[],this.cur=0,this.phase="final";return}const o=[];for(;o.lengthnull),this.cur=0,this.phase="card"}get current(){const o=this.round[this.cur];return o===void 0?null:this.cards.get(o)??null}get isLastInRound(){return this.cur===this.round.length-1}get answeredCount(){return this.order.length}get remaining(){return this.pool.length}get total(){return this.cards.size}mark(o){const n=this.round[this.cur];n===void 0||this.phase!=="card"||(this.roundMarks[this.cur]=o,n in this.marks||this.order.push(n),this.marks[n]=o)}next(){this.phase==="card"&&(this.cur++,this.cur>=this.round.length&&(this.phase=this.review||this.pool.length===0?"final":"round"))}finish(){this.phase="final"}ids(o){return this.order.filter(n=>this.marks[n]===o)}get missed(){return this.ids("n")}get known(){return this.ids("y")}get tally(){return{y:this.known.length,n:this.missed.length}}startReview(){const o=this.missed;o.length!==0&&(this.review=!0,this.startRound(me(o,this.rng)))}}const ge={key:0,class:"muted"},ke={class:"card accent","aria-labelledby":"start-h"},_e={class:"small muted"},we={key:0,class:"chips wrap",role:"group","aria-label":"Kategoria"},be=["aria-pressed"],ze=["aria-pressed","onClick"],xe={class:"btn-row",style:{"margin-top":"12px"}},Ce=["disabled"],Me={key:1,class:"section","aria-labelledby":"hist-h"},qe={class:"card"},je={class:"quiz-bar"},Ne={class:"score"},$e={class:"y"},We={class:"n"},Re={class:"count"},Se={class:"btn-row"},Le=["disabled"],Be=["disabled"],Pe={class:"step","aria-live":"polite"},Ze={key:0},Ke={key:1,class:"qcard"},Te={class:"q"},Ve={key:1,class:"answer","aria-live":"polite"},De={class:"qactions"},Qe=["aria-pressed","disabled"],Ee=["aria-pressed","disabled"],Ae=["disabled"],Fe={key:2,class:"error-text",role:"alert"},He={key:2,class:"qcard sum"},Ie={class:"tag"},Oe={class:"qactions"},Ge={key:3,class:"qcard sum"},Je={class:"qactions",style:{margin:"0 0 18px"}},Ue={key:0,class:"grp miss"},Xe={class:"tag"},Ye={key:1,class:"grp ok"},et={class:"tag"},tt={key:2,class:"muted small mono",style:{margin:"14px 0 0"}},ut=ue({__name:"QuizView",props:{slug:{}},setup(m){const o=m,n=v(null),p=v(""),f=v([]),y=v(null),d=v(null),g=v(null),w=v(!1),N=v({}),C=v(!1),$=v(""),b=v(null),K=v(null);async function T(){p.value="";try{n.value=await j.quiz(o.slug),V()}catch(t){p.value=I(t)}}async function V(){try{f.value=(await j.attempts(o.slug)).data}catch{}}de(T),ce(()=>{g.value&&!w.value&&d.value?.answeredCount&&j.finish(g.value.id).catch(()=>{})});const D=x(()=>{const t=new Map;for(const a of n.value?.questions??[])a.category&&t.set(a.category,(t.get(a.category)??0)+1);return[...t].sort(([a],[M])=>a.localeCompare(M,"pl"))}),Q=x(()=>(n.value?.questions??[]).filter(t=>!y.value||t.category===y.value).length);function O(){const t=(n.value?.questions??[]).filter(a=>a.type==="self_check"&&(!y.value||a.category===y.value)).map(a=>({id:a.id,text:a.text,category:a.category,answer:a.answer_text??""}));d.value=new fe(t,n.value?.round_size??5),g.value=null,w.value=!1,N.value={},$.value="",b.value=null}async function G(){return g.value||(g.value=await j.start(o.slug,y.value),w.value=!1),g.value}async function E(t){const a=d.value,M=a?.current;if(!(!a||!M||C.value)){C.value=!0,$.value="";try{const u=await G();await j.answer(u.id,{question_id:M.id,known:t==="y"}),a.mark(t),await he(),K.value?.focus()}catch(u){$.value=`Nie udało się zapisać odpowiedzi. ${I(u)}`}finally{C.value=!1}}}function J(){const t=d.value?.current?.id;t!==void 0&&(N.value={...N.value,[t]:!0})}function U(){const t=d.value;t&&(t.next(),t.phase==="final"&&W())}function A(){d.value?.draw(),d.value?.phase==="final"&&W()}function F(){d.value?.finish(),W()}async function W(){const t=g.value;if(!(!t||w.value)){w.value=!0;try{b.value=await j.finish(t.id)}catch{}V()}}function X(){const t=d.value;t&&(t.startReview(),g.value=null,w.value=!1,b.value=null)}function Y(){d.value?.reset(),g.value=null,w.value=!1,N.value={},b.value=null,d.value?.phase==="final"&&W()}function ee(){W(),d.value=null}const s=x(()=>d.value),z=x(()=>s.value?.current??null),L=x(()=>z.value?s.value?.roundMarks[s.value.cur]??null:null),H=t=>s.value?.cards.get(t)?.answer??"",te=t=>s.value?.roundMarks[t]??(t===s.value?.cur?"cur":""),se=x(()=>{const t=s.value;return t?t.isLastInRound?t.review?"Wynik powtórki":t.remaining?"Koniec rundy":"Podsumowanie":"Dalej":""}),B=t=>ye(t,"pytanie","pytania","pytań"),ae=x(()=>{const t=s.value;return t?t.phase==="round"?"Koniec rundy":t.phase==="final"?t.review?"Wynik po powtórce":t.remaining?"Podsumowanie sesji":"Cała pula za Tobą":`${t.review?"Powtórka · ":""}Pytanie ${t.cur+1} z ${t.round.length}`:""});return(t,a)=>{const M=pe("router-link");return r(),i("div",null,[S(ie,{ready:!!n.value,error:p.value,onRetry:a[3]||(a[3]=u=>T())},{default:P(()=>[n.value?(r(),i(k,{key:0},[S(oe,{eyebrow:"Quiz",title:n.value.title},{default:P(()=>[S(M,{class:"btn small ghost",to:"/quizy"},{default:P(()=>[...a[4]||(a[4]=[_("← Quizy",-1)])]),_:1})]),_:1},8,["title"]),s.value?(r(),i(k,{key:1},[e("div",je,[e("div",null,[e("div",Ne,[e("span",$e,[a[7]||(a[7]=_("Wiem ",-1)),e("b",null,l(s.value.tally.y),1)]),e("span",We,[a[8]||(a[8]=_("Nie wiem ",-1)),e("b",null,l(s.value.tally.n),1)])]),e("span",Re,[_(l(B(s.value.total))+" w puli · "+l(s.value.remaining)+" jeszcze nie padło",1),y.value?(r(),i(k,{key:0},[_(" · "+l(y.value),1)],64)):h("",!0)])]),e("div",Se,[e("button",{class:"btn small",type:"button",disabled:s.value.phase==="final",onClick:A},"Losuj "+l(n.value.round_size??5)+" nowych",9,Le),e("button",{class:"btn small primary",type:"button",disabled:s.value.answeredCount===0||s.value.phase==="final",onClick:F},"Zakończ",8,Be)])]),s.value.phase!=="final"?(r(),i("div",{key:0,class:"round-progress",style:ve({gridTemplateColumns:`repeat(${s.value.round.length}, 1fr)`}),"aria-hidden":"true"},[(r(!0),i(k,null,R(s.value.round,(u,q)=>(r(),i("span",{key:q,class:Z(te(q))},null,2))),128))],4)):h("",!0),e("div",Pe,[e("span",null,l(ae.value),1),s.value.phase==="card"&&z.value?.category?(r(),i("span",Ze,l(z.value.category),1)):h("",!0)]),s.value.phase==="card"&&z.value?(r(),i("div",Ke,[e("p",Te,l(z.value.text),1),N.value[z.value.id]?(r(),i("div",Ve,[a[9]||(a[9]=e("span",{class:"tag"},"Odpowiedź",-1)),_(" "+l(z.value.answer),1)])):(r(),i("button",{key:0,class:"reveal",type:"button",onClick:J},"odpowiedź")),e("div",De,[e("button",{class:"btn yes",type:"button","aria-pressed":L.value==="y",disabled:C.value,onClick:a[1]||(a[1]=u=>E("y"))},"Wiem!",8,Qe),e("button",{class:"btn no",type:"button","aria-pressed":L.value==="n",disabled:C.value,onClick:a[2]||(a[2]=u=>E("n"))},"Nie wiem",8,Ee),e("button",{ref_key:"nextBtn",ref:K,class:"btn primary next",type:"button",disabled:!L.value||C.value,onClick:U},l(se.value),9,Ae)]),$.value?(r(),i("p",Fe,l($.value),1)):h("",!0)])):s.value.phase==="round"?(r(),i("div",He,[e("h2",null,"Wiem "+l(s.value.roundMarks.filter(u=>u==="y").length)+" z "+l(s.value.round.length),1),a[10]||(a[10]=e("p",null,"Pytania „Nie wiem” trafiają do powtórki. Zbierzesz je przyciskiem „Zakończ”.",-1)),e("ol",null,[(r(!0),i(k,null,R(s.value.round,(u,q)=>(r(),i("li",{key:u,class:Z(s.value.roundMarks[q])},[e("span",Ie,l(s.value.cards.get(u)?.category),1),_(" "+l(s.value.cards.get(u)?.text)+" ",1),e("small",null,l(H(u)),1)],2))),128))]),e("div",Oe,[e("button",{class:"btn primary",type:"button",onClick:A},"Losuj "+l(n.value.round_size??5)+" nowych",1),e("button",{class:"btn",type:"button",onClick:F},"Zakończ")])])):(r(),i("div",Ge,[e("h2",null,"Wiem "+l(s.value.known.length)+" z "+l(s.value.answeredCount),1),e("p",null,l(s.value.missed.length?`Do powtórki: ${s.value.missed.length}.`:s.value.answeredCount?"Wszystko umiesz. Nie ma nic do powtórki.":"Nie udzielono żadnej odpowiedzi."),1),e("div",Je,[s.value.missed.length?(r(),i("button",{key:0,class:"btn primary",type:"button",onClick:X},"Powtórz "+l(B(s.value.missed.length)),1)):h("",!0),e("button",{class:Z(["btn",{primary:!s.value.missed.length}]),type:"button",onClick:Y},"Nowa sesja",2),e("button",{class:"btn ghost",type:"button",onClick:ee},"Wróć do quizu")]),s.value.missed.length?(r(),i("div",Ue,[a[11]||(a[11]=e("h3",null,"Nie wiem",-1)),e("ol",null,[(r(!0),i(k,null,R(s.value.missed,u=>(r(),i("li",{key:u,class:"n"},[e("span",Xe,l(s.value.cards.get(u)?.category),1),_(" "+l(s.value.cards.get(u)?.text)+" ",1),e("small",null,l(H(u)),1)]))),128))])])):h("",!0),s.value.known.length?(r(),i("div",Ye,[a[12]||(a[12]=e("h3",null,"Wiem",-1)),e("ol",null,[(r(!0),i(k,null,R(s.value.known,u=>(r(),i("li",{key:u,class:"y"},[e("span",et,l(s.value.cards.get(u)?.category),1),_(" "+l(s.value.cards.get(u)?.text),1)]))),128))])])):h("",!0),b.value?(r(),i("p",tt,"Zapisano w historii: "+l(Math.round(b.value.score_points))+"/"+l(Math.round(b.value.max_points)),1)):h("",!0)]))],64)):(r(),i(k,{key:0},[n.value.description?(r(),i("p",ge,l(n.value.description),1)):h("",!0),e("section",ke,[a[5]||(a[5]=e("h2",{id:"start-h",style:{"margin-bottom":"8px"}},"Nowa sesja",-1)),e("p",_e,"Rundy po "+l(n.value.round_size??5)+" losowych pytań, które jeszcze nie padły. Każdą odpowiedź zapisujemy na koncie.",1),D.value.length?(r(),i("div",we,[e("button",{class:"chip",type:"button","aria-pressed":y.value===null,onClick:a[0]||(a[0]=u=>y.value=null)},"Wszystkie",8,be),(r(!0),i(k,null,R(D.value,([u,q])=>(r(),i("button",{key:u,class:"chip",type:"button","aria-pressed":y.value===u,onClick:st=>y.value=u},l(u)+" · "+l(q),9,ze))),128))])):h("",!0),e("div",xe,[e("button",{class:"btn primary",type:"button",disabled:Q.value===0,onClick:O},"Zacznij · "+l(B(Q.value)),9,Ce)])]),f.value.length?(r(),i("section",Me,[a[6]||(a[6]=e("div",{class:"section-head"},[e("h2",{id:"hist-h"},"Historia podejść")],-1)),e("div",qe,[S(re,{attempts:f.value},null,8,["attempts"])])])):h("",!0)],64))],64)):h("",!0)]),_:1},8,["ready","error"])])}}});export{ut as default}; diff --git a/public/assets/QuizzesView-BOuyfpUe.js b/public/assets/QuizzesView-CV2z8jhd.js similarity index 86% rename from public/assets/QuizzesView-BOuyfpUe.js rename to public/assets/QuizzesView-CV2z8jhd.js index 0f1afb6..e17d487 100644 --- a/public/assets/QuizzesView-BOuyfpUe.js +++ b/public/assets/QuizzesView-CV2z8jhd.js @@ -1 +1 @@ -import{_ as g}from"./PageHead.vue_vue_type_script_setup_true_lang-CmzkJbRP.js";import{_ as w}from"./LoadState.vue_vue_type_script_setup_true_lang-CkJKaMnT.js";import{q as z,_ as x}from"./quizzes-C4a6BQv2.js";import{d as j,q as B,c as s,h as d,i as k,r as m,G as N,o as t,F as p,y as V,B as $,a as o,t as n,e as l,m as _,b as h,k as b}from"./index-D5YFSKUV.js";import{c as f}from"./format-bcE-cYHJ.js";const C={key:0,class:"stack"},F={key:0,class:"muted small",style:{margin:"0 0 8px"}},Q={class:"small",style:{margin:"0"}},T={key:1,class:"empty"},A={key:2,class:"section","aria-labelledby":"hist-h"},D={class:"card"},R=j({__name:"QuizzesView",setup(E){const i=m(null),c=m([]),u=m("");async function y(){u.value="";try{const[r,a]=await Promise.all([z.list(),z.attempts()]);i.value=r,c.value=a.data}catch(r){u.value=N(r)}}return B(y),(r,a)=>{const v=b("router-link");return t(),s("div",null,[d(g,{eyebrow:"Fiszki i testy",title:"Quizy"}),d(w,{ready:i.value!==null,error:u.value,onRetry:a[0]||(a[0]=e=>y())},{default:k(()=>[i.value?.length?(t(),s("div",C,[(t(!0),s(p,null,V(i.value,e=>(t(),$(v,{key:e.id,to:`/quizy/${e.slug}`,class:"card link accent"},{default:k(()=>[o("h3",null,n(e.title),1),e.description?(t(),s("p",F,n(e.description),1)):l("",!0),o("p",Q,[_(n(h(f)(e.question_count,"pytanie","pytania","pytań")),1),e.round_size?(t(),s(p,{key:0},[_(" · rundy po "+n(e.round_size),1)],64)):l("",!0),e.attempts_count?(t(),s(p,{key:1},[_(" · "+n(h(f)(e.attempts_count,"zakończone podejście","zakończone podejścia","zakończonych podejść")),1)],64)):l("",!0)])]),_:2},1032,["to"]))),128))])):(t(),s("p",T,"Nie ma jeszcze żadnych quizów.")),c.value.length?(t(),s("section",A,[a[1]||(a[1]=o("div",{class:"section-head"},[o("h2",{id:"hist-h"},"Historia podejść")],-1)),o("div",D,[d(x,{attempts:c.value,"show-quiz":""},null,8,["attempts"])])])):l("",!0)]),_:1},8,["ready","error"])])}}});export{R as default}; +import{_ as g}from"./PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js";import{_ as w}from"./LoadState.vue_vue_type_script_setup_true_lang-Bzg7dKHt.js";import{q as z,_ as x}from"./quizzes-G41zxwRD.js";import{d as j,q as B,c as s,h as d,i as k,r as m,G as N,o as t,F as p,y as V,B as $,a as o,t as n,e as l,m as _,b as h,k as b}from"./index-Bm0qbefx.js";import{c as f}from"./format-bcE-cYHJ.js";const C={key:0,class:"stack"},F={key:0,class:"muted small",style:{margin:"0 0 8px"}},Q={class:"small",style:{margin:"0"}},T={key:1,class:"empty"},A={key:2,class:"section","aria-labelledby":"hist-h"},D={class:"card"},R=j({__name:"QuizzesView",setup(E){const i=m(null),c=m([]),u=m("");async function y(){u.value="";try{const[r,a]=await Promise.all([z.list(),z.attempts()]);i.value=r,c.value=a.data}catch(r){u.value=N(r)}}return B(y),(r,a)=>{const v=b("router-link");return t(),s("div",null,[d(g,{eyebrow:"Fiszki i testy",title:"Quizy"}),d(w,{ready:i.value!==null,error:u.value,onRetry:a[0]||(a[0]=e=>y())},{default:k(()=>[i.value?.length?(t(),s("div",C,[(t(!0),s(p,null,V(i.value,e=>(t(),$(v,{key:e.id,to:`/quizy/${e.slug}`,class:"card link accent"},{default:k(()=>[o("h3",null,n(e.title),1),e.description?(t(),s("p",F,n(e.description),1)):l("",!0),o("p",Q,[_(n(h(f)(e.question_count,"pytanie","pytania","pytań")),1),e.round_size?(t(),s(p,{key:0},[_(" · rundy po "+n(e.round_size),1)],64)):l("",!0),e.attempts_count?(t(),s(p,{key:1},[_(" · "+n(h(f)(e.attempts_count,"zakończone podejście","zakończone podejścia","zakończonych podejść")),1)],64)):l("",!0)])]),_:2},1032,["to"]))),128))])):(t(),s("p",T,"Nie ma jeszcze żadnych quizów.")),c.value.length?(t(),s("section",A,[a[1]||(a[1]=o("div",{class:"section-head"},[o("h2",{id:"hist-h"},"Historia podejść")],-1)),o("div",D,[d(x,{attempts:c.value,"show-quiz":""},null,8,["attempts"])])])):l("",!0)]),_:1},8,["ready","error"])])}}});export{R as default}; diff --git a/public/assets/ReadingItem.vue_vue_type_script_setup_true_lang-BEpVkt6V.js b/public/assets/ReadingItem.vue_vue_type_script_setup_true_lang-BHoX7Hou.js similarity index 93% rename from public/assets/ReadingItem.vue_vue_type_script_setup_true_lang-BEpVkt6V.js rename to public/assets/ReadingItem.vue_vue_type_script_setup_true_lang-BHoX7Hou.js index 24dd907..deafd86 100644 --- a/public/assets/ReadingItem.vue_vue_type_script_setup_true_lang-BEpVkt6V.js +++ b/public/assets/ReadingItem.vue_vue_type_script_setup_true_lang-BHoX7Hou.js @@ -1 +1 @@ -import{i as d}from"./format-bcE-cYHJ.js";import{d as c,o as a,c as t,a as n,m as g,t as r,e as i,b as m}from"./index-D5YFSKUV.js";const u={class:"reading"},h=["checked"],k={class:"text"},f={key:0,class:"muted"},b={key:1,class:"muted mono"},y=["href","aria-label"],z=c({__name:"ReadingItem",props:{reading:{}},emits:["toggle"],setup(e){return(o,l)=>(a(),t("li",u,[n("label",null,[n("input",{type:"checkbox",checked:!!e.reading.read_at,onChange:l[0]||(l[0]=s=>o.$emit("toggle",s.target.checked))},null,40,h),n("span",k,[g(r(e.reading.title)+" ",1),e.reading.author||e.reading.source?(a(),t("small",f," · "+r([e.reading.author,e.reading.source].filter(Boolean).join(", ")),1)):i("",!0),e.reading.read_at?(a(),t("small",b," · przeczytano "+r(m(d)(e.reading.read_at)),1)):i("",!0)])]),e.reading.url?(a(),t("a",{key:0,href:e.reading.url,target:"_blank",rel:"noopener noreferrer",class:"small","aria-label":`Otwórz: ${e.reading.title}`},"link",8,y)):i("",!0)]))}});export{z as _}; +import{i as d}from"./format-bcE-cYHJ.js";import{d as c,o as a,c as t,a as n,m as g,t as r,e as i,b as m}from"./index-Bm0qbefx.js";const u={class:"reading"},h=["checked"],k={class:"text"},f={key:0,class:"muted"},b={key:1,class:"muted mono"},y=["href","aria-label"],z=c({__name:"ReadingItem",props:{reading:{}},emits:["toggle"],setup(e){return(o,l)=>(a(),t("li",u,[n("label",null,[n("input",{type:"checkbox",checked:!!e.reading.read_at,onChange:l[0]||(l[0]=s=>o.$emit("toggle",s.target.checked))},null,40,h),n("span",k,[g(r(e.reading.title)+" ",1),e.reading.author||e.reading.source?(a(),t("small",f," · "+r([e.reading.author,e.reading.source].filter(Boolean).join(", ")),1)):i("",!0),e.reading.read_at?(a(),t("small",b," · przeczytano "+r(m(d)(e.reading.read_at)),1)):i("",!0)])]),e.reading.url?(a(),t("a",{key:0,href:e.reading.url,target:"_blank",rel:"noopener noreferrer",class:"small","aria-label":`Otwórz: ${e.reading.title}`},"link",8,y)):i("",!0)]))}});export{z as _}; diff --git a/public/assets/ReadingsView-dREpHSZ_.js b/public/assets/ReadingsView-B-MVj8QM.js similarity index 91% rename from public/assets/ReadingsView-dREpHSZ_.js rename to public/assets/ReadingsView-B-MVj8QM.js index c9f830b..4aa04d0 100644 --- a/public/assets/ReadingsView-dREpHSZ_.js +++ b/public/assets/ReadingsView-B-MVj8QM.js @@ -1 +1 @@ -import{_ as q}from"./PageHead.vue_vue_type_script_setup_true_lang-CmzkJbRP.js";import{_ as x}from"./LoadState.vue_vue_type_script_setup_true_lang-CkJKaMnT.js";import{_ as T}from"./ElectiveBar.vue_vue_type_script_setup_true_lang-DoecCJhC.js";import{_ as b}from"./ReadingItem.vue_vue_type_script_setup_true_lang-BEpVkt6V.js";import{d as $,p as B,q as R,c as l,h as m,i as w,b as i,o as n,a as t,t as r,z as C,F as _,y as h,e as g,r as V,s as v,k as F,m as L,B as z}from"./index-D5YFSKUV.js";import{c as M,F as N}from"./format-bcE-cYHJ.js";const S={class:"card","aria-label":"Postęp czytania"},D={style:{margin:"0 0 8px"}},P={class:"big-num nums"},E={class:"muted"},O={class:"muted small"},j=["aria-valuenow"],A={class:"chips wrap",style:{"margin-top":"12px"}},G=["aria-pressed"],I=["aria-labelledby"],U={class:"section-head"},W=["id"],H={class:"badge",style:{"margin-left":"8px"}},J={class:"muted small nums"},K={class:"subhead"},Q={class:"rows"},X={class:"subhead"},Y={class:"rows"},Z={key:0,class:"empty",style:{"margin-top":"16px"}},le=$({__name:"ReadingsView",setup(ee){const s=B(),c=V(!1);R(()=>{Promise.all([s.loadReadings(),s.loadCourses()])});const f=v(()=>{const p=new Map;for(const o of s.readings)p.set(o.course_id,[...p.get(o.course_id)??[],o]);const u=o=>s.courseById.get(o)?.sort_order??0;return[...p].sort(([o],[e])=>u(o)-u(e)).map(([,o])=>{const e=c.value?o.filter(a=>!a.read_at):o;return{course:o[0].course,required:e.filter(a=>a.is_required),optional:e.filter(a=>!a.is_required),read:o.filter(a=>a.read_at).length,total:o.length}}).filter(o=>o.required.length+o.optional.length>0)}),d=v(()=>s.readingStats),k=v(()=>d.value.requiredTotal?Math.round(d.value.requiredRead/d.value.requiredTotal*100):0);return(p,u)=>{const o=F("router-link");return n(),l("div",null,[m(q,{eyebrow:"Do przeczytania",title:"Lektury"}),m(x,{ready:i(s).loaded.readings&&i(s).loaded.courses,error:i(s).error,onRetry:u[1]||(u[1]=e=>i(s).retry())},{default:w(()=>[m(T),t("section",S,[t("p",D,[t("span",P,r(d.value.requiredRead),1),t("span",E," z "+r(d.value.requiredTotal)+" obowiązkowych",1),t("span",O," · łącznie "+r(d.value.read)+" z "+r(d.value.total),1)]),t("div",{class:"progress-bar",role:"progressbar","aria-valuenow":k.value,"aria-valuemin":"0","aria-valuemax":"100","aria-label":"Przeczytane lektury obowiązkowe"},[t("span",{style:C({width:k.value+"%"})},null,4)],8,j)]),t("div",A,[t("button",{class:"chip",type:"button","aria-pressed":c.value,onClick:u[0]||(u[0]=e=>c.value=!c.value)},"Tylko nieprzeczytane",8,G)]),(n(!0),l(_,null,h(f.value,e=>(n(),l("section",{key:e.course.id,class:"section","aria-labelledby":`c${e.course.id}`},[t("div",U,[t("h2",{id:`c${e.course.id}`},[m(o,{to:`/przedmioty/${e.course.id}`,style:{color:"inherit","text-decoration":"none"}},{default:w(()=>[L(r(e.course.name),1)]),_:2},1032,["to"]),t("span",H,r(i(N)[e.course.form]),1)],8,W),t("span",J,r(e.read)+"/"+r(e.total),1)]),e.required.length?(n(),l(_,{key:0},[t("h3",K,"Obowiązkowe · "+r(e.required.length),1),t("ul",Q,[(n(!0),l(_,null,h(e.required,a=>(n(),z(b,{key:a.id,reading:a,onToggle:y=>i(s).toggleReading(a.id,y)},null,8,["reading","onToggle"]))),128))])],64)):g("",!0),e.optional.length?(n(),l(_,{key:1},[t("h3",X,"Dodatkowe · "+r(e.optional.length),1),t("ul",Y,[(n(!0),l(_,null,h(e.optional,a=>(n(),z(b,{key:a.id,reading:a,onToggle:y=>i(s).toggleReading(a.id,y)},null,8,["reading","onToggle"]))),128))])],64)):g("",!0)],8,I))),128)),f.value.length?g("",!0):(n(),l("p",Z,r(c.value?"Wszystko przeczytane. Gratulacje!":i(M)(0,"lektura","lektury","lektur")+" do wyświetlenia."),1))]),_:1},8,["ready","error"])])}}});export{le as default}; +import{_ as q}from"./PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js";import{_ as x}from"./LoadState.vue_vue_type_script_setup_true_lang-Bzg7dKHt.js";import{_ as T}from"./ElectiveBar.vue_vue_type_script_setup_true_lang-DalXwVxD.js";import{_ as b}from"./ReadingItem.vue_vue_type_script_setup_true_lang-BHoX7Hou.js";import{d as $,p as B,q as R,c as l,h as m,i as w,b as i,o as n,a as t,t as r,z as C,F as _,y as h,e as g,r as V,s as v,k as F,m as L,B as z}from"./index-Bm0qbefx.js";import{c as M,F as N}from"./format-bcE-cYHJ.js";const S={class:"card","aria-label":"Postęp czytania"},D={style:{margin:"0 0 8px"}},P={class:"big-num nums"},E={class:"muted"},O={class:"muted small"},j=["aria-valuenow"],A={class:"chips wrap",style:{"margin-top":"12px"}},G=["aria-pressed"],I=["aria-labelledby"],U={class:"section-head"},W=["id"],H={class:"badge",style:{"margin-left":"8px"}},J={class:"muted small nums"},K={class:"subhead"},Q={class:"rows"},X={class:"subhead"},Y={class:"rows"},Z={key:0,class:"empty",style:{"margin-top":"16px"}},le=$({__name:"ReadingsView",setup(ee){const s=B(),c=V(!1);R(()=>{Promise.all([s.loadReadings(),s.loadCourses()])});const f=v(()=>{const p=new Map;for(const o of s.readings)p.set(o.course_id,[...p.get(o.course_id)??[],o]);const u=o=>s.courseById.get(o)?.sort_order??0;return[...p].sort(([o],[e])=>u(o)-u(e)).map(([,o])=>{const e=c.value?o.filter(a=>!a.read_at):o;return{course:o[0].course,required:e.filter(a=>a.is_required),optional:e.filter(a=>!a.is_required),read:o.filter(a=>a.read_at).length,total:o.length}}).filter(o=>o.required.length+o.optional.length>0)}),d=v(()=>s.readingStats),k=v(()=>d.value.requiredTotal?Math.round(d.value.requiredRead/d.value.requiredTotal*100):0);return(p,u)=>{const o=F("router-link");return n(),l("div",null,[m(q,{eyebrow:"Do przeczytania",title:"Lektury"}),m(x,{ready:i(s).loaded.readings&&i(s).loaded.courses,error:i(s).error,onRetry:u[1]||(u[1]=e=>i(s).retry())},{default:w(()=>[m(T),t("section",S,[t("p",D,[t("span",P,r(d.value.requiredRead),1),t("span",E," z "+r(d.value.requiredTotal)+" obowiązkowych",1),t("span",O," · łącznie "+r(d.value.read)+" z "+r(d.value.total),1)]),t("div",{class:"progress-bar",role:"progressbar","aria-valuenow":k.value,"aria-valuemin":"0","aria-valuemax":"100","aria-label":"Przeczytane lektury obowiązkowe"},[t("span",{style:C({width:k.value+"%"})},null,4)],8,j)]),t("div",A,[t("button",{class:"chip",type:"button","aria-pressed":c.value,onClick:u[0]||(u[0]=e=>c.value=!c.value)},"Tylko nieprzeczytane",8,G)]),(n(!0),l(_,null,h(f.value,e=>(n(),l("section",{key:e.course.id,class:"section","aria-labelledby":`c${e.course.id}`},[t("div",U,[t("h2",{id:`c${e.course.id}`},[m(o,{to:`/przedmioty/${e.course.id}`,style:{color:"inherit","text-decoration":"none"}},{default:w(()=>[L(r(e.course.name),1)]),_:2},1032,["to"]),t("span",H,r(i(N)[e.course.form]),1)],8,W),t("span",J,r(e.read)+"/"+r(e.total),1)]),e.required.length?(n(),l(_,{key:0},[t("h3",K,"Obowiązkowe · "+r(e.required.length),1),t("ul",Q,[(n(!0),l(_,null,h(e.required,a=>(n(),z(b,{key:a.id,reading:a,onToggle:y=>i(s).toggleReading(a.id,y)},null,8,["reading","onToggle"]))),128))])],64)):g("",!0),e.optional.length?(n(),l(_,{key:1},[t("h3",X,"Dodatkowe · "+r(e.optional.length),1),t("ul",Y,[(n(!0),l(_,null,h(e.optional,a=>(n(),z(b,{key:a.id,reading:a,onToggle:y=>i(s).toggleReading(a.id,y)},null,8,["reading","onToggle"]))),128))])],64)):g("",!0)],8,I))),128)),f.value.length?g("",!0):(n(),l("p",Z,r(c.value?"Wszystko przeczytane. Gratulacje!":i(M)(0,"lektura","lektury","lektur")+" do wyświetlenia."),1))]),_:1},8,["ready","error"])])}}});export{le as default}; diff --git a/public/assets/RegisterView-D0r589HT.js b/public/assets/RegisterView-dAhzOEz2.js similarity index 98% rename from public/assets/RegisterView-D0r589HT.js rename to public/assets/RegisterView-dAhzOEz2.js index 323d5e2..cc29528 100644 --- a/public/assets/RegisterView-D0r589HT.js +++ b/public/assets/RegisterView-dAhzOEz2.js @@ -1 +1 @@ -import{d as q,u as N,c as o,a as s,t as n,h as _,i as g,g as B,e as u,w as d,v as m,r as l,k as C,o as i,m as x,l as I}from"./index-D5YFSKUV.js";import{f as M}from"./forms-wljlKyMv.js";const h={class:"auth"},j={key:0,class:"stack"},S={class:"notice",role:"status"},Z={key:0,class:"notice error",role:"alert",style:{"margin-bottom":"14px"}},A={class:"field"},D={key:0,class:"error-text"},E={class:"field"},P={key:0,class:"error-text"},R={class:"field"},T={key:0,class:"error-text"},H={class:"field"},K={key:0,class:"error-text"},W={class:"field"},F=["disabled"],G={class:"auth-links"},Q=q({__name:"RegisterView",setup(J){const V=N(),z=I(),v=l(""),f=l(""),w=l(""),c=l(""),y=l(""),p=l(!1),t=l(null),k=l("");async function U(){p.value=!0,t.value=null;try{const r=await V.register({name:v.value.trim(),surname:f.value.trim(),email:w.value.trim(),password:c.value,password_confirmation:y.value},!0);r.signedIn?await z.replace("/"):k.value=r.message||"Konto zostało utworzone. Sprawdź pocztę, aby je aktywować."}catch(r){t.value=M(r)}finally{p.value=!1}}return(r,e)=>{const b=C("router-link");return i(),o("div",h,[e[12]||(e[12]=s("header",{class:"page-head"},[s("span",{class:"eyebrow"},"BM II° · UWr"),s("h1",null,"Załóż konto")],-1)),k.value?(i(),o("div",j,[s("p",S,n(k.value),1),_(b,{class:"btn",to:"/logowanie"},{default:g(()=>[...e[5]||(e[5]=[x("Przejdź do logowania",-1)])]),_:1})])):(i(),o("form",{key:1,onSubmit:B(U,["prevent"]),novalidate:""},[t.value?.message?(i(),o("div",Z,n(t.value.message),1)):u("",!0),s("div",A,[e[6]||(e[6]=s("label",{for:"name"},"Imię",-1)),d(s("input",{id:"name","onUpdate:modelValue":e[0]||(e[0]=a=>v.value=a),type:"text",autocomplete:"given-name",required:""},null,512),[[m,v.value]]),t.value?.fields.name?(i(),o("p",D,n(t.value.fields.name),1)):u("",!0)]),s("div",E,[e[7]||(e[7]=s("label",{for:"surname"},"Nazwisko",-1)),d(s("input",{id:"surname","onUpdate:modelValue":e[1]||(e[1]=a=>f.value=a),type:"text",autocomplete:"family-name",required:""},null,512),[[m,f.value]]),t.value?.fields.surname?(i(),o("p",P,n(t.value.fields.surname),1)):u("",!0)]),s("div",R,[e[8]||(e[8]=s("label",{for:"email"},"Adres e-mail",-1)),d(s("input",{id:"email","onUpdate:modelValue":e[2]||(e[2]=a=>w.value=a),type:"email",autocomplete:"email",inputmode:"email",required:""},null,512),[[m,w.value]]),t.value?.fields.email?(i(),o("p",T,n(t.value.fields.email),1)):u("",!0)]),s("div",H,[e[9]||(e[9]=s("label",{for:"password"},"Hasło (min. 8 znaków)",-1)),d(s("input",{id:"password","onUpdate:modelValue":e[3]||(e[3]=a=>c.value=a),type:"password",autocomplete:"new-password",required:""},null,512),[[m,c.value]]),t.value?.fields.password?(i(),o("p",K,n(t.value.fields.password),1)):u("",!0)]),s("div",W,[e[10]||(e[10]=s("label",{for:"confirmation"},"Powtórz hasło",-1)),d(s("input",{id:"confirmation","onUpdate:modelValue":e[4]||(e[4]=a=>y.value=a),type:"password",autocomplete:"new-password",required:""},null,512),[[m,y.value]])]),s("button",{class:"btn primary block",type:"submit",disabled:p.value},n(p.value?"Zakładanie…":"Załóż konto"),9,F)],32)),s("div",G,[_(b,{to:"/logowanie"},{default:g(()=>[...e[11]||(e[11]=[x("Mam już konto",-1)])]),_:1})])])}}});export{Q as default}; +import{d as q,u as N,c as o,a as s,t as n,h as _,i as g,g as B,e as u,w as d,v as m,r as l,k as C,o as i,m as x,l as I}from"./index-Bm0qbefx.js";import{f as M}from"./forms-Baj3w_Pg.js";const h={class:"auth"},j={key:0,class:"stack"},S={class:"notice",role:"status"},Z={key:0,class:"notice error",role:"alert",style:{"margin-bottom":"14px"}},A={class:"field"},D={key:0,class:"error-text"},E={class:"field"},P={key:0,class:"error-text"},R={class:"field"},T={key:0,class:"error-text"},H={class:"field"},K={key:0,class:"error-text"},W={class:"field"},F=["disabled"],G={class:"auth-links"},Q=q({__name:"RegisterView",setup(J){const V=N(),z=I(),v=l(""),f=l(""),w=l(""),c=l(""),y=l(""),p=l(!1),t=l(null),k=l("");async function U(){p.value=!0,t.value=null;try{const r=await V.register({name:v.value.trim(),surname:f.value.trim(),email:w.value.trim(),password:c.value,password_confirmation:y.value},!0);r.signedIn?await z.replace("/"):k.value=r.message||"Konto zostało utworzone. Sprawdź pocztę, aby je aktywować."}catch(r){t.value=M(r)}finally{p.value=!1}}return(r,e)=>{const b=C("router-link");return i(),o("div",h,[e[12]||(e[12]=s("header",{class:"page-head"},[s("span",{class:"eyebrow"},"BM II° · UWr"),s("h1",null,"Załóż konto")],-1)),k.value?(i(),o("div",j,[s("p",S,n(k.value),1),_(b,{class:"btn",to:"/logowanie"},{default:g(()=>[...e[5]||(e[5]=[x("Przejdź do logowania",-1)])]),_:1})])):(i(),o("form",{key:1,onSubmit:B(U,["prevent"]),novalidate:""},[t.value?.message?(i(),o("div",Z,n(t.value.message),1)):u("",!0),s("div",A,[e[6]||(e[6]=s("label",{for:"name"},"Imię",-1)),d(s("input",{id:"name","onUpdate:modelValue":e[0]||(e[0]=a=>v.value=a),type:"text",autocomplete:"given-name",required:""},null,512),[[m,v.value]]),t.value?.fields.name?(i(),o("p",D,n(t.value.fields.name),1)):u("",!0)]),s("div",E,[e[7]||(e[7]=s("label",{for:"surname"},"Nazwisko",-1)),d(s("input",{id:"surname","onUpdate:modelValue":e[1]||(e[1]=a=>f.value=a),type:"text",autocomplete:"family-name",required:""},null,512),[[m,f.value]]),t.value?.fields.surname?(i(),o("p",P,n(t.value.fields.surname),1)):u("",!0)]),s("div",R,[e[8]||(e[8]=s("label",{for:"email"},"Adres e-mail",-1)),d(s("input",{id:"email","onUpdate:modelValue":e[2]||(e[2]=a=>w.value=a),type:"email",autocomplete:"email",inputmode:"email",required:""},null,512),[[m,w.value]]),t.value?.fields.email?(i(),o("p",T,n(t.value.fields.email),1)):u("",!0)]),s("div",H,[e[9]||(e[9]=s("label",{for:"password"},"Hasło (min. 8 znaków)",-1)),d(s("input",{id:"password","onUpdate:modelValue":e[3]||(e[3]=a=>c.value=a),type:"password",autocomplete:"new-password",required:""},null,512),[[m,c.value]]),t.value?.fields.password?(i(),o("p",K,n(t.value.fields.password),1)):u("",!0)]),s("div",W,[e[10]||(e[10]=s("label",{for:"confirmation"},"Powtórz hasło",-1)),d(s("input",{id:"confirmation","onUpdate:modelValue":e[4]||(e[4]=a=>y.value=a),type:"password",autocomplete:"new-password",required:""},null,512),[[m,y.value]])]),s("button",{class:"btn primary block",type:"submit",disabled:p.value},n(p.value?"Zakładanie…":"Załóż konto"),9,F)],32)),s("div",G,[_(b,{to:"/logowanie"},{default:g(()=>[...e[11]||(e[11]=[x("Mam już konto",-1)])]),_:1})])])}}});export{Q as default}; diff --git a/public/assets/ResetView-BQnpRsQD.js b/public/assets/ResetView-B6S5Obs5.js similarity index 97% rename from public/assets/ResetView-BQnpRsQD.js rename to public/assets/ResetView-B6S5Obs5.js index 385611b..ac9b2f0 100644 --- a/public/assets/ResetView-BQnpRsQD.js +++ b/public/assets/ResetView-B6S5Obs5.js @@ -1 +1 @@ -import{d as _,r as t,c as a,a as o,h as g,i as x,g as V,t as m,e as v,b as q,w as c,v as f,j as z,k as N,o as l,m as h,n as B}from"./index-D5YFSKUV.js";import{f as C}from"./forms-wljlKyMv.js";const U={class:"auth"},M={key:0,class:"stack"},Z={key:0,class:"notice error",role:"alert",style:{"margin-bottom":"14px"}},j={key:1,class:"field"},D={class:"field"},E={key:0,class:"error-text"},I={class:"field"},P=["disabled"],A=_({__name:"ResetView",setup(R){const u=z(),i=t(typeof u.query.code=="string"?u.query.code:""),n=t(""),p=t(""),d=t(!1),w=t(!1),s=t(null);async function b(){d.value=!0,s.value=null;try{await B.resetPassword({code:i.value.trim(),password:n.value,password_confirmation:p.value}),w.value=!0}catch(y){s.value=C(y)}finally{d.value=!1}}return(y,e)=>{const k=N("router-link");return l(),a("div",U,[e[8]||(e[8]=o("header",{class:"page-head"},[o("span",{class:"eyebrow"},"BM II° · UWr"),o("h1",null,"Nowe hasło")],-1)),w.value?(l(),a("div",M,[e[4]||(e[4]=o("p",{class:"notice",role:"status"},"Hasło zostało zmienione.",-1)),g(k,{class:"btn primary",to:"/logowanie"},{default:x(()=>[...e[3]||(e[3]=[h("Zaloguj się",-1)])]),_:1})])):(l(),a("form",{key:1,onSubmit:V(b,["prevent"]),novalidate:""},[s.value?.message?(l(),a("div",Z,m(s.value.message),1)):v("",!0),q(u).query.code?v("",!0):(l(),a("div",j,[e[5]||(e[5]=o("label",{for:"code"},"Kod z wiadomości",-1)),c(o("input",{id:"code","onUpdate:modelValue":e[0]||(e[0]=r=>i.value=r),type:"text",autocomplete:"one-time-code",required:""},null,512),[[f,i.value]])])),o("div",D,[e[6]||(e[6]=o("label",{for:"password"},"Nowe hasło (min. 8 znaków)",-1)),c(o("input",{id:"password","onUpdate:modelValue":e[1]||(e[1]=r=>n.value=r),type:"password",autocomplete:"new-password",required:""},null,512),[[f,n.value]]),s.value?.fields.password?(l(),a("p",E,m(s.value.fields.password),1)):v("",!0)]),o("div",I,[e[7]||(e[7]=o("label",{for:"confirmation"},"Powtórz hasło",-1)),c(o("input",{id:"confirmation","onUpdate:modelValue":e[2]||(e[2]=r=>p.value=r),type:"password",autocomplete:"new-password",required:""},null,512),[[f,p.value]])]),o("button",{class:"btn primary block",type:"submit",disabled:d.value||!i.value||!n.value},m(d.value?"Zapisywanie…":"Zapisz hasło"),9,P)],32))])}}});export{A as default}; +import{d as _,r as t,c as a,a as o,h as g,i as x,g as V,t as m,e as v,b as q,w as c,v as f,j as z,k as N,o as l,m as h,n as B}from"./index-Bm0qbefx.js";import{f as C}from"./forms-Baj3w_Pg.js";const U={class:"auth"},M={key:0,class:"stack"},Z={key:0,class:"notice error",role:"alert",style:{"margin-bottom":"14px"}},j={key:1,class:"field"},D={class:"field"},E={key:0,class:"error-text"},I={class:"field"},P=["disabled"],A=_({__name:"ResetView",setup(R){const u=z(),i=t(typeof u.query.code=="string"?u.query.code:""),n=t(""),p=t(""),d=t(!1),w=t(!1),s=t(null);async function b(){d.value=!0,s.value=null;try{await B.resetPassword({code:i.value.trim(),password:n.value,password_confirmation:p.value}),w.value=!0}catch(y){s.value=C(y)}finally{d.value=!1}}return(y,e)=>{const k=N("router-link");return l(),a("div",U,[e[8]||(e[8]=o("header",{class:"page-head"},[o("span",{class:"eyebrow"},"BM II° · UWr"),o("h1",null,"Nowe hasło")],-1)),w.value?(l(),a("div",M,[e[4]||(e[4]=o("p",{class:"notice",role:"status"},"Hasło zostało zmienione.",-1)),g(k,{class:"btn primary",to:"/logowanie"},{default:x(()=>[...e[3]||(e[3]=[h("Zaloguj się",-1)])]),_:1})])):(l(),a("form",{key:1,onSubmit:V(b,["prevent"]),novalidate:""},[s.value?.message?(l(),a("div",Z,m(s.value.message),1)):v("",!0),q(u).query.code?v("",!0):(l(),a("div",j,[e[5]||(e[5]=o("label",{for:"code"},"Kod z wiadomości",-1)),c(o("input",{id:"code","onUpdate:modelValue":e[0]||(e[0]=r=>i.value=r),type:"text",autocomplete:"one-time-code",required:""},null,512),[[f,i.value]])])),o("div",D,[e[6]||(e[6]=o("label",{for:"password"},"Nowe hasło (min. 8 znaków)",-1)),c(o("input",{id:"password","onUpdate:modelValue":e[1]||(e[1]=r=>n.value=r),type:"password",autocomplete:"new-password",required:""},null,512),[[f,n.value]]),s.value?.fields.password?(l(),a("p",E,m(s.value.fields.password),1)):v("",!0)]),o("div",I,[e[7]||(e[7]=o("label",{for:"confirmation"},"Powtórz hasło",-1)),c(o("input",{id:"confirmation","onUpdate:modelValue":e[2]||(e[2]=r=>p.value=r),type:"password",autocomplete:"new-password",required:""},null,512),[[f,p.value]])]),o("button",{class:"btn primary block",type:"submit",disabled:d.value||!i.value||!n.value},m(d.value?"Zapisywanie…":"Zapisz hasło"),9,P)],32))])}}});export{A as default}; diff --git a/public/assets/ScheduleView-DRXKDOhJ.js b/public/assets/ScheduleView-BzYdpyrd.js similarity index 94% rename from public/assets/ScheduleView-DRXKDOhJ.js rename to public/assets/ScheduleView-BzYdpyrd.js index 9f8eba1..8c09850 100644 --- a/public/assets/ScheduleView-DRXKDOhJ.js +++ b/public/assets/ScheduleView-BzYdpyrd.js @@ -1 +1 @@ -import{d as F,k as L,o as s,c as t,x as B,a,m as N,t as i,b as l,h as p,i as E,e as y,p as P,q as A,r as K,A as T,j as Z,F as f,y as C,s as v,l as I,B as O}from"./index-D5YFSKUV.js";import{_ as W}from"./PageHead.vue_vue_type_script_setup_true_lang-CmzkJbRP.js";import{_ as G}from"./LoadState.vue_vue_type_script_setup_true_lang-CkJKaMnT.js";import{_ as H}from"./ElectiveBar.vue_vue_type_script_setup_true_lang-DoecCJhC.js";import{a as D,F as J,t as Q,f as M,m as R,b as V,c as U,h as X,g as Y}from"./format-bcE-cYHJ.js";const ee={class:"time"},se={class:"name"},te={class:"meta"},ne={key:0},ae={key:1,class:"badge online"},oe={key:2,class:"badge onsite"},le={key:3,class:"mono"},ie={key:0,class:"note"},re=F({__name:"SessionCard",props:{session:{},showDay:{}},setup(o){return(u,h)=>{const z=L("router-link");return s(),t("article",{class:B(["session",{online:o.session.is_online}])},[a("div",ee,[N(i(l(D)(o.session.starts_at))+" ",1),a("span",null,i(l(D)(o.session.ends_at)),1)]),a("div",null,[a("div",se,[p(z,{to:`/przedmioty/${o.session.course_id}`,style:{color:"inherit","text-decoration":"none"}},{default:E(()=>[N(i(o.session.course.name),1)]),_:1},8,["to"])]),a("div",te,[a("span",null,i(l(J)[o.session.course.form]),1),o.session.kind?(s(),t("span",ne,"· "+i(o.session.kind),1)):y("",!0),o.session.is_online?(s(),t("span",ae,"online")):o.session.room?(s(),t("span",oe,"sala "+i(o.session.room),1)):y("",!0),o.showDay?(s(),t("span",le,i(o.showDay),1)):y("",!0)]),o.session.notes?(s(),t("div",ie,i(o.session.notes),1)):y("",!0)])],2)}}}),ue={"aria-label":"Wybór zjazdu"},ce={class:"chips"},de=["aria-pressed","aria-current","title","onClick"],me=["aria-label"],ve={class:"meeting-bar","aria-live":"polite"},ye={key:1,class:"badge solid"},_e={key:2,class:"badge alert"},be={key:0,class:"notice",style:{"margin-bottom":"16px"}},he=["aria-label"],ke={class:"day-head"},fe={key:2,class:"empty"},pe={class:"btn-row",style:{"margin-top":"18px","justify-content":"space-between"}},ze=["disabled"],ge=["disabled"],je={key:1,class:"empty"},Ne=F({__name:"ScheduleView",setup(o){const u=P(),h=Z(),z=I();A(()=>{Promise.all([u.loadMeetings(),u.loadSchedule(),u.loadCourses()])});const m=v(()=>u.meetings??[]),g=Q(),S=v(()=>m.value.find(n=>n.starts_on<=g&&g<=n.ends_on)??null),q=v(()=>m.value.find(n=>n.starts_on>g)??null),k=K(Number(h.query.zjazd)||null),j=v(()=>k.value??S.value?.number??q.value?.number??m.value.at(-1)?.number??null),c=v(()=>m.value.find(n=>n.number===j.value)??null),_=v(()=>m.value.findIndex(n=>n.number===j.value));function $(n){k.value=n,z.replace({query:{...h.query,zjazd:String(n)}})}T(()=>h.query.zjazd,n=>{const r=Number(n);r&&r!==k.value&&(k.value=r)});const w=v(()=>{const n=c.value;if(!n)return[];const r=new Map;for(const e of u.schedule){if(e.meeting_id!==n.id)continue;const d=X(e.starts_at);r.set(d,[...r.get(d)??[],e])}return[...r].sort(([e],[d])=>e.localeCompare(d)).map(([e,d])=>({key:e,sessions:d}))}),x=v(()=>Y(c.value?.notes)),b=n=>S.value?.number===n?"current":q.value?.number===n?"next":"";return(n,r)=>(s(),t("div",null,[p(W,{eyebrow:"Zjazdy",title:"Plan zajęć"}),p(G,{ready:l(u).loaded.meetings&&l(u).loaded.schedule&&l(u).loaded.courses,error:l(u).error,onRetry:r[2]||(r[2]=e=>l(u).retry())},{default:E(()=>[p(H),a("nav",ue,[a("div",ce,[(s(!0),t(f,null,C(m.value,e=>(s(),t("button",{key:e.id,class:"chip",type:"button","aria-pressed":e.number===j.value,"aria-current":b(e.number)==="current"?"date":void 0,title:l(M)(e.starts_on,e.ends_on),onClick:d=>$(e.number)},[N(i(e.number),1),b(e.number)?(s(),t("span",{key:0,class:"dot","aria-label":b(e.number)==="current"?"trwa":"najbliższy"},null,8,me)):y("",!0)],8,de))),128))])]),c.value?(s(),t(f,{key:0},[a("section",ve,[a("h2",null,"Zjazd "+i(c.value.number),1),a("span",null,i(l(M)(c.value.starts_on,c.value.ends_on)),1),x.value?(s(),t("span",{key:0,class:B(["badge",x.value==="online"?"online":"onsite"])},i(x.value),3)):y("",!0),b(c.value.number)==="current"?(s(),t("span",ye,"trwa teraz")):b(c.value.number)==="next"?(s(),t("span",_e,"najbliższy")):y("",!0)]),l(R)(c.value.notes)?(s(),t("p",be,i(l(R)(c.value.notes)),1)):y("",!0),w.value.length?(s(),t("div",{key:1,class:B(["days",{two:w.value.length===2}])},[(s(!0),t(f,null,C(w.value,e=>(s(),t("section",{key:e.key,"aria-label":l(V)(e.sessions[0].starts_at)},[a("div",ke,[a("span",null,i(l(V)(e.sessions[0].starts_at)),1),a("span",null,i(l(U)(e.sessions.length,"zajęcia","zajęcia","zajęć")),1)]),(s(!0),t(f,null,C(e.sessions,d=>(s(),O(re,{key:d.id,session:d},null,8,["session"]))),128))],8,he))),128))],2)):(s(),t("p",fe,"Brak zajęć w tym zjeździe (może należą do ukrytych alternatyw).")),a("div",pe,[a("button",{class:"btn small",type:"button",disabled:_.value<=0,onClick:r[0]||(r[0]=e=>$(m.value[_.value-1].number))},"← Poprzedni zjazd",8,ze),a("button",{class:"btn small",type:"button",disabled:_.value<0||_.value>=m.value.length-1,onClick:r[1]||(r[1]=e=>$(m.value[_.value+1].number))},"Następny zjazd →",8,ge)])],64)):(s(),t("p",je,"Brak zjazdów."))]),_:1},8,["ready","error"])]))}});export{Ne as default}; +import{d as F,k as L,o as s,c as t,x as B,a,m as N,t as i,b as l,h as p,i as E,e as y,p as P,q as A,r as K,A as T,j as Z,F as f,y as C,s as v,l as I,B as O}from"./index-Bm0qbefx.js";import{_ as W}from"./PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js";import{_ as G}from"./LoadState.vue_vue_type_script_setup_true_lang-Bzg7dKHt.js";import{_ as H}from"./ElectiveBar.vue_vue_type_script_setup_true_lang-DalXwVxD.js";import{a as D,F as J,t as Q,f as M,m as R,b as V,c as U,h as X,g as Y}from"./format-bcE-cYHJ.js";const ee={class:"time"},se={class:"name"},te={class:"meta"},ne={key:0},ae={key:1,class:"badge online"},oe={key:2,class:"badge onsite"},le={key:3,class:"mono"},ie={key:0,class:"note"},re=F({__name:"SessionCard",props:{session:{},showDay:{}},setup(o){return(u,h)=>{const z=L("router-link");return s(),t("article",{class:B(["session",{online:o.session.is_online}])},[a("div",ee,[N(i(l(D)(o.session.starts_at))+" ",1),a("span",null,i(l(D)(o.session.ends_at)),1)]),a("div",null,[a("div",se,[p(z,{to:`/przedmioty/${o.session.course_id}`,style:{color:"inherit","text-decoration":"none"}},{default:E(()=>[N(i(o.session.course.name),1)]),_:1},8,["to"])]),a("div",te,[a("span",null,i(l(J)[o.session.course.form]),1),o.session.kind?(s(),t("span",ne,"· "+i(o.session.kind),1)):y("",!0),o.session.is_online?(s(),t("span",ae,"online")):o.session.room?(s(),t("span",oe,"sala "+i(o.session.room),1)):y("",!0),o.showDay?(s(),t("span",le,i(o.showDay),1)):y("",!0)]),o.session.notes?(s(),t("div",ie,i(o.session.notes),1)):y("",!0)])],2)}}}),ue={"aria-label":"Wybór zjazdu"},ce={class:"chips"},de=["aria-pressed","aria-current","title","onClick"],me=["aria-label"],ve={class:"meeting-bar","aria-live":"polite"},ye={key:1,class:"badge solid"},_e={key:2,class:"badge alert"},be={key:0,class:"notice",style:{"margin-bottom":"16px"}},he=["aria-label"],ke={class:"day-head"},fe={key:2,class:"empty"},pe={class:"btn-row",style:{"margin-top":"18px","justify-content":"space-between"}},ze=["disabled"],ge=["disabled"],je={key:1,class:"empty"},Ne=F({__name:"ScheduleView",setup(o){const u=P(),h=Z(),z=I();A(()=>{Promise.all([u.loadMeetings(),u.loadSchedule(),u.loadCourses()])});const m=v(()=>u.meetings??[]),g=Q(),S=v(()=>m.value.find(n=>n.starts_on<=g&&g<=n.ends_on)??null),q=v(()=>m.value.find(n=>n.starts_on>g)??null),k=K(Number(h.query.zjazd)||null),j=v(()=>k.value??S.value?.number??q.value?.number??m.value.at(-1)?.number??null),c=v(()=>m.value.find(n=>n.number===j.value)??null),_=v(()=>m.value.findIndex(n=>n.number===j.value));function $(n){k.value=n,z.replace({query:{...h.query,zjazd:String(n)}})}T(()=>h.query.zjazd,n=>{const r=Number(n);r&&r!==k.value&&(k.value=r)});const w=v(()=>{const n=c.value;if(!n)return[];const r=new Map;for(const e of u.schedule){if(e.meeting_id!==n.id)continue;const d=X(e.starts_at);r.set(d,[...r.get(d)??[],e])}return[...r].sort(([e],[d])=>e.localeCompare(d)).map(([e,d])=>({key:e,sessions:d}))}),x=v(()=>Y(c.value?.notes)),b=n=>S.value?.number===n?"current":q.value?.number===n?"next":"";return(n,r)=>(s(),t("div",null,[p(W,{eyebrow:"Zjazdy",title:"Plan zajęć"}),p(G,{ready:l(u).loaded.meetings&&l(u).loaded.schedule&&l(u).loaded.courses,error:l(u).error,onRetry:r[2]||(r[2]=e=>l(u).retry())},{default:E(()=>[p(H),a("nav",ue,[a("div",ce,[(s(!0),t(f,null,C(m.value,e=>(s(),t("button",{key:e.id,class:"chip",type:"button","aria-pressed":e.number===j.value,"aria-current":b(e.number)==="current"?"date":void 0,title:l(M)(e.starts_on,e.ends_on),onClick:d=>$(e.number)},[N(i(e.number),1),b(e.number)?(s(),t("span",{key:0,class:"dot","aria-label":b(e.number)==="current"?"trwa":"najbliższy"},null,8,me)):y("",!0)],8,de))),128))])]),c.value?(s(),t(f,{key:0},[a("section",ve,[a("h2",null,"Zjazd "+i(c.value.number),1),a("span",null,i(l(M)(c.value.starts_on,c.value.ends_on)),1),x.value?(s(),t("span",{key:0,class:B(["badge",x.value==="online"?"online":"onsite"])},i(x.value),3)):y("",!0),b(c.value.number)==="current"?(s(),t("span",ye,"trwa teraz")):b(c.value.number)==="next"?(s(),t("span",_e,"najbliższy")):y("",!0)]),l(R)(c.value.notes)?(s(),t("p",be,i(l(R)(c.value.notes)),1)):y("",!0),w.value.length?(s(),t("div",{key:1,class:B(["days",{two:w.value.length===2}])},[(s(!0),t(f,null,C(w.value,e=>(s(),t("section",{key:e.key,"aria-label":l(V)(e.sessions[0].starts_at)},[a("div",ke,[a("span",null,i(l(V)(e.sessions[0].starts_at)),1),a("span",null,i(l(U)(e.sessions.length,"zajęcia","zajęcia","zajęć")),1)]),(s(!0),t(f,null,C(e.sessions,d=>(s(),O(re,{key:d.id,session:d},null,8,["session"]))),128))],8,he))),128))],2)):(s(),t("p",fe,"Brak zajęć w tym zjeździe (może należą do ukrytych alternatyw).")),a("div",pe,[a("button",{class:"btn small",type:"button",disabled:_.value<=0,onClick:r[0]||(r[0]=e=>$(m.value[_.value-1].number))},"← Poprzedni zjazd",8,ze),a("button",{class:"btn small",type:"button",disabled:_.value<0||_.value>=m.value.length-1,onClick:r[1]||(r[1]=e=>$(m.value[_.value+1].number))},"Następny zjazd →",8,ge)])],64)):(s(),t("p",je,"Brak zjazdów."))]),_:1},8,["ready","error"])]))}});export{Ne as default}; diff --git a/public/assets/forms-wljlKyMv.js b/public/assets/forms-Baj3w_Pg.js similarity index 85% rename from public/assets/forms-wljlKyMv.js rename to public/assets/forms-Baj3w_Pg.js index 53083b4..ae82e57 100644 --- a/public/assets/forms-wljlKyMv.js +++ b/public/assets/forms-Baj3w_Pg.js @@ -1 +1 @@ -import{R as o}from"./index-D5YFSKUV.js";function a(s){if(s instanceof o){const e={};for(const[r,t]of Object.entries(s.errors))t.length&&(e[r]=t[0]);return{message:Object.keys(e).length&&Object.values(e).includes(s.message)?"":s.message,fields:e}}return{message:"Coś poszło nie tak. Spróbuj ponownie.",fields:{}}}function f(s){return typeof s=="string"&&s.startsWith("/")&&!s.startsWith("//")&&!s.startsWith("/\\")?s:"/"}export{a as f,f as s}; +import{R as o}from"./index-Bm0qbefx.js";function a(s){if(s instanceof o){const e={};for(const[r,t]of Object.entries(s.errors))t.length&&(e[r]=t[0]);return{message:Object.keys(e).length&&Object.values(e).includes(s.message)?"":s.message,fields:e}}return{message:"Coś poszło nie tak. Spróbuj ponownie.",fields:{}}}function f(s){return typeof s=="string"&&s.startsWith("/")&&!s.startsWith("//")&&!s.startsWith("/\\")?s:"/"}export{a as f,f as s}; diff --git a/public/assets/index-Bm0qbefx.js b/public/assets/index-Bm0qbefx.js new file mode 100644 index 0000000..d9edd50 --- /dev/null +++ b/public/assets/index-Bm0qbefx.js @@ -0,0 +1,3 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-CHeK-5Bc.js","assets/forms-Baj3w_Pg.js","assets/RegisterView-dAhzOEz2.js","assets/ForgotView-3wxOP3D0.js","assets/ResetView-B6S5Obs5.js","assets/DashboardView-Dfvs0M8g.js","assets/PageHead.vue_vue_type_script_setup_true_lang-BpuZ0ZG7.js","assets/LoadState.vue_vue_type_script_setup_true_lang-Bzg7dKHt.js","assets/ElectiveBar.vue_vue_type_script_setup_true_lang-DalXwVxD.js","assets/format-bcE-cYHJ.js","assets/ScheduleView-BzYdpyrd.js","assets/DeadlinesView-QfLdRQAY.js","assets/CoursesView-CSNtxDFY.js","assets/CourseView-BrtQf6Ix.js","assets/ReadingItem.vue_vue_type_script_setup_true_lang-BHoX7Hou.js","assets/ReadingsView-B-MVj8QM.js","assets/MaterialsView-q7P-jkv-.js","assets/MaterialView-Cks1ThSX.js","assets/QuizzesView-CV2z8jhd.js","assets/quizzes-G41zxwRD.js","assets/QuizView-Tr8Ule5Q.js","assets/MoreView-DOB3EP92.js","assets/ProfileView--Mea7hJf.js","assets/PresentationPublicView-C_hYF7I1.js","assets/PresentationPublicView-Cfps4bfr.css"])))=>i.map(i=>d[i]); +var Cl=Object.defineProperty;var Ol=(e,t,n)=>t in e?Cl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Kt=(e,t,n)=>Ol(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function hr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const oe={},Ft=[],ot=()=>{},$o=()=>!1,us=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),fs=e=>e.startsWith("onUpdate:"),be=Object.assign,pr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Pl=Object.prototype.hasOwnProperty,ee=(e,t)=>Pl.call(e,t),k=Array.isArray,It=e=>jn(e)==="[object Map]",_t=e=>jn(e)==="[object Set]",Fr=e=>jn(e)==="[object Date]",$=e=>typeof e=="function",ae=e=>typeof e=="string",Be=e=>typeof e=="symbol",te=e=>e!==null&&typeof e=="object",Ko=e=>(te(e)||$(e))&&$(e.then)&&$(e.catch),Go=Object.prototype.toString,jn=e=>Go.call(e),Tl=e=>jn(e).slice(8,-1),Wo=e=>jn(e)==="[object Object]",ds=e=>ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,mn=hr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hs=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Il=/-\w/g,Me=hs(e=>e.replace(Il,t=>t.slice(1).toUpperCase())),Ml=/\B([A-Z])/g,qt=hs(e=>e.replace(Ml,"-$1").toLowerCase()),ps=hs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ps=hs(e=>e?`on${ps(e)}`:""),st=(e,t)=>!Object.is(e,t),Jn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},gs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let kr;const ms=()=>kr||(kr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gr(e){if(k(e)){const t={};for(let n=0;nn.startsWith("/*")?"":n).split(Nl).forEach(n=>{if(n){const s=n.split(Dl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Rn(e){let t="";if(ae(e))t=e;else if(k(e))for(let n=0;nyt(n,t))}const Yo=e=>!!(e&&e.__v_isRef===!0),dn=e=>ae(e)?e:e==null?"":k(e)||te(e)&&(e.toString===Go||!$(e.toString))?Yo(e)?dn(e.value):JSON.stringify(e,Xo,2):String(e),Xo=(e,t)=>Yo(t)?Xo(e,t.value):It(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Ts(s,o)+" =>"]=r,n),{})}:_t(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ts(n))}:Be(t)?Ts(t):te(t)&&!k(t)&&!Wo(t)?String(t):t,Ts=(e,t="")=>{var n;return Be(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let ye;class Zo{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&&ye&&(ye.active?(this.parent=ye,this.index=(ye.scopes||(ye.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 s=this.scopes.slice();for(t=0,n=s.length;t0&&--this._on===0){if(ye===this)ye=this.prevScope;else{let t=ye;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,s;for(n=0,s=this.effects.length;n0)return;if(yn){let t=yn;for(yn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;_n;){let t=_n;for(_n=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function oi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ii(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),vr(s),Ul(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Js(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(li(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function li(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Cn)||(e.globalVersion=Cn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Js(e))))return;e.flags|=2;const t=e.dep,n=le,s=Ke;le=e,Ke=!0;try{oi(e);const r=e.fn(e._value);(t.version===0||st(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{le=n,Ke=s,ii(e),e.flags&=-3}}function vr(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)vr(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ul(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ke=!0;const ci=[];function vt(){ci.push(Ke),Ke=!1}function bt(){const e=ci.pop();Ke=e===void 0?!0:e}function Ur(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=le;le=void 0;try{t()}finally{le=n}}}let Cn=0;class ql{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 br{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(!le||!Ke||le===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==le)n=this.activeLink=new ql(le,this),le.deps?(n.prevDep=le.depsTail,le.depsTail.nextDep=n,le.depsTail=n):le.deps=le.depsTail=n,ai(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=le.depsTail,n.nextDep=void 0,le.depsTail.nextDep=n,le.depsTail=n,le.deps===n&&(le.deps=s)}return n}trigger(t){this.version++,Cn++,this.notify(t)}notify(t){_r();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{yr()}}}function ai(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)ai(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const es=new WeakMap,Ht=Symbol(""),Qs=Symbol(""),On=Symbol("");function Se(e,t,n){if(Ke&&le){let s=es.get(e);s||es.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new br),r.map=s,r.key=n),r.track()}}function ht(e,t,n,s,r,o){const i=es.get(e);if(!i){Cn++;return}const l=c=>{c&&c.trigger()};if(_r(),t==="clear")i.forEach(l);else{const c=k(e),f=c&&ds(n);if(c&&n==="length"){const u=Number(s);i.forEach((a,p)=>{(p==="length"||p===On||!Be(p)&&p>=u)&&l(a)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),f&&l(i.get(On)),t){case"add":c?f&&l(i.get("length")):(l(i.get(Ht)),It(e)&&l(i.get(Qs)));break;case"delete":c||(l(i.get(Ht)),It(e)&&l(i.get(Qs)));break;case"set":It(e)&&l(i.get(Ht));break}}yr()}function zl(e,t){const n=es.get(e);return n&&n.get(t)}function Gt(e){const t=Y(e);return t===e||(Se(t,"iterate",On),ke(e))?t:lt(e)?it(e)?t.map(n=>Mt(qe(n))):t.map(Mt):t.map(qe)}function _s(e){return Se(e=Y(e),"iterate",On),e}function tt(e,t){return lt(e)?Mt(it(e)?qe(t):t):qe(t)}const $l={__proto__:null,[Symbol.iterator](){return Ms(this,Symbol.iterator,e=>tt(this,e))},concat(...e){return Gt(this).concat(...e.map(t=>k(t)?Gt(t):t))},entries(){return Ms(this,"entries",e=>(e[1]=tt(this,e[1]),e))},every(e,t){return at(this,"every",e,t,void 0,arguments)},filter(e,t){return at(this,"filter",e,t,n=>n.map(s=>tt(this,s)),arguments)},find(e,t){return at(this,"find",e,t,n=>tt(this,n),arguments)},findIndex(e,t){return at(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return at(this,"findLast",e,t,n=>tt(this,n),arguments)},findLastIndex(e,t){return at(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return at(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ns(this,"includes",e)},indexOf(...e){return Ns(this,"indexOf",e)},join(e){return Gt(this).join(e)},lastIndexOf(...e){return Ns(this,"lastIndexOf",e)},map(e,t){return at(this,"map",e,t,void 0,arguments)},pop(){return ln(this,"pop")},push(...e){return ln(this,"push",e)},reduce(e,...t){return qr(this,"reduce",e,t)},reduceRight(e,...t){return qr(this,"reduceRight",e,t)},shift(){return ln(this,"shift")},some(e,t){return at(this,"some",e,t,void 0,arguments)},splice(...e){return ln(this,"splice",e)},toReversed(){return Gt(this).toReversed()},toSorted(e){return Gt(this).toSorted(e)},toSpliced(...e){return Gt(this).toSpliced(...e)},unshift(...e){return ln(this,"unshift",e)},values(){return Ms(this,"values",e=>tt(this,e))}};function Ms(e,t,n){const s=_s(e),r=s[t]();return s!==e&&!ke(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const Kl=Array.prototype;function at(e,t,n,s,r,o){const i=_s(e),l=i!==e&&!ke(e),c=i[t];if(c!==Kl[t]){const a=c.apply(e,o);return l?qe(a):a}let f=n;i!==e&&(l?f=function(a,p){return n.call(this,tt(e,a),p,e)}:n.length>2&&(f=function(a,p){return n.call(this,a,p,e)}));const u=c.call(i,f,s);return l&&r?r(u):u}function qr(e,t,n,s){const r=_s(e),o=r!==e&&!ke(e);let i=n,l=!1;r!==e&&(o?(l=s.length===0,i=function(f,u,a){return l&&(l=!1,f=tt(e,f)),n.call(this,f,tt(e,u),a,e)}):n.length>3&&(i=function(f,u,a){return n.call(this,f,u,a,e)}));const c=r[t](i,...s);return l?tt(e,c):c}function Ns(e,t,n){const s=Y(e);Se(s,"iterate",On);const r=s[t](...n);return(r===-1||r===!1)&&ys(n[0])?(n[0]=Y(n[0]),s[t](...n)):r}function ln(e,t,n=[]){vt(),_r();const s=Y(e)[t].apply(e,n);return yr(),bt(),s}const Gl=hr("__proto__,__v_isRef,__isVue"),ui=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Be));function Wl(e){Be(e)||(e=String(e));const t=Y(this);return Se(t,"has",e),t.hasOwnProperty(e)}class fi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?rc:gi:o?pi:hi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=k(t);if(!r){let c;if(i&&(c=$l[n]))return c;if(n==="hasOwnProperty")return Wl}const l=Reflect.get(t,n,he(t)?t:s);if((Be(n)?ui.has(n):Gl(n))||(r||Se(t,"get",n),o))return l;if(he(l)){const c=i&&ds(n)?l:l.value;return r&&te(c)?Xs(c):c}return te(l)?r?Xs(l):Fn(l):l}}class di extends fi{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const i=k(t)&&ds(n);if(!this._isShallow){const f=lt(o);if(!ke(s)&&!lt(s)&&(o=Y(o),s=Y(s)),!i&&he(o)&&!he(s))return f||(o.value=s),!0}const l=i?Number(n)e,qn=e=>Reflect.getPrototypeOf(e);function Zl(e,t,n){return function(...s){const r=this.__v_raw,o=Y(r),i=It(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,f=r[e](...s),u=n?Ys:t?Mt:qe;return!t&&Se(o,"iterate",c?Qs:Ht),be(Object.create(f),{next(){const{value:a,done:p}=f.next();return p?{value:a,done:p}:{value:l?[u(a[0]),u(a[1])]:u(a),done:p}}})}}function zn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ec(e,t){const n={get(r){const o=this.__v_raw,i=Y(o),l=Y(r);e||(st(r,l)&&Se(i,"get",r),Se(i,"get",l));const{has:c}=qn(i),f=t?Ys:e?Mt:qe;if(c.call(i,r))return f(o.get(r));if(c.call(i,l))return f(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&Se(Y(r),"iterate",Ht),r.size},has(r){const o=this.__v_raw,i=Y(o),l=Y(r);return e||(st(r,l)&&Se(i,"has",r),Se(i,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const i=this,l=i.__v_raw,c=Y(l),f=t?Ys:e?Mt:qe;return!e&&Se(c,"iterate",Ht),l.forEach((u,a)=>r.call(o,f(u),f(a),i))}};return be(n,e?{add:zn("add"),set:zn("set"),delete:zn("delete"),clear:zn("clear")}:{add(r){const o=Y(this),i=qn(o),l=Y(r),c=!t&&!ke(r)&&!lt(r)?l:r;return i.has.call(o,c)||st(r,c)&&i.has.call(o,r)||st(l,c)&&i.has.call(o,l)||(o.add(c),ht(o,"add",c,c)),this},set(r,o){!t&&!ke(o)&&!lt(o)&&(o=Y(o));const i=Y(this),{has:l,get:c}=qn(i);let f=l.call(i,r);f||(r=Y(r),f=l.call(i,r));const u=c.call(i,r);return i.set(r,o),f?st(o,u)&&ht(i,"set",r,o):ht(i,"add",r,o),this},delete(r){const o=Y(this),{has:i,get:l}=qn(o);let c=i.call(o,r);c||(r=Y(r),c=i.call(o,r)),l&&l.call(o,r);const f=o.delete(r);return c&&ht(o,"delete",r,void 0),f},clear(){const r=Y(this),o=r.size!==0,i=r.clear();return o&&ht(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Zl(r,e,t)}),n}function Er(e,t){const n=ec(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(ee(n,r)&&r in s?n:s,r,o)}const tc={get:Er(!1,!1)},nc={get:Er(!1,!0)},sc={get:Er(!0,!1)};const hi=new WeakMap,pi=new WeakMap,gi=new WeakMap,rc=new WeakMap;function oc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fn(e){return lt(e)?e:wr(e,!1,Ql,tc,hi)}function mi(e){return wr(e,!1,Xl,nc,pi)}function Xs(e){return wr(e,!0,Yl,sc,gi)}function wr(e,t,n,s,r){if(!te(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=r.get(e);if(o)return o;const i=oc(Tl(e));if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function it(e){return lt(e)?it(e.__v_raw):!!(e&&e.__v_isReactive)}function lt(e){return!!(e&&e.__v_isReadonly)}function ke(e){return!!(e&&e.__v_isShallow)}function ys(e){return e?!!e.__v_raw:!1}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function Sr(e){return!ee(e,"__v_skip")&&Object.isExtensible(e)&&Jo(e,"__v_skip",!0),e}const qe=e=>te(e)?Fn(e):e,Mt=e=>te(e)?Xs(e):e;function he(e){return e?e.__v_isRef===!0:!1}function Ie(e){return yi(e,!1)}function _i(e){return yi(e,!0)}function yi(e,t){return he(e)?e:new ic(e,t)}class ic{constructor(t,n){this.dep=new br,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Y(t),this._value=n?t:qe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||ke(t)||lt(t);t=s?t:Y(t),st(t,n)&&(this._rawValue=t,this._value=s?t:qe(t),this.dep.trigger())}}function $e(e){return he(e)?e.value:e}const lc={get:(e,t,n)=>t==="__v_raw"?e:$e(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return he(r)&&!he(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function vi(e){return it(e)?e:new Proxy(e,lc)}function cc(e){const t=k(e)?new Array(e.length):{};for(const n in e)t[n]=uc(e,n);return t}class ac{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=Be(n)?n:String(n),this._raw=Y(t);let r=!0,o=t;if(!k(t)||Be(this._key)||!ds(this._key))do r=!ys(o)||ke(o);while(r&&(o=o.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=$e(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&he(this._raw[this._key])){const n=this._object[this._key];if(he(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return zl(this._raw,this._key)}}function uc(e,t,n){return new ac(e,t,n)}class fc{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new br(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Cn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&le!==this)return ri(this,!0),!0}get value(){const t=this.dep.track();return li(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function dc(e,t,n=!1){let s,r;return $(e)?s=e:(s=e.get,r=e.set),new fc(s,r,n)}const $n={},ts=new WeakMap;let Vt;function hc(e,t=!1,n=Vt){if(n){let s=ts.get(n);s||ts.set(n,s=[]),s.push(e)}}function pc(e,t,n=oe){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:c}=n,f=M=>r?M:ke(M)||r===!1||r===0?pt(M,1):pt(M);let u,a,p,g,v=!1,E=!1;if(he(e)?(a=()=>e.value,v=ke(e)):it(e)?(a=()=>f(e),v=!0):k(e)?(E=!0,v=e.some(M=>it(M)||ke(M)),a=()=>e.map(M=>{if(he(M))return M.value;if(it(M))return f(M);if($(M))return c?c(M,2):M()})):$(e)?t?a=c?()=>c(e,2):e:a=()=>{if(p){vt();try{p()}finally{bt()}}const M=Vt;Vt=u;try{return c?c(e,3,[g]):e(g)}finally{Vt=M}}:a=ot,t&&r){const M=a,K=r===!0?1/0:r;a=()=>pt(M(),K)}const O=ti(),R=()=>{u.stop(),O&&O.active&&pr(O.effects,u)};if(o&&t){const M=t;t=(...K)=>{const ne=M(...K);return R(),ne}}let A=E?new Array(e.length).fill($n):$n;const N=M=>{if(!(!(u.flags&1)||!u.dirty&&!M))if(t){const K=u.run();if(M||r||v||(E?K.some((ne,L)=>st(ne,A[L])):st(K,A))){p&&p();const ne=Vt;Vt=u;try{const L=[K,A===$n?void 0:E&&A[0]===$n?[]:A,g];A=K,c?c(t,3,L):t(...L)}finally{Vt=ne}}}else u.run()};return l&&l(N),u=new ni(a),u.scheduler=i?()=>i(N,!1):N,g=M=>hc(M,!1,u),p=u.onStop=()=>{const M=ts.get(u);if(M){if(c)c(M,4);else for(const K of M)K();ts.delete(u)}},t?s?N(!0):A=u.run():i?i(N.bind(null,!0),!0):u.run(),R.pause=u.pause.bind(u),R.resume=u.resume.bind(u),R.stop=R,R}function pt(e,t=1/0,n){if(t<=0||!te(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,he(e))pt(e.value,t,n);else if(k(e))for(let s=0;s{pt(s,t,n)});else if(Wo(e)){for(const s in e)pt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&pt(e[s],t,n)}return e}function kn(e,t,n,s){try{return s?e(...s):e()}catch(r){vs(r,t,n)}}function Ge(e,t,n,s){if($(e)){const r=kn(e,t,n,s);return r&&Ko(r)&&r.catch(o=>{vs(o,t,n)}),r}if(k(e)){const r=[];for(let o=0;o>>1,r=Te[s],o=Pn(r);o=Pn(n)?Te.push(e):Te.splice(mc(t),0,e),e.flags|=1,Ei()}}function Ei(){ns||(ns=bi.then(Si))}function _c(e){if(!k(e))Ot&&e.id===-1?Ot.splice(Qt+1,0,e):e.flags&1||(Xt.push(e),e.flags|=1);else for(let t=0;tPn(n)-Pn(s));if(Xt.length=0,Ot){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function Si(e){try{for(et=0;et{s._d&&is(-1);const o=ss(t),i=gt.length;let l;try{l=e(...r)}finally{for(let c=gt.length;c>i;c--)Tr();ss(o),s._d&&is(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function yc(e,t){if(we===null)return e;const n=xs(we),s=e.dirs||(e.dirs=[]);for(let r=0;r1)return n&&$(t)?t.call(s&&s.proxy):t}}function vc(){return!!(Xi()||Ut)}const bc=Symbol.for("v-scx"),Ec=()=>Ue(bc);function Zt(e,t,n){return xi(e,t,n)}function xi(e,t,n=oe){const{immediate:s,deep:r,flush:o,once:i}=n,l=be({},n),c=t&&s||!t&&o!=="post";let f;if(Dn){if(o==="sync"){const g=Ec();f=g.__watcherHandles||(g.__watcherHandles=[])}else if(!c){const g=()=>{};return g.stop=ot,g.resume=ot,g.pause=ot,g}}const u=Ae;l.call=(g,v,E)=>Ge(g,u,v,E);let a=!1;o==="post"?l.scheduler=g=>{Oe(g,u&&u.suspense)}:o!=="sync"&&(a=!0,l.scheduler=(g,v)=>{v?g():Ar(g)}),l.augmentJob=g=>{t&&(g.flags|=4),a&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const p=pc(e,t,l);return Dn&&(f?f.push(p):c&&p()),p}function wc(e,t,n){const s=this.proxy,r=ae(e)?e.includes(".")?Ri(s,e):()=>s[e]:e.bind(s,s);let o;$(t)?o=t:(o=t.handler,n=t);const i=Hn(this),l=xi(r,o.bind(s),n);return i(),l}function Ri(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;re.__isTeleport,jt=e=>e&&(e.disabled||e.disabled===""),Sc=e=>e&&(e.defer||e.defer===""),$r=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Kr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Zs=(e,t)=>{const n=e&&e.to;return ae(n)?t?t(n):null:n},Ac={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,i,l,c,f){const{mc:u,pc:a,pbc:p,o:{insert:g,querySelector:v,createText:E,createComment:O,parentNode:R}}=f,A=jt(t.props);let{dynamicChildren:N}=t;const M=(L,B,V)=>{L.shapeFlag&16&&u(L.children,B,V,r,o,i,l,c)},K=(L=t)=>{const B=jt(L.props),V=L.target=Zs(L.props,v),X=er(V,L,E,g);V&&(i!=="svg"&&$r(V)?i="svg":i!=="mathml"&&Kr(V)&&(i="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(V),B||(M(L,V,X),hn(L,!1)))},ne=L=>{const B=()=>{if(xt.get(L)===B){if(xt.delete(L),jt(L.props)){const V=R(L.el)||n;M(L,V,L.anchor),hn(L,!0)}K(L)}};xt.set(L,B),Oe(B,o)};if(e==null){const L=t.el=E(""),B=t.anchor=E("");if(g(L,n,s),g(B,n,s),Sc(t.props)||o&&o.pendingBranch){ne(t);return}A&&(M(t,n,B),hn(t,!0)),K()}else{t.el=e.el;const L=t.anchor=e.anchor,B=xt.get(e);if(B){B.flags|=8,xt.delete(e),ne(t);return}t.targetStart=e.targetStart;const V=t.target=e.target,X=t.targetAnchor=e.targetAnchor,ue=jt(e.props),H=ue?n:V,fe=ue?L:X;if(i==="svg"||$r(V)?i="svg":(i==="mathml"||Kr(V))&&(i="mathml"),N?(p(e.dynamicChildren,N,H,r,o,i,l),Pr(e,t,!0)):c||a(e,t,H,fe,r,o,i,l,!1),A)ue?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Kn(t,n,L,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const pe=Zs(t.props,v);pe&&(t.target=pe,Kn(t,pe,null,f,0))}else ue&&Kn(t,V,X,f,1);hn(t,A)}},remove(e,t,n,{um:s,o:{remove:r}},o){const{shapeFlag:i,children:l,anchor:c,targetStart:f,targetAnchor:u,target:a,props:p}=e,g=jt(p),v=o||!g,E=xt.get(e);if(E&&(E.flags|=8,xt.delete(e)),a&&(r(f),r(u)),o&&r(c),!E&&(g||a)&&i&16)for(let O=0;O1){for(const n of e)if(n.type!==ct){t=n;break}}return t}function Oi(e){if(!Rr(e))return Es(e.type)&&e.children?Rc(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&&$(n.default))return n.default()}}function xr(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;xr(Es(n.type)&&Oi(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 Bn(e,t){return $(e)?be({name:e.name},t,{setup:e}):e}function Pi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Gr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const rs=new WeakMap;function bn(e,t,n,s,r=!1){if(k(e)){e.forEach((E,O)=>bn(E,t&&(k(t)?t[O]:t),n,s,r));return}if(en(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&bn(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?xs(s.component):s.el,i=r?null:o,{i:l,r:c}=e,f=t&&t.r,u=l.refs===oe?l.refs={}:l.refs,a=l.setupState,p=Y(a),g=a===oe?$o:E=>Gr(u,E)?!1:ee(p,E),v=(E,O)=>!(O&&Gr(u,O));if(f!=null&&f!==c){if(Wr(t),ae(f))u[f]=null,g(f)&&(a[f]=null);else if(he(f)){const E=t;v(f,E.k)&&(f.value=null),E.k&&(u[E.k]=null)}}if($(c))kn(c,l,12,[i,u]);else{const E=ae(c),O=he(c);if(E||O){const R=()=>{if(e.f){const A=E?g(c)?a[c]:u[c]:v()||!e.k?c.value:u[e.k];if(r)k(A)&&pr(A,o);else if(k(A))A.includes(o)||A.push(o);else if(E)u[c]=[o],g(c)&&(a[c]=u[c]);else{const N=[o];v(c,e.k)&&(c.value=N),e.k&&(u[e.k]=N)}}else E?(u[c]=i,g(c)&&(a[c]=i)):O&&(v(c,e.k)&&(c.value=i),e.k&&(u[e.k]=i))};if(i){const A=()=>{R(),rs.delete(e)};A.id=-1,rs.set(e,A),Oe(A,n)}else Wr(e),R()}}}function Wr(e){const t=rs.get(e);t&&(t.flags|=8,rs.delete(e))}ms().requestIdleCallback;ms().cancelIdleCallback;const en=e=>!!e.type.__asyncLoader,Rr=e=>e.type.__isKeepAlive;function Cc(e,t){Ti(e,"a",t)}function Oc(e,t){Ti(e,"da",t)}function Ti(e,t,n=Ae){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ws(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Rr(r.parent.vnode)&&Pc(s,t,n,r),r=r.parent}}function Pc(e,t,n,s){const r=ws(t,e,s,!0);Ii(()=>{pr(s[t],r)},n)}function ws(e,t,n=Ae,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{vt();const l=Hn(n),c=Ge(t,n,e,i);return l(),bt(),c});return s?r.unshift(o):r.push(o),o}}const Et=e=>(t,n=Ae)=>{(!Dn||e==="sp")&&ws(e,(...s)=>t(...s),n)},Tc=Et("bm"),Ic=Et("m"),Mc=Et("bu"),Nc=Et("u"),Dc=Et("bum"),Ii=Et("um"),Lc=Et("sp"),Vc=Et("rtg"),jc=Et("rtc");function Fc(e,t=Ae){ws("ec",e,t)}const kc="components";function Mi(e,t){return Hc(kc,e,!0,t)||e}const Bc=Symbol.for("v-ndc");function Hc(e,t,n=!0,s=!1){const r=we||Ae;if(r){const o=r.type;{const l=xa(o,!1);if(l&&(l===t||l===Me(t)||l===ps(Me(t))))return o}const i=Jr(r[e]||o[e],t)||Jr(r.appContext[e],t);return!i&&s?o:i}}function Jr(e,t){return e&&(e[t]||e[Me(t)]||e[ps(Me(t))])}function Qr(e,t,n,s){let r;const o=n,i=k(e);if(i||ae(e)){const l=i&&it(e);let c=!1,f=!1;l&&(c=!ke(e),f=lt(e),e=_s(e)),r=new Array(e.length);for(let u=0,a=e.length;ut(l,c,void 0,o));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,f=l.length;c0;return mt(),In(De,null,[me("slot",f,s)],u?-2:64)}let i=e[t];i&&i._c&&(i._d=!1);const l=gt.length;mt();let c;try{const f=i&&Ni(i(n)),u=n.key||o||f&&f.key;c=In(De,{key:(u&&!Be(u)?u:`_${t}`)+(!f&&s?"_fb":"")},f||(s?s():[]),f&&e._===1?64:-2)}catch(f){for(let u=gt.length;u>l;u--)Tr();throw f}finally{i&&i._c&&(i._d=!0)}return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),c}function Ni(e){return e.some(t=>Mn(t)?!(t.type===ct||t.type===De&&!Ni(t.children)):!0)?e:null}const tr=e=>e?Zi(e)?xs(e):tr(e.parent):null,En=be(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=>tr(e.parent),$root:e=>tr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Li(e),$forceUpdate:e=>e.f||(e.f=()=>{Ar(e.update)}),$nextTick:e=>e.n||(e.n=bs.bind(e.proxy)),$watch:e=>wc.bind(e)}),Ls=(e,t)=>e!==oe&&!e.__isScriptSetup&&ee(e,t),qc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:c}=e;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Ls(s,t))return i[t]=1,s[t];if(r!==oe&&ee(r,t))return i[t]=2,r[t];if(ee(o,t))return i[t]=3,o[t];if(n!==oe&&ee(n,t))return i[t]=4,n[t];nr&&(i[t]=0)}}const f=En[t];let u,a;if(f)return t==="$attrs"&&Se(e.attrs,"get",""),f(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==oe&&ee(n,t))return i[t]=4,n[t];if(a=c.config.globalProperties,ee(a,t))return a[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Ls(r,t)?(r[t]=n,!0):s!==oe&&ee(s,t)?(s[t]=n,!0):ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:o,type:i}},l){let c;return!!(n[l]||e!==oe&&l[0]!=="$"&&ee(e,l)||Ls(t,l)||ee(o,l)||ee(s,l)||ee(En,l)||ee(r.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Yr(e){return k(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let nr=!0;function zc(e){const t=Li(e),n=e.proxy,s=e.ctx;nr=!1,t.beforeCreate&&Xr(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:f,created:u,beforeMount:a,mounted:p,beforeUpdate:g,updated:v,activated:E,deactivated:O,beforeDestroy:R,beforeUnmount:A,destroyed:N,unmounted:M,render:K,renderTracked:ne,renderTriggered:L,errorCaptured:B,serverPrefetch:V,expose:X,inheritAttrs:ue,components:H,directives:fe,filters:pe}=t;if(f&&$c(f,s,null),i)for(const z in i){const G=i[z];$(G)&&(s[z]=G.bind(n))}if(r){const z=r.call(n,n);te(z)&&(e.data=Fn(z))}if(nr=!0,o)for(const z in o){const G=o[z],Le=$(G)?G.bind(n,n):$(G.get)?G.get.bind(n,n):ot,wt=!$(G)&&$(G.set)?G.set.bind(n):ot,Je=Q({get:Le,set:wt});Object.defineProperty(s,z,{enumerable:!0,configurable:!0,get:()=>Je.value,set:xe=>Je.value=xe})}if(l)for(const z in l)Di(l[z],s,n,z);if(c){const z=$(c)?c.call(n):c;Reflect.ownKeys(z).forEach(G=>{Qn(G,z[G])})}u&&Xr(u,e,"c");function ie(z,G){k(G)?G.forEach(Le=>z(Le.bind(n))):G&&z(G.bind(n))}if(ie(Tc,a),ie(Ic,p),ie(Mc,g),ie(Nc,v),ie(Cc,E),ie(Oc,O),ie(Fc,B),ie(jc,ne),ie(Vc,L),ie(Dc,A),ie(Ii,M),ie(Lc,V),k(X))if(X.length){const z=e.exposed||(e.exposed={});X.forEach(G=>{Object.defineProperty(z,G,{get:()=>n[G],set:Le=>n[G]=Le,enumerable:!0})})}else e.exposed||(e.exposed={});K&&e.render===ot&&(e.render=K),ue!=null&&(e.inheritAttrs=ue),H&&(e.components=H),fe&&(e.directives=fe),V&&Pi(e)}function $c(e,t,n=ot){k(e)&&(e=sr(e));for(const s in e){const r=e[s];let o;te(r)?"default"in r?o=Ue(r.from||s,r.default,!0):o=Ue(r.from||s):o=Ue(r),he(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Xr(e,t,n){Ge(k(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Di(e,t,n,s){let r=s.includes(".")?Ri(n,s):()=>n[s];if(ae(e)){const o=t[e];$(o)&&Zt(r,o)}else if($(e))Zt(r,e.bind(n));else if(te(e))if(k(e))e.forEach(o=>Di(o,t,n,s));else{const o=$(e.handler)?e.handler.bind(n):t[e.handler];$(o)&&Zt(r,o,e)}}function Li(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(f=>os(c,f,i,!0)),os(c,t,i)),te(t)&&o.set(t,c),c}function os(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&os(e,o,n,!0),r&&r.forEach(i=>os(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Kc[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Kc={data:Zr,props:eo,emits:eo,methods:pn,computed:pn,beforeCreate:Ce,created:Ce,beforeMount:Ce,mounted:Ce,beforeUpdate:Ce,updated:Ce,beforeDestroy:Ce,beforeUnmount:Ce,destroyed:Ce,unmounted:Ce,activated:Ce,deactivated:Ce,errorCaptured:Ce,serverPrefetch:Ce,components:pn,directives:pn,watch:Wc,provide:Zr,inject:Gc};function Zr(e,t){return t?e?function(){return be($(e)?e.call(this,this):e,$(t)?t.call(this,this):t)}:t:e}function Gc(e,t){return pn(sr(e),sr(t))}function sr(e){if(k(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Me(t)}Modifiers`]||e[`${qt(t)}Modifiers`];function Xc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||oe;let r=n;const o=t.startsWith("update:"),i=o&&Yc(s,t.slice(7));i&&(i.trim&&(r=n.map(u=>ae(u)?u.trim():u)),i.number&&(r=r.map(gs)));let l,c=s[l=Ps(t)]||s[l=Ps(Me(t))];!c&&o&&(c=s[l=Ps(qt(t))]),c&&Ge(c,e,6,r);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ge(f,e,6,r)}}const Zc=new WeakMap;function ji(e,t,n=!1){const s=n?Zc:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!$(e)){const c=f=>{const u=ji(f,t,!0);u&&(l=!0,be(i,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(te(e)&&s.set(e,null),null):(k(o)?o.forEach(c=>i[c]=null):be(i,o),te(e)&&s.set(e,i),i)}function Ss(e,t){return!e||!us(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ee(e,t[0].toLowerCase()+t.slice(1))||ee(e,qt(t))||ee(e,t))}function to(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:c,render:f,renderCache:u,props:a,data:p,setupState:g,ctx:v,inheritAttrs:E}=e,O=ss(e);let R,A;try{if(n.shapeFlag&4){const M=r||s,K=M;R=nt(f.call(K,M,u,a,g,p,v)),A=l}else{const M=t;R=nt(M.length>1?M(a,{attrs:l,slots:i,emit:c}):M(a,null)),A=t.props?l:ea(l)}}catch(M){gt.length=0,vs(M,e,1),R=me(ct)}let N=R;if(A&&E!==!1){const M=Object.keys(A),{shapeFlag:K}=N;M.length&&K&7&&(o&&M.some(fs)&&(A=ta(A,o)),N=tn(N,A,!1,!0))}if(n.dirs&&(N=tn(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition){const M=Es(N.type)&&Oi(N)||N;xr(M,n.transition)}return R=N,ss(O),R}const ea=e=>{let t;for(const n in e)(n==="class"||n==="style"||us(n))&&((t||(t={}))[n]=e[n]);return t},ta=(e,t)=>{const n={};for(const s in e)(!fs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function na(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,f=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?no(s,i,f):!!i;if(c&8){const u=t.dynamicProps;for(let a=0;aObject.create(ki),Hi=e=>Object.getPrototypeOf(e)===ki;function ra(e,t,n,s=!1){const r={},o=Bi();e.propsDefaults=Object.create(null),Ui(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:mi(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function oa(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=Y(r),[c]=e.propsOptions;let f=!1;if((s||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let a=0;a{c=!0;const[p,g]=qi(a,t,!0);be(i,p),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!c)return te(e)&&s.set(e,Ft),Ft;if(k(o))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",Or=e=>k(e)?e.map(nt):[nt(e)],la=(e,t,n)=>{if(t._n)return t;const s=vn((...r)=>Or(t(...r)),n);return s._c=!1,s},zi=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Cr(r))continue;const o=e[r];if($(o))t[r]=la(r,o,s);else if(o!=null){const i=Or(o);t[r]=()=>i}}},$i=(e,t)=>{const n=Or(t);e.slots.default=()=>n},Ki=(e,t,n)=>{for(const s in t)(n||!Cr(s))&&(e[s]=t[s])},ca=(e,t,n)=>{const s=e.slots=Bi();if(e.vnode.shapeFlag&32){const r=t._;r?(Ki(s,t,n),n&&Jo(s,"_",r,!0)):zi(t,s)}else t&&$i(e,t)},aa=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=oe;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:Ki(r,t,n):(o=!t.$stable,zi(t,r)),i=t}else t&&($i(e,t),i={default:1});if(o)for(const l in r)!Cr(l)&&i[l]==null&&delete r[l]},Oe=pa;function ua(e){return fa(e)}function fa(e,t){const n=ms();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:f,setElementText:u,parentNode:a,nextSibling:p,setScopeId:g=ot,insertStaticContent:v}=e,E=(d,h,m,y=null,w=null,_=null,P=void 0,C=null,x=!!h.dynamicChildren)=>{if(d===h)return;d&&!cn(d,h)&&(y=b(d),xe(d,w,_,!0),d=null),h.patchFlag===-2&&(x=!1,h.dynamicChildren=null),h.dynamicChildren&&d&&d.dynamicChildren&&d.dynamicChildren.hasOnce&&(h.dynamicChildren===Ft&&(h.dynamicChildren=[]),h.dynamicChildren.hasOnce=!0);const{type:S,ref:U,shapeFlag:I}=h;switch(S){case As:O(d,h,m,y);break;case ct:R(d,h,m,y);break;case js:d==null&&A(h,m,y,P);break;case De:H(d,h,m,y,w,_,P,C,x);break;default:I&1?K(d,h,m,y,w,_,P,C,x):I&6?fe(d,h,m,y,w,_,P,C,x):(I&64||I&128)&&S.process(d,h,m,y,w,_,P,C,x,j)}U!=null&&w?bn(U,d&&d.ref,_,h||d,!h):U==null&&d&&d.ref!=null&&bn(d.ref,null,_,d,!0)},O=(d,h,m,y)=>{if(d==null)s(h.el=l(h.children),m,y);else{const w=h.el=d.el;h.children!==d.children&&f(w,h.children)}},R=(d,h,m,y)=>{d==null?s(h.el=c(h.children||""),m,y):h.el=d.el},A=(d,h,m,y)=>{[d.el,d.anchor]=v(d.children,h,m,y,d.el,d.anchor)},N=({el:d,anchor:h},m,y)=>{let w;for(;d&&d!==h;)w=p(d),s(d,m,y),d=w;s(h,m,y)},M=({el:d,anchor:h})=>{let m;for(;d&&d!==h;)m=p(d),r(d),d=m;r(h)},K=(d,h,m,y,w,_,P,C,x)=>{if(h.type==="svg"?P="svg":h.type==="math"&&(P="mathml"),d==null)ne(h,m,y,w,_,P,C,x);else{const S=d.el&&d.el._isVueCE?d.el:null;try{S&&S._beginPatch(),V(d,h,w,_,P,C,x)}finally{S&&S._endPatch()}}},ne=(d,h,m,y,w,_,P,C)=>{let x,S;const{props:U,shapeFlag:I,transition:F,dirs:q}=d;if(x=d.el=i(d.type,_,U&&U.is,U),I&8?u(x,d.children):I&16&&B(d.children,x,null,y,w,Vs(d,_),P,C),q&&Dt(d,null,y,"created"),L(x,d,d.scopeId,P,y),U){for(const re in U)re!=="value"&&!mn(re)&&o(x,re,null,U[re],_,y);"value"in U&&o(x,"value",null,U.value,_),(S=U.onVnodeBeforeMount)&&Ze(S,y,d)}q&&Dt(d,null,y,"beforeMount");const J=da(w,F);J&&F.beforeEnter(x),s(x,h,m),((S=U&&U.onVnodeMounted)||J||q)&&Oe(()=>{S&&Ze(S,y,d),J&&F.enter(x),q&&Dt(d,null,y,"mounted")},w)},L=(d,h,m,y,w)=>{if(m&&g(d,m),y)for(let _=0;_{for(let S=x;S{const C=h.el=d.el;let{patchFlag:x,dynamicChildren:S,dirs:U}=h;x|=d.patchFlag&16;const I=d.props||oe,F=h.props||oe;let q;if(m&&Lt(m,!1),(q=F.onVnodeBeforeUpdate)&&Ze(q,m,h,d),U&&Dt(h,d,m,"beforeUpdate"),m&&Lt(m,!0),S&&(!d.dynamicChildren||d.dynamicChildren.length!==S.length)&&(x=0,P=!1,S=null),(I.innerHTML&&F.innerHTML==null||I.textContent&&F.textContent==null)&&u(C,""),S?X(d.dynamicChildren,S,C,m,y,Vs(h,w),_):P||G(d,h,C,null,m,y,Vs(h,w),_,!1),x>0){if(x&16)ue(C,I,F,m,w);else if(x&2&&I.class!==F.class&&o(C,"class",null,F.class,w),x&4&&o(C,"style",I.style,F.style,w),x&8){const J=h.dynamicProps;for(let re=0;re{q&&Ze(q,m,h,d),U&&Dt(h,d,m,"updated")},y)},X=(d,h,m,y,w,_,P)=>{for(let C=0;C{if(h!==m){if(h!==oe)for(const _ in h)!mn(_)&&!(_ in m)&&o(d,_,h[_],null,w,y);for(const _ in m){if(mn(_))continue;const P=m[_],C=h[_];P!==C&&_!=="value"&&o(d,_,C,P,w,y)}"value"in m&&o(d,"value",h.value,m.value,w)}},H=(d,h,m,y,w,_,P,C,x)=>{const S=h.el=d?d.el:l(""),U=h.anchor=d?d.anchor:l("");let{patchFlag:I,dynamicChildren:F,slotScopeIds:q}=h;q&&(C=C?C.concat(q):q),d==null?(s(S,m,y),s(U,m,y),B(h.children||[],m,U,w,_,P,C,x)):I>0&&I&64&&F&&d.dynamicChildren&&d.dynamicChildren.length===F.length?(X(d.dynamicChildren,F,m,w,_,P,C),(h.key!=null||w&&h===w.subTree)&&Pr(d,h,!0)):G(d,h,m,U,w,_,P,C,x)},fe=(d,h,m,y,w,_,P,C,x)=>{h.slotScopeIds=C,d==null?h.shapeFlag&512?w.ctx.activate(h,m,y,P,x):pe(h,m,y,w,_,P,x):ze(d,h,x)},pe=(d,h,m,y,w,_,P)=>{const C=d.component=ba(d,y,w);if(Rr(d)&&(C.ctx.renderer=j),Ea(C,!1,P),C.asyncDep){if(w&&w.registerDep(C,ie,P),!d.el){const x=C.subTree=me(ct);R(null,x,h,m),d.placeholder=x.el}}else ie(C,d,h,m,w,_,P)},ze=(d,h,m)=>{const y=h.component=d.component;if(na(d,h,m))if(y.asyncDep&&!y.asyncResolved){h.el=d.el,z(y,h,m);return}else y.next=h,y.update();else h.el=d.el,y.vnode=h},ie=(d,h,m,y,w,_,P)=>{const C=()=>{if(d.isMounted){let{next:I,bu:F,u:q,parent:J,vnode:re}=d;{const Ye=Gi(d);if(Ye){I&&(I.el=re.el,z(d,I,P)),Ye.asyncDep.then(()=>{Oe(()=>{d.isUnmounted||S()},w)});return}}let se=I,ge;Lt(d,!1),I?(I.el=re.el,z(d,I,P)):I=re,F&&Jn(F),(ge=I.props&&I.props.onVnodeBeforeUpdate)&&Ze(ge,J,I,re),Lt(d,!0);const Ee=to(d),Qe=d.subTree;d.subTree=Ee,E(Qe,Ee,a(Qe.el),b(Qe),d,w,_),I.el=Ee.el,se===null&&sa(d,Ee.el),q&&Oe(q,w),(ge=I.props&&I.props.onVnodeUpdated)&&Oe(()=>Ze(ge,J,I,re),w)}else{let I;const{el:F,props:q}=h,{bm:J,m:re,parent:se,root:ge,type:Ee}=d,Qe=en(h);Lt(d,!1),J&&Jn(J),!Qe&&(I=q&&q.onVnodeBeforeMount)&&Ze(I,se,h),Lt(d,!0);{ge.ce&&ge.ce._hasShadowRoot()&&ge.ce._injectChildStyle(Ee,d.parent?d.parent.type:void 0);const Ye=d.subTree=to(d);E(null,Ye,m,y,d,w,_),h.el=Ye.el}if(re&&Oe(re,w),!Qe&&(I=q&&q.onVnodeMounted)){const Ye=h;Oe(()=>Ze(I,se,Ye),w)}(h.shapeFlag&256||se&&en(se.vnode)&&se.vnode.shapeFlag&256)&&d.a&&Oe(d.a,w),d.isMounted=!0,h=m=y=null}};d.scope.on();const x=d.effect=new ni(C);d.scope.off();const S=d.update=x.run.bind(x),U=d.job=x.runIfDirty.bind(x);U.i=d,U.id=d.uid,x.scheduler=()=>Ar(U),Lt(d,!0),S()},z=(d,h,m)=>{h.component=d;const y=d.vnode.props;d.vnode=h,d.next=null,oa(d,h.props,y,m),aa(d,h.children,m),vt(),zr(d),bt()},G=(d,h,m,y,w,_,P,C,x=!1)=>{const S=d&&d.children,U=d?d.shapeFlag:0,I=h.children,{patchFlag:F,shapeFlag:q}=h;if(F>0){if(F&128){wt(S,I,m,y,w,_,P,C,x);return}else if(F&256){Le(S,I,m,y,w,_,P,C,x);return}}q&8?(U&16&&He(S,w,_),I!==S&&u(m,I)):U&16?q&16?wt(S,I,m,y,w,_,P,C,x):He(S,w,_,!0):(U&8&&u(m,""),q&16&&B(I,m,y,w,_,P,C,x))},Le=(d,h,m,y,w,_,P,C,x)=>{d=d||Ft,h=h||Ft;const S=d.length,U=h.length,I=Math.min(S,U);let F;for(F=0;FU?He(d,w,_,!0,!1,I):B(h,m,y,w,_,P,C,x,I)},wt=(d,h,m,y,w,_,P,C,x)=>{let S=0;const U=h.length;let I=d.length-1,F=U-1;for(;S<=I&&S<=F;){const q=d[S],J=h[S]=x?dt(h[S]):nt(h[S]);if(cn(q,J))E(q,J,m,null,w,_,P,C,x);else break;S++}for(;S<=I&&S<=F;){const q=d[I],J=h[F]=x?dt(h[F]):nt(h[F]);if(cn(q,J))E(q,J,m,null,w,_,P,C,x);else break;I--,F--}if(S>I){if(S<=F){const q=F+1,J=qF)for(;S<=I;)xe(d[S],w,_,!0),S++;else{const q=S,J=S,re=new Map;for(S=J;S<=F;S++){const Ve=h[S]=x?dt(h[S]):nt(h[S]);Ve.key!=null&&re.set(Ve.key,S)}let se,ge=0;const Ee=F-J+1;let Qe=!1,Ye=0;const on=new Array(Ee);for(S=0;S=Ee){xe(Ve,w,_,!0);continue}let Xe;if(Ve.key!=null)Xe=re.get(Ve.key);else for(se=J;se<=F;se++)if(on[se-J]===0&&cn(Ve,h[se])){Xe=se;break}Xe===void 0?xe(Ve,w,_,!0):(on[Xe-J]=S+1,Xe>=Ye?Ye=Xe:Qe=!0,E(Ve,h[Xe],m,null,w,_,P,C,x),ge++)}const Lr=Qe?ha(on):Ft;for(se=Lr.length-1,S=Ee-1;S>=0;S--){const Ve=J+S,Xe=h[Ve],Vr=h[Ve+1],jr=Ve+1{const{el:_,type:P,transition:C,children:x,shapeFlag:S}=d;if(S&6){Je(d.component.subTree,h,m,y);return}if(S&128){d.suspense.move(h,m,y);return}if(S&64){P.move(d,h,m,j);return}if(P===De){s(_,h,m);for(let I=0;IC.enter(_),w));else{const{leave:I,delayLeave:F,afterLeave:q}=C,J=()=>{d.ctx.isUnmounted?r(_):s(_,h,m)},re=()=>{const se=_._isLeaving||!!_[Ds];_._isLeaving&&_[Ds](!0),C.persisted&&!se?J():I(_,()=>{J(),q&&q()})};F?F(_,J,re):re()}else s(_,h,m)},xe=(d,h,m,y=!1,w=!1)=>{const{type:_,props:P,ref:C,children:x,dynamicChildren:S,shapeFlag:U,patchFlag:I,dirs:F,cacheIndex:q,memo:J}=d;if((I===-2||S&&S.hasOnce)&&(w=!1),C!=null&&(vt(),bn(C,null,m,d,!0),bt()),q!=null&&(!d.ctx||d.ctx===h)&&(h.renderCache[q]=void 0),U&256){h.ctx.deactivate(d);return}const re=U&1&&F,se=!en(d);let ge;if(se&&(ge=P&&P.onVnodeBeforeUnmount)&&Ze(ge,h,d),U&6)Nt(d.component,m,y);else{if(U&128){d.suspense.unmount(m,y);return}re&&Dt(d,null,h,"beforeUnmount"),U&64?d.type.remove(d,h,m,j,y):S&&!S.hasOnce&&(_!==De||I>0&&I&64)?He(S,h,m,!1,!0):(_===De&&I&384||!w&&U&16)&&He(x,h,m),y&&zt(d)}const Ee=J!=null&&q==null;(se&&(ge=P&&P.onVnodeUnmounted)||re||Ee)&&Oe(()=>{ge&&Ze(ge,h,d),re&&Dt(d,null,h,"unmounted"),Ee&&(d.el=null)},m)},zt=d=>{const{type:h,el:m,anchor:y,transition:w}=d;if(h===De){$t(m,y);return}if(h===js){M(d),w&&!w.persisted&&w.afterLeave&&w.afterLeave();return}const _=()=>{r(m),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(d.shapeFlag&1&&w&&!w.persisted){const{leave:P,delayLeave:C}=w,x=()=>P(m,_);C?C(d.el,_,x):x()}else _()},$t=(d,h)=>{let m;for(;d!==h;)m=p(d),r(d),d=m;r(h)},Nt=(d,h,m)=>{const{bum:y,scope:w,job:_,subTree:P,um:C,m:x,a:S}=d;ro(x),ro(S),y&&Jn(y),w.stop(),_?(_.flags|=8,xe(P,d,h,m)):d.vnode.el&&P&&(P.transition=d.vnode.transition,xe(P,d,h,m)),C&&Oe(C,h),Oe(()=>{d.isUnmounted=!0},h)},He=(d,h,m,y=!1,w=!1,_=0)=>{for(let P=_;P{if(d.shapeFlag&6)return b(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const h=p(d.anchor||d.el),m=h&&h[Ci];return m?p(m):h};let D=!1;const T=(d,h,m)=>{let y;d==null?h._vnode&&(xe(h._vnode,null,null,!0),y=h._vnode.component):E(h._vnode||null,d,h,null,null,null,m),h._vnode=d,D||(D=!0,zr(y),wi(),D=!1)},j={p:E,um:xe,m:Je,r:zt,mt:pe,mc:B,pc:G,pbc:X,n:b,o:e};return{render:T,hydrate:void 0,createApp:Qc(T)}}function Vs({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 Lt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function da(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Pr(e,t,n=!1){const s=e.children,r=t.children;if(k(s)&&k(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Gi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Gi(t)}function ro(e){if(e)for(let t=0;te.__isSuspense;function pa(e,t){t&&t.pendingBranch?k(e)?t.effects.push(...e):t.effects.push(e):_c(e)}const De=Symbol.for("v-fgt"),As=Symbol.for("v-txt"),ct=Symbol.for("v-cmt"),js=Symbol.for("v-stc"),gt=[];let Fe=null;function mt(e=!1){gt.push(Fe=e?null:[])}function Tr(){gt.pop(),Fe=gt[gt.length-1]||null}let Tn=1;function is(e,t=!1){Tn+=e,e<0&&Fe&&t&&(Fe.hasOnce=!0)}function Qi(e){return e.dynamicChildren=Tn>0?Fe||Ft:null,Tr(),Tn>0&&Fe&&Fe.push(e),e}function Yn(e,t,n,s,r,o){return Qi(je(e,t,n,s,r,o,!0))}function In(e,t,n,s,r){return Qi(me(e,t,n,s,r,!0))}function Mn(e){return e?e.__v_isVNode===!0:!1}function cn(e,t){return e.type===t.type&&e.key===t.key}const Yi=({key:e})=>e??null,Xn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ae(e)||he(e)||$(e)?{i:we,r:e,k:t,f:!!n}:e:null);function je(e,t=null,n=null,s=0,r=null,o=e===De?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Yi(t),ref:t&&Xn(t),scopeId:Ai,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:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:we};return l?(ls(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=ae(n)?8:16),Tn>0&&!i&&Fe&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Fe.push(c),c}const me=ga;function ga(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Bc)&&(e=ct),Mn(e)){const l=tn(e,t,!0);return n&&ls(l,n),Tn>0&&!o&&Fe&&(l.shapeFlag&6?Fe[Fe.indexOf(e)]=l:Fe.push(l)),l.patchFlag=-2,l}if(Ra(e)&&(e=e.__vccOpts),t){t=ma(t);let{class:l,style:c}=t;l&&!ae(l)&&(t.class=Rn(l)),te(c)&&(ys(c)&&!k(c)&&(c=be({},c)),t.style=gr(c))}const i=ae(e)?1:Ji(e)?128:Es(e)?64:te(e)?4:$(e)?2:0;return je(e,t,n,s,r,i,o,!0)}function ma(e){return e?ys(e)||Hi(e)?be({},e):e:null}function tn(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:c}=e,f=t?_a(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Yi(f),ref:t&&t.ref?n&&o?k(o)?o.concat(Xn(t)):[o,Xn(t)]:Xn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==De?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&tn(e.ssContent),ssFallback:e.ssFallback&&tn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&s&&xr(u,c.clone(u)),u}function or(e=" ",t=0){return me(As,null,e,t)}function Uf(e="",t=!1){return t?(mt(),In(ct,null,e)):me(ct,null,e)}function nt(e){return e==null||typeof e=="boolean"?me(ct):k(e)?me(De,null,e.slice()):Mn(e)?dt(e):me(As,null,String(e))}function dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:tn(e)}function ls(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(k(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),ls(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Hi(t)?t._ctx=we:r===3&&we&&(we.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if($(t)){if(s&65){ls(e,{default:t});return}t={default:t,_ctx:we},n=32}else t=String(t),s&64?(n=16,t=[or(t)]):n=8;e.children=t,e.shapeFlag|=n}function _a(...e){const t={};for(let n=0;nAe||we;let cs,Nn;{const e=ms(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};cs=t("__VUE_INSTANCE_SETTERS__",n=>Ae=n),Nn=t("__VUE_SSR_SETTERS__",n=>Dn=n)}const Hn=e=>{const t=Ae;return cs(e),e.scope.on(),()=>{e.scope.off(),cs(t)}},oo=()=>{Ae&&Ae.scope.off(),cs(null)};function Zi(e){return e.vnode.shapeFlag&4}let Dn=!1;function Ea(e,t=!1,n=!1){t&&Nn(t);const{props:s,children:r}=e.vnode,o=Zi(e);ra(e,s,o,t),ca(e,r,n||t);const i=o?wa(e,t):void 0;return t&&Nn(!1),i}function wa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,qc);const{setup:s}=n;if(s){vt();const r=e.setupContext=s.length>1?Aa(e):null,o=Hn(e),i=kn(s,e,0,[e.props,r]),l=Ko(i);if(bt(),o(),(l||e.sp)&&!en(e)&&Pi(e),l){if(i.then(oo,oo),t)return i.then(c=>{Nn(!0);try{io(e,c,t)}finally{Nn(!1)}}).catch(c=>{vs(c,e,0)});e.asyncDep=i}else io(e,i)}else el(e)}function io(e,t,n){$(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:te(t)&&(e.setupState=vi(t)),el(e)}function el(e,t,n){const s=e.type;e.render||(e.render=s.render||ot);{const r=Hn(e);vt();try{zc(e)}finally{bt(),r()}}}const Sa={get(e,t){return Se(e,"get",""),e[t]}};function Aa(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Sa),slots:e.slots,emit:e.emit,expose:t}}function xs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(vi(Sr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in En)return En[n](e)},has(t,n){return n in t||n in En}})):e.proxy}function xa(e,t=!0){return $(e)?e.displayName||e.name:e.name||t&&e.__name}function Ra(e){return $(e)&&"__vccOpts"in e}const Q=(e,t)=>dc(e,t,Dn);function tl(e,t,n){try{is(-1);const s=arguments.length;return s===2?te(t)&&!k(t)?Mn(t)?me(e,null,[t]):me(e,t):me(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Mn(n)&&(n=[n]),me(e,t,n))}finally{is(1)}}const Ca="3.5.43";let ir;const lo=typeof window<"u"&&window.trustedTypes;if(lo)try{ir=lo.createPolicy("vue",{createHTML:e=>e})}catch{}const nl=ir?e=>ir.createHTML(e):e=>e,Oa="http://www.w3.org/2000/svg",Pa="http://www.w3.org/1998/Math/MathML",ft=typeof document<"u"?document:null,co=ft&&ft.createElement("template"),Ta={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?ft.createElementNS(Oa,e):t==="mathml"?ft.createElementNS(Pa,e):n?ft.createElement(e,{is:n}):ft.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ft.createTextNode(e),createComment:e=>ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ft.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{co.innerHTML=nl(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=co.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ia=Symbol("_vtc");function Ma(e,t,n){const s=e[Ia];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const as=Symbol("_vod"),sl=Symbol("_vsh"),Na={name:"show",beforeMount(e,{value:t},{transition:n}){e[as]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):an(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),an(e,!0),s.enter(e)):s.leave(e,()=>{an(e,!1)}):an(e,t))},beforeUnmount(e,{value:t}){an(e,t)}};function an(e,t){e.style.display=t?e[as]:"none",e[sl]=!t}const Da=Symbol(""),La=/(?:^|;)\s*display\s*:/;function Va(e,t,n){const s=e.style,r=ae(n);let o=!1;if(n&&!r){if(t)if(ae(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&gn(s,l,"")}else for(const i in t)n[i]==null&&gn(s,i,"");for(const i in n){i==="display"&&(o=!0);const l=n[i];l!=null?Fa(e,i,!ae(t)&&t?t[i]:void 0,l)||gn(s,i,l):gn(s,i,"")}}else if(r){if(t!==n){const i=s[Da];i&&(n+=";"+i),s.cssText=n,o=La.test(n)}}else t&&e.removeAttribute("style");as in e&&(e[as]=o?s.display:"",e[sl]&&(s.display="none"))}const Gn=/\s*!important$/;function gn(e,t,n){if(k(n))n.forEach(s=>gn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))Gn.test(n)?e.setProperty(t,n.replace(Gn,""),"important"):e.setProperty(t,n);else{const s=ja(e,t);Gn.test(n)?e.setProperty(qt(s),n.replace(Gn,""),"important"):e[s]=n}}const ao=["Webkit","Moz","ms"],Fs={};function ja(e,t){const n=Fs[t];if(n)return n;let s=Me(t);if(s!=="filter"&&s in e)return Fs[t]=s;s=ps(s);for(let r=0;rks||(za.then(()=>ks=0),ks=Date.now());function Ka(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(k(r)){const o=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{o.call(s),s._stopped=!0};const i=r.slice(),l=[s];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ga=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Ma(e,s,i):t==="style"?Va(e,n,s):us(t)?fs(t)||Ba(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Wa(e,t,s,i))?(ho(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&fo(e,t,s,i,o,t!=="value")):e._isVueCE&&(Ja(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ae(s)))?ho(e,Me(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),fo(e,t,s,i))};function Wa(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&go(t)&&$(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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return go(t)&&ae(n)?!1:t in e}function Ja(e,t){const n=e._def.props;if(!n)return!1;const s=Me(t);return Array.isArray(n)?n.some(r=>Me(r)===s):Object.keys(n).some(r=>Me(r)===s)}const nn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return k(t)?n=>Jn(t,n):t};function Qa(e){e.target.composing=!0}function mo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const rt=Symbol("_assign"),Wn=Symbol("_initialValue");function Bs(e,t,n){return t&&(e=e.trim()),n&&(e=gs(e)),e}const qf={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e.parentNode&&(e.type==="text"?e[Wn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Wn]=e.defaultValue.replace(/\r\n?/g,` +`))),e[rt]=nn(r);const o=s||r.props&&r.props.type==="number";Tt(e,t?"change":"input",i=>{i.target.composing||e[rt](Bs(e.value,n,o))}),(n||o)&&Tt(e,"change",()=>{e.value=Bs(e.value,n,o)}),t||(Tt(e,"compositionstart",Qa),Tt(e,"compositionend",mo),Tt(e,"change",mo))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=t??"",o=e[Wn];delete e[Wn],o!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==o?e[rt](Bs(e.value,n,s)):e.value=r},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[rt]=nn(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?gs(e.value):e.value,c=t??"";if(l===c)return;const f=e.getRootNode();(f instanceof Document||f instanceof ShadowRoot)&&f.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c)}},zf={deep:!0,created(e,t,n){e[rt]=nn(n),Tt(e,"change",()=>{const s=e._modelValue,r=Ln(e),o=e.checked,i=e[rt];if(k(s)){const l=mr(s,r),c=l!==-1;if(o&&!c)i(s.concat(r));else if(!o&&c){const f=[...s];f.splice(l,1),i(f)}}else if(_t(s)){const l=new Set(s);o?l.add(r):l.delete(r),i(l)}else i(rl(e,o))})},mounted:_o,beforeUpdate(e,t,n){e[rt]=nn(n),_o(e,t,n)}};function _o(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(k(t))r=mr(t,s.props.value)>-1;else if(_t(t))r=t.has(s.props.value);else{if(t===n)return;r=yt(t,rl(e,!0))}e.checked!==r&&(e.checked=r)}const $f={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,Tt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,c=>c.selected).map(c=>n?gs(Ln(c)):Ln(c)),o=e.multiple,i=o?_t(e._modelValue)?new Set(r):r:r[0],l=e._pendingValue=[o,o?k(i)?r.slice():r:i];try{e[rt](i)}finally{bs(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[rt]=nn(s)},mounted(e,{value:t}){yo(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[rt]=nn(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Ya(t,n[1],n[0]))&&yo(e,t)}};function Ya(e,t,n){if(!n||k(e))return yt(e,t);if(_t(e)){if(e.size!==t.length)return!1;for(const s of t)if(!e.has(s))return!1;return!0}return!1}function yo(e,t){const n=e.multiple,s=k(t);if(!(n&&!s&&!_t(t))){for(let r=0,o=e.options.length;rString(f)===String(l)):i.selected=mr(t,l)>-1}else i.selected=t.has(l);else if(yt(Ln(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ln(e){return"_value"in e?e._value:e.value}function rl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Xa=["ctrl","shift","alt","meta"],Za={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)=>Xa.some(n=>e[`${n}Key`]&&!t.includes(n))},Kf=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...o)=>{for(let i=0;i{const t=tu().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=ru(s);if(!r)return;const o=t._component;!$(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,su(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t});function su(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ru(e){return ae(e)?document.querySelector(e):e}let ol;const Rs=e=>ol=e,il=Symbol();function lr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var wn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(wn||(wn={}));function ou(){const e=ei(!0),t=e.run(()=>Ie({}));let n=[],s=[];const r=Sr({install(o){Rs(r),r._a=o,o.provide(il,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return this._a?n.push(o):s.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const ll=()=>{};function bo(e,t,n,s=ll){e.add(t);const r=()=>{e.delete(t)&&s()};return!n&&ti()&&Hl(r),r}function Wt(e,...t){e.forEach(n=>{n(...t)})}const iu=e=>e(),Eo=Symbol(),Hs=Symbol();function cr(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];lr(r)&&lr(s)&&e.hasOwnProperty(n)&&!he(s)&&!it(s)?e[n]=cr(r,s):e[n]=s}return e}const lu=Symbol();function cu(e){return!lr(e)||!Object.prototype.hasOwnProperty.call(e,lu)}const{assign:Rt}=Object;function au(e){return!!(he(e)&&e.effect)}function uu(e,t,n,s){const{state:r,actions:o,getters:i}=t,l=n.state.value[e];let c;function f(){l||(n.state.value[e]=r?r():{});const u=cc(n.state.value[e]);return Rt(u,o,Object.keys(i||{}).reduce((a,p)=>(a[p]=Sr(Q(()=>{Rs(n);const g=n._s.get(e);return i[p].call(g,g)})),a),{}))}return c=cl(e,f,t,n,s,!0),c}function cl(e,t,n={},s,r,o){let i;const l=Rt({actions:{}},n),c={deep:!0};let f,u,a=new Set,p=new Set,g;const v=s.state.value[e];!o&&!v&&(s.state.value[e]={});let E;function O(B){let V;f=u=!1,typeof B=="function"?(B(s.state.value[e]),V={type:wn.patchFunction,storeId:e,events:g}):(cr(s.state.value[e],B),V={type:wn.patchObject,payload:B,storeId:e,events:g});const X=E=Symbol();bs().then(()=>{E===X&&(f=!0)}),u=!0,Wt(a,V,s.state.value[e])}const R=o?function(){const{state:V}=n,X=V?V():{};this.$patch(ue=>{Rt(ue,X)})}:ll;function A(){i.stop(),a.clear(),p.clear(),s._s.delete(e)}const N=(B,V="")=>{if(Eo in B)return B[Hs]=V,B;const X=function(){Rs(s);const ue=Array.from(arguments),H=new Set,fe=new Set;function pe(z){H.add(z)}function ze(z){fe.add(z)}Wt(p,{args:ue,name:X[Hs],store:K,after:pe,onError:ze});let ie;try{ie=B.apply(this&&this.$id===e?this:K,ue)}catch(z){throw Wt(fe,z),z}return ie instanceof Promise?ie.then(z=>(Wt(H,z),z)).catch(z=>(Wt(fe,z),Promise.reject(z))):(Wt(H,ie),ie)};return X[Eo]=!0,X[Hs]=V,X},M={_p:s,$id:e,$onAction:bo.bind(null,p),$patch:O,$reset:R,$subscribe(B,V={}){const X=bo(a,B,V.detached,()=>ue()),ue=i.run(()=>Zt(()=>s.state.value[e],H=>{(V.flush==="sync"?u:f)&&B({storeId:e,type:wn.direct,events:g},H)},Rt({},c,V)));return X},$dispose:A},K=Fn(M);s._s.set(e,K);const L=(s._a&&s._a.runWithContext||iu)(()=>s._e.run(()=>(i=ei()).run(()=>t({action:N}))));for(const B in L){const V=L[B];if(he(V)&&!au(V)||it(V))o||(v&&cu(V)&&(he(V)?V.value=v[B]:cr(V,v[B])),s.state.value[e][B]=V);else if(typeof V=="function"){const X=N(V,B);L[B]=X,l.actions[B]=V}}return Rt(K,L),Rt(Y(K),L),Object.defineProperty(K,"$state",{get:()=>s.state.value[e],set:B=>{O(V=>{Rt(V,B)})}}),s._p.forEach(B=>{Rt(K,i.run(()=>B({store:K,app:s._a,pinia:s,options:l})))}),v&&o&&n.hydrate&&n.hydrate(K.$state,v),f=!0,u=!0,K}function Un(e,t,n){let s;const r=typeof t=="function";s=r?n:t;function o(i,l){const c=vc();return i=i||(c?Ue(il,null):null),i&&Rs(i),i=ol,i._s.has(e)||(r?cl(e,t,s,i):uu(e,s,i)),i._s.get(e)}return o.$id=e,o}const Yt=typeof document<"u";function al(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function fu(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&al(e.default)}const Z=Object.assign;function Us(e,t){const n={};for(const s in t){const r=t[s];n[s]=We(r)?r.map(e):e(r)}return n}const Sn=()=>{},We=Array.isArray;function wo(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const ul=/#/g,du=/&/g,hu=/\//g,pu=/=/g,gu=/\?/g,fl=/\+/g,mu=/%5B/g,_u=/%5D/g,dl=/%5E/g,yu=/%60/g,hl=/%7B/g,vu=/%7C/g,pl=/%7D/g,bu=/%20/g;function Ir(e){return e==null?"":encodeURI(""+e).replace(vu,"|").replace(mu,"[").replace(_u,"]")}function Eu(e){return Ir(e).replace(hl,"{").replace(pl,"}").replace(dl,"^")}function ar(e){return Ir(e).replace(fl,"%2B").replace(bu,"+").replace(ul,"%23").replace(du,"%26").replace(yu,"`").replace(hl,"{").replace(pl,"}").replace(dl,"^")}function wu(e){return ar(e).replace(pu,"%3D")}function Su(e){return Ir(e).replace(ul,"%23").replace(gu,"%3F")}function Au(e){return Su(e).replace(hu,"%2F")}function Vn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const xu=/\/$/,Ru=e=>e.replace(xu,"");function qs(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return c=l>=0&&c>l?-1:c,c>=0&&(s=t.slice(0,c),o=t.slice(c,l>0?l:t.length),r=e(o.slice(1))),l>=0&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=Tu(s??t,n),{fullPath:s+o+i,path:s,query:r,hash:Vn(i)}}function Cu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function So(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ou(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&sn(t.matched[s],n.matched[r])&&gl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function sn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function gl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Pu(e[n],t[n]))return!1;return!0}function Pu(e,t){return We(e)?Ao(e,t):We(t)?Ao(t,e):e?.valueOf()===t?.valueOf()}function Ao(e,t){return We(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Tu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const St={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ur=(function(e){return e.pop="pop",e.push="push",e})({}),zs=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Iu(e){if(!e)if(Yt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ru(e)}const Mu=/^[^#]+#/;function Nu(e,t){return e.replace(Mu,"#")+t}function Du(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Cs=()=>({left:window.scrollX,top:window.scrollY});function Lu(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Du(r,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 xo(e,t){return(history.state?history.state.position-t:-1)+e}const fr=new Map;function Vu(e,t){fr.set(e,t)}function ju(e){const t=fr.get(e);return fr.delete(e),t}function Fu(e){return typeof e=="string"||e&&typeof e=="object"}function ml(e){return typeof e=="string"||typeof e=="symbol"}let de=(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 _l=Symbol("");de.MATCHER_NOT_FOUND+"",de.NAVIGATION_GUARD_REDIRECT+"",de.NAVIGATION_ABORTED+"",de.NAVIGATION_CANCELLED+"",de.NAVIGATION_DUPLICATED+"";function rn(e,t){return Z(new Error,{type:e,[_l]:!0},t)}function ut(e,t){return e instanceof Error&&_l in e&&(t==null||!!(e.type&t))}const ku=["params","query","hash"];function Bu(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of ku)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Hu(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;sr&&ar(r)):[s&&ar(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Uu(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=We(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const qu=Symbol(""),Co=Symbol(""),Os=Symbol(""),Mr=Symbol(""),dr=Symbol("");function un(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Pt(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const f=p=>{p===!1?c(rn(de.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?c(p):Fu(p)?c(rn(de.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(i&&s.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),l())},u=o(()=>e.call(s&&s.instances[r],t,n,f));let a=Promise.resolve(u);e.length<3&&(a=a.then(f)),a.catch(p=>c(p))})}function $s(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(al(c)){const f=(c.__vccOpts||c)[t];f&&o.push(Pt(f,n,s,i,l,r))}else{let f=c();o.push(()=>f.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const a=fu(u)?u.default:u;i.mods[l]=u,i.components[l]=a;const p=(a.__vccOpts||a)[t];return p&&Pt(p,n,s,i,l,r)()}))}}return o}function zu(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;isn(f,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(f=>sn(f,c))||r.push(c))}return[n,s,r]}let $u=()=>location.protocol+"//"+location.host;function yl(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let i=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(i);return l[0]!=="/"&&(l="/"+l),So(l,"")}return So(n,e)+s+r}function Ku(e,t,n,s){let r=[],o=[],i=null;const l=({state:p})=>{const g=yl(e,location),v=n.value,E=t.value;let O=0;if(p){if(n.value=g,t.value=p,i&&i===v){i=null;return}O=E?p.position-E.position:0}else s(g);r.forEach(R=>{R(n.value,v,{delta:O,type:ur.pop,direction:O?O>0?zs.forward:zs.back:zs.unknown})})};function c(){i=n.value}function f(p){r.push(p);const g=()=>{const v=r.indexOf(p);v>-1&&r.splice(v,1)};return o.push(g),g}function u(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(Z({},p.state,{scroll:Cs()}),"")}}function a(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:c,listen:f,destroy:a}}function Oo(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Cs():null}}function Gu(e){const{history:t,location:n}=window,s={value:yl(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,f,u){const a=e.indexOf("#"),p=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+c:$u()+e+c;try{t[u?"replaceState":"pushState"](f,"",p),r.value=f}catch(g){console.error(g),n[u?"replace":"assign"](p)}}function i(c,f){o(c,Z({},t.state,Oo(r.value.back,c,r.value.forward,!0),f,{position:r.value.position}),!0),s.value=c}function l(c,f){const u=Z({},r.value,t.state,{forward:c,scroll:Cs()});o(u.current,u,!0),o(c,Z({},Oo(s.value,c,null),{position:u.position+1},f),!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function Wu(e){e=Iu(e);const t=Gu(e),n=Ku(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Z({location:"",base:e,go:s,createHref:Nu.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let kt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var _e=(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})(_e||{});const Ju={type:kt.Static,value:""},Qu=/[a-zA-Z0-9_]/;function Yu(e){if(!e)return[[]];if(e==="/")return[[Ju]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${f}": ${g}`)}let n=_e.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,f="",u="";function a(){f&&(n===_e.Static?o.push({type:kt.Static,value:f}):n===_e.Param||n===_e.ParamRegExp||n===_e.ParamRegExpEnd?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),o.push({type:kt.Param,value:f,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),f="")}function p(){f+=c}for(;lt.length?t.length===1&&t[0]===Pe.Static+Pe.Segment?1:-1:0}function vl(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const nf={strict:!1,end:!0,sensitive:!1};function sf(e,t,n){const s=ef(Yu(e.path),n),r=Z(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function rf(e,t){const n=[],s=new Map;t=wo(nf,t);function r(a){return s.get(a)}function o(a,p,g){const v=!g,E=Mo(a);E.aliasOf=g&&g.record;const O=wo(t,a),R=[E];if("alias"in a){const M=typeof a.alias=="string"?[a.alias]:a.alias;for(const K of M)R.push(Mo(Z({},E,{components:g?g.record.components:E.components,path:K,aliasOf:g?g.record:E})))}let A,N;for(const M of R){const{path:K}=M;if(p&&K[0]!=="/"){const ne=p.record.path,L=ne[ne.length-1]==="/"?"":"/";M.path=p.record.path+(K&&L+K)}if(A=sf(M,p,O),g?g.alias.push(A):(N=N||A,N!==A&&N.alias.push(A),v&&a.name&&!No(A)&&i(a.name)),bl(A)&&c(A),E.children){const ne=E.children;for(let L=0;L{i(N)}:Sn}function i(a){if(ml(a)){const p=s.get(a);p&&(s.delete(a),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(a);p>-1&&(n.splice(p,1),a.record.name&&s.delete(a.record.name),a.children.forEach(i),a.alias.forEach(i))}}function l(){return n}function c(a){const p=cf(a,n);n.splice(p,0,a),a.record.name&&!No(a)&&s.set(a.record.name,a)}function f(a,p){let g,v={},E,O;if("name"in a&&a.name){if(g=s.get(a.name),!g)throw rn(de.MATCHER_NOT_FOUND,{location:a});O=g.record.name,v=Z(Io(p.params,g.keys.filter(N=>!N.optional).concat(g.parent?g.parent.keys.filter(N=>N.optional):[]).map(N=>N.name)),a.params&&Io(a.params,g.keys.map(N=>N.name))),E=g.stringify(v)}else if(a.path!=null)E=a.path,g=n.find(N=>N.re.test(E)),g&&(v=g.parse(E),O=g.record.name);else{if(g=p.name?s.get(p.name):n.find(N=>N.re.test(p.path)),!g)throw rn(de.MATCHER_NOT_FOUND,{location:a,currentLocation:p});O=g.record.name,v=Z({},p.params,a.params),E=g.stringify(v)}const R=[];let A=g;for(;A;)R.unshift(A.record),A=A.parent;return{name:O,path:E,params:v,matched:R,meta:lf(R)}}e.forEach(a=>o(a));function u(){n.length=0,s.clear()}return{addRoute:o,resolve:f,removeRoute:i,clearRoutes:u,getRoutes:l,getRecordMatcher:r}}function Io(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Mo(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:of(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 of(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function No(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function lf(e){return e.reduce((t,n)=>Z(t,n.meta),{})}function cf(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;vl(e,t[o])<0?s=o:n=o+1}const r=af(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function af(e){let t=e;for(;t=t.parent;)if(bl(t)&&vl(e,t)===0)return t}function bl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Do(e){const t=Ue(Os),n=Ue(Mr),s=Q(()=>{const c=$e(e.to);return t.resolve(c)}),r=Q(()=>{const{matched:c}=s.value,{length:f}=c,u=c[f-1],a=n.matched;if(!u||!a.length)return-1;const p=a.findIndex(sn.bind(null,u));if(p>-1)return p;const g=Lo(c[f-2]);return f>1&&Lo(u)===g&&a[a.length-1].path!==g?a.findIndex(sn.bind(null,c[f-2])):p}),o=Q(()=>r.value>-1&&pf(n.params,s.value.params)),i=Q(()=>r.value>-1&&r.value===n.matched.length-1&&gl(n.params,s.value.params));function l(c={}){if(hf(c)){const f=t[$e(e.replace)?"replace":"push"]($e(e.to)).catch(Sn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:s,href:Q(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}function uf(e){return e.length===1?e[0]:e}const ff=Bn({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:Do,setup(e,{slots:t}){const n=Fn(Do(e)),{options:s}=Ue(Os),r=Q(()=>({[Vo(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Vo(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&uf(t.default(n));return e.custom?o:tl("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),df=ff;function hf(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 pf(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!We(r)||r.length!==s.length||s.some((o,i)=>o.valueOf()!==r[i].valueOf()))return!1}return!0}function Lo(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vo=(e,t,n)=>e??t??n,gf=Bn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ue(dr),r=Q(()=>e.route||s.value),o=Ue(Co,0),i=Q(()=>{let f=$e(o);const{matched:u}=r.value;let a;for(;(a=u[f])&&!a.components;)f++;return f}),l=Q(()=>r.value.matched[i.value]);Qn(Co,Q(()=>i.value+1)),Qn(qu,l),Qn(dr,r);const c=Ie();return Zt(()=>[c.value,l.value,e.name],([f,u,a],[p,g,v])=>{u&&(u.instances[a]=f,g&&g!==u&&f&&f===p&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),f&&u&&(!g||!sn(u,g)||!p)&&(u.enterCallbacks[a]||[]).forEach(E=>E(f))},{flush:"post"}),()=>{const f=r.value,u=e.name,a=l.value,p=a&&a.components[u];if(!p)return jo(n.default,{Component:p,route:f});const g=a.props[u],v=g?g===!0?f.params:typeof g=="function"?g(f):g:null,O=tl(p,Z({},v,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(a.instances[u]=null)},ref:c}));return jo(n.default,{Component:O,route:f})||O}}});function jo(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const mf=gf;function _f(e){const t=rf(e.routes,e),n=e.parseQuery||Hu,s=e.stringifyQuery||Ro,r=e.history,o=un(),i=un(),l=un(),c=_i(St);let f=St;Yt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Us.bind(null,b=>""+b),a=Us.bind(null,Au),p=Us.bind(null,Vn);function g(b,D){let T,j;return ml(b)?(T=t.getRecordMatcher(b),j=D):j=b,t.addRoute(j,T)}function v(b){const D=t.getRecordMatcher(b);D&&t.removeRoute(D)}function E(){return t.getRoutes().map(b=>b.record)}function O(b){return!!t.getRecordMatcher(b)}function R(b,D){if(D=Z({},D||c.value),typeof b=="string"){const m=qs(n,b,D.path),y=t.resolve({path:m.path},D),w=r.createHref(m.fullPath);return Z(m,y,{params:p(y.params),hash:Vn(m.hash),redirectedFrom:void 0,href:w})}let T;if(b.path!=null)T=Z({},b,{path:qs(n,b.path,D.path).path});else{const m=Z({},b.params);for(const y in m)m[y]==null&&delete m[y];T=Z({},b,{params:a(m)}),D.params=a(D.params)}const j=t.resolve(T,D),W=b.hash||"";j.params=u(p(j.params));const d=Cu(s,Z({},b,{hash:Eu(W),path:j.path})),h=r.createHref(d);return Z({fullPath:d,hash:W,query:s===Ro?Uu(b.query):b.query||{}},j,{redirectedFrom:void 0,href:h})}function A(b){return typeof b=="string"?qs(n,b,c.value.path):Z({},b)}function N(b,D){if(f!==b)return rn(de.NAVIGATION_CANCELLED,{from:D,to:b})}function M(b){return L(b)}function K(b){return M(Z(A(b),{replace:!0}))}function ne(b,D){const T=b.matched[b.matched.length-1];if(T&&T.redirect){const{redirect:j}=T;let W=typeof j=="function"?j(b,D):j;return typeof W=="string"&&(W=W.includes("?")||W.includes("#")?W=A(W):{path:W},W.params={}),Z({query:b.query,hash:b.hash,params:W.path!=null?{}:b.params},W)}}function L(b,D){const T=f=R(b),j=c.value,W=b.state,d=b.force,h=b.replace===!0,m=ne(T,j);if(m)return L(Z(A(m),{state:typeof m=="object"?Z({},W,m.state):W,force:d,replace:h}),D||T);const y=T;y.redirectedFrom=D;let w;return!d&&Ou(s,j,T)&&(w=rn(de.NAVIGATION_DUPLICATED,{to:y,from:j}),Je(j,j,!0,!1)),(w?Promise.resolve(w):X(y,j)).catch(_=>ut(_)?ut(_,de.NAVIGATION_GUARD_REDIRECT)?_:wt(_):G(_,y,j)).then(_=>{if(_){if(ut(_,de.NAVIGATION_GUARD_REDIRECT))return L(Z({replace:h},A(_.to),{state:typeof _.to=="object"?Z({},W,_.to.state):W,force:d}),D||y)}else _=H(y,j,!0,h,W);return ue(y,j,_),_})}function B(b,D){const T=N(b,D);return T?Promise.reject(T):Promise.resolve()}function V(b){const D=$t.values().next().value;return D&&typeof D.runWithContext=="function"?D.runWithContext(b):b()}function X(b,D){let T;const[j,W,d]=zu(b,D);T=$s(j.reverse(),"beforeRouteLeave",b,D);for(const m of j)m.leaveGuards.forEach(y=>{T.push(Pt(y,b,D))});const h=B.bind(null,b,D);return T.push(h),He(T).then(()=>{T=[];for(const m of o.list())T.push(Pt(m,b,D));return T.push(h),He(T)}).then(()=>{T=$s(W,"beforeRouteUpdate",b,D);for(const m of W)m.updateGuards.forEach(y=>{T.push(Pt(y,b,D))});return T.push(h),He(T)}).then(()=>{T=[];for(const m of d)if(m.beforeEnter)if(We(m.beforeEnter))for(const y of m.beforeEnter)T.push(Pt(y,b,D));else T.push(Pt(m.beforeEnter,b,D));return T.push(h),He(T)}).then(()=>(b.matched.forEach(m=>m.enterCallbacks={}),T=$s(d,"beforeRouteEnter",b,D,V),T.push(h),He(T))).then(()=>{T=[];for(const m of i.list())T.push(Pt(m,b,D));return T.push(h),He(T)}).catch(m=>ut(m,de.NAVIGATION_CANCELLED)?m:Promise.reject(m))}function ue(b,D,T){l.list().forEach(j=>V(()=>j(b,D,T)))}function H(b,D,T,j,W){const d=N(b,D);if(d)return d;const h=D===St,m=Yt?history.state:{};T&&(j||h?r.replace(b.fullPath,Z({scroll:h&&m&&m.scroll},W)):r.push(b.fullPath,W)),c.value=b,Je(b,D,T,h),wt()}let fe;function pe(){fe||(fe=r.listen((b,D,T)=>{if(!Nt.listening)return;const j=R(b),W=ne(j,Nt.currentRoute.value);if(W){L(Z(W,{replace:!0,force:!0}),j).catch(Sn);return}f=j;const d=c.value;Yt&&Vu(xo(d.fullPath,T.delta),Cs()),X(j,d).catch(h=>ut(h,de.NAVIGATION_ABORTED|de.NAVIGATION_CANCELLED)?h:ut(h,de.NAVIGATION_GUARD_REDIRECT)?(L(Z(A(h.to),{force:!0}),j).then(m=>{ut(m,de.NAVIGATION_ABORTED|de.NAVIGATION_DUPLICATED)&&!T.delta&&T.type===ur.pop&&r.go(-1,!1)}).catch(Sn),Promise.reject()):(T.delta&&r.go(-T.delta,!1),G(h,j,d))).then(h=>{h=h||H(j,d,!1),h&&(T.delta&&!ut(h,de.NAVIGATION_CANCELLED)?r.go(-T.delta,!1):T.type===ur.pop&&ut(h,de.NAVIGATION_ABORTED|de.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),ue(j,d,h)}).catch(Sn)}))}let ze=un(),ie=un(),z;function G(b,D,T){wt(b);const j=ie.list();return j.length?j.forEach(W=>W(b,D,T)):console.error(b),Promise.reject(b)}function Le(){return z&&c.value!==St?Promise.resolve():new Promise((b,D)=>{ze.add([b,D])})}function wt(b){return z||(z=!b,pe(),ze.list().forEach(([D,T])=>b?T(b):D()),ze.reset()),b}function Je(b,D,T,j){const{scrollBehavior:W}=e;if(!Yt||!W)return Promise.resolve();const d=!T&&ju(xo(b.fullPath,0))||(j||!T)&&history.state&&history.state.scroll||null;return bs().then(()=>W(b,D,d)).then(h=>h&&Lu(h)).catch(h=>G(h,b,D))}const xe=b=>r.go(b);let zt;const $t=new Set,Nt={currentRoute:c,listening:!0,addRoute:g,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:O,getRoutes:E,resolve:R,options:e,push:M,replace:K,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:ie.add,isReady:Le,install(b){b.component("RouterLink",df),b.component("RouterView",mf),b.config.globalProperties.$router=Nt,Object.defineProperty(b.config.globalProperties,"$route",{enumerable:!0,get:()=>$e(c)}),Yt&&!zt&&c.value===St&&(zt=!0,M(r.location).catch(j=>{}));const D={};for(const j in St)Object.defineProperty(D,j,{get:()=>c.value[j],enumerable:!0});b.provide(Os,Nt),b.provide(Mr,mi(D)),b.provide(dr,c);const T=b.unmount;$t.add(b),b.unmount=function(){$t.delete(b),$t.size<1&&(f=St,fe&&fe(),fe=null,c.value=St,zt=!1,z=!1),T()}}};function He(b){return b.reduce((D,T)=>D.then(()=>V(T)),Promise.resolve())}return Nt}function Gf(){return Ue(Os)}function El(e){return Ue(Mr)}const yf={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},vf=["d"],Fo=Bn({__name:"Icon",props:{name:{}},setup(e){const t=e,n={home:"M3 11l9-8 9 8M5 10v10h5v-6h4v6h5V10",calendar:"M4 6h16v14H4zM4 10h16M8 3v5M16 3v5",book:"M5 4h10a3 3 0 013 3v13H8a3 3 0 01-3-3zM5 17a3 3 0 013-3h10",quiz:"M12 21a9 9 0 100-18 9 9 0 000 18zM9.5 9.5a2.5 2.5 0 114 2c-.9.6-1.5 1-1.5 2M12 17h.01",more:"M5 12h.01M12 12h.01M19 12h.01",flag:"M5 21V4M5 4h11l-2 4 2 4H5",grad:"M2 9l10-5 10 5-10 5zM6 11.5V16c0 1.5 3 3 6 3s6-1.5 6-3v-4.5",file:"M7 3h7l5 5v13H7zM14 3v5h5M10 13h6M10 17h6",user:"M12 12a4 4 0 100-8 4 4 0 000 8zM4 21c0-4 4-6 8-6s8 2 8 6",out:"M10 4H5v16h5M15 8l4 4-4 4M19 12H9",chevron:"M9 6l6 6-6 6"};return(s,r)=>(mt(),Yn("svg",yf,[je("path",{d:n[t.name]??""},null,8,vf)]))}});class Zn extends Error{constructor(n,s,r={}){super(s);Kt(this,"status");Kt(this,"errors");this.name="ApiError",this.status=n,this.errors=r}}const Ks="bm.token";class bf{constructor(t,n){Kt(this,"local");Kt(this,"session");Kt(this,"memory",null);this.local=t,this.session=n}read(t){try{return t?.getItem(Ks)??null}catch{return null}}get(){return this.read(this.local)??this.read(this.session)??this.memory}get remembered(){return this.read(this.local)!==null}set(t,n){this.clear();try{(n?this.local:this.session)?.setItem(Ks,t)}catch{}this.get()===null&&(this.memory=t)}replace(t){this.set(t,this.remembered)}clear(){this.memory=null;for(const t of[this.local,this.session])try{t?.removeItem(Ks)}catch{}}}function Ef(e){const t=e.fetch??((...a)=>fetch(...a)),{tokens:n}=e;let s=null;function r(a,p){if(!p)return a;const g=new URLSearchParams;for(const[E,O]of Object.entries(p))O!=null&&O!==""&&g.set(E,String(O));const v=g.toString();return v?`${a}?${v}`:a}async function o(a,p){const g={Accept:"application/json"},v=n.get();p.auth!==!1&&v&&(g.Authorization=`Bearer ${v}`);let E;return p.body!==void 0&&(g["Content-Type"]="application/json",E=JSON.stringify(p.body)),t(r(a,p.query),{method:p.method??"GET",headers:g,body:E})}function i(){return s||(s=(async()=>{try{const a=await o("/_user/api/v1/refresh",{method:"POST"});if(!a.ok)return!1;const p=await a.json(),g=p.token??p.data?.token;return g?(n.replace(g),!0):!1}catch{return!1}finally{queueMicrotask(()=>{s=null})}})()),s}async function l(a){const p=await a.text();if(!p)return null;try{return JSON.parse(p)}catch{return null}}function c(a,p){const g=p??{},v=typeof g.error=="string"&&g.error||typeof g.message=="string"&&g.message||(a.status>=500?"Błąd serwera. Spróbuj ponownie za chwilę.":`Błąd ${a.status}`);return new Zn(a.status,v,g.errors??{})}async function f(a,p={}){let g;const v=n.get();try{g=await o(a,p)}catch{throw new Zn(0,"Brak połączenia z serwerem.")}if(g.status===401&&p.auth!==!1&&v){const O=n.get();if(O!==null&&O!==v?!0:await i())try{g=await o(a,p)}catch{throw new Zn(0,"Brak połączenia z serwerem.")}g.status===401&&(n.clear(),e.onUnauthorized?.())}const E=await l(g);if(!g.ok)throw c(g,E);return E}async function u(a,p={}){const g=await f(a,p);return g&&typeof g=="object"&&"data"in g?g.data:g}return{request:u,raw:f}}function ko(e){try{return e()}catch{return null}}const Ct=new bf(ko(()=>window.localStorage),ko(()=>window.sessionStorage));let wl=()=>{};function wf(e){wl=e}const ce=Ef({tokens:Ct,onUnauthorized:()=>wl()}),At="/_user/api/v1",fn={login:e=>ce.request(`${At}/login`,{method:"POST",body:e,auth:!1}),register:e=>ce.request(`${At}/register`,{method:"POST",body:e,auth:!1}),fetch:()=>ce.request(`${At}/fetch`),logout:()=>ce.request(`${At}/logout`,{method:"POST"}),forgotPassword:e=>ce.request(`${At}/forgot-password`,{method:"POST",body:{email:e},auth:!1}),resetPassword:e=>ce.request(`${At}/reset-password`,{method:"POST",body:e,auth:!1}),update:e=>ce.request(`${At}/update`,{method:"POST",body:e}),changePassword:e=>ce.request(`${At}/change-password`,{method:"POST",body:e})},Sf="modulepreload",Af=function(e){return"/"+e},Bo={},ve=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){let c=function(f){return Promise.all(f.map(u=>Promise.resolve(u).then(a=>({status:"fulfilled",value:a}),a=>({status:"rejected",reason:a}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=i?.nonce||i?.getAttribute("nonce");r=c(n.map(f=>{if(f=Af(f),f in Bo)return;Bo[f]=!0;const u=f.endsWith(".css"),a=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${a}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":Sf,u||(p.as="script"),p.crossOrigin="",p.href=f,l&&p.setAttribute("nonce",l),document.head.appendChild(p),u)return new Promise((g,v)=>{p.addEventListener("load",g),p.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return r.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},Bt=_f({history:Wu("/"),scrollBehavior:(e,t,n)=>e.meta.bare?!1:n??(e.hash?{el:e.hash,top:12}:e.path===t.path?void 0:{top:0}),routes:[{path:"/logowanie",name:"login",component:()=>ve(()=>import("./LoginView-CHeK-5Bc.js"),__vite__mapDeps([0,1])),meta:{public:!0,guest:!0,title:"Logowanie"}},{path:"/rejestracja",name:"register",component:()=>ve(()=>import("./RegisterView-dAhzOEz2.js"),__vite__mapDeps([2,1])),meta:{public:!0,guest:!0,title:"Rejestracja"}},{path:"/przypomnij-haslo",name:"forgot",component:()=>ve(()=>import("./ForgotView-3wxOP3D0.js"),__vite__mapDeps([3,1])),meta:{public:!0,title:"Przypomnienie hasła"}},{path:"/reset-password",alias:"/reset-hasla",name:"reset",component:()=>ve(()=>import("./ResetView-B6S5Obs5.js"),__vite__mapDeps([4,1])),meta:{public:!0,title:"Nowe hasło"}},{path:"/",name:"dashboard",component:()=>ve(()=>import("./DashboardView-Dfvs0M8g.js"),__vite__mapDeps([5,6,7,8,9])),meta:{title:"Pulpit"}},{path:"/plan",name:"schedule",component:()=>ve(()=>import("./ScheduleView-BzYdpyrd.js"),__vite__mapDeps([10,6,7,8,9])),meta:{title:"Plan zajęć"}},{path:"/terminarz",name:"deadlines",component:()=>ve(()=>import("./DeadlinesView-QfLdRQAY.js"),__vite__mapDeps([11,6,7,8,9])),meta:{title:"Terminarz"}},{path:"/przedmioty",name:"courses",component:()=>ve(()=>import("./CoursesView-CSNtxDFY.js"),__vite__mapDeps([12,6,7,8,9])),meta:{title:"Przedmioty"}},{path:"/przedmioty/:id(\\d+)",name:"course",component:()=>ve(()=>import("./CourseView-BrtQf6Ix.js"),__vite__mapDeps([13,6,7,14,9])),props:!0,meta:{title:"Przedmiot"}},{path:"/lektury",name:"readings",component:()=>ve(()=>import("./ReadingsView-B-MVj8QM.js"),__vite__mapDeps([15,6,7,8,9,14])),meta:{title:"Lektury"}},{path:"/materialy",name:"materials",component:()=>ve(()=>import("./MaterialsView-q7P-jkv-.js"),__vite__mapDeps([16,6,9])),meta:{title:"Materiały"}},{path:"/materialy/:id(\\d+)",name:"material",component:()=>ve(()=>import("./MaterialView-Cks1ThSX.js"),__vite__mapDeps([17,6,7,9])),props:!0,meta:{title:"Materiał"}},{path:"/quiz",redirect:"/quizy/powtorka-1-zjazd"},{path:"/quizy",name:"quizzes",component:()=>ve(()=>import("./QuizzesView-CV2z8jhd.js"),__vite__mapDeps([18,6,7,19,9])),meta:{title:"Quizy"}},{path:"/quizy/:slug",name:"quiz",component:()=>ve(()=>import("./QuizView-Tr8Ule5Q.js"),__vite__mapDeps([20,6,7,19,9])),props:!0,meta:{title:"Quiz"}},{path:"/wiecej",name:"more",component:()=>ve(()=>import("./MoreView-DOB3EP92.js"),__vite__mapDeps([21,6])),meta:{title:"Więcej"}},{path:"/profil",name:"profile",component:()=>ve(()=>import("./ProfileView--Mea7hJf.js"),__vite__mapDeps([22,6,1])),meta:{title:"Profil"}},{path:"/prezentacje/:slugHash",name:"presentation-public",component:()=>ve(()=>import("./PresentationPublicView-C_hYF7I1.js"),__vite__mapDeps([23,24])),props:!0,meta:{public:!0,bare:!0,title:"Prezentacja"}},{path:"/:rest(.*)*",name:"notfound",component:()=>ve(()=>import("./NotFoundView-DmCjuaxt.js"),[]),meta:{title:"Nie znaleziono"}}]});Bt.beforeEach(async e=>{const t=Rl();return t.ready||await t.restore(e),!e.meta.public&&!t.loggedIn?{name:"login",query:e.fullPath==="/"?{}:{redirect:e.fullPath}}:e.meta.guest&&t.loggedIn?{name:"dashboard"}:!0});Bt.afterEach(e=>{const t=e.meta.title;document.title=t?`${t} · BM II°`:"BM II°"});const Re="/_bm/api/v1",Ne={dashboard:()=>ce.request(`${Re}/dashboard`),courses:e=>ce.request(`${Re}/courses`,{query:{semester:e}}),course:e=>ce.request(`${Re}/courses/${e}`),schedule:(e,t)=>ce.request(`${Re}/schedule`,{query:{from:e,to:t}}),meetings:()=>ce.request(`${Re}/meetings`),deadlines:(e,t)=>ce.request(`${Re}/deadlines`,{query:{from:e,to:t}}),readings:e=>ce.request(`${Re}/readings`,{query:{course:e}}),markRead:e=>ce.request(`${Re}/readings/${e}/progress`,{method:"PUT"}),unmarkRead:e=>ce.request(`${Re}/readings/${e}/progress`,{method:"DELETE"}),materials:(e={})=>ce.raw(`${Re}/materials`,{query:{...e}}),material:e=>ce.request(`${Re}/materials/${e}`),calendarFeed:()=>ce.request(`${Re}/calendar-feed`),saveCalendarFeed:e=>ce.request(`${Re}/calendar-feed`,{method:"PUT",body:e}),rotateCalendarFeed:()=>ce.request(`${Re}/calendar-feed/rotate`,{method:"POST"}),deleteCalendarFeed:()=>ce.request(`${Re}/calendar-feed`,{method:"DELETE"})},xf={"historia-koncepcje":"Historia / koncepcje wojny i pokoju",specjalnosc:"Specjalność"};function Wf(e){return xf[e]??e}function Nr(e){const t=new Map;for(const n of e){if(!n.elective_group)continue;const s=t.get(n.elective_group)??[];s.includes(n.name)||s.push(n.name),t.set(n.elective_group,s)}return[...t].map(([n,s])=>({code:n,options:s}))}function Rf(e,t){const n={};for(const s of Nr(e)){const r=t[s.code];r&&s.options.includes(r)&&(n[s.code]=r)}return n}function Cf(e,t){if(!e.elective_group)return!1;const n=t[e.elective_group];return n!==void 0&&n!==e.name}function Sl(e,t,n=!1){const s=new Set;if(n)return s;for(const r of e)Cf(r,t)&&s.add(r.id);return s}function Gs(e,t){return t.size===0?e:e.filter(n=>n.course_id===null||!t.has(n.course_id))}function Of(e,t){return Nr(e).filter(n=>n.options.length>1&&!t[n.code])}function Jf(e,t){return!!e.elective_group&&!t[e.elective_group]}const Ho="bm.showAllElectives";function Uo(e){try{return localStorage.getItem(e)}catch{return null}}function qo(e,t){try{localStorage.setItem(e,t)}catch{}}const An=Un("electives",()=>{const e=Ie({}),t=Ie(Uo(Ho)==="1"),n=Ie(null),s=()=>n.value===null?null:`bm.electives.${n.value}`,r=()=>{const a=s();a&&qo(a,JSON.stringify(e.value))};function o(a){n.value=a;try{const p=JSON.parse(Uo(`bm.electives.${a}`)??"{}");e.value=p&&typeof p=="object"?p:{}}catch{e.value={}}}const i=Q(()=>Object.keys(e.value).length>0);function l(a,p){const g={...e.value};p===null?delete g[a]:g[a]=p,e.value=g,r()}function c(a){t.value=a,qo(Ho,a?"1":"0")}function f(a){const p=Rf(a,e.value);Object.keys(p).length!==Object.keys(e.value).length&&(e.value=p,r())}function u(){e.value={},n.value=null}return{choices:e,showAll:t,userId:n,hasChoices:i,load:o,choose:l,setShowAll:c,prune:f,reset:u}}),Dr=Un("toast",()=>{const e=Ie("");let t;function n(r,o=4e3){e.value=r,clearTimeout(t),t=setTimeout(()=>e.value="",o)}function s(){e.value=""}return{message:e,show:n,clear:s}});function xn(e){return e instanceof Zn?e.message:"Nie udało się wczytać danych."}function Jt(e){const t=_i(null),n=Ie(!1),s=Ie("");let r=null;function o(l=!1){return r||(t.value!==null&&!l?Promise.resolve():(n.value=!0,s.value="",r=e().then(c=>{t.value=c}).catch(c=>{s.value=xn(c)}).finally(()=>{n.value=!1,r=null}),r))}function i(){t.value=null,s.value="",n.value=!1,r=null}return{data:t,loading:n,error:s,load:o,reset:i}}const zo="2000-01-01",Al=Un("bm",()=>{const e=Jt(()=>Ne.courses()),t=Jt(()=>Ne.meetings()),n=Jt(()=>Ne.schedule(zo)),s=Jt(()=>Ne.deadlines(zo)),r=Jt(()=>Ne.readings()),o=Jt(()=>Ne.dashboard()),i=Q(()=>e.data.value),l=Q(()=>t.data.value),c=Q(()=>o.data.value),f=An(),u=Q(()=>Nr(i.value??[])),a=Q(()=>Of(i.value??[],f.choices)),p=Q(()=>Sl(i.value??[],f.choices,f.showAll)),g=Q(()=>Gs(n.data.value??[],p.value)),v=Q(()=>Gs(s.data.value??[],p.value)),E=Q(()=>Gs(r.data.value??[],p.value)),O=Q(()=>r.data.value??[]),R=Q(()=>(i.value??[]).filter(H=>!p.value.has(H.id))),A=Q(()=>{const H=E.value,fe=H.filter(pe=>pe.is_required);return{total:H.length,read:H.filter(pe=>pe.read_at).length,requiredTotal:fe.length,requiredRead:fe.filter(pe=>pe.read_at).length}}),N=Q(()=>new Map((i.value??[]).map(H=>[H.id,H])));async function M(H=!1){await e.load(H),e.data.value&&f.prune(e.data.value)}async function K(H,fe){const pe=r.data.value,ze=pe?.find(G=>G.id===H);if(!pe||!ze)return;const ie=ze.read_at,z=G=>{r.data.value=pe.map(Le=>Le.id===H?{...Le,read_at:G}:Le)};z(fe?new Date().toISOString():null);try{const G=fe?await Ne.markRead(H):await Ne.unmarkRead(H);z(G.read_at)}catch(G){z(ie),Dr().show(`Nie udało się zapisać zmiany. ${xn(G)}`)}}const ne=[e,t,n,s,r,o],L=Q(()=>ne.some(H=>H.loading.value)),B=Q(()=>ne.find(H=>H.error.value)?.error.value??""),V=Q(()=>({courses:e.data.value!==null,meetings:t.data.value!==null,schedule:n.data.value!==null,deadlines:s.data.value!==null,readings:r.data.value!==null,dashboard:o.data.value!==null}));function X(){for(const H of ne)H.error.value&&H.load(!0)}function ue(){for(const H of ne)H.reset()}return{courses:i,electiveGroups:u,pendingElectives:a,hidden:p,meetings:l,dashboard:c,schedule:g,deadlines:v,readings:E,allReadings:O,visibleCourses:R,readingStats:A,courseById:N,loading:L,error:B,loaded:V,retry:X,loadCourses:M,loadMeetings:(H=!1)=>t.load(H),loadSchedule:(H=!1)=>n.load(H),loadDeadlines:(H=!1)=>s.load(H),loadReadings:(H=!1)=>r.load(H),loadDashboard:(H=!1)=>o.load(H),toggleReading:K,reset:ue}});function Pf(e,t){return[...Sl(e,t,!1)].sort((n,s)=>n-s)}function Tf(e,t){if(e.length!==t.length)return!1;const n=[...e].sort((r,o)=>r-o),s=[...t].sort((r,o)=>r-o);return n.every((r,o)=>r===s[o])}async function Qf(e){try{if(navigator.clipboard&&window.isSecureContext)return await navigator.clipboard.writeText(e),!0}catch{}try{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="-1000px",document.body.appendChild(t),t.select();const n=document.execCommand("copy");return document.body.removeChild(t),n}catch{return!1}}const xl=Un("calendarFeed",()=>{const e=Ie(void 0),t=Ie(!1),n=Ie(!1),s=Ie(""),r=Al(),o=An();let i=Promise.resolve();function l(R){const A=i.then(R,R);return i=A.catch(()=>{}),A}async function c(R=!1){if(!(e.value!==void 0&&!R)){t.value=!0,s.value="";try{e.value=await Ne.calendarFeed()}catch(A){s.value=xn(A)}finally{t.value=!1}}}async function f(){await r.loadCourses();const R=r.courses;return R?Pf(R,o.choices):null}async function u(R){n.value=!0,s.value="";try{await l(R)}catch(A){s.value=xn(A)}finally{n.value=!1}}function a(){return u(async()=>{const R=await f();e.value=await Ne.saveCalendarFeed(R?{excluded_course_ids:R}:{})})}function p(R){return u(async()=>{e.value=await Ne.saveCalendarFeed(R)})}function g(){return u(async()=>{e.value=await Ne.rotateCalendarFeed()})}function v(){return u(async()=>{await Ne.deleteCalendarFeed(),e.value=null})}function E(){return l(async()=>{e.value===void 0&&await c();const R=e.value;if(!R)return;const A=await f();if(!(!A||Tf(A,R.excluded_course_ids)))try{e.value=await Ne.saveCalendarFeed({excluded_course_ids:A})}catch(N){Dr().show(`Nie udało się zaktualizować kalendarza. ${xn(N)}`)}})}Zt(()=>o.choices,()=>{o.userId!==null&&E()});function O(){e.value=void 0,s.value="",t.value=!1,n.value=!1}return{feed:e,loading:t,busy:n,error:s,load:c,create:a,save:p,rotate:g,remove:v,sync:E,reset:O}});let Ws=null;const Rl=Un("auth",()=>{const e=Ie(null),t=Ie(Ct.get()),n=Ie(!1),s=Q(()=>t.value!==null),r=Q(()=>{const g=e.value;return g?[g.name,g.surname].filter(Boolean).join(" ")||g.email:""});function o(g,v,E){Ct.set(g,E),t.value=Ct.get(),v&&(e.value=v,An().load(v.id))}function i(){Ct.clear(),t.value=null,e.value=null,Al().reset(),An().reset(),xl().reset()}async function l(g){g&&(Ws={public:g.meta.public===!0,fullPath:g.fullPath});try{if(Ct.get())try{const v=await fn.fetch();e.value=v.user,t.value=Ct.get(),An().load(v.user.id)}catch{Ct.get()||i()}n.value=!0}finally{Ws=null}}async function c(g,v,E){const O=await fn.login({email:g,password:v});o(O.token,O.user,E)}async function f(g,v){const E=await fn.register(g);return E.token?(o(E.token,E.user,v),{signedIn:!0,message:""}):{signedIn:!1,message:E.message??""}}async function u(){try{await fn.logout()}catch{}i(),await Bt.push({name:"login"})}async function a(g){const v=await fn.update(g);e.value=v.user}function p(){const g=Ws??{public:Bt.currentRoute.value.meta.public===!0,fullPath:Bt.currentRoute.value.fullPath},v=s.value||e.value!==null;i(),v&&!g.public&&Bt.push({name:"login",query:{redirect:g.fullPath,expired:"1"}})}return wf(p),{user:e,token:t,ready:n,loggedIn:s,displayName:r,restore:l,login:c,register:f,logout:u,updateProfile:a}}),If={class:"shell"},Mf={class:"sidebar"},Nf={"aria-label":"Główna nawigacja"},Df={class:"who"},Lf={class:"muted"},Vf={class:"main",id:"main"},jf={class:"tabbar","aria-label":"Nawigacja"},Ff=Bn({__name:"AppShell",setup(e){const t=Rl(),n=Dr(),s=El();xl();const r=[{to:"/",label:"Pulpit",icon:"home",match:["dashboard"]},{to:"/plan",label:"Plan zajęć",icon:"calendar",match:["schedule"]},{to:"/terminarz",label:"Terminarz",icon:"flag",match:["deadlines"]},{to:"/przedmioty",label:"Przedmioty",icon:"grad",match:["courses","course"]},{to:"/lektury",label:"Lektury",icon:"book",match:["readings"]},{to:"/materialy",label:"Materiały",icon:"file",match:["materials","material"]},{to:"/quizy",label:"Quizy",icon:"quiz",match:["quizzes","quiz"]},{to:"/profil",label:"Profil",icon:"user",match:["profile"]}],o=[{to:"/",label:"Pulpit",icon:"home",match:["dashboard"]},{to:"/plan",label:"Plan",icon:"calendar",match:["schedule"]},{to:"/lektury",label:"Lektury",icon:"book",match:["readings"]},{to:"/quizy",label:"Quizy",icon:"quiz",match:["quizzes","quiz"]},{to:"/wiecej",label:"Więcej",icon:"more",match:["more","deadlines","courses","course","materials","material","profile"]}],i=Q(()=>String(s.name??"")),l=c=>c.includes(i.value);return(c,f)=>{const u=Mi("router-link");return mt(),Yn("div",If,[je("aside",Mf,[me(u,{to:"/",class:"brand"},{default:vn(()=>[...f[1]||(f[1]=[je("span",{class:"eyebrow"},"UWr · ISMiB",-1),je("b",null,"BM II°",-1)])]),_:1}),je("nav",Nf,[(mt(),Yn(De,null,Qr(r,a=>me(u,{key:a.to,to:a.to,class:Rn({active:l(a.match)}),"aria-current":l(a.match)?"page":void 0},{default:vn(()=>[me(Fo,{name:a.icon},null,8,["name"]),or(dn(a.label),1)]),_:2},1032,["to","class","aria-current"])),64))]),je("div",Df,[je("span",Lf,dn($e(t).displayName),1),je("button",{class:"btn small ghost",type:"button",onClick:f[0]||(f[0]=a=>$e(t).logout())},"Wyloguj")])]),je("main",Vf,[Uc(c.$slots,"default")]),je("nav",jf,[(mt(),Yn(De,null,Qr(o,a=>me(u,{key:a.to,to:a.to,class:Rn({active:l(a.match)}),"aria-current":l(a.match)?"page":void 0},{default:vn(()=>[me(Fo,{name:a.icon},null,8,["name"]),or(dn(a.label),1)]),_:2},1032,["to","class","aria-current"])),64))]),yc(je("div",{class:"toast",role:"status","aria-live":"polite"},dn($e(n).message),513),[[Na,$e(n).message]])])}}}),kf=Bn({__name:"App",setup(e){const t=El(),n=Q(()=>t.meta.public===!0||t.meta.bare===!0);return(s,r)=>{const o=Mi("router-view");return n.value?(mt(),In(o,{key:0})):(mt(),In(Ff,{key:1},{default:vn(()=>[me(o)]),_:1}))}}});nu(kf).use(ou()).use(Bt).mount("#app");export{Zt as A,In as B,An as C,Jf as D,Ne as E,De as F,xn as G,$f as H,Fn as I,Dc as J,bs as K,ce as L,Uc as M,xl as N,Dr as O,Qf as P,Wf as Q,Zn as R,Ii as S,Hf as T,Fo as _,je as a,$e as b,Yn as c,Bn as d,Uf as e,zf as f,Kf as g,me as h,vn as i,El as j,Mi as k,Gf as l,or as m,fn as n,mt as o,Al as p,Ic as q,Ie as r,Q as s,dn as t,Rl as u,qf as v,yc as w,Rn as x,Qr as y,gr as z}; diff --git a/public/assets/index-D5YFSKUV.js b/public/assets/index-D5YFSKUV.js deleted file mode 100644 index 82f439e..0000000 --- a/public/assets/index-D5YFSKUV.js +++ /dev/null @@ -1,3 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-CV0vWG8v.js","assets/forms-wljlKyMv.js","assets/RegisterView-D0r589HT.js","assets/ForgotView-Cs41d0Vc.js","assets/ResetView-BQnpRsQD.js","assets/DashboardView-Bbpchoxb.js","assets/PageHead.vue_vue_type_script_setup_true_lang-CmzkJbRP.js","assets/LoadState.vue_vue_type_script_setup_true_lang-CkJKaMnT.js","assets/ElectiveBar.vue_vue_type_script_setup_true_lang-DoecCJhC.js","assets/format-bcE-cYHJ.js","assets/ScheduleView-DRXKDOhJ.js","assets/DeadlinesView-BlxBIb-a.js","assets/CoursesView-BmmjRNCQ.js","assets/CourseView-CS3LyBRp.js","assets/ReadingItem.vue_vue_type_script_setup_true_lang-BEpVkt6V.js","assets/ReadingsView-dREpHSZ_.js","assets/MaterialsView-DLRl9uuu.js","assets/MaterialView-C-GKgARj.js","assets/QuizzesView-BOuyfpUe.js","assets/quizzes-C4a6BQv2.js","assets/QuizView-CF18K_CT.js","assets/MoreView-DCK1_hNZ.js","assets/ProfileView-CpeFz2WO.js"])))=>i.map(i=>d[i]); -var _l=Object.defineProperty;var vl=(e,t,n)=>t in e?_l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var zt=(e,t,n)=>vl(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function ir(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const se={},jt=[],ot=()=>{},Lo=()=>!1,is=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ls=e=>e.startsWith("onUpdate:"),_e=Object.assign,lr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yl=Object.prototype.hasOwnProperty,Z=(e,t)=>yl.call(e,t),V=Array.isArray,It=e=>Dn(e)==="[object Map]",_t=e=>Dn(e)==="[object Set]",Ir=e=>Dn(e)==="[object Date]",U=e=>typeof e=="function",ue=e=>typeof e=="string",He=e=>typeof e=="symbol",ee=e=>e!==null&&typeof e=="object",jo=e=>(ee(e)||U(e))&&U(e.then)&&U(e.catch),Vo=Object.prototype.toString,Dn=e=>Vo.call(e),bl=e=>Dn(e).slice(8,-1),Fo=e=>Dn(e)==="[object Object]",cs=e=>ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,hn=ir(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),as=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},El=/-\w/g,Te=as(e=>e.replace(El,t=>t.slice(1).toUpperCase())),wl=/\B([A-Z])/g,Bt=as(e=>e.replace(wl,"-$1").toLowerCase()),us=as(e=>e.charAt(0).toUpperCase()+e.slice(1)),Rs=as(e=>e?`on${us(e)}`:""),st=(e,t)=>!Object.is(e,t),$n=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},fs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Tr;const ds=()=>Tr||(Tr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function cr(e){if(V(e)){const t={};for(let n=0;nn.startsWith("/*")?"":n).split(Sl).forEach(n=>{if(n){const s=n.split(xl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Sn(e){let t="";if(ue(e))t=e;else if(V(e))for(let n=0;nvt(n,t))}const Bo=e=>!!(e&&e.__v_isRef===!0),un=e=>ue(e)?e:e==null?"":V(e)||ee(e)&&(e.toString===Vo||!U(e.toString))?Bo(e)?un(e.value):JSON.stringify(e,Uo,2):String(e),Uo=(e,t)=>Bo(t)?Uo(e,t.value):It(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[As(s,o)+" =>"]=r,n),{})}:_t(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>As(n))}:He(t)?As(t):ee(t)&&!V(t)&&!Fo(t)?String(t):t,As=(e,t="")=>{var n;return He(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let me;class qo{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&&me&&(me.active?(this.parent=me,this.index=(me.scopes||(me.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 s=this.scopes.slice();for(t=0,n=s.length;t0&&--this._on===0){if(me===this)me=this.prevScope;else{let t=me;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,s;for(n=0,s=this.effects.length;n0)return;if(gn){let t=gn;for(gn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;pn;){let t=pn;for(pn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Jo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Qo(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),dr(s),Nl(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function zs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Yo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Yo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===xn)||(e.globalVersion=xn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!zs(e))))return;e.flags|=2;const t=e.dep,n=oe,s=Ke;oe=e,Ke=!0;try{Jo(e);const r=e.fn(e._value);(t.version===0||st(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{oe=n,Ke=s,Qo(e),e.flags&=-3}}function dr(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)dr(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Nl(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ke=!0;const Xo=[];function yt(){Xo.push(Ke),Ke=!1}function bt(){const e=Xo.pop();Ke=e===void 0?!0:e}function Dr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=oe;oe=void 0;try{t()}finally{oe=n}}}let xn=0;class Ml{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 hr{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(!oe||!Ke||oe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==oe)n=this.activeLink=new Ml(oe,this),oe.deps?(n.prevDep=oe.depsTail,oe.depsTail.nextDep=n,oe.depsTail=n):oe.deps=oe.depsTail=n,Zo(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=oe.depsTail,n.nextDep=void 0,oe.depsTail.nextDep=n,oe.depsTail=n,oe.deps===n&&(oe.deps=s)}return n}trigger(t){this.version++,xn++,this.notify(t)}notify(t){ur();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{fr()}}}function Zo(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Zo(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Qn=new WeakMap,kt=Symbol(""),$s=Symbol(""),Rn=Symbol("");function Se(e,t,n){if(Ke&&oe){let s=Qn.get(e);s||Qn.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new hr),r.map=s,r.key=n),r.track()}}function ht(e,t,n,s,r,o){const i=Qn.get(e);if(!i){xn++;return}const l=c=>{c&&c.trigger()};if(ur(),t==="clear")i.forEach(l);else{const c=V(e),f=c&&cs(n);if(c&&n==="length"){const a=Number(s);i.forEach((u,p)=>{(p==="length"||p===Rn||!He(p)&&p>=a)&&l(u)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),f&&l(i.get(Rn)),t){case"add":c?f&&l(i.get("length")):(l(i.get(kt)),It(e)&&l(i.get($s)));break;case"delete":c||(l(i.get(kt)),It(e)&&l(i.get($s)));break;case"set":It(e)&&l(i.get(kt));break}}fr()}function Dl(e,t){const n=Qn.get(e);return n&&n.get(t)}function $t(e){const t=Q(e);return t===e||(Se(t,"iterate",Rn),ke(e))?t:lt(e)?it(e)?t.map(n=>Tt(qe(n))):t.map(Tt):t.map(qe)}function hs(e){return Se(e=Q(e),"iterate",Rn),e}function tt(e,t){return lt(e)?Tt(it(e)?qe(t):t):qe(t)}const Ll={__proto__:null,[Symbol.iterator](){return Os(this,Symbol.iterator,e=>tt(this,e))},concat(...e){return $t(this).concat(...e.map(t=>V(t)?$t(t):t))},entries(){return Os(this,"entries",e=>(e[1]=tt(this,e[1]),e))},every(e,t){return at(this,"every",e,t,void 0,arguments)},filter(e,t){return at(this,"filter",e,t,n=>n.map(s=>tt(this,s)),arguments)},find(e,t){return at(this,"find",e,t,n=>tt(this,n),arguments)},findIndex(e,t){return at(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return at(this,"findLast",e,t,n=>tt(this,n),arguments)},findLastIndex(e,t){return at(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return at(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ps(this,"includes",e)},indexOf(...e){return Ps(this,"indexOf",e)},join(e){return $t(this).join(e)},lastIndexOf(...e){return Ps(this,"lastIndexOf",e)},map(e,t){return at(this,"map",e,t,void 0,arguments)},pop(){return rn(this,"pop")},push(...e){return rn(this,"push",e)},reduce(e,...t){return Lr(this,"reduce",e,t)},reduceRight(e,...t){return Lr(this,"reduceRight",e,t)},shift(){return rn(this,"shift")},some(e,t){return at(this,"some",e,t,void 0,arguments)},splice(...e){return rn(this,"splice",e)},toReversed(){return $t(this).toReversed()},toSorted(e){return $t(this).toSorted(e)},toSpliced(...e){return $t(this).toSpliced(...e)},unshift(...e){return rn(this,"unshift",e)},values(){return Os(this,"values",e=>tt(this,e))}};function Os(e,t,n){const s=hs(e),r=s[t]();return s!==e&&!ke(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const jl=Array.prototype;function at(e,t,n,s,r,o){const i=hs(e),l=i!==e&&!ke(e),c=i[t];if(c!==jl[t]){const u=c.apply(e,o);return l?qe(u):u}let f=n;i!==e&&(l?f=function(u,p){return n.call(this,tt(e,u),p,e)}:n.length>2&&(f=function(u,p){return n.call(this,u,p,e)}));const a=c.call(i,f,s);return l&&r?r(a):a}function Lr(e,t,n,s){const r=hs(e),o=r!==e&&!ke(e);let i=n,l=!1;r!==e&&(o?(l=s.length===0,i=function(f,a,u){return l&&(l=!1,f=tt(e,f)),n.call(this,f,tt(e,a),u,e)}):n.length>3&&(i=function(f,a,u){return n.call(this,f,a,u,e)}));const c=r[t](i,...s);return l?tt(e,c):c}function Ps(e,t,n){const s=Q(e);Se(s,"iterate",Rn);const r=s[t](...n);return(r===-1||r===!1)&&ps(n[0])?(n[0]=Q(n[0]),s[t](...n)):r}function rn(e,t,n=[]){yt(),ur();const s=Q(e)[t].apply(e,n);return fr(),bt(),s}const Vl=ir("__proto__,__v_isRef,__isVue"),ei=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(He));function Fl(e){He(e)||(e=String(e));const t=Q(this);return Se(t,"has",e),t.hasOwnProperty(e)}class ti{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?Wl:oi:o?ri:si).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=V(t);if(!r){let c;if(i&&(c=Ll[n]))return c;if(n==="hasOwnProperty")return Fl}const l=Reflect.get(t,n,fe(t)?t:s);if((He(n)?ei.has(n):Vl(n))||(r||Se(t,"get",n),o))return l;if(fe(l)){const c=i&&cs(n)?l:l.value;return r&&ee(c)?Gs(c):c}return ee(l)?r?Gs(l):Ln(l):l}}class ni extends ti{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const i=V(t)&&cs(n);if(!this._isShallow){const f=lt(o);if(!ke(s)&&!lt(s)&&(o=Q(o),s=Q(s)),!i&&fe(o)&&!fe(s))return f||(o.value=s),!0}const l=i?Number(n)e,Hn=e=>Reflect.getPrototypeOf(e);function ql(e,t,n){return function(...s){const r=this.__v_raw,o=Q(r),i=It(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,f=r[e](...s),a=n?Ks:t?Tt:qe;return!t&&Se(o,"iterate",c?$s:kt),_e(Object.create(f),{next(){const{value:u,done:p}=f.next();return p?{value:u,done:p}:{value:l?[a(u[0]),a(u[1])]:a(u),done:p}}})}}function Bn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function zl(e,t){const n={get(r){const o=this.__v_raw,i=Q(o),l=Q(r);e||(st(r,l)&&Se(i,"get",r),Se(i,"get",l));const{has:c}=Hn(i),f=t?Ks:e?Tt:qe;if(c.call(i,r))return f(o.get(r));if(c.call(i,l))return f(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&Se(Q(r),"iterate",kt),r.size},has(r){const o=this.__v_raw,i=Q(o),l=Q(r);return e||(st(r,l)&&Se(i,"has",r),Se(i,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const i=this,l=i.__v_raw,c=Q(l),f=t?Ks:e?Tt:qe;return!e&&Se(c,"iterate",kt),l.forEach((a,u)=>r.call(o,f(a),f(u),i))}};return _e(n,e?{add:Bn("add"),set:Bn("set"),delete:Bn("delete"),clear:Bn("clear")}:{add(r){const o=Q(this),i=Hn(o),l=Q(r),c=!t&&!ke(r)&&!lt(r)?l:r;return i.has.call(o,c)||st(r,c)&&i.has.call(o,r)||st(l,c)&&i.has.call(o,l)||(o.add(c),ht(o,"add",c,c)),this},set(r,o){!t&&!ke(o)&&!lt(o)&&(o=Q(o));const i=Q(this),{has:l,get:c}=Hn(i);let f=l.call(i,r);f||(r=Q(r),f=l.call(i,r));const a=c.call(i,r);return i.set(r,o),f?st(o,a)&&ht(i,"set",r,o):ht(i,"add",r,o),this},delete(r){const o=Q(this),{has:i,get:l}=Hn(o);let c=i.call(o,r);c||(r=Q(r),c=i.call(o,r)),l&&l.call(o,r);const f=o.delete(r);return c&&ht(o,"delete",r,void 0),f},clear(){const r=Q(this),o=r.size!==0,i=r.clear();return o&&ht(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=ql(r,e,t)}),n}function pr(e,t){const n=zl(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Z(n,r)&&r in s?n:s,r,o)}const $l={get:pr(!1,!1)},Kl={get:pr(!1,!0)},Gl={get:pr(!0,!1)};const si=new WeakMap,ri=new WeakMap,oi=new WeakMap,Wl=new WeakMap;function Jl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ln(e){return lt(e)?e:gr(e,!1,Hl,$l,si)}function ii(e){return gr(e,!1,Ul,Kl,ri)}function Gs(e){return gr(e,!0,Bl,Gl,oi)}function gr(e,t,n,s,r){if(!ee(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=r.get(e);if(o)return o;const i=Jl(bl(e));if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function it(e){return lt(e)?it(e.__v_raw):!!(e&&e.__v_isReactive)}function lt(e){return!!(e&&e.__v_isReadonly)}function ke(e){return!!(e&&e.__v_isShallow)}function ps(e){return e?!!e.__v_raw:!1}function Q(e){const t=e&&e.__v_raw;return t?Q(t):e}function mr(e){return!Z(e,"__v_skip")&&Object.isExtensible(e)&&ko(e,"__v_skip",!0),e}const qe=e=>ee(e)?Ln(e):e,Tt=e=>ee(e)?Gs(e):e;function fe(e){return e?e.__v_isRef===!0:!1}function Ie(e){return ci(e,!1)}function li(e){return ci(e,!0)}function ci(e,t){return fe(e)?e:new Ql(e,t)}class Ql{constructor(t,n){this.dep=new hr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Q(t),this._value=n?t:qe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||ke(t)||lt(t);t=s?t:Q(t),st(t,n)&&(this._rawValue=t,this._value=s?t:qe(t),this.dep.trigger())}}function $e(e){return fe(e)?e.value:e}const Yl={get:(e,t,n)=>t==="__v_raw"?e:$e(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return fe(r)&&!fe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function ai(e){return it(e)?e:new Proxy(e,Yl)}function Xl(e){const t=V(e)?new Array(e.length):{};for(const n in e)t[n]=ec(e,n);return t}class Zl{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=He(n)?n:String(n),this._raw=Q(t);let r=!0,o=t;if(!V(t)||He(this._key)||!cs(this._key))do r=!ps(o)||ke(o);while(r&&(o=o.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=$e(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&fe(this._raw[this._key])){const n=this._object[this._key];if(fe(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Dl(this._raw,this._key)}}function ec(e,t,n){return new Zl(e,t,n)}class tc{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new hr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&oe!==this)return Wo(this,!0),!0}get value(){const t=this.dep.track();return Yo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function nc(e,t,n=!1){let s,r;return U(e)?s=e:(s=e.get,r=e.set),new tc(s,r,n)}const Un={},Yn=new WeakMap;let Lt;function sc(e,t=!1,n=Lt){if(n){let s=Yn.get(n);s||Yn.set(n,s=[]),s.push(e)}}function rc(e,t,n=se){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:c}=n,f=T=>r?T:ke(T)||r===!1||r===0?pt(T,1):pt(T);let a,u,p,g,S=!1,w=!1;if(fe(e)?(u=()=>e.value,S=ke(e)):it(e)?(u=()=>f(e),S=!0):V(e)?(w=!0,S=e.some(T=>it(T)||ke(T)),u=()=>e.map(T=>{if(fe(T))return T.value;if(it(T))return f(T);if(U(T))return c?c(T,2):T()})):U(e)?t?u=c?()=>c(e,2):e:u=()=>{if(p){yt();try{p()}finally{bt()}}const T=Lt;Lt=a;try{return c?c(e,3,[g]):e(g)}finally{Lt=T}}:u=ot,t&&r){const T=u,q=r===!0?1/0:r;u=()=>pt(T(),q)}const D=$o(),P=()=>{a.stop(),D&&D.active&&lr(D.effects,a)};if(o&&t){const T=t;t=(...q)=>{const ie=T(...q);return P(),ie}}let R=w?new Array(e.length).fill(Un):Un;const M=T=>{if(!(!(a.flags&1)||!a.dirty&&!T))if(t){const q=a.run();if(T||r||S||(w?q.some((ie,Y)=>st(ie,R[Y])):st(q,R))){p&&p();const ie=Lt;Lt=a;try{const Y=[q,R===Un?void 0:w&&R[0]===Un?[]:R,g];R=q,c?c(t,3,Y):t(...Y)}finally{Lt=ie}}}else a.run()};return l&&l(M),a=new Ko(u),a.scheduler=i?()=>i(M,!1):M,g=T=>sc(T,!1,a),p=a.onStop=()=>{const T=Yn.get(a);if(T){if(c)c(T,4);else for(const q of T)q();Yn.delete(a)}},t?s?M(!0):R=a.run():i?i(M.bind(null,!0),!0):a.run(),P.pause=a.pause.bind(a),P.resume=a.resume.bind(a),P.stop=P,P}function pt(e,t=1/0,n){if(t<=0||!ee(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,fe(e))pt(e.value,t,n);else if(V(e))for(let s=0;s{pt(s,t,n)});else if(Fo(e)){for(const s in e)pt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&pt(e[s],t,n)}return e}function jn(e,t,n,s){try{return s?e(...s):e()}catch(r){gs(r,t,n)}}function Ge(e,t,n,s){if(U(e)){const r=jn(e,t,n,s);return r&&jo(r)&&r.catch(o=>{gs(o,t,n)}),r}if(V(e)){const r=[];for(let o=0;o>>1,r=Pe[s],o=An(r);o=An(n)?Pe.push(e):Pe.splice(ic(t),0,e),e.flags|=1,fi()}}function fi(){Xn||(Xn=ui.then(hi))}function lc(e){if(!V(e))Ct&&e.id===-1?Ct.splice(Wt+1,0,e):e.flags&1||(Qt.push(e),e.flags|=1);else for(let t=0;tAn(n)-An(s));if(Qt.length=0,Ct){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function hi(e){try{for(et=0;et{s._d&&ns(-1);const o=Zn(t),i=gt.length;let l;try{l=e(...r)}finally{for(let c=gt.length;c>i;c--)wr();Zn(o),s._d&&ns(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function cc(e,t){if(we===null)return e;const n=Es(we),s=e.dirs||(e.dirs=[]);for(let r=0;r1)return n&&U(t)?t.call(s&&s.proxy):t}}function ac(){return!!(Ui()||Ht)}const uc=Symbol.for("v-scx"),fc=()=>Ue(uc);function Yt(e,t,n){return gi(e,t,n)}function gi(e,t,n=se){const{immediate:s,deep:r,flush:o,once:i}=n,l=_e({},n),c=t&&s||!t&&o!=="post";let f;if(Tn){if(o==="sync"){const g=fc();f=g.__watcherHandles||(g.__watcherHandles=[])}else if(!c){const g=()=>{};return g.stop=ot,g.resume=ot,g.pause=ot,g}}const a=xe;l.call=(g,S,w)=>Ge(g,a,S,w);let u=!1;o==="post"?l.scheduler=g=>{Ne(g,a&&a.suspense)}:o!=="sync"&&(u=!0,l.scheduler=(g,S)=>{S?g():_r(g)}),l.augmentJob=g=>{t&&(g.flags|=4),u&&(g.flags|=2,a&&(g.id=a.uid,g.i=a))};const p=rc(e,t,l);return Tn&&(f?f.push(p):c&&p()),p}function dc(e,t,n){const s=this.proxy,r=ue(e)?e.includes(".")?mi(s,e):()=>s[e]:e.bind(s,s);let o;U(t)?o=t:(o=t.handler,n=t);const i=Fn(this),l=gi(r,o.bind(s),n);return i(),l}function mi(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;re.__isTeleport,Is=Symbol("_leaveCb");function pc(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ct){t=n;break}}return t}function _i(e){if(!yr(e))return _s(e.type)&&e.children?pc(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&&U(n.default))return n.default()}}function vr(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;vr(_s(n.type)&&_i(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 Vn(e,t){return U(e)?_e({name:e.name},t,{setup:e}):e}function vi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Vr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const es=new WeakMap;function _n(e,t,n,s,r=!1){if(V(e)){e.forEach((w,D)=>_n(w,t&&(V(t)?t[D]:t),n,s,r));return}if(Xt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&_n(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Es(s.component):s.el,i=r?null:o,{i:l,r:c}=e,f=t&&t.r,a=l.refs===se?l.refs={}:l.refs,u=l.setupState,p=Q(u),g=u===se?Lo:w=>Vr(a,w)?!1:Z(p,w),S=(w,D)=>!(D&&Vr(a,D));if(f!=null&&f!==c){if(Fr(t),ue(f))a[f]=null,g(f)&&(u[f]=null);else if(fe(f)){const w=t;S(f,w.k)&&(f.value=null),w.k&&(a[w.k]=null)}}if(U(c))jn(c,l,12,[i,a]);else{const w=ue(c),D=fe(c);if(w||D){const P=()=>{if(e.f){const R=w?g(c)?u[c]:a[c]:S()||!e.k?c.value:a[e.k];if(r)V(R)&&lr(R,o);else if(V(R))R.includes(o)||R.push(o);else if(w)a[c]=[o],g(c)&&(u[c]=a[c]);else{const M=[o];S(c,e.k)&&(c.value=M),e.k&&(a[e.k]=M)}}else w?(a[c]=i,g(c)&&(u[c]=i)):D&&(S(c,e.k)&&(c.value=i),e.k&&(a[e.k]=i))};if(i){const R=()=>{P(),es.delete(e)};R.id=-1,es.set(e,R),Ne(R,n)}else Fr(e),P()}}}function Fr(e){const t=es.get(e);t&&(t.flags|=8,es.delete(e))}ds().requestIdleCallback;ds().cancelIdleCallback;const Xt=e=>!!e.type.__asyncLoader,yr=e=>e.type.__isKeepAlive;function gc(e,t){yi(e,"a",t)}function mc(e,t){yi(e,"da",t)}function yi(e,t,n=xe){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(vs(t,s,n),n){let r=n.parent;for(;r&&r.parent;)yr(r.parent.vnode)&&_c(s,t,n,r),r=r.parent}}function _c(e,t,n,s){const r=vs(t,e,s,!0);bi(()=>{lr(s[t],r)},n)}function vs(e,t,n=xe,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{yt();const l=Fn(n),c=Ge(t,n,e,i);return l(),bt(),c});return s?r.unshift(o):r.push(o),o}}const Et=e=>(t,n=xe)=>{(!Tn||e==="sp")&&vs(e,(...s)=>t(...s),n)},vc=Et("bm"),yc=Et("m"),bc=Et("bu"),Ec=Et("u"),wc=Et("bum"),bi=Et("um"),Sc=Et("sp"),xc=Et("rtg"),Rc=Et("rtc");function Ac(e,t=xe){vs("ec",e,t)}const Cc="components";function Ei(e,t){return Pc(Cc,e,!0,t)||e}const Oc=Symbol.for("v-ndc");function Pc(e,t,n=!0,s=!1){const r=we||xe;if(r){const o=r.type;{const l=ha(o,!1);if(l&&(l===t||l===Te(t)||l===us(Te(t))))return o}const i=kr(r[e]||o[e],t)||kr(r.appContext[e],t);return!i&&s?o:i}}function kr(e,t){return e&&(e[t]||e[Te(t)]||e[us(Te(t))])}function Hr(e,t,n,s){let r;const o=n,i=V(e);if(i||ue(e)){const l=i&&it(e);let c=!1,f=!1;l&&(c=!ke(e),f=lt(e),e=hs(e)),r=new Array(e.length);for(let a=0,u=e.length;at(l,c,void 0,o));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,f=l.length;c0;return mt(),On(De,null,[pe("slot",f,s)],a?-2:64)}let i=e[t];i&&i._c&&(i._d=!1);const l=gt.length;mt();let c;try{const f=i&&wi(i(n)),a=n.key||o||f&&f.key;c=On(De,{key:(a&&!He(a)?a:`_${t}`)+(!f&&s?"_fb":"")},f||(s?s():[]),f&&e._===1?64:-2)}catch(f){for(let a=gt.length;a>l;a--)wr();throw f}finally{i&&i._c&&(i._d=!0)}return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),c}function wi(e){return e.some(t=>Pn(t)?!(t.type===ct||t.type===De&&!wi(t.children)):!0)?e:null}const Ws=e=>e?qi(e)?Es(e):Ws(e.parent):null,vn=_e(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=>Ws(e.parent),$root:e=>Ws(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xi(e),$forceUpdate:e=>e.f||(e.f=()=>{_r(e.update)}),$nextTick:e=>e.n||(e.n=ms.bind(e.proxy)),$watch:e=>dc.bind(e)}),Ts=(e,t)=>e!==se&&!e.__isScriptSetup&&Z(e,t),Tc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:c}=e;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Ts(s,t))return i[t]=1,s[t];if(r!==se&&Z(r,t))return i[t]=2,r[t];if(Z(o,t))return i[t]=3,o[t];if(n!==se&&Z(n,t))return i[t]=4,n[t];Js&&(i[t]=0)}}const f=vn[t];let a,u;if(f)return t==="$attrs"&&Se(e.attrs,"get",""),f(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(n!==se&&Z(n,t))return i[t]=4,n[t];if(u=c.config.globalProperties,Z(u,t))return u[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Ts(r,t)?(r[t]=n,!0):s!==se&&Z(s,t)?(s[t]=n,!0):Z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:o,type:i}},l){let c;return!!(n[l]||e!==se&&l[0]!=="$"&&Z(e,l)||Ts(t,l)||Z(o,l)||Z(s,l)||Z(vn,l)||Z(r.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Br(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Js=!0;function Nc(e){const t=xi(e),n=e.proxy,s=e.ctx;Js=!1,t.beforeCreate&&Ur(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:f,created:a,beforeMount:u,mounted:p,beforeUpdate:g,updated:S,activated:w,deactivated:D,beforeDestroy:P,beforeUnmount:R,destroyed:M,unmounted:T,render:q,renderTracked:ie,renderTriggered:Y,errorCaptured:z,serverPrefetch:$,expose:le,inheritAttrs:ve,components:k,directives:de,filters:ye}=t;if(f&&Mc(f,s,null),i)for(const B in i){const K=i[B];U(K)&&(s[B]=K.bind(n))}if(r){const B=r.call(n,n);ee(B)&&(e.data=Ln(B))}if(Js=!0,o)for(const B in o){const K=o[B],Le=U(K)?K.bind(n,n):U(K.get)?K.get.bind(n,n):ot,wt=!U(K)&&U(K.set)?K.set.bind(n):ot,Je=J({get:Le,set:wt});Object.defineProperty(s,B,{enumerable:!0,configurable:!0,get:()=>Je.value,set:Re=>Je.value=Re})}if(l)for(const B in l)Si(l[B],s,n,B);if(c){const B=U(c)?c.call(n):c;Reflect.ownKeys(B).forEach(K=>{Kn(K,B[K])})}a&&Ur(a,e,"c");function re(B,K){V(K)?K.forEach(Le=>B(Le.bind(n))):K&&B(K.bind(n))}if(re(vc,u),re(yc,p),re(bc,g),re(Ec,S),re(gc,w),re(mc,D),re(Ac,z),re(Rc,ie),re(xc,Y),re(wc,R),re(bi,T),re(Sc,$),V(le))if(le.length){const B=e.exposed||(e.exposed={});le.forEach(K=>{Object.defineProperty(B,K,{get:()=>n[K],set:Le=>n[K]=Le,enumerable:!0})})}else e.exposed||(e.exposed={});q&&e.render===ot&&(e.render=q),ve!=null&&(e.inheritAttrs=ve),k&&(e.components=k),de&&(e.directives=de),$&&vi(e)}function Mc(e,t,n=ot){V(e)&&(e=Qs(e));for(const s in e){const r=e[s];let o;ee(r)?"default"in r?o=Ue(r.from||s,r.default,!0):o=Ue(r.from||s):o=Ue(r),fe(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Ur(e,t,n){Ge(V(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Si(e,t,n,s){let r=s.includes(".")?mi(n,s):()=>n[s];if(ue(e)){const o=t[e];U(o)&&Yt(r,o)}else if(U(e))Yt(r,e.bind(n));else if(ee(e))if(V(e))e.forEach(o=>Si(o,t,n,s));else{const o=U(e.handler)?e.handler.bind(n):t[e.handler];U(o)&&Yt(r,o,e)}}function xi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(f=>ts(c,f,i,!0)),ts(c,t,i)),ee(t)&&o.set(t,c),c}function ts(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&ts(e,o,n,!0),r&&r.forEach(i=>ts(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Dc[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Dc={data:qr,props:zr,emits:zr,methods:fn,computed:fn,beforeCreate:Ce,created:Ce,beforeMount:Ce,mounted:Ce,beforeUpdate:Ce,updated:Ce,beforeDestroy:Ce,beforeUnmount:Ce,destroyed:Ce,unmounted:Ce,activated:Ce,deactivated:Ce,errorCaptured:Ce,serverPrefetch:Ce,components:fn,directives:fn,watch:jc,provide:qr,inject:Lc};function qr(e,t){return t?e?function(){return _e(U(e)?e.call(this,this):e,U(t)?t.call(this,this):t)}:t:e}function Lc(e,t){return fn(Qs(e),Qs(t))}function Qs(e){if(V(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Te(t)}Modifiers`]||e[`${Bt(t)}Modifiers`];function Hc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||se;let r=n;const o=t.startsWith("update:"),i=o&&kc(s,t.slice(7));i&&(i.trim&&(r=n.map(a=>ue(a)?a.trim():a)),i.number&&(r=r.map(fs)));let l,c=s[l=Rs(t)]||s[l=Rs(Te(t))];!c&&o&&(c=s[l=Rs(Bt(t))]),c&&Ge(c,e,6,r);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ge(f,e,6,r)}}const Bc=new WeakMap;function Ai(e,t,n=!1){const s=n?Bc:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!U(e)){const c=f=>{const a=Ai(f,t,!0);a&&(l=!0,_e(i,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(ee(e)&&s.set(e,null),null):(V(o)?o.forEach(c=>i[c]=null):_e(i,o),ee(e)&&s.set(e,i),i)}function ys(e,t){return!e||!is(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Z(e,t[0].toLowerCase()+t.slice(1))||Z(e,Bt(t))||Z(e,t))}function $r(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:c,render:f,renderCache:a,props:u,data:p,setupState:g,ctx:S,inheritAttrs:w}=e,D=Zn(e);let P,R;try{if(n.shapeFlag&4){const T=r||s,q=T;P=nt(f.call(q,T,a,u,g,p,S)),R=l}else{const T=t;P=nt(T.length>1?T(u,{attrs:l,slots:i,emit:c}):T(u,null)),R=t.props?l:Uc(l)}}catch(T){gt.length=0,gs(T,e,1),P=pe(ct)}let M=P;if(R&&w!==!1){const T=Object.keys(R),{shapeFlag:q}=M;T.length&&q&7&&(o&&T.some(ls)&&(R=qc(R,o)),M=Zt(M,R,!1,!0))}if(n.dirs&&(M=Zt(M,null,!1,!0),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition){const T=_s(M.type)&&_i(M)||M;vr(T,n.transition)}return P=M,Zn(D),P}const Uc=e=>{let t;for(const n in e)(n==="class"||n==="style"||is(n))&&((t||(t={}))[n]=e[n]);return t},qc=(e,t)=>{const n={};for(const s in e)(!ls(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function zc(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,f=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Kr(s,i,f):!!i;if(c&8){const a=t.dynamicProps;for(let u=0;uObject.create(Oi),Ii=e=>Object.getPrototypeOf(e)===Oi;function Kc(e,t,n,s=!1){const r={},o=Pi();e.propsDefaults=Object.create(null),Ti(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:ii(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Gc(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=Q(r),[c]=e.propsOptions;let f=!1;if((s||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let u=0;u{c=!0;const[p,g]=Ni(u,t,!0);_e(i,p),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!o&&!c)return ee(e)&&s.set(e,jt),jt;if(V(o))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",Er=e=>V(e)?e.map(nt):[nt(e)],Jc=(e,t,n)=>{if(t._n)return t;const s=mn((...r)=>Er(t(...r)),n);return s._c=!1,s},Mi=(e,t,n)=>{const s=e._ctx;for(const r in e){if(br(r))continue;const o=e[r];if(U(o))t[r]=Jc(r,o,s);else if(o!=null){const i=Er(o);t[r]=()=>i}}},Di=(e,t)=>{const n=Er(t);e.slots.default=()=>n},Li=(e,t,n)=>{for(const s in t)(n||!br(s))&&(e[s]=t[s])},Qc=(e,t,n)=>{const s=e.slots=Pi();if(e.vnode.shapeFlag&32){const r=t._;r?(Li(s,t,n),n&&ko(s,"_",r,!0)):Mi(t,s)}else t&&Di(e,t)},Yc=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=se;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:Li(r,t,n):(o=!t.$stable,Mi(t,r)),i=t}else t&&(Di(e,t),i={default:1});if(o)for(const l in r)!br(l)&&i[l]==null&&delete r[l]},Ne=na;function Xc(e){return Zc(e)}function Zc(e,t){const n=ds();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:f,setElementText:a,parentNode:u,nextSibling:p,setScopeId:g=ot,insertStaticContent:S}=e,w=(d,h,m,v=null,b=null,_=null,C=void 0,A=null,x=!!h.dynamicChildren)=>{if(d===h)return;d&&!on(d,h)&&(v=y(d),Re(d,b,_,!0),d=null),h.patchFlag===-2&&(x=!1,h.dynamicChildren=null),h.dynamicChildren&&d&&d.dynamicChildren&&d.dynamicChildren.hasOnce&&(h.dynamicChildren===jt&&(h.dynamicChildren=[]),h.dynamicChildren.hasOnce=!0);const{type:E,ref:F,shapeFlag:I}=h;switch(E){case bs:D(d,h,m,v);break;case ct:P(d,h,m,v);break;case Ms:d==null&&R(h,m,v,C);break;case De:k(d,h,m,v,b,_,C,A,x);break;default:I&1?q(d,h,m,v,b,_,C,A,x):I&6?de(d,h,m,v,b,_,C,A,x):(I&64||I&128)&&E.process(d,h,m,v,b,_,C,A,x,L)}F!=null&&b?_n(F,d&&d.ref,_,h||d,!h):F==null&&d&&d.ref!=null&&_n(d.ref,null,_,d,!0)},D=(d,h,m,v)=>{if(d==null)s(h.el=l(h.children),m,v);else{const b=h.el=d.el;h.children!==d.children&&f(b,h.children)}},P=(d,h,m,v)=>{d==null?s(h.el=c(h.children||""),m,v):h.el=d.el},R=(d,h,m,v)=>{[d.el,d.anchor]=S(d.children,h,m,v,d.el,d.anchor)},M=({el:d,anchor:h},m,v)=>{let b;for(;d&&d!==h;)b=p(d),s(d,m,v),d=b;s(h,m,v)},T=({el:d,anchor:h})=>{let m;for(;d&&d!==h;)m=p(d),r(d),d=m;r(h)},q=(d,h,m,v,b,_,C,A,x)=>{if(h.type==="svg"?C="svg":h.type==="math"&&(C="mathml"),d==null)ie(h,m,v,b,_,C,A,x);else{const E=d.el&&d.el._isVueCE?d.el:null;try{E&&E._beginPatch(),$(d,h,b,_,C,A,x)}finally{E&&E._endPatch()}}},ie=(d,h,m,v,b,_,C,A)=>{let x,E;const{props:F,shapeFlag:I,transition:j,dirs:H}=d;if(x=d.el=i(d.type,_,F&&F.is,F),I&8?a(x,d.children):I&16&&z(d.children,x,null,v,b,Ns(d,_),C,A),H&&Mt(d,null,v,"created"),Y(x,d,d.scopeId,C,v),F){for(const ne in F)ne!=="value"&&!hn(ne)&&o(x,ne,null,F[ne],_,v);"value"in F&&o(x,"value",null,F.value,_),(E=F.onVnodeBeforeMount)&&Ze(E,v,d)}H&&Mt(d,null,v,"beforeMount");const W=ea(b,j);W&&j.beforeEnter(x),s(x,h,m),((E=F&&F.onVnodeMounted)||W||H)&&Ne(()=>{E&&Ze(E,v,d),W&&j.enter(x),H&&Mt(d,null,v,"mounted")},b)},Y=(d,h,m,v,b)=>{if(m&&g(d,m),v)for(let _=0;_{for(let E=x;E{const A=h.el=d.el;let{patchFlag:x,dynamicChildren:E,dirs:F}=h;x|=d.patchFlag&16;const I=d.props||se,j=h.props||se;let H;if(m&&Dt(m,!1),(H=j.onVnodeBeforeUpdate)&&Ze(H,m,h,d),F&&Mt(h,d,m,"beforeUpdate"),m&&Dt(m,!0),E&&(!d.dynamicChildren||d.dynamicChildren.length!==E.length)&&(x=0,C=!1,E=null),(I.innerHTML&&j.innerHTML==null||I.textContent&&j.textContent==null)&&a(A,""),E?le(d.dynamicChildren,E,A,m,v,Ns(h,b),_):C||K(d,h,A,null,m,v,Ns(h,b),_,!1),x>0){if(x&16)ve(A,I,j,m,b);else if(x&2&&I.class!==j.class&&o(A,"class",null,j.class,b),x&4&&o(A,"style",I.style,j.style,b),x&8){const W=h.dynamicProps;for(let ne=0;ne{H&&Ze(H,m,h,d),F&&Mt(h,d,m,"updated")},v)},le=(d,h,m,v,b,_,C)=>{for(let A=0;A{if(h!==m){if(h!==se)for(const _ in h)!hn(_)&&!(_ in m)&&o(d,_,h[_],null,b,v);for(const _ in m){if(hn(_))continue;const C=m[_],A=h[_];C!==A&&_!=="value"&&o(d,_,A,C,b,v)}"value"in m&&o(d,"value",h.value,m.value,b)}},k=(d,h,m,v,b,_,C,A,x)=>{const E=h.el=d?d.el:l(""),F=h.anchor=d?d.anchor:l("");let{patchFlag:I,dynamicChildren:j,slotScopeIds:H}=h;H&&(A=A?A.concat(H):H),d==null?(s(E,m,v),s(F,m,v),z(h.children||[],m,F,b,_,C,A,x)):I>0&&I&64&&j&&d.dynamicChildren&&d.dynamicChildren.length===j.length?(le(d.dynamicChildren,j,m,b,_,C,A),(h.key!=null||b&&h===b.subTree)&&ji(d,h,!0)):K(d,h,m,F,b,_,C,A,x)},de=(d,h,m,v,b,_,C,A,x)=>{h.slotScopeIds=A,d==null?h.shapeFlag&512?b.ctx.activate(h,m,v,C,x):ye(h,m,v,b,_,C,x):ze(d,h,x)},ye=(d,h,m,v,b,_,C)=>{const A=d.component=ca(d,v,b);if(yr(d)&&(A.ctx.renderer=L),aa(A,!1,C),A.asyncDep){if(b&&b.registerDep(A,re,C),!d.el){const x=A.subTree=pe(ct);P(null,x,h,m),d.placeholder=x.el}}else re(A,d,h,m,b,_,C)},ze=(d,h,m)=>{const v=h.component=d.component;if(zc(d,h,m))if(v.asyncDep&&!v.asyncResolved){h.el=d.el,B(v,h,m);return}else v.next=h,v.update();else h.el=d.el,v.vnode=h},re=(d,h,m,v,b,_,C)=>{const A=()=>{if(d.isMounted){let{next:I,bu:j,u:H,parent:W,vnode:ne}=d;{const Ye=Vi(d);if(Ye){I&&(I.el=ne.el,B(d,I,C)),Ye.asyncDep.then(()=>{Ne(()=>{d.isUnmounted||E()},b)});return}}let te=I,he;Dt(d,!1),I?(I.el=ne.el,B(d,I,C)):I=ne,j&&$n(j),(he=I.props&&I.props.onVnodeBeforeUpdate)&&Ze(he,W,I,ne),Dt(d,!0);const be=$r(d),Qe=d.subTree;d.subTree=be,w(Qe,be,u(Qe.el),y(Qe),d,b,_),I.el=be.el,te===null&&$c(d,be.el),H&&Ne(H,b),(he=I.props&&I.props.onVnodeUpdated)&&Ne(()=>Ze(he,W,I,ne),b)}else{let I;const{el:j,props:H}=h,{bm:W,m:ne,parent:te,root:he,type:be}=d,Qe=Xt(h);Dt(d,!1),W&&$n(W),!Qe&&(I=H&&H.onVnodeBeforeMount)&&Ze(I,te,h),Dt(d,!0);{he.ce&&he.ce._hasShadowRoot()&&he.ce._injectChildStyle(be,d.parent?d.parent.type:void 0);const Ye=d.subTree=$r(d);w(null,Ye,m,v,d,b,_),h.el=Ye.el}if(ne&&Ne(ne,b),!Qe&&(I=H&&H.onVnodeMounted)){const Ye=h;Ne(()=>Ze(I,te,Ye),b)}(h.shapeFlag&256||te&&Xt(te.vnode)&&te.vnode.shapeFlag&256)&&d.a&&Ne(d.a,b),d.isMounted=!0,h=m=v=null}};d.scope.on();const x=d.effect=new Ko(A);d.scope.off();const E=d.update=x.run.bind(x),F=d.job=x.runIfDirty.bind(x);F.i=d,F.id=d.uid,x.scheduler=()=>_r(F),Dt(d,!0),E()},B=(d,h,m)=>{h.component=d;const v=d.vnode.props;d.vnode=h,d.next=null,Gc(d,h.props,v,m),Yc(d,h.children,m),yt(),jr(d),bt()},K=(d,h,m,v,b,_,C,A,x=!1)=>{const E=d&&d.children,F=d?d.shapeFlag:0,I=h.children,{patchFlag:j,shapeFlag:H}=h;if(j>0){if(j&128){wt(E,I,m,v,b,_,C,A,x);return}else if(j&256){Le(E,I,m,v,b,_,C,A,x);return}}H&8?(F&16&&Be(E,b,_),I!==E&&a(m,I)):F&16?H&16?wt(E,I,m,v,b,_,C,A,x):Be(E,b,_,!0):(F&8&&a(m,""),H&16&&z(I,m,v,b,_,C,A,x))},Le=(d,h,m,v,b,_,C,A,x)=>{d=d||jt,h=h||jt;const E=d.length,F=h.length,I=Math.min(E,F);let j;for(j=0;jF?Be(d,b,_,!0,!1,I):z(h,m,v,b,_,C,A,x,I)},wt=(d,h,m,v,b,_,C,A,x)=>{let E=0;const F=h.length;let I=d.length-1,j=F-1;for(;E<=I&&E<=j;){const H=d[E],W=h[E]=x?dt(h[E]):nt(h[E]);if(on(H,W))w(H,W,m,null,b,_,C,A,x);else break;E++}for(;E<=I&&E<=j;){const H=d[I],W=h[j]=x?dt(h[j]):nt(h[j]);if(on(H,W))w(H,W,m,null,b,_,C,A,x);else break;I--,j--}if(E>I){if(E<=j){const H=j+1,W=Hj)for(;E<=I;)Re(d[E],b,_,!0),E++;else{const H=E,W=E,ne=new Map;for(E=W;E<=j;E++){const je=h[E]=x?dt(h[E]):nt(h[E]);je.key!=null&&ne.set(je.key,E)}let te,he=0;const be=j-W+1;let Qe=!1,Ye=0;const sn=new Array(be);for(E=0;E=be){Re(je,b,_,!0);continue}let Xe;if(je.key!=null)Xe=ne.get(je.key);else for(te=W;te<=j;te++)if(sn[te-W]===0&&on(je,h[te])){Xe=te;break}Xe===void 0?Re(je,b,_,!0):(sn[Xe-W]=E+1,Xe>=Ye?Ye=Xe:Qe=!0,w(je,h[Xe],m,null,b,_,C,A,x),he++)}const Cr=Qe?ta(sn):jt;for(te=Cr.length-1,E=be-1;E>=0;E--){const je=W+E,Xe=h[je],Or=h[je+1],Pr=je+1{const{el:_,type:C,transition:A,children:x,shapeFlag:E}=d;if(E&6){Je(d.component.subTree,h,m,v);return}if(E&128){d.suspense.move(h,m,v);return}if(E&64){C.move(d,h,m,L);return}if(C===De){s(_,h,m);for(let I=0;IA.enter(_),b));else{const{leave:I,delayLeave:j,afterLeave:H}=A,W=()=>{d.ctx.isUnmounted?r(_):s(_,h,m)},ne=()=>{const te=_._isLeaving||!!_[Is];_._isLeaving&&_[Is](!0),A.persisted&&!te?W():I(_,()=>{W(),H&&H()})};j?j(_,W,ne):ne()}else s(_,h,m)},Re=(d,h,m,v=!1,b=!1)=>{const{type:_,props:C,ref:A,children:x,dynamicChildren:E,shapeFlag:F,patchFlag:I,dirs:j,cacheIndex:H,memo:W}=d;if((I===-2||E&&E.hasOnce)&&(b=!1),A!=null&&(yt(),_n(A,null,m,d,!0),bt()),H!=null&&(!d.ctx||d.ctx===h)&&(h.renderCache[H]=void 0),F&256){h.ctx.deactivate(d);return}const ne=F&1&&j,te=!Xt(d);let he;if(te&&(he=C&&C.onVnodeBeforeUnmount)&&Ze(he,h,d),F&6)Nt(d.component,m,v);else{if(F&128){d.suspense.unmount(m,v);return}ne&&Mt(d,null,h,"beforeUnmount"),F&64?d.type.remove(d,h,m,L,v):E&&!E.hasOnce&&(_!==De||I>0&&I&64)?Be(E,h,m,!1,!0):(_===De&&I&384||!b&&F&16)&&Be(x,h,m),v&&Ut(d)}const be=W!=null&&H==null;(te&&(he=C&&C.onVnodeUnmounted)||ne||be)&&Ne(()=>{he&&Ze(he,h,d),ne&&Mt(d,null,h,"unmounted"),be&&(d.el=null)},m)},Ut=d=>{const{type:h,el:m,anchor:v,transition:b}=d;if(h===De){qt(m,v);return}if(h===Ms){T(d),b&&!b.persisted&&b.afterLeave&&b.afterLeave();return}const _=()=>{r(m),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(d.shapeFlag&1&&b&&!b.persisted){const{leave:C,delayLeave:A}=b,x=()=>C(m,_);A?A(d.el,_,x):x()}else _()},qt=(d,h)=>{let m;for(;d!==h;)m=p(d),r(d),d=m;r(h)},Nt=(d,h,m)=>{const{bum:v,scope:b,job:_,subTree:C,um:A,m:x,a:E}=d;Wr(x),Wr(E),v&&$n(v),b.stop(),_?(_.flags|=8,Re(C,d,h,m)):d.vnode.el&&C&&(C.transition=d.vnode.transition,Re(C,d,h,m)),A&&Ne(A,h),Ne(()=>{d.isUnmounted=!0},h)},Be=(d,h,m,v=!1,b=!1,_=0)=>{for(let C=_;C{if(d.shapeFlag&6)return y(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const h=p(d.anchor||d.el),m=h&&h[hc];return m?p(m):h};let N=!1;const O=(d,h,m)=>{let v;d==null?h._vnode&&(Re(h._vnode,null,null,!0),v=h._vnode.component):w(h._vnode||null,d,h,null,null,null,m),h._vnode=d,N||(N=!0,jr(v),di(),N=!1)},L={p:w,um:Re,m:Je,r:Ut,mt:ye,mc:z,pc:K,pbc:le,n:y,o:e};return{render:O,hydrate:void 0,createApp:Fc(O)}}function Ns({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 Dt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ea(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ji(e,t,n=!1){const s=e.children,r=t.children;if(V(s)&&V(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Vi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vi(t)}function Wr(e){if(e)for(let t=0;te.__isSuspense;function na(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):lc(e)}const De=Symbol.for("v-fgt"),bs=Symbol.for("v-txt"),ct=Symbol.for("v-cmt"),Ms=Symbol.for("v-stc"),gt=[];let Fe=null;function mt(e=!1){gt.push(Fe=e?null:[])}function wr(){gt.pop(),Fe=gt[gt.length-1]||null}let Cn=1;function ns(e,t=!1){Cn+=e,e<0&&Fe&&t&&(Fe.hasOnce=!0)}function Hi(e){return e.dynamicChildren=Cn>0?Fe||jt:null,wr(),Cn>0&&Fe&&Fe.push(e),e}function Gn(e,t,n,s,r,o){return Hi(Ve(e,t,n,s,r,o,!0))}function On(e,t,n,s,r){return Hi(pe(e,t,n,s,r,!0))}function Pn(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const Bi=({key:e})=>e??null,Wn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ue(e)||fe(e)||U(e)?{i:we,r:e,k:t,f:!!n}:e:null);function Ve(e,t=null,n=null,s=0,r=null,o=e===De?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Bi(t),ref:t&&Wn(t),scopeId:pi,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:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:we};return l?(ss(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=ue(n)?8:16),Cn>0&&!i&&Fe&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Fe.push(c),c}const pe=sa;function sa(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Oc)&&(e=ct),Pn(e)){const l=Zt(e,t,!0);return n&&ss(l,n),Cn>0&&!o&&Fe&&(l.shapeFlag&6?Fe[Fe.indexOf(e)]=l:Fe.push(l)),l.patchFlag=-2,l}if(pa(e)&&(e=e.__vccOpts),t){t=ra(t);let{class:l,style:c}=t;l&&!ue(l)&&(t.class=Sn(l)),ee(c)&&(ps(c)&&!V(c)&&(c=_e({},c)),t.style=cr(c))}const i=ue(e)?1:ki(e)?128:_s(e)?64:ee(e)?4:U(e)?2:0;return Ve(e,t,n,s,r,i,o,!0)}function ra(e){return e?ps(e)||Ii(e)?_e({},e):e:null}function Zt(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:c}=e,f=t?oa(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Bi(f),ref:t&&t.ref?n&&o?V(o)?o.concat(Wn(t)):[o,Wn(t)]:Wn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==De?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zt(e.ssContent),ssFallback:e.ssFallback&&Zt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&s&&vr(a,c.clone(a)),a}function Xs(e=" ",t=0){return pe(bs,null,e,t)}function Pf(e="",t=!1){return t?(mt(),On(ct,null,e)):pe(ct,null,e)}function nt(e){return e==null||typeof e=="boolean"?pe(ct):V(e)?pe(De,null,e.slice()):Pn(e)?dt(e):pe(bs,null,String(e))}function dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zt(e)}function ss(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),ss(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Ii(t)?t._ctx=we:r===3&&we&&(we.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(U(t)){if(s&65){ss(e,{default:t});return}t={default:t,_ctx:we},n=32}else t=String(t),s&64?(n=16,t=[Xs(t)]):n=8;e.children=t,e.shapeFlag|=n}function oa(...e){const t={};for(let n=0;nxe||we;let rs,In;{const e=ds(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};rs=t("__VUE_INSTANCE_SETTERS__",n=>xe=n),In=t("__VUE_SSR_SETTERS__",n=>Tn=n)}const Fn=e=>{const t=xe;return rs(e),e.scope.on(),()=>{e.scope.off(),rs(t)}},Jr=()=>{xe&&xe.scope.off(),rs(null)};function qi(e){return e.vnode.shapeFlag&4}let Tn=!1;function aa(e,t=!1,n=!1){t&&In(t);const{props:s,children:r}=e.vnode,o=qi(e);Kc(e,s,o,t),Qc(e,r,n||t);const i=o?ua(e,t):void 0;return t&&In(!1),i}function ua(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Tc);const{setup:s}=n;if(s){yt();const r=e.setupContext=s.length>1?da(e):null,o=Fn(e),i=jn(s,e,0,[e.props,r]),l=jo(i);if(bt(),o(),(l||e.sp)&&!Xt(e)&&vi(e),l){if(i.then(Jr,Jr),t)return i.then(c=>{In(!0);try{Qr(e,c,t)}finally{In(!1)}}).catch(c=>{gs(c,e,0)});e.asyncDep=i}else Qr(e,i)}else zi(e)}function Qr(e,t,n){U(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ee(t)&&(e.setupState=ai(t)),zi(e)}function zi(e,t,n){const s=e.type;e.render||(e.render=s.render||ot);{const r=Fn(e);yt();try{Nc(e)}finally{bt(),r()}}}const fa={get(e,t){return Se(e,"get",""),e[t]}};function da(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,fa),slots:e.slots,emit:e.emit,expose:t}}function Es(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ai(mr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vn)return vn[n](e)},has(t,n){return n in t||n in vn}})):e.proxy}function ha(e,t=!0){return U(e)?e.displayName||e.name:e.name||t&&e.__name}function pa(e){return U(e)&&"__vccOpts"in e}const J=(e,t)=>nc(e,t,Tn);function $i(e,t,n){try{ns(-1);const s=arguments.length;return s===2?ee(t)&&!V(t)?Pn(t)?pe(e,null,[t]):pe(e,t):pe(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Pn(n)&&(n=[n]),pe(e,t,n))}finally{ns(1)}}const ga="3.5.43";let Zs;const Yr=typeof window<"u"&&window.trustedTypes;if(Yr)try{Zs=Yr.createPolicy("vue",{createHTML:e=>e})}catch{}const Ki=Zs?e=>Zs.createHTML(e):e=>e,ma="http://www.w3.org/2000/svg",_a="http://www.w3.org/1998/Math/MathML",ft=typeof document<"u"?document:null,Xr=ft&&ft.createElement("template"),va={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?ft.createElementNS(ma,e):t==="mathml"?ft.createElementNS(_a,e):n?ft.createElement(e,{is:n}):ft.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ft.createTextNode(e),createComment:e=>ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ft.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Xr.innerHTML=Ki(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=Xr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ya=Symbol("_vtc");function ba(e,t,n){const s=e[ya];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const os=Symbol("_vod"),Gi=Symbol("_vsh"),Ea={name:"show",beforeMount(e,{value:t},{transition:n}){e[os]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ln(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),ln(e,!0),s.enter(e)):s.leave(e,()=>{ln(e,!1)}):ln(e,t))},beforeUnmount(e,{value:t}){ln(e,t)}};function ln(e,t){e.style.display=t?e[os]:"none",e[Gi]=!t}const wa=Symbol(""),Sa=/(?:^|;)\s*display\s*:/;function xa(e,t,n){const s=e.style,r=ue(n);let o=!1;if(n&&!r){if(t)if(ue(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&dn(s,l,"")}else for(const i in t)n[i]==null&&dn(s,i,"");for(const i in n){i==="display"&&(o=!0);const l=n[i];l!=null?Aa(e,i,!ue(t)&&t?t[i]:void 0,l)||dn(s,i,l):dn(s,i,"")}}else if(r){if(t!==n){const i=s[wa];i&&(n+=";"+i),s.cssText=n,o=Sa.test(n)}}else t&&e.removeAttribute("style");os in e&&(e[os]=o?s.display:"",e[Gi]&&(s.display="none"))}const qn=/\s*!important$/;function dn(e,t,n){if(V(n))n.forEach(s=>dn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))qn.test(n)?e.setProperty(t,n.replace(qn,""),"important"):e.setProperty(t,n);else{const s=Ra(e,t);qn.test(n)?e.setProperty(Bt(s),n.replace(qn,""),"important"):e[s]=n}}const Zr=["Webkit","Moz","ms"],Ds={};function Ra(e,t){const n=Ds[t];if(n)return n;let s=Te(t);if(s!=="filter"&&s in e)return Ds[t]=s;s=us(s);for(let r=0;rLs||(Na.then(()=>Ls=0),Ls=Date.now());function Da(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(V(r)){const o=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{o.call(s),s._stopped=!0};const i=r.slice(),l=[s];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,La=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?ba(e,s,i):t==="style"?xa(e,n,s):is(t)?ls(t)||Oa(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ja(e,t,s,i))?(no(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&to(e,t,s,i,o,t!=="value")):e._isVueCE&&(Va(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ue(s)))?no(e,Te(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),to(e,t,s,i))};function ja(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&ro(t)&&U(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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return ro(t)&&ue(n)?!1:t in e}function Va(e,t){const n=e._def.props;if(!n)return!1;const s=Te(t);return Array.isArray(n)?n.some(r=>Te(r)===s):Object.keys(n).some(r=>Te(r)===s)}const en=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>$n(t,n):t};function Fa(e){e.target.composing=!0}function oo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const rt=Symbol("_assign"),zn=Symbol("_initialValue");function js(e,t,n){return t&&(e=e.trim()),n&&(e=fs(e)),e}const If={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e.parentNode&&(e.type==="text"?e[zn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[zn]=e.defaultValue.replace(/\r\n?/g,` -`))),e[rt]=en(r);const o=s||r.props&&r.props.type==="number";Pt(e,t?"change":"input",i=>{i.target.composing||e[rt](js(e.value,n,o))}),(n||o)&&Pt(e,"change",()=>{e.value=js(e.value,n,o)}),t||(Pt(e,"compositionstart",Fa),Pt(e,"compositionend",oo),Pt(e,"change",oo))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=t??"",o=e[zn];delete e[zn],o!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==o?e[rt](js(e.value,n,s)):e.value=r},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[rt]=en(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?fs(e.value):e.value,c=t??"";if(l===c)return;const f=e.getRootNode();(f instanceof Document||f instanceof ShadowRoot)&&f.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c)}},Tf={deep:!0,created(e,t,n){e[rt]=en(n),Pt(e,"change",()=>{const s=e._modelValue,r=Nn(e),o=e.checked,i=e[rt];if(V(s)){const l=ar(s,r),c=l!==-1;if(o&&!c)i(s.concat(r));else if(!o&&c){const f=[...s];f.splice(l,1),i(f)}}else if(_t(s)){const l=new Set(s);o?l.add(r):l.delete(r),i(l)}else i(Wi(e,o))})},mounted:io,beforeUpdate(e,t,n){e[rt]=en(n),io(e,t,n)}};function io(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(V(t))r=ar(t,s.props.value)>-1;else if(_t(t))r=t.has(s.props.value);else{if(t===n)return;r=vt(t,Wi(e,!0))}e.checked!==r&&(e.checked=r)}const Nf={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,Pt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,c=>c.selected).map(c=>n?fs(Nn(c)):Nn(c)),o=e.multiple,i=o?_t(e._modelValue)?new Set(r):r:r[0],l=e._pendingValue=[o,o?V(i)?r.slice():r:i];try{e[rt](i)}finally{ms(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[rt]=en(s)},mounted(e,{value:t}){lo(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[rt]=en(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!ka(t,n[1],n[0]))&&lo(e,t)}};function ka(e,t,n){if(!n||V(e))return vt(e,t);if(_t(e)){if(e.size!==t.length)return!1;for(const s of t)if(!e.has(s))return!1;return!0}return!1}function lo(e,t){const n=e.multiple,s=V(t);if(!(n&&!s&&!_t(t))){for(let r=0,o=e.options.length;rString(f)===String(l)):i.selected=ar(t,l)>-1}else i.selected=t.has(l);else if(vt(Nn(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Nn(e){return"_value"in e?e._value:e.value}function Wi(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ha=["ctrl","shift","alt","meta"],Ba={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)=>Ha.some(n=>e[`${n}Key`]&&!t.includes(n))},Mf=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...o)=>{for(let i=0;i{const t=qa().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Ka(s);if(!r)return;const o=t._component;!U(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,$a(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t});function $a(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ka(e){return ue(e)?document.querySelector(e):e}let Ji;const ws=e=>Ji=e,Qi=Symbol();function er(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var yn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(yn||(yn={}));function Ga(){const e=zo(!0),t=e.run(()=>Ie({}));let n=[],s=[];const r=mr({install(o){ws(r),r._a=o,o.provide(Qi,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return this._a?n.push(o):s.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const Yi=()=>{};function ao(e,t,n,s=Yi){e.add(t);const r=()=>{e.delete(t)&&s()};return!n&&$o()&&Tl(r),r}function Kt(e,...t){e.forEach(n=>{n(...t)})}const Wa=e=>e(),uo=Symbol(),Vs=Symbol();function tr(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];er(r)&&er(s)&&e.hasOwnProperty(n)&&!fe(s)&&!it(s)?e[n]=tr(r,s):e[n]=s}return e}const Ja=Symbol();function Qa(e){return!er(e)||!Object.prototype.hasOwnProperty.call(e,Ja)}const{assign:Rt}=Object;function Ya(e){return!!(fe(e)&&e.effect)}function Xa(e,t,n,s){const{state:r,actions:o,getters:i}=t,l=n.state.value[e];let c;function f(){l||(n.state.value[e]=r?r():{});const a=Xl(n.state.value[e]);return Rt(a,o,Object.keys(i||{}).reduce((u,p)=>(u[p]=mr(J(()=>{ws(n);const g=n._s.get(e);return i[p].call(g,g)})),u),{}))}return c=Xi(e,f,t,n,s,!0),c}function Xi(e,t,n={},s,r,o){let i;const l=Rt({actions:{}},n),c={deep:!0};let f,a,u=new Set,p=new Set,g;const S=s.state.value[e];!o&&!S&&(s.state.value[e]={});let w;function D(z){let $;f=a=!1,typeof z=="function"?(z(s.state.value[e]),$={type:yn.patchFunction,storeId:e,events:g}):(tr(s.state.value[e],z),$={type:yn.patchObject,payload:z,storeId:e,events:g});const le=w=Symbol();ms().then(()=>{w===le&&(f=!0)}),a=!0,Kt(u,$,s.state.value[e])}const P=o?function(){const{state:$}=n,le=$?$():{};this.$patch(ve=>{Rt(ve,le)})}:Yi;function R(){i.stop(),u.clear(),p.clear(),s._s.delete(e)}const M=(z,$="")=>{if(uo in z)return z[Vs]=$,z;const le=function(){ws(s);const ve=Array.from(arguments),k=new Set,de=new Set;function ye(B){k.add(B)}function ze(B){de.add(B)}Kt(p,{args:ve,name:le[Vs],store:q,after:ye,onError:ze});let re;try{re=z.apply(this&&this.$id===e?this:q,ve)}catch(B){throw Kt(de,B),B}return re instanceof Promise?re.then(B=>(Kt(k,B),B)).catch(B=>(Kt(de,B),Promise.reject(B))):(Kt(k,re),re)};return le[uo]=!0,le[Vs]=$,le},T={_p:s,$id:e,$onAction:ao.bind(null,p),$patch:D,$reset:P,$subscribe(z,$={}){const le=ao(u,z,$.detached,()=>ve()),ve=i.run(()=>Yt(()=>s.state.value[e],k=>{($.flush==="sync"?a:f)&&z({storeId:e,type:yn.direct,events:g},k)},Rt({},c,$)));return le},$dispose:R},q=Ln(T);s._s.set(e,q);const Y=(s._a&&s._a.runWithContext||Wa)(()=>s._e.run(()=>(i=zo()).run(()=>t({action:M}))));for(const z in Y){const $=Y[z];if(fe($)&&!Ya($)||it($))o||(S&&Qa($)&&(fe($)?$.value=S[z]:tr($,S[z])),s.state.value[e][z]=$);else if(typeof $=="function"){const le=M($,z);Y[z]=le,l.actions[z]=$}}return Rt(q,Y),Rt(Q(q),Y),Object.defineProperty(q,"$state",{get:()=>s.state.value[e],set:z=>{D($=>{Rt($,z)})}}),s._p.forEach(z=>{Rt(q,i.run(()=>z({store:q,app:s._a,pinia:s,options:l})))}),S&&o&&n.hydrate&&n.hydrate(q.$state,S),f=!0,a=!0,q}function kn(e,t,n){let s;const r=typeof t=="function";s=r?n:t;function o(i,l){const c=ac();return i=i||(c?Ue(Qi,null):null),i&&ws(i),i=Ji,i._s.has(e)||(r?Xi(e,t,s,i):Xa(e,s,i)),i._s.get(e)}return o.$id=e,o}const Jt=typeof document<"u";function Zi(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Za(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Zi(e.default)}const X=Object.assign;function Fs(e,t){const n={};for(const s in t){const r=t[s];n[s]=We(r)?r.map(e):e(r)}return n}const bn=()=>{},We=Array.isArray;function fo(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const el=/#/g,eu=/&/g,tu=/\//g,nu=/=/g,su=/\?/g,tl=/\+/g,ru=/%5B/g,ou=/%5D/g,nl=/%5E/g,iu=/%60/g,sl=/%7B/g,lu=/%7C/g,rl=/%7D/g,cu=/%20/g;function Sr(e){return e==null?"":encodeURI(""+e).replace(lu,"|").replace(ru,"[").replace(ou,"]")}function au(e){return Sr(e).replace(sl,"{").replace(rl,"}").replace(nl,"^")}function nr(e){return Sr(e).replace(tl,"%2B").replace(cu,"+").replace(el,"%23").replace(eu,"%26").replace(iu,"`").replace(sl,"{").replace(rl,"}").replace(nl,"^")}function uu(e){return nr(e).replace(nu,"%3D")}function fu(e){return Sr(e).replace(el,"%23").replace(su,"%3F")}function du(e){return fu(e).replace(tu,"%2F")}function Mn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const hu=/\/$/,pu=e=>e.replace(hu,"");function ks(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return c=l>=0&&c>l?-1:c,c>=0&&(s=t.slice(0,c),o=t.slice(c,l>0?l:t.length),r=e(o.slice(1))),l>=0&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=vu(s??t,n),{fullPath:s+o+i,path:s,query:r,hash:Mn(i)}}function gu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ho(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function mu(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&tn(t.matched[s],n.matched[r])&&ol(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function tn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ol(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!_u(e[n],t[n]))return!1;return!0}function _u(e,t){return We(e)?po(e,t):We(t)?po(t,e):e?.valueOf()===t?.valueOf()}function po(e,t){return We(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function vu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const St={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let sr=(function(e){return e.pop="pop",e.push="push",e})({}),Hs=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function yu(e){if(!e)if(Jt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),pu(e)}const bu=/^[^#]+#/;function Eu(e,t){return e.replace(bu,"#")+t}function wu(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Ss=()=>({left:window.scrollX,top:window.scrollY});function Su(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=wu(r,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 go(e,t){return(history.state?history.state.position-t:-1)+e}const rr=new Map;function xu(e,t){rr.set(e,t)}function Ru(e){const t=rr.get(e);return rr.delete(e),t}function Au(e){return typeof e=="string"||e&&typeof e=="object"}function il(e){return typeof e=="string"||typeof e=="symbol"}let ae=(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 ll=Symbol("");ae.MATCHER_NOT_FOUND+"",ae.NAVIGATION_GUARD_REDIRECT+"",ae.NAVIGATION_ABORTED+"",ae.NAVIGATION_CANCELLED+"",ae.NAVIGATION_DUPLICATED+"";function nn(e,t){return X(new Error,{type:e,[ll]:!0},t)}function ut(e,t){return e instanceof Error&&ll in e&&(t==null||!!(e.type&t))}const Cu=["params","query","hash"];function Ou(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Cu)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Pu(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;sr&&nr(r)):[s&&nr(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Iu(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=We(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Tu=Symbol(""),_o=Symbol(""),xs=Symbol(""),xr=Symbol(""),or=Symbol("");function cn(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ot(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const f=p=>{p===!1?c(nn(ae.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?c(p):Au(p)?c(nn(ae.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(i&&s.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),l())},a=o(()=>e.call(s&&s.instances[r],t,n,f));let u=Promise.resolve(a);e.length<3&&(u=u.then(f)),u.catch(p=>c(p))})}function Bs(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Zi(c)){const f=(c.__vccOpts||c)[t];f&&o.push(Ot(f,n,s,i,l,r))}else{let f=c();o.push(()=>f.then(a=>{if(!a)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const u=Za(a)?a.default:a;i.mods[l]=a,i.components[l]=u;const p=(u.__vccOpts||u)[t];return p&&Ot(p,n,s,i,l,r)()}))}}return o}function Nu(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;itn(f,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(f=>tn(f,c))||r.push(c))}return[n,s,r]}let Mu=()=>location.protocol+"//"+location.host;function cl(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let i=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(i);return l[0]!=="/"&&(l="/"+l),ho(l,"")}return ho(n,e)+s+r}function Du(e,t,n,s){let r=[],o=[],i=null;const l=({state:p})=>{const g=cl(e,location),S=n.value,w=t.value;let D=0;if(p){if(n.value=g,t.value=p,i&&i===S){i=null;return}D=w?p.position-w.position:0}else s(g);r.forEach(P=>{P(n.value,S,{delta:D,type:sr.pop,direction:D?D>0?Hs.forward:Hs.back:Hs.unknown})})};function c(){i=n.value}function f(p){r.push(p);const g=()=>{const S=r.indexOf(p);S>-1&&r.splice(S,1)};return o.push(g),g}function a(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(X({},p.state,{scroll:Ss()}),"")}}function u(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",a),document.removeEventListener("visibilitychange",a)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",a),document.addEventListener("visibilitychange",a),{pauseListeners:c,listen:f,destroy:u}}function vo(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Ss():null}}function Lu(e){const{history:t,location:n}=window,s={value:cl(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,f,a){const u=e.indexOf("#"),p=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+c:Mu()+e+c;try{t[a?"replaceState":"pushState"](f,"",p),r.value=f}catch(g){console.error(g),n[a?"replace":"assign"](p)}}function i(c,f){o(c,X({},t.state,vo(r.value.back,c,r.value.forward,!0),f,{position:r.value.position}),!0),s.value=c}function l(c,f){const a=X({},r.value,t.state,{forward:c,scroll:Ss()});o(a.current,a,!0),o(c,X({},vo(s.value,c,null),{position:a.position+1},f),!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function ju(e){e=yu(e);const t=Lu(e),n=Du(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=X({location:"",base:e,go:s,createHref:Eu.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Vt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var ge=(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})(ge||{});const Vu={type:Vt.Static,value:""},Fu=/[a-zA-Z0-9_]/;function ku(e){if(!e)return[[]];if(e==="/")return[[Vu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${f}": ${g}`)}let n=ge.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,f="",a="";function u(){f&&(n===ge.Static?o.push({type:Vt.Static,value:f}):n===ge.Param||n===ge.ParamRegExp||n===ge.ParamRegExpEnd?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Vt.Param,value:f,regexp:a,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),f="")}function p(){f+=c}for(;lt.length?t.length===1&&t[0]===Oe.Static+Oe.Segment?1:-1:0}function al(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const zu={strict:!1,end:!0,sensitive:!1};function $u(e,t,n){const s=Uu(ku(e.path),n),r=X(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Ku(e,t){const n=[],s=new Map;t=fo(zu,t);function r(u){return s.get(u)}function o(u,p,g){const S=!g,w=wo(u);w.aliasOf=g&&g.record;const D=fo(t,u),P=[w];if("alias"in u){const T=typeof u.alias=="string"?[u.alias]:u.alias;for(const q of T)P.push(wo(X({},w,{components:g?g.record.components:w.components,path:q,aliasOf:g?g.record:w})))}let R,M;for(const T of P){const{path:q}=T;if(p&&q[0]!=="/"){const ie=p.record.path,Y=ie[ie.length-1]==="/"?"":"/";T.path=p.record.path+(q&&Y+q)}if(R=$u(T,p,D),g?g.alias.push(R):(M=M||R,M!==R&&M.alias.push(R),S&&u.name&&!So(R)&&i(u.name)),ul(R)&&c(R),w.children){const ie=w.children;for(let Y=0;Y{i(M)}:bn}function i(u){if(il(u)){const p=s.get(u);p&&(s.delete(u),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(u);p>-1&&(n.splice(p,1),u.record.name&&s.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function l(){return n}function c(u){const p=Ju(u,n);n.splice(p,0,u),u.record.name&&!So(u)&&s.set(u.record.name,u)}function f(u,p){let g,S={},w,D;if("name"in u&&u.name){if(g=s.get(u.name),!g)throw nn(ae.MATCHER_NOT_FOUND,{location:u});D=g.record.name,S=X(Eo(p.params,g.keys.filter(M=>!M.optional).concat(g.parent?g.parent.keys.filter(M=>M.optional):[]).map(M=>M.name)),u.params&&Eo(u.params,g.keys.map(M=>M.name))),w=g.stringify(S)}else if(u.path!=null)w=u.path,g=n.find(M=>M.re.test(w)),g&&(S=g.parse(w),D=g.record.name);else{if(g=p.name?s.get(p.name):n.find(M=>M.re.test(p.path)),!g)throw nn(ae.MATCHER_NOT_FOUND,{location:u,currentLocation:p});D=g.record.name,S=X({},p.params,u.params),w=g.stringify(S)}const P=[];let R=g;for(;R;)P.unshift(R.record),R=R.parent;return{name:D,path:w,params:S,matched:P,meta:Wu(P)}}e.forEach(u=>o(u));function a(){n.length=0,s.clear()}return{addRoute:o,resolve:f,removeRoute:i,clearRoutes:a,getRoutes:l,getRecordMatcher:r}}function Eo(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function wo(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Gu(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 Gu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function So(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Wu(e){return e.reduce((t,n)=>X(t,n.meta),{})}function Ju(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;al(e,t[o])<0?s=o:n=o+1}const r=Qu(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function Qu(e){let t=e;for(;t=t.parent;)if(ul(t)&&al(e,t)===0)return t}function ul({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function xo(e){const t=Ue(xs),n=Ue(xr),s=J(()=>{const c=$e(e.to);return t.resolve(c)}),r=J(()=>{const{matched:c}=s.value,{length:f}=c,a=c[f-1],u=n.matched;if(!a||!u.length)return-1;const p=u.findIndex(tn.bind(null,a));if(p>-1)return p;const g=Ro(c[f-2]);return f>1&&Ro(a)===g&&u[u.length-1].path!==g?u.findIndex(tn.bind(null,c[f-2])):p}),o=J(()=>r.value>-1&&tf(n.params,s.value.params)),i=J(()=>r.value>-1&&r.value===n.matched.length-1&&ol(n.params,s.value.params));function l(c={}){if(ef(c)){const f=t[$e(e.replace)?"replace":"push"]($e(e.to)).catch(bn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:s,href:J(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}function Yu(e){return e.length===1?e[0]:e}const Xu=Vn({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:xo,setup(e,{slots:t}){const n=Ln(xo(e)),{options:s}=Ue(xs),r=J(()=>({[Ao(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Ao(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Yu(t.default(n));return e.custom?o:$i("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),Zu=Xu;function ef(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 tf(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!We(r)||r.length!==s.length||s.some((o,i)=>o.valueOf()!==r[i].valueOf()))return!1}return!0}function Ro(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ao=(e,t,n)=>e??t??n,nf=Vn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ue(or),r=J(()=>e.route||s.value),o=Ue(_o,0),i=J(()=>{let f=$e(o);const{matched:a}=r.value;let u;for(;(u=a[f])&&!u.components;)f++;return f}),l=J(()=>r.value.matched[i.value]);Kn(_o,J(()=>i.value+1)),Kn(Tu,l),Kn(or,r);const c=Ie();return Yt(()=>[c.value,l.value,e.name],([f,a,u],[p,g,S])=>{a&&(a.instances[u]=f,g&&g!==a&&f&&f===p&&(a.leaveGuards.size||(a.leaveGuards=g.leaveGuards),a.updateGuards.size||(a.updateGuards=g.updateGuards))),f&&a&&(!g||!tn(a,g)||!p)&&(a.enterCallbacks[u]||[]).forEach(w=>w(f))},{flush:"post"}),()=>{const f=r.value,a=e.name,u=l.value,p=u&&u.components[a];if(!p)return Co(n.default,{Component:p,route:f});const g=u.props[a],S=g?g===!0?f.params:typeof g=="function"?g(f):g:null,D=$i(p,X({},S,t,{onVnodeUnmounted:P=>{P.component.isUnmounted&&(u.instances[a]=null)},ref:c}));return Co(n.default,{Component:D,route:f})||D}}});function Co(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const sf=nf;function rf(e){const t=Ku(e.routes,e),n=e.parseQuery||Pu,s=e.stringifyQuery||mo,r=e.history,o=cn(),i=cn(),l=cn(),c=li(St);let f=St;Jt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=Fs.bind(null,y=>""+y),u=Fs.bind(null,du),p=Fs.bind(null,Mn);function g(y,N){let O,L;return il(y)?(O=t.getRecordMatcher(y),L=N):L=y,t.addRoute(L,O)}function S(y){const N=t.getRecordMatcher(y);N&&t.removeRoute(N)}function w(){return t.getRoutes().map(y=>y.record)}function D(y){return!!t.getRecordMatcher(y)}function P(y,N){if(N=X({},N||c.value),typeof y=="string"){const m=ks(n,y,N.path),v=t.resolve({path:m.path},N),b=r.createHref(m.fullPath);return X(m,v,{params:p(v.params),hash:Mn(m.hash),redirectedFrom:void 0,href:b})}let O;if(y.path!=null)O=X({},y,{path:ks(n,y.path,N.path).path});else{const m=X({},y.params);for(const v in m)m[v]==null&&delete m[v];O=X({},y,{params:u(m)}),N.params=u(N.params)}const L=t.resolve(O,N),G=y.hash||"";L.params=a(p(L.params));const d=gu(s,X({},y,{hash:au(G),path:L.path})),h=r.createHref(d);return X({fullPath:d,hash:G,query:s===mo?Iu(y.query):y.query||{}},L,{redirectedFrom:void 0,href:h})}function R(y){return typeof y=="string"?ks(n,y,c.value.path):X({},y)}function M(y,N){if(f!==y)return nn(ae.NAVIGATION_CANCELLED,{from:N,to:y})}function T(y){return Y(y)}function q(y){return T(X(R(y),{replace:!0}))}function ie(y,N){const O=y.matched[y.matched.length-1];if(O&&O.redirect){const{redirect:L}=O;let G=typeof L=="function"?L(y,N):L;return typeof G=="string"&&(G=G.includes("?")||G.includes("#")?G=R(G):{path:G},G.params={}),X({query:y.query,hash:y.hash,params:G.path!=null?{}:y.params},G)}}function Y(y,N){const O=f=P(y),L=c.value,G=y.state,d=y.force,h=y.replace===!0,m=ie(O,L);if(m)return Y(X(R(m),{state:typeof m=="object"?X({},G,m.state):G,force:d,replace:h}),N||O);const v=O;v.redirectedFrom=N;let b;return!d&&mu(s,L,O)&&(b=nn(ae.NAVIGATION_DUPLICATED,{to:v,from:L}),Je(L,L,!0,!1)),(b?Promise.resolve(b):le(v,L)).catch(_=>ut(_)?ut(_,ae.NAVIGATION_GUARD_REDIRECT)?_:wt(_):K(_,v,L)).then(_=>{if(_){if(ut(_,ae.NAVIGATION_GUARD_REDIRECT))return Y(X({replace:h},R(_.to),{state:typeof _.to=="object"?X({},G,_.to.state):G,force:d}),N||v)}else _=k(v,L,!0,h,G);return ve(v,L,_),_})}function z(y,N){const O=M(y,N);return O?Promise.reject(O):Promise.resolve()}function $(y){const N=qt.values().next().value;return N&&typeof N.runWithContext=="function"?N.runWithContext(y):y()}function le(y,N){let O;const[L,G,d]=Nu(y,N);O=Bs(L.reverse(),"beforeRouteLeave",y,N);for(const m of L)m.leaveGuards.forEach(v=>{O.push(Ot(v,y,N))});const h=z.bind(null,y,N);return O.push(h),Be(O).then(()=>{O=[];for(const m of o.list())O.push(Ot(m,y,N));return O.push(h),Be(O)}).then(()=>{O=Bs(G,"beforeRouteUpdate",y,N);for(const m of G)m.updateGuards.forEach(v=>{O.push(Ot(v,y,N))});return O.push(h),Be(O)}).then(()=>{O=[];for(const m of d)if(m.beforeEnter)if(We(m.beforeEnter))for(const v of m.beforeEnter)O.push(Ot(v,y,N));else O.push(Ot(m.beforeEnter,y,N));return O.push(h),Be(O)}).then(()=>(y.matched.forEach(m=>m.enterCallbacks={}),O=Bs(d,"beforeRouteEnter",y,N,$),O.push(h),Be(O))).then(()=>{O=[];for(const m of i.list())O.push(Ot(m,y,N));return O.push(h),Be(O)}).catch(m=>ut(m,ae.NAVIGATION_CANCELLED)?m:Promise.reject(m))}function ve(y,N,O){l.list().forEach(L=>$(()=>L(y,N,O)))}function k(y,N,O,L,G){const d=M(y,N);if(d)return d;const h=N===St,m=Jt?history.state:{};O&&(L||h?r.replace(y.fullPath,X({scroll:h&&m&&m.scroll},G)):r.push(y.fullPath,G)),c.value=y,Je(y,N,O,h),wt()}let de;function ye(){de||(de=r.listen((y,N,O)=>{if(!Nt.listening)return;const L=P(y),G=ie(L,Nt.currentRoute.value);if(G){Y(X(G,{replace:!0,force:!0}),L).catch(bn);return}f=L;const d=c.value;Jt&&xu(go(d.fullPath,O.delta),Ss()),le(L,d).catch(h=>ut(h,ae.NAVIGATION_ABORTED|ae.NAVIGATION_CANCELLED)?h:ut(h,ae.NAVIGATION_GUARD_REDIRECT)?(Y(X(R(h.to),{force:!0}),L).then(m=>{ut(m,ae.NAVIGATION_ABORTED|ae.NAVIGATION_DUPLICATED)&&!O.delta&&O.type===sr.pop&&r.go(-1,!1)}).catch(bn),Promise.reject()):(O.delta&&r.go(-O.delta,!1),K(h,L,d))).then(h=>{h=h||k(L,d,!1),h&&(O.delta&&!ut(h,ae.NAVIGATION_CANCELLED)?r.go(-O.delta,!1):O.type===sr.pop&&ut(h,ae.NAVIGATION_ABORTED|ae.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),ve(L,d,h)}).catch(bn)}))}let ze=cn(),re=cn(),B;function K(y,N,O){wt(y);const L=re.list();return L.length?L.forEach(G=>G(y,N,O)):console.error(y),Promise.reject(y)}function Le(){return B&&c.value!==St?Promise.resolve():new Promise((y,N)=>{ze.add([y,N])})}function wt(y){return B||(B=!y,ye(),ze.list().forEach(([N,O])=>y?O(y):N()),ze.reset()),y}function Je(y,N,O,L){const{scrollBehavior:G}=e;if(!Jt||!G)return Promise.resolve();const d=!O&&Ru(go(y.fullPath,0))||(L||!O)&&history.state&&history.state.scroll||null;return ms().then(()=>G(y,N,d)).then(h=>h&&Su(h)).catch(h=>K(h,y,N))}const Re=y=>r.go(y);let Ut;const qt=new Set,Nt={currentRoute:c,listening:!0,addRoute:g,removeRoute:S,clearRoutes:t.clearRoutes,hasRoute:D,getRoutes:w,resolve:P,options:e,push:T,replace:q,go:Re,back:()=>Re(-1),forward:()=>Re(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:re.add,isReady:Le,install(y){y.component("RouterLink",Zu),y.component("RouterView",sf),y.config.globalProperties.$router=Nt,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>$e(c)}),Jt&&!Ut&&c.value===St&&(Ut=!0,T(r.location).catch(L=>{}));const N={};for(const L in St)Object.defineProperty(N,L,{get:()=>c.value[L],enumerable:!0});y.provide(xs,Nt),y.provide(xr,ii(N)),y.provide(or,c);const O=y.unmount;qt.add(y),y.unmount=function(){qt.delete(y),qt.size<1&&(f=St,de&&de(),de=null,c.value=St,Ut=!1,B=!1),O()}}};function Be(y){return y.reduce((N,O)=>N.then(()=>$(O)),Promise.resolve())}return Nt}function Df(){return Ue(xs)}function fl(e){return Ue(xr)}const of={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},lf=["d"],Oo=Vn({__name:"Icon",props:{name:{}},setup(e){const t=e,n={home:"M3 11l9-8 9 8M5 10v10h5v-6h4v6h5V10",calendar:"M4 6h16v14H4zM4 10h16M8 3v5M16 3v5",book:"M5 4h10a3 3 0 013 3v13H8a3 3 0 01-3-3zM5 17a3 3 0 013-3h10",quiz:"M12 21a9 9 0 100-18 9 9 0 000 18zM9.5 9.5a2.5 2.5 0 114 2c-.9.6-1.5 1-1.5 2M12 17h.01",more:"M5 12h.01M12 12h.01M19 12h.01",flag:"M5 21V4M5 4h11l-2 4 2 4H5",grad:"M2 9l10-5 10 5-10 5zM6 11.5V16c0 1.5 3 3 6 3s6-1.5 6-3v-4.5",file:"M7 3h7l5 5v13H7zM14 3v5h5M10 13h6M10 17h6",user:"M12 12a4 4 0 100-8 4 4 0 000 8zM4 21c0-4 4-6 8-6s8 2 8 6",out:"M10 4H5v16h5M15 8l4 4-4 4M19 12H9",chevron:"M9 6l6 6-6 6"};return(s,r)=>(mt(),Gn("svg",of,[Ve("path",{d:n[t.name]??""},null,8,lf)]))}});class Jn extends Error{constructor(n,s,r={}){super(s);zt(this,"status");zt(this,"errors");this.name="ApiError",this.status=n,this.errors=r}}const Us="bm.token";class cf{constructor(t,n){zt(this,"local");zt(this,"session");zt(this,"memory",null);this.local=t,this.session=n}read(t){try{return t?.getItem(Us)??null}catch{return null}}get(){return this.read(this.local)??this.read(this.session)??this.memory}get remembered(){return this.read(this.local)!==null}set(t,n){this.clear();try{(n?this.local:this.session)?.setItem(Us,t)}catch{}this.get()===null&&(this.memory=t)}replace(t){this.set(t,this.remembered)}clear(){this.memory=null;for(const t of[this.local,this.session])try{t?.removeItem(Us)}catch{}}}function af(e){const t=e.fetch??((...u)=>fetch(...u)),{tokens:n}=e;let s=null;function r(u,p){if(!p)return u;const g=new URLSearchParams;for(const[w,D]of Object.entries(p))D!=null&&D!==""&&g.set(w,String(D));const S=g.toString();return S?`${u}?${S}`:u}async function o(u,p){const g={Accept:"application/json"},S=n.get();p.auth!==!1&&S&&(g.Authorization=`Bearer ${S}`);let w;return p.body!==void 0&&(g["Content-Type"]="application/json",w=JSON.stringify(p.body)),t(r(u,p.query),{method:p.method??"GET",headers:g,body:w})}function i(){return s||(s=(async()=>{try{const u=await o("/_user/api/v1/refresh",{method:"POST"});if(!u.ok)return!1;const p=await u.json(),g=p.token??p.data?.token;return g?(n.replace(g),!0):!1}catch{return!1}finally{queueMicrotask(()=>{s=null})}})()),s}async function l(u){const p=await u.text();if(!p)return null;try{return JSON.parse(p)}catch{return null}}function c(u,p){const g=p??{},S=typeof g.error=="string"&&g.error||typeof g.message=="string"&&g.message||(u.status>=500?"Błąd serwera. Spróbuj ponownie za chwilę.":`Błąd ${u.status}`);return new Jn(u.status,S,g.errors??{})}async function f(u,p={}){let g;const S=n.get();try{g=await o(u,p)}catch{throw new Jn(0,"Brak połączenia z serwerem.")}if(g.status===401&&p.auth!==!1&&S){const D=n.get();if(D!==null&&D!==S?!0:await i())try{g=await o(u,p)}catch{throw new Jn(0,"Brak połączenia z serwerem.")}g.status===401&&(n.clear(),e.onUnauthorized?.())}const w=await l(g);if(!g.ok)throw c(g,w);return w}async function a(u,p={}){const g=await f(u,p);return g&&typeof g=="object"&&"data"in g?g.data:g}return{request:a,raw:f}}function Po(e){try{return e()}catch{return null}}const At=new cf(Po(()=>window.localStorage),Po(()=>window.sessionStorage));let dl=()=>{};function uf(e){dl=e}const ce=af({tokens:At,onUnauthorized:()=>dl()}),xt="/_user/api/v1",an={login:e=>ce.request(`${xt}/login`,{method:"POST",body:e,auth:!1}),register:e=>ce.request(`${xt}/register`,{method:"POST",body:e,auth:!1}),fetch:()=>ce.request(`${xt}/fetch`),logout:()=>ce.request(`${xt}/logout`,{method:"POST"}),forgotPassword:e=>ce.request(`${xt}/forgot-password`,{method:"POST",body:{email:e},auth:!1}),resetPassword:e=>ce.request(`${xt}/reset-password`,{method:"POST",body:e,auth:!1}),update:e=>ce.request(`${xt}/update`,{method:"POST",body:e}),changePassword:e=>ce.request(`${xt}/change-password`,{method:"POST",body:e})},ff="modulepreload",df=function(e){return"/"+e},Io={},Ee=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){let c=function(f){return Promise.all(f.map(a=>Promise.resolve(a).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=i?.nonce||i?.getAttribute("nonce");r=c(n.map(f=>{if(f=df(f),f in Io)return;Io[f]=!0;const a=f.endsWith(".css"),u=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${u}`))return;const p=document.createElement("link");if(p.rel=a?"stylesheet":ff,a||(p.as="script"),p.crossOrigin="",p.href=f,l&&p.setAttribute("nonce",l),document.head.appendChild(p),a)return new Promise((g,S)=>{p.addEventListener("load",g),p.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return r.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},Ft=rf({history:ju("/"),scrollBehavior:(e,t,n)=>n??(e.hash?{el:e.hash,top:12}:e.path===t.path?void 0:{top:0}),routes:[{path:"/logowanie",name:"login",component:()=>Ee(()=>import("./LoginView-CV0vWG8v.js"),__vite__mapDeps([0,1])),meta:{public:!0,guest:!0,title:"Logowanie"}},{path:"/rejestracja",name:"register",component:()=>Ee(()=>import("./RegisterView-D0r589HT.js"),__vite__mapDeps([2,1])),meta:{public:!0,guest:!0,title:"Rejestracja"}},{path:"/przypomnij-haslo",name:"forgot",component:()=>Ee(()=>import("./ForgotView-Cs41d0Vc.js"),__vite__mapDeps([3,1])),meta:{public:!0,title:"Przypomnienie hasła"}},{path:"/reset-password",alias:"/reset-hasla",name:"reset",component:()=>Ee(()=>import("./ResetView-BQnpRsQD.js"),__vite__mapDeps([4,1])),meta:{public:!0,title:"Nowe hasło"}},{path:"/",name:"dashboard",component:()=>Ee(()=>import("./DashboardView-Bbpchoxb.js"),__vite__mapDeps([5,6,7,8,9])),meta:{title:"Pulpit"}},{path:"/plan",name:"schedule",component:()=>Ee(()=>import("./ScheduleView-DRXKDOhJ.js"),__vite__mapDeps([10,6,7,8,9])),meta:{title:"Plan zajęć"}},{path:"/terminarz",name:"deadlines",component:()=>Ee(()=>import("./DeadlinesView-BlxBIb-a.js"),__vite__mapDeps([11,6,7,8,9])),meta:{title:"Terminarz"}},{path:"/przedmioty",name:"courses",component:()=>Ee(()=>import("./CoursesView-BmmjRNCQ.js"),__vite__mapDeps([12,6,7,8,9])),meta:{title:"Przedmioty"}},{path:"/przedmioty/:id(\\d+)",name:"course",component:()=>Ee(()=>import("./CourseView-CS3LyBRp.js"),__vite__mapDeps([13,6,7,14,9])),props:!0,meta:{title:"Przedmiot"}},{path:"/lektury",name:"readings",component:()=>Ee(()=>import("./ReadingsView-dREpHSZ_.js"),__vite__mapDeps([15,6,7,8,9,14])),meta:{title:"Lektury"}},{path:"/materialy",name:"materials",component:()=>Ee(()=>import("./MaterialsView-DLRl9uuu.js"),__vite__mapDeps([16,6,9])),meta:{title:"Materiały"}},{path:"/materialy/:id(\\d+)",name:"material",component:()=>Ee(()=>import("./MaterialView-C-GKgARj.js"),__vite__mapDeps([17,6,7,9])),props:!0,meta:{title:"Materiał"}},{path:"/quiz",redirect:"/quizy/powtorka-1-zjazd"},{path:"/quizy",name:"quizzes",component:()=>Ee(()=>import("./QuizzesView-BOuyfpUe.js"),__vite__mapDeps([18,6,7,19,9])),meta:{title:"Quizy"}},{path:"/quizy/:slug",name:"quiz",component:()=>Ee(()=>import("./QuizView-CF18K_CT.js"),__vite__mapDeps([20,6,7,19,9])),props:!0,meta:{title:"Quiz"}},{path:"/wiecej",name:"more",component:()=>Ee(()=>import("./MoreView-DCK1_hNZ.js"),__vite__mapDeps([21,6])),meta:{title:"Więcej"}},{path:"/profil",name:"profile",component:()=>Ee(()=>import("./ProfileView-CpeFz2WO.js"),__vite__mapDeps([22,6,1])),meta:{title:"Profil"}},{path:"/:rest(.*)*",name:"notfound",component:()=>Ee(()=>import("./NotFoundView-ymGOdYTB.js"),[]),meta:{title:"Nie znaleziono"}}]});Ft.beforeEach(async e=>{const t=ml();return t.ready||await t.restore(),!e.meta.public&&!t.loggedIn?{name:"login",query:e.fullPath==="/"?{}:{redirect:e.fullPath}}:e.meta.guest&&t.loggedIn?{name:"dashboard"}:!0});Ft.afterEach(e=>{const t=e.meta.title;document.title=t?`${t} · BM II°`:"BM II°"});const Ae="/_bm/api/v1",Me={dashboard:()=>ce.request(`${Ae}/dashboard`),courses:e=>ce.request(`${Ae}/courses`,{query:{semester:e}}),course:e=>ce.request(`${Ae}/courses/${e}`),schedule:(e,t)=>ce.request(`${Ae}/schedule`,{query:{from:e,to:t}}),meetings:()=>ce.request(`${Ae}/meetings`),deadlines:(e,t)=>ce.request(`${Ae}/deadlines`,{query:{from:e,to:t}}),readings:e=>ce.request(`${Ae}/readings`,{query:{course:e}}),markRead:e=>ce.request(`${Ae}/readings/${e}/progress`,{method:"PUT"}),unmarkRead:e=>ce.request(`${Ae}/readings/${e}/progress`,{method:"DELETE"}),materials:(e={})=>ce.raw(`${Ae}/materials`,{query:{...e}}),material:e=>ce.request(`${Ae}/materials/${e}`),calendarFeed:()=>ce.request(`${Ae}/calendar-feed`),saveCalendarFeed:e=>ce.request(`${Ae}/calendar-feed`,{method:"PUT",body:e}),rotateCalendarFeed:()=>ce.request(`${Ae}/calendar-feed/rotate`,{method:"POST"}),deleteCalendarFeed:()=>ce.request(`${Ae}/calendar-feed`,{method:"DELETE"})},hf={"historia-koncepcje":"Historia / koncepcje wojny i pokoju",specjalnosc:"Specjalność"};function Lf(e){return hf[e]??e}function Rr(e){const t=new Map;for(const n of e){if(!n.elective_group)continue;const s=t.get(n.elective_group)??[];s.includes(n.name)||s.push(n.name),t.set(n.elective_group,s)}return[...t].map(([n,s])=>({code:n,options:s}))}function pf(e,t){const n={};for(const s of Rr(e)){const r=t[s.code];r&&s.options.includes(r)&&(n[s.code]=r)}return n}function gf(e,t){if(!e.elective_group)return!1;const n=t[e.elective_group];return n!==void 0&&n!==e.name}function hl(e,t,n=!1){const s=new Set;if(n)return s;for(const r of e)gf(r,t)&&s.add(r.id);return s}function qs(e,t){return t.size===0?e:e.filter(n=>n.course_id===null||!t.has(n.course_id))}function mf(e,t){return Rr(e).filter(n=>n.options.length>1&&!t[n.code])}function jf(e,t){return!!e.elective_group&&!t[e.elective_group]}const To="bm.showAllElectives";function No(e){try{return localStorage.getItem(e)}catch{return null}}function Mo(e,t){try{localStorage.setItem(e,t)}catch{}}const En=kn("electives",()=>{const e=Ie({}),t=Ie(No(To)==="1"),n=Ie(null),s=()=>n.value===null?null:`bm.electives.${n.value}`,r=()=>{const u=s();u&&Mo(u,JSON.stringify(e.value))};function o(u){n.value=u;try{const p=JSON.parse(No(`bm.electives.${u}`)??"{}");e.value=p&&typeof p=="object"?p:{}}catch{e.value={}}}const i=J(()=>Object.keys(e.value).length>0);function l(u,p){const g={...e.value};p===null?delete g[u]:g[u]=p,e.value=g,r()}function c(u){t.value=u,Mo(To,u?"1":"0")}function f(u){const p=pf(u,e.value);Object.keys(p).length!==Object.keys(e.value).length&&(e.value=p,r())}function a(){e.value={},n.value=null}return{choices:e,showAll:t,userId:n,hasChoices:i,load:o,choose:l,setShowAll:c,prune:f,reset:a}}),Ar=kn("toast",()=>{const e=Ie("");let t;function n(r,o=4e3){e.value=r,clearTimeout(t),t=setTimeout(()=>e.value="",o)}function s(){e.value=""}return{message:e,show:n,clear:s}});function wn(e){return e instanceof Jn?e.message:"Nie udało się wczytać danych."}function Gt(e){const t=li(null),n=Ie(!1),s=Ie("");let r=null;function o(l=!1){return r||(t.value!==null&&!l?Promise.resolve():(n.value=!0,s.value="",r=e().then(c=>{t.value=c}).catch(c=>{s.value=wn(c)}).finally(()=>{n.value=!1,r=null}),r))}function i(){t.value=null,s.value="",n.value=!1,r=null}return{data:t,loading:n,error:s,load:o,reset:i}}const Do="2000-01-01",pl=kn("bm",()=>{const e=Gt(()=>Me.courses()),t=Gt(()=>Me.meetings()),n=Gt(()=>Me.schedule(Do)),s=Gt(()=>Me.deadlines(Do)),r=Gt(()=>Me.readings()),o=Gt(()=>Me.dashboard()),i=J(()=>e.data.value),l=J(()=>t.data.value),c=J(()=>o.data.value),f=En(),a=J(()=>Rr(i.value??[])),u=J(()=>mf(i.value??[],f.choices)),p=J(()=>hl(i.value??[],f.choices,f.showAll)),g=J(()=>qs(n.data.value??[],p.value)),S=J(()=>qs(s.data.value??[],p.value)),w=J(()=>qs(r.data.value??[],p.value)),D=J(()=>r.data.value??[]),P=J(()=>(i.value??[]).filter(k=>!p.value.has(k.id))),R=J(()=>{const k=w.value,de=k.filter(ye=>ye.is_required);return{total:k.length,read:k.filter(ye=>ye.read_at).length,requiredTotal:de.length,requiredRead:de.filter(ye=>ye.read_at).length}}),M=J(()=>new Map((i.value??[]).map(k=>[k.id,k])));async function T(k=!1){await e.load(k),e.data.value&&f.prune(e.data.value)}async function q(k,de){const ye=r.data.value,ze=ye?.find(K=>K.id===k);if(!ye||!ze)return;const re=ze.read_at,B=K=>{r.data.value=ye.map(Le=>Le.id===k?{...Le,read_at:K}:Le)};B(de?new Date().toISOString():null);try{const K=de?await Me.markRead(k):await Me.unmarkRead(k);B(K.read_at)}catch(K){B(re),Ar().show(`Nie udało się zapisać zmiany. ${wn(K)}`)}}const ie=[e,t,n,s,r,o],Y=J(()=>ie.some(k=>k.loading.value)),z=J(()=>ie.find(k=>k.error.value)?.error.value??""),$=J(()=>({courses:e.data.value!==null,meetings:t.data.value!==null,schedule:n.data.value!==null,deadlines:s.data.value!==null,readings:r.data.value!==null,dashboard:o.data.value!==null}));function le(){for(const k of ie)k.error.value&&k.load(!0)}function ve(){for(const k of ie)k.reset()}return{courses:i,electiveGroups:a,pendingElectives:u,hidden:p,meetings:l,dashboard:c,schedule:g,deadlines:S,readings:w,allReadings:D,visibleCourses:P,readingStats:R,courseById:M,loading:Y,error:z,loaded:$,retry:le,loadCourses:T,loadMeetings:(k=!1)=>t.load(k),loadSchedule:(k=!1)=>n.load(k),loadDeadlines:(k=!1)=>s.load(k),loadReadings:(k=!1)=>r.load(k),loadDashboard:(k=!1)=>o.load(k),toggleReading:q,reset:ve}});function _f(e,t){return[...hl(e,t,!1)].sort((n,s)=>n-s)}function vf(e,t){if(e.length!==t.length)return!1;const n=[...e].sort((r,o)=>r-o),s=[...t].sort((r,o)=>r-o);return n.every((r,o)=>r===s[o])}async function Vf(e){try{if(navigator.clipboard&&window.isSecureContext)return await navigator.clipboard.writeText(e),!0}catch{}try{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="-1000px",document.body.appendChild(t),t.select();const n=document.execCommand("copy");return document.body.removeChild(t),n}catch{return!1}}const gl=kn("calendarFeed",()=>{const e=Ie(void 0),t=Ie(!1),n=Ie(!1),s=Ie(""),r=pl(),o=En();let i=Promise.resolve();function l(P){const R=i.then(P,P);return i=R.catch(()=>{}),R}async function c(P=!1){if(!(e.value!==void 0&&!P)){t.value=!0,s.value="";try{e.value=await Me.calendarFeed()}catch(R){s.value=wn(R)}finally{t.value=!1}}}async function f(){await r.loadCourses();const P=r.courses;return P?_f(P,o.choices):null}async function a(P){n.value=!0,s.value="";try{await l(P)}catch(R){s.value=wn(R)}finally{n.value=!1}}function u(){return a(async()=>{const P=await f();e.value=await Me.saveCalendarFeed(P?{excluded_course_ids:P}:{})})}function p(P){return a(async()=>{e.value=await Me.saveCalendarFeed(P)})}function g(){return a(async()=>{e.value=await Me.rotateCalendarFeed()})}function S(){return a(async()=>{await Me.deleteCalendarFeed(),e.value=null})}function w(){return l(async()=>{e.value===void 0&&await c();const P=e.value;if(!P)return;const R=await f();if(!(!R||vf(R,P.excluded_course_ids)))try{e.value=await Me.saveCalendarFeed({excluded_course_ids:R})}catch(M){Ar().show(`Nie udało się zaktualizować kalendarza. ${wn(M)}`)}})}Yt(()=>o.choices,()=>{o.userId!==null&&w()});function D(){e.value=void 0,s.value="",t.value=!1,n.value=!1}return{feed:e,loading:t,busy:n,error:s,load:c,create:u,save:p,rotate:g,remove:S,sync:w,reset:D}}),ml=kn("auth",()=>{const e=Ie(null),t=Ie(At.get()),n=Ie(!1),s=J(()=>t.value!==null),r=J(()=>{const g=e.value;return g?[g.name,g.surname].filter(Boolean).join(" ")||g.email:""});function o(g,S,w){At.set(g,w),t.value=At.get(),S&&(e.value=S,En().load(S.id))}function i(){At.clear(),t.value=null,e.value=null,pl().reset(),En().reset(),gl().reset()}async function l(){if(At.get())try{const g=await an.fetch();e.value=g.user,t.value=At.get(),En().load(g.user.id)}catch{At.get()||i()}n.value=!0}async function c(g,S,w){const D=await an.login({email:g,password:S});o(D.token,D.user,w)}async function f(g,S){const w=await an.register(g);return w.token?(o(w.token,w.user,S),{signedIn:!0,message:""}):{signedIn:!1,message:w.message??""}}async function a(){try{await an.logout()}catch{}i(),await Ft.push({name:"login"})}async function u(g){const S=await an.update(g);e.value=S.user}function p(){const g=s.value||e.value!==null;i(),g&&Ft.currentRoute.value.meta.public!==!0&&Ft.push({name:"login",query:{redirect:Ft.currentRoute.value.fullPath,expired:"1"}})}return uf(p),{user:e,token:t,ready:n,loggedIn:s,displayName:r,restore:l,login:c,register:f,logout:a,updateProfile:u}}),yf={class:"shell"},bf={class:"sidebar"},Ef={"aria-label":"Główna nawigacja"},wf={class:"who"},Sf={class:"muted"},xf={class:"main",id:"main"},Rf={class:"tabbar","aria-label":"Nawigacja"},Af=Vn({__name:"AppShell",setup(e){const t=ml(),n=Ar(),s=fl();gl();const r=[{to:"/",label:"Pulpit",icon:"home",match:["dashboard"]},{to:"/plan",label:"Plan zajęć",icon:"calendar",match:["schedule"]},{to:"/terminarz",label:"Terminarz",icon:"flag",match:["deadlines"]},{to:"/przedmioty",label:"Przedmioty",icon:"grad",match:["courses","course"]},{to:"/lektury",label:"Lektury",icon:"book",match:["readings"]},{to:"/materialy",label:"Materiały",icon:"file",match:["materials","material"]},{to:"/quizy",label:"Quizy",icon:"quiz",match:["quizzes","quiz"]},{to:"/profil",label:"Profil",icon:"user",match:["profile"]}],o=[{to:"/",label:"Pulpit",icon:"home",match:["dashboard"]},{to:"/plan",label:"Plan",icon:"calendar",match:["schedule"]},{to:"/lektury",label:"Lektury",icon:"book",match:["readings"]},{to:"/quizy",label:"Quizy",icon:"quiz",match:["quizzes","quiz"]},{to:"/wiecej",label:"Więcej",icon:"more",match:["more","deadlines","courses","course","materials","material","profile"]}],i=J(()=>String(s.name??"")),l=c=>c.includes(i.value);return(c,f)=>{const a=Ei("router-link");return mt(),Gn("div",yf,[Ve("aside",bf,[pe(a,{to:"/",class:"brand"},{default:mn(()=>[...f[1]||(f[1]=[Ve("span",{class:"eyebrow"},"UWr · ISMiB",-1),Ve("b",null,"BM II°",-1)])]),_:1}),Ve("nav",Ef,[(mt(),Gn(De,null,Hr(r,u=>pe(a,{key:u.to,to:u.to,class:Sn({active:l(u.match)}),"aria-current":l(u.match)?"page":void 0},{default:mn(()=>[pe(Oo,{name:u.icon},null,8,["name"]),Xs(un(u.label),1)]),_:2},1032,["to","class","aria-current"])),64))]),Ve("div",wf,[Ve("span",Sf,un($e(t).displayName),1),Ve("button",{class:"btn small ghost",type:"button",onClick:f[0]||(f[0]=u=>$e(t).logout())},"Wyloguj")])]),Ve("main",xf,[Ic(c.$slots,"default")]),Ve("nav",Rf,[(mt(),Gn(De,null,Hr(o,u=>pe(a,{key:u.to,to:u.to,class:Sn({active:l(u.match)}),"aria-current":l(u.match)?"page":void 0},{default:mn(()=>[pe(Oo,{name:u.icon},null,8,["name"]),Xs(un(u.label),1)]),_:2},1032,["to","class","aria-current"])),64))]),cc(Ve("div",{class:"toast",role:"status","aria-live":"polite"},un($e(n).message),513),[[Ea,$e(n).message]])])}}}),Cf=Vn({__name:"App",setup(e){const t=fl(),n=J(()=>t.meta.public===!0);return(s,r)=>{const o=Ei("router-view");return n.value?(mt(),On(o,{key:0})):(mt(),On(Af,{key:1},{default:mn(()=>[pe(o)]),_:1}))}}});za(Cf).use(Ga()).use(Ft).mount("#app");export{Yt as A,On as B,En as C,jf as D,Me as E,De as F,wn as G,Nf as H,Ln as I,wc as J,ms as K,ce as L,Ic as M,gl as N,Ar as O,Vf as P,Lf as Q,Jn as R,Oo as _,Ve as a,$e as b,Gn as c,Vn as d,Pf as e,Tf as f,Mf as g,pe as h,mn as i,fl as j,Ei as k,Df as l,Xs as m,an as n,mt as o,pl as p,yc as q,Ie as r,J as s,un as t,ml as u,If as v,cc as w,Sn as x,Hr as y,cr as z}; diff --git a/public/assets/quizzes-C4a6BQv2.js b/public/assets/quizzes-G41zxwRD.js similarity index 96% rename from public/assets/quizzes-C4a6BQv2.js rename to public/assets/quizzes-G41zxwRD.js index 5d9765c..7b99bb8 100644 --- a/public/assets/quizzes-C4a6BQv2.js +++ b/public/assets/quizzes-G41zxwRD.js @@ -1 +1 @@ -import{e as p}from"./format-bcE-cYHJ.js";import{d as z,o,c as a,F as c,y as h,a as d,m,t as n,b as _,x as q,e as l,L as r}from"./index-D5YFSKUV.js";const y={class:"rows"},$={class:"row-main"},k={class:"title"},w=["aria-label"],f={key:1,class:"badge"},b={class:"muted small"},S=z({__name:"AttemptList",props:{attempts:{},showQuiz:{type:Boolean}},setup(e){const s=u=>`${Math.round(u.score_points)}/${Math.round(u.max_points)}`;return(u,g)=>(o(),a("ul",y,[(o(!0),a(c,null,h(e.attempts,t=>(o(),a("li",{key:t.id},[d("div",$,[d("span",k,[e.showQuiz?(o(),a(c,{key:0},[m(n(t.quiz_title),1)],64)):(o(),a(c,{key:1},[m(n(_(p)(t.started_at)),1)],64))]),t.completed_at?(o(),a("span",{key:0,class:q(["badge",t.passed?"online":""]),"aria-label":`Wynik ${s(t)}`},n(s(t)),11,w)):(o(),a("span",f,"niezakończona"))]),d("div",b,[e.showQuiz?(o(),a(c,{key:0},[m(n(_(p)(t.started_at))+" · ",1)],64)):l("",!0),t.category?(o(),a(c,{key:1},[m(n(t.category)+" · ",1)],64)):l("",!0),m(" odpowiedzi: "+n(t.answered_count),1),t.completed_at&&t.score_percent!==null?(o(),a(c,{key:2},[m(" · "+n(String(t.score_percent).replace(".",","))+"% puli",1)],64)):l("",!0)])]))),128))]))}}),i="/_quizzes/api/v1",T={list:e=>r.request(`${i}/quizzes`,{query:{context:e}}),quiz:(e,s)=>r.request(`${i}/quizzes/${encodeURIComponent(e)}`,{query:{category:s}}),start:(e,s)=>r.request(`${i}/quizzes/${encodeURIComponent(e)}/attempts`,{method:"POST",body:s?{category:s}:{}}),answer:(e,s)=>r.request(`${i}/attempts/${e}/answers`,{method:"POST",body:s}),finish:e=>r.request(`${i}/attempts/${e}/finish`,{method:"POST"}),attempt:e=>r.request(`${i}/attempts/${e}`),attempts:(e,s)=>r.raw(`${i}/attempts`,{query:{quiz:e,page:s}})};export{S as _,T as q}; +import{e as p}from"./format-bcE-cYHJ.js";import{d as z,o,c as a,F as c,y as h,a as d,m,t as n,b as _,x as q,e as l,L as r}from"./index-Bm0qbefx.js";const y={class:"rows"},$={class:"row-main"},k={class:"title"},w=["aria-label"],f={key:1,class:"badge"},b={class:"muted small"},S=z({__name:"AttemptList",props:{attempts:{},showQuiz:{type:Boolean}},setup(e){const s=u=>`${Math.round(u.score_points)}/${Math.round(u.max_points)}`;return(u,g)=>(o(),a("ul",y,[(o(!0),a(c,null,h(e.attempts,t=>(o(),a("li",{key:t.id},[d("div",$,[d("span",k,[e.showQuiz?(o(),a(c,{key:0},[m(n(t.quiz_title),1)],64)):(o(),a(c,{key:1},[m(n(_(p)(t.started_at)),1)],64))]),t.completed_at?(o(),a("span",{key:0,class:q(["badge",t.passed?"online":""]),"aria-label":`Wynik ${s(t)}`},n(s(t)),11,w)):(o(),a("span",f,"niezakończona"))]),d("div",b,[e.showQuiz?(o(),a(c,{key:0},[m(n(_(p)(t.started_at))+" · ",1)],64)):l("",!0),t.category?(o(),a(c,{key:1},[m(n(t.category)+" · ",1)],64)):l("",!0),m(" odpowiedzi: "+n(t.answered_count),1),t.completed_at&&t.score_percent!==null?(o(),a(c,{key:2},[m(" · "+n(String(t.score_percent).replace(".",","))+"% puli",1)],64)):l("",!0)])]))),128))]))}}),i="/_quizzes/api/v1",T={list:e=>r.request(`${i}/quizzes`,{query:{context:e}}),quiz:(e,s)=>r.request(`${i}/quizzes/${encodeURIComponent(e)}`,{query:{category:s}}),start:(e,s)=>r.request(`${i}/quizzes/${encodeURIComponent(e)}/attempts`,{method:"POST",body:s?{category:s}:{}}),answer:(e,s)=>r.request(`${i}/attempts/${e}/answers`,{method:"POST",body:s}),finish:e=>r.request(`${i}/attempts/${e}/finish`,{method:"POST"}),attempt:e=>r.request(`${i}/attempts/${e}`),attempts:(e,s)=>r.raw(`${i}/attempts`,{query:{quiz:e,page:s}})};export{S as _,T as q}; diff --git a/public/index.html b/public/index.html index 5249c95..ade2dc2 100644 --- a/public/index.html +++ b/public/index.html @@ -14,7 +14,7 @@ rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Archivo+Narrow:wght@500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&family=IBM+Plex+Mono:wght@400;500&display=swap" /> - + diff --git a/routes.go b/routes.go index 1ac5e54..a03f4e1 100644 --- a/routes.go +++ b/routes.go @@ -120,6 +120,9 @@ func (p *Plugin) Routes(r pact.Router) error { return err } r.GroupRaw("", nil, func(g pact.Router) { + if p.app != nil && p.app.HasPlugin("golem15.presentations") { + g.Get("/prezentacje/{slugHash}", static.ServeHTTP, "presentations.public-page") + } g.Get("/{path...}", static.ServeHTTP) }) return nil diff --git a/static.go b/static.go index d268a08..1fc0f3c 100644 --- a/static.go +++ b/static.go @@ -39,7 +39,7 @@ const defaultAdminPath = "/bmadmin" // reservedPrefixes are the path prefixes the student app never answers: the // APIs of the plugins and the public uploads. The admin path is added from // the configuration. -var reservedPrefixes = []string{"/_user", "/_bm", "/_quizzes", "/api", "/storage"} +var reservedPrefixes = []string{"/_user", "/_bm", "/_quizzes", "/_presentations", "/api", "/storage"} // errMissingIndex reports a tree without index.html (an unbuilt tree). var errMissingIndex = errors.New("jz.bm: public/index.html missing; run the frontend build (cd frontend && npm ci && npm run build)")