Files
sm-bm-plugin/public/assets/index-CcttGF2j.js

6 lines
172 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-BD6T8vrN.js","assets/forms-hoySS-S3.js","assets/oauth-zzthF4BZ.js","assets/RegisterView-D6wth3F7.js","assets/ForgotView-CaAMm3z4.js","assets/OAuthCallbackView-BOPphDDj.js","assets/OAuthRegisterView-CZNMGPG4.js","assets/ResetView-Ci1_MPQT.js","assets/DashboardView-BCUes1cr.js","assets/PageHead.vue_vue_type_script_setup_true_lang-Dkl0CgBN.js","assets/LoadState.vue_vue_type_script_setup_true_lang-3DpmEGIZ.js","assets/ElectiveBar.vue_vue_type_script_setup_true_lang-bmfFCxzM.js","assets/markdown-CbtkjRI4.js","assets/ScheduleView-pbI-ziw1.js","assets/scrollToHash-C0LPzPLW.js","assets/DeadlinesView-B4EWKPkV.js","assets/CoursesView-Dh_F1aUy.js","assets/CourseView-DbMcCK0D.js","assets/ReadingItem.vue_vue_type_script_setup_true_lang-kH_ORnjG.js","assets/ReadingsView-DH-9NCM_.js","assets/MaterialsView-DFGYKe4E.js","assets/MaterialView-BpqDPS4B.js","assets/ChecklistsView-DyLAXBTa.js","assets/ChecklistView-BC7RgEhd.js","assets/presentations-CkEsPiie.js","assets/SyllabiView-DB5GWZUr.js","assets/QuizzesView-BVXFAY0q.js","assets/quizzes-Bj_e4hJ-.js","assets/QuizView-BnXoyrpi.js","assets/MoreView-B4tAadfv.js","assets/ProfileView-BZP8ljJR.js","assets/MyPresentationsView-BcNWYbDC.js","assets/PresentationSpeakerView-DctI4EnR.js","assets/DeckViewer.vue_vue_type_style_index_0_lang-BxQIjO4L.js","assets/engine-DDeQk6Ow.js","assets/engine-D54I7Duj.css","assets/DeckViewer-44NpA3H-.css","assets/clock-4r1aA6KU.js","assets/remote-aOKX75Mt.js","assets/PresentationSpeakerView-B_k_BZvQ.css","assets/PresentationRemoteView-B3iBEKYt.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/log-Xlt5jeld.js","assets/PresentationRemoteView-DupVcsnc.css","assets/PresentationPublicView-rzVRpdl2.js","assets/PresentationPublicView-BA_OfOyJ.css","assets/CastReceiverView-C3JQv3Bs.js","assets/CastReceiverView-guIBZout.css","assets/NotFoundView-X7sC04aH.js"])))=>i.map(i=>d[i]);
var Xc=Object.defineProperty;var eu=(e,t,n)=>t in e?Xc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Rn=(e,t,n)=>eu(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 i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();function Ei(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const we={},pn=[],Ct=()=>{},wl=()=>!1,er=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),tr=e=>e.startsWith("onUpdate:"),Fe=Object.assign,Si=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},tu=Object.prototype.hasOwnProperty,ye=(e,t)=>tu.call(e,t),Q=Array.isArray,nn=e=>ys(e)==="[object Map]",Bt=e=>ys(e)==="[object Set]",ro=e=>ys(e)==="[object Date]",se=e=>typeof e=="function",Pe=e=>typeof e=="string",lt=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",El=e=>(_e(e)||se(e))&&se(e.then)&&se(e.catch),Sl=Object.prototype.toString,ys=e=>Sl.call(e),nu=e=>ys(e).slice(8,-1),Rl=e=>ys(e)==="[object Object]",nr=e=>Pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zn=Ei(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),sr=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},su=/-\w/g,et=sr(e=>e.replace(su,t=>t.slice(1).toUpperCase())),ru=/\B([A-Z])/g,on=sr(e=>e.replace(ru,"-$1").toLowerCase()),rr=sr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Or=sr(e=>e?`on${rr(e)}`:""),Tt=(e,t)=>!Object.is(e,t),js=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Tl=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},ir=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let io;const or=()=>io||(io=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ri(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=Pe(s)?au(s):Ri(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(Pe(e)||_e(e))return e}const iu=/;(?![^(]*\))/g,ou=/:([^]+)/,lu=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function au(e){const t={};return e.replace(lu,n=>n.startsWith("/*")?"":n).split(iu).forEach(n=>{if(n){const s=n.split(ou);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function kn(e){let t="";if(Pe(e))t=e;else if(Q(e))for(let n=0;n<e.length;n++){const s=kn(e[n]);s&&(t+=s+" ")}else if(_e(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const cu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",uu=Ei(cu);function Al(e){return!!e||e===""}function fu(e,t,n){if(e.length!==t.length)return!1;let s=!0;for(let r=0;s&&r<e.length;r++)s=Ut(e[r],t[r],n);return s}function oo(e,t,n){if(e.size!==t.size)return!1;const s=Array.from(t),r=new Uint8Array(s.length);for(const i of e){let o=-1;for(let l=0;l<s.length;l++)if(!r[l]&&Ut(i,s[l],n)){o=l;break}if(o<0)return!1;r[o]=1}return!0}function du(e,t,n){let s=nn(e),r=nn(t);if(s||r||(s=Bt(e),r=Bt(t),s||r))return s&&r?oo(e,t,n):!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const l in e){const a=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(a&&!c||!a&&c||!Ut(e[l],t[l],n))return!1}return String(e)===String(t)}function lo(e,t,n,s){n||(n=[new Map,new Map]);const[r,i]=n;if(r.has(e)||i.has(t))return r.get(e)===t&&i.get(t)===e;r.set(e,t),i.set(t,e);const o=s(e,t,n);return r.delete(e),i.delete(t),o}function Ut(e,t,n){if(e===t)return!0;let s=ro(e),r=ro(t);return s||r?s&&r?e.getTime()===t.getTime():!1:(s=lt(e),r=lt(t),s||r?e===t:(s=Q(e),r=Q(t),s||r?s&&r?lo(e,t,n,fu):!1:(s=_e(e),r=_e(t),s||r?!s||!r?!1:lo(e,t,n,du):String(e)===String(t))))}function Ti(e,t){return e.findIndex(n=>Ut(n,t))}const xl=e=>!!(e&&e.__v_isRef===!0),Wt=e=>Pe(e)?e:e==null?"":Q(e)||_e(e)&&(e.toString===Sl||!se(e.toString))?xl(e)?Wt(e.value):JSON.stringify(e,Cl,2):String(e),Cl=(e,t)=>xl(t)?Cl(e,t.value):nn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[Mr(s,i)+" =>"]=r,n),{})}:Bt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Mr(n))}:lt(t)?Mr(t):_e(t)&&!Q(t)&&!Rl(t)?String(t):t,Mr=(e,t="")=>{var n;return lt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let ze;class Pl{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&&ze&&(ze.active?(this.parent=ze,this.index=(ze.scopes||(ze.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;t<n;t++)s[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}const s=this.effects.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}}run(t){if(this._active){const n=ze;try{return ze=this,t()}finally{ze=n}}}on(){++this._on===1&&(this.prevScope=ze,ze=this)}off(){if(this._on>0&&--this._on===0){if(ze===this)ze=this.prevScope;else{let t=ze;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;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(n=0,s=r.length;n<s;n++)r[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Ol(e){return new Pl(e)}function Ml(){return ze}function hu(e,t=!1){ze&&ze.cleanups.push(e)}let Re;const kr=new WeakSet;class kl{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ze&&(ze.active?ze.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,kr.has(this)&&(kr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Dl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ao(this),Ll(this);const t=Re,n=pt;Re=this,pt=!0;try{return this.fn()}finally{Nl(this),Re=t,pt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ci(t);this.deps=this.depsTail=void 0,ao(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?kr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Zr(this)&&this.run()}get dirty(){return Zr(this)}}let Il=0,Xn,es;function Dl(e,t=!1){if(e.flags|=8,t){e.next=es,es=e;return}e.next=Xn,Xn=e}function Ai(){Il++}function xi(){if(--Il>0)return;if(es){let t=es;for(es=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Xn;){let t=Xn;for(Xn=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 Ll(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Nl(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Ci(s),pu(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Zr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(jl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function jl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ls)||(e.globalVersion=ls,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Zr(e))))return;e.flags|=2;const t=e.dep,n=Re,s=pt;Re=e,pt=!0;try{Ll(e);const r=e.fn(e._value);(t.version===0||Tt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Re=n,pt=s,Nl(e),e.flags&=-3}}function Ci(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 i=n.computed.deps;i;i=i.nextDep)Ci(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function pu(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let pt=!0;const $l=[];function qt(){$l.push(pt),pt=!1}function Ht(){const e=$l.pop();pt=e===void 0?!0:e}function ao(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Re;Re=void 0;try{t()}finally{Re=n}}}let ls=0;class mu{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 Pi{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(!Re||!pt||Re===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Re)n=this.activeLink=new mu(Re,this),Re.deps?(n.prevDep=Re.depsTail,Re.depsTail.nextDep=n,Re.depsTail=n):Re.deps=Re.depsTail=n,zl(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=Re.depsTail,n.nextDep=void 0,Re.depsTail.nextDep=n,Re.depsTail=n,Re.deps===n&&(Re.deps=s)}return n}trigger(t){this.version++,ls++,this.notify(t)}notify(t){Ai();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{xi()}}}function zl(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)zl(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Bs=new WeakMap,yn=Symbol(""),Xr=Symbol(""),as=Symbol("");function Ge(e,t,n){if(pt&&Re){let s=Bs.get(e);s||Bs.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Pi),r.map=s,r.key=n),r.track()}}function $t(e,t,n,s,r,i){const o=Bs.get(e);if(!o){ls++;return}const l=a=>{a&&a.trigger()};if(Ai(),t==="clear")o.forEach(l);else{const a=Q(e),c=a&&nr(n);if(a&&n==="length"){const u=Number(s);o.forEach((f,p)=>{(p==="length"||p===as||!lt(p)&&p>=u)&&l(f)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),c&&l(o.get(as)),t){case"add":a?c&&l(o.get("length")):(l(o.get(yn)),nn(e)&&l(o.get(Xr)));break;case"delete":a||(l(o.get(yn)),nn(e)&&l(o.get(Xr)));break;case"set":nn(e)&&l(o.get(yn));break}}xi()}function gu(e,t){const n=Bs.get(e);return n&&n.get(t)}function Tn(e){const t=de(e);return t===e||(Ge(t,"iterate",as),ot(e))?t:Ot(e)?Pt(e)?t.map(n=>rn(ht(n))):t.map(rn):t.map(ht)}function lr(e){return Ge(e=de(e),"iterate",as),e}function St(e,t){return Ot(e)?rn(Pt(e)?ht(t):t):ht(t)}const yu={__proto__:null,[Symbol.iterator](){return Ir(this,Symbol.iterator,e=>St(this,e))},concat(...e){return Tn(this).concat(...e.map(t=>Q(t)?Tn(t):t))},entries(){return Ir(this,"entries",e=>(e[1]=St(this,e[1]),e))},every(e,t){return kt(this,"every",e,t,void 0,arguments)},filter(e,t){return kt(this,"filter",e,t,n=>n.map(s=>St(this,s)),arguments)},find(e,t){return kt(this,"find",e,t,n=>St(this,n),arguments)},findIndex(e,t){return kt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return kt(this,"findLast",e,t,n=>St(this,n),arguments)},findLastIndex(e,t){return kt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return kt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Dr(this,"includes",e)},indexOf(...e){return Dr(this,"indexOf",e)},join(e){return Tn(this).join(e)},lastIndexOf(...e){return Dr(this,"lastIndexOf",e)},map(e,t){return kt(this,"map",e,t,void 0,arguments)},pop(){return qn(this,"pop")},push(...e){return qn(this,"push",e)},reduce(e,...t){return co(this,"reduce",e,t)},reduceRight(e,...t){return co(this,"reduceRight",e,t)},shift(){return qn(this,"shift")},some(e,t){return kt(this,"some",e,t,void 0,arguments)},splice(...e){return qn(this,"splice",e)},toReversed(){return Tn(this).toReversed()},toSorted(e){return Tn(this).toSorted(e)},toSpliced(...e){return Tn(this).toSpliced(...e)},unshift(...e){return qn(this,"unshift",e)},values(){return Ir(this,"values",e=>St(this,e))}};function Ir(e,t,n){const s=lr(e),r=s[t]();return s!==e&&!ot(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=n(i.value)),i}),r}const vu=Array.prototype;function kt(e,t,n,s,r,i){const o=lr(e),l=o!==e&&!ot(e),a=o[t];if(a!==vu[t]){const f=a.apply(e,i);return l?ht(f):f}let c=n;o!==e&&(l?c=function(f,p){return n.call(this,St(e,f),p,e)}:n.length>2&&(c=function(f,p){return n.call(this,f,p,e)}));const u=a.call(o,c,s);return l&&r?r(u):u}function co(e,t,n,s){const r=lr(e),i=r!==e&&!ot(e);let o=n,l=!1;r!==e&&(i?(l=s.length===0,o=function(c,u,f){return l&&(l=!1,c=St(e,c)),n.call(this,c,St(e,u),f,e)}):n.length>3&&(o=function(c,u,f){return n.call(this,c,u,f,e)}));const a=r[t](o,...s);return l?St(e,a):a}function Dr(e,t,n){const s=de(e);Ge(s,"iterate",as);const r=s[t](...n);return(r===-1||r===!1)&&ar(n[0])?(n[0]=de(n[0]),s[t](...n)):r}function qn(e,t,n=[]){qt(),Ai();const s=de(e)[t].apply(e,n);return xi(),Ht(),s}const _u=Ei("__proto__,__v_isRef,__isVue"),Vl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(lt));function bu(e){lt(e)||(e=String(e));const t=de(this);return Ge(t,"has",e),t.hasOwnProperty(e)}class Fl{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,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?Ou:Hl:i?ql:Ul).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=Q(t);if(!r){let a;if(o&&(a=yu[n]))return a;if(n==="hasOwnProperty")return bu}const l=Reflect.get(t,n,Ie(t)?t:s);if((lt(n)?Vl.has(n):_u(n))||(r||Ge(t,"get",n),i))return l;if(Ie(l)){const a=o&&nr(n)?l:l.value;return r&&_e(a)?ti(a):a}return _e(l)?r?ti(l):vs(l):l}}class Bl extends Fl{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];const o=Q(t)&&nr(n);if(!this._isShallow){const c=Ot(i);if(!ot(s)&&!Ot(s)&&(i=de(i),s=de(s)),!o&&Ie(i)&&!Ie(s))return c||(i.value=s),!0}const l=o?Number(n)<t.length:ye(t,n),a=Reflect.set(t,n,s,Ie(t)?t:r);return t===de(r)&&a&&(l?Tt(s,i)&&$t(t,"set",n,s):$t(t,"add",n,s)),a}deleteProperty(t,n){const s=ye(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&$t(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!lt(n)||!Vl.has(n))&&Ge(t,"has",n),s}ownKeys(t){return Ge(t,"iterate",Q(t)?"length":yn),Reflect.ownKeys(t)}}class wu extends Fl{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Eu=new Bl,Su=new wu,Ru=new Bl(!0);const ei=e=>e,xs=e=>Reflect.getPrototypeOf(e);function Tu(e,t,n){return function(...s){const r=this.__v_raw,i=de(r),o=nn(i),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,c=r[e](...s),u=n?ei:t?rn:ht;return!t&&Ge(i,"iterate",a?Xr:yn),Fe(Object.create(c),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:l?[u(f[0]),u(f[1])]:u(f),done:p}}})}}function Cs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Au(e,t){const n={get(r){const i=this.__v_raw,o=de(i),l=de(r);e||(Tt(r,l)&&Ge(o,"get",r),Ge(o,"get",l));const{has:a}=xs(o),c=t?ei:e?rn:ht;if(a.call(o,r))return c(i.get(r));if(a.call(o,l))return c(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&Ge(de(r),"iterate",yn),r.size},has(r){const i=this.__v_raw,o=de(i),l=de(r);return e||(Tt(r,l)&&Ge(o,"has",r),Ge(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,a=de(l),c=t?ei:e?rn:ht;return!e&&Ge(a,"iterate",yn),l.forEach((u,f)=>r.call(i,c(u),c(f),o))}};return Fe(n,e?{add:Cs("add"),set:Cs("set"),delete:Cs("delete"),clear:Cs("clear")}:{add(r){const i=de(this),o=xs(i),l=de(r),a=!t&&!ot(r)&&!Ot(r)?l:r;return o.has.call(i,a)||Tt(r,a)&&o.has.call(i,r)||Tt(l,a)&&o.has.call(i,l)||(i.add(a),$t(i,"add",a,a)),this},set(r,i){!t&&!ot(i)&&!Ot(i)&&(i=de(i));const o=de(this),{has:l,get:a}=xs(o);let c=l.call(o,r);c||(r=de(r),c=l.call(o,r));const u=a.call(o,r);return o.set(r,i),c?Tt(i,u)&&$t(o,"set",r,i):$t(o,"add",r,i),this},delete(r){const i=de(this),{has:o,get:l}=xs(i);let a=o.call(i,r);a||(r=de(r),a=o.call(i,r)),l&&l.call(i,r);const c=i.delete(r);return a&&$t(i,"delete",r,void 0),c},clear(){const r=de(this),i=r.size!==0,o=r.clear();return i&&$t(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Tu(r,e,t)}),n}function Oi(e,t){const n=Au(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(ye(n,r)&&r in s?n:s,r,i)}const xu={get:Oi(!1,!1)},Cu={get:Oi(!1,!0)},Pu={get:Oi(!0,!1)};const Ul=new WeakMap,ql=new WeakMap,Hl=new WeakMap,Ou=new WeakMap;function Mu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vs(e){return Ot(e)?e:Mi(e,!1,Eu,xu,Ul)}function Kl(e){return Mi(e,!1,Ru,Cu,ql)}function ti(e){return Mi(e,!0,Su,Pu,Hl)}function Mi(e,t,n,s,r){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=r.get(e);if(i)return i;const o=Mu(nu(e));if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function Pt(e){return Ot(e)?Pt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ot(e){return!!(e&&e.__v_isReadonly)}function ot(e){return!!(e&&e.__v_isShallow)}function ar(e){return e?!!e.__v_raw:!1}function de(e){const t=e&&e.__v_raw;return t?de(t):e}function ki(e){return!ye(e,"__v_skip")&&Object.isExtensible(e)&&Tl(e,"__v_skip",!0),e}const ht=e=>_e(e)?vs(e):e,rn=e=>_e(e)?ti(e):e;function Ie(e){return e?e.__v_isRef===!0:!1}function te(e){return Gl(e,!1)}function Ln(e){return Gl(e,!0)}function Gl(e,t){return Ie(e)?e:new ku(e,t)}class ku{constructor(t,n){this.dep=new Pi,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:de(t),this._value=n?t:ht(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||ot(t)||Ot(t);t=s?t:de(t),Tt(t,n)&&(this._rawValue=t,this._value=s?t:ht(t),this.dep.trigger())}}function De(e){return Ie(e)?e.value:e}function Lm(e){return se(e)?e():De(e)}const Iu={get:(e,t,n)=>t==="__v_raw"?e:De(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Ie(r)&&!Ie(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Wl(e){return Pt(e)?e:new Proxy(e,Iu)}function Du(e){const t=Q(e)?new Array(e.length):{};for(const n in e)t[n]=Nu(e,n);return t}class Lu{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=lt(n)?n:String(n),this._raw=de(t);let r=!0,i=t;if(!Q(t)||lt(this._key)||!nr(this._key))do r=!ar(i)||ot(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=De(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ie(this._raw[this._key])){const n=this._object[this._key];if(Ie(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return gu(this._raw,this._key)}}function Nu(e,t,n){return new Lu(e,t,n)}class ju{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Pi(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ls-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Re!==this)return Dl(this,!0),!0}get value(){const t=this.dep.track();return jl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function $u(e,t,n=!1){let s,r;return se(e)?s=e:(s=e.get,r=e.set),new ju(s,r,n)}const Ps={},Us=new WeakMap;let dn;function zu(e,t=!1,n=dn){if(n){let s=Us.get(n);s||Us.set(n,s=[]),s.push(e)}}function Vu(e,t,n=we){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:a}=n,c=O=>r?O:ot(O)||r===!1||r===0?zt(O,1):zt(O);let u,f,p,g,_=!1,w=!1;if(Ie(e)?(f=()=>e.value,_=ot(e)):Pt(e)?(f=()=>c(e),_=!0):Q(e)?(w=!0,_=e.some(O=>Pt(O)||ot(O)),f=()=>e.map(O=>{if(Ie(O))return O.value;if(Pt(O))return c(O);if(se(O))return a?a(O,2):O()})):se(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){qt();try{p()}finally{Ht()}}const O=dn;dn=u;try{return a?a(e,3,[g]):e(g)}finally{dn=O}}:f=Ct,t&&r){const O=f,N=r===!0?1/0:r;f=()=>zt(O(),N)}const S=Ml(),E=()=>{u.stop(),S&&S.active&&Si(S.effects,u)};if(i&&t){const O=t;t=(...N)=>{const Z=O(...N);return E(),Z}}let y=w?new Array(e.length).fill(Ps):Ps;const C=O=>{if(!(!(u.flags&1)||!u.dirty&&!O))if(t){const N=u.run();if(O||r||_||(w?N.some((Z,j)=>Tt(Z,y[j])):Tt(N,y))){p&&p();const Z=dn;dn=u;try{const j=[N,y===Ps?void 0:w&&y[0]===Ps?[]:y,g];y=N,a?a(t,3,j):t(...j)}finally{dn=Z}}}else u.run()};return l&&l(C),u=new kl(f),u.scheduler=o?()=>o(C,!1):C,g=O=>zu(O,!1,u),p=u.onStop=()=>{const O=Us.get(u);if(O){if(a)a(O,4);else for(const N of O)N();Us.delete(u)}},t?s?C(!0):y=u.run():o?o(C.bind(null,!0),!0):u.run(),E.pause=u.pause.bind(u),E.resume=u.resume.bind(u),E.stop=E,E}function zt(e,t=1/0,n){if(t<=0||!_e(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ie(e))zt(e.value,t,n);else if(Q(e))for(let s=0;s<e.length;s++)zt(e[s],t,n);else if(Bt(e)||nn(e))e.forEach(s=>{zt(s,t,n)});else if(Rl(e)){for(const s in e)zt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&zt(e[s],t,n)}return e}function _s(e,t,n,s){try{return s?e(...s):e()}catch(r){bs(r,t,n)}}function mt(e,t,n,s){if(se(e)){const r=_s(e,t,n,s);return r&&El(r)&&r.catch(i=>{bs(i,t,n)}),r}if(Q(e)){const r=[];for(let i=0;i<e.length;i++)r.push(mt(e[i],t,n,s));return r}}function bs(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||we;if(t){let l=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,c)===!1)return}l=l.parent}if(i){qt(),_s(i,null,10,[e,a,c]),Ht();return}}Fu(e,n,r,s,o)}function Fu(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const Xe=[];let Et=-1;const In=[];let Zt=null,Pn=0;const Jl=Promise.resolve();let qs=null;function cr(e){const t=qs||Jl;return e?t.then(this?e.bind(this):e):t}function Bu(e){let t=Et+1,n=Xe.length;for(;t<n;){const s=t+n>>>1,r=Xe[s],i=cs(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function Ii(e){if(!(e.flags&1)){const t=cs(e),n=Xe[Xe.length-1];!n||!(e.flags&2)&&t>=cs(n)?Xe.push(e):Xe.splice(Bu(t),0,e),e.flags|=1,Yl()}}function Yl(){qs||(qs=Jl.then(Zl))}function Uu(e){if(!Q(e))Zt&&e.id===-1?Zt.splice(Pn+1,0,e):e.flags&1||(In.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)In.push(e[t]);Yl()}function uo(e,t,n=Et+1){for(;n<Xe.length;n++){const s=Xe[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Xe.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Ql(e){if(In.length){const t=[...new Set(In)].sort((n,s)=>cs(n)-cs(s));if(In.length=0,Zt){for(let n=0;n<t.length;n++)Zt.push(t[n]);return}for(Zt=t,Pn=0;Pn<Zt.length;Pn++){const n=Zt[Pn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Zt=null,Pn=0}}const cs=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Zl(e){try{for(Et=0;Et<Xe.length;Et++){const t=Xe[Et];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),_s(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Et<Xe.length;Et++){const t=Xe[Et];t&&(t.flags&=-2)}Et=-1,Xe.length=0,Ql(),qs=null,(Xe.length||In.length)&&Zl()}}let Ue=null,Xl=null;function Hs(e){const t=Ue;return Ue=e,Xl=e&&e.type.__scopeId||null,t}function ts(e,t=Ue,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Ws(-1);const i=Hs(t),o=Ft.length;let l;try{l=e(...r)}finally{for(let a=Ft.length;a>o;a--)Vi();Hs(i),s._d&&Ws(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function qu(e,t){if(Ue===null)return e;const n=mr(Ue),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,a=we]=t[r];i&&(se(i)&&(i={mounted:i,updated:i}),i.deep&&zt(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function cn(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let a=l.dir[s];a&&(qt(),mt(a,n,8,[e.el,l,e,t]),Ht())}}function $s(e,t){if(Be){let n=Be.provides;const s=Be.parent&&Be.parent.provides;s===n&&(n=Be.provides=Object.create(s)),n[e]=t}}function dt(e,t,n=!1){const s=Fi();if(s||_n){let r=_n?_n._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&se(t)?t.call(s&&s.proxy):t}}function Hu(){return!!(Fi()||_n)}const Ku=Symbol.for("v-scx"),Gu=()=>dt(Ku);function vn(e,t,n){return ea(e,t,n)}function ea(e,t,n=we){const{immediate:s,deep:r,flush:i,once:o}=n,l=Fe({},n),a=t&&s||!t&&i!=="post";let c;if(jn){if(i==="sync"){const g=Gu();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=Ct,g.resume=Ct,g.pause=Ct,g}}const u=Be;l.call=(g,_,w)=>mt(g,u,_,w);let f=!1;i==="post"?l.scheduler=g=>{Qe(g,u&&u.suspense)}:i!=="sync"&&(f=!0,l.scheduler=(g,_)=>{_?g():Ii(g)}),l.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const p=Vu(e,t,l);return jn&&(c?c.push(p):a&&p()),p}function Wu(e,t,n){const s=this.proxy,r=Pe(e)?e.includes(".")?ta(s,e):()=>s[e]:e.bind(s,s);let i;se(t)?i=t:(i=t.handler,n=t);const o=ws(this),l=ea(r,i.bind(s),n);return o(),l}function ta(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const Jt=new WeakMap,na=Symbol("_vte"),ur=e=>e.__isTeleport,hn=e=>e&&(e.disabled||e.disabled===""),Ju=e=>e&&(e.defer||e.defer===""),fo=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ho=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ni=(e,t)=>{const n=e&&e.to;return Pe(n)?t?t(n):null:n},Yu={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,l,a,c){const{mc:u,pc:f,pbc:p,o:{insert:g,querySelector:_,createText:w,createComment:S,parentNode:E}}=c,y=hn(t.props);let{dynamicChildren:C}=t;const O=(j,F,B)=>{j.shapeFlag&16&&u(j.children,F,B,r,i,o,l,a)},N=(j=t)=>{const F=hn(j.props),B=j.target=ni(j.props,_),oe=si(B,j,w,g);B&&(o!=="svg"&&fo(B)?o="svg":o!=="mathml"&&ho(B)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(B),F||(O(j,B,oe),Jn(j,!1)))},Z=j=>{const F=()=>{if(Jt.get(j)===F){if(Jt.delete(j),hn(j.props)){const B=E(j.el)||n;O(j,B,j.anchor),Jn(j,!0)}N(j)}};Jt.set(j,F),Qe(F,i)};if(e==null){const j=t.el=w(""),F=t.anchor=w("");if(g(j,n,s),g(F,n,s),Ju(t.props)||i&&i.pendingBranch){Z(t);return}y&&(O(t,n,F),Jn(t,!0)),N()}else{t.el=e.el;const j=t.anchor=e.anchor,F=Jt.get(e);if(F){F.flags|=8,Jt.delete(e),Z(t);return}t.targetStart=e.targetStart;const B=t.target=e.target,oe=t.targetAnchor=e.targetAnchor,D=hn(e.props),Ae=D?n:B,xe=D?j:oe;if(o==="svg"||fo(B)?o="svg":(o==="mathml"||ho(B))&&(o="mathml"),C?(p(e.dynamicChildren,C,Ae,r,i,o,l),zi(e,t,!0)):a||f(e,t,Ae,xe,r,i,o,l,!1),y)D?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Os(t,n,j,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const q=ni(t.props,_);q&&(t.target=q,Os(t,q,null,c,0))}else D&&Os(t,B,oe,c,1);Jn(t,y)}},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:a,targetStart:c,targetAnchor:u,target:f,props:p}=e,g=hn(p),_=i||!g,w=Jt.get(e);if(w&&(w.flags|=8,Jt.delete(e)),f&&(r(c),r(u)),i&&r(a),!w&&(g||f)&&o&16)for(let S=0;S<l.length;S++){const E=l[S];s(E,t,n,_,!!E.dynamicChildren)}},move:Os,hydrate:Qu};function Os(e,t,n,{o:{insert:s},m:r},i=2){i===0&&s(e.targetAnchor,t,n);const{el:o,anchor:l,shapeFlag:a,children:c,props:u}=e,f=i===2;if(f&&s(o,t,n),!Jt.has(e)&&(!f||hn(u))&&a&16)for(let p=0;p<c.length;p++)r(c[p],t,n,2);f&&s(l,t,n)}function Qu(e,t,n,s,r,i,{o:{nextSibling:o,parentNode:l,querySelector:a,insert:c,createText:u}},f){function p(S,E){let y=E;for(;y;){if(y&&y.nodeType===8){if(y.data==="teleport start anchor")t.targetStart=y;else if(y.data==="teleport anchor"){t.targetAnchor=y,S._lpa=t.targetAnchor&&o(t.targetAnchor);break}}y=o(y)}}function g(S,E){E.anchor=f(o(S),E,l(S),n,s,r,i)}const _=t.target=ni(t.props,a),w=hn(t.props);if(_){const S=_._lpa||_.firstChild;t.shapeFlag&16&&(w?(g(e,t),p(_,S),t.targetAnchor||si(_,t,u,c,l(e)===_?e:null)):(t.anchor=o(e),p(_,S),t.targetAnchor||si(_,t,u,c),f(S&&o(S),t,_,n,s,r,i))),Jn(t,w)}else w&&t.shapeFlag&16&&(g(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const Nm=Yu;function Jn(e,t){const n=e.ctx;if(n&&n.ut){let s,r;for(t?(s=e.el,r=e.anchor):(s=e.targetStart,r=e.targetAnchor);s&&s!==r;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function si(e,t,n,s,r=null){const i=t.targetStart=n(""),o=t.targetAnchor=n("");return i[na]=o,e&&(s(i,e,r),s(o,e,r)),o}const Lr=Symbol("_leaveCb");function Zu(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Mt){t=n;break}}return t}function sa(e){if(!fr(e))return ur(e.type)&&e.children?Zu(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&&se(n.default))return n.default()}}function Di(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Di(ur(n.type)&&sa(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 Fn(e,t){return se(e)?Fe({name:e.name},t,{setup:e}):e}function jm(){const e=Fi();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Li(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function po(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Ks=new WeakMap;function ns(e,t,n,s,r=!1){if(Q(e)){e.forEach((w,S)=>ns(w,t&&(Q(t)?t[S]:t),n,s,r));return}if(Dn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&ns(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?mr(s.component):s.el,o=r?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===we?l.refs={}:l.refs,f=l.setupState,p=de(f),g=f===we?wl:w=>po(u,w)?!1:ye(p,w),_=(w,S)=>!(S&&po(u,S));if(c!=null&&c!==a){if(mo(t),Pe(c))u[c]=null,g(c)&&(f[c]=null);else if(Ie(c)){const w=t;_(c,w.k)&&(c.value=null),w.k&&(u[w.k]=null)}}if(se(a))_s(a,l,12,[o,u]);else{const w=Pe(a),S=Ie(a);if(w||S){const E=()=>{if(e.f){const y=w?g(a)?f[a]:u[a]:_()||!e.k?a.value:u[e.k];if(r)Q(y)&&Si(y,i);else if(Q(y))y.includes(i)||y.push(i);else if(w)u[a]=[i],g(a)&&(f[a]=u[a]);else{const C=[i];_(a,e.k)&&(a.value=C),e.k&&(u[e.k]=C)}}else w?(u[a]=o,g(a)&&(f[a]=o)):S&&(_(a,e.k)&&(a.value=o),e.k&&(u[e.k]=o))};if(o){const y=()=>{E(),Ks.delete(e)};y.id=-1,Ks.set(e,y),Qe(y,n)}else mo(e),E()}}}function mo(e){const t=Ks.get(e);t&&(t.flags|=8,Ks.delete(e))}const go=e=>e.nodeType===8;or().requestIdleCallback;or().cancelIdleCallback;function Xu(e,t){if(go(e)&&e.data==="["){let n=1,s=e.nextSibling;for(;s;){if(s.nodeType===1){if(t(s)===!1)break}else if(go(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else t(e)}const Dn=e=>!!e.type.__asyncLoader;function $m(e){se(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,hydrate:i,timeout:o,suspensible:l=!0,onError:a}=e;let c=null,u,f=0;const p=()=>(f++,c=null,g()),g=()=>{let _;return c||(_=c=t().catch(w=>{if(w=w instanceof Error?w:new Error(String(w)),a)return new Promise((S,E)=>{a(w,()=>S(p()),()=>E(w),f+1)});throw w}).then(w=>_!==c&&c?c:(w&&(w.__esModule||w[Symbol.toStringTag]==="Module")&&(w=w.default),u=w,w)))};return Fn({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate(_,w,S){const E=_.isConnected;let y=!1;(w.bu||(w.bu=[])).push(()=>y=!0);const C=()=>{y||!_.parentNode||E&&!_.isConnected||S()},O=i?()=>{const N=i(C,Z=>Xu(_,Z));N&&(w.bum||(w.bum=[])).push(N)}:C;u?O():g().then(()=>!w.isUnmounted&&O())},get __asyncResolved(){return u},setup(){const _=Be;if(Li(_),u)return()=>Ms(u,_);const w=N=>{c=null,bs(N,_,13,!s)};if(l&&_.suspense||jn)return g().then(N=>()=>Ms(N,_)).catch(N=>(w(N),()=>s?Ce(s,{error:N}):null));const S=te(!1),E=te(),y=te(!!r);let C,O;return Ni(()=>{C!=null&&clearTimeout(C),O!=null&&clearTimeout(O)}),r&&(O=setTimeout(()=>{_.isUnmounted||(y.value=!1)},r)),o!=null&&(C=setTimeout(()=>{if(!_.isUnmounted&&!S.value&&!E.value){const N=new Error(`Async component timed out after ${o}ms.`);w(N),E.value=N}},o)),g().then(()=>{_.isUnmounted||(S.value=!0,_.parent&&fr(_.parent.vnode)&&_.parent.update())}).catch(N=>{if(_.isUnmounted){c=null;return}w(N),E.value=N}),()=>{if(S.value&&u)return Ms(u,_);if(E.value&&s)return Ce(s,{error:E.value});if(n&&!y.value)return Ms(n,_)}}})}function Ms(e,t){const{ref:n,props:s,children:r,ce:i}=t.vnode,o=Ce(e,s,r);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const fr=e=>e.type.__isKeepAlive;function ef(e,t){ra(e,"a",t)}function tf(e,t){ra(e,"da",t)}function ra(e,t,n=Be){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(dr(t,s,n),n){let r=n.parent;for(;r&&r.parent;)fr(r.parent.vnode)&&nf(s,t,n,r),r=r.parent}}function nf(e,t,n,s){const r=dr(t,e,s,!0);Ni(()=>{Si(s[t],r)},n)}function dr(e,t,n=Be,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{qt();const l=ws(n),a=mt(t,n,e,o);return l(),Ht(),a});return s?r.unshift(i):r.push(i),i}}const Kt=e=>(t,n=Be)=>{(!jn||e==="sp")&&dr(e,(...s)=>t(...s),n)},sf=Kt("bm"),rf=Kt("m"),of=Kt("bu"),lf=Kt("u"),af=Kt("bum"),Ni=Kt("um"),cf=Kt("sp"),uf=Kt("rtg"),ff=Kt("rtc");function df(e,t=Be){dr("ec",e,t)}const hf="components";function ia(e,t){return mf(hf,e,!0,t)||e}const pf=Symbol.for("v-ndc");function mf(e,t,n=!0,s=!1){const r=Ue||Be;if(r){const i=r.type;{const l=Xf(i,!1);if(l&&(l===t||l===et(t)||l===rr(et(t))))return i}const o=yo(r[e]||i[e],t)||yo(r.appContext[e],t);return!o&&s?i:o}}function yo(e,t){return e&&(e[t]||e[et(t)]||e[rr(et(t))])}function vo(e,t,n,s){let r;const i=n,o=Q(e);if(o||Pe(e)){const l=o&&Pt(e);let a=!1,c=!1;l&&(a=!ot(e),c=Ot(e),e=lr(e)),r=new Array(e.length);for(let u=0,f=e.length;u<f;u++)r[u]=t(a?c?rn(ht(e[u])):ht(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(_e(e))if(e[Symbol.iterator])r=Array.from(e,(l,a)=>t(l,a,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const u=l[a];r[a]=t(e[u],u,a,i)}}else r=[];return r}function gf(e,t,n,s,r,i){if(n==null&&(n={}),Ue.ce||Ue.parent&&Dn(Ue.parent)&&Ue.parent.ce){const c=i!=null&&n.key==null?Fe({},n,{key:i}):n,u=Object.keys(c).length>0;return t!=="default"&&(c.name=t),tt(),fs(nt,null,[Ce("slot",c,s)],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);const l=Ft.length;tt();let a;try{const c=o&&oa(o(n)),u=n.key||i||c&&c.key;a=fs(nt,{key:(u&&!lt(u)?u:`_${t}`)+(!c&&s?"_fb":"")},c||(s?s():[]),c&&e._===1?64:-2)}catch(c){for(let u=Ft.length;u>l;u--)Vi();throw c}finally{o&&o._c&&(o._d=!0)}return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),a}function oa(e){return e.some(t=>ds(t)?!(t.type===Mt||t.type===nt&&!oa(t.children)):!0)?e:null}const ri=e=>e?Ta(e)?mr(e):ri(e.parent):null,ss=Fe(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=>ri(e.parent),$root:e=>ri(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>aa(e),$forceUpdate:e=>e.f||(e.f=()=>{Ii(e.update)}),$nextTick:e=>e.n||(e.n=cr.bind(e.proxy)),$watch:e=>Wu.bind(e)}),Nr=(e,t)=>e!==we&&!e.__isScriptSetup&&ye(e,t),yf={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:a}=e;if(t[0]!=="$"){const p=o[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 i[t]}else{if(Nr(s,t))return o[t]=1,s[t];if(r!==we&&ye(r,t))return o[t]=2,r[t];if(ye(i,t))return o[t]=3,i[t];if(n!==we&&ye(n,t))return o[t]=4,n[t];ii&&(o[t]=0)}}const c=ss[t];let u,f;if(c)return t==="$attrs"&&Ge(e.attrs,"get",""),c(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==we&&ye(n,t))return o[t]=4,n[t];if(f=a.config.globalProperties,ye(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Nr(r,t)?(r[t]=n,!0):s!==we&&ye(s,t)?(s[t]=n,!0):ye(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:i,type:o}},l){let a;return!!(n[l]||e!==we&&l[0]!=="$"&&ye(e,l)||Nr(t,l)||ye(i,l)||ye(s,l)||ye(ss,l)||ye(r.config.globalProperties,l)||(a=o.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ye(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function _o(e){return Q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ii=!0;function vf(e){const t=aa(e),n=e.proxy,s=e.ctx;ii=!1,t.beforeCreate&&bo(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:p,beforeUpdate:g,updated:_,activated:w,deactivated:S,beforeDestroy:E,beforeUnmount:y,destroyed:C,unmounted:O,render:N,renderTracked:Z,renderTriggered:j,errorCaptured:F,serverPrefetch:B,expose:oe,inheritAttrs:D,components:Ae,directives:xe,filters:q}=t;if(c&&_f(c,s,null),o)for(const G in o){const re=o[G];se(re)&&(s[G]=re.bind(n))}if(r){const G=r.call(n,n);_e(G)&&(e.data=vs(G))}if(ii=!0,i)for(const G in i){const re=i[G],Le=se(re)?re.bind(n,n):se(re.get)?re.get.bind(n,n):Ct,pe=!se(re)&&se(re.set)?re.set.bind(n):Ct,Se=ne({get:Le,set:pe});Object.defineProperty(s,G,{enumerable:!0,configurable:!0,get:()=>Se.value,set:Oe=>Se.value=Oe})}if(l)for(const G in l)la(l[G],s,n,G);if(a){const G=se(a)?a.call(n):a;Reflect.ownKeys(G).forEach(re=>{$s(re,G[re])})}u&&bo(u,e,"c");function X(G,re){Q(re)?re.forEach(Le=>G(Le.bind(n))):re&&G(re.bind(n))}if(X(sf,f),X(rf,p),X(of,g),X(lf,_),X(ef,w),X(tf,S),X(df,F),X(ff,Z),X(uf,j),X(af,y),X(Ni,O),X(cf,B),Q(oe))if(oe.length){const G=e.exposed||(e.exposed={});oe.forEach(re=>{Object.defineProperty(G,re,{get:()=>n[re],set:Le=>n[re]=Le,enumerable:!0})})}else e.exposed||(e.exposed={});N&&e.render===Ct&&(e.render=N),D!=null&&(e.inheritAttrs=D),Ae&&(e.components=Ae),xe&&(e.directives=xe),B&&Li(e)}function _f(e,t,n=Ct){Q(e)&&(e=oi(e));for(const s in e){const r=e[s];let i;_e(r)?"default"in r?i=dt(r.from||s,r.default,!0):i=dt(r.from||s):i=dt(r),Ie(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function bo(e,t,n){mt(Q(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function la(e,t,n,s){let r=s.includes(".")?ta(n,s):()=>n[s];if(Pe(e)){const i=t[e];se(i)&&vn(r,i)}else if(se(e))vn(r,e.bind(n));else if(_e(e))if(Q(e))e.forEach(i=>la(i,t,n,s));else{const i=se(e.handler)?e.handler.bind(n):t[e.handler];se(i)&&vn(r,i,e)}}function aa(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(c=>Gs(a,c,o,!0)),Gs(a,t,o)),_e(t)&&i.set(t,a),a}function Gs(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Gs(e,i,n,!0),r&&r.forEach(o=>Gs(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=bf[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const bf={data:wo,props:Eo,emits:Eo,methods:Yn,computed:Yn,beforeCreate:Ye,created:Ye,beforeMount:Ye,mounted:Ye,beforeUpdate:Ye,updated:Ye,beforeDestroy:Ye,beforeUnmount:Ye,destroyed:Ye,unmounted:Ye,activated:Ye,deactivated:Ye,errorCaptured:Ye,serverPrefetch:Ye,components:Yn,directives:Yn,watch:Ef,provide:wo,inject:wf};function wo(e,t){return t?e?function(){return Fe(se(e)?e.call(this,this):e,se(t)?t.call(this,this):t)}:t:e}function wf(e,t){return Yn(oi(e),oi(t))}function oi(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ye(e,t){return e?[...new Set([].concat(e,t))]:t}function Yn(e,t){return e?Fe(Object.create(null),e,t):t}function Eo(e,t){return e?Q(e)&&Q(t)?[...new Set([...e,...t])]:Fe(Object.create(null),_o(e),_o(t??{})):t}function Ef(e,t){if(!e)return t;if(!t)return e;const n=Fe(Object.create(null),e);for(const s in t)n[s]=Ye(e[s],t[s]);return n}function ca(){return{app:null,config:{isNativeTag:wl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Sf=0;function Rf(e,t){return function(s,r=null){se(s)||(s=Fe({},s)),r!=null&&!_e(r)&&(r=null);const i=ca(),o=new WeakSet,l=[];let a=!1;const c=i.app={_uid:Sf++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:td,get config(){return i.config},set config(u){},use(u,...f){return o.has(u)||(u&&se(u.install)?(o.add(u),u.install(c,...f)):se(u)&&(o.add(u),u(c,...f))),c},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),c},component(u,f){return f?(i.components[u]=f,c):i.components[u]},directive(u,f){return f?(i.directives[u]=f,c):i.directives[u]},mount(u,f,p){if(!a){const g=c._ceVNode||Ce(s,r);return g.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),e(g,u,p),a=!0,c._container=u,u.__vue_app__=c,mr(g.component)}},onUnmount(u){l.push(u)},unmount(){a&&(mt(l,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return i.provides[u]=f,c},runWithContext(u){const f=_n;_n=c;try{return u()}finally{_n=f}}};return c}}let _n=null;const Tf=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${et(t)}Modifiers`]||e[`${on(t)}Modifiers`];function Af(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||we;let r=n;const i=t.startsWith("update:"),o=i&&Tf(s,t.slice(7));o&&(o.trim&&(r=n.map(u=>Pe(u)?u.trim():u)),o.number&&(r=r.map(ir)));let l,a=s[l=Or(t)]||s[l=Or(et(t))];!a&&i&&(a=s[l=Or(on(t))]),a&&mt(a,e,6,r);const c=s[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,mt(c,e,6,r)}}const xf=new WeakMap;function ua(e,t,n=!1){const s=n?xf:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!se(e)){const a=c=>{const u=ua(c,t,!0);u&&(l=!0,Fe(o,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(_e(e)&&s.set(e,null),null):(Q(i)?i.forEach(a=>o[a]=null):Fe(o,i),_e(e)&&s.set(e,o),o)}function hr(e,t){return!e||!er(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ye(e,t[0].toLowerCase()+t.slice(1))||ye(e,on(t))||ye(e,t))}function So(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:a,render:c,renderCache:u,props:f,data:p,setupState:g,ctx:_,inheritAttrs:w}=e,S=Hs(e);let E,y;try{if(n.shapeFlag&4){const O=r||s,N=O;E=Rt(c.call(N,O,u,f,g,p,_)),y=l}else{const O=t;E=Rt(O.length>1?O(f,{attrs:l,slots:o,emit:a}):O(f,null)),y=t.props?l:Cf(l)}}catch(O){Ft.length=0,bs(O,e,1),E=Ce(Mt)}let C=E;if(y&&w!==!1){const O=Object.keys(y),{shapeFlag:N}=C;O.length&&N&7&&(i&&O.some(tr)&&(y=Pf(y,i)),C=Nn(C,y,!1,!0))}if(n.dirs&&(C=Nn(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition){const O=ur(C.type)&&sa(C)||C;Di(O,n.transition)}return E=C,Hs(S),E}const Cf=e=>{let t;for(const n in e)(n==="class"||n==="style"||er(n))&&((t||(t={}))[n]=e[n]);return t},Pf=(e,t)=>{const n={};for(const s in e)(!tr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Of(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Ro(s,o,c):!!o;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const p=u[f];if(fa(o,s,p)&&!hr(c,p))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?Ro(s,o,c):!0:!!o;return!1}function Ro(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(fa(t,e,i)&&!hr(n,i))return!0}return!1}function fa(e,t,n){const s=e[n],r=t[n];return n==="style"&&_e(s)&&_e(r)?!Ut(s,r):s!==r}function Mf({vnode:e,parent:t,suspense:n},s){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=s,e=r),r===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const da={},ha=()=>Object.create(da),pa=e=>Object.getPrototypeOf(e)===da;function kf(e,t,n,s=!1){const r={},i=ha();e.propsDefaults=Object.create(null),ma(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Kl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function If(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=de(r),[a]=e.propsOptions;let c=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let p=u[f];if(hr(e.emitsOptions,p))continue;const g=t[p];if(a)if(ye(i,p))g!==i[p]&&(i[p]=g,c=!0);else{const _=et(p);r[_]=li(a,l,_,g,e,!1)}else g!==i[p]&&(i[p]=g,c=!0)}}}else{ma(e,t,r,i)&&(c=!0);let u;for(const f in l)(!t||!ye(t,f)&&((u=on(f))===f||!ye(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(r[f]=li(a,l,f,void 0,e,!0)):delete r[f]);if(i!==l)for(const f in i)(!t||!ye(t,f))&&(delete i[f],c=!0)}c&&$t(e.attrs,"set","")}function ma(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(Zn(a))continue;const c=t[a];let u;r&&ye(r,u=et(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:hr(e.emitsOptions,a)||(!(a in s)||c!==s[a])&&(s[a]=c,o=!0)}if(i){const a=de(n),c=l||we;for(let u=0;u<i.length;u++){const f=i[u];n[f]=li(r,a,f,c[f],e,!ye(c,f))}}return o}function li(e,t,n,s,r,i){const o=e[n];if(o!=null){const l=ye(o,"default");if(l&&s===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&se(a)){const{propsDefaults:c}=r;if(n in c)s=c[n];else{const u=ws(r);s=c[n]=a.call(null,t),u()}}else s=a;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!l?s=!1:o[1]&&(s===""||s===on(n))&&(s=!0))}return s}const Df=new WeakMap;function ga(e,t,n=!1){const s=n?Df:t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},l=[];let a=!1;if(!se(e)){const u=f=>{a=!0;const[p,g]=ga(f,t,!0);Fe(o,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(!i&&!a)return _e(e)&&s.set(e,pn),pn;if(Q(i))for(let u=0;u<i.length;u++){const f=et(i[u]);To(f)&&(o[f]=we)}else if(i)for(const u in i){const f=et(u);if(To(f)){const p=i[u],g=o[f]=Q(p)||se(p)?{type:p}:Fe({},p),_=g.type;let w=!1,S=!0;if(Q(_))for(let E=0;E<_.length;++E){const y=_[E],C=se(y)&&y.name;if(C==="Boolean"){w=!0;break}else C==="String"&&(S=!1)}else w=se(_)&&_.name==="Boolean";g[0]=w,g[1]=S,(w||ye(g,"default"))&&l.push(f)}}const c=[o,l];return _e(e)&&s.set(e,c),c}function To(e){return e[0]!=="$"&&!Zn(e)}const ji=e=>e==="_"||e==="_ctx"||e==="$stable",$i=e=>Q(e)?e.map(Rt):[Rt(e)],Lf=(e,t,n)=>{if(t._n)return t;const s=ts((...r)=>$i(t(...r)),n);return s._c=!1,s},ya=(e,t,n)=>{const s=e._ctx;for(const r in e){if(ji(r))continue;const i=e[r];if(se(i))t[r]=Lf(r,i,s);else if(i!=null){const o=$i(i);t[r]=()=>o}}},va=(e,t)=>{const n=$i(t);e.slots.default=()=>n},_a=(e,t,n)=>{for(const s in t)(n||!ji(s))&&(e[s]=t[s])},Nf=(e,t,n)=>{const s=e.slots=ha();if(e.vnode.shapeFlag&32){const r=t._;r?(_a(s,t,n),n&&Tl(s,"_",r,!0)):ya(t,s)}else t&&va(e,t)},jf=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=we;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:_a(r,t,n):(i=!t.$stable,ya(t,r)),o=t}else t&&(va(e,t),o={default:1});if(i)for(const l in r)!ji(l)&&o[l]==null&&delete r[l]},Qe=Bf;function $f(e){return zf(e)}function zf(e,t){const n=or();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:p,setScopeId:g=Ct,insertStaticContent:_}=e,w=(h,m,v,A=null,x=null,R=null,$=void 0,I=null,L=!!m.dynamicChildren)=>{if(h===m)return;h&&!Hn(h,m)&&(A=P(h),Oe(h,x,R,!0),h=null),m.patchFlag===-2&&(L=!1,m.dynamicChildren=null),m.dynamicChildren&&h&&h.dynamicChildren&&h.dynamicChildren.hasOnce&&(m.dynamicChildren===pn&&(m.dynamicChildren=[]),m.dynamicChildren.hasOnce=!0);const{type:M,ref:Y,shapeFlag:V}=m;switch(M){case pr:S(h,m,v,A);break;case Mt:E(h,m,v,A);break;case $r:h==null&&y(m,v,A,$);break;case nt:Ae(h,m,v,A,x,R,$,I,L);break;default:V&1?N(h,m,v,A,x,R,$,I,L):V&6?xe(h,m,v,A,x,R,$,I,L):(V&64||V&128)&&M.process(h,m,v,A,x,R,$,I,L,H)}Y!=null&&x?ns(Y,h&&h.ref,R,m||h,!m):Y==null&&h&&h.ref!=null&&ns(h.ref,null,R,h,!0)},S=(h,m,v,A)=>{if(h==null)s(m.el=l(m.children),v,A);else{const x=m.el=h.el;m.children!==h.children&&c(x,m.children)}},E=(h,m,v,A)=>{h==null?s(m.el=a(m.children||""),v,A):m.el=h.el},y=(h,m,v,A)=>{[h.el,h.anchor]=_(h.children,m,v,A,h.el,h.anchor)},C=({el:h,anchor:m},v,A)=>{let x;for(;h&&h!==m;)x=p(h),s(h,v,A),h=x;s(m,v,A)},O=({el:h,anchor:m})=>{let v;for(;h&&h!==m;)v=p(h),r(h),h=v;r(m)},N=(h,m,v,A,x,R,$,I,L)=>{if(m.type==="svg"?$="svg":m.type==="math"&&($="mathml"),h==null)Z(m,v,A,x,R,$,I,L);else{const M=h.el&&h.el._isVueCE?h.el:null;try{M&&M._beginPatch(),B(h,m,x,R,$,I,L)}finally{M&&M._endPatch()}}},Z=(h,m,v,A,x,R,$,I)=>{let L,M;const{props:Y,shapeFlag:V,transition:W,dirs:ee}=h;if(L=h.el=o(h.type,R,Y&&Y.is,Y),V&8?u(L,h.children):V&16&&F(h.children,L,null,A,x,jr(h,R),$,I),ee&&cn(h,null,A,"created"),j(L,h,h.scopeId,$,A),Y){for(const he in Y)he!=="value"&&!Zn(he)&&i(L,he,null,Y[he],R,A);"value"in Y&&i(L,"value",null,Y.value,R),(M=Y.onVnodeBeforeMount)&&wt(M,A,h)}ee&&cn(h,null,A,"beforeMount");const ae=Vf(x,W);ae&&W.beforeEnter(L),s(L,m,v),((M=Y&&Y.onVnodeMounted)||ae||ee)&&Qe(()=>{M&&wt(M,A,h),ae&&W.enter(L),ee&&cn(h,null,A,"mounted")},x)},j=(h,m,v,A,x)=>{if(v&&g(h,v),A)for(let R=0;R<A.length;R++)g(h,A[R]);if(x){let R=x.subTree;if(m===R||Ea(R.type)&&(R.ssContent===m||R.ssFallback===m)){const $=x.vnode;j(h,$,$.scopeId,$.slotScopeIds,x.parent)}}},F=(h,m,v,A,x,R,$,I,L=0)=>{for(let M=L;M<h.length;M++){const Y=h[M]=I?jt(h[M]):Rt(h[M]);w(null,Y,m,v,A,x,R,$,I)}},B=(h,m,v,A,x,R,$)=>{const I=m.el=h.el;let{patchFlag:L,dynamicChildren:M,dirs:Y}=m;L|=h.patchFlag&16;const V=h.props||we,W=m.props||we;let ee;if(v&&un(v,!1),(ee=W.onVnodeBeforeUpdate)&&wt(ee,v,m,h),Y&&cn(m,h,v,"beforeUpdate"),v&&un(v,!0),M&&(!h.dynamicChildren||h.dynamicChildren.length!==M.length)&&(L=0,$=!1,M=null),(V.innerHTML&&W.innerHTML==null||V.textContent&&W.textContent==null)&&u(I,""),M?oe(h.dynamicChildren,M,I,v,A,jr(m,x),R):$||re(h,m,I,null,v,A,jr(m,x),R,!1),L>0){if(L&16)D(I,V,W,v,x);else if(L&2&&V.class!==W.class&&i(I,"class",null,W.class,x),L&4&&i(I,"style",V.style,W.style,x),L&8){const ae=m.dynamicProps;for(let he=0;he<ae.length;he++){const me=ae[he],Me=V[me],Ne=W[me];(Ne!==Me||me==="value")&&i(I,me,Me,Ne,x,v)}}L&1&&h.children!==m.children&&u(I,m.children)}else!$&&M==null&&D(I,V,W,v,x);((ee=W.onVnodeUpdated)||Y)&&Qe(()=>{ee&&wt(ee,v,m,h),Y&&cn(m,h,v,"updated")},A)},oe=(h,m,v,A,x,R,$)=>{for(let I=0;I<m.length;I++){const L=h[I],M=m[I],Y=L.el&&(L.type===nt||!Hn(L,M)||L.shapeFlag&198)?f(L.el):v;w(L,M,Y,null,A,x,R,$,!0)}},D=(h,m,v,A,x)=>{if(m!==v){if(m!==we)for(const R in m)!Zn(R)&&!(R in v)&&i(h,R,m[R],null,x,A);for(const R in v){if(Zn(R))continue;const $=v[R],I=m[R];$!==I&&R!=="value"&&i(h,R,I,$,x,A)}"value"in v&&i(h,"value",m.value,v.value,x)}},Ae=(h,m,v,A,x,R,$,I,L)=>{const M=m.el=h?h.el:l(""),Y=m.anchor=h?h.anchor:l("");let{patchFlag:V,dynamicChildren:W,slotScopeIds:ee}=m;ee&&(I=I?I.concat(ee):ee),h==null?(s(M,v,A),s(Y,v,A),F(m.children||[],v,Y,x,R,$,I,L)):V>0&&V&64&&W&&h.dynamicChildren&&h.dynamicChildren.length===W.length?(oe(h.dynamicChildren,W,v,x,R,$,I),(m.key!=null||x&&m===x.subTree)&&zi(h,m,!0)):re(h,m,v,Y,x,R,$,I,L)},xe=(h,m,v,A,x,R,$,I,L)=>{m.slotScopeIds=I,h==null?m.shapeFlag&512?x.ctx.activate(m,v,A,$,L):q(m,v,A,x,R,$,L):Ee(h,m,L)},q=(h,m,v,A,x,R,$)=>{const I=h.component=Wf(h,A,x);if(fr(h)&&(I.ctx.renderer=H),Jf(I,!1,$),I.asyncDep){if(x&&x.registerDep(I,X,$),!h.el){const L=I.subTree=Ce(Mt);E(null,L,m,v),h.placeholder=L.el}}else X(I,h,m,v,x,R,$)},Ee=(h,m,v)=>{const A=m.component=h.component;if(Of(h,m,v))if(A.asyncDep&&!A.asyncResolved){m.el=h.el,G(A,m,v);return}else A.next=m,A.update();else m.el=h.el,A.vnode=m},X=(h,m,v,A,x,R,$)=>{const I=()=>{if(h.isMounted){let{next:V,bu:W,u:ee,parent:ae,vnode:he}=h;{const ct=ba(h);if(ct){V&&(V.el=he.el,G(h,V,$)),ct.asyncDep.then(()=>{Qe(()=>{h.isUnmounted||M()},x)});return}}let me=V,Me;un(h,!1),V?(V.el=he.el,G(h,V,$)):V=he,W&&js(W),(Me=V.props&&V.props.onVnodeBeforeUpdate)&&wt(Me,ae,V,he),un(h,!0);const Ne=So(h),at=h.subTree;h.subTree=Ne,w(at,Ne,f(at.el),P(at),h,x,R),V.el=Ne.el,me===null&&Mf(h,Ne.el),ee&&Qe(ee,x),(Me=V.props&&V.props.onVnodeUpdated)&&Qe(()=>wt(Me,ae,V,he),x)}else{let V;const{el:W,props:ee}=m,{bm:ae,m:he,parent:me,root:Me,type:Ne}=h,at=Dn(m);un(h,!1),ae&&js(ae),!at&&(V=ee&&ee.onVnodeBeforeMount)&&wt(V,me,m),un(h,!0);{Me.ce&&Me.ce._hasShadowRoot()&&Me.ce._injectChildStyle(Ne,h.parent?h.parent.type:void 0);const ct=h.subTree=So(h);w(null,ct,v,A,h,x,R),m.el=ct.el}if(he&&Qe(he,x),!at&&(V=ee&&ee.onVnodeMounted)){const ct=m;Qe(()=>wt(V,me,ct),x)}(m.shapeFlag&256||me&&Dn(me.vnode)&&me.vnode.shapeFlag&256)&&h.a&&Qe(h.a,x),h.isMounted=!0,m=v=A=null}};h.scope.on();const L=h.effect=new kl(I);h.scope.off();const M=h.update=L.run.bind(L),Y=h.job=L.runIfDirty.bind(L);Y.i=h,Y.id=h.uid,L.scheduler=()=>Ii(Y),un(h,!0),M()},G=(h,m,v)=>{m.component=h;const A=h.vnode.props;h.vnode=m,h.next=null,If(h,m.props,A,v),jf(h,m.children,v),qt(),uo(h),Ht()},re=(h,m,v,A,x,R,$,I,L=!1)=>{const M=h&&h.children,Y=h?h.shapeFlag:0,V=m.children,{patchFlag:W,shapeFlag:ee}=m;if(W>0){if(W&128){pe(M,V,v,A,x,R,$,I,L);return}else if(W&256){Le(M,V,v,A,x,R,$,I,L);return}}ee&8?(Y&16&&qe(M,x,R),V!==M&&u(v,V)):Y&16?ee&16?pe(M,V,v,A,x,R,$,I,L):qe(M,x,R,!0):(Y&8&&u(v,""),ee&16&&F(V,v,A,x,R,$,I,L))},Le=(h,m,v,A,x,R,$,I,L)=>{h=h||pn,m=m||pn;const M=h.length,Y=m.length,V=Math.min(M,Y);let W;for(W=0;W<V;W++){const ee=m[W]=L?jt(m[W]):Rt(m[W]);w(h[W],ee,v,null,x,R,$,I,L)}M>Y?qe(h,x,R,!0,!1,V):F(m,v,A,x,R,$,I,L,V)},pe=(h,m,v,A,x,R,$,I,L)=>{let M=0;const Y=m.length;let V=h.length-1,W=Y-1;for(;M<=V&&M<=W;){const ee=h[M],ae=m[M]=L?jt(m[M]):Rt(m[M]);if(Hn(ee,ae))w(ee,ae,v,null,x,R,$,I,L);else break;M++}for(;M<=V&&M<=W;){const ee=h[V],ae=m[W]=L?jt(m[W]):Rt(m[W]);if(Hn(ee,ae))w(ee,ae,v,null,x,R,$,I,L);else break;V--,W--}if(M>V){if(M<=W){const ee=W+1,ae=ee<Y?m[ee].el:A;for(;M<=W;)w(null,m[M]=L?jt(m[M]):Rt(m[M]),v,ae,x,R,$,I,L),M++}}else if(M>W)for(;M<=V;)Oe(h[M],x,R,!0),M++;else{const ee=M,ae=M,he=new Map;for(M=ae;M<=W;M++){const He=m[M]=L?jt(m[M]):Rt(m[M]);He.key!=null&&he.set(He.key,M)}let me,Me=0;const Ne=W-ae+1;let at=!1,ct=0;const _t=new Array(Ne);for(M=0;M<Ne;M++)_t[M]=0;for(M=ee;M<=V;M++){const He=h[M];if(Me>=Ne){Oe(He,x,R,!0);continue}let Je;if(He.key!=null)Je=he.get(He.key);else for(me=ae;me<=W;me++)if(_t[me-ae]===0&&Hn(He,m[me])){Je=me;break}Je===void 0?Oe(He,x,R,!0):(_t[Je-ae]=M+1,Je>=ct?ct=Je:at=!0,w(He,m[Je],v,null,x,R,$,I,L),Me++)}const Es=at?Ff(_t):pn;for(me=Es.length-1,M=Ne-1;M>=0;M--){const He=ae+M,Je=m[He],En=m[He+1],Ss=He+1<Y?En.el||wa(En):A;_t[M]===0?w(null,Je,v,Ss,x,R,$,I,L):at&&(me<0||M!==Es[me]?Se(Je,v,Ss,2):me--)}}},Se=(h,m,v,A,x=null)=>{const{el:R,type:$,transition:I,children:L,shapeFlag:M}=h;if(M&6){Se(h.component.subTree,m,v,A);return}if(M&128){h.suspense.move(m,v,A);return}if(M&64){$.move(h,m,v,H);return}if($===nt){s(R,m,v);for(let V=0;V<L.length;V++)Se(L[V],m,v,A);s(h.anchor,m,v);return}if($===$r){C(h,m,v);return}if(A!==2&&M&1&&I)if(A===0)I.persisted&&!R[Lr]?s(R,m,v):(I.beforeEnter(R),s(R,m,v),Qe(()=>I.enter(R),x));else{const{leave:V,delayLeave:W,afterLeave:ee}=I,ae=()=>{h.ctx.isUnmounted?r(R):s(R,m,v)},he=()=>{const me=R._isLeaving||!!R[Lr];R._isLeaving&&R[Lr](!0),I.persisted&&!me?ae():V(R,()=>{ae(),ee&&ee()})};W?W(R,ae,he):he()}else s(R,m,v)},Oe=(h,m,v,A=!1,x=!1)=>{const{type:R,props:$,ref:I,children:L,dynamicChildren:M,shapeFlag:Y,patchFlag:V,dirs:W,cacheIndex:ee,memo:ae}=h;if((V===-2||M&&M.hasOnce)&&(x=!1),I!=null&&(qt(),ns(I,null,v,h,!0),Ht()),ee!=null&&(!h.ctx||h.ctx===m)&&(m.renderCache[ee]=void 0),Y&256){m.ctx.deactivate(h);return}const he=Y&1&&W,me=!Dn(h);let Me;if(me&&(Me=$&&$.onVnodeBeforeUnmount)&&wt(Me,m,h),Y&6)st(h.component,v,A);else{if(Y&128){h.suspense.unmount(v,A);return}he&&cn(h,null,m,"beforeUnmount"),Y&64?h.type.remove(h,m,v,H,A):M&&!M.hasOnce&&(R!==nt||V>0&&V&64)?qe(M,m,v,!1,!0):(R===nt&&V&384||!x&&Y&16)&&qe(L,m,v),A&&yt(h)}const Ne=ae!=null&&ee==null;(me&&(Me=$&&$.onVnodeUnmounted)||he||Ne)&&Qe(()=>{Me&&wt(Me,m,h),he&&cn(h,null,m,"unmounted"),Ne&&(h.el=null)},v)},yt=h=>{const{type:m,el:v,anchor:A,transition:x}=h;if(m===nt){vt(v,A);return}if(m===$r){O(h),x&&!x.persisted&&x.afterLeave&&x.afterLeave();return}const R=()=>{r(v),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(h.shapeFlag&1&&x&&!x.persisted){const{leave:$,delayLeave:I}=x,L=()=>$(v,R);I?I(h.el,R,L):L()}else R()},vt=(h,m)=>{let v;for(;h!==m;)v=p(h),r(h),h=v;r(m)},st=(h,m,v)=>{const{bum:A,scope:x,job:R,subTree:$,um:I,m:L,a:M}=h;Ao(L),Ao(M),A&&js(A),x.stop(),R?(R.flags|=8,Oe($,h,m,v)):h.vnode.el&&$&&($.transition=h.vnode.transition,Oe($,h,m,v)),I&&Qe(I,m),Qe(()=>{h.isUnmounted=!0},m)},qe=(h,m,v,A=!1,x=!1,R=0)=>{for(let $=R;$<h.length;$++)Oe(h[$],m,v,A,x)},P=h=>{if(h.shapeFlag&6)return P(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const m=p(h.anchor||h.el),v=m&&m[na];return v?p(v):m};let U=!1;const z=(h,m,v)=>{let A;h==null?m._vnode&&(Oe(m._vnode,null,null,!0),A=m._vnode.component):w(m._vnode||null,h,m,null,null,null,v),m._vnode=h,U||(U=!0,uo(A),Ql(),U=!1)},H={p:w,um:Oe,m:Se,r:yt,mt:q,mc:F,pc:re,pbc:oe,n:P,o:e};return{render:z,hydrate:void 0,createApp:Rf(z)}}function jr({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 un({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Vf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zi(e,t,n=!1){const s=e.children,r=t.children;if(Q(s)&&Q(r))for(let i=0;i<s.length;i++){const o=s[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=jt(r[i]),l.el=o.el),!n&&l.patchFlag!==-2&&zi(o,l)),l.type===pr&&(l.patchFlag===-1&&(l=r[i]=jt(l)),l.el=o.el),l.type===Mt&&!l.el&&(l.el=o.el)}}function Ff(e){const t=e.slice(),n=[0];let s,r,i,o,l;const a=e.length;for(s=0;s<a;s++){const c=e[s];if(c!==0){if(r=n[n.length-1],e[r]<c){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<c?i=l+1:o=l;c<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function ba(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ba(t)}function Ao(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function wa(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?wa(t.subTree):null}const Ea=e=>e.__isSuspense;function Bf(e,t){t&&t.pendingBranch?Q(e)?t.effects.push(...e):t.effects.push(e):Uu(e)}const nt=Symbol.for("v-fgt"),pr=Symbol.for("v-txt"),Mt=Symbol.for("v-cmt"),$r=Symbol.for("v-stc"),Ft=[];let it=null;function tt(e=!1){Ft.push(it=e?null:[])}function Vi(){Ft.pop(),it=Ft[Ft.length-1]||null}let us=1;function Ws(e,t=!1){us+=e,e<0&&it&&t&&(it.hasOnce=!0)}function Sa(e){return e.dynamicChildren=us>0?it||pn:null,Vi(),us>0&&it&&it.push(e),e}function Dt(e,t,n,s,r,i){return Sa($e(e,t,n,s,r,i,!0))}function fs(e,t,n,s,r){return Sa(Ce(e,t,n,s,r,!0))}function ds(e){return e?e.__v_isVNode===!0:!1}function Hn(e,t){return e.type===t.type&&e.key===t.key}const Ra=({key:e})=>e??null,zs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Pe(e)||Ie(e)||se(e)?{i:Ue,r:e,k:t,f:!!n}:e:null);function $e(e,t=null,n=null,s=0,r=null,i=e===nt?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ra(t),ref:t&&zs(t),scopeId:Xl,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:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ue};return l?(Js(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Pe(n)?8:16),us>0&&!o&&it&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&it.push(a),a}const Ce=Uf;function Uf(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===pf)&&(e=Mt),ds(e)){const l=Nn(e,t,!0);return n&&Js(l,n),us>0&&!i&&it&&(l.shapeFlag&6?it[it.indexOf(e)]=l:it.push(l)),l.patchFlag=-2,l}if(ed(e)&&(e=e.__vccOpts),t){t=qf(t);let{class:l,style:a}=t;l&&!Pe(l)&&(t.class=kn(l)),_e(a)&&(ar(a)&&!Q(a)&&(a=Fe({},a)),t.style=Ri(a))}const o=Pe(e)?1:Ea(e)?128:ur(e)?64:_e(e)?4:se(e)?2:0;return $e(e,t,n,s,r,o,i,!0)}function qf(e){return e?ar(e)||pa(e)?Fe({},e):e:null}function Nn(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:a}=e,c=t?Hf(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ra(c),ref:t&&t.ref?n&&i?Q(i)?i.concat(zs(t)):[i,zs(t)]:zs(t):i,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!==nt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nn(e.ssContent),ssFallback:e.ssFallback&&Nn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return a&&s&&Di(u,a.clone(u)),u}function ai(e=" ",t=0){return Ce(pr,null,e,t)}function Kn(e="",t=!1){return t?(tt(),fs(Mt,null,e)):Ce(Mt,null,e)}function Rt(e){return e==null||typeof e=="boolean"?Ce(Mt):Q(e)?Ce(nt,null,e.slice()):ds(e)?jt(e):Ce(pr,null,String(e))}function jt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nn(e)}function Js(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(Q(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Js(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!pa(t)?t._ctx=Ue:r===3&&Ue&&(Ue.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(se(t)){if(s&65){Js(e,{default:t});return}t={default:t,_ctx:Ue},n=32}else t=String(t),s&64?(n=16,t=[ai(t)]):n=8;e.children=t,e.shapeFlag|=n}function Hf(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=kn([t.class,s.class]));else if(r==="style")t.style=Ri([t.style,s.style]);else if(er(r)){const i=t[r],o=s[r];o&&i!==o&&!(Q(i)&&i.includes(o))?t[r]=i?[].concat(i,o):o:o==null&&i==null&&!tr(r)&&(t[r]=o)}else r!==""&&(t[r]=s[r])}return t}function wt(e,t,n,s=null){mt(e,t,7,[n,s])}const Kf=ca();let Gf=0;function Wf(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||Kf,i={uid:Gf++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Pl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ga(s,r),emitsOptions:ua(s,r),emit:null,emitted:null,propsDefaults:we,inheritAttrs:s.inheritAttrs,ctx:we,data:we,props:we,attrs:we,slots:we,refs:we,setupState:we,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Af.bind(null,i),e.ce&&e.ce(i),i}let Be=null;const Fi=()=>Be||Ue;let Ys,hs;{const e=or(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Ys=t("__VUE_INSTANCE_SETTERS__",n=>Be=n),hs=t("__VUE_SSR_SETTERS__",n=>jn=n)}const ws=e=>{const t=Be;return Ys(e),e.scope.on(),()=>{e.scope.off(),Ys(t)}},xo=()=>{Be&&Be.scope.off(),Ys(null)};function Ta(e){return e.vnode.shapeFlag&4}let jn=!1;function Jf(e,t=!1,n=!1){t&&hs(t);const{props:s,children:r}=e.vnode,i=Ta(e);kf(e,s,i,t),Nf(e,r,n||t);const o=i?Yf(e,t):void 0;return t&&hs(!1),o}function Yf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,yf);const{setup:s}=n;if(s){qt();const r=e.setupContext=s.length>1?Zf(e):null,i=ws(e),o=_s(s,e,0,[e.props,r]),l=El(o);if(Ht(),i(),(l||e.sp)&&!Dn(e)&&Li(e),l){if(o.then(xo,xo),t)return o.then(a=>{hs(!0);try{Co(e,a,t)}finally{hs(!1)}}).catch(a=>{bs(a,e,0)});e.asyncDep=o}else Co(e,o)}else Aa(e)}function Co(e,t,n){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=Wl(t)),Aa(e)}function Aa(e,t,n){const s=e.type;e.render||(e.render=s.render||Ct);{const r=ws(e);qt();try{vf(e)}finally{Ht(),r()}}}const Qf={get(e,t){return Ge(e,"get",""),e[t]}};function Zf(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Qf),slots:e.slots,emit:e.emit,expose:t}}function mr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Wl(ki(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ss)return ss[n](e)},has(t,n){return n in t||n in ss}})):e.proxy}function Xf(e,t=!0){return se(e)?e.displayName||e.name:e.name||t&&e.__name}function ed(e){return se(e)&&"__vccOpts"in e}const ne=(e,t)=>$u(e,t,jn);function xa(e,t,n){try{Ws(-1);const s=arguments.length;return s===2?_e(t)&&!Q(t)?ds(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&ds(n)&&(n=[n]),Ce(e,t,n))}finally{Ws(1)}}const td="3.5.43";let ci;const Po=typeof window<"u"&&window.trustedTypes;if(Po)try{ci=Po.createPolicy("vue",{createHTML:e=>e})}catch{}const Ca=ci?e=>ci.createHTML(e):e=>e,nd="http://www.w3.org/2000/svg",sd="http://www.w3.org/1998/Math/MathML",Nt=typeof document<"u"?document:null,Oo=Nt&&Nt.createElement("template"),rd={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"?Nt.createElementNS(nd,e):t==="mathml"?Nt.createElementNS(sd,e):n?Nt.createElement(e,{is:n}):Nt.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Nt.createTextNode(e),createComment:e=>Nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Oo.innerHTML=Ca(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Oo.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},id=Symbol("_vtc");function od(e,t,n){const s=e[id];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Qs=Symbol("_vod"),Pa=Symbol("_vsh"),ld={name:"show",beforeMount(e,{value:t},{transition:n}){e[Qs]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Gn(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),Gn(e,!0),s.enter(e)):s.leave(e,()=>{Gn(e,!1)}):Gn(e,t))},beforeUnmount(e,{value:t}){Gn(e,t)}};function Gn(e,t){e.style.display=t?e[Qs]:"none",e[Pa]=!t}const ad=Symbol(""),cd=/(?:^|;)\s*display\s*:/;function ud(e,t,n){const s=e.style,r=Pe(n);let i=!1;if(n&&!r){if(t)if(Pe(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&Qn(s,l,"")}else for(const o in t)n[o]==null&&Qn(s,o,"");for(const o in n){o==="display"&&(i=!0);const l=n[o];l!=null?dd(e,o,!Pe(t)&&t?t[o]:void 0,l)||Qn(s,o,l):Qn(s,o,"")}}else if(r){if(t!==n){const o=s[ad];o&&(n+=";"+o),s.cssText=n,i=cd.test(n)}}else t&&e.removeAttribute("style");Qs in e&&(e[Qs]=i?s.display:"",e[Pa]&&(s.display="none"))}const ks=/\s*!important$/;function Qn(e,t,n){if(Q(n))n.forEach(s=>Qn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))ks.test(n)?e.setProperty(t,n.replace(ks,""),"important"):e.setProperty(t,n);else{const s=fd(e,t);ks.test(n)?e.setProperty(on(s),n.replace(ks,""),"important"):e[s]=n}}const Mo=["Webkit","Moz","ms"],zr={};function fd(e,t){const n=zr[t];if(n)return n;let s=et(t);if(s!=="filter"&&s in e)return zr[t]=s;s=rr(s);for(let r=0;r<Mo.length;r++){const i=Mo[r]+s;if(i in e)return zr[t]=i}return t}function dd(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Pe(s)&&n===s}const ko="http://www.w3.org/1999/xlink";function Io(e,t,n,s,r,i=uu(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ko,t.slice(6,t.length)):e.setAttributeNS(ko,t,n):n==null||i&&!Al(n)?e.removeAttribute(t):e.setAttribute(t,i?"":lt(n)?String(n):n)}function Do(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Ca(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Al(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(r||t)}function tn(e,t,n,s){e.addEventListener(t,n,s)}function hd(e,t,n,s){e.removeEventListener(t,n,s)}const Lo=Symbol("_vei");function pd(e,t,n,s,r=null){const i=e[Lo]||(e[Lo]={}),o=i[t];if(s&&o)o.value=s;else{const[l,a]=yd(t);if(s){const c=i[t]=bd(s,r);tn(e,l,c,a)}else o&&(hd(e,l,o,a),i[t]=void 0)}}const md=/(Once|Passive|Capture)$/,gd=/^on:?(?:Once|Passive|Capture)$/;function yd(e){let t,n;for(;(n=e.match(md))&&!gd.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):on(e.slice(2)),t]}let Vr=0;const vd=Promise.resolve(),_d=()=>Vr||(vd.then(()=>Vr=0),Vr=Date.now());function bd(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(Q(r)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const o=r.slice(),l=[s];for(let a=0;a<o.length&&!s._stopped;a++){const c=o[a];c&&mt(c,t,5,l)}}else mt(r,t,5,[s])};return n.value=e,n.attached=_d(),n}const No=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,wd=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?od(e,s,o):t==="style"?ud(e,n,s):er(t)?tr(t)||pd(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ed(e,t,s,o))?(Do(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Io(e,t,s,o,i,t!=="value")):e._isVueCE&&(Sd(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Pe(s)))?Do(e,et(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Io(e,t,s,o))};function Ed(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&No(t)&&se(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 No(t)&&Pe(n)?!1:t in e}function Sd(e,t){const n=e._def.props;if(!n)return!1;const s=et(t);return Array.isArray(n)?n.some(r=>et(r)===s):Object.keys(n).some(r=>et(r)===s)}const $n=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Q(t)?n=>js(t,n):t};function Rd(e){e.target.composing=!0}function jo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const At=Symbol("_assign"),Is=Symbol("_initialValue");function Fr(e,t,n){return t&&(e=e.trim()),n&&(e=ir(e)),e}const zm={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e.parentNode&&(e.type==="text"?e[Is]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Is]=e.defaultValue.replace(/\r\n?/g,`
`))),e[At]=$n(r);const i=s||r.props&&r.props.type==="number";tn(e,t?"change":"input",o=>{o.target.composing||e[At](Fr(e.value,n,i))}),(n||i)&&tn(e,"change",()=>{e.value=Fr(e.value,n,i)}),t||(tn(e,"compositionstart",Rd),tn(e,"compositionend",jo),tn(e,"change",jo))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=t??"",i=e[Is];delete e[Is],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[At](Fr(e.value,n,s)):e.value=r},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[At]=$n(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?ir(e.value):e.value,a=t??"";if(l===a)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===a)||(e.value=a)}},Vm={deep:!0,created(e,t,n){e[At]=$n(n),tn(e,"change",()=>{const s=e._modelValue,r=ps(e),i=e.checked,o=e[At];if(Q(s)){const l=Ti(s,r),a=l!==-1;if(i&&!a)o(s.concat(r));else if(!i&&a){const c=[...s];c.splice(l,1),o(c)}}else if(Bt(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(Oa(e,i))})},mounted:$o,beforeUpdate(e,t,n){e[At]=$n(n),$o(e,t,n)}};function $o(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(Q(t))r=Ti(t,s.props.value)>-1;else if(Bt(t))r=t.has(s.props.value);else{if(t===n)return;r=Ut(t,Oa(e,!0))}e.checked!==r&&(e.checked=r)}const Fm={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,tn(e,"change",()=>{const r=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?ir(ps(a)):ps(a)),i=e.multiple,o=i?Bt(e._modelValue)?new Set(r):r:r[0],l=e._pendingValue=[i,i?Q(o)?r.slice():r:o];try{e[At](o)}finally{cr(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[At]=$n(s)},mounted(e,{value:t}){zo(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[At]=$n(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Td(t,n[1],n[0]))&&zo(e,t)}};function Td(e,t,n){if(!n||Q(e))return Ut(e,t);if(Bt(e)){if(e.size!==t.length)return!1;for(const s of t)if(!e.has(s))return!1;return!0}return!1}function zo(e,t){const n=e.multiple,s=Q(t);if(!(n&&!s&&!Bt(t))){for(let r=0,i=e.options.length;r<i;r++){const o=e.options[r],l=ps(o);if(n)if(s){const a=typeof l;a==="string"||a==="number"?o.selected=t.some(c=>String(c)===String(l)):o.selected=Ti(t,l)>-1}else o.selected=t.has(l);else if(Ut(ps(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ps(e){return"_value"in e?e._value:e.value}function Oa(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ad=["ctrl","shift","alt","meta"],xd={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)=>Ad.some(n=>e[`${n}Key`]&&!t.includes(n))},Bm=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...i)=>{for(let o=0;o<t.length;o++){const l=xd[t[o]];if(l&&l(r,t))return}return e(r,...i)}))},Cd={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Um=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=(r=>{if(!("key"in r))return;const i=on(r.key);if(t.some(o=>o===i||Cd[o]===i))return e(r)}))},Pd=Fe({patchProp:wd},rd);let Vo;function Od(){return Vo||(Vo=$f(Pd))}const Md=((...e)=>{const t=Od().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Id(s);if(!r)return;const i=t._component;!se(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,kd(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function kd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Id(e){return Pe(e)?document.querySelector(e):e}let Ma;const gr=e=>Ma=e,ka=Symbol();function ui(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var rs;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(rs||(rs={}));function Dd(){const e=Ol(!0),t=e.run(()=>te({}));let n=[],s=[];const r=ki({install(i){gr(r),r._a=i,i.provide(ka,r),i.config.globalProperties.$pinia=r,s.forEach(o=>n.push(o)),s=[]},use(i){return this._a?n.push(i):s.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const Ia=()=>{};function Fo(e,t,n,s=Ia){e.add(t);const r=()=>{e.delete(t)&&s()};return!n&&Ml()&&hu(r),r}function An(e,...t){e.forEach(n=>{n(...t)})}const Ld=e=>e(),Bo=Symbol(),Br=Symbol();function fi(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];ui(r)&&ui(s)&&e.hasOwnProperty(n)&&!Ie(s)&&!Pt(s)?e[n]=fi(r,s):e[n]=s}return e}const Nd=Symbol();function jd(e){return!ui(e)||!Object.prototype.hasOwnProperty.call(e,Nd)}const{assign:Yt}=Object;function $d(e){return!!(Ie(e)&&e.effect)}function zd(e,t,n,s){const{state:r,actions:i,getters:o}=t,l=n.state.value[e];let a;function c(){l||(n.state.value[e]=r?r():{});const u=Du(n.state.value[e]);return Yt(u,i,Object.keys(o||{}).reduce((f,p)=>(f[p]=ki(ne(()=>{gr(n);const g=n._s.get(e);return o[p].call(g,g)})),f),{}))}return a=Da(e,c,t,n,s,!0),a}function Da(e,t,n={},s,r,i){let o;const l=Yt({actions:{}},n),a={deep:!0};let c,u,f=new Set,p=new Set,g;const _=s.state.value[e];!i&&!_&&(s.state.value[e]={});let w;function S(F){let B;c=u=!1,typeof F=="function"?(F(s.state.value[e]),B={type:rs.patchFunction,storeId:e,events:g}):(fi(s.state.value[e],F),B={type:rs.patchObject,payload:F,storeId:e,events:g});const oe=w=Symbol();cr().then(()=>{w===oe&&(c=!0)}),u=!0,An(f,B,s.state.value[e])}const E=i?function(){const{state:B}=n,oe=B?B():{};this.$patch(D=>{Yt(D,oe)})}:Ia;function y(){o.stop(),f.clear(),p.clear(),s._s.delete(e)}const C=(F,B="")=>{if(Bo in F)return F[Br]=B,F;const oe=function(){gr(s);const D=Array.from(arguments),Ae=new Set,xe=new Set;function q(G){Ae.add(G)}function Ee(G){xe.add(G)}An(p,{args:D,name:oe[Br],store:N,after:q,onError:Ee});let X;try{X=F.apply(this&&this.$id===e?this:N,D)}catch(G){throw An(xe,G),G}return X instanceof Promise?X.then(G=>(An(Ae,G),G)).catch(G=>(An(xe,G),Promise.reject(G))):(An(Ae,X),X)};return oe[Bo]=!0,oe[Br]=B,oe},O={_p:s,$id:e,$onAction:Fo.bind(null,p),$patch:S,$reset:E,$subscribe(F,B={}){const oe=Fo(f,F,B.detached,()=>D()),D=o.run(()=>vn(()=>s.state.value[e],Ae=>{(B.flush==="sync"?u:c)&&F({storeId:e,type:rs.direct,events:g},Ae)},Yt({},a,B)));return oe},$dispose:y},N=vs(O);s._s.set(e,N);const j=(s._a&&s._a.runWithContext||Ld)(()=>s._e.run(()=>(o=Ol()).run(()=>t({action:C}))));for(const F in j){const B=j[F];if(Ie(B)&&!$d(B)||Pt(B))i||(_&&jd(B)&&(Ie(B)?B.value=_[F]:fi(B,_[F])),s.state.value[e][F]=B);else if(typeof B=="function"){const oe=C(B,F);j[F]=oe,l.actions[F]=B}}return Yt(N,j),Yt(de(N),j),Object.defineProperty(N,"$state",{get:()=>s.state.value[e],set:F=>{S(B=>{Yt(B,F)})}}),s._p.forEach(F=>{Yt(N,o.run(()=>F({store:N,app:s._a,pinia:s,options:l})))}),_&&i&&n.hydrate&&n.hydrate(N.$state,_),c=!0,u=!0,N}function ln(e,t,n){let s;const r=typeof t=="function";s=r?n:t;function i(o,l){const a=Hu();return o=o||(a?dt(ka,null):null),o&&gr(o),o=Ma,o._s.has(e)||(r?Da(e,t,s,o):zd(e,s,o)),o._s.get(e)}return i.$id=e,i}const qm=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Hm=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Km=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Gm=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Wm=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Jm=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));const On=typeof document<"u";function La(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Vd(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&La(e.default)}const ge=Object.assign;function Ur(e,t){const n={};for(const s in t){const r=t[s];n[s]=gt(r)?r.map(e):e(r)}return n}const is=()=>{},gt=Array.isArray;function Uo(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const Na=/#/g,Fd=/&/g,Bd=/\//g,Ud=/=/g,qd=/\?/g,ja=/\+/g,Hd=/%5B/g,Kd=/%5D/g,$a=/%5E/g,Gd=/%60/g,za=/%7B/g,Wd=/%7C/g,Va=/%7D/g,Jd=/%20/g;function Bi(e){return e==null?"":encodeURI(""+e).replace(Wd,"|").replace(Hd,"[").replace(Kd,"]")}function Yd(e){return Bi(e).replace(za,"{").replace(Va,"}").replace($a,"^")}function di(e){return Bi(e).replace(ja,"%2B").replace(Jd,"+").replace(Na,"%23").replace(Fd,"%26").replace(Gd,"`").replace(za,"{").replace(Va,"}").replace($a,"^")}function Qd(e){return di(e).replace(Ud,"%3D")}function Zd(e){return Bi(e).replace(Na,"%23").replace(qd,"%3F")}function Xd(e){return Zd(e).replace(Bd,"%2F")}function ms(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const eh=/\/$/,th=e=>e.replace(eh,"");function qr(e,t,n="/"){let s,r={},i="",o="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(s=t.slice(0,a),i=t.slice(a,l>0?l:t.length),r=e(i.slice(1))),l>=0&&(s=s||t.slice(0,l),o=t.slice(l,t.length)),s=ih(s??t,n),{fullPath:s+i+o,path:s,query:r,hash:ms(o)}}function nh(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function qo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function sh(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&zn(t.matched[s],n.matched[r])&&Fa(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function zn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Fa(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!rh(e[n],t[n]))return!1;return!0}function rh(e,t){return gt(e)?Ho(e,t):gt(t)?Ho(t,e):e?.valueOf()===t?.valueOf()}function Ho(e,t){return gt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function ih(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 i=n.length-1,o,l;for(o=0;o<s.length;o++)if(l=s[o],l!==".")if(l==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const Gt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let hi=(function(e){return e.pop="pop",e.push="push",e})({}),Hr=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function oh(e){if(!e)if(On){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),th(e)}const lh=/^[^#]+#/;function ah(e,t){return e.replace(lh,"#")+t}function ch(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 yr=()=>({left:window.scrollX,top:window.scrollY});function uh(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=ch(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 Ko(e,t){return(history.state?history.state.position-t:-1)+e}const pi=new Map;function fh(e,t){pi.set(e,t)}function dh(e){const t=pi.get(e);return pi.delete(e),t}function hh(e){return typeof e=="string"||e&&typeof e=="object"}function Ba(e){return typeof e=="string"||typeof e=="symbol"}let ke=(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 Ua=Symbol("");ke.MATCHER_NOT_FOUND+"",ke.NAVIGATION_GUARD_REDIRECT+"",ke.NAVIGATION_ABORTED+"",ke.NAVIGATION_CANCELLED+"",ke.NAVIGATION_DUPLICATED+"";function Vn(e,t){return ge(new Error,{type:e,[Ua]:!0},t)}function It(e,t){return e instanceof Error&&Ua in e&&(t==null||!!(e.type&t))}const ph=["params","query","hash"];function mh(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of ph)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function gh(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const r=n[s].replace(ja," "),i=r.indexOf("="),o=ms(i<0?r:r.slice(0,i)),l=i<0?null:ms(r.slice(i+1));if(o in t){let a=t[o];gt(a)||(a=t[o]=[a]),a.push(l)}else t[o]=l}return t}function Go(e){let t="";for(let n in e){const s=e[n];if(n=Qd(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(gt(s)?s.map(r=>r&&di(r)):[s&&di(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function yh(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=gt(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const vh=Symbol(""),Wo=Symbol(""),vr=Symbol(""),Ui=Symbol(""),mi=Symbol("");function Wn(){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 Xt(e,t,n,s,r,i=o=>o()){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,a)=>{const c=p=>{p===!1?a(Vn(ke.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?a(p):hh(p)?a(Vn(ke.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(o&&s.enterCallbacks[r]===o&&typeof p=="function"&&o.push(p),l())},u=i(()=>e.call(s&&s.instances[r],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(p=>a(p))})}function Kr(e,t,n,s,r=i=>i()){const i=[];for(const o of e)for(const l in o.components){let a=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(La(a)){const c=(a.__vccOpts||a)[t];c&&i.push(Xt(c,n,s,o,l,r))}else{let c=a();i.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${o.path}"`);const f=Vd(u)?u.default:u;o.mods[l]=u,o.components[l]=f;const p=(f.__vccOpts||f)[t];return p&&Xt(p,n,s,o,l,r)()}))}}return i}function _h(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const l=t.matched[o];l&&(e.matched.find(c=>zn(c,l))?s.push(l):n.push(l));const a=e.matched[o];a&&(t.matched.find(c=>zn(c,a))||r.push(a))}return[n,s,r]}let bh=()=>location.protocol+"//"+location.host;function qa(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let o=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(o);return l[0]!=="/"&&(l="/"+l),qo(l,"")}return qo(n,e)+s+r}function wh(e,t,n,s){let r=[],i=[],o=null;const l=({state:p})=>{const g=qa(e,location),_=n.value,w=t.value;let S=0;if(p){if(n.value=g,t.value=p,o&&o===_){o=null;return}S=w?p.position-w.position:0}else s(g);r.forEach(E=>{E(n.value,_,{delta:S,type:hi.pop,direction:S?S>0?Hr.forward:Hr.back:Hr.unknown})})};function a(){o=n.value}function c(p){r.push(p);const g=()=>{const _=r.indexOf(p);_>-1&&r.splice(_,1)};return i.push(g),g}function u(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(ge({},p.state,{scroll:yr()}),"")}}function f(){for(const p of i)p();i=[],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:a,listen:c,destroy:f}}function Jo(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?yr():null}}function Eh(e){const{history:t,location:n}=window,s={value:qa(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,c,u){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:bh()+e+a;try{t[u?"replaceState":"pushState"](c,"",p),r.value=c}catch(g){console.error(g),n[u?"replace":"assign"](p)}}function o(a,c){i(a,ge({},t.state,Jo(r.value.back,a,r.value.forward,!0),c,{position:r.value.position}),!0),s.value=a}function l(a,c){const u=ge({},r.value,t.state,{forward:a,scroll:yr()});i(u.current,u,!0),i(a,ge({},Jo(s.value,a,null),{position:u.position+1},c),!1),s.value=a}return{location:s,state:r,push:l,replace:o}}function Sh(e){e=oh(e);const t=Eh(e),n=wh(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=ge({location:"",base:e,go:s,createHref:ah.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 mn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var je=(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})(je||{});const Rh={type:mn.Static,value:""},Th=/[a-zA-Z0-9_]/;function Ah(e){if(!e)return[[]];if(e==="/")return[[Rh]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=je.Static,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let l=0,a,c="",u="";function f(){c&&(n===je.Static?i.push({type:mn.Static,value:c}):n===je.Param||n===je.ParamRegExp||n===je.ParamRegExpEnd?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:mn.Param,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==je.ParamRegExp){s=n,n=je.EscapeNext;continue}switch(n){case je.Static:a==="/"?(c&&f(),o()):a===":"?(f(),n=je.Param):p();break;case je.EscapeNext:p(),n=s;break;case je.Param:a==="("?n=je.ParamRegExp:Th.test(a)?p():(f(),n=je.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case je.ParamRegExp:a===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+a:n=je.ParamRegExpEnd:u+=a;break;case je.ParamRegExpEnd:f(),n=je.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--,u="";break;default:t("Unknown state");break}}return n===je.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),f(),o(),r}const Yo="[^/]+?",xh={sensitive:!1,strict:!1,start:!0,end:!0};var Ze=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Ze||{});const Ch=/[.+*?^${}()[\]/\\]/g;function Ph(e,t){const n=ge({},xh,t),s=[];let r=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[Ze.Root];n.strict&&!c.length&&(r+="/");for(let f=0;f<c.length;f++){const p=c[f];let g=Ze.Segment+(n.sensitive?Ze.BonusCaseSensitive:0);if(p.type===mn.Static)f||(r+="/"),r+=p.value.replace(Ch,"\\$&"),g+=Ze.Static;else if(p.type===mn.Param){const{value:_,repeatable:w,optional:S,regexp:E}=p;i.push({name:_,repeatable:w,optional:S});const y=E||Yo;if(y!==Yo){g+=Ze.BonusCustomRegExp;try{`${y}`}catch(O){throw new Error(`Invalid custom RegExp for param "${_}" (${y}): `+O.message)}}let C=w?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(C=S&&c.length<2?`(?:/${C})`:"/"+C),S&&(C+="?"),r+=C,g+=Ze.Dynamic,S&&(g+=Ze.BonusOptional),w&&(g+=Ze.BonusRepeatable),y===".*"&&(g+=Ze.BonusWildcard)}u.push(g)}s.push(u)}if(n.strict&&n.end){const c=s.length-1;s[c][s[c].length-1]+=Ze.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const o=new RegExp(r,n.sensitive?"":"i");function l(c){const u=c.match(o),f={};if(!u)return null;for(let p=1;p<u.length;p++){const g=u[p]||"",_=i[p-1];f[_.name]=g&&_.repeatable?g.split("/"):g}return f}function a(c){let u="",f=!1;for(const p of e){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const g of p)if(g.type===mn.Static)u+=g.value;else if(g.type===mn.Param){const{value:_,repeatable:w,optional:S}=g,E=_ in c?c[_]:"";if(gt(E)&&!w)throw new Error(`Provided param "${_}" is an array but it is not repeatable (* or + modifiers)`);const y=gt(E)?E.join("/"):E;if(!y)if(S)p.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${_}"`);u+=y}}return u||"/"}return{re:o,score:s,keys:i,parse:l,stringify:a}}function Oh(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===Ze.Static+Ze.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Ze.Static+Ze.Segment?1:-1:0}function Ha(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const i=Oh(s[n],r[n]);if(i)return i;n++}if(Math.abs(r.length-s.length)===1){if(Qo(s))return 1;if(Qo(r))return-1}return r.length-s.length}function Qo(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Mh={strict:!1,end:!0,sensitive:!1};function kh(e,t,n){const s=Ph(Ah(e.path),n),r=ge(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Ih(e,t){const n=[],s=new Map;t=Uo(Mh,t);function r(f){return s.get(f)}function i(f,p,g){const _=!g,w=Xo(f);w.aliasOf=g&&g.record;const S=Uo(t,f),E=[w];if("alias"in f){const O=typeof f.alias=="string"?[f.alias]:f.alias;for(const N of O)E.push(Xo(ge({},w,{components:g?g.record.components:w.components,path:N,aliasOf:g?g.record:w})))}let y,C;for(const O of E){const{path:N}=O;if(p&&N[0]!=="/"){const Z=p.record.path,j=Z[Z.length-1]==="/"?"":"/";O.path=p.record.path+(N&&j+N)}if(y=kh(O,p,S),g?g.alias.push(y):(C=C||y,C!==y&&C.alias.push(y),_&&f.name&&!el(y)&&o(f.name)),Ka(y)&&a(y),w.children){const Z=w.children;for(let j=0;j<Z.length;j++)i(Z[j],y,g&&g.children[j])}g=g||y}return C?()=>{o(C)}:is}function o(f){if(Ba(f)){const p=s.get(f);p&&(s.delete(f),n.splice(n.indexOf(p),1),p.children.forEach(o),p.alias.forEach(o))}else{const p=n.indexOf(f);p>-1&&(n.splice(p,1),f.record.name&&s.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function l(){return n}function a(f){const p=Nh(f,n);n.splice(p,0,f),f.record.name&&!el(f)&&s.set(f.record.name,f)}function c(f,p){let g,_={},w,S;if("name"in f&&f.name){if(g=s.get(f.name),!g)throw Vn(ke.MATCHER_NOT_FOUND,{location:f});S=g.record.name,_=ge(Zo(p.params,g.keys.filter(C=>!C.optional).concat(g.parent?g.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),f.params&&Zo(f.params,g.keys.map(C=>C.name))),w=g.stringify(_)}else if(f.path!=null)w=f.path,g=n.find(C=>C.re.test(w)),g&&(_=g.parse(w),S=g.record.name);else{if(g=p.name?s.get(p.name):n.find(C=>C.re.test(p.path)),!g)throw Vn(ke.MATCHER_NOT_FOUND,{location:f,currentLocation:p});S=g.record.name,_=ge({},p.params,f.params),w=g.stringify(_)}const E=[];let y=g;for(;y;)E.unshift(y.record),y=y.parent;return{name:S,path:w,params:_,matched:E,meta:Lh(E)}}e.forEach(f=>i(f));function u(){n.length=0,s.clear()}return{addRoute:i,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:l,getRecordMatcher:r}}function Zo(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Xo(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Dh(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 Dh(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 el(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Lh(e){return e.reduce((t,n)=>ge(t,n.meta),{})}function Nh(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;Ha(e,t[i])<0?s=i:n=i+1}const r=jh(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function jh(e){let t=e;for(;t=t.parent;)if(Ka(t)&&Ha(e,t)===0)return t}function Ka({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function tl(e){const t=dt(vr),n=dt(Ui),s=ne(()=>{const a=De(e.to);return t.resolve(a)}),r=ne(()=>{const{matched:a}=s.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const p=f.findIndex(zn.bind(null,u));if(p>-1)return p;const g=nl(a[c-2]);return c>1&&nl(u)===g&&f[f.length-1].path!==g?f.findIndex(zn.bind(null,a[c-2])):p}),i=ne(()=>r.value>-1&&Bh(n.params,s.value.params)),o=ne(()=>r.value>-1&&r.value===n.matched.length-1&&Fa(n.params,s.value.params));function l(a={}){if(Fh(a)){const c=t[De(e.replace)?"replace":"push"](De(e.to)).catch(is);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:ne(()=>s.value.href),isActive:i,isExactActive:o,navigate:l}}function $h(e){return e.length===1?e[0]:e}const zh=Fn({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:tl,setup(e,{slots:t}){const n=vs(tl(e)),{options:s}=dt(vr),r=ne(()=>({[sl(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[sl(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&$h(t.default(n));return e.custom?i:xa("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),Vh=zh;function Fh(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 Bh(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(!gt(r)||r.length!==s.length||s.some((i,o)=>i.valueOf()!==r[o].valueOf()))return!1}return!0}function nl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const sl=(e,t,n)=>e??t??n,Uh=Fn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=dt(mi),r=ne(()=>e.route||s.value),i=dt(Wo,0),o=ne(()=>{let c=De(i);const{matched:u}=r.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=ne(()=>r.value.matched[o.value]);$s(Wo,ne(()=>o.value+1)),$s(vh,l),$s(mi,r);const a=te();return vn(()=>[a.value,l.value,e.name],([c,u,f],[p,g,_])=>{u&&(u.instances[f]=c,g&&g!==u&&c&&c===p&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),c&&u&&(!g||!zn(u,g)||!p)&&(u.enterCallbacks[f]||[]).forEach(w=>w(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,f=l.value,p=f&&f.components[u];if(!p)return rl(n.default,{Component:p,route:c});const g=f.props[u],_=g?g===!0?c.params:typeof g=="function"?g(c):g:null,S=xa(p,ge({},_,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return rl(n.default,{Component:S,route:c})||S}}});function rl(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qh=Uh;function Hh(e){const t=Ih(e.routes,e),n=e.parseQuery||gh,s=e.stringifyQuery||Go,r=e.history,i=Wn(),o=Wn(),l=Wn(),a=Ln(Gt);let c=Gt;On&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ur.bind(null,P=>""+P),f=Ur.bind(null,Xd),p=Ur.bind(null,ms);function g(P,U){let z,H;return Ba(P)?(z=t.getRecordMatcher(P),H=U):H=P,t.addRoute(H,z)}function _(P){const U=t.getRecordMatcher(P);U&&t.removeRoute(U)}function w(){return t.getRoutes().map(P=>P.record)}function S(P){return!!t.getRecordMatcher(P)}function E(P,U){if(U=ge({},U||a.value),typeof P=="string"){const v=qr(n,P,U.path),A=t.resolve({path:v.path},U),x=r.createHref(v.fullPath);return ge(v,A,{params:p(A.params),hash:ms(v.hash),redirectedFrom:void 0,href:x})}let z;if(P.path!=null)z=ge({},P,{path:qr(n,P.path,U.path).path});else{const v=ge({},P.params);for(const A in v)v[A]==null&&delete v[A];z=ge({},P,{params:f(v)}),U.params=f(U.params)}const H=t.resolve(z,U),ie=P.hash||"";H.params=u(p(H.params));const h=nh(s,ge({},P,{hash:Yd(ie),path:H.path})),m=r.createHref(h);return ge({fullPath:h,hash:ie,query:s===Go?yh(P.query):P.query||{}},H,{redirectedFrom:void 0,href:m})}function y(P){return typeof P=="string"?qr(n,P,a.value.path):ge({},P)}function C(P,U){if(c!==P)return Vn(ke.NAVIGATION_CANCELLED,{from:U,to:P})}function O(P){return j(P)}function N(P){return O(ge(y(P),{replace:!0}))}function Z(P,U){const z=P.matched[P.matched.length-1];if(z&&z.redirect){const{redirect:H}=z;let ie=typeof H=="function"?H(P,U):H;return typeof ie=="string"&&(ie=ie.includes("?")||ie.includes("#")?ie=y(ie):{path:ie},ie.params={}),ge({query:P.query,hash:P.hash,params:ie.path!=null?{}:P.params},ie)}}function j(P,U){const z=c=E(P),H=a.value,ie=P.state,h=P.force,m=P.replace===!0,v=Z(z,H);if(v)return j(ge(y(v),{state:typeof v=="object"?ge({},ie,v.state):ie,force:h,replace:m}),U||z);const A=z;A.redirectedFrom=U;let x;return!h&&sh(s,H,z)&&(x=Vn(ke.NAVIGATION_DUPLICATED,{to:A,from:H}),Se(H,H,!0,!1)),(x?Promise.resolve(x):oe(A,H)).catch(R=>It(R)?It(R,ke.NAVIGATION_GUARD_REDIRECT)?R:pe(R):re(R,A,H)).then(R=>{if(R){if(It(R,ke.NAVIGATION_GUARD_REDIRECT))return j(ge({replace:m},y(R.to),{state:typeof R.to=="object"?ge({},ie,R.to.state):ie,force:h}),U||A)}else R=Ae(A,H,!0,m,ie);return D(A,H,R),R})}function F(P,U){const z=C(P,U);return z?Promise.reject(z):Promise.resolve()}function B(P){const U=vt.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(P):P()}function oe(P,U){let z;const[H,ie,h]=_h(P,U);z=Kr(H.reverse(),"beforeRouteLeave",P,U);for(const v of H)v.leaveGuards.forEach(A=>{z.push(Xt(A,P,U))});const m=F.bind(null,P,U);return z.push(m),qe(z).then(()=>{z=[];for(const v of i.list())z.push(Xt(v,P,U));return z.push(m),qe(z)}).then(()=>{z=Kr(ie,"beforeRouteUpdate",P,U);for(const v of ie)v.updateGuards.forEach(A=>{z.push(Xt(A,P,U))});return z.push(m),qe(z)}).then(()=>{z=[];for(const v of h)if(v.beforeEnter)if(gt(v.beforeEnter))for(const A of v.beforeEnter)z.push(Xt(A,P,U));else z.push(Xt(v.beforeEnter,P,U));return z.push(m),qe(z)}).then(()=>(P.matched.forEach(v=>v.enterCallbacks={}),z=Kr(h,"beforeRouteEnter",P,U,B),z.push(m),qe(z))).then(()=>{z=[];for(const v of o.list())z.push(Xt(v,P,U));return z.push(m),qe(z)}).catch(v=>It(v,ke.NAVIGATION_CANCELLED)?v:Promise.reject(v))}function D(P,U,z){l.list().forEach(H=>B(()=>H(P,U,z)))}function Ae(P,U,z,H,ie){const h=C(P,U);if(h)return h;const m=U===Gt,v=On?history.state:{};z&&(H||m?r.replace(P.fullPath,ge({scroll:m&&v&&v.scroll},ie)):r.push(P.fullPath,ie)),a.value=P,Se(P,U,z,m),pe()}let xe;function q(){xe||(xe=r.listen((P,U,z)=>{if(!st.listening)return;const H=E(P),ie=Z(H,st.currentRoute.value);if(ie){j(ge(ie,{replace:!0,force:!0}),H).catch(is);return}c=H;const h=a.value;On&&fh(Ko(h.fullPath,z.delta),yr()),oe(H,h).catch(m=>It(m,ke.NAVIGATION_ABORTED|ke.NAVIGATION_CANCELLED)?m:It(m,ke.NAVIGATION_GUARD_REDIRECT)?(j(ge(y(m.to),{force:!0}),H).then(v=>{It(v,ke.NAVIGATION_ABORTED|ke.NAVIGATION_DUPLICATED)&&!z.delta&&z.type===hi.pop&&r.go(-1,!1)}).catch(is),Promise.reject()):(z.delta&&r.go(-z.delta,!1),re(m,H,h))).then(m=>{m=m||Ae(H,h,!1),m&&(z.delta&&!It(m,ke.NAVIGATION_CANCELLED)?r.go(-z.delta,!1):z.type===hi.pop&&It(m,ke.NAVIGATION_ABORTED|ke.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),D(H,h,m)}).catch(is)}))}let Ee=Wn(),X=Wn(),G;function re(P,U,z){pe(P);const H=X.list();return H.length?H.forEach(ie=>ie(P,U,z)):console.error(P),Promise.reject(P)}function Le(){return G&&a.value!==Gt?Promise.resolve():new Promise((P,U)=>{Ee.add([P,U])})}function pe(P){return G||(G=!P,q(),Ee.list().forEach(([U,z])=>P?z(P):U()),Ee.reset()),P}function Se(P,U,z,H){const{scrollBehavior:ie}=e;if(!On||!ie)return Promise.resolve();const h=!z&&dh(Ko(P.fullPath,0))||(H||!z)&&history.state&&history.state.scroll||null;return cr().then(()=>ie(P,U,h)).then(m=>m&&uh(m)).catch(m=>re(m,P,U))}const Oe=P=>r.go(P);let yt;const vt=new Set,st={currentRoute:a,listening:!0,addRoute:g,removeRoute:_,clearRoutes:t.clearRoutes,hasRoute:S,getRoutes:w,resolve:E,options:e,push:O,replace:N,go:Oe,back:()=>Oe(-1),forward:()=>Oe(1),beforeEach:i.add,beforeResolve:o.add,afterEach:l.add,onError:X.add,isReady:Le,install(P){P.component("RouterLink",Vh),P.component("RouterView",qh),P.config.globalProperties.$router=st,Object.defineProperty(P.config.globalProperties,"$route",{enumerable:!0,get:()=>De(a)}),On&&!yt&&a.value===Gt&&(yt=!0,O(r.location).catch(H=>{}));const U={};for(const H in Gt)Object.defineProperty(U,H,{get:()=>a.value[H],enumerable:!0});P.provide(vr,st),P.provide(Ui,Kl(U)),P.provide(mi,a);const z=P.unmount;vt.add(P),P.unmount=function(){vt.delete(P),vt.size<1&&(c=Gt,xe&&xe(),xe=null,a.value=Gt,yt=!1,G=!1),z()}}};function qe(P){return P.reduce((U,z)=>U.then(()=>B(z)),Promise.resolve())}return st}function Ym(){return dt(vr)}function Ga(e){return dt(Ui)}const Kh={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},Gh=["d"],il=Fn({__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",slides:"M3 4h18v12H3zM12 16v4M8 20h8",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","arrow-left":"M19 12H5M11 6l-6 6 6 6","arrow-right":"M5 12h14M13 6l6 6-6 6",paperclip:"M20 11.5l-8.5 8.5a5 5 0 01-7-7L13 4.5a3.5 3.5 0 015 5L9.5 18a2 2 0 01-3-3L14 7.5",at:"M12 16a4 4 0 100-8 4 4 0 000 8zM16 12v1.5a2.5 2.5 0 005 0V12a9 9 0 10-3.5 7.1","arrow-up":"M12 19V5M5 12l7-7 7 7","arrow-down":"M12 5v14M5 12l7 7 7-7",smile:"M12 21a9 9 0 100-18 9 9 0 000 18zM8.5 14.5c1 1.2 2.2 1.8 3.5 1.8s2.5-.6 3.5-1.8M9 9.5h.01M15 9.5h.01",pencil:"M4 20h4L19 9l-4-4L4 16zM13.5 6.5l4 4",trash:"M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3",close:"M6 6l12 12M18 6L6 18",plus:"M12 5v14M5 12h14",checklist:"M4 6l2 2 3-3M4 13l2 2 3-3M12 7h8M12 14h8M4 19h.01M12 19h8",cast:"M2 16.1A5 5 0 015.9 20M2 12.05A9 9 0 019.95 20M2 8V6a2 2 0 012-2h16a2 2 0 012 2v12a2 2 0 01-2 2h-6M2 20h.01"};return(s,r)=>(tt(),Dt("svg",Kh,[$e("path",{d:n[t.name]??""},null,8,Gh)]))}});class We extends Error{constructor(n,s,r={}){super(s);Rn(this,"status");Rn(this,"errors");this.name="ApiError",this.status=n,this.errors=r}}const Gr="bm.token";class Wh{constructor(t,n){Rn(this,"local");Rn(this,"session");Rn(this,"memory",null);this.local=t,this.session=n}read(t){try{return t?.getItem(Gr)??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(Gr,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(Gr)}catch{}}}function Jh(e){const t=e.fetch??((...g)=>fetch(...g)),{tokens:n}=e;let s=null;function r(g,_){if(!_)return g;const w=new URLSearchParams;for(const[E,y]of Object.entries(_))y!=null&&y!==""&&w.set(E,String(y));const S=w.toString();return S?`${g}?${S}`:g}async function i(g,_){const w={Accept:"application/json"};if(_.headers)for(const[y,C]of Object.entries(_.headers))y.toLowerCase()!=="authorization"&&(w[y]=C);const S=n.get();_.auth!==!1&&S&&(w.Authorization=`Bearer ${S}`);let E;return _.body!==void 0&&(w["Content-Type"]="application/json",E=JSON.stringify(_.body)),t(r(g,_.query),{method:_.method??"GET",headers:w,body:E})}function o(){return s||(s=(async()=>{try{const g=await i("/_user/api/v1/refresh",{method:"POST"});if(!g.ok)return!1;const _=await g.json(),w=_.token??_.data?.token;return w?(n.replace(w),!0):!1}catch{return!1}finally{queueMicrotask(()=>{s=null})}})()),s}async function l(g){const _=await g.text();if(!_)return null;try{return JSON.parse(_)}catch{return null}}function a(g,_){const w=_??{},S=typeof w.error=="string"&&w.error||typeof w.message=="string"&&w.message||(g.status>=500?"Błąd serwera. Spróbuj ponownie za chwilę.":`Błąd ${g.status}`);return new We(g.status,S,w.errors??{})}async function c(g,_){let w;const S=n.get();try{w=await i(g,_)}catch{throw new We(0,"Brak połączenia z serwerem.")}if(w.status===401&&_.auth!==!1&&S){const E=n.get();if(E!==null&&E!==S?!0:await o())try{w=await i(g,_)}catch{throw new We(0,"Brak połączenia z serwerem.")}w.status===401&&(n.clear(),e.onUnauthorized?.())}return w}async function u(g,_={}){const w=await c(g,_),S=await l(w);if(!w.ok)throw a(w,S);return S}async function f(g,_={}){const w=await c(g,_);if(!w.ok){const S=await l(w);throw a(w,S)}return w.blob()}async function p(g,_={}){const w=await u(g,_);return w&&typeof w=="object"&&"data"in w?w.data:w}return{request:p,raw:u,blob:f}}function ol(e){try{return e()}catch{return null}}const ft=new Wh(ol(()=>window.localStorage),ol(()=>window.sessionStorage));let Wa=()=>{};function Yh(e){Wa=e}const K=Jh({tokens:ft,onUnauthorized:()=>Wa()}),ut="/_user/api/v1",fn={login:e=>K.request(`${ut}/login`,{method:"POST",body:e,auth:!1}),register:e=>K.request(`${ut}/register`,{method:"POST",body:e,auth:!1}),fetch:()=>K.request(`${ut}/fetch`),logout:()=>K.request(`${ut}/logout`,{method:"POST"}),forgotPassword:e=>K.request(`${ut}/forgot-password`,{method:"POST",body:{email:e},auth:!1}),resetPassword:e=>K.request(`${ut}/reset-password`,{method:"POST",body:e,auth:!1}),update:e=>K.request(`${ut}/update`,{method:"POST",body:e}),changePassword:e=>K.request(`${ut}/change-password`,{method:"POST",body:e}),oauthProviders:()=>K.request(`${ut}/oauth-providers`,{auth:!1}),oauthComplete:e=>K.request(`${ut}/oauth-complete?code=${encodeURIComponent(e)}`,{auth:!1}),oauthRegisterComplete:e=>K.request(`${ut}/oauth-register-complete`,{method:"POST",body:e,auth:!1}),oauthLinkTicket:()=>K.request(`${ut}/oauth-link-ticket`,{method:"POST"})},Qh="modulepreload",Zh=function(e){return"/"+e},ll={},ve=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){let a=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=o?.nonce||o?.getAttribute("nonce");r=a(n.map(c=>{if(c=Zh(c),c in ll)return;ll[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":Qh,u||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),u)return new Promise((g,_)=>{p.addEventListener("load",g),p.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return r.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},Zs="bm.lastPilot";function _r(){try{return window.localStorage}catch{return null}}function Ja(e){return typeof e=="string"&&e.trim()!==""&&e.length<=255&&!e.includes("/")}function Qm(e,t=_r()){if(!(!t||!Ja(e)))try{t.setItem(Zs,e)}catch{}}function Xh(e=_r()){if(!e)return null;try{const t=e.getItem(Zs);return Ja(t)?t:null}catch{return null}}function Zm(e,t=_r()){if(t)try{t.getItem(Zs)===e&&t.removeItem(Zs)}catch{}}function ep(e=_r()){const t=Xh(e);return t?{name:"presentation-remote",params:{slug:t}}:{name:"my-presentations"}}const gn=Hh({history:Sh("/"),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-BD6T8vrN.js"),__vite__mapDeps([0,1,2])),meta:{public:!0,guest:!0,title:"Logowanie"}},{path:"/rejestracja",name:"register",component:()=>ve(()=>import("./RegisterView-D6wth3F7.js"),__vite__mapDeps([3,1])),meta:{public:!0,guest:!0,title:"Rejestracja"}},{path:"/przypomnij-haslo",name:"forgot",component:()=>ve(()=>import("./ForgotView-CaAMm3z4.js"),__vite__mapDeps([4,1])),meta:{public:!0,title:"Przypomnienie hasła"}},{path:"/auth/oauth/callback",name:"oauth-callback",component:()=>ve(()=>import("./OAuthCallbackView-BOPphDDj.js"),__vite__mapDeps([5,1,2])),meta:{public:!0,title:"Logowanie"}},{path:"/auth/oauth/rejestracja",name:"oauth-register",component:()=>ve(()=>import("./OAuthRegisterView-CZNMGPG4.js"),__vite__mapDeps([6,1])),meta:{public:!0,title:"Rejestracja"}},{path:"/reset-password",alias:"/reset-hasla",name:"reset",component:()=>ve(()=>import("./ResetView-Ci1_MPQT.js"),__vite__mapDeps([7,1])),meta:{public:!0,title:"Nowe hasło"}},{path:"/",name:"dashboard",component:()=>ve(()=>import("./DashboardView-BCUes1cr.js"),__vite__mapDeps([8,9,10,11,12])),meta:{title:"Pulpit",wide:!0}},{path:"/plan",name:"schedule",component:()=>ve(()=>import("./ScheduleView-pbI-ziw1.js"),__vite__mapDeps([13,9,10,11,14])),meta:{title:"Plan zajęć"}},{path:"/terminarz",name:"deadlines",component:()=>ve(()=>import("./DeadlinesView-B4EWKPkV.js"),__vite__mapDeps([15,9,10,11,14])),meta:{title:"Terminarz"}},{path:"/przedmioty",name:"courses",component:()=>ve(()=>import("./CoursesView-Dh_F1aUy.js"),__vite__mapDeps([16,9,10,11])),meta:{title:"Przedmioty"}},{path:"/przedmioty/:id(\\d+)",name:"course",component:()=>ve(()=>import("./CourseView-DbMcCK0D.js"),__vite__mapDeps([17,9,10,18])),props:!0,meta:{title:"Przedmiot"}},{path:"/lektury",name:"readings",component:()=>ve(()=>import("./ReadingsView-DH-9NCM_.js"),__vite__mapDeps([19,9,10,11,18,14])),meta:{title:"Lektury"}},{path:"/materialy",name:"materials",component:()=>ve(()=>import("./MaterialsView-DFGYKe4E.js"),__vite__mapDeps([20,9])),meta:{title:"Materiały"}},{path:"/materialy/:id(\\d+)",name:"material",component:()=>ve(()=>import("./MaterialView-BpqDPS4B.js"),__vite__mapDeps([21,9,10,12])),props:!0,meta:{title:"Materiał"}},{path:"/checklisty",name:"checklists",component:()=>ve(()=>import("./ChecklistsView-DyLAXBTa.js"),__vite__mapDeps([22,9,10,1])),meta:{title:"Checklisty"}},{path:"/checklisty/:id(\\d+)",name:"checklist",component:()=>ve(()=>import("./ChecklistView-BC7RgEhd.js"),__vite__mapDeps([23,9,10,24,1])),props:!0,meta:{title:"Checklista"}},{path:"/sylabusy",name:"syllabi",component:()=>ve(()=>import("./SyllabiView-DB5GWZUr.js"),__vite__mapDeps([25,9])),meta:{title:"Sylabusy"}},{path:"/quiz",redirect:"/quizy/powtorka-1-zjazd"},{path:"/quizy",name:"quizzes",component:()=>ve(()=>import("./QuizzesView-BVXFAY0q.js"),__vite__mapDeps([26,9,10,27])),meta:{title:"Quizy"}},{path:"/quizy/:slug",name:"quiz",component:()=>ve(()=>import("./QuizView-BnXoyrpi.js"),__vite__mapDeps([28,9,10,27])),props:!0,meta:{title:"Quiz"}},{path:"/wiecej",name:"more",component:()=>ve(()=>import("./MoreView-B4tAadfv.js"),__vite__mapDeps([29,9])),meta:{title:"Więcej"}},{path:"/profil",name:"profile",component:()=>ve(()=>import("./ProfileView-BZP8ljJR.js"),__vite__mapDeps([30,9,1,2])),meta:{title:"Profil"}},{path:"/moje-prezentacje",name:"my-presentations",component:()=>ve(()=>import("./MyPresentationsView-BcNWYbDC.js"),__vite__mapDeps([31,9,10,24])),meta:{title:"Moje prezentacje"}},{path:"/moje-prezentacje/:slug",name:"presentation-speaker",component:()=>ve(()=>import("./PresentationSpeakerView-DctI4EnR.js"),__vite__mapDeps([32,24,33,34,35,36,37,38,39])),props:!0,meta:{bare:!0,title:"Prezentacja"}},{path:"/moje-prezentacje/:slug/pilot",name:"presentation-remote",component:()=>ve(()=>import("./PresentationRemoteView-B3iBEKYt.js"),__vite__mapDeps([40,34,35,24,41,38,42,37,43])),props:!0,meta:{bare:!0,title:"Pilot"}},{path:"/pilot",name:"pilot",redirect:()=>ep()},{path:"/prezentacje/:slugHash",name:"presentation-public",component:()=>ve(()=>import("./PresentationPublicView-rzVRpdl2.js"),__vite__mapDeps([44,24,33,34,35,36,45])),props:!0,meta:{public:!0,bare:!0,title:"Prezentacja"}},{path:"/connect",name:"connect",component:()=>ve(()=>import("./ConnectView-Bl4gD5ES.js"),[]),meta:{title:"Połącz aplikację"}},{path:"/cast",name:"cast",component:()=>ve(()=>import("./CastReceiverView-C3JQv3Bs.js"),__vite__mapDeps([46,34,35,24,33,36,42,38,47])),meta:{public:!0,bare:!0,cast:!0,title:"BM · TV"}},{path:"/:rest(.*)*",name:"notfound",component:()=>ve(()=>import("./NotFoundView-X7sC04aH.js"),__vite__mapDeps([48,41])),meta:{title:"Nie znaleziono"}}]});gn.beforeEach(async e=>{const t=pc();return e.meta.cast===!0&&ft.clear(),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});gn.afterEach(e=>{const t=e.meta.title;document.title=t?`${t} · BM II°`:"BM II°"});const be="/_bm/api/v1",Te={dashboard:()=>K.request(`${be}/dashboard`),courses:e=>K.request(`${be}/courses`,{query:{semester:e}}),course:e=>K.request(`${be}/courses/${e}`),schedule:(e,t)=>K.request(`${be}/schedule`,{query:{from:e,to:t}}),meetings:()=>K.request(`${be}/meetings`),deadlines:(e,t)=>K.request(`${be}/deadlines`,{query:{from:e,to:t}}),readings:e=>K.request(`${be}/readings`,{query:{course:e}}),markRead:e=>K.request(`${be}/readings/${e}/progress`,{method:"PUT"}),unmarkRead:e=>K.request(`${be}/readings/${e}/progress`,{method:"DELETE"}),markOwned:e=>K.request(`${be}/readings/${e}/owned`,{method:"PUT"}),unmarkOwned:e=>K.request(`${be}/readings/${e}/owned`,{method:"DELETE"}),materials:(e={})=>K.raw(`${be}/materials`,{query:{...e}}),material:e=>K.request(`${be}/materials/${e}`),calendarFeed:()=>K.request(`${be}/calendar-feed`),saveCalendarFeed:e=>K.request(`${be}/calendar-feed`,{method:"PUT",body:e}),rotateCalendarFeed:()=>K.request(`${be}/calendar-feed/rotate`,{method:"POST"}),deleteCalendarFeed:()=>K.request(`${be}/calendar-feed`,{method:"DELETE"}),checklists:e=>K.request(`${be}/checklists`,{query:{meeting:e}}),checklist:e=>K.request(`${be}/checklists/${e}`),createChecklist:e=>K.request(`${be}/checklists`,{method:"POST",body:e}),updateChecklist:(e,t)=>K.request(`${be}/checklists/${e}`,{method:"PATCH",body:t}),deleteChecklist:e=>K.request(`${be}/checklists/${e}`,{method:"DELETE"}),addChecklistItem:(e,t)=>K.request(`${be}/checklists/${e}/items`,{method:"POST",body:t}),updateChecklistItem:(e,t)=>K.request(`${be}/checklist-items/${e}`,{method:"PATCH",body:t}),deleteChecklistItem:e=>K.request(`${be}/checklist-items/${e}`,{method:"DELETE"}),markChecklistItem:e=>K.request(`${be}/checklist-items/${e}/done`,{method:"PUT"}),unmarkChecklistItem:e=>K.request(`${be}/checklist-items/${e}/done`,{method:"DELETE"})},tp={"historia-koncepcje":"Historia / koncepcje wojny i pokoju",specjalnosc:"Specjalność"};function Xm(e){return tp[e]??e}function qi(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 np(e,t){const n={};for(const s of qi(e)){const r=t[s.code];r&&s.options.includes(r)&&(n[s.code]=r)}return n}function sp(e,t){if(!e.elective_group)return!1;const n=t[e.elective_group];return n!==void 0&&n!==e.name}function Ya(e,t,n=!1){const s=new Set;if(n)return s;for(const r of e)sp(r,t)&&s.add(r.id);return s}function Wr(e,t){return t.size===0?e:e.filter(n=>n.course_id===null||!t.has(n.course_id))}function rp(e,t){return qi(e).filter(n=>n.options.length>1&&!t[n.code])}function eg(e,t){return!!e.elective_group&&!t[e.elective_group]}const al="bm.showAllElectives";function cl(e){try{return localStorage.getItem(e)}catch{return null}}function ul(e,t){try{localStorage.setItem(e,t)}catch{}}const os=ln("electives",()=>{const e=te({}),t=te(cl(al)==="1"),n=te(null),s=()=>n.value===null?null:`bm.electives.${n.value}`,r=()=>{const f=s();f&&ul(f,JSON.stringify(e.value))};function i(f){n.value=f;try{const p=JSON.parse(cl(`bm.electives.${f}`)??"{}");e.value=p&&typeof p=="object"?p:{}}catch{e.value={}}}const o=ne(()=>Object.keys(e.value).length>0);function l(f,p){const g={...e.value};p===null?delete g[f]:g[f]=p,e.value=g,r()}function a(f){t.value=f,ul(al,f?"1":"0")}function c(f){const p=np(f,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:o,load:i,choose:l,setShowAll:a,prune:c,reset:u}}),wn=ln("toast",()=>{const e=te("");let t;function n(r,i=4e3){e.value=r,clearTimeout(t),t=setTimeout(()=>e.value="",i)}function s(){e.value=""}return{message:e,show:n,clear:s}});function xt(e){return e instanceof We?e.message:"Nie udało się wczytać danych."}function xn(e){const t=Ln(null),n=te(!1),s=te("");let r=null;function i(l=!1){return r||(t.value!==null&&!l?Promise.resolve():(n.value=!0,s.value="",r=e().then(a=>{t.value=a}).catch(a=>{s.value=xt(a)}).finally(()=>{n.value=!1,r=null}),r))}function o(){t.value=null,s.value="",n.value=!1,r=null}return{data:t,loading:n,error:s,load:i,reset:o}}const fl="2000-01-01",Hi=ln("bm",()=>{const e=xn(()=>Te.courses()),t=xn(()=>Te.meetings()),n=xn(()=>Te.schedule(fl)),s=xn(()=>Te.deadlines(fl)),r=xn(()=>Te.readings()),i=xn(()=>Te.dashboard()),o=ne(()=>e.data.value),l=ne(()=>t.data.value),a=ne(()=>i.data.value),c=os(),u=ne(()=>qi(o.value??[])),f=ne(()=>rp(o.value??[],c.choices)),p=ne(()=>Ya(o.value??[],c.choices,c.showAll)),g=ne(()=>Wr(n.data.value??[],p.value)),_=ne(()=>Wr(s.data.value??[],p.value)),w=ne(()=>Wr(r.data.value??[],p.value)),S=ne(()=>r.data.value??[]),E=ne(()=>(o.value??[]).filter(q=>!p.value.has(q.id))),y=ne(()=>{const q=w.value,Ee=q.filter(X=>X.is_required);return{total:q.length,read:q.filter(X=>X.read_at).length,requiredTotal:Ee.length,requiredRead:Ee.filter(X=>X.read_at).length}}),C=ne(()=>new Map((o.value??[]).map(q=>[q.id,q])));async function O(q=!1){await e.load(q),e.data.value&&c.prune(e.data.value)}async function N(q,Ee){const X=r.data.value,G=X?.find(pe=>pe.id===q);if(!X||!G)return;const re=G.read_at,Le=pe=>{r.data.value=X.map(Se=>Se.id===q?{...Se,read_at:pe}:Se)};Le(Ee?new Date().toISOString():null);try{const pe=Ee?await Te.markRead(q):await Te.unmarkRead(q);Le(pe.read_at)}catch(pe){Le(re),wn().show(`Nie udało się zapisać zmiany. ${xt(pe)}`)}}function Z(q,Ee){const X=r.data.value;X&&(r.data.value=X.map(G=>G.id===q?{...G,read_at:Ee}:G))}async function j(q,Ee){const X=r.data.value,G=X?.find(pe=>pe.id===q);if(!X||!G)return;const re=G.owned_at,Le=pe=>{r.data.value=X.map(Se=>Se.id===q?{...Se,owned_at:pe}:Se)};Le(Ee?new Date().toISOString():null);try{const pe=Ee?await Te.markOwned(q):await Te.unmarkOwned(q);Le(pe.owned_at)}catch(pe){Le(re),wn().show(`Nie udało się zapisać zmiany. ${xt(pe)}`)}}const F=[e,t,n,s,r,i],B=ne(()=>F.some(q=>q.loading.value)),oe=ne(()=>F.find(q=>q.error.value)?.error.value??""),D=ne(()=>({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:i.data.value!==null}));function Ae(){for(const q of F)q.error.value&&q.load(!0)}function xe(){for(const q of F)q.reset()}return{courses:o,electiveGroups:u,pendingElectives:f,hidden:p,meetings:l,dashboard:a,schedule:g,deadlines:_,readings:w,allReadings:S,visibleCourses:E,readingStats:y,courseById:C,loading:B,error:oe,loaded:D,retry:Ae,loadCourses:O,loadMeetings:(q=!1)=>t.load(q),loadSchedule:(q=!1)=>n.load(q),loadDeadlines:(q=!1)=>s.load(q),loadReadings:(q=!1)=>r.load(q),loadDashboard:(q=!1)=>i.load(q),toggleReading:N,toggleOwned:j,setReadAt:Z,reset:xe}}),ip={lektura:"Lektura",artykul:"Artykuł",ksiazka:"Książka",prezentacja:"Prezentacja",zadanie:"Zadanie",inne:"Inne"},tg=Object.keys(ip);function op(e){const t=Math.floor(e/60),n=e%60;return t?n?`${t} h ${n} min`:`${t} h`:`${n} min`}function lp(e){const t={total:0,done:0,percent:0,minutes_total:0,minutes_done:0,minutes_left:0};for(const n of e){const s=n.estimate_minutes??0;t.total++,t.minutes_total+=s,n.done?(t.done++,t.minutes_done+=s):t.minutes_left+=s}return t.minutes_total?t.percent=Math.floor(t.minutes_done*100/t.minutes_total):t.percent=t.total?Math.floor(t.done*100/t.total):0,t}function ng(e){const t=`${e.done} z ${e.total}`;return e.minutes_left?`${t} · zostało ${op(e.minutes_left)}`:t}function sg(e){const t=new Map;for(const s of e){const r=s.course?`c${s.course.id}`:"none";let i=t.get(r);i||(i={key:r,label:s.course?.name??"Ogólne",items:[]},t.set(r,i)),i.items.push(s)}const n=t.get("none");return t.delete("none"),n?[...t.values(),n]:[...t.values()]}function rg(e){if(!e)return"";const t=new Date(e),n=s=>String(s).padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`}function ig(e){return e?e.replace("T"," "):null}const ap=ln("checklists",()=>{const e=te(null),t=te(""),n=te({}),s=te("");async function r(){t.value="";try{e.value=await Te.checklists()}catch(y){t.value=xt(y)}}async function i(y){s.value="";try{o(await Te.checklist(y))}catch(C){s.value=xt(C)}}function o(y){y.items||(y={...y,items:n.value[y.id]?.items??[]}),n.value={...n.value,[y.id]:y};const C={...y,items:void 0};e.value&&(e.value=e.value.some(O=>O.id===y.id)?e.value.map(O=>O.id===y.id?C:O):[...e.value,C])}function l(y,C){const O=n.value[y];O&&o({...O,items:C,progress:lp(C)})}async function a(y){const C=await Te.createChecklist(y);return o(C),C}async function c(y,C){o(await Te.updateChecklist(y,C))}async function u(y){await Te.deleteChecklist(y);const{[y]:C,...O}=n.value;n.value=O,e.value&&(e.value=e.value.filter(N=>N.id!==y))}function f(y,C){for(const O of Object.values(n.value))O.items?.some(N=>N.reading_id===y)&&l(O.id,O.items.map(N=>N.reading_id===y?{...N,done:C!==null,done_at:C}:N))}async function p(y,C){const O=n.value[y.checklist_id];if(!O?.items)return;const N=O.items,Z=j=>{if(y.reading_id!==null)f(y.reading_id,j);else{const F=n.value[y.checklist_id]?.items??N;l(y.checklist_id,F.map(B=>B.id===y.id?{...B,done:j!==null,done_at:j}:B))}};Z(C?new Date().toISOString():null);try{const j=C?await Te.markChecklistItem(y.id):await Te.unmarkChecklistItem(y.id);Z(j.done_at),y.reading_id!==null&&Hi().setReadAt(y.reading_id,j.done_at)}catch(j){l(y.checklist_id,N),wn().show(`Nie udało się zapisać zmiany. ${xt(j)}`)}}async function g(y,C){const O=await Te.addChecklistItem(y,C),N=n.value[y];return N?.items&&l(y,[...N.items,O]),O}async function _(y,C){const O=await Te.updateChecklistItem(y.id,C);if(O.checklist_id!==y.checklist_id){const Z=n.value[y.checklist_id];return Z?.items&&l(y.checklist_id,Z.items.filter(j=>j.id!==y.id)),i(O.checklist_id),r(),O}const N=n.value[y.checklist_id];if(N?.items){const Z=N.items.map(j=>j.id===y.id?O:j);l(y.checklist_id,Z.sort((j,F)=>j.sort_order-F.sort_order||j.id-F.id))}return O}async function w(y){await Te.deleteChecklistItem(y.id);const C=n.value[y.checklist_id];C?.items&&l(y.checklist_id,C.items.filter(O=>O.id!==y.id))}async function S(y,C){const O=n.value[y.checklist_id]?.items;if(!O)return;const N=O.findIndex(B=>B.id===y.id),Z=O[N+C];if(!Z)return;const j=Z.sort_order===y.sort_order?N+C:Z.sort_order,F=Z.sort_order===y.sort_order?N:y.sort_order;try{await Promise.all([_(y,{sort_order:j}),_(Z,{sort_order:F})])}catch(B){wn().show(`Nie udało się zmienić kolejności. ${xt(B)}`),i(y.checklist_id)}}function E(){e.value=null,n.value={},t.value="",s.value=""}return{list:e,listError:t,details:n,detailError:s,loadList:r,loadOne:i,create:a,update:c,remove:u,toggle:p,syncReading:f,addItem:g,updateItem:_,removeItem:w,move:S,reset:E}});function cp(e,t){return[...Ya(e,t,!1)].sort((n,s)=>n-s)}function up(e,t){if(e.length!==t.length)return!1;const n=[...e].sort((r,i)=>r-i),s=[...t].sort((r,i)=>r-i);return n.every((r,i)=>r===s[i])}async function og(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 Qa=ln("calendarFeed",()=>{const e=te(void 0),t=te(!1),n=te(!1),s=te(""),r=Hi(),i=os();let o=Promise.resolve();function l(E){const y=o.then(E,E);return o=y.catch(()=>{}),y}async function a(E=!1){if(!(e.value!==void 0&&!E)){t.value=!0,s.value="";try{e.value=await Te.calendarFeed()}catch(y){s.value=xt(y)}finally{t.value=!1}}}async function c(){await r.loadCourses();const E=r.courses;return E?cp(E,i.choices):null}async function u(E){n.value=!0,s.value="";try{await l(E)}catch(y){s.value=xt(y)}finally{n.value=!1}}function f(){return u(async()=>{const E=await c();e.value=await Te.saveCalendarFeed(E?{excluded_course_ids:E}:{})})}function p(E){return u(async()=>{e.value=await Te.saveCalendarFeed(E)})}function g(){return u(async()=>{e.value=await Te.rotateCalendarFeed()})}function _(){return u(async()=>{await Te.deleteCalendarFeed(),e.value=null})}function w(){return l(async()=>{e.value===void 0&&await a();const E=e.value;if(!E)return;const y=await c();if(!(!y||up(y,E.excluded_course_ids)))try{e.value=await Te.saveCalendarFeed({excluded_course_ids:y})}catch(C){wn().show(`Nie udało się zaktualizować kalendarza. ${xt(C)}`)}})}vn(()=>i.choices,()=>{i.userId!==null&&w()});function S(){e.value=void 0,s.value="",t.value=!1,n.value=!1}return{feed:e,loading:t,busy:n,error:s,load:a,create:f,save:p,rotate:g,remove:_,sync:w,reset:S}}),Ds="/_bm/api/v1",rt="/_chat/api/v1";function dl(e,t,n){return new Promise((s,r)=>{const i=new XMLHttpRequest;i.open("POST",`${rt}/attachments`),i.setRequestHeader("Accept","application/json");const o=ft.get();if(o&&i.setRequestHeader("Authorization",`Bearer ${o}`),i.upload.onprogress=a=>{a.lengthComputable&&a.total>0&&t?.(Math.min(100,Math.round(a.loaded/a.total*100)))},i.onload=()=>{let a=null;try{a=i.responseText?JSON.parse(i.responseText):null}catch{a=null}const c=a&&typeof a=="object"&&"data"in a?a.data:a;if(i.status>=200&&i.status<300&&c&&typeof c.id=="number"){s({id:c.id,filename:String(c.filename??e.name),size:Number(c.size??e.size)});return}const u=a??{};r(new We(i.status,typeof u.error=="string"?u.error:`Błąd ${i.status}`,u.errors??{}))},i.onerror=()=>r(new We(0,"Brak połączenia z serwerem.")),i.onabort=()=>r(new We(0,"Przerwano wysyłanie.")),n){if(n.aborted){r(new We(0,"Przerwano wysyłanie."));return}n.addEventListener("abort",()=>i.abort(),{once:!0})}const l=new FormData;l.append("file",e,e.name),i.send(l)})}async function fp(e,t,n){const s=ft.get();try{return await dl(e,t,n)}catch(r){if(!(r instanceof We)||r.status!==401||!s||n?.aborted)throw r;await K.request("/_user/api/v1/fetch").catch(()=>null);const i=ft.get();if(!i||i===s)throw r;return t?.(0),dl(e,t,n)}}async function dp(e,t,n){const s=await K.blob(`${rt}/attachments/${e}/${t}`),r=URL.createObjectURL(new Blob([s],{type:"application/octet-stream"})),i=document.createElement("a");i.href=r,i.download=n||"plik",i.rel="noopener",i.style.display="none",document.body.appendChild(i),i.click(),i.remove(),setTimeout(()=>URL.revokeObjectURL(r),3e4)}const Ve={bootstrap:()=>K.request(`${Ds}/chat`),members:()=>K.request(`${Ds}/chat/members`),messages:(e,{limit:t=50,before:n}={})=>K.request(`${rt}/conversations/${e}/messages`,{query:{limit:t,before:n}}),send:(e,t)=>K.request(`${rt}/conversations/${e}/messages`,{method:"POST",body:t}),message:e=>K.request(`${rt}/messages/${e}`),markRead:e=>K.request(`${rt}/conversations/${e}/read`,{method:"POST"}),typing:e=>K.request(`${rt}/conversations/${e}/typing`,{method:"POST"}),edit:(e,t)=>K.request(`${rt}/messages/${e}`,{method:"PUT",body:{content:t}}),remove:e=>K.request(`${rt}/messages/${e}`,{method:"DELETE"}),reactions:()=>K.request(`${rt}/reactions`),addReaction:(e,t)=>K.request(`${rt}/messages/${e}/reactions`,{method:"POST",body:{key:t}}),removeReaction:(e,t)=>K.request(`${rt}/messages/${e}/reactions/${encodeURIComponent(t)}`,{method:"DELETE"}),embeds:(e,t="")=>K.request(`${Ds}/chat/embeds`,{query:{type:e,q:t.trim()}}),resolveEmbeds:e=>K.request(`${Ds}/chat/embeds/resolve`,{method:"POST",body:{refs:e}}),upload:fp,download:dp,startDm:e=>K.request(`${rt}/contexts/bm/1/dm`,{method:"POST",body:{user_id:e}})};function Lt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Ke(e){return typeof e=="number"&&Number.isInteger(e)&&e>0?e:null}function hp(e){return Lt(e)?Ke(e.id)!==null&&Ke(e.conversation_id)!==null&&Ke(e.sender_id)!==null&&typeof e.created_at=="string"&&(e.content===null||typeof e.content=="string")&&Array.isArray(e.attachments):!1}function pp(e){if(!Lt(e)||typeof e.event!="string")return null;const t=e.payload;switch(e.event){case"created.chat.message":{if(!Lt(t))return null;const n=Ke(t.id),s=Ke(t.conversation_id),r=Ke(t.sender_id);return n===null||s===null||r===null?null:{kind:"created",id:n,conversationId:s,senderId:r}}case"chat:message":{if(!Lt(t)||!hp(t.message))return null;const n=Ke(t.conversation_id);return n===null||n!==t.message.conversation_id?null:{kind:"chatMessage",conversationId:n,message:t.message}}case"typing.chat.message":{if(!Lt(t)||t.action!=="typing-start")return null;const n=Ke(t.conversation_id),s=Ke(t.user_id);return n===null||s===null?null:{kind:"typing",conversationId:n,userId:s}}case"chat:read":{if(!Lt(t))return null;const n=Ke(t.conversation_id),s=Ke(t.user_id);return n===null||s===null?null:{kind:"read",conversationId:n,userId:s}}case"chat:unread":return!Lt(t)||typeof t.count!="number"||!Number.isInteger(t.count)||t.count<0?null:{kind:"unread",count:t.count};case"mentions.changed":return{kind:"mentions"};case"reacted.chat.message":{if(!Lt(t))return null;const n=Ke(t.id),s=Ke(t.conversation_id),r=Ke(t.user_id);return n===null||s===null||r===null||typeof t.key!="string"||t.key===""||t.action!=="added"&&t.action!=="removed"?null:{kind:"reacted",id:n,conversationId:s,userId:r,key:t.key,added:t.action==="added"}}case"updated.chat.message":case"deleted.chat.message":{if(!Lt(t))return null;const n=Ke(t.id),s=Ke(t.conversation_id);return n===null||s===null?null:{kind:e.event==="updated.chat.message"?"updated":"deleted",id:n,conversationId:s}}default:return null}}function mp(e,t){if(e.kind!=="created")return!1;const n=t[e.conversationId];return!!n&&!n.some(s=>s.id===e.id)}function gp(e,t,{seen:n}){const s={id:t.id,sender_id:t.sender_id,content:t.content??"",created_at:t.created_at},r=e.findIndex(a=>a.id===t.conversation_id);if(r===-1)return[{id:t.conversation_id,type:"dm",other_user_id:t.sender_id,unread:n?0:1,last_message:s},...e];const i=e[r];if(i.last_message&&i.last_message.id===t.id)return e;const o=!i.last_message||Date.parse(t.created_at)>=Date.parse(i.last_message.created_at),l={...i,unread:n?i.unread:i.unread+1,last_message:o?s:i.last_message};return e.map((a,c)=>c===r?l:a)}function Jr(e,t,n,s,r=[]){const i=e?[...e]:[],o=i.findIndex(c=>c.key===t),l=o>=0&&i[o].user_ids.includes(n);if(s===l)return e||i;if(s){if(o>=0)return i[o]={...i[o],count:i[o].count+1,user_ids:[...i[o].user_ids,n]},i;const c={key:t,count:1,user_ids:[n]},u=p=>{const g=r.indexOf(p);return g<0?r.length:g};let f=i.length;return r.includes(t)&&(f=i.findIndex(p=>u(p.key)>u(t)),f<0&&(f=i.length)),i.splice(f,0,c),i}const a=i[o].user_ids.filter(c=>c!==n);return a.length===0?i.splice(o,1):i[o]={...i[o],count:Math.max(0,i[o].count-1),user_ids:a},i}const yp=["svg","svgz","html","htm","xhtml","xml"],vp=["image/svg+xml","text/html","application/xhtml+xml","text/xml","application/xml"];function hl(e){const t=e/1048576;return Number.isInteger(t)?String(t):(Math.floor(t*10)/10).toFixed(1).replace(".",",")}function _p(e){const t=e.name.lastIndexOf("."),n=(t>=0?e.name.slice(t+1):e.name).toLowerCase();if(yp.includes(n))return!0;const s=(e.type||"").split(";")[0].trim().toLowerCase();return vp.includes(s)}function bp(e,t,n,s=0){const r=[],i=[];let o=!1,l=!1,a=!1,c=s;for(const u of e){if(_p(u)){o=!0;continue}if(t.max_bytes>0&&u.size>t.max_bytes){i.push(`Plik „${u.name}” jest za duży. Limit to ${hl(t.max_bytes)} MB.`);continue}if(n+r.length>=t.max_files){l=!0;continue}if(t.max_bytes>0&&c+u.size>t.max_bytes){a=!0;continue}c+=u.size,r.push(u)}return a&&i.unshift(`Załączniki jednej wiadomości mogą mieć razem najwyżej ${hl(t.max_bytes)} MB.`),o&&i.unshift("Plików SVG, HTML i XML nie można wysyłać na czacie."),l&&i.unshift(`Możesz dołączyć najwyżej ${t.max_files} plików do jednej wiadomości.`),{accepted:r,errors:i}}const Za="Europe/Warsaw",wp="pl-PL";function Xa(e,t,n,s){const r=Math.abs(e);if(r===1)return t;const i=r%10,o=r%100;return i>=2&&i<=4&&!(o>=12&&o<=14)?n:s}function gi(e,t,n,s){return`${e} ${Xa(e,t,n,s)}`}const Bn=(e,t=Za)=>new Intl.DateTimeFormat(wp,{timeZone:t,...e}),Ep=Bn({hour:"2-digit",minute:"2-digit",hourCycle:"h23"}),Sp=Bn({weekday:"long",day:"numeric",month:"long"}),Rp=Bn({day:"numeric",month:"long",year:"numeric"}),Tp=Bn({day:"numeric",month:"short"});Bn({weekday:"long"});const Ap=new Intl.DateTimeFormat("sv-SE",{timeZone:Za,year:"numeric",month:"2-digit",day:"2-digit"});function Ls(e){return new Date(`${e}T12:00:00Z`)}const Ns=e=>Bn(e,"UTC"),yi=e=>Ep.format(new Date(e)),xp=e=>Sp.format(new Date(e)),Cp=e=>Rp.format(new Date(e)),lg=e=>Tp.format(new Date(e)),Pp=e=>`${Cp(e)}, ${yi(e)}`,ec=e=>Ap.format(typeof e=="string"?new Date(e):e),Op=(e=new Date)=>ec(e);function tc(e,t=new Date){const n=Date.parse(`${Op(t)}T00:00:00Z`),s=Date.parse(`${ec(e)}T00:00:00Z`);return Math.round((s-n)/864e5)}function Mp(e,t=new Date){const n=tc(e,t);return n===0?"dzisiaj":n===1?"jutro":n===-1?"wczoraj":n>1?`za ${gi(n,"dzień","dni","dni")}`:`${gi(-n,"dzień","dni","dni")} temu`}function ag(e,t){if(e===t)return Ns({day:"numeric",month:"long",year:"numeric"}).format(Ls(e));const[n,s]=e.split("-"),[r,i]=t.split("-"),o=c=>Ns({day:"numeric"}).format(Ls(c)),l=c=>Ns({day:"numeric",month:"long"}).format(Ls(c)),a=c=>Ns({year:"numeric"}).format(Ls(c));return n===r&&s===i?`${o(e)}–${l(t)} ${a(t)}`:n===r?`${l(e)} – ${l(t)} ${a(t)}`:`${l(e)} ${a(e)} – ${l(t)} ${a(t)}`}function cg(e){return e?/online/i.test(e)?"online":/stacjonarn/i.test(e)?"stacjonarny":null:null}function ug(e){return e?e.trim().toLowerCase()==="online"?"":e.trim():""}const kp={wyklad:"wykład",cwiczenia:"ćwiczenia",konwersatorium:"konwersatorium",seminarium:"seminarium",inne:"zajęcia"},Ip={zaliczenie:"zaliczenie",egzamin:"egzamin",praca:"praca",organizacyjne:"organizacyjne",inne:"inne"},fg={pdf:"PDF",notatka:"notatka",link:"link",inne:"inne"};function dg(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(0)} KB`:`${(e/1024/1024).toFixed(1).replace(".",",")} MB`}const Dp=["deadline","class","reading"],vi=3,hg={deadline:"Termin",class:"Zajęcia",reading:"Lektura"};function en(e){return`${e.type}:${e.id}`}function Lp(e){return typeof e=="string"&&Dp.includes(e)}function nc(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>0}function Np(e){if(!e||typeof e!="object")return!1;const t=e;return Lp(t.type)&&nc(t.id)}function jp(e,t=vi){const n=e?.metadata?.embeds;if(!Array.isArray(n))return[];const s=[],r=new Set;for(const i of n){if(s.length>=t)break;if(!Np(i))continue;const o={type:i.type,id:i.id},l=en(o);r.has(l)||(r.add(l),s.push(o))}return s}function sc(e){switch(e.type){case"deadline":return`/terminarz#termin-${e.id}`;case"class":return`/plan#zajecia-${e.id}`;case"reading":return`/lektury#lektura-${e.id}`}}function $p(e,t=""){return e.map(n=>t+sc(n)).join(`
`)}function pg(e,t){if(!e||!t.length)return!1;const n=e.trim().split(`
`);return n.length!==t.length?!1:n.every((s,r)=>{const i=sc(t[r]);return s===i?!0:s.endsWith(i)?/^https?:\/\/[^/\s]+$/i.test(s.slice(0,s.length-i.length)):!1})}function mg(e){switch(e.type){case"deadline":return e.deadline.title;case"class":return e.session.course?.name??"";case"reading":return e.reading.title}}function gg(e){switch(e.type){case"deadline":return`/terminarz#termin-${e.id}`;case"class":{const t=e.session;return t.meeting_number?`/plan?zjazd=${t.meeting_number}#zajecia-${e.id}`:`/przedmioty/${t.course_id}`}case"reading":return`/lektury#lektura-${e.id}`}}function yg(e){switch(e.type){case"deadline":{const t=e.deadline,n=[Pp(t.due_at),Ip[t.kind]??t.kind];return t.course?.name&&n.push(t.course.name),n.join(" · ")}case"class":{const t=e.session,n=[`${xp(t.starts_at)}, ${yi(t.starts_at)}–${yi(t.ends_at)}`];return t.course?.form&&n.push(kp[t.course.form]??t.course.form),t.is_online?n.push("online"):t.room&&n.push(`sala ${t.room}`),n.join(" · ")}case"reading":{const t=e.reading;return[t.author,t.course?.name].filter(n=>!!n).join(" · ")}}}function pl(e,t){const n=tc(e,t);return{text:Mp(e,t),warn:n>=0&&n<=14}}function vg(e,t=new Date){switch(e.type){case"deadline":return pl(e.deadline.due_at,t);case"class":return pl(e.session.starts_at,t);case"reading":return e.reading.is_required?{text:"obowiązkowa",warn:!1}:null}}const zp=[{path:"/terminarz",hash:/^#termin-([1-9]\d{0,15})$/,type:"deadline"},{path:"/plan",hash:/^#zajecia-([1-9]\d{0,15})$/,type:"class"},{path:"/lektury",hash:/^#lektura-([1-9]\d{0,15})$/,type:"reading"}];function rc(e,t){const n=e.trim();if(!n||!/^https?:\/\//i.test(n)&&(!n.startsWith("/")||n.startsWith("//")))return null;let r;try{r=new URL(n,t)}catch{return null}if(r.origin!==t)return null;for(const i of zp){if(r.pathname!==i.path)continue;const o=i.hash.exec(r.hash);if(!o)return null;const l=Number(o[1]);return nc(l)?{type:i.type,id:l}:null}return null}const Vp=/https?:\/\/[^\s<>"'`]+|(?<![^\s(\[{"'„«])\/[^\s<>"'`]+/gi;function Fp(e,t){const n=[],s=new Set;for(const r of e.matchAll(Vp)){const i=r[0].replace(/[.,;:!?)\]}"'”»]+$/,""),o=rc(i,t);if(!o)continue;const l=en(o);s.has(l)||(s.add(l),n.push(o))}return n}function _g(e,t){const n=Fp(e,t);return n.length?{insertText:e.trim().split(/\s+/).every(i=>rc(i,t)!==null)?"":e,refs:n}:{insertText:e,refs:n}}const Bp="/ws",Up="/api/realtime/token",qp=new Set([401,403,404]);function ic(e){return qp.has(e)}const Hp=1;function Kp(e=window.location){return`${e.protocol==="https:"?"wss":"ws"}://${e.host}${Bp}`}function Gp(e){const t=String(e);return t==="connected"||t==="connecting"?t:"disconnected"}function _i(e){if(!e||typeof e.client!="string")return null;const t=Number(e.user);return!Number.isInteger(t)||t<=0?null:{client:e.client,user:t}}let Vt=null,Mn=null,gs="disconnected",br=!1,Xs=null,bi=null,bn=0;const sn=new Map,wi=new Set,Vs=new Set;function oc(e){gs=e;for(const t of[...wi])t(e)}function Wp(){br=!0;for(const e of[...Vs])e()}function bg(e){Xs=e}function Jp(e,t){return e instanceof We&&ic(e.status)&&bi?new bi(t):e}function lc(e){return wi.add(e),()=>{wi.delete(e)}}function ac(e){return Vs.add(e),br&&queueMicrotask(()=>Vs.has(e)&&e()),()=>{Vs.delete(e)}}function Yp(){if(Vt)return gs==="disconnected"&&!br&&Vt.connect(),Promise.resolve(Vt);if(Mn)return Mn;const e=bn;return Mn=(async()=>{try{const{Centrifuge:t,UnauthorizedError:n}=await ve(async()=>{const{Centrifuge:r,UnauthorizedError:i}=await import("./index-B53bcf0x.js");return{Centrifuge:r,UnauthorizedError:i}},[]);if(e!==bn)throw new Error("realtime: disconnected while loading");bi=n;const s=new t(Kp(),{minReconnectDelay:500,maxReconnectDelay:1e4,getToken:async()=>{try{const r=Xs;let i;if(r?i=await r.connection():i=(await K.request(Up))?.token,typeof i!="string"||i==="")throw new Error("realtime: empty token");return i}catch(r){throw r instanceof We&&ic(r.status)?(Wp(),new n("realtime unavailable")):r}}});return s.on("state",r=>{Vt===s&&oc(Gp(r.newState))}),Vt=s,s.connect(),s}finally{e===bn&&(Mn=null)}})(),Mn}function Cn(e,t){for(const n of[...e.hooks])t(n)}function Qp(e,t){return Xs?.subscription?e.newSubscription(t,{getToken:async()=>{const n=Xs;if(!n?.subscription)throw new Error("realtime: no subscription token source");try{const s=await n.subscription(t);if(typeof s!="string"||s==="")throw new Error("realtime: empty subscription token");return s}catch(s){throw Jp(s,"subscription refused")}}}):e.newSubscription(t)}function Zp(e,t,n){let s=sn.get(t);if(s)String(s.sub.state)==="subscribed"&&queueMicrotask(()=>s?.hooks.has(n)&&n.onSubscribed?.());else{const r=e.getSubscription(t)??Qp(e,t),i={sub:r,hooks:new Set};r.on("publication",o=>Cn(i,l=>l.onPublication?.(o.data))),r.on("subscribed",()=>Cn(i,o=>o.onSubscribed?.())),r.on("unsubscribed",o=>{o.code>=400?Cn(i,l=>l.onDenied?.(o.code)):o.code===Hp&&Cn(i,l=>l.onDenied?.(401))}),r.on("join",o=>{const l=_i(o.info);l&&Cn(i,a=>a.onJoin?.(l))}),r.on("leave",o=>{const l=_i(o.info);l&&Cn(i,a=>a.onLeave?.(l))}),sn.set(t,i),r.subscribe(),s=i}return s.hooks.add(n),s}function cc(e,t){t.sub.removeAllListeners(),t.sub.unsubscribe(),Vt?.removeSubscription(t.sub),sn.delete(e)}async function Fs(e,t){const n=await Yp(),s={...t},r=bn;Zp(n,e,s);let i=!1;return{close(){if(i)return;i=!0;const o=sn.get(e);r!==bn||!o||!o.hooks.delete(s)||o.hooks.size>0||(cc(e,o),sn.size===0&&Vt===n&&n.disconnect())},resubscribe(){i||r!==bn||sn.get(e)?.sub.subscribe()}}}async function Xp(e){const t=sn.get(e);if(!t)return null;try{const n=await t.sub.presence();return Object.values(n.clients??{}).map(s=>_i(s)).filter(s=>s!==null)}catch{return null}}function em(){bn++,Mn=null;for(const[t,n]of[...sn])cc(t,n);const e=Vt;Vt=null,br=!1,e&&(e.disconnect(),e.removeAllListeners()),gs!=="disconnected"&&oc("disconnected")}async function wg(e,t){const n=lc(o=>t.onConnection?.(o)),s=ac(()=>t.onUnavailable?.());let r;try{r=await Fs(e,{onPublication:o=>t.onPublication(o),onSubscribed:()=>t.onSubscribed?.(),onDenied:o=>t.onDenied?.(o)})}catch(o){throw n(),s(),o}gs==="connected"&&t.onConnection?.(gs);let i=!1;return{close(){i||(i=!0,n(),s(),r.close())},resubscribe(){i||r.resubscribe()}}}const tm={max_files:5,max_bytes:62914560};function nm(e){return`Nie udało się wysłać pliku „${e}”.`}const sm=Object.freeze({text:"",error:"",sending:!1,embeds:Object.freeze([]),files:Object.freeze([])}),ml=50;function rm(){return typeof window<"u"&&window.location?window.location.origin:""}function im(e){const t=e instanceof We?e.status:-1;return t===0?"Nie wysłano: brak połączenia z internetem. Spróbuj ponownie.":t===429?"Za dużo wiadomości w krótkim czasie. Odczekaj chwilę i wyślij ponownie.":t===403||t===404?"Nie masz już dostępu do tej rozmowy.":t===400||t===422?"Tej wiadomości nie da się wysłać. Sprawdź treść i załączniki.":"Nie wysłano wiadomości. Spróbuj ponownie."}function om(e){return e instanceof We&&e.status===429?"Za dużo nowych rozmów w krótkim czasie. Odczekaj minutę i spróbuj ponownie.":e instanceof We&&e.status===0?"Brak połączenia z internetem. Spróbuj ponownie.":"Nie udało się rozpocząć rozmowy. Spróbuj ponownie."}const lm=15e3,am=6e4,cm=500,Qt=50,um="Nie udało się wczytać starszych wiadomości.",fm=3e3,dm=6e3,gl={add:"Nie udało się dodać reakcji.",remove:"Nie udało się cofnąć reakcji."},yl="Nie udało się zapisać zmian. Spróbuj ponownie.",hm="Nie udało się usunąć wiadomości. Spróbuj ponownie.";function uc(e){e.deleted_at=e.deleted_at??new Date().toISOString(),e.content=null,e.reactions=[],e.attachments=[],e.metadata=void 0}function pm(e,t,n){const s=new Set(t.map(i=>i.id)),r=t.length<Qt?0:t[0]?.id??1/0;for(const i of e)i.deleted_at||s.has(i.id)||i.id<r||i.id>n||uc(i)}const vl=e=>`chat:conversation:${e}`;function mm(){return typeof document>"u"||typeof document.hasFocus!="function"||document.hasFocus()}function _l(e,t){if(e.some(s=>s.id===t.id))return!1;let n=e.length;for(;n>0&&e[n-1].id>t.id;)n--;return e.splice(n,0,t),!0}const fc=e=>`bm.chat.member.${e}`;function dc(){try{return globalThis.localStorage??null}catch{return null}}function gm(e){try{const t=dc()?.getItem(fc(e));return t==="1"?!0:t==="0"?!1:void 0}catch{return}}function ym(e,t){try{dc()?.setItem(fc(e),t?"1":"0")}catch{}}const hc=ln("chat",()=>{const e=te(null),t=te(void 0),n=te(!1),s=te(null),r=te([]),i=te(null),o=te(null),l=te("general"),a=te(""),c=te({}),u=te({}),f=te({}),p=te({}),g=te({}),_=Ln(new Map),w=te("idle"),S=te("idle"),E=te("idle"),y=te(!1),C=te({}),O=te({}),N=te({}),Z=Ln(new Map),j=te(!1),F=te({}),B=te(null),oe=te({});let D=0,Ae=null,xe=null,q=null;const Ee=new Map,X=new Map,G=new Set;let re=null,Le=0;const pe=new Map,Se=new Map;let Oe=!1,yt=null,vt=null,st=null,qe=null,P=0,U=[],z=null,H=null;const ie=new Set,h=new Map,m=new Map,v=new Map,A=new Set;let x=null;const R=new Map,$=new Map,I=ne(()=>s.value?.conversation_id??null);function L(d){return d===I.value?s.value?.unread??0:r.value.find(b=>b.id===d)?.unread??0}function M(d){return d===I.value?s.value?.mentions??0:0}const Y=ne(()=>r.value.reduce((d,b)=>d+(b.unread>0?b.unread:0),0)),V=ne(()=>t.value?Math.max(0,s.value?.unread??0)+Y.value:0),W=ne(()=>t.value?Math.max(0,s.value?.mentions??0):0),ee=ne(()=>{const d=new Map;for(const b of _.value.values())b.handle&&d.set(b.handle,b);return d}),ae=ne(()=>e.value!==null?_.value.get(e.value)?.handle??null:null),he=ne(()=>[...new Set(Z.value.values())].filter(d=>d!==e.value).sort((d,b)=>d-b)),me=ne(()=>he.value.length+1);function Me(d){return j.value&&he.value.includes(d)}function Ne(d){return E.value==="unavailable"?[]:F.value[d]??[]}const at=ne(()=>[...r.value].sort((d,b)=>{const T=d.last_message?Date.parse(d.last_message.created_at):-1/0;return(b.last_message?Date.parse(b.last_message.created_at):-1/0)-T||b.id-d.id}));function ct(d){if(!d.member){no(),t.value=!1,n.value=!1,s.value=null,r.value=[],i.value=null,o.value=null,l.value="general",c.value={};return}t.value=!0,n.value=d.moderator,s.value=d.general,r.value=(d.conversations??[]).map(T=>({...T})),i.value=d.limits;for(const T of[...v.keys(),...A])Ki(T);o.value!==null&&(o.value===d.general.conversation_id||r.value.some(T=>T.id===o.value))||(o.value=d.general.conversation_id,l.value==="dm"&&(l.value="general"))}function _t(){if(Ae)return Ae;const d=D,b=S.value==="ready";return b||(S.value="loading"),Ae=(async()=>{try{const T=await Ve.bootstrap();if(d!==D)return;ct(T),e.value!==null&&ym(e.value,T.member),S.value="ready"}catch{d===D&&!b&&(S.value="error")}finally{d===D&&(Ae=null)}})(),Ae}async function Es(d){e.value!==d&&(so(),e.value=d),t.value===void 0&&(t.value=gm(d));const b=D;await _t(),!(b!==D||!t.value)&&(Qi(),Zi(),_c(),Zc(),o.value!==null&&l.value!=="dms"&&await Je(o.value))}async function He(d){const b=D;u.value[d]=!0,f.value[d]="";try{const T=await Ve.messages(d,{limit:Qt});if(b!==D)return;c.value[d]=T,C.value[d]=T.length<Qt,L(d)===0&&M(d)===0&&m.set(d,T.at(-1)?.id??0)}catch{b===D&&(f.value[d]="Nie udało się wczytać wiadomości. Sprawdź połączenie z internetem i spróbuj ponownie.")}finally{b===D&&(u.value[d]=!1)}}async function Je(d){o.value=d,Pr(),c.value[d]===void 0&&!u.value[d]&&await He(d)}function En(d){const b=h.get(d);if(b)return b;const T=D,k=(async()=>{try{const J=c.value[d]?.at(-1)?.id??0,ce=await Ve.messages(d,{limit:Qt});if(T!==D)return;const fe=c.value[d],le=fe?.at(-1)?.id??0;if(!fe||ce.length>=Qt&&ce[0].id>le){c.value[d]=ce,f.value[d]="",C.value[d]=ce.length<Qt;return}pm(fe,ce,J);const ue=new Map(fe.map(bt=>[bt.id,bt]));for(const bt of ce)ue.set(bt.id,bt);c.value[d]=[...ue.values()].sort((bt,an)=>bt.id-an.id)}catch{}finally{T===D&&h.delete(d)}})();return h.set(d,k),k}async function Ss(d){const b=c.value[d];if(!b?.length||O.value[d]||C.value[d])return;const T=D;O.value[d]=!0,N.value[d]="";try{const k=await Ve.messages(d,{limit:Qt,before:b[0].id});if(T!==D)return;const J=c.value[d]??[],ce=new Set(J.map(fe=>fe.id));c.value[d]=[...k.filter(fe=>!ce.has(fe.id)),...J],C.value[d]=k.length<Qt}catch{T===D&&(N.value[d]=um)}finally{T===D&&(O.value[d]=!1)}}function Ki(d){if(d===I.value){s.value&&(s.value.unread=0,s.value.mentions=0);return}const b=r.value.find(T=>T.id===d);b&&(b.unread=0)}function vc(d){const b=c.value[d]?.at(-1)?.id??0;if(!(L(d)>0||M(d)>0||b>(m.get(d)??0))||(Ki(d),m.set(d,b),v.has(d)))return;const k=D;v.set(d,setTimeout(()=>{v.delete(d),k===D&&(A.add(d),Ve.markRead(d).catch(()=>{}).finally(()=>{k===D&&A.delete(d)}))},cm))}function _c(){x||typeof document>"u"||(x=()=>{document.visibilityState==="visible"&&t.value&&Un()},document.addEventListener("visibilitychange",x))}function Gi(){return l.value==="dms"?null:o.value}function bc(d){return o.value===d&&l.value!=="dms"&&y.value&&mm()}function Wi(d){const b=c.value[d.conversation_id];b&&_l(b,d);const T=r.value.find(k=>k.id===d.conversation_id);T&&(!T.last_message||Date.parse(d.created_at)>=Date.parse(T.last_message.created_at))&&(T.last_message={id:d.id,sender_id:d.sender_id,content:d.content??"",created_at:d.created_at})}async function wc(){l.value="general",I.value!==null&&await Je(I.value)}function Ec(){l.value="dms",a.value="",Pr()}async function wr(d){l.value="dm",await Je(d)}function Ji(d){return r.value.find(b=>b.other_user_id===d)}async function Sc(d){a.value="";const b=Ji(d);if(b)return await wr(b.id),b.id;const T=D;try{const k=await Ve.startDm(d);return T!==D?null:(r.value.some(J=>J.id===k.id)||r.value.unshift({id:k.id,type:k.type||"dm",other_user_id:d,unread:0,last_message:null}),await wr(k.id),k.id)}catch(k){return T===D&&(a.value=om(k)),null}}function Er(d){return d!==null&&p.value[d]||sm}function Rs(d){return p.value[d]||(p.value[d]={text:"",error:"",sending:!1,embeds:[],files:[]}),p.value[d]}function Sr(d){return Er(d).files.some(b=>b.state==="uploading")}function Rc(d){const b=Er(d);return b.sending||Sr(d)?!1:b.text.trim()!==""||b.embeds.length>0||b.files.some(T=>T.state==="done")}function Yi(d,b){const T=pe.get(b),k=p.value[d]?.files.find(le=>le.localId===b);if(!T||!k)return;k.state="uploading",k.progress=0,k.id=null;const J=new AbortController;Se.set(b,J);const ce=D,fe=()=>p.value[d]?.files.find(le=>le.localId===b);Ve.upload(T,le=>{const ue=fe();ce===D&&ue&&ue.state==="uploading"&&(ue.progress=le)},J.signal).then(le=>{const ue=fe();ce!==D||!ue||J.signal.aborted||(ue.state="done",ue.progress=100,ue.id=le.id)}).catch(()=>{const le=fe();if(ce!==D||!le||J.signal.aborted)return;le.state="failed";const ue=p.value[d];ue&&(ue.error=nm(le.name))}).finally(()=>{Se.get(b)===J&&Se.delete(b)})}function Tc(d,b){const T=Rs(d),k=T.files.reduce((fe,le)=>fe+le.size,0),{accepted:J,errors:ce}=bp(b,i.value??tm,T.files.length,k);T.error=ce.join(" ");for(const fe of J){const le=++Le;pe.set(le,fe),T.files.push({localId:le,name:fe.name,size:fe.size,progress:0,state:"uploading",id:null}),Yi(d,le)}return ce}function Ac(d,b){const T=p.value[d]?.files.find(J=>J.localId===b);if(!T||T.state!=="failed")return;const k=p.value[d];k&&(k.error=""),Yi(d,b)}function xc(d,b){Se.get(b)?.abort(),Se.delete(b),pe.delete(b);const T=p.value[d];T&&(T.files=T.files.filter(k=>k.localId!==b))}const Ts=ne(()=>Math.min(i.value?.max_embeds||vi,vi));function Cc(d,b,T){const k=Rs(d),J=en(b);return k.embeds.some(ce=>en(ce)===J)||k.embeds.length>=Ts.value?!1:(k.embeds.push({type:b.type,id:b.id}),k.error="",T?oe.value[J]=T:Rr([b]),!0)}function Pc(d,b){const T=p.value[d];if(!T)return;const k=en(b);T.embeds=T.embeds.filter(J=>en(J)!==k)}function Oc(d){return oe.value[en(d)]}function Rr(d,b=!1){for(const T of d){const k=en(T);G.has(k)||X.has(k)||!b&&k in oe.value||X.set(k,{type:T.type,id:T.id})}if(!X.size)return re??Promise.resolve();if(!re){const T=D;re=Promise.resolve().then(async()=>{const k=[...X.entries()];X.clear(),re=null;for(const[J]of k)G.add(J);for(let J=0;J<k.length;J+=ml){const ce=k.slice(J,J+ml);try{const fe=await Ve.resolveEmbeds(ce.map(([,le])=>le));if(T!==D)return;for(const[le]of ce){const ue=fe&&typeof fe=="object"?fe[le]:void 0;oe.value[le]=ue??null}}catch{}finally{if(T===D)for(const[fe]of ce)G.delete(fe)}}})}return re}function Mc(d,b=!1){const T=[];for(const k of d??[])k.deleted_at||T.push(...jp(k,Ts.value));return Rr(T,b)}function kc(d,b){const T=Rs(d);T.text=b,T.error=""}async function Ic(d=o.value){if(d===null)return!1;const b=Rs(d),T=b.embeds.slice(0,Ts.value),k=b.files.filter(ue=>ue.state==="done"&&ue.id!==null),J=k.map(ue=>ue.id);let ce=b.text.trim();if(!ce&&!T.length&&!J.length||b.sending||Sr(d))return!1;!ce&&!J.length&&(ce=$p(T,rm()));const fe={content:ce};J.length&&(fe.attachment_ids=J),T.length&&(fe.metadata={embeds:T.map(ue=>({type:ue.type,id:ue.id}))}),b.sending=!0,b.error="";const le=D;try{const ue=await Ve.send(d,fe);if(le!==D)return!1;Wi(ue),b.text="",b.embeds=[];const bt=new Set(k.map(an=>an.localId));for(const an of bt)pe.delete(an);return b.files=b.files.filter(an=>!bt.has(an.localId)),!0}catch(ue){return le!==D||(b.error=im(ue),ue instanceof We&&(ue.status===403||ue.status===404)&&_t()),!1}finally{b.sending=!1}}function Dc(d,b){g.value[d]={...b}}function Lc(d){return g.value[d]??null}function Qi(d=!1){if(xe)return xe;if(w.value==="ready"&&!d)return Promise.resolve();const b=D;return w.value="loading",xe=(async()=>{try{const T=await Ve.members();if(b!==D)return;_.value=new Map(T.map(k=>[k.id,k])),w.value="ready"}catch{b===D&&(w.value="error")}finally{b===D&&(xe=null)}})(),xe}function Zi(){if(B.value!==null)return Promise.resolve();if(q)return q;const d=D;return q=(async()=>{try{const b=await Ve.reactions();d===D&&(B.value=Array.isArray(b)?b.filter(T=>typeof T=="string"&&T!==""):[])}catch{}finally{d===D&&(q=null)}})(),q}function Sn(d,b){return c.value[d]?.find(T=>T.id===b)}async function Nc(d,b){const T=e.value,k=Sn(d.conversation_id,d.id);if(T===null||!k||k.deleted_at)return;const J=!(k.reactions??[]).some(le=>le.key===b&&le.user_ids.includes(T));k.reactions=Jr(k.reactions,b,T,J,B.value??[]);const ce=(Ee.get(k.id)??0)+1;Ee.set(k.id,ce);const fe=D;try{const le=J?await Ve.addReaction(k.id,b):await Ve.removeReaction(k.id,b);if(fe!==D||Ee.get(k.id)!==ce)return;const ue=Sn(d.conversation_id,d.id);ue&&!ue.deleted_at&&(ue.reactions=le.reactions??[])}catch{if(fe!==D)return;const le=Sn(d.conversation_id,d.id);le&&(le.reactions=Jr(le.reactions,b,T,!J,B.value??[])),wn().show(J?gl.add:gl.remove)}finally{fe===D&&Ee.get(k.id)===ce&&Ee.delete(k.id)}}function jc(d){return e.value!==null&&d.sender_id===e.value&&!d.deleted_at&&d.type==="text"}function $c(d){return e.value===null||d.deleted_at?!1:d.sender_id===e.value?!0:n.value&&I.value!==null&&d.conversation_id===I.value}function Xi(d){const b=c.value[d.conversation_id],T=b?b.findIndex(J=>J.id===d.id):-1;b&&T>=0&&(b[T]=d);const k=r.value.find(J=>J.id===d.conversation_id);k?.last_message?.id===d.id&&(k.last_message={...k.last_message,content:d.content??""})}function As(d,b){const T=Sn(d,b);T&&uc(T);const k=r.value.find(J=>J.id===d);k?.last_message?.id===b&&(k.last_message={...k.last_message,content:""})}async function zc(d,b){const T=b.trim();if(T===(d.content??"").trim())return null;if(!T)return yl;const k=D;try{const J=await Ve.edit(d.id,T);return k===D&&Xi(J),null}catch{return yl}}async function Vc(d){const b=D;try{return await Ve.remove(d.id),b===D&&As(d.conversation_id,d.id),null}catch(T){return T instanceof We&&T.status===404?(b===D&&As(d.conversation_id,d.id),null):hm}}async function Fc(d,b){if(!Sn(d,b))return;const T=D;try{const k=await Ve.message(b);if(T!==D)return;k.deleted_at?As(d,b):Xi(k)}catch{}}function Un(){return _t()}async function Bc(d){if(ie.has(d))return;ie.add(d);const b=D;try{const T=await Ve.message(d);b===D&&Wi(T)}catch{}finally{b===D&&ie.delete(d)}}function Uc(d){const b=d.conversation_id;xr(b,d.sender_id);const T=bc(b),k=c.value[b];if(k&&_l(k,d),b===I.value){s.value&&!T&&(s.value.unread+=1);return}r.value=gp(r.value,d,{seen:T})}function qc(d){switch(d.kind){case"created":xr(d.conversationId,d.senderId),mp(d,c.value)&&Bc(d.id);return;case"typing":Gc(d.conversationId,d.userId);return;case"chatMessage":Uc(d.message);return;case"mentions":Un();return;case"updated":Fc(d.conversationId,d.id);return;case"deleted":As(d.conversationId,d.id);return;case"reacted":{const b=Sn(d.conversationId,d.id);b&&!b.deleted_at&&(b.reactions=Jr(b.reactions,d.key,d.userId,d.added,B.value??[]));return}default:return}}function Tr(d){const b=pp(d);b&&qc(b)}function Ar(){const d=Gi();d!==null&&c.value[d]!==void 0&&En(d),Un()}function Hc(d){if(!(E.value==="idle"||E.value==="unavailable")){if(d==="connected"){E.value="connected";return}j.value=!1,Cr(),E.value=E.value==="connected"||E.value==="reconnecting"?"reconnecting":"connecting"}}function Kc(){eo(),z=setInterval(()=>{const d=Gi();d!==null&&En(d)},lm),H=setInterval(()=>{Un()},am)}function eo(){z&&clearInterval(z),H&&clearInterval(H),z=null,H=null}function to(){!Oe||E.value==="unavailable"||(E.value="unavailable",j.value=!1,Cr(),Kc())}function Gc(d,b){if(b===e.value||E.value==="unavailable")return;const T=F.value[d]??[];T.includes(b)||(F.value[d]=[...T,b]);const k=`${d}:${b}`,J=R.get(k);J&&clearTimeout(J),R.set(k,setTimeout(()=>xr(d,b),dm))}function xr(d,b){const T=`${d}:${b}`,k=R.get(T);k&&clearTimeout(k),R.delete(T);const J=F.value[d];J?.includes(b)&&(F.value[d]=J.filter(ce=>ce!==b))}function Cr(){for(const d of R.values())clearTimeout(d);R.clear(),F.value={}}function Wc(d,b){if(!b.trim()||E.value==="idle"||E.value==="unavailable")return;const T=Date.now(),k=$.get(d);k!==void 0&&T-k<fm||($.set(d,T),Ve.typing(d).catch(()=>{}))}async function Jc(d){const b=D,T=await Xp(d);if(!(b!==D||E.value==="unavailable")){if(T===null){j.value=!1;return}Z.value=new Map(T.map(k=>[k.client,k.user])),j.value=!0}}function Yc(d){const b=new Map(Z.value);b.set(d.client,d.user),Z.value=b}function Qc(d){if(!Z.value.has(d.client))return;const b=new Map(Z.value);b.delete(d.client),Z.value=b}async function Zc(){if(Oe||e.value===null||I.value===null)return;Oe=!0;const d=D,b=e.value,T=I.value;E.value="connecting",U.push(lc(Hc),ac(to));try{const k=await Fs(`user:${b}`,{onPublication:Tr,onSubscribed:Ar});if(d!==D)return k.close();yt=k;const J=vl(T),ce=await Fs(J,{onPublication:Tr,onSubscribed:()=>{Ar(),Jc(J)},onJoin:Yc,onLeave:Qc});if(d!==D)return ce.close();vt=ce,await Pr()}catch{d===D&&to()}}async function Pr(){if(!Oe)return;const d=l.value==="dm"?o.value:null;if(d===qe)return;const b=++P;if(st?.close(),st=null,qe=d,d===null)return;const T=D;try{const k=await Fs(vl(d),{onPublication:Tr,onSubscribed:Ar});if(T!==D||b!==P)return k.close();st=k}catch{}}function no(){for(const b of U)b();U=[],yt?.close(),vt?.close(),st?.close(),yt=vt=st=null,qe=null,P++,eo();const d=Oe;return Oe=!1,E.value="idle",j.value=!1,Z.value=new Map,Cr(),$.clear(),d}function so(){(no()||e.value!==null)&&em(),ie.clear(),h.clear();for(const d of v.values())clearTimeout(d);v.clear(),A.clear(),m.clear(),x&&typeof document<"u"&&document.removeEventListener("visibilitychange",x),x=null,D++,Ae=null,xe=null,q=null,Ee.clear(),B.value=null;for(const d of Se.values())d.abort();Se.clear(),pe.clear(),X.clear(),G.clear(),re=null,oe.value={},e.value=null,t.value=void 0,n.value=!1,s.value=null,r.value=[],i.value=null,o.value=null,l.value="general",a.value="",c.value={},u.value={},f.value={},p.value={},g.value={},C.value={},O.value={},N.value={},_.value=new Map,w.value="idle",S.value="idle"}return{userId:e,member:t,moderator:n,general:s,generalId:I,conversations:r,limits:i,activeId:o,view:l,dmError:a,dmRows:at,messages:c,loading:u,errors:f,drafts:p,anchors:g,members:_,membersByHandle:ee,myHandle:ae,membersState:w,bootstrapState:S,connection:E,panelVisible:y,reachedStart:C,olderLoading:O,olderError:N,dmUnread:Y,totalUnread:V,totalMentions:W,unreadOf:L,mentionsOf:M,markRead:vc,loadOlder:Ss,presenceAvailable:j,othersOnline:he,onlineCount:me,isOnline:Me,typing:F,typingIn:Ne,emitTyping:Wc,init:Es,bootstrap:_t,open:Je,showGeneral:wc,showDms:Ec,openDm:wr,dmWith:Ji,startDm:Sc,loadLatest:He,refreshLatest:En,refetchCounts:Un,draft:Er,setDraftText:kc,send:Ic,maxEmbeds:Ts,uploading:Sr,canSend:Rc,uploadFiles:Tc,retryUpload:Ac,removeFile:xc,stageEmbed:Cc,unstageEmbed:Pc,embedItems:oe,embedItem:Oc,resolveRefs:Rr,resolveFor:Mc,saveAnchor:Dc,anchorFor:Lc,loadMembers:Qi,allowedReactions:B,loadReactions:Zi,toggleReaction:Nc,canEdit:jc,canDelete:$c,edit:zc,remove:Vc,reset:so}});let Yr=null;const pc=ln("auth",()=>{const e=te(null),t=te(ft.get()),n=te(!1),s=ne(()=>t.value!==null),r=ne(()=>{const S=e.value;return S?[S.name,S.surname].filter(Boolean).join(" ")||S.email:""});function i(S,E,y){ft.set(S,y),t.value=ft.get(),E&&(e.value=E,os().load(E.id))}function o(){ft.clear(),t.value=null,e.value=null,Hi().reset(),ap().reset(),os().reset(),Qa().reset(),hc().reset()}async function l(S){S&&(Yr={public:S.meta.public===!0,fullPath:S.fullPath});try{if(ft.get())try{const E=await fn.fetch();e.value=E.user,t.value=ft.get(),os().load(E.user.id)}catch{ft.get()||o()}n.value=!0}finally{Yr=null}}async function a(S,E,y){const C=await fn.login({email:S,password:E});i(C.token,C.user,y)}async function c(S,E){const y=await fn.register(S);return y.token?(i(y.token,y.user,E),{signedIn:!0,message:""}):{signedIn:!1,message:y.message??""}}function u(S){return i(S.token,S.user,!0),{action:S.action,returnTo:S.return_to}}async function f(S){return u(await fn.oauthComplete(S))}async function p(S){return u(await fn.oauthRegisterComplete(S))}async function g(){try{await fn.logout()}catch{}o(),await gn.push({name:"login"})}async function _(S){const E=await fn.update(S);e.value=E.user}function w(){const S=Yr??{public:gn.currentRoute.value.meta.public===!0,fullPath:gn.currentRoute.value.fullPath},E=s.value||e.value!==null;o(),E&&!S.public&&gn.push({name:"login",query:{redirect:S.fullPath,expired:"1"}})}return Yh(w),{user:e,token:t,ready:n,loggedIn:s,displayName:r,restore:l,login:a,register:c,completeOAuth:f,completeOAuthRegistration:p,logout:g,updateProfile:_}});function Eg({active:e,visible:t,focused:n,atBottom:s}){return e&&t&&n&&s}function vm(e){return e>0?e>99?"99+":String(e):""}function bl(e){return gi(e,"nieprzeczytana wiadomość","nieprzeczytane wiadomości","nieprzeczytanych wiadomości")}function Sg(e){return e===1?"wzmianka o Tobie":`${e} ${Xa(e,"wzmianka","wzmianki","wzmianek")} o Tobie`}function Rg(e,t,n){if(!(t>0))return null;let s=t,r=null;for(let i=e.length-1;i>=0&&s>0;i--){const o=e[i];o.sender_id!==n&&(r=o.id,s--)}return r}function Tg(e){return e.length===0?"":e.length===1?`${e[0]} pisze…`:e.length===2?`${e[0]} i ${e[1]} piszą…`:"Kilka osób pisze…"}let Qr=!1;const mc=ln("pwa",()=>{const e=te(!1),t=Ln(null),n=Ln(null);let s=!1;const r=ne(()=>!e.value&&t.value!==null),i=ne(()=>n.value!==null);function o(){s||typeof window>"u"||(s=!0,e.value=window.matchMedia?.("(display-mode: standalone)").matches===!0||navigator.standalone===!0,window.addEventListener("beforeinstallprompt",f=>{f.preventDefault(),t.value=f}),window.addEventListener("appinstalled",()=>{e.value=!0,t.value=null}),"serviceWorker"in navigator&&(document.readyState==="complete"?l():window.addEventListener("load",l,{once:!0})))}async function l(){const f=navigator.serviceWorker;f.addEventListener("controllerchange",()=>{Qr&&(Qr=!1,window.location.reload())});try{const p=await f.register("/sw.js",{scope:"/",updateViaCache:"none"});p.waiting&&f.controller&&(n.value=p.waiting),p.addEventListener("updatefound",()=>{const g=p.installing;g&&g.addEventListener("statechange",()=>{g.state==="installed"&&f.controller&&(n.value=g)})}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&p.update().catch(()=>{})})}catch{}}async function a(){const f=t.value;if(f){t.value=null;try{await f.prompt(),(await f.userChoice).outcome==="accepted"&&(e.value=!0)}catch{}}}function c(){const f=n.value;f&&(Qr=!0,f.postMessage({type:"SKIP_WAITING"}))}function u(){n.value=null}return{installed:e,deferred:t,waiting:n,canInstall:r,updateReady:i,start:o,install:a,applyUpdate:c,dismissUpdate:u}}),_m={class:"shell"},bm={class:"sidebar"},wm={"aria-label":"Główna nawigacja"},Em={key:0,class:"unread-badge nav-badge"},Sm={"aria-hidden":"true"},Rm={class:"sr-only"},Tm={class:"who"},Am={class:"muted"},xm={class:"tabbar","aria-label":"Nawigacja"},Cm={class:"nav-icon"},Pm={key:0,class:"nav-dot","aria-hidden":"true"},Om={key:0,class:"sr-only"},Mm={key:0,class:"update-bar",role:"status","aria-live":"polite"},km=Fn({__name:"AppShell",setup(e){const t=pc(),n=wn(),s=mc(),r=Ga();Qa();const i=hc();vn(()=>t.user?.id,f=>{f?i.init(f):i.reset()},{immediate:!0});const o=[{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:"/checklisty",label:"Checklisty",icon:"checklist",match:["checklists","checklist"]},{to:"/sylabusy",label:"Sylabusy",icon:"file",match:["syllabi"]},{to:"/quizy",label:"Quizy",icon:"quiz",match:["quizzes","quiz"]},{to:"/moje-prezentacje",label:"Moje prezentacje",icon:"slides",match:["my-presentations"]},{to:"/profil",label:"Profil",icon:"user",match:["profile"]}],l=[{to:"/",label:"Pulpit",icon:"home",match:["dashboard"]},{to:"/plan",label:"Plan zajęć",icon:"calendar",match:["schedule"]},{to:"/materialy",label:"Materiały",icon:"file",match:["materials","material"]},{to:"/checklisty",label:"Checklisty",icon:"checklist",match:["checklists","checklist"]},{to:"/wiecej",label:"Więcej",icon:"more",match:["more","deadlines","courses","course","readings","quizzes","quiz","syllabi","my-presentations","profile"]}],a=ne(()=>String(r.name??"")),c=ne(()=>a.value!=="dashboard"&&i.totalUnread>0?i.totalUnread:0),u=f=>f.includes(a.value);return(f,p)=>{const g=ia("router-link");return tt(),Dt("div",_m,[$e("aside",bm,[Ce(g,{to:"/",class:"brand"},{default:ts(()=>[...p[4]||(p[4]=[$e("span",{class:"eyebrow"},"UWr · ISMiB",-1),$e("b",null,"BM II°",-1)])]),_:1}),$e("nav",wm,[(tt(),Dt(nt,null,vo(o,_=>Ce(g,{key:_.to,to:_.to,class:kn({active:u(_.match)}),"aria-current":u(_.match)?"page":void 0},{default:ts(()=>[Ce(il,{name:_.icon},null,8,["name"]),ai(Wt(_.label)+" ",1),_.to==="/"&&c.value?(tt(),Dt("span",Em,[$e("span",Sm,Wt(De(vm)(c.value)),1),$e("span",Rm,", "+Wt(De(bl)(c.value)),1)])):Kn("",!0)]),_:2},1032,["to","class","aria-current"])),64))]),$e("div",Tm,[$e("span",Am,Wt(De(t).displayName),1),De(s).canInstall?(tt(),Dt("button",{key:0,class:"btn small",type:"button",onClick:p[0]||(p[0]=_=>De(s).install())},"Zainstaluj aplikację")):Kn("",!0),$e("button",{class:"btn small ghost",type:"button",onClick:p[1]||(p[1]=_=>De(t).logout())},"Wyloguj")])]),$e("main",{class:kn(["main",{wide:De(r).meta.wide===!0}]),id:"main"},[gf(f.$slots,"default")],2),$e("nav",xm,[(tt(),Dt(nt,null,vo(l,_=>Ce(g,{key:_.to,to:_.to,class:kn({active:u(_.match)}),"aria-current":u(_.match)?"page":void 0},{default:ts(()=>[$e("span",Cm,[Ce(il,{name:_.icon},null,8,["name"]),_.to==="/"&&c.value?(tt(),Dt("span",Pm)):Kn("",!0)]),ai(Wt(_.label)+" ",1),_.to==="/"&&c.value?(tt(),Dt("span",Om,", "+Wt(De(bl)(c.value)),1)):Kn("",!0)]),_:2},1032,["to","class","aria-current"])),64))]),qu($e("div",{class:"toast",role:"status","aria-live":"polite"},Wt(De(n).message),513),[[ld,De(n).message]]),De(s).updateReady?(tt(),Dt("div",Mm,[p[5]||(p[5]=$e("span",null,"Dostępna jest nowa wersja aplikacji.",-1)),$e("button",{class:"btn small",type:"button",onClick:p[2]||(p[2]=_=>De(s).applyUpdate())},"Odśwież"),$e("button",{class:"btn small ghost",type:"button",onClick:p[3]||(p[3]=_=>De(s).dismissUpdate())},"Później")])):Kn("",!0)])}}});function gc(e){return e==="/cast"||e==="/cast/"}const Im=Fn({__name:"App",setup(e){const t=Ga(),n=gc(window.location.pathname),s=ne(()=>t.meta.public===!0||t.meta.bare===!0||n&&t.matched.length===0);return(r,i)=>{const o=ia("router-view");return s.value?(tt(),fs(o,{key:0})):(tt(),fs(km,{key:1},{default:ts(()=>[Ce(o)]),_:1}))}}}),yc=Dd();Md(Im).use(yc).use(gn).mount("#app");gc(window.location.pathname)||mc(yc).start();export{en as $,We as A,Xa as B,kn as C,ag as D,vo as E,nt as F,ng as G,Ri as H,cg as I,ug as J,xp as K,Ml as L,hu as M,hg as N,mg as O,yg as P,vg as Q,Vh as R,gg as S,fg as T,vn as U,af as V,Um as W,jm as X,Ve as Y,cr as Z,il as _,fn as a,hc as a0,dg as a1,_g as a2,Sg as a3,vm as a4,bl as a5,yi as a6,lg as a7,Pp as a8,jp as a9,K as aA,mc as aB,Xh as aC,Qa as aD,og as aE,Xm as aF,gf as aG,Ni as aH,Qm as aI,Zm as aJ,$m as aK,ve as aL,wg as aM,em as aN,Ln as aO,bg as aP,Nm as aQ,ft as aR,ld as aS,qm as aT,Hm as aU,Km as aV,Gm as aW,Wm as aX,Jm as aY,pg as aa,Rg as ab,Eg as ac,Tg as ad,Hi as ae,ap as af,gi as ag,kp as ah,Mp as ai,Ip as aj,Wr as ak,Te as al,Op as am,os as an,eg as ao,xt as ap,Lm as aq,Cp as ar,Fm as as,vs as at,rg as au,ip as av,tg as aw,ig as ax,op as ay,sg as az,$e as b,Dt as c,Fn as d,De as e,Kn as f,Vm as g,Bm as h,Ce as i,ts as j,Ga as k,ia as l,Ym as m,tt as n,rf as o,ai as p,wn as q,te as r,fs as s,Wt as t,pc as u,zm as v,qu as w,ne as x,ec as y,tc as z};