mirror of
https://github.com/lukaszraczylo/git-velocity.git
synced 2026-06-05 22:43:56 +00:00
26 lines
146 KiB
JavaScript
26 lines
146 KiB
JavaScript
import{C as rr,r as $i}from"./chart-BR_H7_9u.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/**
|
|
* @vue/shared v3.5.25
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function Is(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ue={},qt=[],rt=()=>{},Xr=()=>!1,Vn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ns=e=>e.startsWith("onUpdate:"),Pe=Object.assign,Ms=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Pi=Object.prototype.hasOwnProperty,re=(e,t)=>Pi.call(e,t),G=Array.isArray,Kt=e=>kn(e)==="[object Map]",Bn=e=>kn(e)==="[object Set]",or=e=>kn(e)==="[object Date]",K=e=>typeof e=="function",pe=e=>typeof e=="string",Ke=e=>typeof e=="symbol",fe=e=>e!==null&&typeof e=="object",Zr=e=>(fe(e)||K(e))&&K(e.then)&&K(e.catch),eo=Object.prototype.toString,kn=e=>eo.call(e),Ti=e=>kn(e).slice(8,-1),to=e=>kn(e)==="[object Object]",Ds=e=>pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ln=Is(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Oi=/-\w/g,Ge=Hn(e=>e.replace(Oi,t=>t.slice(1).toUpperCase())),Ii=/\B([A-Z])/g,Lt=Hn(e=>e.replace(Ii,"-$1").toLowerCase()),Un=Hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),ns=Hn(e=>e?`on${Un(e)}`:""),Rt=(e,t)=>!Object.is(e,t),Pn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},no=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Ni=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ir;const Gn=()=>ir||(ir=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function St(e){if(G(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=pe(s)?ji(s):St(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(pe(e)||fe(e))return e}const Mi=/;(?![^(]*\))/g,Di=/:([^]+)/,Li=/\/\*[^]*?\*\//g;function ji(e){const t={};return e.replace(Li,"").split(Mi).forEach(n=>{if(n){const s=n.split(Di);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function J(e){let t="";if(pe(e))t=e;else if(G(e))for(let n=0;n<e.length;n++){const s=J(e[n]);s&&(t+=s+" ")}else if(fe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Fi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Vi=Is(Fi);function so(e){return!!e||e===""}function Bi(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=qn(e[s],t[s]);return n}function qn(e,t){if(e===t)return!0;let n=or(e),s=or(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Ke(e),s=Ke(t),n||s)return e===t;if(n=G(e),s=G(t),n||s)return n&&s?Bi(e,t):!1;if(n=fe(e),s=fe(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!qn(e[i],t[i]))return!1}}return String(e)===String(t)}function ro(e,t){return e.findIndex(n=>qn(n,t))}const oo=e=>!!(e&&e.__v_isRef===!0),R=e=>pe(e)?e:e==null?"":G(e)||fe(e)&&(e.toString===eo||!K(e.toString))?oo(e)?R(e.value):JSON.stringify(e,io,2):String(e),io=(e,t)=>oo(t)?io(e,t.value):Kt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[ss(s,o)+" =>"]=r,n),{})}:Bn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ss(n))}:Ke(t)?ss(t):fe(t)&&!G(t)&&!to(t)?String(t):t,ss=(e,t="")=>{var n;return Ke(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
* @vue/reactivity v3.5.25
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let Le;class Hi{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Le,!t&&Le&&(this.index=(Le.scopes||(Le.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[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)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Le;try{return Le=this,t()}finally{Le=n}}}on(){++this._on===1&&(this.prevScope=Le,Le=this)}off(){this._on>0&&--this._on===0&&(Le=this.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){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[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 Ui(){return Le}let he;const rs=new WeakSet;class lo{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,Le&&Le.active&&Le.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,rs.has(this)&&(rs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||co(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,lr(this),uo(this);const t=he,n=qe;he=this,qe=!0;try{return this.fn()}finally{fo(this),he=t,qe=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Fs(t);this.deps=this.depsTail=void 0,lr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?rs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){vs(this)&&this.run()}get dirty(){return vs(this)}}let ao=0,an,cn;function co(e,t=!1){if(e.flags|=8,t){e.next=cn,cn=e;return}e.next=an,an=e}function Ls(){ao++}function js(){if(--ao>0)return;if(cn){let t=cn;for(cn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;an;){let t=an;for(an=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 uo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function fo(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Fs(s),Gi(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function vs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ho(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ho(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===gn)||(e.globalVersion=gn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!vs(e))))return;e.flags|=2;const t=e.dep,n=he,s=qe;he=e,qe=!0;try{uo(e);const r=e.fn(e._value);(t.version===0||Rt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{he=n,qe=s,fo(e),e.flags&=-3}}function Fs(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Fs(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Gi(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let qe=!0;const mo=[];function dt(){mo.push(qe),qe=!1}function ht(){const e=mo.pop();qe=e===void 0?!0:e}function lr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=he;he=void 0;try{t()}finally{he=n}}}let gn=0;class qi{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 Vs{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(!he||!qe||he===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==he)n=this.activeLink=new qi(he,this),he.deps?(n.prevDep=he.depsTail,he.depsTail.nextDep=n,he.depsTail=n):he.deps=he.depsTail=n,go(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=he.depsTail,n.nextDep=void 0,he.depsTail.nextDep=n,he.depsTail=n,he.deps===n&&(he.deps=s)}return n}trigger(t){this.version++,gn++,this.notify(t)}notify(t){Ls();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{js()}}}function go(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)go(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const xs=new WeakMap,Nt=Symbol(""),bs=Symbol(""),pn=Symbol("");function Se(e,t,n){if(qe&&he){let s=xs.get(e);s||xs.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Vs),r.map=s,r.key=n),r.track()}}function ut(e,t,n,s,r,o){const i=xs.get(e);if(!i){gn++;return}const l=a=>{a&&a.trigger()};if(Ls(),t==="clear")i.forEach(l);else{const a=G(e),c=a&&Ds(n);if(a&&n==="length"){const u=Number(s);i.forEach((h,g)=>{(g==="length"||g===pn||!Ke(g)&&g>=u)&&l(h)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),c&&l(i.get(pn)),t){case"add":a?c&&l(i.get("length")):(l(i.get(Nt)),Kt(e)&&l(i.get(bs)));break;case"delete":a||(l(i.get(Nt)),Kt(e)&&l(i.get(bs)));break;case"set":Kt(e)&&l(i.get(Nt));break}}js()}function Ht(e){const t=se(e);return t===e?t:(Se(t,"iterate",pn),He(e)?t:t.map(We))}function Kn(e){return Se(e=se(e),"iterate",pn),e}function _t(e,t){return mt(e)?Mt(e)?Yt(We(t)):Yt(t):We(t)}const Ki={__proto__:null,[Symbol.iterator](){return os(this,Symbol.iterator,e=>_t(this,e))},concat(...e){return Ht(this).concat(...e.map(t=>G(t)?Ht(t):t))},entries(){return os(this,"entries",e=>(e[1]=_t(this,e[1]),e))},every(e,t){return lt(this,"every",e,t,void 0,arguments)},filter(e,t){return lt(this,"filter",e,t,n=>n.map(s=>_t(this,s)),arguments)},find(e,t){return lt(this,"find",e,t,n=>_t(this,n),arguments)},findIndex(e,t){return lt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return lt(this,"findLast",e,t,n=>_t(this,n),arguments)},findLastIndex(e,t){return lt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return lt(this,"forEach",e,t,void 0,arguments)},includes(...e){return is(this,"includes",e)},indexOf(...e){return is(this,"indexOf",e)},join(e){return Ht(this).join(e)},lastIndexOf(...e){return is(this,"lastIndexOf",e)},map(e,t){return lt(this,"map",e,t,void 0,arguments)},pop(){return nn(this,"pop")},push(...e){return nn(this,"push",e)},reduce(e,...t){return ar(this,"reduce",e,t)},reduceRight(e,...t){return ar(this,"reduceRight",e,t)},shift(){return nn(this,"shift")},some(e,t){return lt(this,"some",e,t,void 0,arguments)},splice(...e){return nn(this,"splice",e)},toReversed(){return Ht(this).toReversed()},toSorted(e){return Ht(this).toSorted(e)},toSpliced(...e){return Ht(this).toSpliced(...e)},unshift(...e){return nn(this,"unshift",e)},values(){return os(this,"values",e=>_t(this,e))}};function os(e,t,n){const s=Kn(e),r=s[t]();return s!==e&&!He(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const Wi=Array.prototype;function lt(e,t,n,s,r,o){const i=Kn(e),l=i!==e&&!He(e),a=i[t];if(a!==Wi[t]){const h=a.apply(e,o);return l?We(h):h}let c=n;i!==e&&(l?c=function(h,g){return n.call(this,_t(e,h),g,e)}:n.length>2&&(c=function(h,g){return n.call(this,h,g,e)}));const u=a.call(i,c,s);return l&&r?r(u):u}function ar(e,t,n,s){const r=Kn(e);let o=n;return r!==e&&(He(e)?n.length>3&&(o=function(i,l,a){return n.call(this,i,l,a,e)}):o=function(i,l,a){return n.call(this,i,_t(e,l),a,e)}),r[t](o,...s)}function is(e,t,n){const s=se(e);Se(s,"iterate",pn);const r=s[t](...n);return(r===-1||r===!1)&&Us(n[0])?(n[0]=se(n[0]),s[t](...n)):r}function nn(e,t,n=[]){dt(),Ls();const s=se(e)[t].apply(e,n);return js(),ht(),s}const zi=Is("__proto__,__v_isRef,__isVue"),po=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ke));function Ji(e){Ke(e)||(e=String(e));const t=se(this);return Se(t,"has",e),t.hasOwnProperty(e)}class yo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?ol:_o:o?bo:xo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=G(t);if(!r){let a;if(i&&(a=Ki[n]))return a;if(n==="hasOwnProperty")return Ji}const l=Reflect.get(t,n,Ae(t)?t:s);if((Ke(n)?po.has(n):zi(n))||(r||Se(t,"get",n),o))return l;if(Ae(l)){const a=i&&Ds(n)?l:l.value;return r&&fe(a)?ws(a):a}return fe(l)?r?ws(l):Wn(l):l}}class vo extends yo{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const i=G(t)&&Ds(n);if(!this._isShallow){const c=mt(o);if(!He(s)&&!mt(s)&&(o=se(o),s=se(s)),!i&&Ae(o)&&!Ae(s))return c||(o.value=s),!0}const l=i?Number(n)<t.length:re(t,n),a=Reflect.set(t,n,s,Ae(t)?t:r);return t===se(r)&&(l?Rt(s,o)&&ut(t,"set",n,s):ut(t,"add",n,s)),a}deleteProperty(t,n){const s=re(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&ut(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Ke(n)||!po.has(n))&&Se(t,"has",n),s}ownKeys(t){return Se(t,"iterate",G(t)?"length":Nt),Reflect.ownKeys(t)}}class Yi extends yo{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Qi=new vo,Xi=new Yi,Zi=new vo(!0);const _s=e=>e,En=e=>Reflect.getPrototypeOf(e);function el(e,t,n){return function(...s){const r=this.__v_raw,o=se(r),i=Kt(o),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...s),u=n?_s:t?Yt:We;return!t&&Se(o,"iterate",a?bs:Nt),{next(){const{value:h,done:g}=c.next();return g?{value:h,done:g}:{value:l?[u(h[0]),u(h[1])]:u(h),done:g}},[Symbol.iterator](){return this}}}}function An(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function tl(e,t){const n={get(r){const o=this.__v_raw,i=se(o),l=se(r);e||(Rt(r,l)&&Se(i,"get",r),Se(i,"get",l));const{has:a}=En(i),c=t?_s:e?Yt:We;if(a.call(i,r))return c(o.get(r));if(a.call(i,l))return c(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&Se(se(r),"iterate",Nt),r.size},has(r){const o=this.__v_raw,i=se(o),l=se(r);return e||(Rt(r,l)&&Se(i,"has",r),Se(i,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const i=this,l=i.__v_raw,a=se(l),c=t?_s:e?Yt:We;return!e&&Se(a,"iterate",Nt),l.forEach((u,h)=>r.call(o,c(u),c(h),i))}};return Pe(n,e?{add:An("add"),set:An("set"),delete:An("delete"),clear:An("clear")}:{add(r){!t&&!He(r)&&!mt(r)&&(r=se(r));const o=se(this);return En(o).has.call(o,r)||(o.add(r),ut(o,"add",r,r)),this},set(r,o){!t&&!He(o)&&!mt(o)&&(o=se(o));const i=se(this),{has:l,get:a}=En(i);let c=l.call(i,r);c||(r=se(r),c=l.call(i,r));const u=a.call(i,r);return i.set(r,o),c?Rt(o,u)&&ut(i,"set",r,o):ut(i,"add",r,o),this},delete(r){const o=se(this),{has:i,get:l}=En(o);let a=i.call(o,r);a||(r=se(r),a=i.call(o,r)),l&&l.call(o,r);const c=o.delete(r);return a&&ut(o,"delete",r,void 0),c},clear(){const r=se(this),o=r.size!==0,i=r.clear();return o&&ut(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=el(r,e,t)}),n}function Bs(e,t){const n=tl(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(re(n,r)&&r in s?n:s,r,o)}const nl={get:Bs(!1,!1)},sl={get:Bs(!1,!0)},rl={get:Bs(!0,!1)};const xo=new WeakMap,bo=new WeakMap,_o=new WeakMap,ol=new WeakMap;function il(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ll(e){return e.__v_skip||!Object.isExtensible(e)?0:il(Ti(e))}function Wn(e){return mt(e)?e:Hs(e,!1,Qi,nl,xo)}function wo(e){return Hs(e,!1,Zi,sl,bo)}function ws(e){return Hs(e,!0,Xi,rl,_o)}function Hs(e,t,n,s,r){if(!fe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=ll(e);if(o===0)return e;const i=r.get(e);if(i)return i;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function Mt(e){return mt(e)?Mt(e.__v_raw):!!(e&&e.__v_isReactive)}function mt(e){return!!(e&&e.__v_isReadonly)}function He(e){return!!(e&&e.__v_isShallow)}function Us(e){return e?!!e.__v_raw:!1}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function al(e){return!re(e,"__v_skip")&&Object.isExtensible(e)&&no(e,"__v_skip",!0),e}const We=e=>fe(e)?Wn(e):e,Yt=e=>fe(e)?ws(e):e;function Ae(e){return e?e.__v_isRef===!0:!1}function ke(e){return ko(e,!1)}function cl(e){return ko(e,!0)}function ko(e,t){return Ae(e)?e:new ul(e,t)}class ul{constructor(t,n){this.dep=new Vs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:se(t),this._value=n?t:We(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||He(t)||mt(t);t=s?t:se(t),Rt(t,n)&&(this._rawValue=t,this._value=s?t:We(t),this.dep.trigger())}}function N(e){return Ae(e)?e.value:e}const fl={get:(e,t,n)=>t==="__v_raw"?e:N(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Ae(r)&&!Ae(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Co(e){return Mt(e)?e:new Proxy(e,fl)}class dl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Vs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return co(this,!0),!0}get value(){const t=this.dep.track();return ho(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function hl(e,t,n=!1){let s,r;return K(e)?s=e:(s=e.get,r=e.set),new dl(s,r,n)}const $n={},In=new WeakMap;let Tt;function ml(e,t=!1,n=Tt){if(n){let s=In.get(n);s||In.set(n,s=[]),s.push(e)}}function gl(e,t,n=ue){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:a}=n,c=j=>r?j:He(j)||r===!1||r===0?ft(j,1):ft(j);let u,h,g,y,S=!1,P=!1;if(Ae(e)?(h=()=>e.value,S=He(e)):Mt(e)?(h=()=>c(e),S=!0):G(e)?(P=!0,S=e.some(j=>Mt(j)||He(j)),h=()=>e.map(j=>{if(Ae(j))return j.value;if(Mt(j))return c(j);if(K(j))return a?a(j,2):j()})):K(e)?t?h=a?()=>a(e,2):e:h=()=>{if(g){dt();try{g()}finally{ht()}}const j=Tt;Tt=u;try{return a?a(e,3,[y]):e(y)}finally{Tt=j}}:h=rt,t&&r){const j=h,ee=r===!0?1/0:r;h=()=>ft(j(),ee)}const B=Ui(),$=()=>{u.stop(),B&&B.active&&Ms(B.effects,u)};if(o&&t){const j=t;t=(...ee)=>{j(...ee),$()}}let D=P?new Array(e.length).fill($n):$n;const F=j=>{if(!(!(u.flags&1)||!u.dirty&&!j))if(t){const ee=u.run();if(r||S||(P?ee.some((ye,me)=>Rt(ye,D[me])):Rt(ee,D))){g&&g();const ye=Tt;Tt=u;try{const me=[ee,D===$n?void 0:P&&D[0]===$n?[]:D,y];D=ee,a?a(t,3,me):t(...me)}finally{Tt=ye}}}else u.run()};return l&&l(F),u=new lo(h),u.scheduler=i?()=>i(F,!1):F,y=j=>ml(j,!1,u),g=u.onStop=()=>{const j=In.get(u);if(j){if(a)a(j,4);else for(const ee of j)ee();In.delete(u)}},t?s?F(!0):D=u.run():i?i(F.bind(null,!0),!0):u.run(),$.pause=u.pause.bind(u),$.resume=u.resume.bind(u),$.stop=$,$}function ft(e,t=1/0,n){if(t<=0||!fe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ae(e))ft(e.value,t,n);else if(G(e))for(let s=0;s<e.length;s++)ft(e[s],t,n);else if(Bn(e)||Kt(e))e.forEach(s=>{ft(s,t,n)});else if(to(e)){for(const s in e)ft(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&ft(e[s],t,n)}return e}/**
|
|
* @vue/runtime-core v3.5.25
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function Cn(e,t,n,s){try{return s?e(...s):e()}catch(r){zn(r,t,n)}}function ot(e,t,n,s){if(K(e)){const r=Cn(e,t,n,s);return r&&Zr(r)&&r.catch(o=>{zn(o,t,n)}),r}if(G(e)){const r=[];for(let o=0;o<e.length;o++)r.push(ot(e[o],t,n,s));return r}}function zn(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||ue;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 h=0;h<u.length;h++)if(u[h](e,a,c)===!1)return}l=l.parent}if(o){dt(),Cn(o,null,10,[e,a,c]),ht();return}}pl(e,n,r,s,i)}function pl(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const Ie=[];let nt=-1;const Wt=[];let wt=null,Ut=0;const Ro=Promise.resolve();let Nn=null;function So(e){const t=Nn||Ro;return e?t.then(this?e.bind(this):e):t}function yl(e){let t=nt+1,n=Ie.length;for(;t<n;){const s=t+n>>>1,r=Ie[s],o=yn(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function Gs(e){if(!(e.flags&1)){const t=yn(e),n=Ie[Ie.length-1];!n||!(e.flags&2)&&t>=yn(n)?Ie.push(e):Ie.splice(yl(t),0,e),e.flags|=1,Eo()}}function Eo(){Nn||(Nn=Ro.then($o))}function vl(e){G(e)?Wt.push(...e):wt&&e.id===-1?wt.splice(Ut+1,0,e):e.flags&1||(Wt.push(e),e.flags|=1),Eo()}function cr(e,t,n=nt+1){for(;n<Ie.length;n++){const s=Ie[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ie.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Ao(e){if(Wt.length){const t=[...new Set(Wt)].sort((n,s)=>yn(n)-yn(s));if(Wt.length=0,wt){wt.push(...t);return}for(wt=t,Ut=0;Ut<wt.length;Ut++){const n=wt[Ut];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}wt=null,Ut=0}}const yn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function $o(e){try{for(nt=0;nt<Ie.length;nt++){const t=Ie[nt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Cn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;nt<Ie.length;nt++){const t=Ie[nt];t&&(t.flags&=-2)}nt=-1,Ie.length=0,Ao(),Nn=null,(Ie.length||Wt.length)&&$o()}}let we=null,Po=null;function Mn(e){const t=we;return we=e,Po=e&&e.type.__scopeId||null,t}function Z(e,t=we,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&jn(-1);const o=Mn(t);let i;try{i=e(...r)}finally{Mn(o),s._d&&jn(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function xl(e,t){if(we===null)return e;const n=Xn(we),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,l,a=ue]=t[r];o&&(K(o)&&(o={mounted:o,updated:o}),o.deep&&ft(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function $t(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];o&&(l.oldValue=o[i].value);let a=l.dir[s];a&&(dt(),ot(a,n,8,[e.el,l,e,t]),ht())}}const bl=Symbol("_vte"),_l=e=>e.__isTeleport,wl=Symbol("_leaveCb");function qs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,qs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function To(e,t){return K(e)?Pe({name:e.name},t,{setup:e}):e}function Oo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Dn=new WeakMap;function un(e,t,n,s,r=!1){if(G(e)){e.forEach((S,P)=>un(S,t&&(G(t)?t[P]:t),n,s,r));return}if(zt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&un(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Xn(s.component):s.el,i=r?null:o,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ue?l.refs={}:l.refs,h=l.setupState,g=se(h),y=h===ue?Xr:S=>re(g,S);if(c!=null&&c!==a){if(ur(t),pe(c))u[c]=null,y(c)&&(h[c]=null);else if(Ae(c)){c.value=null;const S=t;S.k&&(u[S.k]=null)}}if(K(a))Cn(a,l,12,[i,u]);else{const S=pe(a),P=Ae(a);if(S||P){const B=()=>{if(e.f){const $=S?y(a)?h[a]:u[a]:a.value;if(r)G($)&&Ms($,o);else if(G($))$.includes(o)||$.push(o);else if(S)u[a]=[o],y(a)&&(h[a]=u[a]);else{const D=[o];a.value=D,e.k&&(u[e.k]=D)}}else S?(u[a]=i,y(a)&&(h[a]=i)):P&&(a.value=i,e.k&&(u[e.k]=i))};if(i){const $=()=>{B(),Dn.delete(e)};$.id=-1,Dn.set(e,$),Fe($,n)}else ur(e),B()}}}function ur(e){const t=Dn.get(e);t&&(t.flags|=8,Dn.delete(e))}Gn().requestIdleCallback;Gn().cancelIdleCallback;const zt=e=>!!e.type.__asyncLoader,Io=e=>e.type.__isKeepAlive;function kl(e,t){No(e,"a",t)}function Cl(e,t){No(e,"da",t)}function No(e,t,n=Ee){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Jn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Io(r.parent.vnode)&&Rl(s,t,n,r),r=r.parent}}function Rl(e,t,n,s){const r=Jn(t,e,s,!0);Mo(()=>{Ms(s[t],r)},n)}function Jn(e,t,n=Ee,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{dt();const l=Rn(n),a=ot(t,n,e,i);return l(),ht(),a});return s?r.unshift(o):r.push(o),o}}const pt=e=>(t,n=Ee)=>{(!bn||e==="sp")&&Jn(e,(...s)=>t(...s),n)},Sl=pt("bm"),jt=pt("m"),El=pt("bu"),Al=pt("u"),$l=pt("bum"),Mo=pt("um"),Pl=pt("sp"),Tl=pt("rtg"),Ol=pt("rtc");function Il(e,t=Ee){Jn("ec",e,t)}const Do="components";function Nl(e,t){return jo(Do,e,!0,t)||e}const Lo=Symbol.for("v-ndc");function Ml(e){return pe(e)?jo(Do,e,!1)||e:e||Lo}function jo(e,t,n=!0,s=!1){const r=we||Ee;if(r){const o=r.type;{const l=ka(o,!1);if(l&&(l===t||l===Ge(t)||l===Un(Ge(t))))return o}const i=fr(r[e]||o[e],t)||fr(r.appContext[e],t);return!i&&s?o:i}}function fr(e,t){return e&&(e[t]||e[Ge(t)]||e[Un(Ge(t))])}function xe(e,t,n,s){let r;const o=n,i=G(e);if(i||pe(e)){const l=i&&Mt(e);let a=!1,c=!1;l&&(a=!He(e),c=mt(e),e=Kn(e)),r=new Array(e.length);for(let u=0,h=e.length;u<h;u++)r[u]=t(a?c?Yt(We(e[u])):We(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,o)}else if(fe(e))if(e[Symbol.iterator])r=Array.from(e,(l,a)=>t(l,a,void 0,o));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,o)}}else r=[];return r}function Dt(e,t,n={},s,r){if(we.ce||we.parent&&zt(we.parent)&&we.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),v(),ie(Y,null,[M("slot",n,s&&s())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),v();const i=o&&Fo(o(n)),l=n.key||i&&i.key,a=ie(Y,{key:(l&&!Ke(l)?l:`_${t}`)+(!i&&s?"_fb":"")},i||(s?s():[]),i&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function Fo(e){return e.some(t=>xn(t)?!(t.type===gt||t.type===Y&&!Fo(t.children)):!0)?e:null}const ks=e=>e?oi(e)?Xn(e):ks(e.parent):null,fn=Pe(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=>ks(e.parent),$root:e=>ks(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Bo(e),$forceUpdate:e=>e.f||(e.f=()=>{Gs(e.update)}),$nextTick:e=>e.n||(e.n=So.bind(e.proxy)),$watch:e=>Kl.bind(e)}),ls=(e,t)=>e!==ue&&!e.__isScriptSetup&&re(e,t),Dl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:a}=e;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(ls(s,t))return i[t]=1,s[t];if(r!==ue&&re(r,t))return i[t]=2,r[t];if(re(o,t))return i[t]=3,o[t];if(n!==ue&&re(n,t))return i[t]=4,n[t];Cs&&(i[t]=0)}}const c=fn[t];let u,h;if(c)return t==="$attrs"&&Se(e.attrs,"get",""),c(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==ue&&re(n,t))return i[t]=4,n[t];if(h=a.config.globalProperties,re(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return ls(r,t)?(r[t]=n,!0):s!==ue&&re(s,t)?(s[t]=n,!0):re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:o,type:i}},l){let a;return!!(n[l]||e!==ue&&l[0]!=="$"&&re(e,l)||ls(t,l)||re(o,l)||re(s,l)||re(fn,l)||re(r.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function dr(e){return G(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Cs=!0;function Ll(e){const t=Bo(e),n=e.proxy,s=e.ctx;Cs=!1,t.beforeCreate&&hr(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:h,mounted:g,beforeUpdate:y,updated:S,activated:P,deactivated:B,beforeDestroy:$,beforeUnmount:D,destroyed:F,unmounted:j,render:ee,renderTracked:ye,renderTriggered:me,errorCaptured:Ce,serverPrefetch:yt,expose:Je,inheritAttrs:vt,components:Et,directives:Ye,filters:en}=t;if(c&&jl(c,s,null),i)for(const ae in i){const te=i[ae];K(te)&&(s[ae]=te.bind(n))}if(r){const ae=r.call(n,n);fe(ae)&&(e.data=Wn(ae))}if(Cs=!0,o)for(const ae in o){const te=o[ae],it=K(te)?te.bind(n,n):K(te.get)?te.get.bind(n,n):rt,xt=!K(te)&&K(te.set)?te.set.bind(n):rt,Qe=oe({get:it,set:xt});Object.defineProperty(s,ae,{enumerable:!0,configurable:!0,get:()=>Qe.value,set:Ne=>Qe.value=Ne})}if(l)for(const ae in l)Vo(l[ae],s,n,ae);if(a){const ae=K(a)?a.call(n):a;Reflect.ownKeys(ae).forEach(te=>{dn(te,ae[te])})}u&&hr(u,e,"c");function be(ae,te){G(te)?te.forEach(it=>ae(it.bind(n))):te&&ae(te.bind(n))}if(be(Sl,h),be(jt,g),be(El,y),be(Al,S),be(kl,P),be(Cl,B),be(Il,Ce),be(Ol,ye),be(Tl,me),be($l,D),be(Mo,j),be(Pl,yt),G(Je))if(Je.length){const ae=e.exposed||(e.exposed={});Je.forEach(te=>{Object.defineProperty(ae,te,{get:()=>n[te],set:it=>n[te]=it,enumerable:!0})})}else e.exposed||(e.exposed={});ee&&e.render===rt&&(e.render=ee),vt!=null&&(e.inheritAttrs=vt),Et&&(e.components=Et),Ye&&(e.directives=Ye),yt&&Oo(e)}function jl(e,t,n=rt){G(e)&&(e=Rs(e));for(const s in e){const r=e[s];let o;fe(r)?"default"in r?o=$e(r.from||s,r.default,!0):o=$e(r.from||s):o=$e(r),Ae(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function hr(e,t,n){ot(G(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Vo(e,t,n,s){let r=s.includes(".")?Go(n,s):()=>n[s];if(pe(e)){const o=t[e];K(o)&&Ue(r,o)}else if(K(e))Ue(r,e.bind(n));else if(fe(e))if(G(e))e.forEach(o=>Vo(o,t,n,s));else{const o=K(e.handler)?e.handler.bind(n):t[e.handler];K(o)&&Ue(r,o,e)}}function Bo(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let a;return l?a=l:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(c=>Ln(a,c,i,!0)),Ln(a,t,i)),fe(t)&&o.set(t,a),a}function Ln(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Ln(e,o,n,!0),r&&r.forEach(i=>Ln(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Fl[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Fl={data:mr,props:gr,emits:gr,methods:on,computed:on,beforeCreate:Te,created:Te,beforeMount:Te,mounted:Te,beforeUpdate:Te,updated:Te,beforeDestroy:Te,beforeUnmount:Te,destroyed:Te,unmounted:Te,activated:Te,deactivated:Te,errorCaptured:Te,serverPrefetch:Te,components:on,directives:on,watch:Bl,provide:mr,inject:Vl};function mr(e,t){return t?e?function(){return Pe(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Vl(e,t){return on(Rs(e),Rs(t))}function Rs(e){if(G(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Te(e,t){return e?[...new Set([].concat(e,t))]:t}function on(e,t){return e?Pe(Object.create(null),e,t):t}function gr(e,t){return e?G(e)&&G(t)?[...new Set([...e,...t])]:Pe(Object.create(null),dr(e),dr(t??{})):t}function Bl(e,t){if(!e)return t;if(!t)return e;const n=Pe(Object.create(null),e);for(const s in t)n[s]=Te(e[s],t[s]);return n}function Ho(){return{app:null,config:{isNativeTag:Xr,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 Hl=0;function Ul(e,t){return function(s,r=null){K(s)||(s=Pe({},s)),r!=null&&!fe(r)&&(r=null);const o=Ho(),i=new WeakSet,l=[];let a=!1;const c=o.app={_uid:Hl++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Ra,get config(){return o.config},set config(u){},use(u,...h){return i.has(u)||(u&&K(u.install)?(i.add(u),u.install(c,...h)):K(u)&&(i.add(u),u(c,...h))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,h){return h?(o.components[u]=h,c):o.components[u]},directive(u,h){return h?(o.directives[u]=h,c):o.directives[u]},mount(u,h,g){if(!a){const y=c._ceVNode||M(s,r);return y.appContext=o,g===!0?g="svg":g===!1&&(g=void 0),e(y,u,g),a=!0,c._container=u,u.__vue_app__=c,Xn(y.component)}},onUnmount(u){l.push(u)},unmount(){a&&(ot(l,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,h){return o.provides[u]=h,c},runWithContext(u){const h=Jt;Jt=c;try{return u()}finally{Jt=h}}};return c}}let Jt=null;function dn(e,t){if(Ee){let n=Ee.provides;const s=Ee.parent&&Ee.parent.provides;s===n&&(n=Ee.provides=Object.create(s)),n[e]=t}}function $e(e,t,n=!1){const s=va();if(s||Jt){let r=Jt?Jt._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&&K(t)?t.call(s&&s.proxy):t}}const Gl=Symbol.for("v-scx"),ql=()=>$e(Gl);function Ue(e,t,n){return Uo(e,t,n)}function Uo(e,t,n=ue){const{immediate:s,deep:r,flush:o,once:i}=n,l=Pe({},n),a=t&&s||!t&&o!=="post";let c;if(bn){if(o==="sync"){const y=ql();c=y.__watcherHandles||(y.__watcherHandles=[])}else if(!a){const y=()=>{};return y.stop=rt,y.resume=rt,y.pause=rt,y}}const u=Ee;l.call=(y,S,P)=>ot(y,u,S,P);let h=!1;o==="post"?l.scheduler=y=>{Fe(y,u&&u.suspense)}:o!=="sync"&&(h=!0,l.scheduler=(y,S)=>{S?y():Gs(y)}),l.augmentJob=y=>{t&&(y.flags|=4),h&&(y.flags|=2,u&&(y.id=u.uid,y.i=u))};const g=gl(e,t,l);return bn&&(c?c.push(g):a&&g()),g}function Kl(e,t,n){const s=this.proxy,r=pe(e)?e.includes(".")?Go(s,e):()=>s[e]:e.bind(s,s);let o;K(t)?o=t:(o=t.handler,n=t);const i=Rn(this),l=Uo(r,o.bind(s),n);return i(),l}function Go(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 Wl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ge(t)}Modifiers`]||e[`${Lt(t)}Modifiers`];function zl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ue;let r=n;const o=t.startsWith("update:"),i=o&&Wl(s,t.slice(7));i&&(i.trim&&(r=n.map(u=>pe(u)?u.trim():u)),i.number&&(r=n.map(Ni)));let l,a=s[l=ns(t)]||s[l=ns(Ge(t))];!a&&o&&(a=s[l=ns(Lt(t))]),a&&ot(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,ot(c,e,6,r)}}const Jl=new WeakMap;function qo(e,t,n=!1){const s=n?Jl:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!K(e)){const a=c=>{const u=qo(c,t,!0);u&&(l=!0,Pe(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(fe(e)&&s.set(e,null),null):(G(o)?o.forEach(a=>i[a]=null):Pe(i,o),fe(e)&&s.set(e,i),i)}function Yn(e,t){return!e||!Vn(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,Lt(t))||re(e,t))}function pr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:a,render:c,renderCache:u,props:h,data:g,setupState:y,ctx:S,inheritAttrs:P}=e,B=Mn(e);let $,D;try{if(n.shapeFlag&4){const j=r||s,ee=j;$=st(c.call(ee,j,u,h,y,g,S)),D=l}else{const j=t;$=st(j.length>1?j(h,{attrs:l,slots:i,emit:a}):j(h,null)),D=t.props?l:Yl(l)}}catch(j){hn.length=0,zn(j,e,1),$=M(gt)}let F=$;if(D&&P!==!1){const j=Object.keys(D),{shapeFlag:ee}=F;j.length&&ee&7&&(o&&j.some(Ns)&&(D=Ql(D,o)),F=Qt(F,D,!1,!0))}return n.dirs&&(F=Qt(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&qs(F,n.transition),$=F,Mn(B),$}const Yl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Vn(n))&&((t||(t={}))[n]=e[n]);return t},Ql=(e,t)=>{const n={};for(const s in e)(!Ns(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Xl(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?yr(s,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const g=u[h];if(i[g]!==s[g]&&!Yn(c,g))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?yr(s,i,c):!0:!!i;return!1}function yr(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 o=s[r];if(t[o]!==e[o]&&!Yn(n,o))return!0}return!1}function Zl({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Ko={},Wo=()=>Object.create(Ko),zo=e=>Object.getPrototypeOf(e)===Ko;function ea(e,t,n,s=!1){const r={},o=Wo();e.propsDefaults=Object.create(null),Jo(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:wo(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function ta(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=se(r),[a]=e.propsOptions;let c=!1;if((s||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let g=u[h];if(Yn(e.emitsOptions,g))continue;const y=t[g];if(a)if(re(o,g))y!==o[g]&&(o[g]=y,c=!0);else{const S=Ge(g);r[S]=Ss(a,l,S,y,e,!1)}else y!==o[g]&&(o[g]=y,c=!0)}}}else{Jo(e,t,r,o)&&(c=!0);let u;for(const h in l)(!t||!re(t,h)&&((u=Lt(h))===h||!re(t,u)))&&(a?n&&(n[h]!==void 0||n[u]!==void 0)&&(r[h]=Ss(a,l,h,void 0,e,!0)):delete r[h]);if(o!==l)for(const h in o)(!t||!re(t,h))&&(delete o[h],c=!0)}c&&ut(e.attrs,"set","")}function Jo(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(ln(a))continue;const c=t[a];let u;r&&re(r,u=Ge(a))?!o||!o.includes(u)?n[u]=c:(l||(l={}))[u]=c:Yn(e.emitsOptions,a)||(!(a in s)||c!==s[a])&&(s[a]=c,i=!0)}if(o){const a=se(n),c=l||ue;for(let u=0;u<o.length;u++){const h=o[u];n[h]=Ss(r,a,h,c[h],e,!re(c,h))}}return i}function Ss(e,t,n,s,r,o){const i=e[n];if(i!=null){const l=re(i,"default");if(l&&s===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&K(a)){const{propsDefaults:c}=r;if(n in c)s=c[n];else{const u=Rn(r);s=c[n]=a.call(null,t),u()}}else s=a;r.ce&&r.ce._setProp(n,s)}i[0]&&(o&&!l?s=!1:i[1]&&(s===""||s===Lt(n))&&(s=!0))}return s}const na=new WeakMap;function Yo(e,t,n=!1){const s=n?na:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},l=[];let a=!1;if(!K(e)){const u=h=>{a=!0;const[g,y]=Yo(h,t,!0);Pe(i,g),y&&l.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return fe(e)&&s.set(e,qt),qt;if(G(o))for(let u=0;u<o.length;u++){const h=Ge(o[u]);vr(h)&&(i[h]=ue)}else if(o)for(const u in o){const h=Ge(u);if(vr(h)){const g=o[u],y=i[h]=G(g)||K(g)?{type:g}:Pe({},g),S=y.type;let P=!1,B=!0;if(G(S))for(let $=0;$<S.length;++$){const D=S[$],F=K(D)&&D.name;if(F==="Boolean"){P=!0;break}else F==="String"&&(B=!1)}else P=K(S)&&S.name==="Boolean";y[0]=P,y[1]=B,(P||re(y,"default"))&&l.push(h)}}const c=[i,l];return fe(e)&&s.set(e,c),c}function vr(e){return e[0]!=="$"&&!ln(e)}const Ks=e=>e==="_"||e==="_ctx"||e==="$stable",Ws=e=>G(e)?e.map(st):[st(e)],sa=(e,t,n)=>{if(t._n)return t;const s=Z((...r)=>Ws(t(...r)),n);return s._c=!1,s},Qo=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Ks(r))continue;const o=e[r];if(K(o))t[r]=sa(r,o,s);else if(o!=null){const i=Ws(o);t[r]=()=>i}}},Xo=(e,t)=>{const n=Ws(t);e.slots.default=()=>n},Zo=(e,t,n)=>{for(const s in t)(n||!Ks(s))&&(e[s]=t[s])},ra=(e,t,n)=>{const s=e.slots=Wo();if(e.vnode.shapeFlag&32){const r=t._;r?(Zo(s,t,n),n&&no(s,"_",r,!0)):Qo(t,s)}else t&&Xo(e,t)},oa=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=ue;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:Zo(r,t,n):(o=!t.$stable,Qo(t,r)),i=t}else t&&(Xo(e,t),i={default:1});if(o)for(const l in r)!Ks(l)&&i[l]==null&&delete r[l]},Fe=ua;function ia(e){return la(e)}function la(e,t){const n=Gn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:h,nextSibling:g,setScopeId:y=rt,insertStaticContent:S}=e,P=(d,m,p,b=null,w=null,x=null,T=void 0,A=null,E=!!m.dynamicChildren)=>{if(d===m)return;d&&!sn(d,m)&&(b=_(d),Ne(d,w,x,!0),d=null),m.patchFlag===-2&&(E=!1,m.dynamicChildren=null);const{type:C,ref:U,shapeFlag:I}=m;switch(C){case Qn:B(d,m,p,b);break;case gt:$(d,m,p,b);break;case cs:d==null&&D(m,p,b,T);break;case Y:Et(d,m,p,b,w,x,T,A,E);break;default:I&1?ee(d,m,p,b,w,x,T,A,E):I&6?Ye(d,m,p,b,w,x,T,A,E):(I&64||I&128)&&C.process(d,m,p,b,w,x,T,A,E,V)}U!=null&&w?un(U,d&&d.ref,x,m||d,!m):U==null&&d&&d.ref!=null&&un(d.ref,null,x,d,!0)},B=(d,m,p,b)=>{if(d==null)s(m.el=l(m.children),p,b);else{const w=m.el=d.el;m.children!==d.children&&c(w,m.children)}},$=(d,m,p,b)=>{d==null?s(m.el=a(m.children||""),p,b):m.el=d.el},D=(d,m,p,b)=>{[d.el,d.anchor]=S(d.children,m,p,b,d.el,d.anchor)},F=({el:d,anchor:m},p,b)=>{let w;for(;d&&d!==m;)w=g(d),s(d,p,b),d=w;s(m,p,b)},j=({el:d,anchor:m})=>{let p;for(;d&&d!==m;)p=g(d),r(d),d=p;r(m)},ee=(d,m,p,b,w,x,T,A,E)=>{if(m.type==="svg"?T="svg":m.type==="math"&&(T="mathml"),d==null)ye(m,p,b,w,x,T,A,E);else{const C=d.el&&d.el._isVueCE?d.el:null;try{C&&C._beginPatch(),yt(d,m,w,x,T,A,E)}finally{C&&C._endPatch()}}},ye=(d,m,p,b,w,x,T,A)=>{let E,C;const{props:U,shapeFlag:I,transition:H,dirs:q}=d;if(E=d.el=i(d.type,x,U&&U.is,U),I&8?u(E,d.children):I&16&&Ce(d.children,E,null,b,w,as(d,x),T,A),q&&$t(d,null,b,"created"),me(E,d,d.scopeId,T,b),U){for(const de in U)de!=="value"&&!ln(de)&&o(E,de,null,U[de],x,b);"value"in U&&o(E,"value",null,U.value,x),(C=U.onVnodeBeforeMount)&&tt(C,b,d)}q&&$t(d,null,b,"beforeMount");const X=aa(w,H);X&&H.beforeEnter(E),s(E,m,p),((C=U&&U.onVnodeMounted)||X||q)&&Fe(()=>{C&&tt(C,b,d),X&&H.enter(E),q&&$t(d,null,b,"mounted")},w)},me=(d,m,p,b,w)=>{if(p&&y(d,p),b)for(let x=0;x<b.length;x++)y(d,b[x]);if(w){let x=w.subTree;if(m===x||ni(x.type)&&(x.ssContent===m||x.ssFallback===m)){const T=w.vnode;me(d,T,T.scopeId,T.slotScopeIds,w.parent)}}},Ce=(d,m,p,b,w,x,T,A,E=0)=>{for(let C=E;C<d.length;C++){const U=d[C]=A?kt(d[C]):st(d[C]);P(null,U,m,p,b,w,x,T,A)}},yt=(d,m,p,b,w,x,T)=>{const A=m.el=d.el;let{patchFlag:E,dynamicChildren:C,dirs:U}=m;E|=d.patchFlag&16;const I=d.props||ue,H=m.props||ue;let q;if(p&&Pt(p,!1),(q=H.onVnodeBeforeUpdate)&&tt(q,p,m,d),U&&$t(m,d,p,"beforeUpdate"),p&&Pt(p,!0),(I.innerHTML&&H.innerHTML==null||I.textContent&&H.textContent==null)&&u(A,""),C?Je(d.dynamicChildren,C,A,p,b,as(m,w),x):T||te(d,m,A,null,p,b,as(m,w),x,!1),E>0){if(E&16)vt(A,I,H,p,w);else if(E&2&&I.class!==H.class&&o(A,"class",null,H.class,w),E&4&&o(A,"style",I.style,H.style,w),E&8){const X=m.dynamicProps;for(let de=0;de<X.length;de++){const le=X[de],Me=I[le],De=H[le];(De!==Me||le==="value")&&o(A,le,Me,De,w,p)}}E&1&&d.children!==m.children&&u(A,m.children)}else!T&&C==null&&vt(A,I,H,p,w);((q=H.onVnodeUpdated)||U)&&Fe(()=>{q&&tt(q,p,m,d),U&&$t(m,d,p,"updated")},b)},Je=(d,m,p,b,w,x,T)=>{for(let A=0;A<m.length;A++){const E=d[A],C=m[A],U=E.el&&(E.type===Y||!sn(E,C)||E.shapeFlag&198)?h(E.el):p;P(E,C,U,null,b,w,x,T,!0)}},vt=(d,m,p,b,w)=>{if(m!==p){if(m!==ue)for(const x in m)!ln(x)&&!(x in p)&&o(d,x,m[x],null,w,b);for(const x in p){if(ln(x))continue;const T=p[x],A=m[x];T!==A&&x!=="value"&&o(d,x,A,T,w,b)}"value"in p&&o(d,"value",m.value,p.value,w)}},Et=(d,m,p,b,w,x,T,A,E)=>{const C=m.el=d?d.el:l(""),U=m.anchor=d?d.anchor:l("");let{patchFlag:I,dynamicChildren:H,slotScopeIds:q}=m;q&&(A=A?A.concat(q):q),d==null?(s(C,p,b),s(U,p,b),Ce(m.children||[],p,U,w,x,T,A,E)):I>0&&I&64&&H&&d.dynamicChildren?(Je(d.dynamicChildren,H,p,w,x,T,A),(m.key!=null||w&&m===w.subTree)&&ei(d,m,!0)):te(d,m,p,U,w,x,T,A,E)},Ye=(d,m,p,b,w,x,T,A,E)=>{m.slotScopeIds=A,d==null?m.shapeFlag&512?w.ctx.activate(m,p,b,T,E):en(m,p,b,w,x,T,E):Ft(d,m,E)},en=(d,m,p,b,w,x,T)=>{const A=d.component=ya(d,b,w);if(Io(d)&&(A.ctx.renderer=V),xa(A,!1,T),A.asyncDep){if(w&&w.registerDep(A,be,T),!d.el){const E=A.subTree=M(gt);$(null,E,m,p),d.placeholder=E.el}}else be(A,d,m,p,w,x,T)},Ft=(d,m,p)=>{const b=m.component=d.component;if(Xl(d,m,p))if(b.asyncDep&&!b.asyncResolved){ae(b,m,p);return}else b.next=m,b.update();else m.el=d.el,b.vnode=m},be=(d,m,p,b,w,x,T)=>{const A=()=>{if(d.isMounted){let{next:I,bu:H,u:q,parent:X,vnode:de}=d;{const Ze=ti(d);if(Ze){I&&(I.el=de.el,ae(d,I,T)),Ze.asyncDep.then(()=>{d.isUnmounted||A()});return}}let le=I,Me;Pt(d,!1),I?(I.el=de.el,ae(d,I,T)):I=de,H&&Pn(H),(Me=I.props&&I.props.onVnodeBeforeUpdate)&&tt(Me,X,I,de),Pt(d,!0);const De=pr(d),Xe=d.subTree;d.subTree=De,P(Xe,De,h(Xe.el),_(Xe),d,w,x),I.el=De.el,le===null&&Zl(d,De.el),q&&Fe(q,w),(Me=I.props&&I.props.onVnodeUpdated)&&Fe(()=>tt(Me,X,I,de),w)}else{let I;const{el:H,props:q}=m,{bm:X,m:de,parent:le,root:Me,type:De}=d,Xe=zt(m);Pt(d,!1),X&&Pn(X),!Xe&&(I=q&&q.onVnodeBeforeMount)&&tt(I,le,m),Pt(d,!0);{Me.ce&&Me.ce._def.shadowRoot!==!1&&Me.ce._injectChildStyle(De);const Ze=d.subTree=pr(d);P(null,Ze,p,b,d,w,x),m.el=Ze.el}if(de&&Fe(de,w),!Xe&&(I=q&&q.onVnodeMounted)){const Ze=m;Fe(()=>tt(I,le,Ze),w)}(m.shapeFlag&256||le&&zt(le.vnode)&&le.vnode.shapeFlag&256)&&d.a&&Fe(d.a,w),d.isMounted=!0,m=p=b=null}};d.scope.on();const E=d.effect=new lo(A);d.scope.off();const C=d.update=E.run.bind(E),U=d.job=E.runIfDirty.bind(E);U.i=d,U.id=d.uid,E.scheduler=()=>Gs(U),Pt(d,!0),C()},ae=(d,m,p)=>{m.component=d;const b=d.vnode.props;d.vnode=m,d.next=null,ta(d,m.props,b,p),oa(d,m.children,p),dt(),cr(d),ht()},te=(d,m,p,b,w,x,T,A,E=!1)=>{const C=d&&d.children,U=d?d.shapeFlag:0,I=m.children,{patchFlag:H,shapeFlag:q}=m;if(H>0){if(H&128){xt(C,I,p,b,w,x,T,A,E);return}else if(H&256){it(C,I,p,b,w,x,T,A,E);return}}q&8?(U&16&&Be(C,w,x),I!==C&&u(p,I)):U&16?q&16?xt(C,I,p,b,w,x,T,A,E):Be(C,w,x,!0):(U&8&&u(p,""),q&16&&Ce(I,p,b,w,x,T,A,E))},it=(d,m,p,b,w,x,T,A,E)=>{d=d||qt,m=m||qt;const C=d.length,U=m.length,I=Math.min(C,U);let H;for(H=0;H<I;H++){const q=m[H]=E?kt(m[H]):st(m[H]);P(d[H],q,p,null,w,x,T,A,E)}C>U?Be(d,w,x,!0,!1,I):Ce(m,p,b,w,x,T,A,E,I)},xt=(d,m,p,b,w,x,T,A,E)=>{let C=0;const U=m.length;let I=d.length-1,H=U-1;for(;C<=I&&C<=H;){const q=d[C],X=m[C]=E?kt(m[C]):st(m[C]);if(sn(q,X))P(q,X,p,null,w,x,T,A,E);else break;C++}for(;C<=I&&C<=H;){const q=d[I],X=m[H]=E?kt(m[H]):st(m[H]);if(sn(q,X))P(q,X,p,null,w,x,T,A,E);else break;I--,H--}if(C>I){if(C<=H){const q=H+1,X=q<U?m[q].el:b;for(;C<=H;)P(null,m[C]=E?kt(m[C]):st(m[C]),p,X,w,x,T,A,E),C++}}else if(C>H)for(;C<=I;)Ne(d[C],w,x,!0),C++;else{const q=C,X=C,de=new Map;for(C=X;C<=H;C++){const je=m[C]=E?kt(m[C]):st(m[C]);je.key!=null&&de.set(je.key,C)}let le,Me=0;const De=H-X+1;let Xe=!1,Ze=0;const tn=new Array(De);for(C=0;C<De;C++)tn[C]=0;for(C=q;C<=I;C++){const je=d[C];if(Me>=De){Ne(je,w,x,!0);continue}let et;if(je.key!=null)et=de.get(je.key);else for(le=X;le<=H;le++)if(tn[le-X]===0&&sn(je,m[le])){et=le;break}et===void 0?Ne(je,w,x,!0):(tn[et-X]=C+1,et>=Ze?Ze=et:Xe=!0,P(je,m[et],p,null,w,x,T,A,E),Me++)}const tr=Xe?ca(tn):qt;for(le=tr.length-1,C=De-1;C>=0;C--){const je=X+C,et=m[je],nr=m[je+1],sr=je+1<U?nr.el||nr.placeholder:b;tn[C]===0?P(null,et,p,sr,w,x,T,A,E):Xe&&(le<0||C!==tr[le]?Qe(et,p,sr,2):le--)}}},Qe=(d,m,p,b,w=null)=>{const{el:x,type:T,transition:A,children:E,shapeFlag:C}=d;if(C&6){Qe(d.component.subTree,m,p,b);return}if(C&128){d.suspense.move(m,p,b);return}if(C&64){T.move(d,m,p,V);return}if(T===Y){s(x,m,p);for(let I=0;I<E.length;I++)Qe(E[I],m,p,b);s(d.anchor,m,p);return}if(T===cs){F(d,m,p);return}if(b!==2&&C&1&&A)if(b===0)A.beforeEnter(x),s(x,m,p),Fe(()=>A.enter(x),w);else{const{leave:I,delayLeave:H,afterLeave:q}=A,X=()=>{d.ctx.isUnmounted?r(x):s(x,m,p)},de=()=>{x._isLeaving&&x[wl](!0),I(x,()=>{X(),q&&q()})};H?H(x,X,de):de()}else s(x,m,p)},Ne=(d,m,p,b=!1,w=!1)=>{const{type:x,props:T,ref:A,children:E,dynamicChildren:C,shapeFlag:U,patchFlag:I,dirs:H,cacheIndex:q}=d;if(I===-2&&(w=!1),A!=null&&(dt(),un(A,null,p,d,!0),ht()),q!=null&&(m.renderCache[q]=void 0),U&256){m.ctx.deactivate(d);return}const X=U&1&&H,de=!zt(d);let le;if(de&&(le=T&&T.onVnodeBeforeUnmount)&&tt(le,m,d),U&6)At(d.component,p,b);else{if(U&128){d.suspense.unmount(p,b);return}X&&$t(d,null,m,"beforeUnmount"),U&64?d.type.remove(d,m,p,V,b):C&&!C.hasOnce&&(x!==Y||I>0&&I&64)?Be(C,m,p,!1,!0):(x===Y&&I&384||!w&&U&16)&&Be(E,m,p),b&&Vt(d)}(de&&(le=T&&T.onVnodeUnmounted)||X)&&Fe(()=>{le&&tt(le,m,d),X&&$t(d,null,m,"unmounted")},p)},Vt=d=>{const{type:m,el:p,anchor:b,transition:w}=d;if(m===Y){Bt(p,b);return}if(m===cs){j(d);return}const x=()=>{r(p),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(d.shapeFlag&1&&w&&!w.persisted){const{leave:T,delayLeave:A}=w,E=()=>T(p,x);A?A(d.el,x,E):E()}else x()},Bt=(d,m)=>{let p;for(;d!==m;)p=g(d),r(d),d=p;r(m)},At=(d,m,p)=>{const{bum:b,scope:w,job:x,subTree:T,um:A,m:E,a:C}=d;xr(E),xr(C),b&&Pn(b),w.stop(),x&&(x.flags|=8,Ne(T,d,m,p)),A&&Fe(A,m),Fe(()=>{d.isUnmounted=!0},m)},Be=(d,m,p,b=!1,w=!1,x=0)=>{for(let T=x;T<d.length;T++)Ne(d[T],m,p,b,w)},_=d=>{if(d.shapeFlag&6)return _(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const m=g(d.anchor||d.el),p=m&&m[bl];return p?g(p):m};let L=!1;const O=(d,m,p)=>{d==null?m._vnode&&Ne(m._vnode,null,null,!0):P(m._vnode||null,d,m,null,null,null,p),m._vnode=d,L||(L=!0,cr(),Ao(),L=!1)},V={p:P,um:Ne,m:Qe,r:Vt,mt:en,mc:Ce,pc:te,pbc:Je,n:_,o:e};return{render:O,hydrate:void 0,createApp:Ul(O)}}function as({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 Pt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function aa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ei(e,t,n=!1){const s=e.children,r=t.children;if(G(s)&&G(r))for(let o=0;o<s.length;o++){const i=s[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=kt(r[o]),l.el=i.el),!n&&l.patchFlag!==-2&&ei(i,l)),l.type===Qn&&l.patchFlag!==-1&&(l.el=i.el),l.type===gt&&!l.el&&(l.el=i.el)}}function ca(e){const t=e.slice(),n=[0];let s,r,o,i,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(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<c?o=l+1:i=l;c<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function ti(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ti(t)}function xr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const ni=e=>e.__isSuspense;function ua(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):vl(e)}const Y=Symbol.for("v-fgt"),Qn=Symbol.for("v-txt"),gt=Symbol.for("v-cmt"),cs=Symbol.for("v-stc"),hn=[];let Ve=null;function v(e=!1){hn.push(Ve=e?null:[])}function fa(){hn.pop(),Ve=hn[hn.length-1]||null}let vn=1;function jn(e,t=!1){vn+=e,e<0&&Ve&&t&&(Ve.hasOnce=!0)}function si(e){return e.dynamicChildren=vn>0?Ve||qt:null,fa(),vn>0&&Ve&&Ve.push(e),e}function k(e,t,n,s,r,o){return si(f(e,t,n,s,r,o,!0))}function ie(e,t,n,s,r){return si(M(e,t,n,s,r,!0))}function xn(e){return e?e.__v_isVNode===!0:!1}function sn(e,t){return e.type===t.type&&e.key===t.key}const ri=({key:e})=>e??null,Tn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?pe(e)||Ae(e)||K(e)?{i:we,r:e,k:t,f:!!n}:e:null);function f(e,t=null,n=null,s=0,r=null,o=e===Y?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ri(t),ref:t&&Tn(t),scopeId:Po,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:we};return l?(zs(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=pe(n)?8:16),vn>0&&!i&&Ve&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&Ve.push(a),a}const M=da;function da(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Lo)&&(e=gt),xn(e)){const l=Qt(e,t,!0);return n&&zs(l,n),vn>0&&!o&&Ve&&(l.shapeFlag&6?Ve[Ve.indexOf(e)]=l:Ve.push(l)),l.patchFlag=-2,l}if(Ca(e)&&(e=e.__vccOpts),t){t=ha(t);let{class:l,style:a}=t;l&&!pe(l)&&(t.class=J(l)),fe(a)&&(Us(a)&&!G(a)&&(a=Pe({},a)),t.style=St(a))}const i=pe(e)?1:ni(e)?128:_l(e)?64:fe(e)?4:K(e)?2:0;return f(e,t,n,s,r,i,o,!0)}function ha(e){return e?Us(e)||zo(e)?Pe({},e):e:null}function Qt(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:a}=e,c=t?ma(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ri(c),ref:t&&t.ref?n&&o?G(o)?o.concat(Tn(t)):[o,Tn(t)]:Tn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Y?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qt(e.ssContent),ssFallback:e.ssFallback&&Qt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&qs(u,a.clone(u)),u}function ce(e=" ",t=0){return M(Qn,null,e,t)}function W(e="",t=!1){return t?(v(),ie(gt,null,e)):M(gt,null,e)}function st(e){return e==null||typeof e=="boolean"?M(gt):G(e)?M(Y,null,e.slice()):xn(e)?kt(e):M(Qn,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Qt(e)}function zs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(G(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),zs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!zo(t)?t._ctx=we:r===3&&we&&(we.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:we},n=32):(t=String(t),s&64?(n=16,t=[ce(t)]):n=8);e.children=t,e.shapeFlag|=n}function ma(...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=J([t.class,s.class]));else if(r==="style")t.style=St([t.style,s.style]);else if(Vn(r)){const o=t[r],i=s[r];i&&o!==i&&!(G(o)&&o.includes(i))&&(t[r]=o?[].concat(o,i):i)}else r!==""&&(t[r]=s[r])}return t}function tt(e,t,n,s=null){ot(e,t,7,[n,s])}const ga=Ho();let pa=0;function ya(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||ga,o={uid:pa++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Hi(!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:Yo(s,r),emitsOptions:qo(s,r),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:s.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,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 o.ctx={_:o},o.root=t?t.root:o,o.emit=zl.bind(null,o),e.ce&&e.ce(o),o}let Ee=null;const va=()=>Ee||we;let Fn,Es;{const e=Gn(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};Fn=t("__VUE_INSTANCE_SETTERS__",n=>Ee=n),Es=t("__VUE_SSR_SETTERS__",n=>bn=n)}const Rn=e=>{const t=Ee;return Fn(e),e.scope.on(),()=>{e.scope.off(),Fn(t)}},br=()=>{Ee&&Ee.scope.off(),Fn(null)};function oi(e){return e.vnode.shapeFlag&4}let bn=!1;function xa(e,t=!1,n=!1){t&&Es(t);const{props:s,children:r}=e.vnode,o=oi(e);ea(e,s,o,t),ra(e,r,n||t);const i=o?ba(e,t):void 0;return t&&Es(!1),i}function ba(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Dl);const{setup:s}=n;if(s){dt();const r=e.setupContext=s.length>1?wa(e):null,o=Rn(e),i=Cn(s,e,0,[e.props,r]),l=Zr(i);if(ht(),o(),(l||e.sp)&&!zt(e)&&Oo(e),l){if(i.then(br,br),t)return i.then(a=>{_r(e,a)}).catch(a=>{zn(a,e,0)});e.asyncDep=i}else _r(e,i)}else ii(e)}function _r(e,t,n){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:fe(t)&&(e.setupState=Co(t)),ii(e)}function ii(e,t,n){const s=e.type;e.render||(e.render=s.render||rt);{const r=Rn(e);dt();try{Ll(e)}finally{ht(),r()}}}const _a={get(e,t){return Se(e,"get",""),e[t]}};function wa(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,_a),slots:e.slots,emit:e.emit,expose:t}}function Xn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Co(al(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in fn)return fn[n](e)},has(t,n){return n in t||n in fn}})):e.proxy}function ka(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function Ca(e){return K(e)&&"__vccOpts"in e}const oe=(e,t)=>hl(e,t,bn);function li(e,t,n){try{jn(-1);const s=arguments.length;return s===2?fe(t)&&!G(t)?xn(t)?M(e,null,[t]):M(e,t):M(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&xn(n)&&(n=[n]),M(e,t,n))}finally{jn(1)}}const Ra="3.5.25";/**
|
|
* @vue/runtime-dom v3.5.25
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let As;const wr=typeof window<"u"&&window.trustedTypes;if(wr)try{As=wr.createPolicy("vue",{createHTML:e=>e})}catch{}const ai=As?e=>As.createHTML(e):e=>e,Sa="http://www.w3.org/2000/svg",Ea="http://www.w3.org/1998/Math/MathML",ct=typeof document<"u"?document:null,kr=ct&&ct.createElement("template"),Aa={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"?ct.createElementNS(Sa,e):t==="mathml"?ct.createElementNS(Ea,e):n?ct.createElement(e,{is:n}):ct.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ct.createTextNode(e),createComment:e=>ct.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ct.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{kr.innerHTML=ai(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=kr.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[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},$a=Symbol("_vtc");function Pa(e,t,n){const s=e[$a];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Cr=Symbol("_vod"),Ta=Symbol("_vsh"),Oa=Symbol(""),Ia=/(?:^|;)\s*display\s*:/;function Na(e,t,n){const s=e.style,r=pe(n);let o=!1;if(n&&!r){if(t)if(pe(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&On(s,l,"")}else for(const i in t)n[i]==null&&On(s,i,"");for(const i in n)i==="display"&&(o=!0),On(s,i,n[i])}else if(r){if(t!==n){const i=s[Oa];i&&(n+=";"+i),s.cssText=n,o=Ia.test(n)}}else t&&e.removeAttribute("style");Cr in e&&(e[Cr]=o?s.display:"",e[Ta]&&(s.display="none"))}const Rr=/\s*!important$/;function On(e,t,n){if(G(n))n.forEach(s=>On(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Ma(e,t);Rr.test(n)?e.setProperty(Lt(s),n.replace(Rr,""),"important"):e[s]=n}}const Sr=["Webkit","Moz","ms"],us={};function Ma(e,t){const n=us[t];if(n)return n;let s=Ge(t);if(s!=="filter"&&s in e)return us[t]=s;s=Un(s);for(let r=0;r<Sr.length;r++){const o=Sr[r]+s;if(o in e)return us[t]=o}return t}const Er="http://www.w3.org/1999/xlink";function Ar(e,t,n,s,r,o=Vi(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Er,t.slice(6,t.length)):e.setAttributeNS(Er,t,n):n==null||o&&!so(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Ke(n)?String(n):n)}function $r(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ai(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="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 i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=so(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(r||t)}function ci(e,t,n,s){e.addEventListener(t,n,s)}function Da(e,t,n,s){e.removeEventListener(t,n,s)}const Pr=Symbol("_vei");function La(e,t,n,s,r=null){const o=e[Pr]||(e[Pr]={}),i=o[t];if(s&&i)i.value=s;else{const[l,a]=ja(t);if(s){const c=o[t]=Ba(s,r);ci(e,l,c,a)}else i&&(Da(e,l,i,a),o[t]=void 0)}}const Tr=/(?:Once|Passive|Capture)$/;function ja(e){let t;if(Tr.test(e)){t={};let s;for(;s=e.match(Tr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Lt(e.slice(2)),t]}let fs=0;const Fa=Promise.resolve(),Va=()=>fs||(Fa.then(()=>fs=0),fs=Date.now());function Ba(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;ot(Ha(s,n.value),t,5,[s])};return n.value=e,n.attached=Va(),n}function Ha(e,t){if(G(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Or=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ua=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Pa(e,s,i):t==="style"?Na(e,n,s):Vn(t)?Ns(t)||La(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ga(e,t,s,i))?($r(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ar(e,t,s,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!pe(s))?$r(e,Ge(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ar(e,t,s,i))};function Ga(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Or(t)&&K(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 Or(t)&&pe(n)?!1:t in e}const Ir=e=>{const t=e.props["onUpdate:modelValue"]||!1;return G(t)?n=>Pn(t,n):t},ds=Symbol("_assign"),qa={deep:!0,created(e,t,n){e[ds]=Ir(n),ci(e,"change",()=>{const s=e._modelValue,r=Ka(e),o=e.checked,i=e[ds];if(G(s)){const l=ro(s,r),a=l!==-1;if(o&&!a)i(s.concat(r));else if(!o&&a){const c=[...s];c.splice(l,1),i(c)}}else if(Bn(s)){const l=new Set(s);o?l.add(r):l.delete(r),i(l)}else i(ui(e,o))})},mounted:Nr,beforeUpdate(e,t,n){e[ds]=Ir(n),Nr(e,t,n)}};function Nr(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(G(t))r=ro(t,s.props.value)>-1;else if(Bn(t))r=t.has(s.props.value);else{if(t===n)return;r=qn(t,ui(e,!0))}e.checked!==r&&(e.checked=r)}function Ka(e){return"_value"in e?e._value:e.value}function ui(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Wa=["ctrl","shift","alt","meta"],za={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Wa.some(n=>e[`${n}Key`]&&!t.includes(n))},Js=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i<t.length;i++){const l=za[t[i]];if(l&&l(r,t))return}return e(r,...o)})},Ja=Pe({patchProp:Ua},Aa);let Mr;function Ya(){return Mr||(Mr=ia(Ja))}const Qa=(...e)=>{const t=Ya().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Za(s);if(!r)return;const o=t._component;!K(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,Xa(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Xa(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Za(e){return pe(e)?document.querySelector(e):e}/*!
|
|
* vue-router v4.6.3
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const Gt=typeof document<"u";function fi(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ec(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&fi(e.default)}const ne=Object.assign;function hs(e,t){const n={};for(const s in t){const r=t[s];n[s]=ze(r)?r.map(e):e(r)}return n}const mn=()=>{},ze=Array.isArray;function Dr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const di=/#/g,tc=/&/g,nc=/\//g,sc=/=/g,rc=/\?/g,hi=/\+/g,oc=/%5B/g,ic=/%5D/g,mi=/%5E/g,lc=/%60/g,gi=/%7B/g,ac=/%7C/g,pi=/%7D/g,cc=/%20/g;function Ys(e){return e==null?"":encodeURI(""+e).replace(ac,"|").replace(oc,"[").replace(ic,"]")}function uc(e){return Ys(e).replace(gi,"{").replace(pi,"}").replace(mi,"^")}function $s(e){return Ys(e).replace(hi,"%2B").replace(cc,"+").replace(di,"%23").replace(tc,"%26").replace(lc,"`").replace(gi,"{").replace(pi,"}").replace(mi,"^")}function fc(e){return $s(e).replace(sc,"%3D")}function dc(e){return Ys(e).replace(di,"%23").replace(rc,"%3F")}function hc(e){return dc(e).replace(nc,"%2F")}function _n(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const mc=/\/$/,gc=e=>e.replace(mc,"");function ms(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(s=t.slice(0,a),o=t.slice(a,l>0?l:t.length),r=e(o.slice(1))),l>=0&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=xc(s??t,n),{fullPath:s+o+i,path:s,query:r,hash:_n(i)}}function pc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Lr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function yc(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Xt(t.matched[s],n.matched[r])&&yi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Xt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function yi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!vc(e[n],t[n]))return!1;return!0}function vc(e,t){return ze(e)?jr(e,t):ze(t)?jr(t,e):e===t}function jr(e,t){return ze(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function xc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i<s.length;i++)if(l=s[i],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const bt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ps=function(e){return e.pop="pop",e.push="push",e}({}),gs=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function bc(e){if(!e)if(Gt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),gc(e)}const _c=/^[^#]+#/;function wc(e,t){return e.replace(_c,"#")+t}function kc(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 Zn=()=>({left:window.scrollX,top:window.scrollY});function Cc(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=kc(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 Fr(e,t){return(history.state?history.state.position-t:-1)+e}const Ts=new Map;function Rc(e,t){Ts.set(e,t)}function Sc(e){const t=Ts.get(e);return Ts.delete(e),t}function Ec(e){return typeof e=="string"||e&&typeof e=="object"}function vi(e){return typeof e=="string"||typeof e=="symbol"}let ge=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 xi=Symbol("");ge.MATCHER_NOT_FOUND+"",ge.NAVIGATION_GUARD_REDIRECT+"",ge.NAVIGATION_ABORTED+"",ge.NAVIGATION_CANCELLED+"",ge.NAVIGATION_DUPLICATED+"";function Zt(e,t){return ne(new Error,{type:e,[xi]:!0},t)}function at(e,t){return e instanceof Error&&xi in e&&(t==null||!!(e.type&t))}const Ac=["params","query","hash"];function $c(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Ac)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Pc(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(hi," "),o=r.indexOf("="),i=_n(o<0?r:r.slice(0,o)),l=o<0?null:_n(r.slice(o+1));if(i in t){let a=t[i];ze(a)||(a=t[i]=[a]),a.push(l)}else t[i]=l}return t}function Vr(e){let t="";for(let n in e){const s=e[n];if(n=fc(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(ze(s)?s.map(r=>r&&$s(r)):[s&&$s(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Tc(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=ze(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Oc=Symbol(""),Br=Symbol(""),Qs=Symbol(""),Xs=Symbol(""),Os=Symbol("");function rn(){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 Ct(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,a)=>{const c=g=>{g===!1?a(Zt(ge.NAVIGATION_ABORTED,{from:n,to:t})):g instanceof Error?a(g):Ec(g)?a(Zt(ge.NAVIGATION_GUARD_REDIRECT,{from:t,to:g})):(i&&s.enterCallbacks[r]===i&&typeof g=="function"&&i.push(g),l())},u=o(()=>e.call(s&&s.instances[r],t,n,c));let h=Promise.resolve(u);e.length<3&&(h=h.then(c)),h.catch(g=>a(g))})}function ps(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(fi(a)){const c=(a.__vccOpts||a)[t];c&&o.push(Ct(c,n,s,i,l,r))}else{let c=a();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const h=ec(u)?u.default:u;i.mods[l]=u,i.components[l]=h;const g=(h.__vccOpts||h)[t];return g&&Ct(g,n,s,i,l,r)()}))}}return o}function Ic(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const l=t.matched[i];l&&(e.matched.find(c=>Xt(c,l))?s.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(c=>Xt(c,a))||r.push(a))}return[n,s,r]}/*!
|
|
* vue-router v4.6.3
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/let Nc=()=>location.protocol+"//"+location.host;function bi(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let i=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(i);return l[0]!=="/"&&(l="/"+l),Lr(l,"")}return Lr(n,e)+s+r}function Mc(e,t,n,s){let r=[],o=[],i=null;const l=({state:g})=>{const y=bi(e,location),S=n.value,P=t.value;let B=0;if(g){if(n.value=y,t.value=g,i&&i===S){i=null;return}B=P?g.position-P.position:0}else s(y);r.forEach($=>{$(n.value,S,{delta:B,type:Ps.pop,direction:B?B>0?gs.forward:gs.back:gs.unknown})})};function a(){i=n.value}function c(g){r.push(g);const y=()=>{const S=r.indexOf(g);S>-1&&r.splice(S,1)};return o.push(y),y}function u(){if(document.visibilityState==="hidden"){const{history:g}=window;if(!g.state)return;g.replaceState(ne({},g.state,{scroll:Zn()}),"")}}function h(){for(const g of o)g();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:a,listen:c,destroy:h}}function Hr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Zn():null}}function Dc(e){const{history:t,location:n}=window,s={value:bi(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(a,c,u){const h=e.indexOf("#"),g=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+a:Nc()+e+a;try{t[u?"replaceState":"pushState"](c,"",g),r.value=c}catch(y){console.error(y),n[u?"replace":"assign"](g)}}function i(a,c){o(a,ne({},t.state,Hr(r.value.back,a,r.value.forward,!0),c,{position:r.value.position}),!0),s.value=a}function l(a,c){const u=ne({},r.value,t.state,{forward:a,scroll:Zn()});o(u.current,u,!0),o(a,ne({},Hr(s.value,a,null),{position:u.position+1},c),!1),s.value=a}return{location:s,state:r,push:l,replace:i}}function Lc(e){e=bc(e);const t=Dc(e),n=Mc(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=ne({location:"",base:e,go:s,createHref:wc.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}function jc(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Lc(e)}let Ot=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var ve=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}(ve||{});const Fc={type:Ot.Static,value:""},Vc=/[a-zA-Z0-9_]/;function Bc(e){if(!e)return[[]];if(e==="/")return[[Fc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(y){throw new Error(`ERR (${n})/"${c}": ${y}`)}let n=ve.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,a,c="",u="";function h(){c&&(n===ve.Static?o.push({type:Ot.Static,value:c}):n===ve.Param||n===ve.ParamRegExp||n===ve.ParamRegExpEnd?(o.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Ot.Param,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function g(){c+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==ve.ParamRegExp){s=n,n=ve.EscapeNext;continue}switch(n){case ve.Static:a==="/"?(c&&h(),i()):a===":"?(h(),n=ve.Param):g();break;case ve.EscapeNext:g(),n=s;break;case ve.Param:a==="("?n=ve.ParamRegExp:Vc.test(a)?g():(h(),n=ve.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case ve.ParamRegExp:a===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+a:n=ve.ParamRegExpEnd:u+=a;break;case ve.ParamRegExpEnd:h(),n=ve.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--,u="";break;default:t("Unknown state");break}}return n===ve.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),h(),i(),r}const Ur="[^/]+?",Hc={sensitive:!1,strict:!1,start:!0,end:!0};var Oe=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}(Oe||{});const Uc=/[.+*?^${}()[\]/\\]/g;function Gc(e,t){const n=ne({},Hc,t),s=[];let r=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[Oe.Root];n.strict&&!c.length&&(r+="/");for(let h=0;h<c.length;h++){const g=c[h];let y=Oe.Segment+(n.sensitive?Oe.BonusCaseSensitive:0);if(g.type===Ot.Static)h||(r+="/"),r+=g.value.replace(Uc,"\\$&"),y+=Oe.Static;else if(g.type===Ot.Param){const{value:S,repeatable:P,optional:B,regexp:$}=g;o.push({name:S,repeatable:P,optional:B});const D=$||Ur;if(D!==Ur){y+=Oe.BonusCustomRegExp;try{`${D}`}catch(j){throw new Error(`Invalid custom RegExp for param "${S}" (${D}): `+j.message)}}let F=P?`((?:${D})(?:/(?:${D}))*)`:`(${D})`;h||(F=B&&c.length<2?`(?:/${F})`:"/"+F),B&&(F+="?"),r+=F,y+=Oe.Dynamic,B&&(y+=Oe.BonusOptional),P&&(y+=Oe.BonusRepeatable),D===".*"&&(y+=Oe.BonusWildcard)}u.push(y)}s.push(u)}if(n.strict&&n.end){const c=s.length-1;s[c][s[c].length-1]+=Oe.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function l(c){const u=c.match(i),h={};if(!u)return null;for(let g=1;g<u.length;g++){const y=u[g]||"",S=o[g-1];h[S.name]=y&&S.repeatable?y.split("/"):y}return h}function a(c){let u="",h=!1;for(const g of e){(!h||!u.endsWith("/"))&&(u+="/"),h=!1;for(const y of g)if(y.type===Ot.Static)u+=y.value;else if(y.type===Ot.Param){const{value:S,repeatable:P,optional:B}=y,$=S in c?c[S]:"";if(ze($)&&!P)throw new Error(`Provided param "${S}" is an array but it is not repeatable (* or + modifiers)`);const D=ze($)?$.join("/"):$;if(!D)if(B)g.length<2&&(u.endsWith("/")?u=u.slice(0,-1):h=!0);else throw new Error(`Missing required param "${S}"`);u+=D}}return u||"/"}return{re:i,score:s,keys:o,parse:l,stringify:a}}function qc(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]===Oe.Static+Oe.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Oe.Static+Oe.Segment?1:-1:0}function _i(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=qc(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(Gr(s))return 1;if(Gr(r))return-1}return r.length-s.length}function Gr(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Kc={strict:!1,end:!0,sensitive:!1};function Wc(e,t,n){const s=Gc(Bc(e.path),n),r=ne(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function zc(e,t){const n=[],s=new Map;t=Dr(Kc,t);function r(h){return s.get(h)}function o(h,g,y){const S=!y,P=Kr(h);P.aliasOf=y&&y.record;const B=Dr(t,h),$=[P];if("alias"in h){const j=typeof h.alias=="string"?[h.alias]:h.alias;for(const ee of j)$.push(Kr(ne({},P,{components:y?y.record.components:P.components,path:ee,aliasOf:y?y.record:P})))}let D,F;for(const j of $){const{path:ee}=j;if(g&&ee[0]!=="/"){const ye=g.record.path,me=ye[ye.length-1]==="/"?"":"/";j.path=g.record.path+(ee&&me+ee)}if(D=Wc(j,g,B),y?y.alias.push(D):(F=F||D,F!==D&&F.alias.push(D),S&&h.name&&!Wr(D)&&i(h.name)),wi(D)&&a(D),P.children){const ye=P.children;for(let me=0;me<ye.length;me++)o(ye[me],D,y&&y.children[me])}y=y||D}return F?()=>{i(F)}:mn}function i(h){if(vi(h)){const g=s.get(h);g&&(s.delete(h),n.splice(n.indexOf(g),1),g.children.forEach(i),g.alias.forEach(i))}else{const g=n.indexOf(h);g>-1&&(n.splice(g,1),h.record.name&&s.delete(h.record.name),h.children.forEach(i),h.alias.forEach(i))}}function l(){return n}function a(h){const g=Qc(h,n);n.splice(g,0,h),h.record.name&&!Wr(h)&&s.set(h.record.name,h)}function c(h,g){let y,S={},P,B;if("name"in h&&h.name){if(y=s.get(h.name),!y)throw Zt(ge.MATCHER_NOT_FOUND,{location:h});B=y.record.name,S=ne(qr(g.params,y.keys.filter(F=>!F.optional).concat(y.parent?y.parent.keys.filter(F=>F.optional):[]).map(F=>F.name)),h.params&&qr(h.params,y.keys.map(F=>F.name))),P=y.stringify(S)}else if(h.path!=null)P=h.path,y=n.find(F=>F.re.test(P)),y&&(S=y.parse(P),B=y.record.name);else{if(y=g.name?s.get(g.name):n.find(F=>F.re.test(g.path)),!y)throw Zt(ge.MATCHER_NOT_FOUND,{location:h,currentLocation:g});B=y.record.name,S=ne({},g.params,h.params),P=y.stringify(S)}const $=[];let D=y;for(;D;)$.unshift(D.record),D=D.parent;return{name:B,path:P,params:S,matched:$,meta:Yc($)}}e.forEach(h=>o(h));function u(){n.length=0,s.clear()}return{addRoute:o,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:l,getRecordMatcher:r}}function qr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Kr(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Jc(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 Jc(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 Wr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Yc(e){return e.reduce((t,n)=>ne(t,n.meta),{})}function Qc(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;_i(e,t[o])<0?s=o:n=o+1}const r=Xc(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function Xc(e){let t=e;for(;t=t.parent;)if(wi(t)&&_i(e,t)===0)return t}function wi({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function zr(e){const t=$e(Qs),n=$e(Xs),s=oe(()=>{const a=N(e.to);return t.resolve(a)}),r=oe(()=>{const{matched:a}=s.value,{length:c}=a,u=a[c-1],h=n.matched;if(!u||!h.length)return-1;const g=h.findIndex(Xt.bind(null,u));if(g>-1)return g;const y=Jr(a[c-2]);return c>1&&Jr(u)===y&&h[h.length-1].path!==y?h.findIndex(Xt.bind(null,a[c-2])):g}),o=oe(()=>r.value>-1&&nu(n.params,s.value.params)),i=oe(()=>r.value>-1&&r.value===n.matched.length-1&&yi(n.params,s.value.params));function l(a={}){if(tu(a)){const c=t[N(e.replace)?"replace":"push"](N(e.to)).catch(mn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:oe(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}function Zc(e){return e.length===1?e[0]:e}const eu=To({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:zr,setup(e,{slots:t}){const n=Wn(zr(e)),{options:s}=$e(Qs),r=oe(()=>({[Yr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Yr(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Zc(t.default(n));return e.custom?o:li("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),Re=eu;function tu(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 nu(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(!ze(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function Jr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Yr=(e,t,n)=>e??t??n,su=To({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=$e(Os),r=oe(()=>e.route||s.value),o=$e(Br,0),i=oe(()=>{let c=N(o);const{matched:u}=r.value;let h;for(;(h=u[c])&&!h.components;)c++;return c}),l=oe(()=>r.value.matched[i.value]);dn(Br,oe(()=>i.value+1)),dn(Oc,l),dn(Os,r);const a=ke();return Ue(()=>[a.value,l.value,e.name],([c,u,h],[g,y,S])=>{u&&(u.instances[h]=c,y&&y!==u&&c&&c===g&&(u.leaveGuards.size||(u.leaveGuards=y.leaveGuards),u.updateGuards.size||(u.updateGuards=y.updateGuards))),c&&u&&(!y||!Xt(u,y)||!g)&&(u.enterCallbacks[h]||[]).forEach(P=>P(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,h=l.value,g=h&&h.components[u];if(!g)return Qr(n.default,{Component:g,route:c});const y=h.props[u],S=y?y===!0?c.params:typeof y=="function"?y(c):y:null,B=li(g,ne({},S,t,{onVnodeUnmounted:$=>{$.component.isUnmounted&&(h.instances[u]=null)},ref:a}));return Qr(n.default,{Component:B,route:c})||B}}});function Qr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ru=su;function ou(e){const t=zc(e.routes,e),n=e.parseQuery||Pc,s=e.stringifyQuery||Vr,r=e.history,o=rn(),i=rn(),l=rn(),a=cl(bt);let c=bt;Gt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=hs.bind(null,_=>""+_),h=hs.bind(null,hc),g=hs.bind(null,_n);function y(_,L){let O,V;return vi(_)?(O=t.getRecordMatcher(_),V=L):V=_,t.addRoute(V,O)}function S(_){const L=t.getRecordMatcher(_);L&&t.removeRoute(L)}function P(){return t.getRoutes().map(_=>_.record)}function B(_){return!!t.getRecordMatcher(_)}function $(_,L){if(L=ne({},L||a.value),typeof _=="string"){const p=ms(n,_,L.path),b=t.resolve({path:p.path},L),w=r.createHref(p.fullPath);return ne(p,b,{params:g(b.params),hash:_n(p.hash),redirectedFrom:void 0,href:w})}let O;if(_.path!=null)O=ne({},_,{path:ms(n,_.path,L.path).path});else{const p=ne({},_.params);for(const b in p)p[b]==null&&delete p[b];O=ne({},_,{params:h(p)}),L.params=h(L.params)}const V=t.resolve(O,L),Q=_.hash||"";V.params=u(g(V.params));const d=pc(s,ne({},_,{hash:uc(Q),path:V.path})),m=r.createHref(d);return ne({fullPath:d,hash:Q,query:s===Vr?Tc(_.query):_.query||{}},V,{redirectedFrom:void 0,href:m})}function D(_){return typeof _=="string"?ms(n,_,a.value.path):ne({},_)}function F(_,L){if(c!==_)return Zt(ge.NAVIGATION_CANCELLED,{from:L,to:_})}function j(_){return me(_)}function ee(_){return j(ne(D(_),{replace:!0}))}function ye(_,L){const O=_.matched[_.matched.length-1];if(O&&O.redirect){const{redirect:V}=O;let Q=typeof V=="function"?V(_,L):V;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=D(Q):{path:Q},Q.params={}),ne({query:_.query,hash:_.hash,params:Q.path!=null?{}:_.params},Q)}}function me(_,L){const O=c=$(_),V=a.value,Q=_.state,d=_.force,m=_.replace===!0,p=ye(O,V);if(p)return me(ne(D(p),{state:typeof p=="object"?ne({},Q,p.state):Q,force:d,replace:m}),L||O);const b=O;b.redirectedFrom=L;let w;return!d&&yc(s,V,O)&&(w=Zt(ge.NAVIGATION_DUPLICATED,{to:b,from:V}),Qe(V,V,!0,!1)),(w?Promise.resolve(w):Je(b,V)).catch(x=>at(x)?at(x,ge.NAVIGATION_GUARD_REDIRECT)?x:xt(x):te(x,b,V)).then(x=>{if(x){if(at(x,ge.NAVIGATION_GUARD_REDIRECT))return me(ne({replace:m},D(x.to),{state:typeof x.to=="object"?ne({},Q,x.to.state):Q,force:d}),L||b)}else x=Et(b,V,!0,m,Q);return vt(b,V,x),x})}function Ce(_,L){const O=F(_,L);return O?Promise.reject(O):Promise.resolve()}function yt(_){const L=Bt.values().next().value;return L&&typeof L.runWithContext=="function"?L.runWithContext(_):_()}function Je(_,L){let O;const[V,Q,d]=Ic(_,L);O=ps(V.reverse(),"beforeRouteLeave",_,L);for(const p of V)p.leaveGuards.forEach(b=>{O.push(Ct(b,_,L))});const m=Ce.bind(null,_,L);return O.push(m),Be(O).then(()=>{O=[];for(const p of o.list())O.push(Ct(p,_,L));return O.push(m),Be(O)}).then(()=>{O=ps(Q,"beforeRouteUpdate",_,L);for(const p of Q)p.updateGuards.forEach(b=>{O.push(Ct(b,_,L))});return O.push(m),Be(O)}).then(()=>{O=[];for(const p of d)if(p.beforeEnter)if(ze(p.beforeEnter))for(const b of p.beforeEnter)O.push(Ct(b,_,L));else O.push(Ct(p.beforeEnter,_,L));return O.push(m),Be(O)}).then(()=>(_.matched.forEach(p=>p.enterCallbacks={}),O=ps(d,"beforeRouteEnter",_,L,yt),O.push(m),Be(O))).then(()=>{O=[];for(const p of i.list())O.push(Ct(p,_,L));return O.push(m),Be(O)}).catch(p=>at(p,ge.NAVIGATION_CANCELLED)?p:Promise.reject(p))}function vt(_,L,O){l.list().forEach(V=>yt(()=>V(_,L,O)))}function Et(_,L,O,V,Q){const d=F(_,L);if(d)return d;const m=L===bt,p=Gt?history.state:{};O&&(V||m?r.replace(_.fullPath,ne({scroll:m&&p&&p.scroll},Q)):r.push(_.fullPath,Q)),a.value=_,Qe(_,L,O,m),xt()}let Ye;function en(){Ye||(Ye=r.listen((_,L,O)=>{if(!At.listening)return;const V=$(_),Q=ye(V,At.currentRoute.value);if(Q){me(ne(Q,{replace:!0,force:!0}),V).catch(mn);return}c=V;const d=a.value;Gt&&Rc(Fr(d.fullPath,O.delta),Zn()),Je(V,d).catch(m=>at(m,ge.NAVIGATION_ABORTED|ge.NAVIGATION_CANCELLED)?m:at(m,ge.NAVIGATION_GUARD_REDIRECT)?(me(ne(D(m.to),{force:!0}),V).then(p=>{at(p,ge.NAVIGATION_ABORTED|ge.NAVIGATION_DUPLICATED)&&!O.delta&&O.type===Ps.pop&&r.go(-1,!1)}).catch(mn),Promise.reject()):(O.delta&&r.go(-O.delta,!1),te(m,V,d))).then(m=>{m=m||Et(V,d,!1),m&&(O.delta&&!at(m,ge.NAVIGATION_CANCELLED)?r.go(-O.delta,!1):O.type===Ps.pop&&at(m,ge.NAVIGATION_ABORTED|ge.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),vt(V,d,m)}).catch(mn)}))}let Ft=rn(),be=rn(),ae;function te(_,L,O){xt(_);const V=be.list();return V.length?V.forEach(Q=>Q(_,L,O)):console.error(_),Promise.reject(_)}function it(){return ae&&a.value!==bt?Promise.resolve():new Promise((_,L)=>{Ft.add([_,L])})}function xt(_){return ae||(ae=!_,en(),Ft.list().forEach(([L,O])=>_?O(_):L()),Ft.reset()),_}function Qe(_,L,O,V){const{scrollBehavior:Q}=e;if(!Gt||!Q)return Promise.resolve();const d=!O&&Sc(Fr(_.fullPath,0))||(V||!O)&&history.state&&history.state.scroll||null;return So().then(()=>Q(_,L,d)).then(m=>m&&Cc(m)).catch(m=>te(m,_,L))}const Ne=_=>r.go(_);let Vt;const Bt=new Set,At={currentRoute:a,listening:!0,addRoute:y,removeRoute:S,clearRoutes:t.clearRoutes,hasRoute:B,getRoutes:P,resolve:$,options:e,push:j,replace:ee,go:Ne,back:()=>Ne(-1),forward:()=>Ne(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:be.add,isReady:it,install(_){_.component("RouterLink",Re),_.component("RouterView",ru),_.config.globalProperties.$router=At,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>N(a)}),Gt&&!Vt&&a.value===bt&&(Vt=!0,j(r.location).catch(V=>{}));const L={};for(const V in bt)Object.defineProperty(L,V,{get:()=>a.value[V],enumerable:!0});_.provide(Qs,At),_.provide(Xs,wo(L)),_.provide(Os,a);const O=_.unmount;Bt.add(_),_.unmount=function(){Bt.delete(_),Bt.size<1&&(c=bt,Ye&&Ye(),Ye=null,a.value=bt,Vt=!1,ae=!1),O()}}};function Be(_){return _.reduce((L,O)=>L.then(()=>yt(O)),Promise.resolve())}return At}function es(e){return $e(Xs)}const iu=["aria-label"],lu={key:0,class:"fas fa-moon text-purple-400"},au={key:1,class:"fas fa-sun text-yellow-500"},cu={__name:"ThemeToggle",setup(e){const t=ke(!1);jt(()=>{const r=localStorage.getItem("theme"),o=window.matchMedia("(prefers-color-scheme: dark)").matches;t.value=r==="dark"||!r&&o,n(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",i=>{localStorage.getItem("theme")||(t.value=i.matches,n())})}),Ue(t,()=>{n(),localStorage.setItem("theme",t.value?"dark":"light")});function n(){t.value?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}function s(){t.value=!t.value}return(r,o)=>(v(),k("button",{onClick:s,class:"p-2 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-700 transition","aria-label":t.value?"Switch to light mode":"Switch to dark mode"},[t.value?(v(),k("i",lu)):(v(),k("i",au))],8,iu))}},uu={class:"sticky top-0 z-50 glass shadow-modern"},fu={class:"container mx-auto px-4"},du={class:"flex items-center justify-between h-16"},hu={class:"hidden md:flex items-center space-x-6"},mu={class:"flex items-center space-x-4"},gu={key:0,class:"md:hidden py-4 border-t border-gray-200 dark:border-gray-700"},pu={class:"flex flex-col space-y-3"},yu={__name:"Navbar",setup(e){const t=es(),n=$e("globalData"),s=ke(!1),r=oe(()=>{var o;return((o=n.value)==null?void 0:o.Repositories)||[]});return(o,i)=>(v(),k("nav",uu,[f("div",fu,[f("div",du,[M(N(Re),{to:"/",class:"flex items-center space-x-2"},{default:Z(()=>[...i[4]||(i[4]=[f("i",{class:"fas fa-rocket text-2xl gradient-text"},null,-1),f("span",{class:"text-xl font-bold gradient-text"},"Git Velocity",-1)])]),_:1}),f("div",hu,[M(N(Re),{to:"/",class:J(N(t).path==="/"?"nav-link-active":"nav-link")},{default:Z(()=>[...i[5]||(i[5]=[ce(" Dashboard ",-1)])]),_:1},8,["class"]),M(N(Re),{to:"/leaderboard",class:J(N(t).path==="/leaderboard"?"nav-link-active":"nav-link")},{default:Z(()=>[...i[6]||(i[6]=[ce(" Leaderboard ",-1)])]),_:1},8,["class"]),(v(!0),k(Y,null,xe(r.value,l=>(v(),ie(N(Re),{key:`${l.Owner}/${l.Name}`,to:`/repos/${l.Owner}/${l.Name}`,class:J(N(t).path.includes(`/repos/${l.Owner}/${l.Name}`)?"nav-link-active":"nav-link")},{default:Z(()=>[ce(R(l.Name),1)]),_:2},1032,["to","class"]))),128))]),f("div",mu,[M(cu),f("button",{onClick:i[0]||(i[0]=l=>s.value=!s.value),class:"md:hidden p-2 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-700 transition"},[...i[7]||(i[7]=[f("i",{class:"fas fa-bars text-gray-700 dark:text-gray-200"},null,-1)])])])]),s.value?(v(),k("div",gu,[f("div",pu,[M(N(Re),{to:"/",onClick:i[1]||(i[1]=l=>s.value=!1),class:J(N(t).path==="/"?"nav-link-active":"nav-link")},{default:Z(()=>[...i[8]||(i[8]=[ce(" Dashboard ",-1)])]),_:1},8,["class"]),M(N(Re),{to:"/leaderboard",onClick:i[2]||(i[2]=l=>s.value=!1),class:J(N(t).path==="/leaderboard"?"nav-link-active":"nav-link")},{default:Z(()=>[...i[9]||(i[9]=[ce(" Leaderboard ",-1)])]),_:1},8,["class"]),(v(!0),k(Y,null,xe(r.value,l=>(v(),ie(N(Re),{key:`${l.Owner}/${l.Name}`,to:`/repos/${l.Owner}/${l.Name}`,onClick:i[3]||(i[3]=a=>s.value=!1),class:J(N(t).path.includes(`/repos/${l.Owner}/${l.Name}`)?"nav-link-active":"nav-link")},{default:Z(()=>[ce(R(l.Name),1)]),_:2},1032,["to","class"]))),128))])])):W("",!0)])]))}},vu={class:"py-8 px-4 mt-16 border-t border-gray-200 dark:border-gray-700"},xu={class:"container mx-auto text-center"},bu={key:0,class:"text-sm text-gray-400 dark:text-gray-500 mt-2"},_u={__name:"Footer",setup(e){const t=$e("globalData"),n=oe(()=>{var s;return(s=t.value)!=null&&s.GeneratedAt?new Date(t.value.GeneratedAt).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):""});return(s,r)=>(v(),k("footer",vu,[f("div",xu,[r[0]||(r[0]=f("p",{class:"text-gray-500 dark:text-gray-400"},[ce(" Generated by "),f("a",{href:"https://github.com/lukaszraczylo/git-velocity",class:"text-primary-500 hover:text-primary-600",target:"_blank",rel:"noopener noreferrer"}," Git Velocity ")],-1)),n.value?(v(),k("p",bu,R(n.value),1)):W("",!0)])]))}},wu={class:"min-h-screen flex flex-col"},ku={class:"flex-1"},Cu={key:0,class:"flex items-center justify-center min-h-[60vh]"},Ru={key:1,class:"flex items-center justify-center min-h-[60vh]"},Su={class:"text-center"},Eu={class:"text-gray-600 dark:text-gray-400"},Au={__name:"App",setup(e){const t=ke(null),n=ke(!0),s=ke(null);return dn("globalData",t),jt(async()=>{try{const r=await fetch("./data/global.json");if(!r.ok)throw new Error("Failed to load data");t.value=await r.json()}catch(r){s.value=r.message}finally{n.value=!1}}),(r,o)=>{const i=Nl("router-view");return v(),k("div",wu,[M(yu),f("main",ku,[n.value?(v(),k("div",Cu,[...o[0]||(o[0]=[f("div",{class:"text-center"},[f("i",{class:"fas fa-spinner fa-spin text-4xl text-primary-500 mb-4"}),f("p",{class:"text-gray-600 dark:text-gray-400"},"Loading dashboard...")],-1)])])):s.value?(v(),k("div",Ru,[f("div",Su,[o[1]||(o[1]=f("i",{class:"fas fa-exclamation-triangle text-4xl text-red-500 mb-4"},null,-1)),f("p",Eu,R(s.value),1)])])):(v(),ie(i,{key:2}))]),M(_u)])}}};function z(e){return e==null?"0":e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function $u(e){return e==null?"-":e<1?Math.round(e*60)+"m":e<24?e.toFixed(1)+"h":(e/24).toFixed(1)+"d"}function ys(e){return e?new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):""}function Pu(e){return e==null?"0%":e.toFixed(1)+"%"}function ki(e){return e?e.toLowerCase().replace(/\s+/g,"-").replace(/_/g,"-").replace(/[^a-z0-9-]/g,""):""}const Tu={class:"flex items-center justify-between"},Ou={class:"text-sm text-gray-500 dark:text-gray-400 mt-1"},_e={__name:"StatCard",props:{value:{type:[Number,String],required:!0},label:{type:String,required:!0},icon:{type:String,default:""},iconColor:{type:String,default:"text-gray-500"},valueClass:{type:String,default:"gradient-text"},delay:{type:String,default:"0s"}},setup(e){return(t,n)=>(v(),k("div",{class:"card animate-fade-in-up",style:St({animationDelay:e.delay})},[f("div",Tu,[f("div",null,[f("div",{class:J(["text-3xl font-bold",e.valueClass])},R(typeof e.value=="number"?N(z)(e.value):e.value),3),f("div",Ou,R(e.label),1)]),e.icon?(v(),k("div",{key:0,class:J(["text-3xl opacity-50",e.iconColor])},[f("i",{class:J(e.icon)},null,2)],2)):W("",!0)])],4))}},Iu=["src","alt"],Sn={__name:"Avatar",props:{src:{type:String,default:""},name:{type:String,required:!0},size:{type:String,default:"md"}},setup(e){const t=e,n={sm:"w-8 h-8 text-xs",md:"w-10 h-10 text-sm",lg:"w-14 h-14 text-xl",xl:"w-16 h-16 text-2xl","2xl":"w-32 h-32 text-4xl"},s=oe(()=>t.name.charAt(0).toUpperCase()),r=oe(()=>n[t.size]||n.md);return(o,i)=>e.src?(v(),k("img",{key:0,src:e.src,alt:e.name,class:J([r.value,"rounded-full"])},null,10,Iu)):(v(),k("div",{key:1,class:J([r.value,"rounded-full bg-gradient-to-br from-primary-500 to-accent-500 flex items-center justify-center text-white font-bold"])},R(s.value),3))}},Ci={__name:"RankBadge",props:{rank:{type:Number,required:!0},size:{type:String,default:"md"}},setup(e){const t=e,n={sm:"w-6 h-6 text-xs",md:"w-8 h-8 text-sm"},s=oe(()=>t.rank===1?"rank-1":t.rank===2?"rank-2":t.rank===3?"rank-3":"bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-300"),r=oe(()=>n[t.size]||n.md);return(o,i)=>(v(),k("span",{class:J([[r.value,s.value,{"text-white":e.rank<=3}],"inline-flex items-center justify-center rounded-full font-bold"])},R(e.rank),3))}},Nu={class:"inline-flex flex-col items-center gap-2"},Mu=["title"],Du={class:"absolute bottom-full left-1/2 -translate-x-1/2 mb-3 px-3 py-2 bg-gray-900 dark:bg-gray-800 text-white text-xs rounded-xl opacity-0 group-hover/badge:opacity-100 transition-all duration-200 pointer-events-none whitespace-nowrap z-50 shadow-xl border border-white/10"},Lu={class:"font-bold text-sm"},ju={class:"text-gray-300 text-[11px] mt-0.5"},Fu={key:0,class:"text-[11px] font-medium text-gray-600 dark:text-gray-400 text-center leading-tight",style:{"max-width":"72px","word-wrap":"break-word"}},wn={__name:"AchievementBadge",props:{achievementId:{type:String,required:!0},size:{type:String,default:"md"},showLabel:{type:Boolean,default:!1}},setup(e){const t={1:"from-stone-400 to-stone-500",2:"from-green-400 to-emerald-500",3:"from-blue-400 to-indigo-500",4:"from-purple-400 to-violet-500",5:"from-yellow-400 to-amber-500",6:"from-orange-400 to-red-500",7:"from-red-500 to-rose-600",8:"from-pink-500 to-fuchsia-600",9:"from-cyan-400 to-teal-500",10:"from-emerald-400 to-cyan-500",11:"from-violet-500 to-purple-600"},n=l=>{const a=[1,10,25,50,100,250,500,1e3,5e3,1e4,25e3];for(let c=a.length-1;c>=0;c--)if(l>=a[c])return c+1;return 1},s=l=>{const a=l.match(/(\d+)$/);return a?parseInt(a[1],10):l==="first-commit"||l==="pr-opener"||l==="reviewer"?1:50},r={"first-commit":{name:"Hello World",description:"Made your first commit",icon:"fa-baby"},"commit-10":{name:"Seedling",description:"Made 10 commits",icon:"fa-seedling"},"commit-25":{name:"Momentum",description:"Made 25 commits",icon:"fa-wind"},"commit-50":{name:"Trailblazer",description:"Made 50 commits",icon:"fa-hiking"},"commit-100":{name:"Centurion",description:"Made 100 commits",icon:"fa-shield-halved"},"commit-250":{name:"Relentless",description:"Made 250 commits",icon:"fa-bolt-lightning"},"commit-500":{name:"Unstoppable",description:"Made 500 commits",icon:"fa-meteor"},"commit-1000":{name:"Grandmaster",description:"Made 1000 commits",icon:"fa-chess-king"},"commit-5000":{name:"Titan",description:"Made 5000 commits",icon:"fa-mountain-sun"},"commit-10000":{name:"Immortal",description:"Made 10000 commits",icon:"fa-dragon"},"commit-25000":{name:"Ascended",description:"Made 25000 commits",icon:"fa-infinity"},"pr-opener":{name:"First Blood",description:"Opened your first pull request",icon:"fa-flag-checkered"},"pr-10":{name:"Collaborator",description:"Opened 10 pull requests",icon:"fa-handshake"},"pr-25":{name:"Integrator",description:"Opened 25 pull requests",icon:"fa-code-branch"},"pr-50":{name:"Architect",description:"Opened 50 pull requests",icon:"fa-building"},"pr-100":{name:"Vanguard",description:"Opened 100 pull requests",icon:"fa-rocket"},reviewer:{name:"Watchful Eye",description:"Reviewed your first pull request",icon:"fa-eye"},"reviewer-10":{name:"Sentinel",description:"Reviewed 10 pull requests",icon:"fa-shield"},"reviewer-25":{name:"Gatekeeper",description:"Reviewed 25 pull requests",icon:"fa-dungeon"},"reviewer-50":{name:"Oracle",description:"Reviewed 50 pull requests",icon:"fa-hat-wizard"},"reviewer-100":{name:"Sage",description:"Reviewed 100 pull requests",icon:"fa-book-skull"},"speed-demon":{name:"Lightning Rod",description:"Average review response under 1 hour",icon:"fa-bolt"},"quick-responder":{name:"Flash",description:"Average review response under 4 hours",icon:"fa-gauge-high"},commentator:{name:"Wordsmith",description:"Left 50 PR review comments",icon:"fa-feather-pointed"},"lines-1000":{name:"Scribe",description:"Added 1000 lines of code",icon:"fa-scroll"},"lines-10000":{name:"Novelist",description:"Added 10000 lines of code",icon:"fa-book"},"lines-100000":{name:"Encyclopedia",description:"Added 100000 lines of code",icon:"fa-landmark"},cleaner:{name:"Pruner",description:"Deleted 1000 lines of code",icon:"fa-scissors"},refactorer:{name:"Surgeon",description:"Deleted 10000 lines of code",icon:"fa-syringe"},annihilator:{name:"Annihilator",description:"Deleted 100000 lines of code",icon:"fa-explosion"},"multi-repo":{name:"Nomad",description:"Contributed to 5 repositories",icon:"fa-compass"},"multi-repo-10":{name:"Explorer",description:"Contributed to 10 repositories",icon:"fa-map"},"team-player":{name:"Ambassador",description:"Reviewed PRs from 10 different contributors",icon:"fa-users"},"team-player-25":{name:"Diplomat",description:"Reviewed PRs from 25 different contributors",icon:"fa-globe"},"big-pr":{name:"Heavyweight",description:"Merged a PR with 1000+ lines",icon:"fa-dumbbell"},"mega-pr":{name:"Colossus",description:"Merged a PR with 5000+ lines",icon:"fa-monument"},"small-pr-10":{name:"Minimalist",description:"Merged 10 PRs under 100 lines",icon:"fa-compress"},"small-pr-50":{name:"Atomic",description:"Merged 50 PRs under 100 lines",icon:"fa-atom"},"perfect-pr-5":{name:"Sharpshooter",description:"5 PRs merged without changes requested",icon:"fa-bullseye"},"perfect-pr-25":{name:"Perfectionist",description:"25 PRs merged without changes requested",icon:"fa-gem"},"perfect-pr-100":{name:"Immaculate",description:"100 PRs merged without changes requested",icon:"fa-crown"},"streak-7":{name:"Hot Streak",description:"7 day contribution streak",icon:"fa-fire"},"streak-30":{name:"Ironclad",description:"30 day contribution streak",icon:"fa-link"},"streak-90":{name:"Unbreakable",description:"90 day contribution streak",icon:"fa-diamond"},"early-bird":{name:"Dawn Patrol",description:"50 commits before 9am",icon:"fa-sun"},"night-owl":{name:"Nighthawk",description:"50 commits after 9pm",icon:"fa-moon"},nosferatu:{name:"Vampire",description:"25 commits between midnight and 4am",icon:"fa-ghost"},"weekend-warrior":{name:"No Days Off",description:"25 weekend commits",icon:"fa-calendar-xmark"},"active-30":{name:"Reliable",description:"Active on 30 different days",icon:"fa-calendar-check"},"active-100":{name:"Stalwart",description:"Active on 100 different days",icon:"fa-tower-observation"},"active-365":{name:"Eternal",description:"Active on 365 different days",icon:"fa-sun-plant-wilt"}},o=l=>{const a=r[l]||{name:l,description:"",icon:"fa-medal"},c=s(l),u=n(c),h=t[u]||"from-gray-400 to-gray-500";return{...a,gradient:h,tier:u,threshold:c}},i={sm:{wrapper:"w-9 h-9",icon:"text-sm",radius:"rounded-lg"},md:{wrapper:"w-11 h-11",icon:"text-base",radius:"rounded-xl"},lg:{wrapper:"w-14 h-14",icon:"text-lg",radius:"rounded-xl"}};return(l,a)=>(v(),k("div",Nu,[f("div",{class:"relative group/badge",title:o(e.achievementId).name},[f("div",{class:J(["flex items-center justify-center bg-gradient-to-br shadow-lg hover:scale-105 hover:shadow-xl transition-all duration-200 cursor-pointer",[i[e.size].wrapper,i[e.size].radius,o(e.achievementId).gradient]])},[f("i",{class:J(["fas text-white drop-shadow-sm",[o(e.achievementId).icon,i[e.size].icon]])},null,2)],2),f("div",Du,[f("div",Lu,R(o(e.achievementId).name),1),f("div",ju,R(o(e.achievementId).description),1),a[0]||(a[0]=f("div",{class:"absolute top-full left-1/2 -translate-x-1/2 border-[6px] border-transparent border-t-gray-900 dark:border-t-gray-800"},null,-1))])],8,Mu),e.showLabel?(v(),k("span",Fu,R(o(e.achievementId).name),1)):W("",!0)]))}},Vu={class:"flex items-center space-x-4"},Bu={class:"relative"},Hu={class:"flex-1"},Uu={class:"font-semibold text-gray-800 dark:text-white group-hover:text-primary-500 transition-colors"},Gu={class:"text-sm text-gray-500 dark:text-gray-400"},qu={key:0,class:"text-xs text-accent-500"},Ku={class:"text-right"},Wu={class:"text-2xl font-bold gradient-text"},zu={key:0,class:"mt-4 flex flex-wrap gap-1.5"},Ju={key:0,class:"inline-flex items-center justify-center w-8 h-8 rounded-lg bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-300 text-xs font-bold"},Yu={__name:"ContributorCard",props:{contributor:{type:Object,required:!0},rank:{type:Number,default:0},showRank:{type:Boolean,default:!0},featured:{type:Boolean,default:!1}},setup(e){return(t,n)=>(v(),ie(N(Re),{to:{name:"contributor",params:{login:e.contributor.login}},class:J(["card animate-fade-in-up block cursor-pointer hover:shadow-lg transition-shadow",e.featured&&e.rank===1?"ring-2 ring-yellow-400":""])},{default:Z(()=>{var s,r;return[f("div",Vu,[f("div",Bu,[M(Sn,{src:e.contributor.avatar_url,name:e.contributor.login,size:e.featured?"xl":"lg"},null,8,["src","name","size"]),e.showRank&&e.rank>0?(v(),ie(Ci,{key:0,rank:e.rank,size:"sm",class:"absolute -top-1 -right-1"},null,8,["rank"])):W("",!0)]),f("div",Hu,[f("h3",Uu,R(e.contributor.name||e.contributor.login),1),f("p",Gu,[f("span",{class:"hover:text-primary-500 transition-colors",onClick:n[0]||(n[0]=Js(o=>t.window.open(`https://github.com/${e.contributor.login}`,"_blank"),["stop","prevent"]))},[ce(" @"+R(e.contributor.login)+" ",1),n[1]||(n[1]=f("i",{class:"fas fa-external-link-alt text-xs ml-0.5 opacity-50"},null,-1))])]),e.contributor.team?(v(),k("p",qu,R(e.contributor.team),1)):W("",!0)]),f("div",Ku,[f("div",Wu,R(N(z)(((s=e.contributor.score)==null?void 0:s.total)||e.contributor.score||0)),1),n[2]||(n[2]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"points",-1))])]),(r=e.contributor.achievements)!=null&&r.length?(v(),k("div",zu,[(v(!0),k(Y,null,xe(e.contributor.achievements.slice(0,6),o=>(v(),ie(wn,{key:o,"achievement-id":o,size:"sm"},null,8,["achievement-id"]))),128)),e.contributor.achievements.length>6?(v(),k("span",Ju," +"+R(e.contributor.achievements.length-6),1)):W("",!0)])):W("",!0)]}),_:1},8,["to","class"]))}},Qu={class:"flex items-center justify-between mb-4"},Xu={class:"font-semibold text-gray-800 dark:text-white group-hover:text-primary-500 transition"},Zu={class:"text-sm text-gray-500 dark:text-gray-400 mb-4"},ef={class:"grid grid-cols-3 gap-4 text-center"},tf={class:"text-lg font-semibold text-gray-800 dark:text-white"},nf={class:"text-lg font-semibold text-gray-800 dark:text-white"},sf={class:"text-lg font-semibold text-gray-800 dark:text-white"},rf={__name:"RepoCard",props:{repo:{type:Object,required:!0}},setup(e){return(t,n)=>(v(),ie(N(Re),{to:`/repos/${e.repo.owner}/${e.repo.name}`,class:"card hover:shadow-lg transition group"},{default:Z(()=>[f("div",Qu,[f("h3",Xu,R(e.repo.name),1),n[0]||(n[0]=f("i",{class:"fas fa-arrow-right text-gray-400 group-hover:text-primary-500 transition"},null,-1))]),f("p",Zu,R(e.repo.owner)+"/"+R(e.repo.name),1),f("div",ef,[f("div",null,[f("div",tf,R(N(z)(e.repo.total_commits)),1),n[1]||(n[1]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Commits",-1))]),f("div",null,[f("div",nf,R(N(z)(e.repo.total_prs)),1),n[2]||(n[2]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"PRs",-1))]),f("div",null,[f("div",sf,R(e.repo.active_contributors),1),n[3]||(n[3]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Contributors",-1))])])]),_:1},8,["to"]))}},of={class:"flex items-center justify-between mb-4"},lf={class:"font-semibold text-gray-800 dark:text-white group-hover:text-primary-500 transition"},af={class:"flex items-center space-x-2 mb-4"},cf={key:0,class:"w-8 h-8 rounded-full bg-gray-200 dark:bg-gray-700 flex items-center justify-center text-gray-600 dark:text-gray-300 text-xs font-bold"},uf={class:"grid grid-cols-2 gap-4 text-center"},ff={class:"text-lg font-semibold gradient-text"},df={class:"text-lg font-semibold text-gray-800 dark:text-white"},hf={__name:"TeamCard",props:{team:{type:Object,required:!0}},setup(e){return(t,n)=>(v(),ie(N(Re),{to:`/teams/${N(ki)(e.team.name)}`,class:"card hover:shadow-lg transition group"},{default:Z(()=>{var s,r;return[f("div",of,[f("h3",lf,R(e.team.name),1),f("span",{class:"w-3 h-3 rounded-full",style:St({backgroundColor:e.team.color||"#8b5cf6"})},null,4)]),f("div",af,[(v(!0),k(Y,null,xe((e.team.members||[]).slice(0,5),(o,i)=>(v(),ie(Sn,{key:o,name:o,size:"sm"},null,8,["name"]))),128)),(((s=e.team.members)==null?void 0:s.length)||0)>5?(v(),k("span",cf," +"+R(e.team.members.length-5),1)):W("",!0)]),f("div",uf,[f("div",null,[f("div",ff,R(N(z)(e.team.total_score)),1),n[0]||(n[0]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Total Score",-1))]),f("div",null,[f("div",df,R(((r=e.team.members)==null?void 0:r.length)||0),1),n[1]||(n[1]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Members",-1))])])]}),_:1},8,["to"]))}},mf={class:"text-2xl font-bold text-gray-800 dark:text-white mb-6"},It={__name:"SectionHeader",props:{title:{type:String,required:!0},icon:{type:String,default:""},iconColor:{type:String,default:"text-primary-500"}},setup(e){return(t,n)=>(v(),k("h2",mf,[e.icon?(v(),k("i",{key:0,class:J([[e.icon,e.iconColor],"mr-2"])},null,2)):W("",!0),ce(R(e.title)+" ",1),Dt(t.$slots,"suffix")]))}},gf=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},pf={key:0,class:"flex items-center justify-center h-full"},yf={__name:"VelocityChart",props:{timeline:{type:Object,required:!0},height:{type:String,default:"300px"},showScore:{type:Boolean,default:!1}},setup(e){rr.register(...$i);const t=e,n=ke(null);let s=null;const r=oe(()=>{var c;return(c=t.timeline)!=null&&c.series?t.timeline.series.filter(u=>t.showScore||u.name!=="Score"):[]}),o=oe(()=>{var c;return!((c=t.timeline)!=null&&c.labels)||!r.value.length?{labels:[],datasets:[]}:{labels:t.timeline.labels,datasets:r.value.map(u=>({label:u.name,data:u.data,borderColor:u.color,backgroundColor:u.color+"20",fill:!0,tension:.4,pointRadius:3,pointHoverRadius:5}))}}),i={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",labels:{usePointStyle:!0,padding:20,font:{size:12}}},tooltip:{backgroundColor:"rgba(0, 0, 0, 0.8)",padding:12,titleFont:{size:14},bodyFont:{size:13},callbacks:{label:c=>`${c.dataset.label}: ${c.parsed.y.toLocaleString()}`}}},scales:{x:{grid:{display:!1},ticks:{font:{size:11}}},y:{beginAtZero:!0,grid:{color:"rgba(0, 0, 0, 0.05)"},ticks:{font:{size:11},callback:c=>c>=1e3?(c/1e3).toFixed(1)+"k":c}}}};function l(){if(!n.value||!o.value.labels.length)return;s&&s.destroy();const c=n.value.getContext("2d");s=new rr(c,{type:"line",data:o.value,options:i})}function a(){s?(s.data=o.value,s.update()):l()}return jt(()=>{l()}),Ue(()=>t.timeline,()=>{a()},{deep:!0}),Ue(()=>t.showScore,()=>{a()}),(c,u)=>{var h,g;return v(),k("div",{class:"velocity-chart",style:St({height:e.height})},[f("canvas",{ref_key:"chartRef",ref:n},null,512),(g=(h=e.timeline)==null?void 0:h.labels)!=null&&g.length?W("",!0):(v(),k("div",pf,[...u[0]||(u[0]=[f("p",{class:"text-gray-400"},"No velocity data available",-1)])]))],4)}}},vf=gf(yf,[["__scopeId","data-v-401bbb13"]]),xf={class:"py-16 px-4"},bf={class:"container mx-auto text-center animate-fade-in-up"},_f={class:"flex flex-col items-center space-y-2 mt-4 text-sm text-gray-500 dark:text-gray-400"},wf={key:0},kf={key:0},Cf={key:1},Rf={key:2},Sf={key:1},Ef={key:0,class:"py-8 px-4"},Af={class:"container mx-auto"},$f={class:"card"},Pf={class:"flex items-center justify-between mb-6"},Tf={class:"flex items-center space-x-2 text-sm text-gray-600 dark:text-gray-400 cursor-pointer"},Of={class:"py-8 px-4"},If={class:"container mx-auto"},Nf={class:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4"},Mf={class:"py-8 px-4"},Df={class:"container mx-auto"},Lf={class:"grid md:grid-cols-3 gap-6"},jf={class:"mt-6 text-center"},Ff={class:"py-8 px-4"},Vf={class:"container mx-auto"},Bf={class:"grid md:grid-cols-2 lg:grid-cols-3 gap-6"},Hf={key:1,class:"py-8 px-4"},Uf={class:"container mx-auto"},Gf={class:"grid md:grid-cols-2 lg:grid-cols-3 gap-6"},qf={__name:"Dashboard",setup(e){const t=$e("globalData"),n=oe(()=>t.value||{}),s=oe(()=>{var a;return((a=n.value.leaderboard)==null?void 0:a.slice(0,3))||[]}),r=oe(()=>n.value.repositories||[]),o=oe(()=>n.value.teams||[]),i=oe(()=>n.value.velocity_timeline),l=ke(!1);return(a,c)=>{var u,h;return v(),k("div",null,[f("header",xf,[f("div",bf,[c[4]||(c[4]=f("h1",{class:"text-4xl md:text-6xl font-bold mb-4"},[f("span",{class:"gradient-text"},"Git Velocity")],-1)),c[5]||(c[5]=f("p",{class:"text-xl text-gray-600 dark:text-gray-300 max-w-2xl mx-auto"}," Celebrate your team's achievements and contributions with beautiful insights. ",-1)),f("div",_f,[(u=n.value.period)!=null&&u.start||(h=n.value.period)!=null&&h.end?(v(),k("p",wf,[c[1]||(c[1]=f("i",{class:"fas fa-calendar-alt mr-1 text-primary-500"},null,-1)),c[2]||(c[2]=f("span",{class:"font-medium"},"Period:",-1)),n.value.period.start?(v(),k("span",kf,R(N(ys)(n.value.period.start)),1)):W("",!0),n.value.period.start&&n.value.period.end?(v(),k("span",Cf," — ")):W("",!0),n.value.period.end?(v(),k("span",Rf,R(N(ys)(n.value.period.end)),1)):W("",!0)])):W("",!0),n.value.generated_at?(v(),k("p",Sf,[c[3]||(c[3]=f("i",{class:"fas fa-clock mr-1"},null,-1)),ce(" Generated on "+R(N(ys)(n.value.generated_at)),1)])):W("",!0)])])]),i.value?(v(),k("section",Ef,[f("div",Af,[f("div",$f,[f("div",Pf,[M(It,{title:"Velocity Timeline",icon:"fas fa-chart-line","icon-color":"text-primary-500"}),f("label",Tf,[xl(f("input",{type:"checkbox","onUpdate:modelValue":c[0]||(c[0]=g=>l.value=g),class:"rounded border-gray-300 text-primary-500 focus:ring-primary-500"},null,512),[[qa,l.value]]),c[6]||(c[6]=f("span",null,"Show Score",-1))])]),M(vf,{timeline:i.value,"show-score":l.value,height:"320px"},null,8,["timeline","show-score"])])])])):W("",!0),f("section",Of,[f("div",If,[f("div",Nf,[M(_e,{value:n.value.total_contributors||0,label:"Contributors",delay:"0s"},null,8,["value"]),M(_e,{value:n.value.total_commits||0,label:"Commits",delay:"0.1s"},null,8,["value"]),M(_e,{value:n.value.total_prs||0,label:"Pull Requests",delay:"0.2s"},null,8,["value"]),M(_e,{value:n.value.total_reviews||0,label:"Reviews",delay:"0.3s"},null,8,["value"]),M(_e,{value:"+"+N(z)(n.value.total_lines_added||0),label:"Lines Added","value-class":"text-green-500",delay:"0.4s"},null,8,["value"]),M(_e,{value:"-"+N(z)(n.value.total_lines_deleted||0),label:"Lines Deleted","value-class":"text-red-500",delay:"0.5s"},null,8,["value"])])])]),f("section",Mf,[f("div",Df,[M(It,{title:"Top Contributors",icon:"fas fa-trophy","icon-color":"text-yellow-500"}),f("div",Lf,[(v(!0),k(Y,null,xe(s.value,(g,y)=>(v(),ie(Yu,{key:g.login,contributor:g,rank:y+1,featured:""},null,8,["contributor","rank"]))),128))]),f("div",jf,[M(N(Re),{to:"/leaderboard",class:"btn-primary"},{default:Z(()=>[...c[7]||(c[7]=[ce(" View Full Leaderboard ",-1),f("i",{class:"fas fa-arrow-right ml-2"},null,-1)])]),_:1})])])]),f("section",Ff,[f("div",Vf,[M(It,{title:"Repositories",icon:"fas fa-code-branch","icon-color":"text-accent-500"}),f("div",Bf,[(v(!0),k(Y,null,xe(r.value,g=>(v(),ie(rf,{key:`${g.owner}/${g.name}`,repo:g},null,8,["repo"]))),128))])])]),o.value.length?(v(),k("section",Hf,[f("div",Uf,[M(It,{title:"Teams",icon:"fas fa-users","icon-color":"text-blue-500"}),f("div",Gf,[(v(!0),k(Y,null,xe(o.value,g=>(v(),ie(hf,{key:g.name,team:g},null,8,["team"]))),128))])])])):W("",!0)])}}},Kf={class:"flex items-center space-x-2 text-sm text-gray-500 dark:text-gray-400 mb-6"},Wf={key:2,class:"fas fa-chevron-right text-xs"},zf={__name:"Breadcrumb",props:{items:{type:Array,required:!0}},setup(e){return(t,n)=>(v(),k("div",Kf,[(v(!0),k(Y,null,xe(e.items,(s,r)=>(v(),k(Y,{key:r},[s.to?(v(),ie(N(Re),{key:0,to:s.to,class:"hover:text-primary-500"},{default:Z(()=>[ce(R(s.label),1)]),_:2},1032,["to"])):(v(),k("span",{key:1,class:J(r===e.items.length-1?"text-gray-800 dark:text-white":"")},R(s.label),3)),r<e.items.length-1?(v(),k("i",Wf)):W("",!0)],64))),128))]))}},Jf={class:"py-12 px-4"},Yf={class:"text-4xl font-bold mb-4"},Qf={class:"gradient-text"},Xf={key:1,class:"text-gray-600 dark:text-gray-300"},ts={__name:"PageHeader",props:{title:{type:String,required:!0},subtitle:{type:String,default:""},icon:{type:String,default:""},iconColor:{type:String,default:"text-primary-500"},breadcrumbs:{type:Array,default:()=>[]},centered:{type:Boolean,default:!1}},setup(e){return(t,n)=>(v(),k("header",Jf,[f("div",{class:J(["container mx-auto",{"text-center":e.centered}])},[e.breadcrumbs.length?(v(),ie(zf,{key:0,items:e.breadcrumbs},null,8,["items"])):W("",!0),f("div",{class:J(["flex items-center",e.centered?"justify-center":""])},[Dt(t.$slots,"prefix"),f("h1",Yf,[e.icon?(v(),k("i",{key:0,class:J([[e.icon,e.iconColor],"mr-3"])},null,2)):W("",!0),f("span",Qf,R(e.title),1)])],2),e.subtitle||t.$slots.subtitle?(v(),k("p",Xf,[Dt(t.$slots,"subtitle",{},()=>[ce(R(e.subtitle),1)])])):W("",!0),Dt(t.$slots,"extra")],2)]))}},Zf={class:"card overflow-hidden p-0"},ed={class:"w-full"},td={class:"bg-gray-50 dark:bg-gray-800/50"},nd={class:"divide-y divide-gray-200 dark:divide-gray-700"},sd=["onClick"],rd={key:0,class:"text-center py-12"},od={class:"text-gray-500 dark:text-gray-400"},Ri={__name:"DataTable",props:{columns:{type:Array,required:!0},items:{type:Array,default:()=>[]},emptyIcon:{type:String,default:"fas fa-inbox"},emptyMessage:{type:String,default:"No data found"},rowClass:{type:String,default:"hover:bg-gray-50 dark:hover:bg-gray-800/30 transition"},clickableRows:{type:Boolean,default:!1}},emits:["row-click"],setup(e){const t=n=>{switch(n){case"center":return"text-center";case"right":return"text-right";default:return"text-left"}};return(n,s)=>(v(),k("div",Zf,[f("table",ed,[f("thead",td,[f("tr",null,[(v(!0),k(Y,null,xe(e.columns,r=>(v(),k("th",{key:r.key,class:J(["px-6 py-4 text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider",t(r.align),r.headerClass])},R(r.label),3))),128))])]),f("tbody",nd,[(v(!0),k(Y,null,xe(e.items,(r,o)=>(v(),k("tr",{key:r.id||r.login||o,class:J([e.rowClass,{"cursor-pointer":e.clickableRows}]),onClick:i=>e.clickableRows&&n.$emit("row-click",r)},[(v(!0),k(Y,null,xe(e.columns,i=>(v(),k("td",{key:i.key,class:J(["px-6 py-4",t(i.align),i.class])},[Dt(n.$slots,i.key,{item:r,index:o},()=>[ce(R(r[i.key]),1)])],2))),128))],10,sd))),128))])]),e.items.length?W("",!0):(v(),k("div",rd,[f("i",{class:J([e.emptyIcon,"text-4xl text-gray-300 dark:text-gray-600 mb-4"])},null,2),f("p",od,R(e.emptyMessage),1)]))]))}},id={class:"font-medium text-gray-800 dark:text-white group-hover:text-primary-500 transition-colors"},ld={class:"text-sm"},ad=["href"],cd={key:1,class:"text-gray-500 dark:text-gray-400"},Si={__name:"ContributorRow",props:{contributor:{type:Object,required:!0},showGithubLink:{type:Boolean,default:!1},columns:{type:Array,default:()=>["commits","prs","reviews","lines","score"]}},setup(e){return(t,n)=>(v(),ie(N(Re),{to:{name:"contributor",params:{login:e.contributor.login}},class:"flex items-center space-x-3"},{default:Z(()=>[M(Sn,{src:e.contributor.avatar_url,name:e.contributor.login,class:"ring-2 ring-transparent group-hover:ring-primary-500 transition-all"},null,8,["src","name"]),f("div",null,[f("div",id,R(e.contributor.name||e.contributor.login),1),f("div",ld,[e.showGithubLink?(v(),k("a",{key:0,href:`https://github.com/${e.contributor.login}`,target:"_blank",rel:"noopener noreferrer",class:"text-gray-500 dark:text-gray-400 hover:text-primary-500 transition-colors",onClick:n[0]||(n[0]=Js(()=>{},["stop"]))},[ce(" @"+R(e.contributor.login)+" ",1),n[1]||(n[1]=f("i",{class:"fas fa-external-link-alt text-xs ml-1 opacity-50"},null,-1))],8,ad)):(v(),k("span",cd," @"+R(e.contributor.login),1))])])]),_:1},8,["to"]))}},ud={class:"py-8 px-4"},fd={class:"container mx-auto max-w-5xl"},dd={class:"flex flex-wrap gap-1.5 max-w-[180px]"},hd={key:0,class:"text-gray-400 text-sm"},md={class:"hidden md:table-cell"},gd={key:0,class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-purple-100 dark:bg-purple-900/30 text-purple-800 dark:text-purple-300"},pd={key:1,class:"text-gray-400"},yd={class:"hidden sm:table-cell"},vd={key:0,class:"text-sm text-gray-600 dark:text-gray-300"},xd={key:1,class:"text-gray-400"},bd={class:"text-lg font-bold gradient-text"},_d={__name:"Leaderboard",setup(e){const t=$e("globalData"),n=oe(()=>{var o;return((o=t.value)==null?void 0:o.leaderboard)||[]}),s=[{key:"rank",label:"Rank",align:"left"},{key:"contributor",label:"Contributor",align:"left"},{key:"achievements",label:"Achievements",align:"left"},{key:"team",label:"Team",align:"left",headerClass:"hidden md:table-cell"},{key:"category",label:"Best At",align:"left",headerClass:"hidden sm:table-cell"},{key:"score",label:"Score",align:"right"}],r=o=>({Commits:"fas fa-code-commit text-green-500",PRs:"fas fa-code-pull-request text-blue-500",Reviews:"fas fa-eye text-purple-500",Comments:"fas fa-comment text-orange-500"})[o]||"";return(o,i)=>(v(),k("div",null,[M(ts,{title:"Leaderboard",subtitle:"Top contributors ranked by their velocity score",icon:"fas fa-trophy","icon-color":"text-yellow-500",centered:""}),f("section",ud,[f("div",fd,[M(Ri,{columns:s,items:n.value,"empty-icon":"fas fa-users","empty-message":"No contributors found","row-class":"hover:bg-gray-50 dark:hover:bg-gray-800/30 transition group"},{rank:Z(({item:l})=>[M(Ci,{rank:l.rank},null,8,["rank"])]),contributor:Z(({item:l})=>[M(Si,{contributor:l,"show-github-link":""},null,8,["contributor"])]),achievements:Z(({item:l})=>[f("div",dd,[(v(!0),k(Y,null,xe((l.achievements||[]).slice(0,6),a=>(v(),ie(wn,{key:a,"achievement-id":a,size:"sm"},null,8,["achievement-id"]))),128)),(l.achievements||[]).length?W("",!0):(v(),k("span",hd,"-"))])]),team:Z(({item:l})=>[f("td",md,[l.team?(v(),k("span",gd,R(l.team),1)):(v(),k("span",pd,"-"))])]),category:Z(({item:l})=>[f("td",yd,[l.top_category?(v(),k("span",vd,[f("i",{class:J([r(l.top_category),"mr-1"])},null,2),ce(" "+R(l.top_category),1)])):(v(),k("span",xd,"-"))])]),score:Z(({item:l})=>[f("span",bd,R(N(z)(l.score)),1)]),_:1},8,["items"])])])]))}},wd={class:"flex items-center justify-center min-h-[60vh]"},kd={class:"text-center"},Cd={class:"text-gray-600 dark:text-gray-400"},Zs={__name:"LoadingState",props:{message:{type:String,default:"Loading..."}},setup(e){return(t,n)=>(v(),k("div",wd,[f("div",kd,[n[0]||(n[0]=f("i",{class:"fas fa-spinner fa-spin text-4xl text-primary-500 mb-4"},null,-1)),f("p",Cd,R(e.message),1)])]))}},Rd={class:"flex items-center justify-center min-h-[60vh]"},Sd={class:"text-center"},Ed={class:"text-gray-600 dark:text-gray-400"},er={__name:"ErrorState",props:{message:{type:String,default:"An error occurred"},icon:{type:String,default:"fas fa-exclamation-triangle"}},setup(e){return(t,n)=>(v(),k("div",Rd,[f("div",Sd,[f("i",{class:J([e.icon,"text-4xl text-red-500 mb-4"])},null,2),f("p",Ed,R(e.message),1),Dt(t.$slots,"actions")])]))}},Ad=["href"],$d={key:0,class:"fas fa-external-link-alt text-xs ml-1 opacity-50"},Ei={__name:"GithubLink",props:{url:{type:String,required:!0},label:{type:String,default:""},showIcon:{type:Boolean,default:!0}},setup(e){return(t,n)=>(v(),k("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",class:"hover:text-primary-500 transition-colors",onClick:n[0]||(n[0]=Js(()=>{},["stop"]))},[Dt(t.$slots,"default",{},()=>[ce(R(e.label),1)]),e.showIcon?(v(),k("i",$d)):W("",!0)],8,Ad))}},Pd={class:"py-8 px-4"},Td={class:"container mx-auto"},Od={class:"grid grid-cols-2 md:grid-cols-4 gap-4"},Id={class:"py-8 px-4"},Nd={class:"container mx-auto"},Md={class:"text-gray-800 dark:text-white"},Dd={class:"text-gray-800 dark:text-white"},Ld={class:"text-gray-800 dark:text-white"},jd={class:"text-green-500"},Fd={class:"text-red-500"},Vd={class:"text-lg font-bold gradient-text"},Bd={__name:"Repository",setup(e){const t=es(),n=ke(null),s=ke(!0),r=ke(null),o=oe(()=>{var a;return[{label:"Dashboard",to:"/"},{label:"Repositories"},{label:((a=n.value)==null?void 0:a.name)||t.params.name}]}),i=[{key:"contributor",label:"Contributor",align:"left"},{key:"commits",label:"Commits",align:"center"},{key:"prs",label:"PRs",align:"center"},{key:"reviews",label:"Reviews",align:"center"},{key:"lines",label:"Lines +/-",align:"center"},{key:"score",label:"Score",align:"right"}];async function l(){s.value=!0,r.value=null;try{const a=await fetch(`./data/repos/${t.params.owner}/${t.params.name}/metrics.json`);if(!a.ok)throw new Error("Repository not found");n.value=await a.json()}catch(a){r.value=a.message}finally{s.value=!1}}return jt(l),Ue(()=>t.params,l),(a,c)=>(v(),k("div",null,[s.value?(v(),ie(Zs,{key:0,message:"Loading repository..."})):r.value?(v(),ie(er,{key:1,message:r.value},null,8,["message"])):n.value?(v(),k(Y,{key:2},[M(ts,{title:n.value.name,icon:"fas fa-code-branch","icon-color":"text-accent-500",breadcrumbs:o.value},{subtitle:Z(()=>[M(Ei,{url:`https://github.com/${n.value.owner}/${n.value.name}`},{default:Z(()=>[ce(R(n.value.owner)+"/"+R(n.value.name),1)]),_:1},8,["url"])]),_:1},8,["title","breadcrumbs"]),f("section",Pd,[f("div",Td,[f("div",Od,[M(_e,{value:n.value.total_commits,label:"Commits",icon:"fas fa-code-commit","icon-color":"text-green-500"},null,8,["value"]),M(_e,{value:n.value.total_prs,label:"Pull Requests",icon:"fas fa-code-pull-request","icon-color":"text-blue-500"},null,8,["value"]),M(_e,{value:n.value.total_reviews,label:"Reviews",icon:"fas fa-eye","icon-color":"text-purple-500"},null,8,["value"]),M(_e,{value:n.value.active_contributors,label:"Contributors",icon:"fas fa-users","icon-color":"text-orange-500"},null,8,["value"])])])]),f("section",Id,[f("div",Nd,[M(It,{title:"Contributors",icon:"fas fa-users","icon-color":"text-blue-500"}),M(Ri,{columns:i,items:n.value.contributors,"empty-icon":"fas fa-users","empty-message":"No contributors found","row-class":"hover:bg-gray-50 dark:hover:bg-gray-800/30 transition group"},{contributor:Z(({item:u})=>[M(Si,{contributor:u},null,8,["contributor"])]),commits:Z(({item:u})=>[f("span",Md,R(N(z)(u.commit_count)),1)]),prs:Z(({item:u})=>[f("span",Dd,R(N(z)(u.prs_opened)),1)]),reviews:Z(({item:u})=>[f("span",Ld,R(N(z)(u.reviews_given)),1)]),lines:Z(({item:u})=>[f("span",jd,"+"+R(N(z)(u.lines_added)),1),c[0]||(c[0]=f("span",{class:"text-gray-400 mx-1"},"/",-1)),f("span",Fd,"-"+R(N(z)(u.lines_deleted)),1)]),score:Z(({item:u})=>{var h;return[f("span",Vd,R(N(z)(((h=u.score)==null?void 0:h.total)||0)),1)]}),_:1},8,["items"])])])],64)):W("",!0)]))}},Hd={class:"flex items-center space-x-4 mb-4"},Ud={class:"font-semibold text-gray-800 dark:text-white"},Gd={class:"text-sm text-gray-500 dark:text-gray-400"},qd={class:"grid grid-cols-3 gap-4 text-center mb-4"},Kd={class:"text-lg font-semibold text-gray-800 dark:text-white"},Wd={class:"text-lg font-semibold text-gray-800 dark:text-white"},zd={class:"text-lg font-semibold text-gray-800 dark:text-white"},Jd={class:"flex items-center justify-between pt-4 border-t border-gray-200 dark:border-gray-700"},Yd={class:"text-xl font-bold gradient-text"},Qd={key:0,class:"mt-4 flex flex-wrap gap-2"},Xd={key:0,class:"inline-flex items-center justify-center w-8 h-8 rounded-lg bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-300 text-xs font-bold"},Zd={__name:"MemberCard",props:{member:{type:Object,required:!0},linkToProfile:{type:Boolean,default:!0}},setup(e){return(t,n)=>(v(),ie(Ml(e.linkToProfile?N(Re):"div"),{to:e.linkToProfile?{name:"contributor",params:{login:e.member.login}}:void 0,class:J(["card block",{"hover:shadow-lg transition cursor-pointer":e.linkToProfile}])},{default:Z(()=>{var s,r;return[f("div",Hd,[M(Sn,{src:e.member.avatar_url,name:e.member.login,size:"lg"},null,8,["src","name"]),f("div",null,[f("h3",Ud,R(e.member.name||e.member.login),1),f("p",Gd,"@"+R(e.member.login),1)])]),f("div",qd,[f("div",null,[f("div",Kd,R(N(z)(e.member.commit_count)),1),n[0]||(n[0]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Commits",-1))]),f("div",null,[f("div",Wd,R(N(z)(e.member.prs_opened)),1),n[1]||(n[1]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"PRs",-1))]),f("div",null,[f("div",zd,R(N(z)(e.member.reviews_given)),1),n[2]||(n[2]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Reviews",-1))])]),f("div",Jd,[n[3]||(n[3]=f("span",{class:"text-sm text-gray-500 dark:text-gray-400"},"Score",-1)),f("span",Yd,R(N(z)(((s=e.member.score)==null?void 0:s.total)||0)),1)]),(r=e.member.achievements)!=null&&r.length?(v(),k("div",Qd,[(v(!0),k(Y,null,xe(e.member.achievements.slice(0,4),o=>(v(),ie(wn,{key:o,"achievement-id":o,size:"sm"},null,8,["achievement-id"]))),128)),e.member.achievements.length>4?(v(),k("span",Xd," +"+R(e.member.achievements.length-4),1)):W("",!0)])):W("",!0)]}),_:1},8,["to","class"]))}},eh={class:"py-8 px-4"},th={class:"container mx-auto"},nh={class:"grid grid-cols-2 md:grid-cols-4 gap-4"},sh={class:"py-8 px-4"},rh={class:"container mx-auto"},oh={class:"grid md:grid-cols-2 lg:grid-cols-3 gap-6"},ih={__name:"Team",setup(e){const t=es(),n=$e("globalData"),s=ke(null),r=ke(!0),o=ke(null),i=oe(()=>{var a;return[{label:"Dashboard",to:"/"},{label:"Teams"},{label:((a=s.value)==null?void 0:a.name)||t.params.slug}]});function l(){var u;r.value=!0,o.value=null;const c=(((u=n.value)==null?void 0:u.teams)||[]).find(h=>ki(h.name)===t.params.slug);c?s.value=c:o.value="Team not found",r.value=!1}return jt(l),Ue(()=>t.params,l),Ue(n,l),(a,c)=>{var u,h,g,y;return v(),k("div",null,[r.value?(v(),ie(Zs,{key:0,message:"Loading team..."})):o.value?(v(),ie(er,{key:1,message:o.value},null,8,["message"])):s.value?(v(),k(Y,{key:2},[M(ts,{title:s.value.name,breadcrumbs:i.value,subtitle:`${((u=s.value.members)==null?void 0:u.length)||0} team members`},{prefix:Z(()=>[f("div",{class:"w-4 h-4 rounded-full mr-4",style:St({backgroundColor:s.value.color||"#8b5cf6"})},null,4)]),_:1},8,["title","breadcrumbs","subtitle"]),f("section",eh,[f("div",th,[f("div",nh,[M(_e,{value:s.value.total_score,label:"Total Score",icon:"fas fa-star","icon-color":"text-yellow-500"},null,8,["value"]),M(_e,{value:((h=s.value.aggregated_metrics)==null?void 0:h.commit_count)||0,label:"Commits",icon:"fas fa-code-commit","icon-color":"text-green-500"},null,8,["value"]),M(_e,{value:((g=s.value.aggregated_metrics)==null?void 0:g.prs_merged)||0,label:"PRs Merged",icon:"fas fa-code-merge","icon-color":"text-purple-500"},null,8,["value"]),M(_e,{value:((y=s.value.aggregated_metrics)==null?void 0:y.reviews_given)||0,label:"Reviews",icon:"fas fa-eye","icon-color":"text-blue-500"},null,8,["value"])])])]),f("section",sh,[f("div",rh,[M(It,{title:"Team Members",icon:"fas fa-users","icon-color":"text-blue-500"}),f("div",oh,[(v(!0),k(Y,null,xe(s.value.member_metrics,S=>(v(),ie(Zd,{key:S.login,member:S},null,8,["member"]))),128))])])])],64)):W("",!0)])}}},lh={class:"space-y-3"},ah={class:"flex items-start justify-between mb-3"},ch={class:"flex items-center space-x-3"},uh={class:"text-sm font-semibold text-gray-800 dark:text-white"},fh={class:"flex items-center space-x-2 text-xs text-gray-500 dark:text-gray-400"},dh={class:"font-medium"},hh={class:"text-right"},mh={class:"text-gray-500 dark:text-gray-400 font-medium"},gh={class:"text-xs text-gray-500 dark:text-gray-400 mt-0.5"},ph={class:"h-2.5 bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden"},yh={class:"flex items-center justify-between mt-1.5"},vh={class:"flex items-center space-x-1"},xh=["title"],bh={key:0,class:"text-[10px] text-gray-400"},_h={key:0,class:"text-center text-xs text-gray-500 dark:text-gray-400 pt-2"},wh={key:1,class:"text-center py-8 text-gray-500 dark:text-gray-400"},kh={__name:"AchievementProgress",props:{contributor:{type:Object,required:!0},showEarned:{type:Boolean,default:!1},maxDisplay:{type:Number,default:6}},setup(e){const t=e,n=[1,10,25,50,100,250,500,1e3,5e3,1e4,25e3],s={1:"from-stone-400 to-stone-500",2:"from-green-400 to-emerald-500",3:"from-blue-400 to-indigo-500",4:"from-purple-400 to-violet-500",5:"from-yellow-400 to-amber-500",6:"from-orange-400 to-red-500",7:"from-red-500 to-rose-600",8:"from-pink-500 to-fuchsia-600",9:"from-cyan-400 to-teal-500",10:"from-emerald-400 to-cyan-500",11:"from-violet-500 to-purple-600"},r={1:"bg-stone-500",2:"bg-green-500",3:"bg-blue-500",4:"bg-purple-500",5:"bg-yellow-500",6:"bg-orange-500",7:"bg-red-500",8:"bg-pink-500",9:"bg-cyan-500",10:"bg-emerald-500",11:"bg-violet-500"},o=[{category:"Commits",icon:"fa-code-commit",iconColor:"text-green-500",getValue:u=>u.commit_count||0,achievements:[{id:"first-commit",threshold:1,name:"First Steps"},{id:"commit-10",threshold:10,name:"Getting Started"},{id:"commit-25",threshold:25,name:"Warming Up"},{id:"commit-50",threshold:50,name:"On A Roll"},{id:"commit-100",threshold:100,name:"Committed"},{id:"commit-250",threshold:250,name:"Dedicated"},{id:"commit-500",threshold:500,name:"Code Machine"},{id:"commit-1000",threshold:1e3,name:"Code Warrior"},{id:"commit-5000",threshold:5e3,name:"Legendary"},{id:"commit-10000",threshold:1e4,name:"Mythical"},{id:"commit-25000",threshold:25e3,name:"Transcendent"}]},{category:"Pull Requests",icon:"fa-code-pull-request",iconColor:"text-blue-500",getValue:u=>u.prs_opened||0,achievements:[{id:"pr-opener",threshold:1,name:"PR Pioneer"},{id:"pr-10",threshold:10,name:"Pull Request Pro"},{id:"pr-25",threshold:25,name:"PR Regular"},{id:"pr-50",threshold:50,name:"Merge Master"},{id:"pr-100",threshold:100,name:"PR Champion"}]},{category:"Reviews",icon:"fa-eye",iconColor:"text-purple-500",getValue:u=>u.reviews_given||0,achievements:[{id:"reviewer",threshold:1,name:"Code Reviewer"},{id:"reviewer-10",threshold:10,name:"Review Starter"},{id:"reviewer-25",threshold:25,name:"Review Regular"},{id:"reviewer-50",threshold:50,name:"Review Expert"},{id:"reviewer-100",threshold:100,name:"Review Guru"}]},{category:"Lines Added",icon:"fa-plus",iconColor:"text-emerald-500",getValue:u=>u.lines_added||0,achievements:[{id:"lines-1000",threshold:1e3,name:"Thousand Lines"},{id:"lines-10000",threshold:1e4,name:"Ten Thousand"}]},{category:"Lines Deleted",icon:"fa-minus",iconColor:"text-red-500",getValue:u=>u.lines_deleted||0,achievements:[{id:"cleaner",threshold:1e3,name:"Code Cleaner"},{id:"refactorer",threshold:1e4,name:"Refactoring Champion"}]},{category:"Small PRs",icon:"fa-compress",iconColor:"text-cyan-500",getValue:u=>u.small_pr_count||0,achievements:[{id:"small-pr-10",threshold:10,name:"Small PR Advocate"},{id:"small-pr-50",threshold:50,name:"Atomic Commits Hero"}]},{category:"Perfect PRs",icon:"fa-gem",iconColor:"text-pink-500",getValue:u=>u.perfect_prs||0,achievements:[{id:"perfect-pr-5",threshold:5,name:"Clean Code"},{id:"perfect-pr-25",threshold:25,name:"Flawless"}]},{category:"Active Days",icon:"fa-calendar-check",iconColor:"text-orange-500",getValue:u=>u.active_days||0,achievements:[{id:"active-30",threshold:30,name:"Consistent Contributor"},{id:"active-100",threshold:100,name:"Dedicated Developer"}]},{category:"Streak",icon:"fa-fire",iconColor:"text-amber-500",getValue:u=>u.longest_streak||0,achievements:[{id:"streak-7",threshold:7,name:"Week Warrior"},{id:"streak-30",threshold:30,name:"Month Master"}]}],i=u=>{for(let h=n.length-1;h>=0;h--)if(u>=n[h])return h+1;return 1},l=u=>u.map(h=>({threshold:h.threshold,name:h.name,tier:i(h.threshold)})),a=oe(()=>{const u=new Set(t.contributor.achievements||[]),h=[];for(const g of o){const y=g.getValue(t.contributor);let S=null,P=null;const B=l(g.achievements);for(const Ce of g.achievements)y>=Ce.threshold?P=Ce:S||(S=Ce);if(!S)continue;const $=P?P.threshold:0,D=S.threshold-$,F=y-$,j=Math.min(100,Math.max(0,Math.round(F/D*100))),ee=i(S.threshold),ye=B.findIndex(Ce=>Ce.threshold===S.threshold),me=B.length;h.push({category:g.category,icon:g.icon,iconColor:g.iconColor,currentValue:y,target:S.threshold,name:S.name,id:S.id,progress:j,tier:ee,tierIndex:ye+1,totalTiers:me,allTiers:B,gradient:s[ee],progressColor:r[ee],isClose:j>=75,remaining:S.threshold-y,isEarned:u.has(S.id)})}return h.sort((g,y)=>y.progress-g.progress),h.slice(0,t.maxDisplay)}),c=oe(()=>{new Set(t.contributor.achievements||[]);let u=0;for(const h of o){const g=h.getValue(t.contributor);for(const y of h.achievements)g<y.threshold&&u++}return Math.max(0,u-t.maxDisplay)});return(u,h)=>(v(),k("div",lh,[(v(!0),k(Y,null,xe(a.value,g=>(v(),k("div",{key:g.id,class:"bg-gray-50 dark:bg-gray-800/50 rounded-xl p-4 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"},[f("div",ah,[f("div",ch,[f("div",{class:J(["w-10 h-10 rounded-lg bg-gradient-to-br flex items-center justify-center shadow-md",g.gradient])},[f("i",{class:J(["fas text-white text-sm",g.icon])},null,2)],2),f("div",null,[f("div",uh,R(g.name),1),f("div",fh,[f("span",null,R(g.category),1),h[0]||(h[0]=f("span",{class:"text-gray-300 dark:text-gray-600"},"•",-1)),f("span",dh,"Tier "+R(g.tierIndex)+"/"+R(g.totalTiers),1)])])]),f("div",hh,[f("div",{class:J(["text-sm font-bold",g.isClose?"text-green-500":"text-gray-700 dark:text-gray-200"])},[ce(R(N(z)(g.currentValue))+" ",1),h[1]||(h[1]=f("span",{class:"text-gray-400 dark:text-gray-500 font-normal"},"/",-1)),f("span",mh,R(N(z)(g.target)),1)],2),f("div",gh,R(g.remaining>0?`${N(z)(g.remaining)} to go`:"Ready to claim!"),1)])]),f("div",ph,[f("div",{class:J(["h-full rounded-full transition-all duration-500 ease-out",g.progressColor]),style:St({width:`${g.progress}%`})},null,6)]),f("div",yh,[f("div",vh,[(v(!0),k(Y,null,xe(g.allTiers.slice(0,5),(y,S)=>(v(),k("span",{key:y.threshold,class:J(["w-1.5 h-1.5 rounded-full",S<g.tierIndex?"bg-green-500":"bg-gray-300 dark:bg-gray-600"]),title:`Tier ${S+1}: ${y.name} (${N(z)(y.threshold)})`},null,10,xh))),128)),g.totalTiers>5?(v(),k("span",bh,"+"+R(g.totalTiers-5),1)):W("",!0)]),f("span",{class:J(["text-xs font-semibold",g.isClose?"text-green-500":"text-gray-400 dark:text-gray-500"])},R(g.progress)+"% ",3)])]))),128)),c.value>0?(v(),k("div",_h," +"+R(c.value)+" more achievements to unlock ",1)):W("",!0),a.value.length?W("",!0):(v(),k("div",wh,[...h[2]||(h[2]=[f("div",{class:"w-16 h-16 mx-auto mb-3 rounded-2xl bg-gradient-to-br from-yellow-400 to-amber-500 flex items-center justify-center shadow-lg"},[f("i",{class:"fas fa-trophy text-2xl text-white"})],-1),f("p",{class:"font-medium text-gray-700 dark:text-gray-300"},"All achievements unlocked!",-1),f("p",{class:"text-sm mt-1"},"You're a legend!",-1)])]))]))}},Ch={class:"py-12 px-4"},Rh={class:"container mx-auto"},Sh={class:"flex flex-col md:flex-row items-center md:items-start space-y-4 md:space-y-0 md:space-x-8"},Eh={class:"text-center md:text-left"},Ah={class:"text-4xl font-bold gradient-text"},$h={class:"text-xl text-gray-500 dark:text-gray-400 mt-1"},Ph={class:"flex items-center justify-center md:justify-start space-x-4 mt-4"},Th={class:"score-card rounded-lg px-4 py-2"},Oh={class:"text-2xl font-bold gradient-text ml-2"},Ih={key:0,class:"text-sm text-gray-500 dark:text-gray-400"},Nh={key:0},Mh={key:0,class:"mt-6 flex flex-wrap justify-center md:justify-start gap-3"},Dh={class:"py-8 px-4"},Lh={class:"container mx-auto"},jh={class:"grid grid-cols-2 md:grid-cols-4 gap-4"},Fh={class:"py-8 px-4"},Vh={class:"container mx-auto"},Bh={class:"grid md:grid-cols-2 gap-6"},Hh={class:"card"},Uh={class:"space-y-4"},Gh={class:"flex items-center justify-between"},qh={class:"text-green-500 font-semibold"},Kh={class:"flex items-center justify-between"},Wh={class:"text-red-500 font-semibold"},zh={class:"flex items-center justify-between"},Jh={class:"text-gray-800 dark:text-white font-semibold"},Yh={key:0,class:"flex items-center justify-between"},Qh={class:"text-gray-800 dark:text-white font-semibold"},Xh={class:"card"},Zh={class:"space-y-4"},em={class:"flex items-center justify-between"},tm={class:"text-gray-800 dark:text-white font-semibold"},nm={class:"flex items-center justify-between"},sm={class:"text-green-500 font-semibold"},rm={class:"flex items-center justify-between"},om={class:"text-orange-500 font-semibold"},im={class:"flex items-center justify-between"},lm={class:"text-gray-800 dark:text-white font-semibold"},am={key:0,class:"flex items-center justify-between"},cm={class:"text-gray-800 dark:text-white font-semibold"},um={key:0,class:"py-8 px-4"},fm={class:"container mx-auto"},dm={class:"card"},hm={class:"grid grid-cols-2 md:grid-cols-5 gap-4"},mm={class:"text-center p-4 rounded-lg bg-gray-50 dark:bg-gray-800/50"},gm={class:"text-2xl font-bold text-green-500"},pm={class:"text-center p-4 rounded-lg bg-gray-50 dark:bg-gray-800/50"},ym={class:"text-2xl font-bold text-blue-500"},vm={class:"text-center p-4 rounded-lg bg-gray-50 dark:bg-gray-800/50"},xm={class:"text-2xl font-bold text-purple-500"},bm={class:"text-center p-4 rounded-lg bg-gray-50 dark:bg-gray-800/50"},_m={class:"text-2xl font-bold text-orange-500"},wm={class:"text-center p-4 rounded-lg bg-gray-50 dark:bg-gray-800/50"},km={class:"text-2xl font-bold text-yellow-500"},Cm={class:"py-8 px-4"},Rm={class:"container mx-auto"},Sm={class:"grid md:grid-cols-2 gap-6"},Em={key:0,class:"card"},Am={class:"flex items-center justify-between mb-6"},$m={class:"px-2.5 py-1 rounded-full bg-gradient-to-r from-yellow-400 to-amber-500 text-white text-sm font-bold shadow-md"},Pm={class:"grid grid-cols-4 sm:grid-cols-5 gap-3"},Tm={class:"card"},Om={key:1,class:"py-8 px-4"},Im={class:"container mx-auto"},Nm={class:"flex flex-wrap gap-2"},Mm={__name:"Contributor",setup(e){const t=es(),n=$e("globalData"),s=ke(null),r=ke(!0),o=ke(null),i=oe(()=>{var a;return[{label:"Dashboard",to:"/"},{label:"Contributors"},{label:((a=s.value)==null?void 0:a.login)||t.params.login}]});async function l(){var c,u,h,g,y;r.value=!0,o.value=null;const a=t.params.login;try{const S=await fetch(`./data/contributors/${a}.json`);if(S.ok){const P=await S.json(),$=(((c=n.value)==null?void 0:c.leaderboard)||[]).find(D=>D.login===a);$&&(P.score={total:$.score,rank:$.rank,breakdown:(u=P.score)==null?void 0:u.breakdown},P.achievements=$.achievements),s.value=P}else{let B=(((h=n.value)==null?void 0:h.leaderboard)||[]).find($=>$.login===a);if(!B){const $=((g=n.value)==null?void 0:g.repositories)||[];for(const D of $){const F=(y=D.contributors)==null?void 0:y.find(j=>j.login===a);if(F){B=F;break}}}B?s.value=B:o.value="Contributor not found"}}catch(S){o.value=`Failed to load contributor: ${S.message}`}r.value=!1}return jt(l),Ue(()=>t.params,l),Ue(n,l),(a,c)=>{var u,h,g,y,S,P,B;return v(),k("div",null,[r.value?(v(),ie(Zs,{key:0,message:"Loading contributor..."})):o.value?(v(),ie(er,{key:1,message:o.value},null,8,["message"])):s.value?(v(),k(Y,{key:2},[f("header",Ch,[f("div",Rh,[M(ts,{breadcrumbs:i.value,title:""},null,8,["breadcrumbs"]),f("div",Sh,[M(Sn,{src:s.value.avatar_url,name:s.value.login,size:"2xl",class:"shadow-modern"},null,8,["src","name"]),f("div",Eh,[f("h1",Ah,R(s.value.name||s.value.login),1),f("p",$h,[M(Ei,{url:`https://github.com/${s.value.login}`},{default:Z(()=>[ce(" @"+R(s.value.login),1)]),_:1},8,["url"])]),f("div",Ph,[f("div",Th,[c[0]||(c[0]=f("span",{class:"text-sm text-gray-500 dark:text-gray-400"},"Score:",-1)),f("span",Oh,R(N(z)(((u=s.value.score)==null?void 0:u.total)||s.value.score||0)),1)]),(h=s.value.score)!=null&&h.rank?(v(),k("div",Ih,[ce(" Rank #"+R(s.value.score.rank)+" ",1),(g=s.value.score)!=null&&g.percentile_rank?(v(),k("span",Nh," (Top "+R(N(Pu)(s.value.score.percentile_rank))+") ",1)):W("",!0)])):W("",!0)]),(y=s.value.achievements)!=null&&y.length?(v(),k("div",Mh,[(v(!0),k(Y,null,xe(s.value.achievements,$=>(v(),ie(wn,{key:$,"achievement-id":$,size:"lg","show-label":""},null,8,["achievement-id"]))),128))])):W("",!0)])])])]),f("section",Dh,[f("div",Lh,[f("div",jh,[M(_e,{value:s.value.commit_count||0,label:"Commits",icon:"fas fa-code-commit","icon-color":"text-green-500"},null,8,["value"]),M(_e,{value:s.value.prs_opened||0,label:"PRs Opened",icon:"fas fa-code-pull-request","icon-color":"text-blue-500"},null,8,["value"]),M(_e,{value:s.value.prs_merged||0,label:"PRs Merged",icon:"fas fa-code-merge","icon-color":"text-purple-500"},null,8,["value"]),M(_e,{value:s.value.reviews_given||0,label:"Reviews Given",icon:"fas fa-eye","icon-color":"text-orange-500"},null,8,["value"])])])]),f("section",Fh,[f("div",Vh,[f("div",Bh,[f("div",Hh,[c[5]||(c[5]=f("h3",{class:"text-lg font-semibold text-gray-800 dark:text-white mb-4"},[f("i",{class:"fas fa-code text-green-500 mr-2"}),ce("Code Contributions ")],-1)),f("div",Uh,[f("div",Gh,[c[1]||(c[1]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Lines Added",-1)),f("span",qh," +"+R(N(z)(s.value.lines_added||0)),1)]),f("div",Kh,[c[2]||(c[2]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Lines Deleted",-1)),f("span",Wh," -"+R(N(z)(s.value.lines_deleted||0)),1)]),f("div",zh,[c[3]||(c[3]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Files Changed",-1)),f("span",Jh,R(N(z)(s.value.files_changed||0)),1)]),s.value.avg_pr_size?(v(),k("div",Yh,[c[4]||(c[4]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Avg PR Size",-1)),f("span",Qh,R(N(z)(Math.round(s.value.avg_pr_size)))+" lines ",1)])):W("",!0)])]),f("div",Xh,[c[11]||(c[11]=f("h3",{class:"text-lg font-semibold text-gray-800 dark:text-white mb-4"},[f("i",{class:"fas fa-comments text-purple-500 mr-2"}),ce("Review Activity ")],-1)),f("div",Zh,[f("div",em,[c[6]||(c[6]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Reviews Given",-1)),f("span",tm,R(N(z)(s.value.reviews_given||0)),1)]),f("div",nm,[c[7]||(c[7]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Approvals",-1)),f("span",sm,R(N(z)(s.value.approvals_given||0)),1)]),f("div",rm,[c[8]||(c[8]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Changes Requested",-1)),f("span",om,R(N(z)(s.value.changes_requested||0)),1)]),f("div",im,[c[9]||(c[9]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Review Comments",-1)),f("span",lm,R(N(z)(s.value.review_comments||0)),1)]),s.value.avg_review_time_hours?(v(),k("div",am,[c[10]||(c[10]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Avg Review Time",-1)),f("span",cm,R(N($u)(s.value.avg_review_time_hours)),1)])):W("",!0)])])])])]),(S=s.value.score)!=null&&S.breakdown?(v(),k("section",um,[f("div",fm,[f("div",dm,[c[17]||(c[17]=f("h3",{class:"text-lg font-semibold text-gray-800 dark:text-white mb-4"},[f("i",{class:"fas fa-chart-pie gradient-text mr-2"}),ce("Score Breakdown ")],-1)),f("div",hm,[f("div",mm,[f("div",gm,R(N(z)(s.value.score.breakdown.commits||0)),1),c[12]||(c[12]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"Commits",-1))]),f("div",pm,[f("div",ym,R(N(z)(s.value.score.breakdown.prs||0)),1),c[13]||(c[13]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"PRs",-1))]),f("div",vm,[f("div",xm,R(N(z)(s.value.score.breakdown.reviews||0)),1),c[14]||(c[14]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"Reviews",-1))]),f("div",bm,[f("div",_m,R(N(z)(s.value.score.breakdown.line_changes||0)),1),c[15]||(c[15]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"Line Changes",-1))]),f("div",wm,[f("div",km,R(N(z)(s.value.score.breakdown.response_bonus||0)),1),c[16]||(c[16]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"Response Bonus",-1))])])])])])):W("",!0),f("section",Cm,[f("div",Rm,[f("div",Sm,[(P=s.value.achievements)!=null&&P.length?(v(),k("div",Em,[f("div",Am,[c[18]||(c[18]=f("h3",{class:"text-lg font-semibold text-gray-800 dark:text-white"},[f("i",{class:"fas fa-award gradient-text mr-2"}),ce("Achievements Earned ")],-1)),f("span",$m,R(s.value.achievements.length),1)]),f("div",Pm,[(v(!0),k(Y,null,xe(s.value.achievements,$=>(v(),k("div",{key:$,class:"flex flex-col items-center p-2 rounded-xl bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"},[M(wn,{"achievement-id":$,size:"md","show-label":""},null,8,["achievement-id"])]))),128))])])):W("",!0),f("div",Tm,[c[19]||(c[19]=f("h3",{class:"text-lg font-semibold text-gray-800 dark:text-white mb-6"},[f("i",{class:"fas fa-chart-line text-primary-500 mr-2"}),ce("Next Achievements ")],-1)),M(kh,{contributor:s.value,"max-display":6},null,8,["contributor"])])])])]),(B=s.value.repositories_contributed)!=null&&B.length?(v(),k("section",Om,[f("div",Im,[M(It,{title:`Contributed to ${s.value.repositories_contributed.length} Repositories`,icon:"fas fa-folder-tree","icon-color":"text-blue-500"},null,8,["title"]),f("div",Nm,[(v(!0),k(Y,null,xe(s.value.repositories_contributed,$=>(v(),ie(N(Re),{key:$,to:`/repos/${$}`,class:"inline-flex items-center px-3 py-1.5 rounded-full text-sm bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-primary-100 dark:hover:bg-primary-900/30 hover:text-primary-700 dark:hover:text-primary-300 transition-colors"},{default:Z(()=>[c[20]||(c[20]=f("i",{class:"fas fa-code-branch text-gray-400 mr-2"},null,-1)),ce(" "+R($),1)]),_:2},1032,["to"]))),128))])])])):W("",!0)],64)):W("",!0)])}}},Dm=[{path:"/",name:"dashboard",component:qf},{path:"/leaderboard",name:"leaderboard",component:_d},{path:"/repos/:owner/:name",name:"repository",component:Bd},{path:"/teams/:slug",name:"team",component:ih},{path:"/contributors/:login",name:"contributor",component:Mm}],Lm=ou({history:jc(),routes:Dm,scrollBehavior(){return{top:0}}}),Ai=Qa(Au);Ai.use(Lm);Ai.mount("#app");
|