@shaohui_jin/git-cockpit-mcp-server 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -0
- package/dist/chunk-4XYICSW4.js +544 -0
- package/dist/chunk-4XYICSW4.js.map +1 -0
- package/dist/chunk-DJE6PUCJ.js +66 -0
- package/dist/chunk-DJE6PUCJ.js.map +1 -0
- package/dist/chunk-HAXZI36Y.js +573 -0
- package/dist/chunk-HAXZI36Y.js.map +1 -0
- package/dist/cli-entry.d.ts +2 -0
- package/dist/cli-entry.js +14 -0
- package/dist/cli-entry.js.map +1 -0
- package/dist/cli.d.ts +15 -0
- package/dist/cli.js +14 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +89 -0
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -0
- package/dist/mcpServer.d.ts +25 -0
- package/dist/mcpServer.js +13 -0
- package/dist/mcpServer.js.map +1 -0
- package/dist/runtime-CmdOmv60.d.ts +98 -0
- package/dist/web/assets/element-plus-D8uC5V5h.js +63 -0
- package/dist/web/assets/index-Ca6CZ6v8.css +1 -0
- package/dist/web/assets/index-DPTh-RCh.js +3 -0
- package/dist/web/assets/vue-CYNDxJyv.js +30 -0
- package/dist/web/index.html +15 -0
- package/dist/webServer.d.ts +19 -0
- package/dist/webServer.js +8 -0
- package/dist/webServer.js.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{az as Se,c as x,G as le,d as ie,a6 as nt,O as E,W as t,aj as m,aA as ot,aB as Ee,L as i,a0 as l,P as d,$ as g,u as R,M as b,F as W,ae as K,_ as p,Y as st,k as O,aq as Te,Z as L,S as oe,w as se,i as rt,X as pe,ac as it,ak as ye,e as ut,aC as dt,aD as ct,aw as pt,aE as ft}from"./vue-CYNDxJyv.js";import{E as q,a as Ne,e as mt}from"./element-plus-D8uC5V5h.js";(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))v(o);new MutationObserver(o=>{for(const w of o)if(w.type==="childList")for(const T of w.addedNodes)T.tagName==="LINK"&&T.rel==="modulepreload"&&v(T)}).observe(document,{childList:!0,subtree:!0});function r(o){const w={};return o.integrity&&(w.integrity=o.integrity),o.referrerPolicy&&(w.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?w.credentials="include":o.crossOrigin==="anonymous"?w.credentials="omit":w.credentials="same-origin",w}function v(o){if(o.ep)return;o.ep=!0;const w=r(o);fetch(o.href,w)}})();class Le extends Error{constructor(a,r,v,o){super(a),this.status=r,this.code=v,this.requiredApproval=o,this.name="ApiError"}}async function H(n,a,r){let v;try{v=await fetch(a,{method:n,headers:r!==void 0?{"Content-Type":"application/json"}:void 0,body:r!==void 0?JSON.stringify(r):void 0})}catch(o){throw new Le(`无法连接后端服务(${a}):${o instanceof Error?o.message:String(o)}`,0)}if(!v.ok){let o=v.statusText,w,T;try{const D=await v.json();o=D.error??o,w=D.code,T=D.requiredApproval}catch{}throw new Le(o,v.status,w,T)}return await v.json()}function vt(){return H("GET","/api/repos")}function _t(n){return H("POST","/api/repos/open",{path:n})}function gt(n){return H("DELETE",`/api/repos/${n}`)}function yt(n){return H("GET",`/api/repos/${n}/status`)}function ht(n,a={}){const r=new URLSearchParams;a.maxCount&&r.set("maxCount",String(a.maxCount)),a.all&&r.set("all","true"),a.path&&r.set("path",a.path),a.from&&r.set("from",a.from),a.to&&r.set("to",a.to),a.author&&r.set("author",a.author);const v=r.toString();return H("GET",`/api/repos/${n}/log${v?`?${v}`:""}`)}function bt(n,a={}){const r=new URLSearchParams;a.from&&r.set("from",a.from),a.to&&r.set("to",a.to),a.path&&r.set("path",a.path),a.staged&&r.set("staged","true");const v=r.toString();return H("GET",`/api/repos/${n}/diff${v?`?${v}`:""}`)}function wt(n,a){return H("GET",`/api/repos/${n}/show/${encodeURIComponent(a)}`)}function Pe(n){return H("GET",`/api/repos/${n}/branches`)}function Ie(n,a,r={}){return H("POST",`/api/repos/${n}/tools/${a}`,{params:r})}function kt(n={}){const a=new URLSearchParams;n.limit&&a.set("limit",String(n.limit)),n.tool&&a.set("tool",n.tool);const r=a.toString();return H("GET",`/api/logs${r?`?${r}`:""}`)}function Ct(){return H("GET","/api/settings")}function $t(n){return H("PUT","/api/settings",{permissions:n})}function Vt(){return H("GET","/api/health")}function xt(n){const a=new EventSource("/api/events");return n.onRepoChanged&&a.addEventListener("repo-changed",r=>{var v;return(v=n.onRepoChanged)==null?void 0:v.call(n,JSON.parse(r.data))}),n.onLog&&a.addEventListener("log",()=>{var r;return(r=n.onLog)==null?void 0:r.call(n)}),n.onError&&(a.onerror=r=>{var v;return(v=n.onError)==null?void 0:v.call(n,r)}),()=>a.close()}const he=Se("repos",{state:()=>({repos:[],currentId:null,loading:!1,error:null,healthOk:null}),getters:{current(n){return n.repos.find(a=>a.id===n.currentId)??null},currentPath(n){var a;return((a=n.repos.find(r=>r.id===n.currentId))==null?void 0:a.path)??null}},actions:{async checkHealth(){try{const n=await Vt();this.healthOk=n.ok}catch{this.healthOk=!1}return this.healthOk===!0},async load(){var n;this.loading=!0,this.error=null;try{const{repos:a}=await vt();this.repos=a,(!this.currentId||!a.some(r=>r.id===this.currentId))&&(this.currentId=((n=a[0])==null?void 0:n.id)??null)}catch(a){this.error=a instanceof Error?a.message:String(a)}finally{this.loading=!1}},async open(n){const{repo:a}=await _t(n);return await this.load(),a},async remove(n){await gt(n),this.currentId===n&&(this.currentId=null),await this.load()},switchTo(n){this.currentId=n}}}),Fe=Se("settings",{state:()=>({permissions:null,tools:[],loading:!1,saving:!1,error:null}),actions:{async load(){this.loading=!0,this.error=null;try{const n=await Ct();this.permissions=n.permissions,this.tools=n.tools}catch(n){this.error=n instanceof Error?n.message:String(n)}finally{this.loading=!1}},async save(n){if(this.permissions){this.saving=!0,this.error=null;try{await $t(n),this.permissions={...this.permissions,...n}}catch(a){throw this.error=a instanceof Error?a.message:String(a),a}finally{this.saving=!1}}}}}),Oe=x(0),St=()=>{Oe.value+=1};function be(){return{revision:Oe,bump:St}}const Et={class:"repo-box"},Tt=["title"],Rt={class:"menu-icon"},Dt={class:"aside-footer"},zt=le({__name:"App",setup(n){const a=he(),r=Fe(),v=ot(),o=Ee(),{bump:w}=be(),T=[{path:"/status",label:"状态",icon:"◧"},{path:"/history",label:"历史",icon:"◫"},{path:"/repos",label:"仓库管理",icon:"▤"},{path:"/logs",label:"操作日志",icon:"≡"},{path:"/settings",label:"设置",icon:"⚙"}],D=O(()=>{if(!a.currentId)return"未选择仓库";const h=a.repos.find(s=>s.id===a.currentId);return(h==null?void 0:h.path)??"未选择仓库"});let z=null;return ie(async()=>{await a.checkHealth(),await Promise.all([a.load(),r.load().catch(()=>{})]),z=xt({onRepoChanged:()=>w(),onLog:()=>w(),onError:()=>{}})}),nt(()=>{z==null||z()}),(h,s)=>{const u=m("el-menu-item"),f=m("el-menu"),c=m("el-tag"),$=m("el-aside"),A=m("router-view"),I=m("el-main"),F=m("el-container");return i(),E(F,{class:"app-shell"},{default:t(()=>[l($,{width:"220px",class:"app-aside"},{default:t(()=>[s[4]||(s[4]=d("div",{class:"brand"},[d("span",{class:"brand-mark"},"⌘"),d("span",{class:"brand-name"},"Git Cockpit")],-1)),d("div",Et,[s[0]||(s[0]=d("div",{class:"repo-box-label"},"当前仓库",-1)),d("div",{class:"repo-box-path mono",title:D.value},g(D.value),9,Tt)]),l(f,{"default-active":R(v).path,class:"nav-menu"},{default:t(()=>[(i(),b(W,null,K(T,S=>l(u,{key:S.path,index:S.path,onClick:B=>R(o).push(S.path)},{default:t(()=>[d("span",Rt,g(S.icon),1),d("span",null,g(S.label),1)]),_:2},1032,["index","onClick"])),64))]),_:1},8,["default-active"]),d("div",Dt,[R(a).healthOk?(i(),E(c,{key:0,size:"small",type:"success"},{default:t(()=>[...s[1]||(s[1]=[p("后端已连接",-1)])]),_:1})):R(a).healthOk===!1?(i(),E(c,{key:1,size:"small",type:"danger"},{default:t(()=>[...s[2]||(s[2]=[p("后端离线",-1)])]),_:1})):(i(),E(c,{key:2,size:"small",type:"info"},{default:t(()=>[...s[3]||(s[3]=[p("连接中…",-1)])]),_:1}))])]),_:1}),l(F,{class:"app-main"},{default:t(()=>[l(I,{class:"main-content"},{default:t(()=>[l(A,null,{default:t(({Component:S})=>[(i(),E(st(S)))]),_:1})]),_:1})]),_:1})]),_:1})}}}),ae=(n,a)=>{const r=n.__vccOpts||n;for(const[v,o]of a)r[v]=o;return r},At=ae(zt,[["__scopeId","data-v-8b6416d7"]]),Ut={class:"page"},Lt={class:"open-row"},It={class:"list-header"},Nt={class:"repo-path mono"},Pt=le({__name:"ReposView",setup(n){const a=he(),r=Ee(),v=x(""),o=x(!1);async function w(){const s=v.value.trim();if(!s){q.warning("请输入仓库路径");return}o.value=!0;try{const u=await a.open(s);q.success(`已打开 ${u.path}`),a.switchTo(u.id),await r.push("/status")}catch(u){q.error(u instanceof Error?u.message:String(u))}finally{o.value=!1}}async function T(s,u){try{await Ne.confirm(`确定从列表移除 ${u}?注意:不会删除磁盘上的仓库文件。`,"移除仓库",{type:"warning",confirmButtonText:"移除",cancelButtonText:"取消"})}catch{return}try{await a.remove(s),q.success("已移除")}catch(f){q.error(f instanceof Error?f.message:String(f))}}function D(s){a.switchTo(s),r.push("/status")}function z(s){const u=new Date(s);return Number.isNaN(u.getTime())?s:u.toLocaleString()}function h({row:s}){return s.id===a.currentId?"is-current":""}return ie(()=>a.load()),(s,u)=>{const f=m("el-input"),c=m("el-button"),$=m("el-card"),A=m("el-empty"),I=m("el-table-column"),F=m("el-table");return i(),b("div",Ut,[u[8]||(u[8]=d("h2",{class:"page-title"},"仓库管理",-1)),l($,{class:"open-card",shadow:"never"},{header:t(()=>[...u[2]||(u[2]=[p("打开本地仓库",-1)])]),default:t(()=>[d("div",Lt,[l(f,{modelValue:v.value,"onUpdate:modelValue":u[0]||(u[0]=S=>v.value=S),placeholder:"输入本地 Git 仓库路径,例如 D:\\project\\repo 或 /Users/me/code/app",clearable:"",onKeyup:Te(w,["enter"])},null,8,["modelValue"]),l(c,{type:"primary",loading:o.value,onClick:w},{default:t(()=>[...u[3]||(u[3]=[p("打开",-1)])]),_:1},8,["loading"])])]),_:1}),l($,{shadow:"never",class:"list-card"},{header:t(()=>[d("div",It,[u[5]||(u[5]=d("span",null,"最近打开的仓库",-1)),l(c,{text:"",type:"primary",loading:R(a).loading,onClick:u[1]||(u[1]=S=>R(a).load())},{default:t(()=>[...u[4]||(u[4]=[p("刷新",-1)])]),_:1},8,["loading"])])]),default:t(()=>[!R(a).loading&&R(a).repos.length===0?(i(),E(A,{key:0,description:"尚未打开任何仓库"})):(i(),E(F,{key:1,data:R(a).repos,size:"default","highlight-current-row":"","row-class-name":h},{default:t(()=>[l(I,{label:"路径","min-width":"320"},{default:t(({row:S})=>[d("div",Nt,g(S.path),1)]),_:1}),l(I,{label:"最近打开",width:"190"},{default:t(({row:S})=>[p(g(z(S.lastOpenedAt)),1)]),_:1}),l(I,{label:"操作",width:"180",align:"right"},{default:t(({row:S})=>[l(c,{size:"small",text:"",type:"primary",onClick:B=>D(S.id)},{default:t(()=>[...u[6]||(u[6]=[p("进入",-1)])]),_:1},8,["onClick"]),l(c,{size:"small",text:"",type:"danger",onClick:B=>T(S.id,S.path)},{default:t(()=>[...u[7]||(u[7]=[p("移除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]))]),_:1})])}}}),Ft=ae(Pt,[["__scopeId","data-v-ff70c4b1"]]);function Ot(n){const a=Ee(),r=x(!1),v=x(null),o=x(!1),w=O(()=>n()!==null);async function T(u,f={}){const c=n();if(c===null)return q.warning("请先选择仓库"),!1;try{const $=await Ie(c,u,{...f,dryRun:!0});return $.success?(v.value={tool:u,params:f,preview:$.preview??$.result},r.value=!0,!0):(h($),!1)}catch($){return s($),!1}}async function D(){const u=n(),f=v.value;if(u===null||!f)return null;o.value=!0,r.value=!1;try{const c=await Ie(u,f.tool,f.params);return c.success?(c.backupCreated?q.success(`${f.tool} 执行成功(已自动备份:${c.backupCreated.branch??"分支"}${c.backupCreated.stashRef?` / ${c.backupCreated.stashRef}`:""})`):q.success(`${f.tool} 执行成功`),c):(h(c),c)}catch(c){return s(c),null}finally{o.value=!1,v.value=null}}function z(){r.value=!1,v.value=null}function h(u){var f,c,$;if(((f=u.error)==null?void 0:f.code)==="PERMISSION_DENIED"){u.error.requiredApproval?Ne.confirm(`操作 ${u.tool} 属于高风险操作,当前默认禁用,需要在设置中开启后才能执行。是否前往设置?`,"需要审批",{confirmButtonText:"去开启",cancelButtonText:"取消",type:"warning"}).then(()=>a.push("/settings")).catch(()=>{}):q.error(((c=u.error)==null?void 0:c.message)??"操作被拒绝");return}q.error((($=u.error)==null?void 0:$.message)??"操作失败")}function s(u){const f=u instanceof Error?u.message:String(u);q.error(f)}return{confirmVisible:r,pending:v,executing:o,canRun:w,previewAndConfirm:T,executeConfirmed:D,cancel:z}}const qt={key:2,class:"cmd-box"},Bt={class:"cmd-pre mono"},Wt={key:3,class:"files-box"},Gt={class:"cmd-label"},Ht={key:4,class:"note-text"},Mt={class:"risk-tag"},jt=le({__name:"ConfirmDialog",props:{visible:{type:Boolean},tool:{},preview:{default:null},note:{default:""}},emits:["update:visible","confirm","cancel"],setup(n,{emit:a}){const r=n,v=a,o=O(()=>{const s=r.preview;return s&&"command"in s&&typeof s.command=="string"?s.command:""}),w=O(()=>{const s=r.preview;return s&&"risk"in s&&typeof s.risk=="string"?s.risk:"write"}),T=O(()=>{const s=r.preview;return s&&"affectedFiles"in s&&Array.isArray(s.affectedFiles)?s.affectedFiles:[]}),D=O(()=>w.value==="dangerous"?{type:"danger",label:"高风险"}:w.value==="write"?{type:"warning",label:"写操作"}:{type:"info",label:"只读"});function z(){v("confirm")}function h(){v("cancel"),v("update:visible",!1),q.info("操作已取消")}return(s,u)=>{const f=m("el-alert"),c=m("el-scrollbar"),$=m("el-tag"),A=m("el-button"),I=m("el-dialog");return i(),E(I,{"model-value":n.visible,title:`执行操作:${n.tool}`,width:"560px","close-on-click-modal":!1,onClosed:u[0]||(u[0]=F=>v("update:visible",!1))},{footer:t(()=>[d("span",Mt,[l($,{type:D.value.type,size:"small",effect:"dark"},{default:t(()=>[p(g(D.value.label),1)]),_:1},8,["type"])]),l(A,{onClick:h},{default:t(()=>[...u[4]||(u[4]=[p("取消",-1)])]),_:1}),l(A,{type:"primary",danger:w.value==="dangerous",onClick:z},{default:t(()=>[...u[5]||(u[5]=[p("确认执行",-1)])]),_:1},8,["danger"])]),default:t(()=>[w.value==="dangerous"?(i(),E(f,{key:0,type:"error",closable:!1,"show-icon":"",class:"risk-alert"},{title:t(()=>[...u[1]||(u[1]=[p("这是",-1),d("b",null,"高风险",-1),p("操作,将自动创建备份(临时分支 + stash)",-1)])]),_:1})):w.value==="write"?(i(),E(f,{key:1,type:"warning",closable:!1,"show-icon":"",class:"risk-alert"},{title:t(()=>[...u[2]||(u[2]=[p("写操作:执行后将修改仓库状态",-1)])]),_:1})):L("",!0),o.value?(i(),b("div",qt,[u[3]||(u[3]=d("div",{class:"cmd-label"},"将执行的命令(dry-run 预览,未实际执行)",-1)),d("pre",Bt,g(o.value),1)])):L("",!0),T.value.length?(i(),b("div",Wt,[d("div",Gt,"涉及文件("+g(T.value.length)+")",1),l(c,{"max-height":"140px"},{default:t(()=>[(i(!0),b(W,null,K(T.value,F=>(i(),b("div",{key:F,class:"file-item mono"},g(F),1))),128))]),_:1})])):L("",!0),n.note?(i(),b("div",Ht,g(n.note),1)):L("",!0)]),_:1},8,["model-value","title"])}}}),Jt=ae(jt,[["__scopeId","data-v-0e5cd08f"]]),Kt={class:"diff-pre mono"},Xt=le({__name:"DiffViewer",props:{patch:{}},setup(n){const a=n,r=O(()=>{const v=[];for(const o of a.patch.split(`
|
|
2
|
+
`)){const w=o.startsWith("diff --git")||o.startsWith("index ")||o.startsWith("---")||o.startsWith("+++")||o.startsWith("new file")||o.startsWith("deleted file")||o.startsWith("similarity")||o.startsWith("rename ")?"meta":o.startsWith("@@")?"hunk":o.startsWith("+")?"add":o.startsWith("-")?"del":"plain";v.push({type:w,text:o})}return v});return(v,o)=>(i(),b("pre",Kt,[(i(!0),b(W,null,K(r.value,(w,T)=>(i(),b(W,{key:T},[d("span",{class:oe(w.type)},g(w.text),3),o[0]||(o[0]=p(`
|
|
3
|
+
`,-1))],64))),128))]))}}),qe=ae(Xt,[["__scopeId","data-v-cd09efab"]]),Yt={class:"page"},Zt={class:"card-head"},Qt={class:"branch-info"},el={key:0,class:"tracking"},tl={key:0,class:"ahead"},ll={key:1,class:"behind"},al={class:"repo-path mono"},nl={key:0,class:"empty-tip"},ol={class:"toolbar"},sl={class:"toolbar-group"},rl={class:"toolbar-group danger"},il={key:1,class:"file-list"},ul={class:"file-path mono"},dl={key:1,class:"file-list"},cl={class:"file-path mono"},pl={key:1,class:"file-list"},fl={class:"file-path mono"},ml={class:"diff-wrap"},vl={class:"diff-summary"},_l={class:"add"},gl={class:"del"},yl={key:0,class:"warn"},hl=le({__name:"StatusView",setup(n){const a=he(),{revision:r}=be(),v=()=>a.currentId,o=x(null),w=x([]),T=x(!1),D=x(""),z=x(!1),h=x(""),s=x(null),u=x(!1),f=x(!1),c=x(""),$=x(!1),A=x(""),I=x(""),F=x(!1),S=x(""),B=x(!1),C=x(!1),Z=x(!1),X=x(""),{confirmVisible:P,pending:k,canRun:M,previewAndConfirm:N,executeConfirmed:ue,cancel:re}=Ot(v),fe=O(()=>{var y;return((y=a.current)==null?void 0:y.path)??""}),ke=O(()=>{var y,e;return((y=o.value)==null?void 0:y.currentShort)??((e=o.value)==null?void 0:e.current)??""}),me=O(()=>{var y;return((y=o.value)==null?void 0:y.ahead)??0}),de=O(()=>{var y;return((y=o.value)==null?void 0:y.behind)??0}),j=O(()=>{var y;return((y=o.value)==null?void 0:y.staged.length)??0}),Q=O(()=>{var y;return((y=o.value)==null?void 0:y.unstaged.length)??0}),ee=O(()=>{var y;return((y=o.value)==null?void 0:y.untracked.length)??0}),ve=O(()=>w.value.filter(y=>!y.remote));async function Ce(){const y=v();if(y!==null){T.value=!0,D.value="";try{o.value=await yt(y)}catch(e){D.value=e instanceof Error?e.message:String(e),o.value=null}finally{T.value=!1}}}async function $e(){const y=v();if(y!==null)try{const{branches:e}=await Pe(y);w.value=e}catch{}}async function te(){await Promise.all([Ce(),$e()])}async function V(y,e={}){await N(y,e)&&q.info("请在确认对话框中查看 dry-run 预览")}async function J(){const y=await ue();y!=null&&y.success&&await te()}async function We(y){await V("git_add",{paths:[y.path]})}async function Ge(y){await V("git_unstage",{paths:[y.path]})}async function He(){await V("git_add",{})}async function Me(){var e;const y=((e=o.value)==null?void 0:e.staged.map(Y=>Y.path))??[];if(y.length===0){q.info("没有已暂存的文件");return}await V("git_unstage",{paths:y})}async function Re(y){const e=v();if(e!==null){z.value=!0,h.value=y.path+(y.staged?"(已暂存)":"(工作区)"),s.value=null,u.value=!0;try{s.value=await bt(e,{path:y.path,staged:y.staged})}catch(Y){q.error(Y instanceof Error?Y.message:String(Y)),z.value=!1}finally{u.value=!1}}}function De(){const y=c.value.trim();if(!y){q.warning("请输入提交信息");return}f.value=!1,V("git_commit",{message:y})}function je(){const y=A.value.trim();if(!y){q.warning("请输入分支名");return}$.value=!1,V("git_branch_create",I.value.trim()?{name:y,startPoint:I.value.trim()}:{name:y})}function Je(){if(!S.value){q.warning("请选择要切换的分支");return}F.value=!1;const y=S.value;S.value="",V("git_checkout",{branch:y})}function Ke(){B.value=!1,V("git_stash",C.value?{includeUntracked:!0}:{})}function Xe(){const y=X.value.trim()||"HEAD";Z.value=!1,X.value="",V("git_reset_hard",{target:y})}return se(v,()=>{s.value=null,z.value=!1,te()}),se(r,()=>{te()}),ie(()=>{te()}),(y,e)=>{var Ae,Ue;const Y=m("el-alert"),Ve=m("el-tag"),U=m("el-button"),ne=m("el-card"),xe=m("el-col"),Ye=m("el-row"),_e=m("el-empty"),Ze=m("el-drawer"),ge=m("el-input"),ce=m("el-dialog"),ze=m("el-form-item"),Qe=m("el-form"),et=m("el-option"),tt=m("el-select"),lt=m("el-checkbox"),at=ye("loading");return i(),b("div",Yt,[e[64]||(e[64]=d("h2",{class:"page-title"},"仓库状态",-1)),D.value?(i(),E(Y,{key:0,title:D.value,type:"error",closable:!1,"show-icon":"",class:"mb"},null,8,["title"])):L("",!0),l(ne,{shadow:"never",class:"mb"},{header:t(()=>{var _,G;return[d("div",Zt,[d("div",Qt,[l(Ve,{type:"primary",effect:"dark",size:"large"},{default:t(()=>[p(g(ke.value||"—"),1)]),_:1}),(_=o.value)!=null&&_.tracking?(i(),b("span",el,[p(g(o.value.tracking)+" ",1),me.value?(i(),b("span",tl,"↑"+g(me.value),1)):L("",!0),de.value?(i(),b("span",ll,"↓"+g(de.value),1)):L("",!0)])):L("",!0),(G=o.value)!=null&&G.isClean?(i(),E(Ve,{key:1,type:"success",effect:"plain",size:"small"},{default:t(()=>[...e[30]||(e[30]=[p("工作区干净",-1)])]),_:1})):o.value?(i(),E(Ve,{key:2,type:"warning",effect:"plain",size:"small"},{default:t(()=>[p(" 更改 "+g(j.value)+" 暂存 / "+g(Q.value)+" 未暂存 / "+g(ee.value)+" 未跟踪 ",1)]),_:1})):L("",!0)]),l(U,{loading:T.value,onClick:te},{default:t(()=>[...e[31]||(e[31]=[p("刷新",-1)])]),_:1},8,["loading"])]),d("div",al,g(fe.value),1)]}),default:t(()=>{var _;return[R(M)?(i(),b(W,{key:1},[d("div",ol,[d("div",sl,[l(U,{type:"primary",plain:"",onClick:e[0]||(e[0]=G=>f.value=!0)},{default:t(()=>[...e[32]||(e[32]=[p("提交 Commit",-1)])]),_:1}),l(U,{type:"success",plain:"",onClick:He},{default:t(()=>[...e[33]||(e[33]=[p("暂存全部",-1)])]),_:1}),l(U,{type:"warning",plain:"",disabled:j.value===0,onClick:Me},{default:t(()=>[...e[34]||(e[34]=[p("取消暂存全部",-1)])]),_:1},8,["disabled"]),l(U,{plain:"",onClick:e[1]||(e[1]=G=>B.value=!0)},{default:t(()=>[...e[35]||(e[35]=[p("暂存改动 Stash",-1)])]),_:1}),l(U,{plain:"",onClick:e[2]||(e[2]=G=>F.value=!0)},{default:t(()=>[...e[36]||(e[36]=[p("切换分支",-1)])]),_:1}),l(U,{plain:"",onClick:e[3]||(e[3]=G=>$.value=!0)},{default:t(()=>[...e[37]||(e[37]=[p("新建分支",-1)])]),_:1}),l(U,{plain:"",onClick:e[4]||(e[4]=G=>V("git_pull"))},{default:t(()=>[...e[38]||(e[38]=[p("拉取 Pull",-1)])]),_:1}),l(U,{plain:"",onClick:e[5]||(e[5]=G=>V("git_push"))},{default:t(()=>[...e[39]||(e[39]=[p("推送 Push",-1)])]),_:1})]),d("div",rl,[l(U,{type:"danger",plain:"",onClick:e[6]||(e[6]=G=>Z.value=!0)},{default:t(()=>[...e[40]||(e[40]=[p("硬重置",-1)])]),_:1}),l(U,{type:"danger",plain:"",onClick:e[7]||(e[7]=G=>V("git_clean"))},{default:t(()=>[...e[41]||(e[41]=[p("清理未跟踪",-1)])]),_:1})])]),(_=o.value)!=null&&_.conflicted.length?(i(),E(Y,{key:0,title:"存在合并冲突,请先解决冲突(修改文件后重新 git add 并提交)",type:"error",closable:!1,"show-icon":"",class:"mb"})):L("",!0),l(Ye,{gutter:12,class:"status-cols"},{default:t(()=>[l(xe,{span:8},{default:t(()=>[l(ne,{shadow:"hover",class:oe(["count-card",{active:j.value>0}])},{default:t(()=>[e[42]||(e[42]=d("div",{class:"count-label"},"已暂存",-1)),d("div",{class:oe(["count-num",{primary:j.value>0}])},g(j.value),3)]),_:1},8,["class"])]),_:1}),l(xe,{span:8},{default:t(()=>[l(ne,{shadow:"hover",class:oe(["count-card",{active:Q.value>0}])},{default:t(()=>[e[43]||(e[43]=d("div",{class:"count-label"},"未暂存",-1)),d("div",{class:oe(["count-num",{warn:Q.value>0}])},g(Q.value),3)]),_:1},8,["class"])]),_:1}),l(xe,{span:8},{default:t(()=>[l(ne,{shadow:"hover",class:oe(["count-card",{active:ee.value>0}])},{default:t(()=>[e[44]||(e[44]=d("div",{class:"count-label"},"未跟踪",-1)),d("div",{class:oe(["count-num",{danger:ee.value>0}])},g(ee.value),3)]),_:1},8,["class"])]),_:1})]),_:1})],64)):(i(),b("div",nl,"请先在「仓库管理」中打开一个仓库"))]}),_:1}),R(M)&&o.value?(i(),b(W,{key:1},[l(ne,{shadow:"never",class:"mb file-card"},{header:t(()=>[p("已暂存("+g(j.value)+")",1)]),default:t(()=>[j.value===0?(i(),E(_e,{key:0,description:"没有已暂存的文件","image-size":60})):(i(),b("div",il,[(i(!0),b(W,null,K(o.value.staged,_=>(i(),b("div",{key:"s"+_.path,class:"file-row"},[e[47]||(e[47]=d("span",{class:"file-status add"},"A",-1)),d("span",ul,g(_.path),1),l(U,{size:"small",text:"",type:"primary",onClick:G=>Re(_)},{default:t(()=>[...e[45]||(e[45]=[p("查看差异",-1)])]),_:1},8,["onClick"]),l(U,{size:"small",text:"",type:"warning",onClick:G=>Ge(_)},{default:t(()=>[...e[46]||(e[46]=[p("取消暂存",-1)])]),_:1},8,["onClick"])]))),128))]))]),_:1}),l(ne,{shadow:"never",class:"mb file-card"},{header:t(()=>[p("未暂存("+g(Q.value)+")",1)]),default:t(()=>[Q.value===0?(i(),E(_e,{key:0,description:"没有未暂存的文件","image-size":60})):(i(),b("div",dl,[(i(!0),b(W,null,K(o.value.unstaged,_=>(i(),b("div",{key:"u"+_.path,class:"file-row"},[e[50]||(e[50]=d("span",{class:"file-status mod"},"M",-1)),d("span",cl,g(_.path),1),l(U,{size:"small",text:"",type:"primary",onClick:G=>Re(_)},{default:t(()=>[...e[48]||(e[48]=[p("查看差异",-1)])]),_:1},8,["onClick"]),l(U,{size:"small",text:"",type:"success",onClick:G=>We(_)},{default:t(()=>[...e[49]||(e[49]=[p("暂存",-1)])]),_:1},8,["onClick"])]))),128))]))]),_:1}),l(ne,{shadow:"never",class:"mb file-card"},{header:t(()=>[p("未跟踪("+g(ee.value)+")",1)]),default:t(()=>[ee.value===0?(i(),E(_e,{key:0,description:"没有未跟踪的文件","image-size":60})):(i(),b("div",pl,[(i(!0),b(W,null,K(o.value.untracked,_=>(i(),b("div",{key:"t"+_,class:"file-row"},[e[52]||(e[52]=d("span",{class:"file-status new"},"?",-1)),d("span",fl,g(_),1),l(U,{size:"small",text:"",type:"success",onClick:G=>V("git_add",{paths:[_]})},{default:t(()=>[...e[51]||(e[51]=[p("暂存",-1)])]),_:1},8,["onClick"])]))),128))]))]),_:1})],64)):L("",!0),l(Jt,{visible:R(P),"onUpdate:visible":e[8]||(e[8]=_=>rt(P)?P.value=_:null),tool:((Ae=R(k))==null?void 0:Ae.tool)??"",preview:((Ue=R(k))==null?void 0:Ue.preview)??null,onConfirm:J,onCancel:R(re)},null,8,["visible","tool","preview","onCancel"]),l(Ze,{modelValue:z.value,"onUpdate:modelValue":e[9]||(e[9]=_=>z.value=_),title:h.value,size:"52%","destroy-on-close":""},{default:t(()=>[pe((i(),b("div",ml,[s.value?(i(),b(W,{key:0},[d("div",vl,[d("span",null,g(s.value.files.length)+" 个文件",1),d("span",_l,"+"+g(s.value.insertions),1),d("span",gl,"-"+g(s.value.deletions),1),s.value.truncated?(i(),b("span",yl,"(已截断)")):L("",!0)]),l(qe,{patch:s.value.rawPatch},null,8,["patch"])],64)):u.value?L("",!0):(i(),E(_e,{key:1,description:"无差异","image-size":60}))])),[[at,u.value]])]),_:1},8,["modelValue","title"]),l(ce,{modelValue:f.value,"onUpdate:modelValue":e[12]||(e[12]=_=>f.value=_),title:"提交 Commit",width:"520px",onClosed:e[13]||(e[13]=_=>c.value="")},{footer:t(()=>[l(U,{onClick:e[11]||(e[11]=_=>f.value=!1)},{default:t(()=>[...e[53]||(e[53]=[p("取消",-1)])]),_:1}),l(U,{type:"primary",onClick:De},{default:t(()=>[...e[54]||(e[54]=[p("下一步(dry-run 预览)",-1)])]),_:1})]),default:t(()=>[l(ge,{modelValue:c.value,"onUpdate:modelValue":e[10]||(e[10]=_=>c.value=_),type:"textarea",rows:5,placeholder:"输入提交信息(message)",onKeydown:Te(it(De,["ctrl"]),["enter"])},null,8,["modelValue","onKeydown"])]),_:1},8,["modelValue"]),l(ce,{modelValue:$.value,"onUpdate:modelValue":e[17]||(e[17]=_=>$.value=_),title:"新建分支",width:"480px",onClosed:e[18]||(e[18]=_=>{A.value="",I.value=""})},{footer:t(()=>[l(U,{onClick:e[16]||(e[16]=_=>$.value=!1)},{default:t(()=>[...e[55]||(e[55]=[p("取消",-1)])]),_:1}),l(U,{type:"primary",onClick:je},{default:t(()=>[...e[56]||(e[56]=[p("下一步(dry-run 预览)",-1)])]),_:1})]),default:t(()=>[l(Qe,{"label-width":"90px"},{default:t(()=>[l(ze,{label:"分支名"},{default:t(()=>[l(ge,{modelValue:A.value,"onUpdate:modelValue":e[14]||(e[14]=_=>A.value=_),placeholder:"feature/xxx"},null,8,["modelValue"])]),_:1}),l(ze,{label:"起点(可选)"},{default:t(()=>[l(ge,{modelValue:I.value,"onUpdate:modelValue":e[15]||(e[15]=_=>I.value=_),placeholder:"默认当前 HEAD,如 main 或 commit hash"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),l(ce,{modelValue:F.value,"onUpdate:modelValue":e[21]||(e[21]=_=>F.value=_),title:"切换分支",width:"480px",onClosed:e[22]||(e[22]=_=>S.value="")},{footer:t(()=>[l(U,{onClick:e[20]||(e[20]=_=>F.value=!1)},{default:t(()=>[...e[57]||(e[57]=[p("取消",-1)])]),_:1}),l(U,{type:"primary",onClick:Je},{default:t(()=>[...e[58]||(e[58]=[p("下一步(dry-run 预览)",-1)])]),_:1})]),default:t(()=>[l(tt,{modelValue:S.value,"onUpdate:modelValue":e[19]||(e[19]=_=>S.value=_),filterable:"","allow-create":"",placeholder:"选择或输入分支名",style:{width:"100%"}},{default:t(()=>[(i(!0),b(W,null,K(ve.value,_=>(i(),E(et,{key:_.name,label:_.name+(_.current?"(当前)":""),value:_.name},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]),l(ce,{modelValue:B.value,"onUpdate:modelValue":e[25]||(e[25]=_=>B.value=_),title:"暂存改动 Stash",width:"460px"},{footer:t(()=>[l(U,{onClick:e[24]||(e[24]=_=>B.value=!1)},{default:t(()=>[...e[60]||(e[60]=[p("取消",-1)])]),_:1}),l(U,{type:"primary",onClick:Ke},{default:t(()=>[...e[61]||(e[61]=[p("下一步(dry-run 预览)",-1)])]),_:1})]),default:t(()=>[l(lt,{modelValue:C.value,"onUpdate:modelValue":e[23]||(e[23]=_=>C.value=_)},{default:t(()=>[...e[59]||(e[59]=[p("包含未跟踪文件(-u)",-1)])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]),l(ce,{modelValue:Z.value,"onUpdate:modelValue":e[28]||(e[28]=_=>Z.value=_),title:"硬重置(高风险)",width:"480px",onClosed:e[29]||(e[29]=_=>X.value="")},{footer:t(()=>[l(U,{onClick:e[27]||(e[27]=_=>Z.value=!1)},{default:t(()=>[...e[62]||(e[62]=[p("取消",-1)])]),_:1}),l(U,{type:"danger",onClick:Xe},{default:t(()=>[...e[63]||(e[63]=[p("下一步(dry-run 预览)",-1)])]),_:1})]),default:t(()=>[l(Y,{title:"将丢弃索引与工作区所有更改(不可逆),执行前会自动创建备份",type:"error",closable:!1,"show-icon":"",class:"mb"}),l(ge,{modelValue:X.value,"onUpdate:modelValue":e[26]||(e[26]=_=>X.value=_),placeholder:"重置目标,默认 HEAD,如 HEAD~1 / commit hash / main"},null,8,["modelValue"])]),_:1},8,["modelValue"])])}}}),bl=ae(hl,[["__scopeId","data-v-f1f7a1d3"]]),wl={class:"page"},kl={class:"filter-bar"},Cl={class:"mono hash"},$l={class:"subject"},Vl={key:0,class:"refs"},xl={class:"sub"},Sl={class:"commit-head"},El={class:"mono commit-hash"},Tl={class:"commit-subject"},Rl={class:"commit-meta"},Dl={key:0},zl={key:0,class:"commit-body"},Al={class:"diff-wrap"},Ul={class:"diff-summary"},Ll={class:"add"},Il={class:"del"},Nl={key:0,class:"warn"},Pl=le({__name:"HistoryView",setup(n){const a=he(),{revision:r}=be(),v=()=>a.currentId,o=x([]),w=x([]),T=x(!1),D=x(""),z=x("head"),h=x(""),s=x(""),u=x(50),f=x(!1),c=x(null),$=x(null),A=x(!1),I=O(()=>w.value.filter(P=>!P.remote)),F=O(()=>{var P;return((P=w.value.find(k=>k.current))==null?void 0:P.name)??""});async function S(){const P=v();if(P!==null)try{const{branches:k}=await Pe(P);w.value=k}catch{}}async function B(){const P=v();if(P!==null){T.value=!0,D.value="";try{const k={maxCount:u.value};z.value==="all"?k.all=!0:z.value==="branch"&&h.value&&(k.from=h.value),s.value.trim()&&(k.path=s.value.trim()),o.value=await ht(P,k)}catch(k){D.value=k instanceof Error?k.message:String(k),o.value=[]}finally{T.value=!1}}}async function C(){await Promise.all([S(),B()])}async function Z(P){const k=v();if(k!==null){f.value=!0,c.value=P,$.value=null,A.value=!0;try{const{diff:M}=await wt(k,P.hash);$.value=M}catch(M){q.error(M instanceof Error?M.message:String(M))}finally{A.value=!1}}}function X(P){const k=new Date(P);return Number.isNaN(k.getTime())?P:k.toLocaleString()}return se(v,()=>void C()),se(r,()=>void B()),se([z,h,u],()=>void B()),ie(()=>void C()),(P,k)=>{const M=m("el-alert"),N=m("el-radio-button"),ue=m("el-radio-group"),re=m("el-option"),fe=m("el-select"),ke=m("el-input"),me=m("el-button"),de=m("el-card"),j=m("el-table-column"),Q=m("el-tag"),ee=m("el-table"),ve=m("el-empty"),Ce=m("el-divider"),$e=m("el-drawer"),te=ye("loading");return i(),b("div",wl,[k[8]||(k[8]=d("h2",{class:"page-title"},"提交历史",-1)),D.value?(i(),E(M,{key:0,title:D.value,type:"error",closable:!1,"show-icon":"",class:"mb"},null,8,["title"])):L("",!0),l(de,{shadow:"never",class:"mb"},{default:t(()=>[d("div",kl,[l(ue,{modelValue:z.value,"onUpdate:modelValue":k[0]||(k[0]=V=>z.value=V)},{default:t(()=>[l(N,{value:"head"},{default:t(()=>[p("当前分支("+g(F.value)+")",1)]),_:1}),l(N,{value:"all"},{default:t(()=>[...k[5]||(k[5]=[p("全部分支",-1)])]),_:1}),l(N,{value:"branch"},{default:t(()=>[...k[6]||(k[6]=[p("指定分支",-1)])]),_:1})]),_:1},8,["modelValue"]),z.value==="branch"?(i(),E(fe,{key:0,modelValue:h.value,"onUpdate:modelValue":k[1]||(k[1]=V=>h.value=V),filterable:"",placeholder:"选择分支",class:"branch-select"},{default:t(()=>[(i(!0),b(W,null,K(I.value,V=>(i(),E(re,{key:V.name,label:V.name,value:V.name},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):L("",!0),l(ke,{modelValue:s.value,"onUpdate:modelValue":k[2]||(k[2]=V=>s.value=V),clearable:"",placeholder:"按路径过滤(可选)",class:"path-input",onKeyup:Te(B,["enter"])},null,8,["modelValue"]),l(fe,{modelValue:u.value,"onUpdate:modelValue":k[3]||(k[3]=V=>u.value=V),class:"count-select"},{default:t(()=>[l(re,{label:"20 条",value:20}),l(re,{label:"50 条",value:50}),l(re,{label:"100 条",value:100})]),_:1},8,["modelValue"]),l(me,{loading:T.value,onClick:B},{default:t(()=>[...k[7]||(k[7]=[p("刷新",-1)])]),_:1},8,["loading"])])]),_:1}),l(de,{shadow:"never"},{default:t(()=>[pe((i(),E(ee,{data:o.value,size:"default","highlight-current-row":"",onRowClick:Z},{default:t(()=>[l(j,{label:"提交",width:"100"},{default:t(({row:V})=>[d("span",Cl,g(V.shortHash),1)]),_:1}),l(j,{label:"信息","min-width":"300"},{default:t(({row:V})=>[d("div",$l,g(V.subject),1),V.refs?(i(),b("div",Vl,[(i(!0),b(W,null,K(V.refs.split(",").map(J=>J.trim()).filter(Boolean),J=>(i(),E(Q,{key:J,size:"small",effect:"plain",class:"ref-tag"},{default:t(()=>[p(g(J.startsWith("tag: ")?J:J.includes("/")&&!J.startsWith("HEAD")?J.split("/").pop():J),1)]),_:2},1024))),128))])):L("",!0)]),_:1}),l(j,{label:"作者",width:"170"},{default:t(({row:V})=>[d("div",null,g(V.authorName),1),d("div",xl,g(V.authorEmail),1)]),_:1}),l(j,{label:"时间",width:"180"},{default:t(({row:V})=>[p(g(X(V.authorDate)),1)]),_:1})]),_:1},8,["data"])),[[te,T.value]]),!T.value&&o.value.length===0?(i(),E(ve,{key:0,description:"暂无提交记录"})):L("",!0)]),_:1}),l($e,{modelValue:f.value,"onUpdate:modelValue":k[4]||(k[4]=V=>f.value=V),size:"60%","destroy-on-close":""},{default:t(()=>[c.value?(i(),b(W,{key:0},[d("div",Sl,[d("div",El,g(c.value.hash),1),d("h3",Tl,g(c.value.subject),1),d("div",Rl,[d("span",null,g(c.value.authorName)+" <"+g(c.value.authorEmail)+">",1),d("span",null,g(X(c.value.authorDate)),1),c.value.refs?(i(),b("span",Dl,"refs: "+g(c.value.refs),1)):L("",!0)]),c.value.body?(i(),b("pre",zl,g(c.value.body),1)):L("",!0)]),l(Ce),pe((i(),b("div",Al,[$.value?(i(),b(W,{key:0},[d("div",Ul,[d("span",null,g($.value.files.length)+" 个文件",1),d("span",Ll,"+"+g($.value.insertions),1),d("span",Il,"-"+g($.value.deletions),1),$.value.truncated?(i(),b("span",Nl,"(已截断)")):L("",!0)]),l(qe,{patch:$.value.rawPatch},null,8,["patch"])],64)):A.value?L("",!0):(i(),E(ve,{key:1,description:"无差异","image-size":60}))])),[[te,A.value]])],64)):L("",!0)]),_:1},8,["modelValue"])])}}}),Fl=ae(Pl,[["__scopeId","data-v-2be2a7e8"]]),Ol=Se("logs",{state:()=>({logs:[],loading:!1,error:null,limit:50,toolFilter:""}),actions:{async load(){this.loading=!0,this.error=null;try{const{logs:n}=await kt({limit:this.limit,tool:this.toolFilter||void 0});this.logs=n}catch(n){this.error=n instanceof Error?n.message:String(n)}finally{this.loading=!1}}}}),ql={class:"page"},Bl={class:"filter-bar"},Wl={class:"tool-cell"},Gl={class:"mono repo-path"},Hl=["title"],Ml=["title"],jl=["title"],Jl=le({__name:"LogsView",setup(n){const a=Ol(),{revision:r}=be(),v=O(()=>{const h=new Set;for(const s of a.logs)h.add(s.tool);return[...h].sort()}),o=h=>h.includes("reset")||h.includes("clean")||h.includes("force")||h.includes("rebase")?"dangerous":"write";function w(h){return o(h)==="dangerous"?"danger":h.startsWith("git_")?"primary":"success"}function T(h){const s=new Date(h);return Number.isNaN(s.getTime())?h:s.toLocaleString()}function D(h){return h==="mcp"?"primary":h==="web"?"success":"warning"}function z(h){if(h==null)return"";if(typeof h=="string")return h;try{const s=JSON.stringify(h);return s===void 0?"":s}catch{return String(h)}}return se(r,()=>{a.load()}),ie(()=>{a.load()}),(h,s)=>{const u=m("el-option"),f=m("el-select"),c=m("el-button"),$=m("el-card"),A=m("el-table-column"),I=m("el-tag"),F=m("el-table"),S=m("el-empty"),B=ye("loading");return i(),b("div",ql,[s[7]||(s[7]=d("h2",{class:"page-title"},"操作日志",-1)),l($,{shadow:"never",class:"mb"},{default:t(()=>[d("div",Bl,[l(f,{modelValue:R(a).toolFilter,"onUpdate:modelValue":s[0]||(s[0]=C=>R(a).toolFilter=C),clearable:"",placeholder:"按工具过滤",class:"tool-select",onChange:R(a).load},{default:t(()=>[(i(!0),b(W,null,K(v.value,C=>(i(),E(u,{key:C,label:C,value:C},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),l(f,{modelValue:R(a).limit,"onUpdate:modelValue":s[1]||(s[1]=C=>R(a).limit=C),class:"limit-select",onChange:R(a).load},{default:t(()=>[l(u,{label:"最近 20 条",value:20}),l(u,{label:"最近 50 条",value:50}),l(u,{label:"最近 100 条",value:100})]),_:1},8,["modelValue","onChange"]),l(c,{loading:R(a).loading,onClick:R(a).load},{default:t(()=>[...s[2]||(s[2]=[p("刷新",-1)])]),_:1},8,["loading","onClick"]),s[3]||(s[3]=d("span",{class:"tip"},"记录来源:Web / MCP / CLI 全部写入操作(只读操作不记录)",-1))])]),_:1}),l($,{shadow:"never"},{default:t(()=>[pe((i(),E(F,{data:R(a).logs,size:"default"},{default:t(()=>[l(A,{label:"时间",width:"180"},{default:t(({row:C})=>[p(g(T(C.timestamp)),1)]),_:1}),l(A,{label:"来源",width:"90"},{default:t(({row:C})=>[l(I,{type:D(C.source),size:"small",effect:"plain"},{default:t(()=>[p(g(C.source.toUpperCase()),1)]),_:2},1032,["type"])]),_:1}),l(A,{label:"工具",width:"200"},{default:t(({row:C})=>[d("div",Wl,[l(I,{type:w(C.tool),size:"small",effect:"dark"},{default:t(()=>[p(g(C.tool),1)]),_:2},1032,["type"]),C.dryRun?(i(),E(I,{key:0,size:"small",type:"info",effect:"plain",class:"dry-tag"},{default:t(()=>[...s[4]||(s[4]=[p("dry-run",-1)])]),_:1})):L("",!0)])]),_:1}),l(A,{label:"仓库","min-width":"200"},{default:t(({row:C})=>[d("span",Gl,g(C.repoPath??"—"),1)]),_:1}),l(A,{label:"参数(脱敏)","min-width":"180"},{default:t(({row:C})=>[d("span",{class:"mono params",title:z(C.params)},g(z(C.params)||"—"),9,Hl)]),_:1}),l(A,{label:"结果","min-width":"150"},{default:t(({row:C})=>[C.error?(i(),b(W,{key:0},[l(I,{type:"danger",size:"small",effect:"plain",class:"result-tag"},{default:t(()=>[...s[5]||(s[5]=[p("失败",-1)])]),_:1}),d("div",{class:"err-text",title:C.error},g(C.error),9,Ml)],64)):(i(),b(W,{key:1},[l(I,{type:"success",size:"small",effect:"plain",class:"result-tag"},{default:t(()=>[...s[6]||(s[6]=[p("成功",-1)])]),_:1}),d("div",{class:"ok-text",title:C.result},g(C.result),9,jl)],64))]),_:1}),l(A,{label:"耗时",width:"90"},{default:t(({row:C})=>[p(g(C.durationMs)+" ms",1)]),_:1})]),_:1},8,["data"])),[[B,R(a).loading]]),!R(a).loading&&R(a).logs.length===0?(i(),E(S,{key:0,description:"暂无操作日志"})):L("",!0)]),_:1})])}}}),Kl=ae(Jl,[["__scopeId","data-v-bb89f017"]]),Xl={class:"page"},Yl={class:"card-head"},Zl={class:"mono"},Ql={class:"desc"},ea={key:1,class:"action-bar"},ta=le({__name:"SettingsView",setup(n){const a=Fe(),r=ut({disabledTools:[],requireApprovalFor:[],dryRunDefault:!1}),v=x(!1),o=O(()=>{const f=a.permissions;return f?JSON.stringify([...r.disabledTools].sort())!==JSON.stringify([...f.disabledTools].sort())||JSON.stringify([...r.requireApprovalFor].sort())!==JSON.stringify([...f.requireApprovalFor].sort())||r.dryRunDefault!==f.dryRunDefault:!1}),w=O(()=>a.tools.filter(f=>f.risk==="dangerous")),T=O(()=>w.value.map(f=>f.name));function D(){const f=a.permissions;f&&(r.disabledTools=[...f.disabledTools],r.requireApprovalFor=[...f.requireApprovalFor],r.dryRunDefault=f.dryRunDefault,v.value=!0)}se(()=>a.permissions,f=>{f&&!o.value&&D()});async function z(f,c){c?r.disabledTools=r.disabledTools.filter($=>$!==f.name):(r.disabledTools.includes(f.name)||r.disabledTools.push(f.name),r.requireApprovalFor=r.requireApprovalFor.filter($=>$!==f.name))}function h(f){return f==="readonly"?"success":f==="write"?"primary":"danger"}function s(f){return f==="readonly"?"只读":f==="write"?"写操作":"高风险"}async function u(){try{await a.save({disabledTools:[...r.disabledTools],requireApprovalFor:[...r.requireApprovalFor],dryRunDefault:r.dryRunDefault}),q.success("设置已保存")}catch(f){q.error(f instanceof Error?f.message:String(f))}}return ie(async()=>{await a.load(),D()}),(f,c)=>{const $=m("el-alert"),A=m("el-switch"),I=m("el-form-item"),F=m("el-form"),S=m("el-card"),B=m("el-tag"),C=m("el-table-column"),Z=m("el-table"),X=m("el-option"),P=m("el-select"),k=m("el-button"),M=ye("loading");return i(),b("div",Xl,[c[10]||(c[10]=d("h2",{class:"page-title"},"设置",-1)),R(a).error?(i(),E($,{key:0,title:R(a).error,type:"error",closable:!1,"show-icon":"",class:"mb"},null,8,["title"])):L("",!0),l(S,{shadow:"never",class:"mb"},{header:t(()=>[...c[2]||(c[2]=[p("默认行为",-1)])]),default:t(()=>[l(F,{"label-width":"180px","label-position":"left"},{default:t(()=>[l(I,{label:"写操作默认 dry-run 预览"},{default:t(()=>[l(A,{modelValue:r.dryRunDefault,"onUpdate:modelValue":c[0]||(c[0]=N=>r.dryRunDefault=N)},null,8,["modelValue"]),c[3]||(c[3]=d("span",{class:"form-tip"},"开启后所有写操作(MCP/CLI)默认只生成预览,不真正执行",-1))]),_:1})]),_:1})]),_:1}),l(S,{shadow:"never",class:"mb"},{header:t(()=>[d("div",Yl,[c[5]||(c[5]=d("span",null,"工具开关与风险等级",-1)),l(B,{size:"small",type:"warning",effect:"plain"},{default:t(()=>[...c[4]||(c[4]=[p("高危工具默认禁用,需在下方开启",-1)])]),_:1})])]),default:t(()=>[pe((i(),E(Z,{data:R(a).tools,size:"default"},{default:t(()=>[l(C,{label:"工具",width:"230"},{default:t(({row:N})=>[d("span",Zl,g(N.name),1)]),_:1}),l(C,{label:"风险",width:"90"},{default:t(({row:N})=>[l(B,{type:h(N.risk),size:"small",effect:"dark"},{default:t(()=>[p(g(s(N.risk)),1)]),_:2},1032,["type"])]),_:1}),l(C,{label:"描述","min-width":"240"},{default:t(({row:N})=>[d("span",Ql,g(N.description),1)]),_:1}),l(C,{label:"启用",width:"100",align:"center"},{default:t(({row:N})=>[l(A,{"model-value":!r.disabledTools.includes(N.name),onChange:ue=>z(N,ue===!0)},null,8,["model-value","onChange"])]),_:1})]),_:1},8,["data"])),[[M,R(a).loading]])]),_:1}),l(S,{shadow:"never",class:"mb"},{header:t(()=>[...c[6]||(c[6]=[p("审批规则",-1)])]),default:t(()=>[l(F,{"label-position":"top"},{default:t(()=>[l(I,{label:"执行前需要审批的工具(勾选后,执行时需在确认框中手工确认)"},{default:t(()=>[l(P,{modelValue:r.requireApprovalFor,"onUpdate:modelValue":c[1]||(c[1]=N=>r.requireApprovalFor=N),multiple:"",filterable:"","collapse-tags":"",placeholder:"选择需要审批的工具",style:{width:"100%"}},{default:t(()=>[(i(!0),b(W,null,K(T.value,N=>(i(),E(X,{key:N,label:N,value:N,disabled:r.disabledTools.includes(N)},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"]),c[7]||(c[7]=d("span",{class:"form-tip"},"审批仅对已启用的高危工具生效;禁用后自动移除",-1))]),_:1})]),_:1})]),_:1}),v.value?(i(),b("div",ea,[l(k,{type:"primary",loading:R(a).saving,disabled:!o.value,onClick:u},{default:t(()=>[...c[8]||(c[8]=[p("保存设置",-1)])]),_:1},8,["loading","disabled"]),l(k,{disabled:!o.value,onClick:D},{default:t(()=>[...c[9]||(c[9]=[p("放弃修改",-1)])]),_:1},8,["disabled"])])):L("",!0)])}}}),la=ae(ta,[["__scopeId","data-v-c9221e05"]]),Be=dt({history:ct(),routes:[{path:"/",redirect:"/status"},{path:"/repos",name:"repos",component:Ft,meta:{title:"仓库管理"}},{path:"/status",name:"status",component:bl,meta:{title:"状态"}},{path:"/history",name:"history",component:Fl,meta:{title:"历史"}},{path:"/logs",name:"logs",component:Kl,meta:{title:"操作日志"}},{path:"/settings",name:"settings",component:la,meta:{title:"设置"}}]});Be.afterEach(n=>{const a=n.meta.title;document.title=a?`${a} · Git Cockpit`:"Git Cockpit"});const we=pt(At);we.use(ft());we.use(Be);we.use(mt,{size:"default"});we.mount("#app");
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vue/shared v3.5.41
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/function ir(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const le={},Wt=[],ke=()=>{},Mi=()=>!1,Zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),es=e=>e.startsWith("onUpdate:"),pe=Object.assign,or=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ol=Object.prototype.hasOwnProperty,se=(e,t)=>Ol.call(e,t),B=Array.isArray,$t=e=>Rn(e)==="[object Map]",ts=e=>Rn(e)==="[object Set]",Ir=e=>Rn(e)==="[object Date]",$=e=>typeof e=="function",ae=e=>typeof e=="string",De=e=>typeof e=="symbol",ee=e=>e!==null&&typeof e=="object",Di=e=>(ee(e)||$(e))&&$(e.then)&&$(e.catch),Li=Object.prototype.toString,Rn=e=>Li.call(e),Pl=e=>Rn(e).slice(8,-1),Fi=e=>Rn(e)==="[object Object]",ns=e=>ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fn=ir(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ss=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Il=/-\w/g,Te=ss(e=>e.replace(Il,t=>t.slice(1).toUpperCase())),Nl=/\B([A-Z])/g,wt=ss(e=>e.replace(Nl,"-$1").toLowerCase()),rs=ss(e=>e.charAt(0).toUpperCase()+e.slice(1)),Vn=ss(e=>e?`on${rs(e)}`:""),et=(e,t)=>!Object.is(e,t),Hn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Vi=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},lr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ml=e=>{const t=ae(e)?Number(e):NaN;return isNaN(t)?e:t};let Nr;const is=()=>Nr||(Nr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function os(e){if(B(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ae(s)?Vl(s):os(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(ae(e)||ee(e))return e}const Dl=/;(?![^(]*\))/g,Ll=/:([^]+)/,Fl=/\/\*[^]*?\*\//g;function Vl(e){const t={};return e.replace(Fl,"").split(Dl).forEach(n=>{if(n){const s=n.split(Ll);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ls(e){let t="";if(ae(e))t=e;else if(B(e))for(let n=0;n<e.length;n++){const s=ls(e[n]);s&&(t+=s+" ")}else if(ee(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function vu(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ae(t)&&(e.class=ls(t)),n&&(e.style=os(n)),e}const Hl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Bl=ir(Hl);function Hi(e){return!!e||e===""}function jl(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Vt(e[s],t[s]);return n}function Vt(e,t){if(e===t)return!0;let n=Ir(e),s=Ir(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=De(e),s=De(t),n||s)return e===t;if(n=B(e),s=B(t),n||s)return n&&s?jl(e,t):!1;if(n=ee(e),s=ee(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!Vt(e[o],t[o]))return!1}}return String(e)===String(t)}function Bi(e,t){return e.findIndex(n=>Vt(n,t))}const ji=e=>!!(e&&e.__v_isRef===!0),kl=e=>ae(e)?e:e==null?"":B(e)||ee(e)&&(e.toString===Li||!$(e.toString))?ji(e)?kl(e.value):JSON.stringify(e,ki,2):String(e),ki=(e,t)=>ji(t)?ki(e,t.value):$t(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[Ss(s,i)+" =>"]=r,n),{})}:ts(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ss(n))}:De(t)?Ss(t):ee(t)&&!B(t)&&!Fi(t)?String(t):t,Ss=(e,t="")=>{var n;return De(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.41
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let me;class Ui{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&me&&(me.active?(this.parent=me,this.index=(me.scopes||(me.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}const s=this.effects.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}}run(t){if(this._active){const n=me;try{return me=this,t()}finally{me=n}}}on(){++this._on===1&&(this.prevScope=me,me=this)}off(){if(this._on>0&&--this._on===0){if(me===this)me=this.prevScope;else{let t=me;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(n=0,s=r.length;n<s;n++)r[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Ki(e){return new Ui(e)}function Gi(){return me}function Ul(e,t=!1){me&&me.cleanups.push(e)}let ce;const Cs=new WeakSet;class Wi{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,me&&(me.active?me.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Cs.has(this)&&(Cs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||qi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Mr(this),zi(this);const t=ce,n=Ue;ce=this,Ue=!0;try{return this.fn()}finally{Ji(this),ce=t,Ue=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)fr(t);this.deps=this.depsTail=void 0,Mr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Cs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Bs(this)&&this.run()}get dirty(){return Bs(this)}}let $i=0,un,hn;function qi(e,t=!1){if(e.flags|=8,t){e.next=hn,hn=e;return}e.next=un,un=e}function cr(){$i++}function ar(){if(--$i>0)return;if(hn){let t=hn;for(hn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;un;){let t=un;for(un=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 zi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ji(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),fr(s),Kl(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Bs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Yi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Yi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===yn)||(e.globalVersion=yn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Bs(e))))return;e.flags|=2;const t=e.dep,n=ce,s=Ue;ce=e,Ue=!0;try{zi(e);const r=e.fn(e._value);(t.version===0||et(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{ce=n,Ue=s,Ji(e),e.flags&=-3}}function fr(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)fr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Kl(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ue=!0;const Qi=[];function ut(){Qi.push(Ue),Ue=!1}function ht(){const e=Qi.pop();Ue=e===void 0?!0:e}function Mr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ce;ce=void 0;try{t()}finally{ce=n}}}let yn=0;class Gl{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 ur{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(!ce||!Ue||ce===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ce)n=this.activeLink=new Gl(ce,this),ce.deps?(n.prevDep=ce.depsTail,ce.depsTail.nextDep=n,ce.depsTail=n):ce.deps=ce.depsTail=n,Xi(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=ce.depsTail,n.nextDep=void 0,ce.depsTail.nextDep=n,ce.depsTail=n,ce.deps===n&&(ce.deps=s)}return n}trigger(t){this.version++,yn++,this.notify(t)}notify(t){cr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ar()}}}function Xi(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)Xi(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const kn=new WeakMap,Lt=Symbol(""),js=Symbol(""),vn=Symbol("");function ve(e,t,n){if(Ue&&ce){let s=kn.get(e);s||kn.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new ur),r.map=s,r.key=n),r.track()}}function lt(e,t,n,s,r,i){const o=kn.get(e);if(!o){yn++;return}const l=c=>{c&&c.trigger()};if(cr(),t==="clear")o.forEach(l);else{const c=B(e),f=c&&ns(n);if(c&&n==="length"){const a=Number(s);o.forEach((h,p)=>{(p==="length"||p===vn||!De(p)&&p>=a)&&l(h)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),f&&l(o.get(vn)),t){case"add":c?f&&l(o.get("length")):(l(o.get(Lt)),$t(e)&&l(o.get(js)));break;case"delete":c||(l(o.get(Lt)),$t(e)&&l(o.get(js)));break;case"set":$t(e)&&l(o.get(Lt));break}}ar()}function Wl(e,t){const n=kn.get(e);return n&&n.get(t)}function kt(e){const t=Q(e);return t===e?t:(ve(t,"iterate",vn),Me(e)?t:t.map(Ke))}function cs(e){return ve(e=Q(e),"iterate",vn),e}function Xe(e,t){return dt(e)?Jt(at(e)?Ke(t):t):Ke(t)}const $l={__proto__:null,[Symbol.iterator](){return As(this,Symbol.iterator,e=>Xe(this,e))},concat(...e){return kt(this).concat(...e.map(t=>B(t)?kt(t):t))},entries(){return As(this,"entries",e=>(e[1]=Xe(this,e[1]),e))},every(e,t){return st(this,"every",e,t,void 0,arguments)},filter(e,t){return st(this,"filter",e,t,n=>n.map(s=>Xe(this,s)),arguments)},find(e,t){return st(this,"find",e,t,n=>Xe(this,n),arguments)},findIndex(e,t){return st(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return st(this,"findLast",e,t,n=>Xe(this,n),arguments)},findLastIndex(e,t){return st(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return st(this,"forEach",e,t,void 0,arguments)},includes(...e){return xs(this,"includes",e)},indexOf(...e){return xs(this,"indexOf",e)},join(e){return kt(this).join(e)},lastIndexOf(...e){return xs(this,"lastIndexOf",e)},map(e,t){return st(this,"map",e,t,void 0,arguments)},pop(){return tn(this,"pop")},push(...e){return tn(this,"push",e)},reduce(e,...t){return Dr(this,"reduce",e,t)},reduceRight(e,...t){return Dr(this,"reduceRight",e,t)},shift(){return tn(this,"shift")},some(e,t){return st(this,"some",e,t,void 0,arguments)},splice(...e){return tn(this,"splice",e)},toReversed(){return kt(this).toReversed()},toSorted(e){return kt(this).toSorted(e)},toSpliced(...e){return kt(this).toSpliced(...e)},unshift(...e){return tn(this,"unshift",e)},values(){return As(this,"values",e=>Xe(this,e))}};function As(e,t,n){const s=cs(e),r=s[t]();return s!==e&&!Me(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=n(i.value)),i}),r}const ql=Array.prototype;function st(e,t,n,s,r,i){const o=cs(e),l=o!==e&&!Me(e),c=o[t];if(c!==ql[t]){const h=c.apply(e,i);return l?Ke(h):h}let f=n;o!==e&&(l?f=function(h,p){return n.call(this,Xe(e,h),p,e)}:n.length>2&&(f=function(h,p){return n.call(this,h,p,e)}));const a=c.call(o,f,s);return l&&r?r(a):a}function Dr(e,t,n,s){const r=cs(e),i=r!==e&&!Me(e);let o=n,l=!1;r!==e&&(i?(l=s.length===0,o=function(f,a,h){return l&&(l=!1,f=Xe(e,f)),n.call(this,f,Xe(e,a),h,e)}):n.length>3&&(o=function(f,a,h){return n.call(this,f,a,h,e)}));const c=r[t](o,...s);return l?Xe(e,c):c}function xs(e,t,n){const s=Q(e);ve(s,"iterate",vn);const r=s[t](...n);return(r===-1||r===!1)&&us(n[0])?(n[0]=Q(n[0]),s[t](...n)):r}function tn(e,t,n=[]){ut(),cr();const s=Q(e)[t].apply(e,n);return ar(),ht(),s}const zl=ir("__proto__,__v_isRef,__isVue"),Zi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(De));function Jl(e){De(e)||(e=String(e));const t=Q(this);return ve(t,"has",e),t.hasOwnProperty(e)}class eo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?oo:io:i?ro:so).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=B(t);if(!r){let c;if(o&&(c=$l[n]))return c;if(n==="hasOwnProperty")return Jl}const l=Reflect.get(t,n,ue(t)?t:s);if((De(n)?Zi.has(n):zl(n))||(r||ve(t,"get",n),i))return l;if(ue(l)){const c=o&&ns(n)?l:l.value;return r&&ee(c)?Us(c):c}return ee(l)?r?Us(l):Tn(l):l}}class to extends eo{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];const o=B(t)&&ns(n);if(!this._isShallow){const f=dt(i);if(!Me(s)&&!dt(s)&&(i=Q(i),s=Q(s)),!o&&ue(i)&&!ue(s))return f||(i.value=s),!0}const l=o?Number(n)<t.length:se(t,n),c=Reflect.set(t,n,s,ue(t)?t:r);return t===Q(r)&&c&&(l?et(s,i)&<(t,"set",n,s):lt(t,"add",n,s)),c}deleteProperty(t,n){const s=se(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&<(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!De(n)||!Zi.has(n))&&ve(t,"has",n),s}ownKeys(t){return ve(t,"iterate",B(t)?"length":Lt),Reflect.ownKeys(t)}}class no extends eo{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Yl=new to,Ql=new no,Xl=new to(!0),Zl=new no(!0),ks=e=>e,Nn=e=>Reflect.getPrototypeOf(e);function ec(e,t,n){return function(...s){const r=this.__v_raw,i=Q(r),o=$t(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,f=r[e](...s),a=n?ks:t?Jt:Ke;return!t&&ve(i,"iterate",c?js:Lt),pe(Object.create(f),{next(){const{value:h,done:p}=f.next();return p?{value:h,done:p}:{value:l?[a(h[0]),a(h[1])]:a(h),done:p}}})}}function Mn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function tc(e,t){const n={get(r){const i=this.__v_raw,o=Q(i),l=Q(r);e||(et(r,l)&&ve(o,"get",r),ve(o,"get",l));const{has:c}=Nn(o),f=t?ks:e?Jt:Ke;if(c.call(o,r))return f(i.get(r));if(c.call(o,l))return f(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&ve(Q(r),"iterate",Lt),r.size},has(r){const i=this.__v_raw,o=Q(i),l=Q(r);return e||(et(r,l)&&ve(o,"has",r),ve(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=Q(l),f=t?ks:e?Jt:Ke;return!e&&ve(c,"iterate",Lt),l.forEach((a,h)=>r.call(i,f(a),f(h),o))}};return pe(n,e?{add:Mn("add"),set:Mn("set"),delete:Mn("delete"),clear:Mn("clear")}:{add(r){const i=Q(this),o=Nn(i),l=Q(r),c=!t&&!Me(r)&&!dt(r)?l:r;return o.has.call(i,c)||et(r,c)&&o.has.call(i,r)||et(l,c)&&o.has.call(i,l)||(i.add(c),lt(i,"add",c,c)),this},set(r,i){!t&&!Me(i)&&!dt(i)&&(i=Q(i));const o=Q(this),{has:l,get:c}=Nn(o);let f=l.call(o,r);f||(r=Q(r),f=l.call(o,r));const a=c.call(o,r);return o.set(r,i),f?et(i,a)&<(o,"set",r,i):lt(o,"add",r,i),this},delete(r){const i=Q(this),{has:o,get:l}=Nn(i);let c=o.call(i,r);c||(r=Q(r),c=o.call(i,r)),l&&l.call(i,r);const f=i.delete(r);return c&<(i,"delete",r,void 0),f},clear(){const r=Q(this),i=r.size!==0,o=r.clear();return i&<(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=ec(r,e,t)}),n}function as(e,t){const n=tc(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(se(n,r)&&r in s?n:s,r,i)}const nc={get:as(!1,!1)},sc={get:as(!1,!0)},rc={get:as(!0,!1)},ic={get:as(!0,!0)},so=new WeakMap,ro=new WeakMap,io=new WeakMap,oo=new WeakMap;function oc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Tn(e){return dt(e)?e:fs(e,!1,Yl,nc,so)}function lo(e){return fs(e,!1,Xl,sc,ro)}function Us(e){return fs(e,!0,Ql,rc,io)}function bu(e){return fs(e,!0,Zl,ic,oo)}function fs(e,t,n,s,r){if(!ee(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=r.get(e);if(i)return i;const o=oc(Pl(e));if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function at(e){return dt(e)?at(e.__v_raw):!!(e&&e.__v_isReactive)}function dt(e){return!!(e&&e.__v_isReadonly)}function Me(e){return!!(e&&e.__v_isShallow)}function us(e){return e?!!e.__v_raw:!1}function Q(e){const t=e&&e.__v_raw;return t?Q(t):e}function hr(e){return!se(e,"__v_skip")&&Object.isExtensible(e)&&Vi(e,"__v_skip",!0),e}const Ke=e=>ee(e)?Tn(e):e,Jt=e=>ee(e)?Us(e):e;function ue(e){return e?e.__v_isRef===!0:!1}function dr(e){return co(e,!1)}function lc(e){return co(e,!0)}function co(e,t){return ue(e)?e:new cc(e,t)}class cc{constructor(t,n){this.dep=new ur,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Q(t),this._value=n?t:Ke(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Me(t)||dt(t);t=s?t:Q(t),et(t,n)&&(this._rawValue=t,this._value=s?t:Ke(t),this.dep.trigger())}}function Eu(e){e.dep&&e.dep.trigger()}function At(e){return ue(e)?e.value:e}function Su(e){return $(e)?e():At(e)}const ac={get:(e,t,n)=>t==="__v_raw"?e:At(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ue(r)&&!ue(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function ao(e){return at(e)?e:new Proxy(e,ac)}function fc(e){const t=B(e)?new Array(e.length):{};for(const n in e)t[n]=fo(e,n);return t}class uc{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=De(n)?n:String(n),this._raw=Q(t);let r=!0,i=t;if(!B(t)||De(this._key)||!ns(this._key))do r=!us(i)||Me(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=At(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ue(this._raw[this._key])){const n=this._object[this._key];if(ue(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Wl(this._raw,this._key)}}class hc{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Cu(e,t,n){return ue(e)?e:$(e)?new hc(e):ee(e)&&arguments.length>1?fo(e,t,n):dr(e)}function fo(e,t,n){return new uc(e,t,n)}class dc{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ur(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=yn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&ce!==this)return qi(this,!0),!0}get value(){const t=this.dep.track();return Yi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function pc(e,t,n=!1){let s,r;return $(e)?s=e:(s=e.get,r=e.set),new dc(s,r,n)}const Dn={},Un=new WeakMap;let It;function gc(e,t=!1,n=It){if(n){let s=Un.get(n);s||Un.set(n,s=[]),s.push(e)}}function mc(e,t,n=le){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=n,f=P=>r?P:Me(P)||r===!1||r===0?ct(P,1):ct(P);let a,h,p,m,C=!1,S=!1;if(ue(e)?(h=()=>e.value,C=Me(e)):at(e)?(h=()=>f(e),C=!0):B(e)?(S=!0,C=e.some(P=>at(P)||Me(P)),h=()=>e.map(P=>{if(ue(P))return P.value;if(at(P))return f(P);if($(P))return c?c(P,2):P()})):$(e)?t?h=c?()=>c(e,2):e:h=()=>{if(p){ut();try{p()}finally{ht()}}const P=It;It=a;try{return c?c(e,3,[m]):e(m)}finally{It=P}}:h=ke,t&&r){const P=h,K=r===!0?1/0:r;h=()=>ct(P(),K)}const D=Gi(),L=()=>{a.stop(),D&&D.active&&or(D.effects,a)};if(i&&t){const P=t;t=(...K)=>{const X=P(...K);return L(),X}}let x=S?new Array(e.length).fill(Dn):Dn;const M=P=>{if(!(!(a.flags&1)||!a.dirty&&!P))if(t){const K=a.run();if(P||r||C||(S?K.some((X,V)=>et(X,x[V])):et(K,x))){p&&p();const X=It;It=a;try{const V=[K,x===Dn?void 0:S&&x[0]===Dn?[]:x,m];x=K,c?c(t,3,V):t(...V)}finally{It=X}}}else a.run()};return l&&l(M),a=new Wi(h),a.scheduler=o?()=>o(M,!1):M,m=P=>gc(P,!1,a),p=a.onStop=()=>{const P=Un.get(a);if(P){if(c)c(P,4);else for(const K of P)K();Un.delete(a)}},t?s?M(!0):x=a.run():o?o(M.bind(null,!0),!0):a.run(),L.pause=a.pause.bind(a),L.resume=a.resume.bind(a),L.stop=L,L}function ct(e,t=1/0,n){if(t<=0||!ee(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ue(e))ct(e.value,t,n);else if(B(e))for(let s=0;s<e.length;s++)ct(e[s],t,n);else if(ts(e)||$t(e))e.forEach(s=>{ct(s,t,n)});else if(Fi(e)){for(const s in e)ct(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&ct(e[s],t,n)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.41
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function On(e,t,n,s){try{return s?e(...s):e()}catch(r){hs(r,t,n)}}function je(e,t,n,s){if($(e)){const r=On(e,t,n,s);return r&&Di(r)&&r.catch(i=>{hs(i,t,n)}),r}if(B(e)){const r=[];for(let i=0;i<e.length;i++)r.push(je(e[i],t,n,s));return r}}function hs(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||le;if(t){let l=t.parent;const c=t.proxy,f=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const a=l.ec;if(a){for(let h=0;h<a.length;h++)if(a[h](e,c,f)===!1)return}l=l.parent}if(i){ut(),On(i,null,10,[e,c,f]),ht();return}}_c(e,n,r,s,o)}function _c(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const we=[];let Qe=-1;const qt=[];let Et=null,Kt=0;const uo=Promise.resolve();let Kn=null;function pr(e){const t=Kn||uo;return e?t.then(this?e.bind(this):e):t}function yc(e){let t=Qe+1,n=we.length;for(;t<n;){const s=t+n>>>1,r=we[s],i=bn(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function gr(e){if(!(e.flags&1)){const t=bn(e),n=we[we.length-1];!n||!(e.flags&2)&&t>=bn(n)?we.push(e):we.splice(yc(t),0,e),e.flags|=1,ho()}}function ho(){Kn||(Kn=uo.then(go))}function vc(e){if(!B(e))Et&&e.id===-1?Et.splice(Kt+1,0,e):e.flags&1||(qt.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)qt.push(e[t]);ho()}function Lr(e,t,n=Qe+1){for(;n<we.length;n++){const s=we[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;we.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function po(e){if(qt.length){const t=[...new Set(qt)].sort((n,s)=>bn(n)-bn(s));if(qt.length=0,Et){for(let n=0;n<t.length;n++)Et.push(t[n]);return}for(Et=t,Kt=0;Kt<Et.length;Kt++){const n=Et[Kt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Et=null,Kt=0}}const bn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function go(e){try{for(Qe=0;Qe<we.length;Qe++){const t=we[Qe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),On(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Qe<we.length;Qe++){const t=we[Qe];t&&(t.flags&=-2)}Qe=-1,we.length=0,po(),Kn=null,(we.length||qt.length)&&go()}}let ye=null,mo=null;function Gn(e){const t=ye;return ye=e,mo=e&&e.type.__scopeId||null,t}function bc(e,t=ye,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&zn(-1);const i=Gn(t),o=ft.length;let l;try{l=e(...r)}finally{for(let c=ft.length;c>o;c--)Cr();Gn(i),s._d&&zn(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function Au(e,t){if(ye===null)return e;const n=ys(ye),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,c=le]=t[r];i&&($(i)&&(i={mounted:i,updated:i}),i.deep&&ct(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:c}))}return e}function Tt(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[s];c&&(ut(),je(c,n,8,[e.el,l,e,t]),ht())}}function Bn(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 Be(e,t,n=!1){const s=Pn();if(s||Ft){let r=Ft?Ft._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&&$(t)?t.call(s&&s.proxy):t}}function Ec(){return!!(Pn()||Ft)}const Sc=Symbol.for("v-scx"),Cc=()=>Be(Sc);function xu(e,t){return mr(e,null,t)}function dn(e,t,n){return mr(e,t,n)}function mr(e,t,n=le){const{immediate:s,deep:r,flush:i,once:o}=n,l=pe({},n),c=t&&s||!t&&i!=="post";let f;if(xn){if(i==="sync"){const m=Cc();f=m.__watcherHandles||(m.__watcherHandles=[])}else if(!c){const m=()=>{};return m.stop=ke,m.resume=ke,m.pause=ke,m}}const a=Ee;l.call=(m,C,S)=>je(m,a,C,S);let h=!1;i==="post"?l.scheduler=m=>{Ae(m,a&&a.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(m,C)=>{C?m():gr(m)}),l.augmentJob=m=>{t&&(m.flags|=4),h&&(m.flags|=2,a&&(m.id=a.uid,m.i=a))};const p=mc(e,t,l);return xn&&(f?f.push(p):c&&p()),p}function Ac(e,t,n){const s=this.proxy,r=ae(e)?e.includes(".")?_o(s,e):()=>s[e]:e.bind(s,s);let i;$(t)?i=t:(i=t.handler,n=t);const o=In(this),l=mr(r,i.bind(s),n);return o(),l}function _o(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 yt=new WeakMap,yo=Symbol("_vte"),ds=e=>e.__isTeleport,Nt=e=>e&&(e.disabled||e.disabled===""),xc=e=>e&&(e.defer||e.defer===""),Fr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Vr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ks=(e,t)=>{const n=e&&e.to;return ae(n)?t?t(n):null:n},wc={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,f){const{mc:a,pc:h,pbc:p,o:{insert:m,querySelector:C,createText:S,createComment:D,parentNode:L}}=f,x=Nt(t.props);let{dynamicChildren:M}=t;const P=(V,H,A)=>{V.shapeFlag&16&&a(V.children,H,A,r,i,o,l,c)},K=(V=t)=>{const H=Nt(V.props),A=V.target=Ks(V.props,C),G=Gs(A,V,S,m);A&&(o!=="svg"&&Fr(A)?o="svg":o!=="mathml"&&Vr(A)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(A),H||(P(V,A,G),ln(V,!1)))},X=V=>{const H=()=>{if(yt.get(V)===H){if(yt.delete(V),Nt(V.props)){const A=L(V.el)||n;P(V,A,V.anchor),ln(V,!0)}K(V)}};yt.set(V,H),Ae(H,i)};if(e==null){const V=t.el=S(""),H=t.anchor=S("");if(m(V,n,s),m(H,n,s),xc(t.props)||i&&i.pendingBranch){X(t);return}x&&(P(t,n,H),ln(t,!0)),K()}else{t.el=e.el;const V=t.anchor=e.anchor,H=yt.get(e);if(H){H.flags|=8,yt.delete(e),X(t);return}t.targetStart=e.targetStart;const A=t.target=e.target,G=t.targetAnchor=e.targetAnchor,z=Nt(e.props),O=z?n:A,J=z?V:G;if(o==="svg"||Fr(A)?o="svg":(o==="mathml"||Vr(A))&&(o="mathml"),M?(p(e.dynamicChildren,M,O,r,i,o,l),Sr(e,t,!0)):c||h(e,t,O,J,r,i,o,l,!1),x)z?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ln(t,n,V,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const fe=Ks(t.props,C);fe&&(t.target=fe,Ln(t,fe,null,f,0))}else z&&Ln(t,A,G,f,1);ln(t,x)}},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:c,targetStart:f,targetAnchor:a,target:h,props:p}=e,m=Nt(p),C=i||!m,S=yt.get(e);if(S&&(S.flags|=8,yt.delete(e)),h&&(r(f),r(a)),i&&r(c),!S&&(m||h)&&o&16)for(let D=0;D<l.length;D++){const L=l[D];s(L,t,n,C,!!L.dynamicChildren)}},move:Ln,hydrate:Rc};function Ln(e,t,n,{o:{insert:s},m:r},i=2){i===0&&s(e.targetAnchor,t,n);const{el:o,anchor:l,shapeFlag:c,children:f,props:a}=e,h=i===2;if(h&&s(o,t,n),!yt.has(e)&&(!h||Nt(a))&&c&16)for(let p=0;p<f.length;p++)r(f[p],t,n,2);h&&s(l,t,n)}function Rc(e,t,n,s,r,i,{o:{nextSibling:o,parentNode:l,querySelector:c,insert:f,createText:a}},h){function p(D,L){let x=L;for(;x;){if(x&&x.nodeType===8){if(x.data==="teleport start anchor")t.targetStart=x;else if(x.data==="teleport anchor"){t.targetAnchor=x,D._lpa=t.targetAnchor&&o(t.targetAnchor);break}}x=o(x)}}function m(D,L){L.anchor=h(o(D),L,l(D),n,s,r,i)}const C=t.target=Ks(t.props,c),S=Nt(t.props);if(C){const D=C._lpa||C.firstChild;t.shapeFlag&16&&(S?(m(e,t),p(C,D),t.targetAnchor||Gs(C,t,a,f,l(e)===C?e:null)):(t.anchor=o(e),p(C,D),t.targetAnchor||Gs(C,t,a,f),h(D&&o(D),t,C,n,s,r,i))),ln(t,S)}else S&&t.shapeFlag&16&&(m(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const wu=wc;function ln(e,t){const n=e.ctx;if(n&&n.ut){let s,r;for(t?(s=e.el,r=e.anchor):(s=e.targetStart,r=e.targetAnchor);s&&s!==r;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function Gs(e,t,n,s,r=null){const i=t.targetStart=n(""),o=t.targetAnchor=n("");return i[yo]=o,e&&(s(i,e,r),s(o,e,r)),o}const Ve=Symbol("_leaveCb"),nn=Symbol("_enterCb");function vo(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ro(()=>{e.isMounted=!0}),Oo(()=>{e.isUnmounting=!0}),e}const Fe=[Function,Array],bo={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Fe,onEnter:Fe,onAfterEnter:Fe,onEnterCancelled:Fe,onBeforeLeave:Fe,onLeave:Fe,onAfterLeave:Fe,onLeaveCancelled:Fe,onBeforeAppear:Fe,onAppear:Fe,onAfterAppear:Fe,onAppearCancelled:Fe},Eo=e=>{const t=e.subTree;return t.component?Eo(t.component):t},Tc={name:"BaseTransition",props:bo,setup(e,{slots:t}){const n=Pn(),s=vo();return()=>{const r=t.default&&_r(t.default(),!0),i=r&&r.length?So(r):n.subTree?ga():void 0;if(!i)return;const o=Q(e),{mode:l}=o;if(s.isLeaving)return ws(i);const c=Wn(i);if(!c)return ws(i);let f=En(c,o,s,n,h=>f=h);c.type!==be&&Ht(c,f);let a=n.subTree&&Wn(n.subTree);if(a&&a.type!==be&&!Mt(a,c)&&Eo(n).type!==be){let h=En(a,o,s,n);if(Ht(a,h),l==="out-in"&&c.type!==be)return s.isLeaving=!0,h.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave,a=void 0},ws(i);l==="in-out"&&c.type!==be?h.delayLeave=(p,m,C)=>{const S=Co(s,a);S[String(a.key)]=a,p[Ve]=()=>{m(),p[Ve]=void 0,delete f.delayedLeave,a=void 0},f.delayedLeave=()=>{C(),delete f.delayedLeave,a=void 0}}:a=void 0}else a&&(a=void 0);return i}}};function So(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==be){t=n;break}}return t}const Oc=Tc;function Co(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function En(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:f,onAfterEnter:a,onEnterCancelled:h,onBeforeLeave:p,onLeave:m,onAfterLeave:C,onLeaveCancelled:S,onBeforeAppear:D,onAppear:L,onAfterAppear:x,onAppearCancelled:M}=t,P=String(e.key),K=Co(n,e),X=(A,G)=>{A&&je(A,s,9,G)},V=(A,G)=>{const z=G[1];X(A,G),B(A)?A.every(O=>O.length<=1)&&z():A.length<=1&&z()},H={mode:o,persisted:l,beforeEnter(A){let G=c;if(!n.isMounted)if(i)G=D||c;else return;A[Ve]&&A[Ve](!0);const z=K[P];z&&Mt(e,z)&&z.el[Ve]&&z.el[Ve](),X(G,[A])},enter(A){if(K[P]===e)return;let G=f,z=a,O=h;if(!n.isMounted)if(i)G=L||f,z=x||a,O=M||h;else return;let J=!1;A[nn]=Se=>{J||(J=!0,Se?X(O,[A]):X(z,[A]),H.delayedLeave&&H.delayedLeave(),A[nn]=void 0)};const fe=A[nn].bind(null,!1);G?V(G,[A,fe]):fe()},leave(A,G){const z=String(e.key);if(A[nn]&&A[nn](!0),n.isUnmounting)return G();X(p,[A]);let O=!1;A[Ve]=fe=>{O||(O=!0,G(),fe?X(S,[A]):X(C,[A]),A[Ve]=void 0,K[z]===e&&delete K[z])};const J=A[Ve].bind(null,!1);K[z]=e,m?V(m,[A,J]):J()},clone(A){const G=En(A,t,n,s,r);return r&&r(G),G}};return H}function ws(e){if(ps(e))return e=xt(e),e.children=null,e}function Wn(e){if(!ps(e))return ds(e.type)&&e.children?So(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&$(n.default))return n.default()}}function Ht(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Ht(ds(n.type)&&Wn(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function _r(e,t=!1,n){let s=[],r=0;for(let i=0;i<e.length;i++){let o=e[i];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===Pe?(o.patchFlag&128&&r++,s=s.concat(_r(o.children,t,l))):(t||o.type!==be)&&s.push(l!=null?xt(o,{key:l}):o)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}function Ao(e,t){return $(e)?pe({name:e.name},t,{setup:e}):e}function xo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Hr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const $n=new WeakMap;function pn(e,t,n,s,r=!1){if(B(e)){e.forEach((S,D)=>pn(S,t&&(B(t)?t[D]:t),n,s,r));return}if(zt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&pn(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?ys(s.component):s.el,o=r?null:i,{i:l,r:c}=e,f=t&&t.r,a=l.refs===le?l.refs={}:l.refs,h=l.setupState,p=Q(h),m=h===le?Mi:S=>Hr(a,S)?!1:se(p,S),C=(S,D)=>!(D&&Hr(a,D));if(f!=null&&f!==c){if(Br(t),ae(f))a[f]=null,m(f)&&(h[f]=null);else if(ue(f)){const S=t;C(f,S.k)&&(f.value=null),S.k&&(a[S.k]=null)}}if($(c))On(c,l,12,[o,a]);else{const S=ae(c),D=ue(c);if(S||D){const L=()=>{if(e.f){const x=S?m(c)?h[c]:a[c]:C()||!e.k?c.value:a[e.k];if(r)B(x)&&or(x,i);else if(B(x))x.includes(i)||x.push(i);else if(S)a[c]=[i],m(c)&&(h[c]=a[c]);else{const M=[i];C(c,e.k)&&(c.value=M),e.k&&(a[e.k]=M)}}else S?(a[c]=o,m(c)&&(h[c]=o)):D&&(C(c,e.k)&&(c.value=o),e.k&&(a[e.k]=o))};if(o){const x=()=>{L(),$n.delete(e)};x.id=-1,$n.set(e,x),Ae(x,n)}else Br(e),L()}}}function Br(e){const t=$n.get(e);t&&(t.flags|=8,$n.delete(e))}is().requestIdleCallback;is().cancelIdleCallback;const zt=e=>!!e.type.__asyncLoader,ps=e=>e.type.__isKeepAlive;function Pc(e,t){wo(e,"a",t)}function Ic(e,t){wo(e,"da",t)}function wo(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(gs(t,s,n),n){let r=n.parent;for(;r&&r.parent;)ps(r.parent.vnode)&&Nc(s,t,n,r),r=r.parent}}function Nc(e,t,n,s){const r=gs(t,e,s,!0);Po(()=>{or(s[t],r)},n)}function gs(e,t,n=Ee,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ut();const l=In(n),c=je(t,n,e,o);return l(),ht(),c});return s?r.unshift(i):r.push(i),i}}const pt=e=>(t,n=Ee)=>{(!xn||e==="sp")&&gs(e,(...s)=>t(...s),n)},Mc=pt("bm"),Ro=pt("m"),Dc=pt("bu"),To=pt("u"),Oo=pt("bum"),Po=pt("um"),Lc=pt("sp"),Fc=pt("rtg"),Vc=pt("rtc");function Hc(e,t=Ee){gs("ec",e,t)}const yr="components",Bc="directives";function Ru(e,t){return vr(yr,e,!0,t)||e}const Io=Symbol.for("v-ndc");function Tu(e){return ae(e)?vr(yr,e,!1)||e:e||Io}function Ou(e){return vr(Bc,e)}function vr(e,t,n=!0,s=!1){const r=ye||Ee;if(r){const i=r.type;if(e===yr){const l=Ca(i,!1);if(l&&(l===t||l===Te(t)||l===rs(Te(t))))return i}const o=jr(r[e]||i[e],t)||jr(r.appContext[e],t);return!o&&s?i:o}}function jr(e,t){return e&&(e[t]||e[Te(t)]||e[rs(Te(t))])}function Pu(e,t,n,s){let r;const i=n,o=B(e);if(o||ae(e)){const l=o&&at(e);let c=!1,f=!1;l&&(c=!Me(e),f=dt(e),e=cs(e)),r=new Array(e.length);for(let a=0,h=e.length;a<h;a++)r[a]=t(c?f?Jt(Ke(e[a])):Ke(e[a]):e[a],a,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(ee(e))if(e[Symbol.iterator])r=Array.from(e,(l,c)=>t(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,f=l.length;c<f;c++){const a=l[c];r[c]=t(e[a],a,c,i)}}else r=[];return r}function Iu(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(B(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.key?(...r)=>{const i=s.fn(...r);return i&&(i.key=s.key),i}:s.fn)}return e}function Nu(e,t,n,s,r,i){if(n==null&&(n={}),ye.ce||ye.parent&&zt(ye.parent)&&ye.parent.ce){const f=n,a=Object.keys(f).length>0;return t!=="default"&&(f.name=t),Js(),Ys(Pe,null,[Re("slot",f,s&&s())],a?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);const l=ft.length;Js();let c;try{const f=o&&No(o(n)),a=n.key||i||f&&f.key;c=Ys(Pe,{key:(a&&!De(a)?a:`_${t}`)+(!f&&s?"_fb":"")},f||(s?s():[]),f&&e._===1?64:-2)}catch(f){for(let a=ft.length;a>l;a--)Cr();throw f}finally{o&&o._c&&(o._d=!0)}return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),c}function No(e){return e.some(t=>Cn(t)?!(t.type===be||t.type===Pe&&!No(t.children)):!0)?e:null}function Mu(e,t){const n={};for(const s in e)n[Vn(s)]=e[s];return n}const Ws=e=>e?Zo(e)?ys(e):Ws(e.parent):null,gn=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=>Ws(e.parent),$root:e=>Ws(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Lo(e),$forceUpdate:e=>e.f||(e.f=()=>{gr(e.update)}),$nextTick:e=>e.n||(e.n=pr.bind(e.proxy)),$watch:e=>Ac.bind(e)}),Rs=(e,t)=>e!==le&&!e.__isScriptSetup&&se(e,t),jc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Rs(s,t))return o[t]=1,s[t];if(r!==le&&se(r,t))return o[t]=2,r[t];if(se(i,t))return o[t]=3,i[t];if(n!==le&&se(n,t))return o[t]=4,n[t];$s&&(o[t]=0)}}const f=gn[t];let a,h;if(f)return t==="$attrs"&&ve(e.attrs,"get",""),f(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(n!==le&&se(n,t))return o[t]=4,n[t];if(h=c.config.globalProperties,se(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Rs(r,t)?(r[t]=n,!0):s!==le&&se(s,t)?(s[t]=n,!0):se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:i,type:o}},l){let c;return!!(n[l]||e!==le&&l[0]!=="$"&&se(e,l)||Rs(t,l)||se(i,l)||se(s,l)||se(gn,l)||se(r.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:se(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Du(){return Mo().slots}function Lu(){return Mo().attrs}function Mo(e){const t=Pn();return t.setupContext||(t.setupContext=tl(t))}function kr(e){return B(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let $s=!0;function kc(e){const t=Lo(e),n=e.proxy,s=e.ctx;$s=!1,t.beforeCreate&&Ur(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:f,created:a,beforeMount:h,mounted:p,beforeUpdate:m,updated:C,activated:S,deactivated:D,beforeDestroy:L,beforeUnmount:x,destroyed:M,unmounted:P,render:K,renderTracked:X,renderTriggered:V,errorCaptured:H,serverPrefetch:A,expose:G,inheritAttrs:z,components:O,directives:J,filters:fe}=t;if(f&&Uc(f,s,null),o)for(const q in o){const te=o[q];$(te)&&(s[q]=te.bind(n))}if(r){const q=r.call(n,n);ee(q)&&(e.data=Tn(q))}if($s=!0,i)for(const q in i){const te=i[q],nt=$(te)?te.bind(n,n):$(te.get)?te.get.bind(n,n):ke,gt=!$(te)&&$(te.set)?te.set.bind(n):ke,We=He({get:nt,set:gt});Object.defineProperty(s,q,{enumerable:!0,configurable:!0,get:()=>We.value,set:Oe=>We.value=Oe})}if(l)for(const q in l)Do(l[q],s,n,q);if(c){const q=$(c)?c.call(n):c;Reflect.ownKeys(q).forEach(te=>{Bn(te,q[te])})}a&&Ur(a,e,"c");function ie(q,te){B(te)?te.forEach(nt=>q(nt.bind(n))):te&&q(te.bind(n))}if(ie(Mc,h),ie(Ro,p),ie(Dc,m),ie(To,C),ie(Pc,S),ie(Ic,D),ie(Hc,H),ie(Vc,X),ie(Fc,V),ie(Oo,x),ie(Po,P),ie(Lc,A),B(G))if(G.length){const q=e.exposed||(e.exposed={});G.forEach(te=>{Object.defineProperty(q,te,{get:()=>n[te],set:nt=>n[te]=nt,enumerable:!0})})}else e.exposed||(e.exposed={});K&&e.render===ke&&(e.render=K),z!=null&&(e.inheritAttrs=z),O&&(e.components=O),J&&(e.directives=J),A&&xo(e)}function Uc(e,t,n=ke){B(e)&&(e=qs(e));for(const s in e){const r=e[s];let i;ee(r)?"default"in r?i=Be(r.from||s,r.default,!0):i=Be(r.from||s):i=Be(r),ue(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function Ur(e,t,n){je(B(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Do(e,t,n,s){let r=s.includes(".")?_o(n,s):()=>n[s];if(ae(e)){const i=t[e];$(i)&&dn(r,i)}else if($(e))dn(r,e.bind(n));else if(ee(e))if(B(e))e.forEach(i=>Do(i,t,n,s));else{const i=$(e.handler)?e.handler.bind(n):t[e.handler];$(i)&&dn(r,i,e)}}function Lo(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(f=>qn(c,f,o,!0)),qn(c,t,o)),ee(t)&&i.set(t,c),c}function qn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&qn(e,i,n,!0),r&&r.forEach(o=>qn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=Kc[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Kc={data:Kr,props:Gr,emits:Gr,methods:cn,computed:cn,beforeCreate:Ce,created:Ce,beforeMount:Ce,mounted:Ce,beforeUpdate:Ce,updated:Ce,beforeDestroy:Ce,beforeUnmount:Ce,destroyed:Ce,unmounted:Ce,activated:Ce,deactivated:Ce,errorCaptured:Ce,serverPrefetch:Ce,components:cn,directives:cn,watch:Wc,provide:Kr,inject:Gc};function Kr(e,t){return t?e?function(){return pe($(e)?e.call(this,this):e,$(t)?t.call(this,this):t)}:t:e}function Gc(e,t){return cn(qs(e),qs(t))}function qs(e){if(B(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ce(e,t){return e?[...new Set([].concat(e,t))]:t}function cn(e,t){return e?pe(Object.create(null),e,t):t}function Gr(e,t){return e?B(e)&&B(t)?[...new Set([...e,...t])]:pe(Object.create(null),kr(e),kr(t??{})):t}function Wc(e,t){if(!e)return t;if(!t)return e;const n=pe(Object.create(null),e);for(const s in t)n[s]=Ce(e[s],t[s]);return n}function Fo(){return{app:null,config:{isNativeTag:Mi,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 $c=0;function qc(e,t){return function(s,r=null){$(s)||(s=pe({},s)),r!=null&&!ee(r)&&(r=null);const i=Fo(),o=new WeakSet,l=[];let c=!1;const f=i.app={_uid:$c++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:xa,get config(){return i.config},set config(a){},use(a,...h){return o.has(a)||(a&&$(a.install)?(o.add(a),a.install(f,...h)):$(a)&&(o.add(a),a(f,...h))),f},mixin(a){return i.mixins.includes(a)||i.mixins.push(a),f},component(a,h){return h?(i.components[a]=h,f):i.components[a]},directive(a,h){return h?(i.directives[a]=h,f):i.directives[a]},mount(a,h,p){if(!c){const m=f._ceVNode||Re(s,r);return m.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),e(m,a,p),c=!0,f._container=a,a.__vue_app__=f,ys(m.component)}},onUnmount(a){l.push(a)},unmount(){c&&(je(l,f._instance,16),e(null,f._container),delete f._container.__vue_app__)},provide(a,h){return i.provides[a]=h,f},runWithContext(a){const h=Ft;Ft=f;try{return a()}finally{Ft=h}}};return f}}let Ft=null;const zc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Te(t)}Modifiers`]||e[`${wt(t)}Modifiers`];function Jc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||le;let r=n;const i=t.startsWith("update:"),o=i&&zc(s,t.slice(7));o&&(o.trim&&(r=n.map(a=>ae(a)?a.trim():a)),o.number&&(r=n.map(lr)));let l,c=s[l=Vn(t)]||s[l=Vn(Te(t))];!c&&i&&(c=s[l=Vn(wt(t))]),c&&je(c,e,6,r);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,je(f,e,6,r)}}const Yc=new WeakMap;function Vo(e,t,n=!1){const s=n?Yc:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!$(e)){const c=f=>{const a=Vo(f,t,!0);a&&(l=!0,pe(o,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(ee(e)&&s.set(e,null),null):(B(i)?i.forEach(c=>o[c]=null):pe(o,i),ee(e)&&s.set(e,o),o)}function ms(e,t){return!e||!Zn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),se(e,t[0].toLowerCase()+t.slice(1))||se(e,wt(t))||se(e,t))}function Wr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:f,renderCache:a,props:h,data:p,setupState:m,ctx:C,inheritAttrs:S}=e,D=Gn(e);let L,x;try{if(n.shapeFlag&4){const P=r||s,K=P;L=Ze(f.call(K,P,a,h,m,p,C)),x=l}else{const P=t;L=Ze(P.length>1?P(h,{attrs:l,slots:o,emit:c}):P(h,null)),x=t.props?l:Qc(l)}}catch(P){ft.length=0,hs(P,e,1),L=Re(be)}let M=L;if(x&&S!==!1){const P=Object.keys(x),{shapeFlag:K}=M;P.length&&K&7&&(i&&P.some(es)&&(x=Xc(x,i)),M=xt(M,x,!1,!0))}if(n.dirs&&(M=xt(M,null,!1,!0),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition){const P=ds(M.type)&&Wn(M)||M;Ht(P,n.transition)}return L=M,Gn(D),L}const Qc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Zn(n))&&((t||(t={}))[n]=e[n]);return t},Xc=(e,t)=>{const n={};for(const s in e)(!es(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Zc(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,f=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?$r(s,o,f):!!o;if(c&8){const a=t.dynamicProps;for(let h=0;h<a.length;h++){const p=a[h];if(Ho(o,s,p)&&!ms(f,p))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?$r(s,o,f):!0:!!o;return!1}function $r(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(Ho(t,e,i)&&!ms(n,i))return!0}return!1}function Ho(e,t,n){const s=e[n],r=t[n];return n==="style"&&ee(s)&&ee(r)?!Vt(s,r):s!==r}function ea({vnode:e,parent:t,suspense:n},s){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=s,e=r),r===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const Bo={},jo=()=>Object.create(Bo),ko=e=>Object.getPrototypeOf(e)===Bo;function ta(e,t,n,s=!1){const r={},i=jo();e.propsDefaults=Object.create(null),Uo(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:lo(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function na(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=Q(r),[c]=e.propsOptions;let f=!1;if((s||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let h=0;h<a.length;h++){let p=a[h];if(ms(e.emitsOptions,p))continue;const m=t[p];if(c)if(se(i,p))m!==i[p]&&(i[p]=m,f=!0);else{const C=Te(p);r[C]=zs(c,l,C,m,e,!1)}else m!==i[p]&&(i[p]=m,f=!0)}}}else{Uo(e,t,r,i)&&(f=!0);let a;for(const h in l)(!t||!se(t,h)&&((a=wt(h))===h||!se(t,a)))&&(c?n&&(n[h]!==void 0||n[a]!==void 0)&&(r[h]=zs(c,l,h,void 0,e,!0)):delete r[h]);if(i!==l)for(const h in i)(!t||!se(t,h))&&(delete i[h],f=!0)}f&<(e.attrs,"set","")}function Uo(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let c in t){if(fn(c))continue;const f=t[c];let a;r&&se(r,a=Te(c))?!i||!i.includes(a)?n[a]=f:(l||(l={}))[a]=f:ms(e.emitsOptions,c)||(!(c in s)||f!==s[c])&&(s[c]=f,o=!0)}if(i){const c=Q(n),f=l||le;for(let a=0;a<i.length;a++){const h=i[a];n[h]=zs(r,c,h,f[h],e,!se(f,h))}}return o}function zs(e,t,n,s,r,i){const o=e[n];if(o!=null){const l=se(o,"default");if(l&&s===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&$(c)){const{propsDefaults:f}=r;if(n in f)s=f[n];else{const a=In(r);s=f[n]=c.call(null,t),a()}}else s=c;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!l?s=!1:o[1]&&(s===""||s===wt(n))&&(s=!0))}return s}const sa=new WeakMap;function Ko(e,t,n=!1){const s=n?sa:t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},l=[];let c=!1;if(!$(e)){const a=h=>{c=!0;const[p,m]=Ko(h,t,!0);pe(o,p),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!c)return ee(e)&&s.set(e,Wt),Wt;if(B(i))for(let a=0;a<i.length;a++){const h=Te(i[a]);qr(h)&&(o[h]=le)}else if(i)for(const a in i){const h=Te(a);if(qr(h)){const p=i[a],m=o[h]=B(p)||$(p)?{type:p}:pe({},p),C=m.type;let S=!1,D=!0;if(B(C))for(let L=0;L<C.length;++L){const x=C[L],M=$(x)&&x.name;if(M==="Boolean"){S=!0;break}else M==="String"&&(D=!1)}else S=$(C)&&C.name==="Boolean";m[0]=S,m[1]=D,(S||se(m,"default"))&&l.push(h)}}const f=[o,l];return ee(e)&&s.set(e,f),f}function qr(e){return e[0]!=="$"&&!fn(e)}const br=e=>e==="_"||e==="_ctx"||e==="$stable",Er=e=>B(e)?e.map(Ze):[Ze(e)],ra=(e,t,n)=>{if(t._n)return t;const s=bc((...r)=>Er(t(...r)),n);return s._c=!1,s},Go=(e,t,n)=>{const s=e._ctx;for(const r in e){if(br(r))continue;const i=e[r];if($(i))t[r]=ra(r,i,s);else if(i!=null){const o=Er(i);t[r]=()=>o}}},Wo=(e,t)=>{const n=Er(t);e.slots.default=()=>n},$o=(e,t,n)=>{for(const s in t)(n||!br(s))&&(e[s]=t[s])},ia=(e,t,n)=>{const s=e.slots=jo();if(e.vnode.shapeFlag&32){const r=t._;r?($o(s,t,n),n&&Vi(s,"_",r,!0)):Go(t,s)}else t&&Wo(e,t)},oa=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=le;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:$o(r,t,n):(i=!t.$stable,Go(t,r)),o=t}else t&&(Wo(e,t),o={default:1});if(i)for(const l in r)!br(l)&&o[l]==null&&delete r[l]},Ae=ua;function la(e){return ca(e)}function ca(e,t){const n=is();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:f,setElementText:a,parentNode:h,nextSibling:p,setScopeId:m=ke,insertStaticContent:C}=e,S=(u,d,g,y=null,b=null,_=null,T=void 0,R=null,w=!!d.dynamicChildren)=>{if(u===d)return;u&&!Mt(u,d)&&(y=v(u),Oe(u,b,_,!0),u=null),d.patchFlag===-2&&(w=!1,d.dynamicChildren=null);const{type:E,ref:U,shapeFlag:N}=d;switch(E){case _s:D(u,d,g,y);break;case be:L(u,d,g,y);break;case Os:u==null&&x(d,g,y,T);break;case Pe:O(u,d,g,y,b,_,T,R,w);break;default:N&1?K(u,d,g,y,b,_,T,R,w):N&6?J(u,d,g,y,b,_,T,R,w):(N&64||N&128)&&E.process(u,d,g,y,b,_,T,R,w,j)}U!=null&&b?pn(U,u&&u.ref,_,d||u,!d):U==null&&u&&u.ref!=null&&pn(u.ref,null,_,u,!0)},D=(u,d,g,y)=>{if(u==null)s(d.el=l(d.children),g,y);else{const b=d.el=u.el;d.children!==u.children&&f(b,d.children)}},L=(u,d,g,y)=>{u==null?s(d.el=c(d.children||""),g,y):d.el=u.el},x=(u,d,g,y)=>{[u.el,u.anchor]=C(u.children,d,g,y,u.el,u.anchor)},M=({el:u,anchor:d},g,y)=>{let b;for(;u&&u!==d;)b=p(u),s(u,g,y),u=b;s(d,g,y)},P=({el:u,anchor:d})=>{let g;for(;u&&u!==d;)g=p(u),r(u),u=g;r(d)},K=(u,d,g,y,b,_,T,R,w)=>{if(d.type==="svg"?T="svg":d.type==="math"&&(T="mathml"),u==null)X(d,g,y,b,_,T,R,w);else{const E=u.el&&u.el._isVueCE?u.el:null;try{E&&E._beginPatch(),A(u,d,b,_,T,R,w)}finally{E&&E._endPatch()}}},X=(u,d,g,y,b,_,T,R)=>{let w,E;const{props:U,shapeFlag:N,transition:k,dirs:W}=u;if(w=u.el=o(u.type,_,U&&U.is,U),N&8?a(w,u.children):N&16&&H(u.children,w,null,y,b,Ts(u,_),T,R),W&&Tt(u,null,y,"created"),V(w,u,u.scopeId,T,y),U){for(const oe in U)oe!=="value"&&!fn(oe)&&i(w,oe,null,U[oe],_,y);"value"in U&&i(w,"value",null,U.value,_),(E=U.onVnodeBeforeMount)&&Je(E,y,u)}W&&Tt(u,null,y,"beforeMount");const Z=aa(b,k);Z&&k.beforeEnter(w),s(w,d,g),((E=U&&U.onVnodeMounted)||Z||W)&&Ae(()=>{try{E&&Je(E,y,u),Z&&k.enter(w),W&&Tt(u,null,y,"mounted")}finally{}},b)},V=(u,d,g,y,b)=>{if(g&&m(u,g),y)for(let _=0;_<y.length;_++)m(u,y[_]);if(b){let _=b.subTree;if(d===_||Jo(_.type)&&(_.ssContent===d||_.ssFallback===d)){const T=b.vnode;V(u,T,T.scopeId,T.slotScopeIds,b.parent)}}},H=(u,d,g,y,b,_,T,R,w=0)=>{for(let E=w;E<u.length;E++){const U=u[E]=R?ot(u[E]):Ze(u[E]);S(null,U,d,g,y,b,_,T,R)}},A=(u,d,g,y,b,_,T)=>{const R=d.el=u.el;let{patchFlag:w,dynamicChildren:E,dirs:U}=d;w|=u.patchFlag&16;const N=u.props||le,k=d.props||le;let W;if(g&&Ot(g,!1),(W=k.onVnodeBeforeUpdate)&&Je(W,g,d,u),U&&Tt(d,u,g,"beforeUpdate"),g&&Ot(g,!0),E&&(!u.dynamicChildren||u.dynamicChildren.length!==E.length)&&(w=0,T=!1,E=null),(N.innerHTML&&k.innerHTML==null||N.textContent&&k.textContent==null)&&a(R,""),E?G(u.dynamicChildren,E,R,g,y,Ts(d,b),_):T||te(u,d,R,null,g,y,Ts(d,b),_,!1),w>0){if(w&16)z(R,N,k,g,b);else if(w&2&&N.class!==k.class&&i(R,"class",null,k.class,b),w&4&&i(R,"style",N.style,k.style,b),w&8){const Z=d.dynamicProps;for(let oe=0;oe<Z.length;oe++){const re=Z[oe],de=N[re],_e=k[re];(_e!==de||re==="value")&&i(R,re,de,_e,b,g)}}w&1&&u.children!==d.children&&a(R,d.children)}else!T&&E==null&&z(R,N,k,g,b);((W=k.onVnodeUpdated)||U)&&Ae(()=>{W&&Je(W,g,d,u),U&&Tt(d,u,g,"updated")},y)},G=(u,d,g,y,b,_,T)=>{for(let R=0;R<d.length;R++){const w=u[R],E=d[R],U=w.el&&(w.type===Pe||!Mt(w,E)||w.shapeFlag&198)?h(w.el):g;S(w,E,U,null,y,b,_,T,!0)}},z=(u,d,g,y,b)=>{if(d!==g){if(d!==le)for(const _ in d)!fn(_)&&!(_ in g)&&i(u,_,d[_],null,b,y);for(const _ in g){if(fn(_))continue;const T=g[_],R=d[_];T!==R&&_!=="value"&&i(u,_,R,T,b,y)}"value"in g&&i(u,"value",d.value,g.value,b)}},O=(u,d,g,y,b,_,T,R,w)=>{const E=d.el=u?u.el:l(""),U=d.anchor=u?u.anchor:l("");let{patchFlag:N,dynamicChildren:k,slotScopeIds:W}=d;W&&(R=R?R.concat(W):W),u==null?(s(E,g,y),s(U,g,y),H(d.children||[],g,U,b,_,T,R,w)):N>0&&N&64&&k&&u.dynamicChildren&&u.dynamicChildren.length===k.length?(G(u.dynamicChildren,k,g,b,_,T,R),(d.key!=null||b&&d===b.subTree)&&Sr(u,d,!0)):te(u,d,g,U,b,_,T,R,w)},J=(u,d,g,y,b,_,T,R,w)=>{d.slotScopeIds=R,u==null?d.shapeFlag&512?b.ctx.activate(d,g,y,T,w):fe(d,g,y,b,_,T,w):Se(u,d,w)},fe=(u,d,g,y,b,_,T)=>{const R=u.component=va(u,y,b);if(ps(u)&&(R.ctx.renderer=j),ba(R,!1,T),R.asyncDep){if(b&&b.registerDep(R,ie,T),!u.el){const w=R.subTree=Re(be);L(null,w,d,g),u.placeholder=w.el}}else ie(R,u,d,g,b,_,T)},Se=(u,d,g)=>{const y=d.component=u.component;if(Zc(u,d,g))if(y.asyncDep&&!y.asyncResolved){q(y,d,g);return}else y.next=d,y.update();else d.el=u.el,y.vnode=d},ie=(u,d,g,y,b,_,T)=>{const R=()=>{if(u.isMounted){let{next:N,bu:k,u:W,parent:Z,vnode:oe}=u;{const qe=qo(u);if(qe){N&&(N.el=oe.el,q(u,N,T)),qe.asyncDep.then(()=>{Ae(()=>{u.isUnmounted||E()},b)});return}}let re=N,de;Ot(u,!1),N?(N.el=oe.el,q(u,N,T)):N=oe,k&&Hn(k),(de=N.props&&N.props.onVnodeBeforeUpdate)&&Je(de,Z,N,oe),Ot(u,!0);const _e=Wr(u),$e=u.subTree;u.subTree=_e,S($e,_e,h($e.el),v($e),u,b,_),N.el=_e.el,re===null&&ea(u,_e.el),W&&Ae(W,b),(de=N.props&&N.props.onVnodeUpdated)&&Ae(()=>Je(de,Z,N,oe),b)}else{let N;const{el:k,props:W}=d,{bm:Z,m:oe,parent:re,root:de,type:_e}=u,$e=zt(d);Ot(u,!1),Z&&Hn(Z),!$e&&(N=W&&W.onVnodeBeforeMount)&&Je(N,re,d),Ot(u,!0);{de.ce&&de.ce._hasShadowRoot()&&de.ce._injectChildStyle(_e,u.parent?u.parent.type:void 0);const qe=u.subTree=Wr(u);S(null,qe,g,y,u,b,_),d.el=qe.el}if(oe&&Ae(oe,b),!$e&&(N=W&&W.onVnodeMounted)){const qe=d;Ae(()=>Je(N,re,qe),b)}(d.shapeFlag&256||re&&zt(re.vnode)&&re.vnode.shapeFlag&256)&&u.a&&Ae(u.a,b),u.isMounted=!0,d=g=y=null}};u.scope.on();const w=u.effect=new Wi(R);u.scope.off();const E=u.update=w.run.bind(w),U=u.job=w.runIfDirty.bind(w);U.i=u,U.id=u.uid,w.scheduler=()=>gr(U),Ot(u,!0),E()},q=(u,d,g)=>{d.component=u;const y=u.vnode.props;u.vnode=d,u.next=null,na(u,d.props,y,g),oa(u,d.children,g),ut(),Lr(u),ht()},te=(u,d,g,y,b,_,T,R,w=!1)=>{const E=u&&u.children,U=u?u.shapeFlag:0,N=d.children,{patchFlag:k,shapeFlag:W}=d;if(k>0){if(k&128){gt(E,N,g,y,b,_,T,R,w);return}else if(k&256){nt(E,N,g,y,b,_,T,R,w);return}}W&8?(U&16&&Le(E,b,_),N!==E&&a(g,N)):U&16?W&16?gt(E,N,g,y,b,_,T,R,w):Le(E,b,_,!0):(U&8&&a(g,""),W&16&&H(N,g,y,b,_,T,R,w))},nt=(u,d,g,y,b,_,T,R,w)=>{u=u||Wt,d=d||Wt;const E=u.length,U=d.length,N=Math.min(E,U);let k;for(k=0;k<N;k++){const W=d[k]=w?ot(d[k]):Ze(d[k]);S(u[k],W,g,null,b,_,T,R,w)}E>U?Le(u,b,_,!0,!1,N):H(d,g,y,b,_,T,R,w,N)},gt=(u,d,g,y,b,_,T,R,w)=>{let E=0;const U=d.length;let N=u.length-1,k=U-1;for(;E<=N&&E<=k;){const W=u[E],Z=d[E]=w?ot(d[E]):Ze(d[E]);if(Mt(W,Z))S(W,Z,g,null,b,_,T,R,w);else break;E++}for(;E<=N&&E<=k;){const W=u[N],Z=d[k]=w?ot(d[k]):Ze(d[k]);if(Mt(W,Z))S(W,Z,g,null,b,_,T,R,w);else break;N--,k--}if(E>N){if(E<=k){const W=k+1,Z=W<U?d[W].el:y;for(;E<=k;)S(null,d[E]=w?ot(d[E]):Ze(d[E]),g,Z,b,_,T,R,w),E++}}else if(E>k)for(;E<=N;)Oe(u[E],b,_,!0),E++;else{const W=E,Z=E,oe=new Map;for(E=Z;E<=k;E++){const Ie=d[E]=w?ot(d[E]):Ze(d[E]);Ie.key!=null&&oe.set(Ie.key,E)}let re,de=0;const _e=k-Z+1;let $e=!1,qe=0;const en=new Array(_e);for(E=0;E<_e;E++)en[E]=0;for(E=W;E<=N;E++){const Ie=u[E];if(de>=_e){Oe(Ie,b,_,!0);continue}let ze;if(Ie.key!=null)ze=oe.get(Ie.key);else for(re=Z;re<=k;re++)if(en[re-Z]===0&&Mt(Ie,d[re])){ze=re;break}ze===void 0?Oe(Ie,b,_,!0):(en[ze-Z]=E+1,ze>=qe?qe=ze:$e=!0,S(Ie,d[ze],g,null,b,_,T,R,w),de++)}const Tr=$e?fa(en):Wt;for(re=Tr.length-1,E=_e-1;E>=0;E--){const Ie=Z+E,ze=d[Ie],Or=d[Ie+1],Pr=Ie+1<U?Or.el||zo(Or):y;en[E]===0?S(null,ze,g,Pr,b,_,T,R,w):$e&&(re<0||E!==Tr[re]?We(ze,g,Pr,2):re--)}}},We=(u,d,g,y,b=null)=>{const{el:_,type:T,transition:R,children:w,shapeFlag:E}=u;if(E&6){We(u.component.subTree,d,g,y);return}if(E&128){u.suspense.move(d,g,y);return}if(E&64){T.move(u,d,g,j);return}if(T===Pe){s(_,d,g);for(let N=0;N<w.length;N++)We(w[N],d,g,y);s(u.anchor,d,g);return}if(T===Os){M(u,d,g);return}if(y!==2&&E&1&&R)if(y===0)R.persisted&&!_[Ve]?s(_,d,g):(R.beforeEnter(_),s(_,d,g),Ae(()=>R.enter(_),b));else{const{leave:N,delayLeave:k,afterLeave:W}=R,Z=()=>{u.ctx.isUnmounted?r(_):s(_,d,g)},oe=()=>{const re=_._isLeaving||!!_[Ve];_._isLeaving&&_[Ve](!0),R.persisted&&!re?Z():N(_,()=>{Z(),W&&W()})};k?k(_,Z,oe):oe()}else s(_,d,g)},Oe=(u,d,g,y=!1,b=!1)=>{const{type:_,props:T,ref:R,children:w,dynamicChildren:E,shapeFlag:U,patchFlag:N,dirs:k,cacheIndex:W,memo:Z}=u;if(N===-2&&(b=!1),R!=null&&(ut(),pn(R,null,g,u,!0),ht()),W!=null&&(d.renderCache[W]=void 0),U&256){d.ctx.deactivate(u);return}const oe=U&1&&k,re=!zt(u);let de;if(re&&(de=T&&T.onVnodeBeforeUnmount)&&Je(de,d,u),U&6)Rt(u.component,g,y);else{if(U&128){u.suspense.unmount(g,y);return}oe&&Tt(u,null,d,"beforeUnmount"),U&64?u.type.remove(u,d,g,j,y):E&&!E.hasOnce&&(_!==Pe||N>0&&N&64)?Le(E,d,g,!1,!0):(_===Pe&&N&384||!b&&U&16)&&Le(w,d,g),y&&Bt(u)}const _e=Z!=null&&W==null;(re&&(de=T&&T.onVnodeUnmounted)||oe||_e)&&Ae(()=>{de&&Je(de,d,u),oe&&Tt(u,null,d,"unmounted"),_e&&(u.el=null)},g)},Bt=u=>{const{type:d,el:g,anchor:y,transition:b}=u;if(d===Pe){jt(g,y);return}if(d===Os){P(u);return}const _=()=>{r(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(u.shapeFlag&1&&b&&!b.persisted){const{leave:T,delayLeave:R}=b,w=()=>T(g,_);R?R(u.el,_,w):w()}else _()},jt=(u,d)=>{let g;for(;u!==d;)g=p(u),r(u),u=g;r(d)},Rt=(u,d,g)=>{const{bum:y,scope:b,job:_,subTree:T,um:R,m:w,a:E}=u;zr(w),zr(E),y&&Hn(y),b.stop(),_&&(_.flags|=8,Oe(T,u,d,g)),R&&Ae(R,d),Ae(()=>{u.isUnmounted=!0},d)},Le=(u,d,g,y=!1,b=!1,_=0)=>{for(let T=_;T<u.length;T++)Oe(u[T],d,g,y,b)},v=u=>{if(u.shapeFlag&6)return v(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const d=p(u.anchor||u.el),g=d&&d[yo];return g?p(g):d};let F=!1;const I=(u,d,g)=>{let y;u==null?d._vnode&&(Oe(d._vnode,null,null,!0),y=d._vnode.component):S(d._vnode||null,u,d,null,null,null,g),d._vnode=u,F||(F=!0,Lr(y),po(),F=!1)},j={p:S,um:Oe,m:We,r:Bt,mt:fe,mc:H,pc:te,pbc:G,n:v,o:e};return{render:I,hydrate:void 0,createApp:qc(I)}}function Ts({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 Ot({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 Sr(e,t,n=!1){const s=e.children,r=t.children;if(B(s)&&B(r))for(let i=0;i<s.length;i++){const o=s[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=ot(r[i]),l.el=o.el),!n&&l.patchFlag!==-2&&Sr(o,l)),l.type===_s&&(l.patchFlag===-1&&(l=r[i]=ot(l)),l.el=o.el),l.type===be&&!l.el&&(l.el=o.el)}}function fa(e){const t=e.slice(),n=[0];let s,r,i,o,l;const c=e.length;for(s=0;s<c;s++){const f=e[s];if(f!==0){if(r=n[n.length-1],e[r]<f){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<f?i=l+1:o=l;f<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function qo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:qo(t)}function zr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function zo(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?zo(t.subTree):null}const Jo=e=>e.__isSuspense;function ua(e,t){t&&t.pendingBranch?B(e)?t.effects.push(...e):t.effects.push(e):vc(e)}const Pe=Symbol.for("v-fgt"),_s=Symbol.for("v-txt"),be=Symbol.for("v-cmt"),Os=Symbol.for("v-stc"),ft=[];let Ne=null;function Js(e=!1){ft.push(Ne=e?null:[])}function Cr(){ft.pop(),Ne=ft[ft.length-1]||null}let Sn=1;function zn(e,t=!1){Sn+=e,e<0&&Ne&&t&&(Ne.hasOnce=!0)}function Yo(e){return e.dynamicChildren=Sn>0?Ne||Wt:null,Cr(),Sn>0&&Ne&&Ne.push(e),e}function Fu(e,t,n,s,r,i){return Yo(Xo(e,t,n,s,r,i,!0))}function Ys(e,t,n,s,r){return Yo(Re(e,t,n,s,r,!0))}function Cn(e){return e?e.__v_isVNode===!0:!1}function Mt(e,t){return e.type===t.type&&e.key===t.key}const Qo=({key:e})=>e??null,jn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ae(e)||ue(e)||$(e)?{i:ye,r:e,k:t,f:!!n}:e:null);function Xo(e,t=null,n=null,s=0,r=null,i=e===Pe?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qo(t),ref:t&&jn(t),scopeId:mo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ye};return l?(Jn(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=ae(n)?8:16),Sn>0&&!o&&Ne&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ne.push(c),c}const Re=ha;function ha(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Io)&&(e=be),Cn(e)){const l=xt(e,t,!0);return n&&Jn(l,n),Sn>0&&!i&&Ne&&(l.shapeFlag&6?Ne[Ne.indexOf(e)]=l:Ne.push(l)),l.patchFlag=-2,l}if(Aa(e)&&(e=e.__vccOpts),t){t=da(t);let{class:l,style:c}=t;l&&!ae(l)&&(t.class=ls(l)),ee(c)&&(us(c)&&!B(c)&&(c=pe({},c)),t.style=os(c))}const o=ae(e)?1:Jo(e)?128:ds(e)?64:ee(e)?4:$(e)?2:0;return Xo(e,t,n,s,r,o,i,!0)}function da(e){return e?us(e)||ko(e)?pe({},e):e:null}function xt(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,f=t?ma(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Qo(f),ref:t&&t.ref?n&&i?B(i)?i.concat(jn(t)):[i,jn(t)]:jn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xt(e.ssContent),ssFallback:e.ssFallback&&xt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Ht(a,c.clone(a)),a}function pa(e=" ",t=0){return Re(_s,null,e,t)}function ga(e="",t=!1){return t?(Js(),Ys(be,null,e)):Re(be,null,e)}function Ze(e){return e==null||typeof e=="boolean"?Re(be):B(e)?Re(Pe,null,e.slice()):Cn(e)?ot(e):Re(_s,null,String(e))}function ot(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xt(e)}function Jn(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(B(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Jn(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!ko(t)?t._ctx=ye:r===3&&ye&&(ye.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if($(t)){if(s&65){Jn(e,{default:t});return}t={default:t,_ctx:ye},n=32}else t=String(t),s&64?(n=16,t=[pa(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=ls([t.class,s.class]));else if(r==="style")t.style=os([t.style,s.style]);else if(Zn(r)){const i=t[r],o=s[r];o&&i!==o&&!(B(i)&&i.includes(o))?t[r]=i?[].concat(i,o):o:o==null&&i==null&&!es(r)&&(t[r]=o)}else r!==""&&(t[r]=s[r])}return t}function Je(e,t,n,s=null){je(e,t,7,[n,s])}const _a=Fo();let ya=0;function va(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||_a,i={uid:ya++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ui(!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:Ko(s,r),emitsOptions:Vo(s,r),emit:null,emitted:null,propsDefaults:le,inheritAttrs:s.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Jc.bind(null,i),e.ce&&e.ce(i),i}let Ee=null;const Pn=()=>Ee||ye;let Yn,An;{const e=is(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Yn=t("__VUE_INSTANCE_SETTERS__",n=>Ee=n),An=t("__VUE_SSR_SETTERS__",n=>xn=n)}const In=e=>{const t=Ee;return Yn(e),e.scope.on(),()=>{e.scope.off(),Yn(t)}},Jr=()=>{Ee&&Ee.scope.off(),Yn(null)};function Zo(e){return e.vnode.shapeFlag&4}let xn=!1;function ba(e,t=!1,n=!1){t&&An(t);const{props:s,children:r}=e.vnode,i=Zo(e);ta(e,s,i,t),ia(e,r,n||t);const o=i?Ea(e,t):void 0;return t&&An(!1),o}function Ea(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,jc);const{setup:s}=n;if(s){ut();const r=e.setupContext=s.length>1?tl(e):null,i=In(e),o=On(s,e,0,[e.props,r]),l=Di(o);if(ht(),i(),(l||e.sp)&&!zt(e)&&xo(e),l){if(o.then(Jr,Jr),t)return o.then(c=>{An(!0);try{Yr(e,c,t)}finally{An(!1)}}).catch(c=>{hs(c,e,0)});e.asyncDep=o}else Yr(e,o)}else el(e)}function Yr(e,t,n){$(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ee(t)&&(e.setupState=ao(t)),el(e)}function el(e,t,n){const s=e.type;e.render||(e.render=s.render||ke);{const r=In(e);ut();try{kc(e)}finally{ht(),r()}}}const Sa={get(e,t){return ve(e,"get",""),e[t]}};function tl(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Sa),slots:e.slots,emit:e.emit,expose:t}}function ys(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ao(hr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in gn)return gn[n](e)},has(t,n){return n in t||n in gn}})):e.proxy}function Ca(e,t=!0){return $(e)?e.displayName||e.name:e.name||t&&e.__name}function Aa(e){return $(e)&&"__vccOpts"in e}const He=(e,t)=>pc(e,t,xn);function Ar(e,t,n){try{zn(-1);const s=arguments.length;return s===2?ee(t)&&!B(t)?Cn(t)?Re(e,null,[t]):Re(e,t):Re(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Cn(n)&&(n=[n]),Re(e,t,n))}finally{zn(1)}}const xa="3.5.41",Vu=ke;/**
|
|
14
|
+
* @vue/runtime-dom v3.5.41
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/let Qs;const Qr=typeof window<"u"&&window.trustedTypes;if(Qr)try{Qs=Qr.createPolicy("vue",{createHTML:e=>e})}catch{}const nl=Qs?e=>Qs.createHTML(e):e=>e,wa="http://www.w3.org/2000/svg",Ra="http://www.w3.org/1998/Math/MathML",it=typeof document<"u"?document:null,Xr=it&&it.createElement("template"),Ta={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?it.createElementNS(wa,e):t==="mathml"?it.createElementNS(Ra,e):n?it.createElement(e,{is:n}):it.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>it.createTextNode(e),createComment:e=>it.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>it.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Xr.innerHTML=nl(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Xr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},mt="transition",sn="animation",Yt=Symbol("_vtc"),sl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},rl=pe({},bo,sl),Oa=e=>(e.displayName="Transition",e.props=rl,e),Hu=Oa((e,{slots:t})=>Ar(Oc,il(e),t)),Pt=(e,t=[])=>{B(e)?e.forEach(n=>n(...t)):e&&e(...t)},Zr=e=>e?B(e)?e.some(t=>t.length>1):e.length>1:!1;function il(e){const t={};for(const O in e)O in sl||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:f=o,appearToClass:a=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,C=Pa(r),S=C&&C[0],D=C&&C[1],{onBeforeEnter:L,onEnter:x,onEnterCancelled:M,onLeave:P,onLeaveCancelled:K,onBeforeAppear:X=L,onAppear:V=x,onAppearCancelled:H=M}=t,A=(O,J,fe,Se)=>{O._enterCancelled=Se,vt(O,J?a:l),vt(O,J?f:o),fe&&fe()},G=(O,J)=>{O._isLeaving=!1,vt(O,h),vt(O,m),vt(O,p),J&&J()},z=O=>(J,fe)=>{const Se=O?V:x,ie=()=>A(J,O,fe);Pt(Se,[J,ie]),ei(()=>{vt(J,O?c:i),Ye(J,O?a:l),Zr(Se)||ti(J,s,S,ie)})};return pe(t,{onBeforeEnter(O){Pt(L,[O]),Ye(O,i),Ye(O,o)},onBeforeAppear(O){Pt(X,[O]),Ye(O,c),Ye(O,f)},onEnter:z(!1),onAppear:z(!0),onLeave(O,J){O._isLeaving=!0;const fe=()=>G(O,J);Ye(O,h),O._enterCancelled?(Ye(O,p),Xs(O)):(Xs(O),Ye(O,p)),ei(()=>{O._isLeaving&&(vt(O,h),Ye(O,m),Zr(P)||ti(O,s,D,fe))}),Pt(P,[O,fe])},onEnterCancelled(O){A(O,!1,void 0,!0),Pt(M,[O])},onAppearCancelled(O){A(O,!0,void 0,!0),Pt(H,[O])},onLeaveCancelled(O){G(O),Pt(K,[O])}})}function Pa(e){if(e==null)return null;if(ee(e))return[Ps(e.enter),Ps(e.leave)];{const t=Ps(e);return[t,t]}}function Ps(e){return Ml(e)}function Ye(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Yt]||(e[Yt]=new Set)).add(t)}function vt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Yt];n&&(n.delete(t),n.size||(e[Yt]=void 0))}function ei(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ia=0;function ti(e,t,n,s){const r=e._endId=++Ia,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=ol(e,t);if(!o)return s();const f=o+"end";let a=0;const h=()=>{e.removeEventListener(f,p),i()},p=m=>{m.target===e&&++a>=c&&h()};setTimeout(()=>{a<c&&h()},l+1),e.addEventListener(f,p)}function ol(e,t){const n=window.getComputedStyle(e),s=C=>(n[C]||"").split(", "),r=s(`${mt}Delay`),i=s(`${mt}Duration`),o=ni(r,i),l=s(`${sn}Delay`),c=s(`${sn}Duration`),f=ni(l,c);let a=null,h=0,p=0;t===mt?o>0&&(a=mt,h=o,p=i.length):t===sn?f>0&&(a=sn,h=f,p=c.length):(h=Math.max(o,f),a=h>0?o>f?mt:sn:null,p=a?a===mt?i.length:c.length:0);const m=a===mt&&/\b(?:transform|all)(?:,|$)/.test(s(`${mt}Property`).toString());return{type:a,timeout:h,propCount:p,hasTransform:m}}function ni(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>si(n)+si(e[s])))}function si(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Xs(e){return(e?e.ownerDocument:document).body.offsetHeight}function Na(e,t,n){const s=e[Yt];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Qn=Symbol("_vod"),xr=Symbol("_vsh"),Bu={name:"show",beforeMount(e,{value:t},{transition:n}){e[Qn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):rn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),rn(e,!0),s.enter(e)):s.leave(e,()=>{rn(e,!1)}):rn(e,t))},beforeUnmount(e,{value:t}){rn(e,t)}};function rn(e,t){e.style.display=t?e[Qn]:"none",e[xr]=!t}const Ma=Symbol(""),Da=/(?:^|;)\s*display\s*:/;function La(e,t,n){const s=e.style,r=ae(n);let i=!1;if(n&&!r){if(t)if(ae(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&an(s,l,"")}else for(const o in t)n[o]==null&&an(s,o,"");for(const o in n){o==="display"&&(i=!0);const l=n[o];l!=null?Va(e,o,!ae(t)&&t?t[o]:void 0,l)||an(s,o,l):an(s,o,"")}}else if(r){if(t!==n){const o=s[Ma];o&&(n+=";"+o),s.cssText=n,i=Da.test(n)}}else t&&e.removeAttribute("style");Qn in e&&(e[Qn]=i?s.display:"",e[xr]&&(s.display="none"))}const ri=/\s*!important$/;function an(e,t,n){if(B(n))n.forEach(s=>an(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Fa(e,t);ri.test(n)?e.setProperty(wt(s),n.replace(ri,""),"important"):e[s]=n}}const ii=["Webkit","Moz","ms"],Is={};function Fa(e,t){const n=Is[t];if(n)return n;let s=Te(t);if(s!=="filter"&&s in e)return Is[t]=s;s=rs(s);for(let r=0;r<ii.length;r++){const i=ii[r]+s;if(i in e)return Is[t]=i}return t}function Va(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ae(s)&&n===s}const oi="http://www.w3.org/1999/xlink";function li(e,t,n,s,r,i=Bl(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(oi,t.slice(6,t.length)):e.setAttributeNS(oi,t,n):n==null||i&&!Hi(n)?e.removeAttribute(t):e.setAttribute(t,i?"":De(n)?String(n):n)}function ci(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?nl(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Hi(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(r||t)}function Ct(e,t,n,s){e.addEventListener(t,n,s)}function Ha(e,t,n,s){e.removeEventListener(t,n,s)}const ai=Symbol("_vei");function Ba(e,t,n,s,r=null){const i=e[ai]||(e[ai]={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=Ua(t);if(s){const f=i[t]=Wa(s,r);Ct(e,l,f,c)}else o&&(Ha(e,l,o,c),i[t]=void 0)}}const ja=/(Once|Passive|Capture)$/,ka=/^on:?(?:Once|Passive|Capture)$/;function Ua(e){let t,n;for(;(n=e.match(ja))&&!ka.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):wt(e.slice(2)),t]}let Ns=0;const Ka=Promise.resolve(),Ga=()=>Ns||(Ka.then(()=>Ns=0),Ns=Date.now());function Wa(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(B(r)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const o=r.slice(),l=[s];for(let c=0;c<o.length&&!s._stopped;c++){const f=o[c];f&&je(f,t,5,l)}}else je(r,t,5,[s])};return n.value=e,n.attached=Ga(),n}const fi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,$a=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?Na(e,s,o):t==="style"?La(e,n,s):Zn(t)?es(t)||Ba(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qa(e,t,s,o))?(ci(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&li(e,t,s,o,i,t!=="value")):e._isVueCE&&(za(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ae(s)))?ci(e,Te(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),li(e,t,s,o))};function qa(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&fi(t)&&$(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return fi(t)&&ae(n)?!1:t in e}function za(e,t){const n=e._def.props;if(!n)return!1;const s=Te(t);return Array.isArray(n)?n.some(r=>Te(r)===s):Object.keys(n).some(r=>Te(r)===s)}const ll=new WeakMap,cl=new WeakMap,Xn=Symbol("_moveCb"),ui=Symbol("_enterCb"),Ja=e=>(delete e.props.mode,e),Ya=Ja({name:"TransitionGroup",props:pe({},rl,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Pn(),s=vo();let r,i;return To(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!ef(r[0].el,n.vnode.el,o)){r=[];return}r.forEach(Qa),r.forEach(Xa);const l=r.filter(Za);Xs(n.vnode.el),l.forEach(c=>{const f=c.el,a=f.style;Ye(f,o),a.transform=a.webkitTransform=a.transitionDuration="";const h=f[Xn]=p=>{p&&p.target!==f||(!p||p.propertyName.endsWith("transform"))&&(f.removeEventListener("transitionend",h),f[Xn]=null,vt(f,o))};f.addEventListener("transitionend",h)}),r=[]}),()=>{const o=Q(e),l=il(o);let c=o.tag||Pe;if(r=[],i)for(let f=0;f<i.length;f++){const a=i[f];a.el&&a.el instanceof Element&&!a.el[xr]&&(r.push(a),Ht(a,En(a,l,s,n)),ll.set(a,al(a.el)))}i=t.default?_r(t.default()):[];for(let f=0;f<i.length;f++){const a=i[f];a.key!=null&&Ht(a,En(a,l,s,n))}return Re(c,null,i)}}}),ju=Ya;function Qa(e){const t=e.el;t[Xn]&&t[Xn](),t[ui]&&t[ui]()}function Xa(e){cl.set(e,al(e.el))}function Za(e){const t=ll.get(e),n=cl.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const i=e.el,o=i.style,l=i.getBoundingClientRect();let c=1,f=1;return i.offsetWidth&&(c=l.width/i.offsetWidth),i.offsetHeight&&(f=l.height/i.offsetHeight),(!Number.isFinite(c)||c===0)&&(c=1),(!Number.isFinite(f)||f===0)&&(f=1),Math.abs(c-1)<.01&&(c=1),Math.abs(f-1)<.01&&(f=1),o.transform=o.webkitTransform=`translate(${s/c}px,${r/f}px)`,o.transitionDuration="0s",e}}function al(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function ef(e,t,n){const s=e.cloneNode(),r=e[Yt];r&&r.forEach(l=>{l.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(s);const{hasTransform:o}=ol(s);return i.removeChild(s),o}const Qt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return B(t)?n=>Hn(t,n):t};function tf(e){e.target.composing=!0}function hi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const tt=Symbol("_assign"),Fn=Symbol("_initialValue");function Ms(e,t,n){return t&&(e=e.trim()),n&&(e=lr(e)),e}const ku={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e.parentNode&&(e.type==="text"?e[Fn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Fn]=e.defaultValue.replace(/\r\n?/g,`
|
|
18
|
+
`))),e[tt]=Qt(r);const i=s||r.props&&r.props.type==="number";Ct(e,t?"change":"input",o=>{o.target.composing||e[tt](Ms(e.value,n,i))}),(n||i)&&Ct(e,"change",()=>{e.value=Ms(e.value,n,i)}),t||(Ct(e,"compositionstart",tf),Ct(e,"compositionend",hi),Ct(e,"change",hi))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=t??"",i=e[Fn];delete e[Fn],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[tt](Ms(e.value,n,s)):e.value=r},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[tt]=Qt(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?lr(e.value):e.value,c=t??"";if(l===c)return;const f=e.getRootNode();(f instanceof Document||f instanceof ShadowRoot)&&f.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c)}},Uu={deep:!0,created(e,t,n){e[tt]=Qt(n),Ct(e,"change",()=>{const s=e._modelValue,r=fl(e),i=e.checked,o=e[tt];if(B(s)){const l=Bi(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const f=[...s];f.splice(l,1),o(f)}}else if(ts(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(ul(e,i))})},mounted:di,beforeUpdate(e,t,n){e[tt]=Qt(n),di(e,t,n)}};function di(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(B(t))r=Bi(t,s.props.value)>-1;else if(ts(t))r=t.has(s.props.value);else{if(t===n)return;r=Vt(t,ul(e,!0))}e.checked!==r&&(e.checked=r)}const Ku={created(e,{value:t},n){e.checked=Vt(t,n.props.value),e[tt]=Qt(n),Ct(e,"change",()=>{e[tt](fl(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[tt]=Qt(s),t!==n&&(e.checked=Vt(t,s.props.value))}};function fl(e){return"_value"in e?e._value:e.value}function ul(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const nf=["ctrl","shift","alt","meta"],sf={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)=>nf.some(n=>e[`${n}Key`]&&!t.includes(n))},Gu=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...i)=>{for(let o=0;o<t.length;o++){const l=sf[t[o]];if(l&&l(r,t))return}return e(r,...i)}))},rf={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Wu=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=(r=>{if(!("key"in r))return;const i=wt(r.key);if(t.some(o=>o===i||rf[o]===i))return e(r)}))},of=pe({patchProp:$a},Ta);let pi;function hl(){return pi||(pi=la(of))}const $u=((...e)=>{hl().render(...e)}),qu=((...e)=>{const t=hl().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=cf(s);if(!r)return;const i=t._component;!$(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,lf(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function lf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function cf(e){return ae(e)?document.querySelector(e):e}/*!
|
|
19
|
+
* pinia v3.0.4
|
|
20
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
21
|
+
* @license MIT
|
|
22
|
+
*/let dl;const vs=e=>dl=e,pl=Symbol();function Zs(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var mn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(mn||(mn={}));function zu(){const e=Ki(!0),t=e.run(()=>dr({}));let n=[],s=[];const r=hr({install(i){vs(r),r._a=i,i.provide(pl,r),i.config.globalProperties.$pinia=r,s.forEach(o=>n.push(o)),s=[]},use(i){return this._a?n.push(i):s.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const gl=()=>{};function gi(e,t,n,s=gl){e.add(t);const r=()=>{e.delete(t)&&s()};return!n&&Gi()&&Ul(r),r}function Ut(e,...t){e.forEach(n=>{n(...t)})}const af=e=>e(),mi=Symbol(),Ds=Symbol();function er(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];Zs(r)&&Zs(s)&&e.hasOwnProperty(n)&&!ue(s)&&!at(s)?e[n]=er(r,s):e[n]=s}return e}const ff=Symbol();function uf(e){return!Zs(e)||!Object.prototype.hasOwnProperty.call(e,ff)}const{assign:bt}=Object;function hf(e){return!!(ue(e)&&e.effect)}function df(e,t,n,s){const{state:r,actions:i,getters:o}=t,l=n.state.value[e];let c;function f(){l||(n.state.value[e]=r?r():{});const a=fc(n.state.value[e]);return bt(a,i,Object.keys(o||{}).reduce((h,p)=>(h[p]=hr(He(()=>{vs(n);const m=n._s.get(e);return o[p].call(m,m)})),h),{}))}return c=ml(e,f,t,n,s,!0),c}function ml(e,t,n={},s,r,i){let o;const l=bt({actions:{}},n),c={deep:!0};let f,a,h=new Set,p=new Set,m;const C=s.state.value[e];!i&&!C&&(s.state.value[e]={});let S;function D(H){let A;f=a=!1,typeof H=="function"?(H(s.state.value[e]),A={type:mn.patchFunction,storeId:e,events:m}):(er(s.state.value[e],H),A={type:mn.patchObject,payload:H,storeId:e,events:m});const G=S=Symbol();pr().then(()=>{S===G&&(f=!0)}),a=!0,Ut(h,A,s.state.value[e])}const L=i?function(){const{state:A}=n,G=A?A():{};this.$patch(z=>{bt(z,G)})}:gl;function x(){o.stop(),h.clear(),p.clear(),s._s.delete(e)}const M=(H,A="")=>{if(mi in H)return H[Ds]=A,H;const G=function(){vs(s);const z=Array.from(arguments),O=new Set,J=new Set;function fe(q){O.add(q)}function Se(q){J.add(q)}Ut(p,{args:z,name:G[Ds],store:K,after:fe,onError:Se});let ie;try{ie=H.apply(this&&this.$id===e?this:K,z)}catch(q){throw Ut(J,q),q}return ie instanceof Promise?ie.then(q=>(Ut(O,q),q)).catch(q=>(Ut(J,q),Promise.reject(q))):(Ut(O,ie),ie)};return G[mi]=!0,G[Ds]=A,G},P={_p:s,$id:e,$onAction:gi.bind(null,p),$patch:D,$reset:L,$subscribe(H,A={}){const G=gi(h,H,A.detached,()=>z()),z=o.run(()=>dn(()=>s.state.value[e],O=>{(A.flush==="sync"?a:f)&&H({storeId:e,type:mn.direct,events:m},O)},bt({},c,A)));return G},$dispose:x},K=Tn(P);s._s.set(e,K);const V=(s._a&&s._a.runWithContext||af)(()=>s._e.run(()=>(o=Ki()).run(()=>t({action:M}))));for(const H in V){const A=V[H];if(ue(A)&&!hf(A)||at(A))i||(C&&uf(A)&&(ue(A)?A.value=C[H]:er(A,C[H])),s.state.value[e][H]=A);else if(typeof A=="function"){const G=M(A,H);V[H]=G,l.actions[H]=A}}return bt(K,V),bt(Q(K),V),Object.defineProperty(K,"$state",{get:()=>s.state.value[e],set:H=>{D(A=>{bt(A,H)})}}),s._p.forEach(H=>{bt(K,o.run(()=>H({store:K,app:s._a,pinia:s,options:l})))}),C&&i&&n.hydrate&&n.hydrate(K.$state,C),f=!0,a=!0,K}/*! #__NO_SIDE_EFFECTS__ */function Ju(e,t,n){let s;const r=typeof t=="function";s=r?n:t;function i(o,l){const c=Ec();return o=o||(c?Be(pl,null):null),o&&vs(o),o=dl,o._s.has(e)||(r?ml(e,t,s,o):df(e,s,o)),o._s.get(e)}return i.$id=e,i}/*!
|
|
23
|
+
* vue-router v4.6.4
|
|
24
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
25
|
+
* @license MIT
|
|
26
|
+
*/const Gt=typeof document<"u";function _l(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function pf(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&_l(e.default)}const ne=Object.assign;function Ls(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ge(r)?r.map(e):e(r)}return n}const _n=()=>{},Ge=Array.isArray;function _i(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const yl=/#/g,gf=/&/g,mf=/\//g,_f=/=/g,yf=/\?/g,vl=/\+/g,vf=/%5B/g,bf=/%5D/g,bl=/%5E/g,Ef=/%60/g,El=/%7B/g,Sf=/%7C/g,Sl=/%7D/g,Cf=/%20/g;function wr(e){return e==null?"":encodeURI(""+e).replace(Sf,"|").replace(vf,"[").replace(bf,"]")}function Af(e){return wr(e).replace(El,"{").replace(Sl,"}").replace(bl,"^")}function tr(e){return wr(e).replace(vl,"%2B").replace(Cf,"+").replace(yl,"%23").replace(gf,"%26").replace(Ef,"`").replace(El,"{").replace(Sl,"}").replace(bl,"^")}function xf(e){return tr(e).replace(_f,"%3D")}function wf(e){return wr(e).replace(yl,"%23").replace(yf,"%3F")}function Rf(e){return wf(e).replace(mf,"%2F")}function wn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Tf=/\/$/,Of=e=>e.replace(Tf,"");function Fs(e,t,n="/"){let s,r={},i="",o="";const l=t.indexOf("#");let c=t.indexOf("?");return c=l>=0&&c>l?-1:c,c>=0&&(s=t.slice(0,c),i=t.slice(c,l>0?l:t.length),r=e(i.slice(1))),l>=0&&(s=s||t.slice(0,l),o=t.slice(l,t.length)),s=Mf(s??t,n),{fullPath:s+i+o,path:s,query:r,hash:wn(o)}}function Pf(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function yi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function If(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])&&Cl(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 Cl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Nf(e[n],t[n]))return!1;return!0}function Nf(e,t){return Ge(e)?vi(e,t):Ge(t)?vi(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function vi(e,t){return Ge(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Mf(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,o,l;for(o=0;o<s.length;o++)if(l=s[o],l!==".")if(l==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const _t={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let nr=(function(e){return e.pop="pop",e.push="push",e})({}),Vs=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Df(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),Of(e)}const Lf=/^[^#]+#/;function Ff(e,t){return e.replace(Lf,"#")+t}function Vf(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 bs=()=>({left:window.scrollX,top:window.scrollY});function Hf(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=Vf(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 bi(e,t){return(history.state?history.state.position-t:-1)+e}const sr=new Map;function Bf(e,t){sr.set(e,t)}function jf(e){const t=sr.get(e);return sr.delete(e),t}function kf(e){return typeof e=="string"||e&&typeof e=="object"}function Al(e){return typeof e=="string"||typeof e=="symbol"}let he=(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 xl=Symbol("");he.MATCHER_NOT_FOUND+"",he.NAVIGATION_GUARD_REDIRECT+"",he.NAVIGATION_ABORTED+"",he.NAVIGATION_CANCELLED+"",he.NAVIGATION_DUPLICATED+"";function Zt(e,t){return ne(new Error,{type:e,[xl]:!0},t)}function rt(e,t){return e instanceof Error&&xl in e&&(t==null||!!(e.type&t))}const Uf=["params","query","hash"];function Kf(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Uf)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Gf(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(vl," "),i=r.indexOf("="),o=wn(i<0?r:r.slice(0,i)),l=i<0?null:wn(r.slice(i+1));if(o in t){let c=t[o];Ge(c)||(c=t[o]=[c]),c.push(l)}else t[o]=l}return t}function Ei(e){let t="";for(let n in e){const s=e[n];if(n=xf(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ge(s)?s.map(r=>r&&tr(r)):[s&&tr(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Wf(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ge(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const $f=Symbol(""),Si=Symbol(""),Es=Symbol(""),Rr=Symbol(""),rr=Symbol("");function on(){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 St(e,t,n,s,r,i=o=>o()){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const f=p=>{p===!1?c(Zt(he.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?c(p):kf(p)?c(Zt(he.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(o&&s.enterCallbacks[r]===o&&typeof p=="function"&&o.push(p),l())},a=i(()=>e.call(s&&s.instances[r],t,n,f));let h=Promise.resolve(a);e.length<3&&(h=h.then(f)),h.catch(p=>c(p))})}function Hs(e,t,n,s,r=i=>i()){const i=[];for(const o of e)for(const l in o.components){let c=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(_l(c)){const f=(c.__vccOpts||c)[t];f&&i.push(St(f,n,s,o,l,r))}else{let f=c();i.push(()=>f.then(a=>{if(!a)throw new Error(`Couldn't resolve component "${l}" at "${o.path}"`);const h=pf(a)?a.default:a;o.mods[l]=a,o.components[l]=h;const p=(h.__vccOpts||h)[t];return p&&St(p,n,s,o,l,r)()}))}}return i}function qf(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const l=t.matched[o];l&&(e.matched.find(f=>Xt(f,l))?s.push(l):n.push(l));const c=e.matched[o];c&&(t.matched.find(f=>Xt(f,c))||r.push(c))}return[n,s,r]}/*!
|
|
27
|
+
* vue-router v4.6.4
|
|
28
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
29
|
+
* @license MIT
|
|
30
|
+
*/let zf=()=>location.protocol+"//"+location.host;function wl(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let o=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(o);return l[0]!=="/"&&(l="/"+l),yi(l,"")}return yi(n,e)+s+r}function Jf(e,t,n,s){let r=[],i=[],o=null;const l=({state:p})=>{const m=wl(e,location),C=n.value,S=t.value;let D=0;if(p){if(n.value=m,t.value=p,o&&o===C){o=null;return}D=S?p.position-S.position:0}else s(m);r.forEach(L=>{L(n.value,C,{delta:D,type:nr.pop,direction:D?D>0?Vs.forward:Vs.back:Vs.unknown})})};function c(){o=n.value}function f(p){r.push(p);const m=()=>{const C=r.indexOf(p);C>-1&&r.splice(C,1)};return i.push(m),m}function a(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(ne({},p.state,{scroll:bs()}),"")}}function h(){for(const p of i)p();i=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",a),document.removeEventListener("visibilitychange",a)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",a),document.addEventListener("visibilitychange",a),{pauseListeners:c,listen:f,destroy:h}}function Ci(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?bs():null}}function Yf(e){const{history:t,location:n}=window,s={value:wl(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,f,a){const h=e.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:zf()+e+c;try{t[a?"replaceState":"pushState"](f,"",p),r.value=f}catch(m){console.error(m),n[a?"replace":"assign"](p)}}function o(c,f){i(c,ne({},t.state,Ci(r.value.back,c,r.value.forward,!0),f,{position:r.value.position}),!0),s.value=c}function l(c,f){const a=ne({},r.value,t.state,{forward:c,scroll:bs()});i(a.current,a,!0),i(c,ne({},Ci(s.value,c,null),{position:a.position+1},f),!1),s.value=c}return{location:s,state:r,push:l,replace:o}}function Qf(e){e=Df(e);const t=Yf(e),n=Jf(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=ne({location:"",base:e,go:s,createHref:Ff.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 Yu(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Qf(e)}let Dt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var ge=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(ge||{});const Xf={type:Dt.Static,value:""},Zf=/[a-zA-Z0-9_]/;function eu(e){if(!e)return[[]];if(e==="/")return[[Xf]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${f}": ${m}`)}let n=ge.Static,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let l=0,c,f="",a="";function h(){f&&(n===ge.Static?i.push({type:Dt.Static,value:f}):n===ge.Param||n===ge.ParamRegExp||n===ge.ParamRegExpEnd?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Dt.Param,value:f,regexp:a,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),f="")}function p(){f+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&n!==ge.ParamRegExp){s=n,n=ge.EscapeNext;continue}switch(n){case ge.Static:c==="/"?(f&&h(),o()):c===":"?(h(),n=ge.Param):p();break;case ge.EscapeNext:p(),n=s;break;case ge.Param:c==="("?n=ge.ParamRegExp:Zf.test(c)?p():(h(),n=ge.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case ge.ParamRegExp:c===")"?a[a.length-1]=="\\"?a=a.slice(0,-1)+c:n=ge.ParamRegExpEnd:a+=c;break;case ge.ParamRegExpEnd:h(),n=ge.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--,a="";break;default:t("Unknown state");break}}return n===ge.ParamRegExp&&t(`Unfinished custom RegExp for param "${f}"`),h(),o(),r}const Ai="[^/]+?",tu={sensitive:!1,strict:!1,start:!0,end:!0};var xe=(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})(xe||{});const nu=/[.+*?^${}()[\]/\\]/g;function su(e,t){const n=ne({},tu,t),s=[];let r=n.start?"^":"";const i=[];for(const f of e){const a=f.length?[]:[xe.Root];n.strict&&!f.length&&(r+="/");for(let h=0;h<f.length;h++){const p=f[h];let m=xe.Segment+(n.sensitive?xe.BonusCaseSensitive:0);if(p.type===Dt.Static)h||(r+="/"),r+=p.value.replace(nu,"\\$&"),m+=xe.Static;else if(p.type===Dt.Param){const{value:C,repeatable:S,optional:D,regexp:L}=p;i.push({name:C,repeatable:S,optional:D});const x=L||Ai;if(x!==Ai){m+=xe.BonusCustomRegExp;try{`${x}`}catch(P){throw new Error(`Invalid custom RegExp for param "${C}" (${x}): `+P.message)}}let M=S?`((?:${x})(?:/(?:${x}))*)`:`(${x})`;h||(M=D&&f.length<2?`(?:/${M})`:"/"+M),D&&(M+="?"),r+=M,m+=xe.Dynamic,D&&(m+=xe.BonusOptional),S&&(m+=xe.BonusRepeatable),x===".*"&&(m+=xe.BonusWildcard)}a.push(m)}s.push(a)}if(n.strict&&n.end){const f=s.length-1;s[f][s[f].length-1]+=xe.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const o=new RegExp(r,n.sensitive?"":"i");function l(f){const a=f.match(o),h={};if(!a)return null;for(let p=1;p<a.length;p++){const m=a[p]||"",C=i[p-1];h[C.name]=m&&C.repeatable?m.split("/"):m}return h}function c(f){let a="",h=!1;for(const p of e){(!h||!a.endsWith("/"))&&(a+="/"),h=!1;for(const m of p)if(m.type===Dt.Static)a+=m.value;else if(m.type===Dt.Param){const{value:C,repeatable:S,optional:D}=m,L=C in f?f[C]:"";if(Ge(L)&&!S)throw new Error(`Provided param "${C}" is an array but it is not repeatable (* or + modifiers)`);const x=Ge(L)?L.join("/"):L;if(!x)if(D)p.length<2&&(a.endsWith("/")?a=a.slice(0,-1):h=!0);else throw new Error(`Missing required param "${C}"`);a+=x}}return a||"/"}return{re:o,score:s,keys:i,parse:l,stringify:c}}function ru(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]===xe.Static+xe.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===xe.Static+xe.Segment?1:-1:0}function Rl(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const i=ru(s[n],r[n]);if(i)return i;n++}if(Math.abs(r.length-s.length)===1){if(xi(s))return 1;if(xi(r))return-1}return r.length-s.length}function xi(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const iu={strict:!1,end:!0,sensitive:!1};function ou(e,t,n){const s=su(eu(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 lu(e,t){const n=[],s=new Map;t=_i(iu,t);function r(h){return s.get(h)}function i(h,p,m){const C=!m,S=Ri(h);S.aliasOf=m&&m.record;const D=_i(t,h),L=[S];if("alias"in h){const P=typeof h.alias=="string"?[h.alias]:h.alias;for(const K of P)L.push(Ri(ne({},S,{components:m?m.record.components:S.components,path:K,aliasOf:m?m.record:S})))}let x,M;for(const P of L){const{path:K}=P;if(p&&K[0]!=="/"){const X=p.record.path,V=X[X.length-1]==="/"?"":"/";P.path=p.record.path+(K&&V+K)}if(x=ou(P,p,D),m?m.alias.push(x):(M=M||x,M!==x&&M.alias.push(x),C&&h.name&&!Ti(x)&&o(h.name)),Tl(x)&&c(x),S.children){const X=S.children;for(let V=0;V<X.length;V++)i(X[V],x,m&&m.children[V])}m=m||x}return M?()=>{o(M)}:_n}function o(h){if(Al(h)){const p=s.get(h);p&&(s.delete(h),n.splice(n.indexOf(p),1),p.children.forEach(o),p.alias.forEach(o))}else{const p=n.indexOf(h);p>-1&&(n.splice(p,1),h.record.name&&s.delete(h.record.name),h.children.forEach(o),h.alias.forEach(o))}}function l(){return n}function c(h){const p=fu(h,n);n.splice(p,0,h),h.record.name&&!Ti(h)&&s.set(h.record.name,h)}function f(h,p){let m,C={},S,D;if("name"in h&&h.name){if(m=s.get(h.name),!m)throw Zt(he.MATCHER_NOT_FOUND,{location:h});D=m.record.name,C=ne(wi(p.params,m.keys.filter(M=>!M.optional).concat(m.parent?m.parent.keys.filter(M=>M.optional):[]).map(M=>M.name)),h.params&&wi(h.params,m.keys.map(M=>M.name))),S=m.stringify(C)}else if(h.path!=null)S=h.path,m=n.find(M=>M.re.test(S)),m&&(C=m.parse(S),D=m.record.name);else{if(m=p.name?s.get(p.name):n.find(M=>M.re.test(p.path)),!m)throw Zt(he.MATCHER_NOT_FOUND,{location:h,currentLocation:p});D=m.record.name,C=ne({},p.params,h.params),S=m.stringify(C)}const L=[];let x=m;for(;x;)L.unshift(x.record),x=x.parent;return{name:D,path:S,params:C,matched:L,meta:au(L)}}e.forEach(h=>i(h));function a(){n.length=0,s.clear()}return{addRoute:i,resolve:f,removeRoute:o,clearRoutes:a,getRoutes:l,getRecordMatcher:r}}function wi(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Ri(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:cu(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 cu(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 Ti(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function au(e){return e.reduce((t,n)=>ne(t,n.meta),{})}function fu(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;Rl(e,t[i])<0?s=i:n=i+1}const r=uu(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function uu(e){let t=e;for(;t=t.parent;)if(Tl(t)&&Rl(e,t)===0)return t}function Tl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Oi(e){const t=Be(Es),n=Be(Rr),s=He(()=>{const c=At(e.to);return t.resolve(c)}),r=He(()=>{const{matched:c}=s.value,{length:f}=c,a=c[f-1],h=n.matched;if(!a||!h.length)return-1;const p=h.findIndex(Xt.bind(null,a));if(p>-1)return p;const m=Pi(c[f-2]);return f>1&&Pi(a)===m&&h[h.length-1].path!==m?h.findIndex(Xt.bind(null,c[f-2])):p}),i=He(()=>r.value>-1&&mu(n.params,s.value.params)),o=He(()=>r.value>-1&&r.value===n.matched.length-1&&Cl(n.params,s.value.params));function l(c={}){if(gu(c)){const f=t[At(e.replace)?"replace":"push"](At(e.to)).catch(_n);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:s,href:He(()=>s.value.href),isActive:i,isExactActive:o,navigate:l}}function hu(e){return e.length===1?e[0]:e}const du=Ao({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:Oi,setup(e,{slots:t}){const n=Tn(Oi(e)),{options:s}=Be(Es),r=He(()=>({[Ii(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Ii(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&hu(t.default(n));return e.custom?i:Ar("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),pu=du;function gu(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 mu(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(!Ge(r)||r.length!==s.length||s.some((i,o)=>i.valueOf()!==r[o].valueOf()))return!1}return!0}function Pi(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ii=(e,t,n)=>e??t??n,_u=Ao({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Be(rr),r=He(()=>e.route||s.value),i=Be(Si,0),o=He(()=>{let f=At(i);const{matched:a}=r.value;let h;for(;(h=a[f])&&!h.components;)f++;return f}),l=He(()=>r.value.matched[o.value]);Bn(Si,He(()=>o.value+1)),Bn($f,l),Bn(rr,r);const c=dr();return dn(()=>[c.value,l.value,e.name],([f,a,h],[p,m,C])=>{a&&(a.instances[h]=f,m&&m!==a&&f&&f===p&&(a.leaveGuards.size||(a.leaveGuards=m.leaveGuards),a.updateGuards.size||(a.updateGuards=m.updateGuards))),f&&a&&(!m||!Xt(a,m)||!p)&&(a.enterCallbacks[h]||[]).forEach(S=>S(f))},{flush:"post"}),()=>{const f=r.value,a=e.name,h=l.value,p=h&&h.components[a];if(!p)return Ni(n.default,{Component:p,route:f});const m=h.props[a],C=m?m===!0?f.params:typeof m=="function"?m(f):m:null,D=Ar(p,ne({},C,t,{onVnodeUnmounted:L=>{L.component.isUnmounted&&(h.instances[a]=null)},ref:c}));return Ni(n.default,{Component:D,route:f})||D}}});function Ni(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const yu=_u;function Qu(e){const t=lu(e.routes,e),n=e.parseQuery||Gf,s=e.stringifyQuery||Ei,r=e.history,i=on(),o=on(),l=on(),c=lc(_t);let f=_t;Gt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=Ls.bind(null,v=>""+v),h=Ls.bind(null,Rf),p=Ls.bind(null,wn);function m(v,F){let I,j;return Al(v)?(I=t.getRecordMatcher(v),j=F):j=v,t.addRoute(j,I)}function C(v){const F=t.getRecordMatcher(v);F&&t.removeRoute(F)}function S(){return t.getRoutes().map(v=>v.record)}function D(v){return!!t.getRecordMatcher(v)}function L(v,F){if(F=ne({},F||c.value),typeof v=="string"){const g=Fs(n,v,F.path),y=t.resolve({path:g.path},F),b=r.createHref(g.fullPath);return ne(g,y,{params:p(y.params),hash:wn(g.hash),redirectedFrom:void 0,href:b})}let I;if(v.path!=null)I=ne({},v,{path:Fs(n,v.path,F.path).path});else{const g=ne({},v.params);for(const y in g)g[y]==null&&delete g[y];I=ne({},v,{params:h(g)}),F.params=h(F.params)}const j=t.resolve(I,F),Y=v.hash||"";j.params=a(p(j.params));const u=Pf(s,ne({},v,{hash:Af(Y),path:j.path})),d=r.createHref(u);return ne({fullPath:u,hash:Y,query:s===Ei?Wf(v.query):v.query||{}},j,{redirectedFrom:void 0,href:d})}function x(v){return typeof v=="string"?Fs(n,v,c.value.path):ne({},v)}function M(v,F){if(f!==v)return Zt(he.NAVIGATION_CANCELLED,{from:F,to:v})}function P(v){return V(v)}function K(v){return P(ne(x(v),{replace:!0}))}function X(v,F){const I=v.matched[v.matched.length-1];if(I&&I.redirect){const{redirect:j}=I;let Y=typeof j=="function"?j(v,F):j;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=x(Y):{path:Y},Y.params={}),ne({query:v.query,hash:v.hash,params:Y.path!=null?{}:v.params},Y)}}function V(v,F){const I=f=L(v),j=c.value,Y=v.state,u=v.force,d=v.replace===!0,g=X(I,j);if(g)return V(ne(x(g),{state:typeof g=="object"?ne({},Y,g.state):Y,force:u,replace:d}),F||I);const y=I;y.redirectedFrom=F;let b;return!u&&If(s,j,I)&&(b=Zt(he.NAVIGATION_DUPLICATED,{to:y,from:j}),We(j,j,!0,!1)),(b?Promise.resolve(b):G(y,j)).catch(_=>rt(_)?rt(_,he.NAVIGATION_GUARD_REDIRECT)?_:gt(_):te(_,y,j)).then(_=>{if(_){if(rt(_,he.NAVIGATION_GUARD_REDIRECT))return V(ne({replace:d},x(_.to),{state:typeof _.to=="object"?ne({},Y,_.to.state):Y,force:u}),F||y)}else _=O(y,j,!0,d,Y);return z(y,j,_),_})}function H(v,F){const I=M(v,F);return I?Promise.reject(I):Promise.resolve()}function A(v){const F=jt.values().next().value;return F&&typeof F.runWithContext=="function"?F.runWithContext(v):v()}function G(v,F){let I;const[j,Y,u]=qf(v,F);I=Hs(j.reverse(),"beforeRouteLeave",v,F);for(const g of j)g.leaveGuards.forEach(y=>{I.push(St(y,v,F))});const d=H.bind(null,v,F);return I.push(d),Le(I).then(()=>{I=[];for(const g of i.list())I.push(St(g,v,F));return I.push(d),Le(I)}).then(()=>{I=Hs(Y,"beforeRouteUpdate",v,F);for(const g of Y)g.updateGuards.forEach(y=>{I.push(St(y,v,F))});return I.push(d),Le(I)}).then(()=>{I=[];for(const g of u)if(g.beforeEnter)if(Ge(g.beforeEnter))for(const y of g.beforeEnter)I.push(St(y,v,F));else I.push(St(g.beforeEnter,v,F));return I.push(d),Le(I)}).then(()=>(v.matched.forEach(g=>g.enterCallbacks={}),I=Hs(u,"beforeRouteEnter",v,F,A),I.push(d),Le(I))).then(()=>{I=[];for(const g of o.list())I.push(St(g,v,F));return I.push(d),Le(I)}).catch(g=>rt(g,he.NAVIGATION_CANCELLED)?g:Promise.reject(g))}function z(v,F,I){l.list().forEach(j=>A(()=>j(v,F,I)))}function O(v,F,I,j,Y){const u=M(v,F);if(u)return u;const d=F===_t,g=Gt?history.state:{};I&&(j||d?r.replace(v.fullPath,ne({scroll:d&&g&&g.scroll},Y)):r.push(v.fullPath,Y)),c.value=v,We(v,F,I,d),gt()}let J;function fe(){J||(J=r.listen((v,F,I)=>{if(!Rt.listening)return;const j=L(v),Y=X(j,Rt.currentRoute.value);if(Y){V(ne(Y,{replace:!0,force:!0}),j).catch(_n);return}f=j;const u=c.value;Gt&&Bf(bi(u.fullPath,I.delta),bs()),G(j,u).catch(d=>rt(d,he.NAVIGATION_ABORTED|he.NAVIGATION_CANCELLED)?d:rt(d,he.NAVIGATION_GUARD_REDIRECT)?(V(ne(x(d.to),{force:!0}),j).then(g=>{rt(g,he.NAVIGATION_ABORTED|he.NAVIGATION_DUPLICATED)&&!I.delta&&I.type===nr.pop&&r.go(-1,!1)}).catch(_n),Promise.reject()):(I.delta&&r.go(-I.delta,!1),te(d,j,u))).then(d=>{d=d||O(j,u,!1),d&&(I.delta&&!rt(d,he.NAVIGATION_CANCELLED)?r.go(-I.delta,!1):I.type===nr.pop&&rt(d,he.NAVIGATION_ABORTED|he.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),z(j,u,d)}).catch(_n)}))}let Se=on(),ie=on(),q;function te(v,F,I){gt(v);const j=ie.list();return j.length?j.forEach(Y=>Y(v,F,I)):console.error(v),Promise.reject(v)}function nt(){return q&&c.value!==_t?Promise.resolve():new Promise((v,F)=>{Se.add([v,F])})}function gt(v){return q||(q=!v,fe(),Se.list().forEach(([F,I])=>v?I(v):F()),Se.reset()),v}function We(v,F,I,j){const{scrollBehavior:Y}=e;if(!Gt||!Y)return Promise.resolve();const u=!I&&jf(bi(v.fullPath,0))||(j||!I)&&history.state&&history.state.scroll||null;return pr().then(()=>Y(v,F,u)).then(d=>d&&Hf(d)).catch(d=>te(d,v,F))}const Oe=v=>r.go(v);let Bt;const jt=new Set,Rt={currentRoute:c,listening:!0,addRoute:m,removeRoute:C,clearRoutes:t.clearRoutes,hasRoute:D,getRoutes:S,resolve:L,options:e,push:P,replace:K,go:Oe,back:()=>Oe(-1),forward:()=>Oe(1),beforeEach:i.add,beforeResolve:o.add,afterEach:l.add,onError:ie.add,isReady:nt,install(v){v.component("RouterLink",pu),v.component("RouterView",yu),v.config.globalProperties.$router=Rt,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>At(c)}),Gt&&!Bt&&c.value===_t&&(Bt=!0,P(r.location).catch(j=>{}));const F={};for(const j in _t)Object.defineProperty(F,j,{get:()=>c.value[j],enumerable:!0});v.provide(Es,Rt),v.provide(Rr,lo(F)),v.provide(rr,c);const I=v.unmount;jt.add(v),v.unmount=function(){jt.delete(v),jt.size<1&&(f=_t,J&&J(),J=null,c.value=_t,Bt=!1,q=!1),I()}}};function Le(v){return v.reduce((F,I)=>F.then(()=>A(I)),Promise.resolve())}return Rt}function Xu(){return Be(Es)}function Zu(e){return Be(Rr)}export{kl as $,Oo as A,Mc as B,Bn as C,Cn as D,be as E,Pe as F,Ao as G,Ar as H,Eu as I,Pc as J,Ic as K,Js as L,Fu as M,ke as N,Ys as O,Xo as P,Nu as Q,os as R,ls as S,wu as T,ma as U,Du as V,bc as W,Au as X,Tu as Y,ga as Z,pa as _,lc as a,Re as a0,Bu as a1,Hu as a2,xt as a3,_s as a4,Cu as a5,Po as a6,fc as a7,To as a8,ju as a9,Zu as aA,Xu as aB,Qu as aC,Yu as aD,zu as aE,hr as aa,Lu as ab,Gu as ac,Iu as ad,Pu as ae,Ir as af,Q as ag,Vn as ah,Fi as ai,Ru as aj,Ou as ak,vu as al,da as am,Uu as an,Ku as ao,Dc as ap,Wu as aq,ku as ar,Di as as,Mu as at,Ki as au,$u as av,qu as aw,wt as ax,lo as ay,Ju as az,xu as b,dr as c,Ro as d,Tn as e,Pn as f,Gi as g,Ec as h,ue as i,Be as j,He as k,ae as l,B as m,pr as n,Ul as o,ee as p,$ as q,Us as r,bu as s,Su as t,At as u,se as v,dn as w,Vu as x,rs as y,Te as z};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Git Cockpit</title>
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-DPTh-RCh.js"></script>
|
|
8
|
+
<link rel="modulepreload" crossorigin href="/assets/vue-CYNDxJyv.js">
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/assets/element-plus-D8uC5V5h.js">
|
|
10
|
+
<link rel="stylesheet" crossorigin href="/assets/index-Ca6CZ6v8.css">
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<div id="app"></div>
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FastifyInstance } from 'fastify';
|
|
2
|
+
import { R as Runtime } from './runtime-CmdOmv60.js';
|
|
3
|
+
import 'node:events';
|
|
4
|
+
import 'node:sqlite';
|
|
5
|
+
import '@shaohui_jin/git-cockpit-core';
|
|
6
|
+
|
|
7
|
+
interface WebServerHandle {
|
|
8
|
+
app: FastifyInstance;
|
|
9
|
+
/** 关闭 HTTP 服务与相关资源 */
|
|
10
|
+
close: () => Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
declare function createWebServer(runtime: Runtime, options?: {
|
|
13
|
+
host?: string;
|
|
14
|
+
port?: number;
|
|
15
|
+
staticDir?: string | null;
|
|
16
|
+
noListen?: boolean;
|
|
17
|
+
}): Promise<WebServerHandle>;
|
|
18
|
+
|
|
19
|
+
export { type WebServerHandle, createWebServer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@shaohui_jin/git-cockpit-mcp-server",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Git Cockpit - 基于 MCP 的 Git 可视化操作工具(MCP Server + Web 服务 + CLI)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=22.5.0"
|
|
9
|
+
},
|
|
10
|
+
"bin": {
|
|
11
|
+
"git-cockpit": "./dist/cli-entry.js"
|
|
12
|
+
},
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"main": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"import": "./dist/index.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@fastify/cors": "^10.0.2",
|
|
29
|
+
"@fastify/static": "^8.0.3",
|
|
30
|
+
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
31
|
+
"fastify": "^5.2.1",
|
|
32
|
+
"zod": "^3.24.1",
|
|
33
|
+
"@shaohui_jin/git-cockpit-core": "^0.1.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"simple-git": "^3.27.0",
|
|
37
|
+
"tsup": "^8.3.5",
|
|
38
|
+
"typescript": "^5.7.2",
|
|
39
|
+
"vitest": "^3.0.4"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsup",
|
|
43
|
+
"dev": "tsup --watch",
|
|
44
|
+
"test": "vitest run",
|
|
45
|
+
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
46
|
+
}
|
|
47
|
+
}
|