From 8858b3af7224e7dd7805eaf2942d881152074932 Mon Sep 17 00:00:00 2001 From: YokiiroBW Date: Sun, 5 Jul 2026 11:22:03 +0800 Subject: [PATCH] feat: add capability override controls --- frontend/standalone-web/src/App.vue | 22 +++++++++++++++++++++- web/assets/index-B92QQGCh.css | 1 - web/assets/index-BCNEksZg.js | 17 ----------------- web/assets/index-BTWVDt8L.css | 1 + web/assets/index-QsMDq_Mp.js | 17 +++++++++++++++++ web/index.html | 4 ++-- 6 files changed, 41 insertions(+), 21 deletions(-) delete mode 100644 web/assets/index-B92QQGCh.css delete mode 100644 web/assets/index-BCNEksZg.js create mode 100644 web/assets/index-BTWVDt8L.css create mode 100644 web/assets/index-QsMDq_Mp.js diff --git a/frontend/standalone-web/src/App.vue b/frontend/standalone-web/src/App.vue index 849cafb..2c14650 100644 --- a/frontend/standalone-web/src/App.vue +++ b/frontend/standalone-web/src/App.vue @@ -191,6 +191,18 @@ function safeProbeModel() { ) } +function setCapabilityStatus(profile: CapabilityProfile, status: CapabilityProfile["status"]) { + return runOperation("能力覆盖", () => + postJson(endpoints.apiDiscoveryManualOverride, { + provider_id: profile.provider_id, + model_id: profile.model_id, + dialect: profile.dialect, + status, + capabilities: profile.capabilities, + }), + ) +} + function matchWardrobe() { const profileId = selectedProfileId.value if (!profileId) return Promise.resolve() @@ -448,7 +460,15 @@ function storageRootBytes(uriPrefix: string) { {{ profile.provider_id }} / {{ profile.model_id }} {{ profile.dialect }} - {{ profile.status }} +
+ {{ profile.status }} + + +
  • 暂无能力档案
  • diff --git a/web/assets/index-B92QQGCh.css b/web/assets/index-B92QQGCh.css deleted file mode 100644 index e70577d..0000000 --- a/web/assets/index-B92QQGCh.css +++ /dev/null @@ -1 +0,0 @@ -.web-shell[data-v-0ef32593]{box-sizing:border-box;display:grid;grid-template-columns:220px minmax(0,1fr) 260px;min-height:100vh;color:#1b2430;background:#f5f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sidebar[data-v-0ef32593],.inspector[data-v-0ef32593]{background:#fff}.sidebar[data-v-0ef32593]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-0ef32593]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-0ef32593]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-0ef32593]{font-size:19px}.brand span[data-v-0ef32593],p[data-v-0ef32593],dt[data-v-0ef32593],.empty[data-v-0ef32593],small[data-v-0ef32593]{color:#667085}nav[data-v-0ef32593]{display:grid;gap:6px}button[data-v-0ef32593]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-0ef32593]:disabled{cursor:wait;opacity:.62}nav button[data-v-0ef32593]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-0ef32593]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-0ef32593]{min-width:0;padding:24px}.topbar[data-v-0ef32593],.list-view header[data-v-0ef32593],.toolbar[data-v-0ef32593],.inline-actions[data-v-0ef32593]{display:flex;gap:12px;align-items:center}.topbar[data-v-0ef32593],.list-view header[data-v-0ef32593]{justify-content:space-between}.actions[data-v-0ef32593],.inline-actions[data-v-0ef32593]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-0ef32593],.toolbar button[data-v-0ef32593],.list-view header button[data-v-0ef32593],.inline-actions button[data-v-0ef32593]{padding:0 14px}h1[data-v-0ef32593],h2[data-v-0ef32593],p[data-v-0ef32593],dl[data-v-0ef32593],dd[data-v-0ef32593]{margin:0}h1[data-v-0ef32593]{min-height:30px;font-size:26px}h2[data-v-0ef32593]{font-size:15px}.notice[data-v-0ef32593],article[data-v-0ef32593],.list-view[data-v-0ef32593],pre[data-v-0ef32593]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-0ef32593]{margin-top:18px;padding:14px}.error[data-v-0ef32593]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-0ef32593],.split-view[data-v-0ef32593]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-0ef32593]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-0ef32593]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-0ef32593]{display:grid;gap:8px;padding:16px}article span[data-v-0ef32593]{color:#667085;font-size:13px}article strong[data-v-0ef32593]{font-size:24px}.list-view[data-v-0ef32593],.logs-view[data-v-0ef32593],.settings-view[data-v-0ef32593]{margin-top:18px}.split-view .list-view[data-v-0ef32593],.logs-view .list-view[data-v-0ef32593]{margin-top:0}.list-view[data-v-0ef32593]{padding:16px}ul[data-v-0ef32593]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-0ef32593]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-0ef32593]:first-child{border-top:0}li>div[data-v-0ef32593]{display:grid;gap:3px;min-width:0}li strong[data-v-0ef32593],li span[data-v-0ef32593],li small[data-v-0ef32593]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-0ef32593]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-0ef32593]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-0ef32593]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-0ef32593]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-0ef32593]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-0ef32593]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-0ef32593]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-0ef32593]{display:none}}@media(max-width:820px){.web-shell[data-v-0ef32593]{grid-template-columns:1fr}.sidebar[data-v-0ef32593]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-0ef32593]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-0ef32593]{text-align:center}.dashboard-grid[data-v-0ef32593],.split-view[data-v-0ef32593],.settings-sections[data-v-0ef32593]{grid-template-columns:1fr}.topbar[data-v-0ef32593],.list-view header[data-v-0ef32593]{align-items:flex-start;flex-direction:column}} diff --git a/web/assets/index-BCNEksZg.js b/web/assets/index-BCNEksZg.js deleted file mode 100644 index 44e2bcf..0000000 --- a/web/assets/index-BCNEksZg.js +++ /dev/null @@ -1,17 +0,0 @@ -var Gi=Object.defineProperty;var zi=(e,t,s)=>t in e?Gi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var bs=(e,t,s)=>zi(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const r of l.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function s(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(i){if(i.ep)return;i.ep=!0;const l=s(i);fetch(i.href,l)}})();/** -* @vue/shared v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Vs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const X={},xt=[],We=()=>{},Bn=()=>!1,fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),as=e=>e.startsWith("onUpdate:"),de=Object.assign,Ws=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Yi=Object.prototype.hasOwnProperty,W=(e,t)=>Yi.call(e,t),L=Array.isArray,wt=e=>qt(e)==="[object Map]",Kn=e=>qt(e)==="[object Set]",dn=e=>qt(e)==="[object Date]",N=e=>typeof e=="function",ie=e=>typeof e=="string",qe=e=>typeof e=="symbol",G=e=>e!==null&&typeof e=="object",Un=e=>(G(e)||N(e))&&N(e.then)&&N(e.catch),Vn=Object.prototype.toString,qt=e=>Vn.call(e),Xi=e=>qt(e).slice(8,-1),Wn=e=>qt(e)==="[object Object]",qs=e=>ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ft=Vs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ds=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Zi=/-\w/g,Me=ds(e=>e.replace(Zi,t=>t.slice(1).toUpperCase())),Qi=/\B([A-Z])/g,pt=ds(e=>e.replace(Qi,"-$1").toLowerCase()),qn=ds(e=>e.charAt(0).toUpperCase()+e.slice(1)),ys=ds(e=>e?`on${qn(e)}`:""),Ue=(e,t)=>!Object.is(e,t),xs=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},el=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let hn;const hs=()=>hn||(hn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Js(e){if(L(e)){const t={};for(let s=0;s{if(s){const n=s.split(sl);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Pe(e){let t="";if(ie(e))t=e;else if(L(e))for(let s=0;s!!(e&&e.__v_isRef===!0),T=e=>ie(e)?e:e==null?"":L(e)||G(e)&&(e.toString===Vn||!N(e.toString))?zn(e)?T(e.value):JSON.stringify(e,Yn,2):String(e),Yn=(e,t)=>zn(t)?Yn(e,t.value):wt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],l)=>(s[ws(n,l)+" =>"]=i,s),{})}:Kn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ws(s))}:qe(t)?ws(t):G(t)&&!L(t)&&!Wn(t)?String(t):t,ws=(e,t="")=>{var s;return qe(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** -* @vue/reactivity v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let ae;class ul{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&&ae&&(ae.active?(this.parent=ae,this.index=(ae.scopes||(ae.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0){if(ae===this)ae=this.prevScope;else{let t=ae;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 s,n;for(s=0,n=this.effects.length;s0)return;if(jt){let t=jt;for(jt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;$t;){let t=$t;for($t=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function ei(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ti(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),Xs(n),fl(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Ds(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(si(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function si(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Bt)||(e.globalVersion=Bt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ds(e))))return;e.flags|=2;const t=e.dep,s=Y,n=Re;Y=e,Re=!0;try{ei(e);const i=e.fn(e._value);(t.version===0||Ue(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Y=s,Re=n,ti(e),e.flags&=-3}}function Xs(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let l=s.computed.deps;l;l=l.nextDep)Xs(l,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function fl(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Re=!0;const ni=[];function Je(){ni.push(Re),Re=!1}function Ge(){const e=ni.pop();Re=e===void 0?!0:e}function pn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Y;Y=void 0;try{t()}finally{Y=s}}}let Bt=0;class al{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Zs{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(!Y||!Re||Y===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Y)s=this.activeLink=new al(Y,this),Y.deps?(s.prevDep=Y.depsTail,Y.depsTail.nextDep=s,Y.depsTail=s):Y.deps=Y.depsTail=s,ii(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=Y.depsTail,s.nextDep=void 0,Y.depsTail.nextDep=s,Y.depsTail=s,Y.deps===s&&(Y.deps=n)}return s}trigger(t){this.version++,Bt++,this.notify(t)}notify(t){zs();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Ys()}}}function ii(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)ii(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Fs=new WeakMap,dt=Symbol(""),$s=Symbol(""),Kt=Symbol("");function he(e,t,s){if(Re&&Y){let n=Fs.get(e);n||Fs.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new Zs),i.map=n,i.key=s),i.track()}}function et(e,t,s,n,i,l){const r=Fs.get(e);if(!r){Bt++;return}const o=c=>{c&&c.trigger()};if(zs(),t==="clear")r.forEach(o);else{const c=L(e),h=c&&qs(s);if(c&&s==="length"){const d=Number(n);r.forEach((_,O)=>{(O==="length"||O===Kt||!qe(O)&&O>=d)&&o(_)})}else switch((s!==void 0||r.has(void 0))&&o(r.get(s)),h&&o(r.get(Kt)),t){case"add":c?h&&o(r.get("length")):(o(r.get(dt)),wt(e)&&o(r.get($s)));break;case"delete":c||(o(r.get(dt)),wt(e)&&o(r.get($s)));break;case"set":wt(e)&&o(r.get(dt));break}}Ys()}function mt(e){const t=V(e);return t===e?t:(he(t,"iterate",Kt),Oe(e)?t:t.map(Ie))}function ps(e){return he(e=V(e),"iterate",Kt),e}function Be(e,t){return st(e)?Tt(ht(e)?Ie(t):t):Ie(t)}const dl={__proto__:null,[Symbol.iterator](){return Cs(this,Symbol.iterator,e=>Be(this,e))},concat(...e){return mt(this).concat(...e.map(t=>L(t)?mt(t):t))},entries(){return Cs(this,"entries",e=>(e[1]=Be(this,e[1]),e))},every(e,t){return Xe(this,"every",e,t,void 0,arguments)},filter(e,t){return Xe(this,"filter",e,t,s=>s.map(n=>Be(this,n)),arguments)},find(e,t){return Xe(this,"find",e,t,s=>Be(this,s),arguments)},findIndex(e,t){return Xe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xe(this,"findLast",e,t,s=>Be(this,s),arguments)},findLastIndex(e,t){return Xe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ts(this,"includes",e)},indexOf(...e){return Ts(this,"indexOf",e)},join(e){return mt(this).join(e)},lastIndexOf(...e){return Ts(this,"lastIndexOf",e)},map(e,t){return Xe(this,"map",e,t,void 0,arguments)},pop(){return Mt(this,"pop")},push(...e){return Mt(this,"push",e)},reduce(e,...t){return gn(this,"reduce",e,t)},reduceRight(e,...t){return gn(this,"reduceRight",e,t)},shift(){return Mt(this,"shift")},some(e,t){return Xe(this,"some",e,t,void 0,arguments)},splice(...e){return Mt(this,"splice",e)},toReversed(){return mt(this).toReversed()},toSorted(e){return mt(this).toSorted(e)},toSpliced(...e){return mt(this).toSpliced(...e)},unshift(...e){return Mt(this,"unshift",e)},values(){return Cs(this,"values",e=>Be(this,e))}};function Cs(e,t,s){const n=ps(e),i=n[t]();return n!==e&&!Oe(e)&&(i._next=i.next,i.next=()=>{const l=i._next();return l.done||(l.value=s(l.value)),l}),i}const hl=Array.prototype;function Xe(e,t,s,n,i,l){const r=ps(e),o=r!==e&&!Oe(e),c=r[t];if(c!==hl[t]){const _=c.apply(e,l);return o?Ie(_):_}let h=s;r!==e&&(o?h=function(_,O){return s.call(this,Be(e,_),O,e)}:s.length>2&&(h=function(_,O){return s.call(this,_,O,e)}));const d=c.call(r,h,n);return o&&i?i(d):d}function gn(e,t,s,n){const i=ps(e),l=i!==e&&!Oe(e);let r=s,o=!1;i!==e&&(l?(o=n.length===0,r=function(h,d,_){return o&&(o=!1,h=Be(e,h)),s.call(this,h,Be(e,d),_,e)}):s.length>3&&(r=function(h,d,_){return s.call(this,h,d,_,e)}));const c=i[t](r,...n);return o?Be(e,c):c}function Ts(e,t,s){const n=V(e);he(n,"iterate",Kt);const i=n[t](...s);return(i===-1||i===!1)&&sn(s[0])?(s[0]=V(s[0]),n[t](...s)):i}function Mt(e,t,s=[]){Je(),zs();const n=V(e)[t].apply(e,s);return Ys(),Ge(),n}const pl=Vs("__proto__,__v_isRef,__isVue"),li=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(qe));function gl(e){qe(e)||(e=String(e));const t=V(this);return he(t,"has",e),t.hasOwnProperty(e)}class ri{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,l=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return l;if(s==="__v_raw")return n===(i?l?Tl:fi:l?ci:ui).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const r=L(t);if(!i){let c;if(r&&(c=dl[s]))return c;if(s==="hasOwnProperty")return gl}const o=Reflect.get(t,s,pe(t)?t:n);if((qe(s)?li.has(s):pl(s))||(i||he(t,"get",s),l))return o;if(pe(o)){const c=r&&qs(s)?o:o.value;return i&&G(c)?Ls(c):c}return G(o)?i?Ls(o):en(o):o}}class oi extends ri{constructor(t=!1){super(!1,t)}set(t,s,n,i){let l=t[s];const r=L(t)&&qs(s);if(!this._isShallow){const h=st(l);if(!Oe(n)&&!st(n)&&(l=V(l),n=V(n)),!r&&pe(l)&&!pe(n))return h||(l.value=n),!0}const o=r?Number(s)e,Zt=e=>Reflect.getPrototypeOf(e);function yl(e,t,s){return function(...n){const i=this.__v_raw,l=V(i),r=wt(l),o=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,h=i[e](...n),d=s?js:t?Tt:Ie;return!t&&he(l,"iterate",c?$s:dt),de(Object.create(h),{next(){const{value:_,done:O}=h.next();return O?{value:_,done:O}:{value:o?[d(_[0]),d(_[1])]:d(_),done:O}}})}}function Qt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xl(e,t){const s={get(i){const l=this.__v_raw,r=V(l),o=V(i);e||(Ue(i,o)&&he(r,"get",i),he(r,"get",o));const{has:c}=Zt(r),h=t?js:e?Tt:Ie;if(c.call(r,i))return h(l.get(i));if(c.call(r,o))return h(l.get(o));l!==r&&l.get(i)},get size(){const i=this.__v_raw;return!e&&he(V(i),"iterate",dt),i.size},has(i){const l=this.__v_raw,r=V(l),o=V(i);return e||(Ue(i,o)&&he(r,"has",i),he(r,"has",o)),i===o?l.has(i):l.has(i)||l.has(o)},forEach(i,l){const r=this,o=r.__v_raw,c=V(o),h=t?js:e?Tt:Ie;return!e&&he(c,"iterate",dt),o.forEach((d,_)=>i.call(l,h(d),h(_),r))}};return de(s,e?{add:Qt("add"),set:Qt("set"),delete:Qt("delete"),clear:Qt("clear")}:{add(i){const l=V(this),r=Zt(l),o=V(i),c=!t&&!Oe(i)&&!st(i)?o:i;return r.has.call(l,c)||Ue(i,c)&&r.has.call(l,i)||Ue(o,c)&&r.has.call(l,o)||(l.add(c),et(l,"add",c,c)),this},set(i,l){!t&&!Oe(l)&&!st(l)&&(l=V(l));const r=V(this),{has:o,get:c}=Zt(r);let h=o.call(r,i);h||(i=V(i),h=o.call(r,i));const d=c.call(r,i);return r.set(i,l),h?Ue(l,d)&&et(r,"set",i,l):et(r,"add",i,l),this},delete(i){const l=V(this),{has:r,get:o}=Zt(l);let c=r.call(l,i);c||(i=V(i),c=r.call(l,i)),o&&o.call(l,i);const h=l.delete(i);return c&&et(l,"delete",i,void 0),h},clear(){const i=V(this),l=i.size!==0,r=i.clear();return l&&et(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=yl(i,e,t)}),s}function Qs(e,t){const s=xl(e,t);return(n,i,l)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(W(s,i)&&i in n?s:n,i,l)}const wl={get:Qs(!1,!1)},Sl={get:Qs(!1,!0)},Cl={get:Qs(!0,!1)};const ui=new WeakMap,ci=new WeakMap,fi=new WeakMap,Tl=new WeakMap;function El(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function en(e){return st(e)?e:tn(e,!1,vl,wl,ui)}function Ol(e){return tn(e,!1,bl,Sl,ci)}function Ls(e){return tn(e,!0,ml,Cl,fi)}function tn(e,t,s,n,i){if(!G(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const l=i.get(e);if(l)return l;const r=El(Xi(e));if(r===0)return e;const o=new Proxy(e,r===2?n:s);return i.set(e,o),o}function ht(e){return st(e)?ht(e.__v_raw):!!(e&&e.__v_isReactive)}function st(e){return!!(e&&e.__v_isReadonly)}function Oe(e){return!!(e&&e.__v_isShallow)}function sn(e){return e?!!e.__v_raw:!1}function V(e){const t=e&&e.__v_raw;return t?V(t):e}function Al(e){return!W(e,"__v_skip")&&Object.isExtensible(e)&&Jn(e,"__v_skip",!0),e}const Ie=e=>G(e)?en(e):e,Tt=e=>G(e)?Ls(e):e;function pe(e){return e?e.__v_isRef===!0:!1}function le(e){return Pl(e,!1)}function Pl(e,t){return pe(e)?e:new Ml(e,t)}class Ml{constructor(t,s){this.dep=new Zs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:V(t),this._value=s?t:Ie(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Oe(t)||st(t);t=n?t:V(t),Ue(t,s)&&(this._rawValue=t,this._value=n?t:Ie(t),this.dep.trigger())}}function Rl(e){return pe(e)?e.value:e}const Il={get:(e,t,s)=>t==="__v_raw"?e:Rl(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return pe(i)&&!pe(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function ai(e){return ht(e)?e:new Proxy(e,Il)}class Dl{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Zs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Y!==this)return Qn(this,!0),!0}get value(){const t=this.dep.track();return si(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Fl(e,t,s=!1){let n,i;return N(e)?n=e:(n=e.get,i=e.set),new Dl(n,i,s)}const es={},ns=new WeakMap;let at;function $l(e,t=!1,s=at){if(s){let n=ns.get(s);n||ns.set(s,n=[]),n.push(e)}}function jl(e,t,s=X){const{immediate:n,deep:i,once:l,scheduler:r,augmentJob:o,call:c}=s,h=D=>i?D:Oe(D)||i===!1||i===0?lt(D,1):lt(D);let d,_,O,M,K=!1,P=!1;if(pe(e)?(_=()=>e.value,K=Oe(e)):ht(e)?(_=()=>h(e),K=!0):L(e)?(P=!0,K=e.some(D=>ht(D)||Oe(D)),_=()=>e.map(D=>{if(pe(D))return D.value;if(ht(D))return h(D);if(N(D))return c?c(D,2):D()})):N(e)?t?_=c?()=>c(e,2):e:_=()=>{if(O){Je();try{O()}finally{Ge()}}const D=at;at=d;try{return c?c(e,3,[M]):e(M)}finally{at=D}}:_=We,t&&i){const D=_,se=i===!0?1/0:i;_=()=>lt(D(),se)}const Z=cl(),q=()=>{d.stop(),Z&&Z.active&&Ws(Z.effects,d)};if(l&&t){const D=t;t=(...se)=>{const Ce=D(...se);return q(),Ce}}let k=P?new Array(e.length).fill(es):es;const H=D=>{if(!(!(d.flags&1)||!d.dirty&&!D))if(t){const se=d.run();if(D||i||K||(P?se.some((Ce,Te)=>Ue(Ce,k[Te])):Ue(se,k))){O&&O();const Ce=at;at=d;try{const Te=[se,k===es?void 0:P&&k[0]===es?[]:k,M];k=se,c?c(t,3,Te):t(...Te)}finally{at=Ce}}}else d.run()};return o&&o(H),d=new Xn(_),d.scheduler=r?()=>r(H,!1):H,M=D=>$l(D,!1,d),O=d.onStop=()=>{const D=ns.get(d);if(D){if(c)c(D,4);else for(const se of D)se();ns.delete(d)}},t?n?H(!0):k=d.run():r?r(H.bind(null,!0),!0):d.run(),q.pause=d.pause.bind(d),q.resume=d.resume.bind(d),q.stop=q,q}function lt(e,t=1/0,s){if(t<=0||!G(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,pe(e))lt(e.value,t,s);else if(L(e))for(let n=0;n{lt(n,t,s)});else if(Wn(e)){for(const n in e)lt(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&<(e[n],t,s)}return e}/** -* @vue/runtime-core v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Jt(e,t,s,n){try{return n?e(...n):e()}catch(i){gs(i,t,s)}}function De(e,t,s,n){if(N(e)){const i=Jt(e,t,s,n);return i&&Un(i)&&i.catch(l=>{gs(l,t,s)}),i}if(L(e)){const i=[];for(let l=0;l>>1,i=ve[n],l=Ut(i);l=Ut(s)?ve.push(e):ve.splice(Hl(t),0,e),e.flags|=1,hi()}}function hi(){is||(is=di.then(gi))}function kl(e){L(e)?St.push(...e):it&&e.id===-1?it.splice(bt+1,0,e):e.flags&1||(St.push(e),e.flags|=1),hi()}function _n(e,t,s=ke+1){for(;sUt(s)-Ut(n));if(St.length=0,it){it.push(...t);return}for(it=t,bt=0;bte.id==null?e.flags&2?-1:1/0:e.id;function gi(e){try{for(ke=0;ke{n._d&&On(-1);const l=ls(t);let r;try{r=e(...i)}finally{ls(l),n._d&&On(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function ut(e,t,s,n){const i=e.dirs,l=t&&t.dirs;for(let r=0;r1)return s&&N(t)?t.call(n&&n.proxy):t}}const Ul=Symbol.for("v-scx"),Vl=()=>ts(Ul);function Es(e,t,s){return vi(e,t,s)}function vi(e,t,s=X){const{immediate:n,deep:i,flush:l,once:r}=s,o=de({},s),c=t&&n||!t&&l!=="post";let h;if(Wt){if(l==="sync"){const M=Vl();h=M.__watcherHandles||(M.__watcherHandles=[])}else if(!c){const M=()=>{};return M.stop=We,M.resume=We,M.pause=We,M}}const d=me;o.call=(M,K,P)=>De(M,d,K,P);let _=!1;l==="post"?o.scheduler=M=>{be(M,d&&d.suspense)}:l!=="sync"&&(_=!0,o.scheduler=(M,K)=>{K?M():nn(M)}),o.augmentJob=M=>{t&&(M.flags|=4),_&&(M.flags|=2,d&&(M.id=d.uid,M.i=d))};const O=jl(e,t,o);return Wt&&(h?h.push(O):c&&O()),O}function Wl(e,t,s){const n=this.proxy,i=ie(e)?e.includes(".")?mi(n,e):()=>n[e]:e.bind(n,n);let l;N(t)?l=t:(l=t.handler,s=t);const r=Gt(this),o=vi(i,l.bind(n),s);return r(),o}function mi(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;ie.__isTeleport,Os=Symbol("_leaveCb");function ln(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ln(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Gl(e,t){return N(e)?de({name:e.name},t,{setup:e}):e}function bi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function vn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const rs=new WeakMap;function Lt(e,t,s,n,i=!1){if(L(e)){e.forEach((P,Z)=>Lt(P,t&&(L(t)?t[Z]:t),s,n,i));return}if(Nt(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Lt(e,t,s,n.component.subTree);return}const l=n.shapeFlag&4?un(n.component):n.el,r=i?null:l,{i:o,r:c}=e,h=t&&t.r,d=o.refs===X?o.refs={}:o.refs,_=o.setupState,O=V(_),M=_===X?Bn:P=>vn(d,P)?!1:W(O,P),K=(P,Z)=>!(Z&&vn(d,Z));if(h!=null&&h!==c){if(mn(t),ie(h))d[h]=null,M(h)&&(_[h]=null);else if(pe(h)){const P=t;K(h,P.k)&&(h.value=null),P.k&&(d[P.k]=null)}}if(N(c)){Je();try{Jt(c,o,12,[r,d])}finally{Ge()}}else{const P=ie(c),Z=pe(c);if(P||Z){const q=()=>{if(e.f){const k=P?M(c)?_[c]:d[c]:K()||!e.k?c.value:d[e.k];if(i)L(k)&&Ws(k,l);else if(L(k))k.includes(l)||k.push(l);else if(P)d[c]=[l],M(c)&&(_[c]=d[c]);else{const H=[l];K(c,e.k)&&(c.value=H),e.k&&(d[e.k]=H)}}else P?(d[c]=r,M(c)&&(_[c]=r)):Z&&(K(c,e.k)&&(c.value=r),e.k&&(d[e.k]=r))};if(r){const k=()=>{q(),rs.delete(e)};k.id=-1,rs.set(e,k),be(k,s)}else mn(e),q()}}}function mn(e){const t=rs.get(e);t&&(t.flags|=8,rs.delete(e))}hs().requestIdleCallback;hs().cancelIdleCallback;const Nt=e=>!!e.type.__asyncLoader,yi=e=>e.type.__isKeepAlive;function zl(e,t){xi(e,"a",t)}function Yl(e,t){xi(e,"da",t)}function xi(e,t,s=me){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(_s(t,n,s),s){let i=s.parent;for(;i&&i.parent;)yi(i.parent.vnode)&&Xl(n,t,s,i),i=i.parent}}function Xl(e,t,s,n){const i=_s(t,e,n,!0);Si(()=>{Ws(n[t],i)},s)}function _s(e,t,s=me,n=!1){if(s){const i=s[e]||(s[e]=[]),l=t.__weh||(t.__weh=(...r)=>{Je();const o=Gt(s),c=De(t,s,e,r);return o(),Ge(),c});return n?i.unshift(l):i.push(l),l}}const nt=e=>(t,s=me)=>{(!Wt||e==="sp")&&_s(e,(...n)=>t(...n),s)},Zl=nt("bm"),wi=nt("m"),Ql=nt("bu"),er=nt("u"),tr=nt("bum"),Si=nt("um"),sr=nt("sp"),nr=nt("rtg"),ir=nt("rtc");function lr(e,t=me){_s("ec",e,t)}const rr=Symbol.for("v-ndc");function we(e,t,s,n){let i;const l=s,r=L(e);if(r||ie(e)){const o=r&&ht(e);let c=!1,h=!1;o&&(c=!Oe(e),h=st(e),e=ps(e)),i=new Array(e.length);for(let d=0,_=e.length;d<_;d++)i[d]=t(c?h?Tt(Ie(e[d])):Ie(e[d]):e[d],d,void 0,l)}else if(typeof e=="number"){i=new Array(e);for(let o=0;ot(o,c,void 0,l));else{const o=Object.keys(e);i=new Array(o.length);for(let c=0,h=o.length;ce?Vi(e)?un(e):Ns(e.parent):null,Ht=de(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=>Ns(e.parent),$root:e=>Ns(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ti(e),$forceUpdate:e=>e.f||(e.f=()=>{nn(e.update)}),$nextTick:e=>e.n||(e.n=Nl.bind(e.proxy)),$watch:e=>Wl.bind(e)}),As=(e,t)=>e!==X&&!e.__isScriptSetup&&W(e,t),or={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:l,accessCache:r,type:o,appContext:c}=e;if(t[0]!=="$"){const O=r[t];if(O!==void 0)switch(O){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return l[t]}else{if(As(n,t))return r[t]=1,n[t];if(i!==X&&W(i,t))return r[t]=2,i[t];if(W(l,t))return r[t]=3,l[t];if(s!==X&&W(s,t))return r[t]=4,s[t];Hs&&(r[t]=0)}}const h=Ht[t];let d,_;if(h)return t==="$attrs"&&he(e.attrs,"get",""),h(e);if((d=o.__cssModules)&&(d=d[t]))return d;if(s!==X&&W(s,t))return r[t]=4,s[t];if(_=c.config.globalProperties,W(_,t))return _[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:l}=e;return As(i,t)?(i[t]=s,!0):n!==X&&W(n,t)?(n[t]=s,!0):W(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,props:l,type:r}},o){let c;return!!(s[o]||e!==X&&o[0]!=="$"&&W(e,o)||As(t,o)||W(l,o)||W(n,o)||W(Ht,o)||W(i.config.globalProperties,o)||(c=r.__cssModules)&&c[o])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:W(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function bn(e){return L(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Hs=!0;function ur(e){const t=Ti(e),s=e.proxy,n=e.ctx;Hs=!1,t.beforeCreate&&yn(t.beforeCreate,e,"bc");const{data:i,computed:l,methods:r,watch:o,provide:c,inject:h,created:d,beforeMount:_,mounted:O,beforeUpdate:M,updated:K,activated:P,deactivated:Z,beforeDestroy:q,beforeUnmount:k,destroyed:H,unmounted:D,render:se,renderTracked:Ce,renderTriggered:Te,errorCaptured:Fe,serverPrefetch:gt,expose:Ae,inheritAttrs:ot,components:$e,directives:_t,filters:ye}=t;if(h&&cr(h,n,null),r)for(const Q in r){const J=r[Q];N(J)&&(n[Q]=J.bind(s))}if(i){const Q=i.call(s,s);G(Q)&&(e.data=en(Q))}if(Hs=!0,l)for(const Q in l){const J=l[Q],ze=N(J)?J.bind(s,s):N(J.get)?J.get.bind(s,s):We,vt=!N(J)&&N(J.set)?J.set.bind(s):We,Ye=yt({get:ze,set:vt});Object.defineProperty(n,Q,{enumerable:!0,configurable:!0,get:()=>Ye.value,set:Ee=>Ye.value=Ee})}if(o)for(const Q in o)Ci(o[Q],n,s,Q);if(c){const Q=N(c)?c.call(s):c;Reflect.ownKeys(Q).forEach(J=>{Kl(J,Q[J])})}d&&yn(d,e,"c");function ce(Q,J){L(J)?J.forEach(ze=>Q(ze.bind(s))):J&&Q(J.bind(s))}if(ce(Zl,_),ce(wi,O),ce(Ql,M),ce(er,K),ce(zl,P),ce(Yl,Z),ce(lr,Fe),ce(ir,Ce),ce(nr,Te),ce(tr,k),ce(Si,D),ce(sr,gt),L(Ae))if(Ae.length){const Q=e.exposed||(e.exposed={});Ae.forEach(J=>{Object.defineProperty(Q,J,{get:()=>s[J],set:ze=>s[J]=ze,enumerable:!0})})}else e.exposed||(e.exposed={});se&&e.render===We&&(e.render=se),ot!=null&&(e.inheritAttrs=ot),$e&&(e.components=$e),_t&&(e.directives=_t),gt&&bi(e)}function cr(e,t,s=We){L(e)&&(e=ks(e));for(const n in e){const i=e[n];let l;G(i)?"default"in i?l=ts(i.from||n,i.default,!0):l=ts(i.from||n):l=ts(i),pe(l)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>l.value,set:r=>l.value=r}):t[n]=l}}function yn(e,t,s){De(L(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Ci(e,t,s,n){let i=n.includes(".")?mi(s,n):()=>s[n];if(ie(e)){const l=t[e];N(l)&&Es(i,l)}else if(N(e))Es(i,e.bind(s));else if(G(e))if(L(e))e.forEach(l=>Ci(l,t,s,n));else{const l=N(e.handler)?e.handler.bind(s):t[e.handler];N(l)&&Es(i,l,e)}}function Ti(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:l,config:{optionMergeStrategies:r}}=e.appContext,o=l.get(t);let c;return o?c=o:!i.length&&!s&&!n?c=t:(c={},i.length&&i.forEach(h=>os(c,h,r,!0)),os(c,t,r)),G(t)&&l.set(t,c),c}function os(e,t,s,n=!1){const{mixins:i,extends:l}=t;l&&os(e,l,s,!0),i&&i.forEach(r=>os(e,r,s,!0));for(const r in t)if(!(n&&r==="expose")){const o=fr[r]||s&&s[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const fr={data:xn,props:wn,emits:wn,methods:It,computed:It,beforeCreate:_e,created:_e,beforeMount:_e,mounted:_e,beforeUpdate:_e,updated:_e,beforeDestroy:_e,beforeUnmount:_e,destroyed:_e,unmounted:_e,activated:_e,deactivated:_e,errorCaptured:_e,serverPrefetch:_e,components:It,directives:It,watch:dr,provide:xn,inject:ar};function xn(e,t){return t?e?function(){return de(N(e)?e.call(this,this):e,N(t)?t.call(this,this):t)}:t:e}function ar(e,t){return It(ks(e),ks(t))}function ks(e){if(L(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Me(t)}Modifiers`]||e[`${pt(t)}Modifiers`];function _r(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||X;let i=s;const l=t.startsWith("update:"),r=l&&gr(n,t.slice(7));r&&(r.trim&&(i=s.map(d=>ie(d)?d.trim():d)),r.number&&(i=s.map(el)));let o,c=n[o=ys(t)]||n[o=ys(Me(t))];!c&&l&&(c=n[o=ys(pt(t))]),c&&De(c,e,6,i);const h=n[o+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,De(h,e,6,i)}}const vr=new WeakMap;function Oi(e,t,s=!1){const n=s?vr:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const l=e.emits;let r={},o=!1;if(!N(e)){const c=h=>{const d=Oi(h,t,!0);d&&(o=!0,de(r,d))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!l&&!o?(G(e)&&n.set(e,null),null):(L(l)?l.forEach(c=>r[c]=null):de(r,l),G(e)&&n.set(e,r),r)}function vs(e,t){return!e||!fs(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),W(e,t[0].toLowerCase()+t.slice(1))||W(e,pt(t))||W(e,t))}function Sn(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[l],slots:r,attrs:o,emit:c,render:h,renderCache:d,props:_,data:O,setupState:M,ctx:K,inheritAttrs:P}=e,Z=ls(e);let q,k;try{if(s.shapeFlag&4){const D=i||n,se=D;q=Ke(h.call(se,D,d,_,M,O,K)),k=o}else{const D=t;q=Ke(D.length>1?D(_,{attrs:o,slots:r,emit:c}):D(_,null)),k=t.props?o:mr(o)}}catch(D){kt.length=0,gs(D,e,1),q=tt(rt)}let H=q;if(k&&P!==!1){const D=Object.keys(k),{shapeFlag:se}=H;D.length&&se&7&&(l&&D.some(as)&&(k=br(k,l)),H=Et(H,k,!1,!0))}return s.dirs&&(H=Et(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(s.dirs):s.dirs),s.transition&&ln(H,s.transition),q=H,ls(Z),q}const mr=e=>{let t;for(const s in e)(s==="class"||s==="style"||fs(s))&&((t||(t={}))[s]=e[s]);return t},br=(e,t)=>{const s={};for(const n in e)(!as(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function yr(e,t,s){const{props:n,children:i,component:l}=e,{props:r,children:o,patchFlag:c}=t,h=l.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Cn(n,r,h):!!r;if(c&8){const d=t.dynamicProps;for(let _=0;_Object.create(Pi),Ri=e=>Object.getPrototypeOf(e)===Pi;function wr(e,t,s,n=!1){const i={},l=Mi();e.propsDefaults=Object.create(null),Ii(e,t,i,l);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);s?e.props=n?i:Ol(i):e.type.props?e.props=i:e.props=l,e.attrs=l}function Sr(e,t,s,n){const{props:i,attrs:l,vnode:{patchFlag:r}}=e,o=V(i),[c]=e.propsOptions;let h=!1;if((n||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let _=0;_{c=!0;const[O,M]=Di(_,t,!0);de(r,O),M&&o.push(...M)};!s&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!l&&!c)return G(e)&&n.set(e,xt),xt;if(L(l))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",on=e=>L(e)?e.map(Ke):[Ke(e)],Tr=(e,t,s)=>{if(t._n)return t;const n=Bl((...i)=>on(t(...i)),s);return n._c=!1,n},Fi=(e,t,s)=>{const n=e._ctx;for(const i in e){if(rn(i))continue;const l=e[i];if(N(l))t[i]=Tr(i,l,n);else if(l!=null){const r=on(l);t[i]=()=>r}}},$i=(e,t)=>{const s=on(t);e.slots.default=()=>s},ji=(e,t,s)=>{for(const n in t)(s||!rn(n))&&(e[n]=t[n])},Er=(e,t,s)=>{const n=e.slots=Mi();if(e.vnode.shapeFlag&32){const i=t._;i?(ji(n,t,s),s&&Jn(n,"_",i,!0)):Fi(t,n)}else t&&$i(e,t)},Or=(e,t,s)=>{const{vnode:n,slots:i}=e;let l=!0,r=X;if(n.shapeFlag&32){const o=t._;o?s&&o===1?l=!1:ji(i,t,s):(l=!t.$stable,Fi(t,i)),r=t}else t&&($i(e,t),r={default:1});if(l)for(const o in i)!rn(o)&&r[o]==null&&delete i[o]},be=Ir;function Ar(e){return Pr(e)}function Pr(e,t){const s=hs();s.__VUE__=!0;const{insert:n,remove:i,patchProp:l,createElement:r,createText:o,createComment:c,setText:h,setElementText:d,parentNode:_,nextSibling:O,setScopeId:M=We,insertStaticContent:K}=e,P=(u,f,p,y=null,m=null,v=null,C=void 0,S=null,w=!!f.dynamicChildren)=>{if(u===f)return;u&&!Rt(u,f)&&(y=x(u),Ee(u,m,v,!0),u=null),f.patchFlag===-2&&(w=!1,f.dynamicChildren=null);const{type:b,ref:F,shapeFlag:E}=f;switch(b){case ms:Z(u,f,p,y);break;case rt:q(u,f,p,y);break;case Ms:u==null&&k(f,p,y,C);break;case te:$e(u,f,p,y,m,v,C,S,w);break;default:E&1?se(u,f,p,y,m,v,C,S,w):E&6?_t(u,f,p,y,m,v,C,S,w):(E&64||E&128)&&b.process(u,f,p,y,m,v,C,S,w,ge)}F!=null&&m?Lt(F,u&&u.ref,v,f||u,!f):F==null&&u&&u.ref!=null&&Lt(u.ref,null,v,u,!0)},Z=(u,f,p,y)=>{if(u==null)n(f.el=o(f.children),p,y);else{const m=f.el=u.el;f.children!==u.children&&h(m,f.children)}},q=(u,f,p,y)=>{u==null?n(f.el=c(f.children||""),p,y):f.el=u.el},k=(u,f,p,y)=>{[u.el,u.anchor]=K(u.children,f,p,y,u.el,u.anchor)},H=({el:u,anchor:f},p,y)=>{let m;for(;u&&u!==f;)m=O(u),n(u,p,y),u=m;n(f,p,y)},D=({el:u,anchor:f})=>{let p;for(;u&&u!==f;)p=O(u),i(u),u=p;i(f)},se=(u,f,p,y,m,v,C,S,w)=>{if(f.type==="svg"?C="svg":f.type==="math"&&(C="mathml"),u==null)Ce(f,p,y,m,v,C,S,w);else{const b=u.el&&u.el._isVueCE?u.el:null;try{b&&b._beginPatch(),gt(u,f,m,v,C,S,w)}finally{b&&b._endPatch()}}},Ce=(u,f,p,y,m,v,C,S)=>{let w,b;const{props:F,shapeFlag:E,transition:R,dirs:j}=u;if(w=u.el=r(u.type,v,F&&F.is,F),E&8?d(w,u.children):E&16&&Fe(u.children,w,null,y,m,Ps(u,v),C,S),j&&ut(u,null,y,"created"),Te(w,u,u.scopeId,C,y),F){for(const U in F)U!=="value"&&!Ft(U)&&l(w,U,null,F[U],v,y);"value"in F&&l(w,"value",null,F.value,v),(b=F.onVnodeBeforeMount)&&He(b,y,u)}j&&ut(u,null,y,"beforeMount");const B=Mr(m,R);B&&R.beforeEnter(w),n(w,f,p),((b=F&&F.onVnodeMounted)||B||j)&&be(()=>{try{b&&He(b,y,u),B&&R.enter(w),j&&ut(u,null,y,"mounted")}finally{}},m)},Te=(u,f,p,y,m)=>{if(p&&M(u,p),y)for(let v=0;v{for(let b=w;b{const S=f.el=u.el;let{patchFlag:w,dynamicChildren:b,dirs:F}=f;w|=u.patchFlag&16;const E=u.props||X,R=f.props||X;let j;if(p&&ct(p,!1),(j=R.onVnodeBeforeUpdate)&&He(j,p,f,u),F&&ut(f,u,p,"beforeUpdate"),p&&ct(p,!0),b&&(!u.dynamicChildren||u.dynamicChildren.length!==b.length)&&(w=0,C=!1,b=null),(E.innerHTML&&R.innerHTML==null||E.textContent&&R.textContent==null)&&d(S,""),b?Ae(u.dynamicChildren,b,S,p,y,Ps(f,m),v):C||J(u,f,S,null,p,y,Ps(f,m),v,!1),w>0){if(w&16)ot(S,E,R,p,m);else if(w&2&&E.class!==R.class&&l(S,"class",null,R.class,m),w&4&&l(S,"style",E.style,R.style,m),w&8){const B=f.dynamicProps;for(let U=0;U{j&&He(j,p,f,u),F&&ut(f,u,p,"updated")},y)},Ae=(u,f,p,y,m,v,C)=>{for(let S=0;S{if(f!==p){if(f!==X)for(const v in f)!Ft(v)&&!(v in p)&&l(u,v,f[v],null,m,y);for(const v in p){if(Ft(v))continue;const C=p[v],S=f[v];C!==S&&v!=="value"&&l(u,v,S,C,m,y)}"value"in p&&l(u,"value",f.value,p.value,m)}},$e=(u,f,p,y,m,v,C,S,w)=>{const b=f.el=u?u.el:o(""),F=f.anchor=u?u.anchor:o("");let{patchFlag:E,dynamicChildren:R,slotScopeIds:j}=f;j&&(S=S?S.concat(j):j),u==null?(n(b,p,y),n(F,p,y),Fe(f.children||[],p,F,m,v,C,S,w)):E>0&&E&64&&R&&u.dynamicChildren&&u.dynamicChildren.length===R.length?(Ae(u.dynamicChildren,R,p,m,v,C,S),(f.key!=null||m&&f===m.subTree)&&Li(u,f,!0)):J(u,f,p,F,m,v,C,S,w)},_t=(u,f,p,y,m,v,C,S,w)=>{f.slotScopeIds=S,u==null?f.shapeFlag&512?m.ctx.activate(f,p,y,C,w):ye(f,p,y,m,v,C,w):zt(u,f,w)},ye=(u,f,p,y,m,v,C)=>{const S=u.component=Br(u,y,m);if(yi(u)&&(S.ctx.renderer=ge),Ur(S,!1,C),S.asyncDep){if(m&&m.registerDep(S,ce,C),!u.el){const w=S.subTree=tt(rt);q(null,w,f,p),u.placeholder=w.el}}else ce(S,u,f,p,m,v,C)},zt=(u,f,p)=>{const y=f.component=u.component;if(yr(u,f,p))if(y.asyncDep&&!y.asyncResolved){Q(y,f,p);return}else y.next=f,y.update();else f.el=u.el,y.vnode=f},ce=(u,f,p,y,m,v,C)=>{const S=()=>{if(u.isMounted){let{next:E,bu:R,u:j,parent:B,vnode:U}=u;{const Le=Ni(u);if(Le){E&&(E.el=U.el,Q(u,E,C)),Le.asyncDep.then(()=>{be(()=>{u.isUnmounted||b()},m)});return}}let g=E,ne;ct(u,!1),E?(E.el=U.el,Q(u,E,C)):E=U,R&&xs(R),(ne=E.props&&E.props.onVnodeBeforeUpdate)&&He(ne,B,E,U),ct(u,!0);const fe=Sn(u),je=u.subTree;u.subTree=fe,P(je,fe,_(je.el),x(je),u,m,v),E.el=fe.el,g===null&&xr(u,fe.el),j&&be(j,m),(ne=E.props&&E.props.onVnodeUpdated)&&be(()=>He(ne,B,E,U),m)}else{let E;const{el:R,props:j}=f,{bm:B,m:U,parent:g,root:ne,type:fe}=u,je=Nt(f);ct(u,!1),B&&xs(B),!je&&(E=j&&j.onVnodeBeforeMount)&&He(E,g,f),ct(u,!0);{ne.ce&&ne.ce._hasShadowRoot()&&ne.ce._injectChildStyle(fe,u.parent?u.parent.type:void 0);const Le=u.subTree=Sn(u);P(null,Le,p,y,u,m,v),f.el=Le.el}if(U&&be(U,m),!je&&(E=j&&j.onVnodeMounted)){const Le=f;be(()=>He(E,g,Le),m)}(f.shapeFlag&256||g&&Nt(g.vnode)&&g.vnode.shapeFlag&256)&&u.a&&be(u.a,m),u.isMounted=!0,f=p=y=null}};u.scope.on();const w=u.effect=new Xn(S);u.scope.off();const b=u.update=w.run.bind(w),F=u.job=w.runIfDirty.bind(w);F.i=u,F.id=u.uid,w.scheduler=()=>nn(F),ct(u,!0),b()},Q=(u,f,p)=>{f.component=u;const y=u.vnode.props;u.vnode=f,u.next=null,Sr(u,f.props,y,p),Or(u,f.children,p),Je(),_n(u),Ge()},J=(u,f,p,y,m,v,C,S,w=!1)=>{const b=u&&u.children,F=u?u.shapeFlag:0,E=f.children,{patchFlag:R,shapeFlag:j}=f;if(R>0){if(R&128){vt(b,E,p,y,m,v,C,S,w);return}else if(R&256){ze(b,E,p,y,m,v,C,S,w);return}}j&8?(F&16&&A(b,m,v),E!==b&&d(p,E)):F&16?j&16?vt(b,E,p,y,m,v,C,S,w):A(b,m,v,!0):(F&8&&d(p,""),j&16&&Fe(E,p,y,m,v,C,S,w))},ze=(u,f,p,y,m,v,C,S,w)=>{u=u||xt,f=f||xt;const b=u.length,F=f.length,E=Math.min(b,F);let R;for(R=0;RF?A(u,m,v,!0,!1,E):Fe(f,p,y,m,v,C,S,w,E)},vt=(u,f,p,y,m,v,C,S,w)=>{let b=0;const F=f.length;let E=u.length-1,R=F-1;for(;b<=E&&b<=R;){const j=u[b],B=f[b]=w?Qe(f[b]):Ke(f[b]);if(Rt(j,B))P(j,B,p,null,m,v,C,S,w);else break;b++}for(;b<=E&&b<=R;){const j=u[E],B=f[R]=w?Qe(f[R]):Ke(f[R]);if(Rt(j,B))P(j,B,p,null,m,v,C,S,w);else break;E--,R--}if(b>E){if(b<=R){const j=R+1,B=jR)for(;b<=E;)Ee(u[b],m,v,!0),b++;else{const j=b,B=b,U=new Map;for(b=B;b<=R;b++){const xe=f[b]=w?Qe(f[b]):Ke(f[b]);xe.key!=null&&U.set(xe.key,b)}let g,ne=0;const fe=R-B+1;let je=!1,Le=0;const Pt=new Array(fe);for(b=0;b=fe){Ee(xe,m,v,!0);continue}let Ne;if(xe.key!=null)Ne=U.get(xe.key);else for(g=B;g<=R;g++)if(Pt[g-B]===0&&Rt(xe,f[g])){Ne=g;break}Ne===void 0?Ee(xe,m,v,!0):(Pt[Ne-B]=b+1,Ne>=Le?Le=Ne:je=!0,P(xe,f[Ne],p,null,m,v,C,S,w),ne++)}const cn=je?Rr(Pt):xt;for(g=cn.length-1,b=fe-1;b>=0;b--){const xe=B+b,Ne=f[xe],fn=f[xe+1],an=xe+1{const{el:v,type:C,transition:S,children:w,shapeFlag:b}=u;if(b&6){Ye(u.component.subTree,f,p,y);return}if(b&128){u.suspense.move(f,p,y);return}if(b&64){C.move(u,f,p,ge);return}if(C===te){n(v,f,p);for(let E=0;ES.enter(v),m));else{const{leave:E,delayLeave:R,afterLeave:j}=S,B=()=>{u.ctx.isUnmounted?i(v):n(v,f,p)},U=()=>{const g=v._isLeaving||!!v[Os];v._isLeaving&&v[Os](!0),S.persisted&&!g?B():E(v,()=>{B(),j&&j()})};R?R(v,B,U):U()}else n(v,f,p)},Ee=(u,f,p,y=!1,m=!1)=>{const{type:v,props:C,ref:S,children:w,dynamicChildren:b,shapeFlag:F,patchFlag:E,dirs:R,cacheIndex:j,memo:B}=u;if(E===-2&&(m=!1),S!=null&&(Je(),Lt(S,null,p,u,!0),Ge()),j!=null&&(f.renderCache[j]=void 0),F&256){f.ctx.deactivate(u);return}const U=F&1&&R,g=!Nt(u);let ne;if(g&&(ne=C&&C.onVnodeBeforeUnmount)&&He(ne,f,u),F&6)Xt(u.component,p,y);else{if(F&128){u.suspense.unmount(p,y);return}U&&ut(u,null,f,"beforeUnmount"),F&64?u.type.remove(u,f,p,ge,y):b&&!b.hasOnce&&(v!==te||E>0&&E&64)?A(b,f,p,!1,!0):(v===te&&E&384||!m&&F&16)&&A(w,f,p),y&&Yt(u)}const fe=B!=null&&j==null;(g&&(ne=C&&C.onVnodeUnmounted)||U||fe)&&be(()=>{ne&&He(ne,f,u),U&&ut(u,null,f,"unmounted"),fe&&(u.el=null)},p)},Yt=u=>{const{type:f,el:p,anchor:y,transition:m}=u;if(f===te){Ot(p,y);return}if(f===Ms){D(u);return}const v=()=>{i(p),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(u.shapeFlag&1&&m&&!m.persisted){const{leave:C,delayLeave:S}=m,w=()=>C(p,v);S?S(u.el,v,w):w()}else v()},Ot=(u,f)=>{let p;for(;u!==f;)p=O(u),i(u),u=p;i(f)},Xt=(u,f,p)=>{const{bum:y,scope:m,job:v,subTree:C,um:S,m:w,a:b}=u;En(w),En(b),y&&xs(y),m.stop(),v&&(v.flags|=8,Ee(C,u,f,p)),S&&be(S,f),be(()=>{u.isUnmounted=!0},f)},A=(u,f,p,y=!1,m=!1,v=0)=>{for(let C=v;C{if(u.shapeFlag&6)return x(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const f=O(u.anchor||u.el),p=f&&f[ql];return p?O(p):f};let ue=!1;const re=(u,f,p)=>{let y;u==null?f._vnode&&(Ee(f._vnode,null,null,!0),y=f._vnode.component):P(f._vnode||null,u,f,null,null,null,p),f._vnode=u,ue||(ue=!0,_n(y),pi(),ue=!1)},ge={p:P,um:Ee,m:Ye,r:Yt,mt:ye,mc:Fe,pc:J,pbc:Ae,n:x,o:e};return{render:re,hydrate:void 0,createApp:pr(re)}}function Ps({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function ct({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Mr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Li(e,t,s=!1){const n=e.children,i=t.children;if(L(n)&&L(i))for(let l=0;l>1,e[s[o]]0&&(t[n]=s[l-1]),s[l]=n)}}for(l=s.length,r=s[l-1];l-- >0;)s[l]=r,r=t[r];return s}function Ni(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ni(t)}function En(e){if(e)for(let t=0;te.__isSuspense;function Ir(e,t){t&&t.pendingBranch?L(e)?t.effects.push(...e):t.effects.push(e):kl(e)}const te=Symbol.for("v-fgt"),ms=Symbol.for("v-txt"),rt=Symbol.for("v-cmt"),Ms=Symbol.for("v-stc"),kt=[];let Se=null;function I(e=!1){kt.push(Se=e?null:[])}function Dr(){kt.pop(),Se=kt[kt.length-1]||null}let Vt=1;function On(e,t=!1){Vt+=e,e<0&&Se&&t&&(Se.hasOnce=!0)}function Bi(e){return e.dynamicChildren=Vt>0?Se||xt:null,Dr(),Vt>0&&Se&&Se.push(e),e}function $(e,t,s,n,i,l){return Bi(a(e,t,s,n,i,l,!0))}function Fr(e,t,s,n,i){return Bi(tt(e,t,s,n,i,!0))}function Ki(e){return e?e.__v_isVNode===!0:!1}function Rt(e,t){return e.type===t.type&&e.key===t.key}const Ui=({key:e})=>e??null,ss=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ie(e)||pe(e)||N(e)?{i:Ve,r:e,k:t,f:!!s}:e:null);function a(e,t=null,s=null,n=0,i=null,l=e===te?0:1,r=!1,o=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ui(t),ref:t&&ss(t),scopeId:_i,slotScopeIds:null,children:s,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:l,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ve};return o?(us(c,s),l&128&&e.normalize(c)):s&&(c.shapeFlag|=ie(s)?8:16),Vt>0&&!r&&Se&&(c.patchFlag>0||l&6)&&c.patchFlag!==32&&Se.push(c),c}const tt=$r;function $r(e,t=null,s=null,n=0,i=null,l=!1){if((!e||e===rr)&&(e=rt),Ki(e)){const o=Et(e,t,!0);return s&&us(o,s),Vt>0&&!l&&Se&&(o.shapeFlag&6?Se[Se.indexOf(e)]=o:Se.push(o)),o.patchFlag=-2,o}if(Jr(e)&&(e=e.__vccOpts),t){t=jr(t);let{class:o,style:c}=t;o&&!ie(o)&&(t.class=Pe(o)),G(c)&&(sn(c)&&!L(c)&&(c=de({},c)),t.style=Js(c))}const r=ie(e)?1:ki(e)?128:Jl(e)?64:G(e)?4:N(e)?2:0;return a(e,t,s,n,i,r,l,!0)}function jr(e){return e?sn(e)||Ri(e)?de({},e):e:null}function Et(e,t,s=!1,n=!1){const{props:i,ref:l,patchFlag:r,children:o,transition:c}=e,h=t?Nr(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&Ui(h),ref:t&&t.ref?s&&l?L(l)?l.concat(ss(t)):[l,ss(t)]:ss(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==te?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Et(e.ssContent),ssFallback:e.ssFallback&&Et(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&ln(d,c.clone(d)),d}function Lr(e=" ",t=0){return tt(ms,null,e,t)}function ee(e="",t=!1){return t?(I(),Fr(rt,null,e)):tt(rt,null,e)}function Ke(e){return e==null||typeof e=="boolean"?tt(rt):L(e)?tt(te,null,e.slice()):Ki(e)?Qe(e):tt(ms,null,String(e))}function Qe(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Et(e)}function us(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(L(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),us(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!Ri(t)?t._ctx=Ve:i===3&&Ve&&(Ve.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(N(t)){if(n&65){us(e,{default:t});return}t={default:t,_ctx:Ve},s=32}else t=String(t),n&64?(s=16,t=[Lr(t)]):s=8;e.children=t,e.shapeFlag|=s}function Nr(...e){const t={};for(let s=0;sme||Ve;let cs,Ks;{const e=hs(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),l=>{i.length>1?i.forEach(r=>r(l)):i[0](l)}};cs=t("__VUE_INSTANCE_SETTERS__",s=>me=s),Ks=t("__VUE_SSR_SETTERS__",s=>Wt=s)}const Gt=e=>{const t=me;return cs(e),e.scope.on(),()=>{e.scope.off(),cs(t)}},An=()=>{me&&me.scope.off(),cs(null)};function Vi(e){return e.vnode.shapeFlag&4}let Wt=!1;function Ur(e,t=!1,s=!1){t&&Ks(t);const{props:n,children:i}=e.vnode,l=Vi(e);wr(e,n,l,t),Er(e,i,s||t);const r=l?Vr(e,t):void 0;return t&&Ks(!1),r}function Vr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,or);const{setup:n}=s;if(n){Je();const i=e.setupContext=n.length>1?qr(e):null,l=Gt(e),r=Jt(n,e,0,[e.props,i]),o=Un(r);if(Ge(),l(),(o||e.sp)&&!Nt(e)&&bi(e),o){if(r.then(An,An),t)return r.then(c=>{Pn(e,c)}).catch(c=>{gs(c,e,0)});e.asyncDep=r}else Pn(e,r)}else Wi(e)}function Pn(e,t,s){N(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:G(t)&&(e.setupState=ai(t)),Wi(e)}function Wi(e,t,s){const n=e.type;e.render||(e.render=n.render||We);{const i=Gt(e);Je();try{ur(e)}finally{Ge(),i()}}}const Wr={get(e,t){return he(e,"get",""),e[t]}};function qr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Wr),slots:e.slots,emit:e.emit,expose:t}}function un(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ai(Al(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ht)return Ht[s](e)},has(t,s){return s in t||s in Ht}})):e.proxy}function Jr(e){return N(e)&&"__vccOpts"in e}const yt=(e,t)=>Fl(e,t,Wt),Gr="3.5.39";/** -* @vue/runtime-dom v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Us;const Mn=typeof window<"u"&&window.trustedTypes;if(Mn)try{Us=Mn.createPolicy("vue",{createHTML:e=>e})}catch{}const qi=Us?e=>Us.createHTML(e):e=>e,zr="http://www.w3.org/2000/svg",Yr="http://www.w3.org/1998/Math/MathML",Ze=typeof document<"u"?document:null,Rn=Ze&&Ze.createElement("template"),Xr={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?Ze.createElementNS(zr,e):t==="mathml"?Ze.createElementNS(Yr,e):s?Ze.createElement(e,{is:s}):Ze.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Ze.createTextNode(e),createComment:e=>Ze.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ze.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,l){const r=s?s.previousSibling:t.lastChild;if(i&&(i===l||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===l||!(i=i.nextSibling)););else{Rn.innerHTML=qi(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const o=Rn.content;if(n==="svg"||n==="mathml"){const c=o.firstChild;for(;c.firstChild;)o.appendChild(c.firstChild);o.removeChild(c)}t.insertBefore(o,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Zr=Symbol("_vtc");function Qr(e,t,s){const n=e[Zr];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const In=Symbol("_vod"),eo=Symbol("_vsh"),to=Symbol(""),so=/(?:^|;)\s*display\s*:/;function no(e,t,s){const n=e.style,i=ie(s);let l=!1;if(s&&!i){if(t)if(ie(t))for(const r of t.split(";")){const o=r.slice(0,r.indexOf(":")).trim();s[o]==null&&Dt(n,o,"")}else for(const r in t)s[r]==null&&Dt(n,r,"");for(const r in s){r==="display"&&(l=!0);const o=s[r];o!=null?lo(e,r,!ie(t)&&t?t[r]:void 0,o)||Dt(n,r,o):Dt(n,r,"")}}else if(i){if(t!==s){const r=n[to];r&&(s+=";"+r),n.cssText=s,l=so.test(s)}}else t&&e.removeAttribute("style");In in e&&(e[In]=l?n.display:"",e[eo]&&(n.display="none"))}const Dn=/\s*!important$/;function Dt(e,t,s){if(L(s))s.forEach(n=>Dt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=io(e,t);Dn.test(s)?e.setProperty(pt(n),s.replace(Dn,""),"important"):e[n]=s}}const Fn=["Webkit","Moz","ms"],Rs={};function io(e,t){const s=Rs[t];if(s)return s;let n=Me(t);if(n!=="filter"&&n in e)return Rs[t]=n;n=qn(n);for(let i=0;iIs||(ho.then(()=>Is=0),Is=Date.now());function go(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const i=s.value;if(L(i)){const l=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{l.call(n),n._stopped=!0};const r=i.slice(),o=[n];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_o=(e,t,s,n,i,l)=>{const r=i==="svg";t==="class"?Qr(e,n,r):t==="style"?no(e,s,n):fs(t)?as(t)||uo(e,t,s,n,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vo(e,t,n,r))?(Ln(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&jn(e,t,n,r,l,t!=="value")):e._isVueCE&&(mo(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ie(n)))?Ln(e,Me(t),n,l,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),jn(e,t,n,r))};function vo(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Hn(t)&&N(s));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 i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Hn(t)&&ie(s)?!1:t in e}function mo(e,t){const s=e._def.props;if(!s)return!1;const n=Me(t);return Array.isArray(s)?s.some(i=>Me(i)===n):Object.keys(s).some(i=>Me(i)===n)}const bo=de({patchProp:_o},Xr);let kn;function yo(){return kn||(kn=Ar(bo))}const xo=((...e)=>{const t=yo().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=So(n);if(!i)return;const l=t._component;!N(l)&&!l.render&&!l.template&&(l.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=s(i,!1,wo(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t});function wo(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function So(e){return ie(e)?document.querySelector(e):e}const Co="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",z={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",quickProfileDraft:"profiles/quick-draft",jobs:"jobs",jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsReload:"settings/reload",settingsExport:"settings/export",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class To extends Error{constructor(s,n,i={}){super(n);bs(this,"code");bs(this,"details");this.name="ApiClientError",this.code=s,this.details=i}}async function oe(e,t){return Ji(e,{method:"GET",query:t})}async function ft(e,t){return Ji(e,{method:"POST",body:t})}async function Ji(e,t={}){const n=await(await fetch(Eo(e,t.query),{method:t.method??"GET",headers:t.body===void 0?void 0:{"Content-Type":"application/json"},body:t.body===void 0?void 0:JSON.stringify(t.body)})).json();if(!n.ok)throw new To(n.error_code,n.message,n.details);return n.data}function Eo(e,t){const s=e.replace(/^\/+/,""),n=new URL(`${Co}/${s}`,window.location.origin);for(const[i,l]of Object.entries(t??{}))l!==void 0&&n.searchParams.set(i,String(l));return`${n.pathname}${n.search}`}const Oo={class:"web-shell"},Ao={class:"sidebar"},Po={class:"brand"},Mo={class:"workspace"},Ro={class:"topbar"},Io={class:"actions"},Do=["disabled"],Fo={key:0,class:"notice error"},$o={key:1,class:"notice"},jo={key:0,class:"dashboard-grid"},Lo={key:1,class:"list-view"},No={class:"badge"},Ho={key:0,class:"empty"},ko={key:2,class:"split-view"},Bo={class:"list-view"},Ko={key:0,class:"empty"},Uo={class:"list-view"},Vo={class:"inline-actions"},Wo=["disabled"],qo={class:"badge"},Jo={key:0,class:"empty"},Go={key:0},zo={key:3,class:"list-view"},Yo=["disabled"],Xo={key:0,class:"empty"},Zo={key:0},Qo={key:4,class:"list-view"},eu={class:"inline-actions"},tu=["disabled"],su=["disabled"],nu={class:"inline-actions"},iu={class:"badge"},lu=["onClick"],ru=["onClick"],ou={key:0,class:"empty"},uu={key:5,class:"split-view"},cu={class:"list-view"},fu=["disabled"],au={class:"list-view"},du={class:"badge"},hu={key:0,class:"empty"},pu={key:6,class:"logs-view"},gu={class:"split-view"},_u={class:"list-view"},vu={key:0,class:"empty"},mu={class:"list-view"},bu={class:"badge"},yu={key:0,class:"empty"},xu={class:"split-view"},wu={class:"list-view"},Su={key:0,class:"empty"},Cu={class:"list-view"},Tu={class:"badge"},Eu={key:0,class:"empty"},Ou={class:"list-view"},Au={key:0,class:"empty"},Pu={key:7,class:"settings-view"},Mu={class:"toolbar"},Ru=["disabled"],Iu=["disabled"],Du={class:"settings-sections"},Fu={class:"inspector"},$u=Gl({__name:"App",setup(e){const t=le("dashboard"),s=le(null),n=le(null),i=le(null),l=le(null),r=le(null),o=le(null),c=le(null),h=le([]),d=le(null),_=le([]),O=le([]),M=le([]),K=le(null),P=le({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Z=le(null),q=le(""),k=le(!0),H=le(""),D=le(""),se=yt(()=>{var A,x;return((x=(A=i.value)==null?void 0:A.items[0])==null?void 0:x.profile_id)??""}),Ce=yt(()=>{var A,x;return((x=(A=i.value)==null?void 0:A.items[0])==null?void 0:x.name)??"未选择角色"}),Te=yt(()=>{var x;const A=(x=n.value)==null?void 0:x.queue;return A?A.pending+A.running+A.failed+A.dead_letter:0}),Fe=yt(()=>{var A;return((A=d.value)==null?void 0:A.items.filter(x=>x.recognition_status!=="confirmed").length)??0}),gt=yt(()=>({dashboard:"运行概览",profiles:"角色",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置"})[t.value]);wi(Ae);async function Ae(){var A;k.value=!0,D.value="";try{const[x,ue,re,ge,At,u,f,p,y,m,v]=await Promise.all([oe(z.uiBootstrap),oe(z.dashboardSummary),oe(z.profiles,{page:1,page_size:20}),oe(z.jobs,{page:1,page_size:20}),oe(z.settingsSchema),oe(z.settingsCurrent),oe(z.storageStatus),oe(z.materialCategories),oe(z.materials,{page:1,page_size:24}),oe(z.apiDiscoveryDialects),oe(z.apiDiscoveryCapabilities)]);s.value=x,n.value=ue,i.value=re,l.value=ge,r.value=At,o.value=u,c.value=f,h.value=p,d.value=y,O.value=m,M.value=v,await _t((A=re.items[0])==null?void 0:A.profile_id),await ot()}catch(x){D.value=x instanceof Error?x.message:"加载失败"}finally{k.value=!1}}async function ot(){const[A,x,ue,re,ge]=await Promise.allSettled([oe(z.generationLogs,{limit:12}),oe(z.workflowLogs,{limit:12}),oe(z.errorLogs,{limit:12}),oe(z.integrationLogs,{limit:12}),oe(z.auditLogs,{limit:12})]);P.value={generation:$e(A),workflows:$e(x),errors:$e(ue),integrations:$e(re),audit:$e(ge)}}function $e(A){return A.status==="fulfilled"?A.value:[]}async function _t(A){if(!A){_.value=[];return}_.value=await oe(z.wardrobe(A))}async function ye(A,x,ue=!0){H.value=A,D.value="";try{const re=await x();q.value=`${A}完成`,A==="导出设置"&&(q.value=`导出设置完成,配置已脱敏:${!!re.redacted}`),ue&&await Ae()}catch(re){D.value=re instanceof Error?re.message:`${A}失败`}finally{H.value=""}}function zt(A){return ye("重试任务",()=>ft(z.jobRetry(A)))}function ce(A){return ye("取消任务",()=>ft(z.jobCancel(A)))}function Q(){return ye("转入死信",()=>ft(z.jobDeadLetterMoveFailed,{limit:20}))}function J(){return ye("重试死信",()=>ft(z.jobDeadLetterRetry,{limit:20}))}function ze(){var x;const A=((x=O.value[0])==null?void 0:x.dialect)??"unknown";return ye("安全探测",()=>ft(z.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:A,capabilities:{supports:["text_to_image"]}}))}function vt(){const A=se.value;return A?ye("衣橱匹配",async()=>(K.value=await ft(z.wardrobeMatch(A),{tags:["daily"]}),K.value),!1):Promise.resolve()}function Ye(){return ye("重载设置",async()=>{var x;const A=await ft(z.settingsReload);return o.value={config_path:((x=o.value)==null?void 0:x.config_path)??"***PATH***",config:A.config},A},!1)}function Ee(){return ye("导出设置",()=>oe(z.settingsExport),!1)}function Yt(){var x,ue;const A=(ue=(x=d.value)==null?void 0:x.items.find(re=>{var ge;return(ge=re.image_uri)==null?void 0:ge.startsWith("storage://")}))==null?void 0:ue.image_uri;return A?ye("签名素材",async()=>(Z.value=await oe(z.mediaSign,{uri:A}),Z.value),!1):(q.value="没有可签名的素材图片",Promise.resolve())}function Ot(A=0){return A<1024?`${A} B`:A<1024*1024?`${(A/1024).toFixed(1)} KB`:A<1024*1024*1024?`${(A/1024/1024).toFixed(1)} MB`:`${(A/1024/1024/1024).toFixed(1)} GB`}function Xt(A){var x,ue;return((ue=(x=c.value)==null?void 0:x.roots.find(re=>re.uri_prefix===A))==null?void 0:ue.bytes)??0}return(A,x)=>{var ue,re,ge,At,u,f,p,y,m,v,C,S,w,b,F,E,R,j,B,U;return I(),$("main",Oo,[a("aside",Ao,[a("div",Po,[a("strong",null,T(((ue=s.value)==null?void 0:ue.display_name)??"ImageStudio"),1),a("span",null,T(((re=s.value)==null?void 0:re.dashboard_user)??"AstrBot"),1)]),a("nav",null,[a("button",{type:"button",class:Pe({active:t.value==="dashboard"}),onClick:x[0]||(x[0]=g=>t.value="dashboard")}," 概览 ",2),a("button",{type:"button",class:Pe({active:t.value==="profiles"}),onClick:x[1]||(x[1]=g=>t.value="profiles")}," 角色 ",2),a("button",{type:"button",class:Pe({active:t.value==="materials"}),onClick:x[2]||(x[2]=g=>t.value="materials")}," 素材 ",2),a("button",{type:"button",class:Pe({active:t.value==="wardrobe"}),onClick:x[3]||(x[3]=g=>t.value="wardrobe")}," 衣橱 ",2),a("button",{type:"button",class:Pe({active:t.value==="jobs"}),onClick:x[4]||(x[4]=g=>t.value="jobs")}," 队列 ",2),a("button",{type:"button",class:Pe({active:t.value==="discovery"}),onClick:x[5]||(x[5]=g=>t.value="discovery")}," 探测 ",2),a("button",{type:"button",class:Pe({active:t.value==="logs"}),onClick:x[6]||(x[6]=g=>t.value="logs")}," 日志 ",2),a("button",{type:"button",class:Pe({active:t.value==="settings"}),onClick:x[7]||(x[7]=g=>t.value="settings")}," 设置 ",2)])]),a("section",Mo,[a("header",Ro,[a("div",null,[a("h1",null,T(gt.value),1),a("p",null,T(((ge=n.value)==null?void 0:ge.plugin_status)??"loading")+" · "+T(q.value||"等待操作"),1)]),a("div",Io,[a("button",{type:"button",disabled:!!H.value,onClick:Ae},T(H.value||"刷新"),9,Do)])]),D.value?(I(),$("section",Fo,T(D.value),1)):k.value?(I(),$("section",$o,"加载中...")):(I(),$(te,{key:2},[t.value==="dashboard"?(I(),$("section",jo,[a("article",null,[x[8]||(x[8]=a("span",null,"角色",-1)),a("strong",null,T(((At=n.value)==null?void 0:At.active_profiles)??0),1)]),a("article",null,[x[9]||(x[9]=a("span",null,"队列",-1)),a("strong",null,T(Te.value),1)]),a("article",null,[x[10]||(x[10]=a("span",null,"素材",-1)),a("strong",null,T(((u=d.value)==null?void 0:u.total)??0),1)]),a("article",null,[x[11]||(x[11]=a("span",null,"存储",-1)),a("strong",null,T(Ot(((f=c.value)==null?void 0:f.total_bytes)??((p=n.value)==null?void 0:p.storage.total_bytes))),1)])])):ee("",!0),t.value==="profiles"?(I(),$("section",Lo,[a("header",null,[x[12]||(x[12]=a("h2",null,"角色列表",-1)),a("span",null,T(((y=i.value)==null?void 0:y.total)??0),1)]),a("ul",null,[(I(!0),$(te,null,we(((m=i.value)==null?void 0:m.items)??[],g=>(I(),$("li",{key:g.profile_id},[a("div",null,[a("strong",null,T(g.name),1),a("small",null,T(g.profile_id),1)]),a("span",No,T(g.status),1)]))),128)),(v=i.value)!=null&&v.items.length?ee("",!0):(I(),$("li",Ho,"暂无角色"))])])):ee("",!0),t.value==="materials"?(I(),$("section",ko,[a("div",Bo,[a("header",null,[x[13]||(x[13]=a("h2",null,"素材分类",-1)),a("span",null,T(h.value.length),1)]),a("ul",null,[(I(!0),$(te,null,we(h.value,g=>(I(),$("li",{key:g.category_id},[a("div",null,[a("strong",null,T(g.name),1),a("small",null,T(g.category_type),1)]),a("span",null,T(g.sort_order),1)]))),128)),h.value.length?ee("",!0):(I(),$("li",Ko,"暂无分类"))])]),a("div",Uo,[a("header",null,[x[14]||(x[14]=a("h2",null,"素材条目",-1)),a("div",Vo,[a("span",null,T(Fe.value)+" 待确认",1),a("button",{type:"button",disabled:!!H.value,onClick:Yt},"签名首图",8,Wo)])]),a("ul",null,[(I(!0),$(te,null,we(((C=d.value)==null?void 0:C.items)??[],g=>(I(),$("li",{key:g.material_id},[a("div",null,[a("strong",null,T(g.display_name),1),a("small",null,T(g.image_uri??"未绑定图片"),1)]),a("span",qo,T(g.recognition_status),1)]))),128)),(S=d.value)!=null&&S.items.length?ee("",!0):(I(),$("li",Jo,"暂无素材"))]),Z.value?(I(),$("pre",Go,T(JSON.stringify(Z.value,null,2)),1)):ee("",!0)])])):ee("",!0),t.value==="wardrobe"?(I(),$("section",zo,[a("header",null,[a("h2",null,T(Ce.value),1),a("button",{type:"button",disabled:!se.value||!!H.value,onClick:vt}," 匹配 ",8,Yo)]),a("ul",null,[(I(!0),$(te,null,we(_.value,g=>(I(),$("li",{key:g.wardrobe_item_id},[a("div",null,[a("strong",null,T(g.wardrobe_category),1),a("small",null,T(g.material_id)+" · "+T(g.tags.join(", ")||"无标签"),1)]),a("span",null,T(g.usage_count),1)]))),128)),_.value.length?ee("",!0):(I(),$("li",Xo,"暂无衣橱条目"))]),K.value?(I(),$("pre",Zo,T(JSON.stringify(K.value,null,2)),1)):ee("",!0)])):ee("",!0),t.value==="jobs"?(I(),$("section",Qo,[a("header",null,[x[15]||(x[15]=a("h2",null,"任务队列",-1)),a("div",eu,[a("button",{type:"button",disabled:!!H.value,onClick:Q},"失败转死信",8,tu),a("button",{type:"button",disabled:!!H.value,onClick:J},"重试死信",8,su)])]),a("ul",null,[(I(!0),$(te,null,we(((w=l.value)==null?void 0:w.items)??[],g=>(I(),$("li",{key:g.task_id},[a("div",null,[a("strong",null,T(g.task_id),1),a("small",null,T(g.task_type)+" · "+T(g.progress)+"%",1)]),a("div",nu,[a("span",iu,T(g.status),1),g.status==="failed"?(I(),$("button",{key:0,type:"button",onClick:ne=>zt(g.task_id)},"重试",8,lu)):ee("",!0),g.status==="pending"?(I(),$("button",{key:1,type:"button",onClick:ne=>ce(g.task_id)},"取消",8,ru)):ee("",!0)])]))),128)),(b=l.value)!=null&&b.items.length?ee("",!0):(I(),$("li",ou,"暂无任务"))])])):ee("",!0),t.value==="discovery"?(I(),$("section",uu,[a("div",cu,[a("header",null,[x[16]||(x[16]=a("h2",null,"协议方言",-1)),a("button",{type:"button",disabled:!!H.value,onClick:ze},"安全探测",8,fu)]),a("ul",null,[(I(!0),$(te,null,we(O.value,g=>(I(),$("li",{key:g.dialect},[a("div",null,[a("strong",null,T(g.label),1),a("small",null,T(g.capabilities.join(", ")||"待确认"),1)]),a("span",null,T(g.dialect),1)]))),128))])]),a("div",au,[a("header",null,[x[17]||(x[17]=a("h2",null,"能力档案",-1)),a("span",null,T(M.value.length),1)]),a("ul",null,[(I(!0),$(te,null,we(M.value,g=>(I(),$("li",{key:g.capability_profile_id},[a("div",null,[a("strong",null,T(g.provider_id)+" / "+T(g.model_id),1),a("small",null,T(g.dialect),1)]),a("span",du,T(g.status),1)]))),128)),M.value.length?ee("",!0):(I(),$("li",hu,"暂无能力档案"))])])])):ee("",!0),t.value==="logs"?(I(),$("section",pu,[a("div",gu,[a("div",_u,[a("header",null,[x[18]||(x[18]=a("h2",null,"生成日志",-1)),a("span",null,T(P.value.generation.length),1)]),a("ul",null,[(I(!0),$(te,null,we(P.value.generation,g=>(I(),$("li",{key:g.task_id},[a("div",null,[a("strong",null,T(g.task_id),1),a("small",null,T(g.status)+" · "+T(g.progress)+"%",1)]),a("span",null,T(g.created_at),1)]))),128)),P.value.generation.length?ee("",!0):(I(),$("li",vu,"暂无生成日志"))])]),a("div",mu,[a("header",null,[x[19]||(x[19]=a("h2",null,"错误",-1)),a("span",null,T(P.value.errors.length),1)]),a("ul",null,[(I(!0),$(te,null,we(P.value.errors,g=>(I(),$("li",{key:`${g.source}-${g.id}`},[a("div",null,[a("strong",null,T(g.source),1),a("small",null,T(g.error_message??"无错误详情"),1)]),a("span",bu,T(g.status),1)]))),128)),P.value.errors.length?ee("",!0):(I(),$("li",yu,"暂无错误"))])])]),a("div",xu,[a("div",wu,[a("header",null,[x[20]||(x[20]=a("h2",null,"工作流",-1)),a("span",null,T(P.value.workflows.length),1)]),a("ul",null,[(I(!0),$(te,null,we(P.value.workflows,g=>(I(),$("li",{key:g.history_id},[a("div",null,[a("strong",null,T(g.action),1),a("small",null,T(g.title??g.workflow_id),1)]),a("span",null,T(g.branch_name??"main"),1)]))),128)),P.value.workflows.length?ee("",!0):(I(),$("li",Su,"暂无工作流日志"))])]),a("div",Cu,[a("header",null,[x[21]||(x[21]=a("h2",null,"集成",-1)),a("span",null,T(P.value.integrations.length),1)]),a("ul",null,[(I(!0),$(te,null,we(P.value.integrations,g=>(I(),$("li",{key:g.integration_log_id},[a("div",null,[a("strong",null,T(g.integration_name),1),a("small",null,T(g.action),1)]),a("span",Tu,T(g.status),1)]))),128)),P.value.integrations.length?ee("",!0):(I(),$("li",Eu,"暂无集成日志"))])])]),a("div",Ou,[a("header",null,[x[22]||(x[22]=a("h2",null,"审计",-1)),a("span",null,T(P.value.audit.length),1)]),a("ul",null,[(I(!0),$(te,null,we(P.value.audit,g=>(I(),$("li",{key:g.audit_id},[a("div",null,[a("strong",null,T(g.action),1),a("small",null,T(g.actor_type)+" / "+T(g.target_type)+" / "+T(g.target_id),1)]),a("span",null,T(g.created_at),1)]))),128)),P.value.audit.length?ee("",!0):(I(),$("li",Au,"暂无审计日志"))])])])):ee("",!0),t.value==="settings"?(I(),$("section",Pu,[a("div",Mu,[a("button",{type:"button",disabled:!!H.value,onClick:Ye},"重载",8,Ru),a("button",{type:"button",disabled:!!H.value,onClick:Ee},"导出脱敏配置",8,Iu)]),a("div",Du,[(I(!0),$(te,null,we(((F=r.value)==null?void 0:F.sections)??[],g=>(I(),$("article",{key:g.key},[a("h2",null,T(g.title),1),a("span",null,T(g.fields.length)+" 项",1)]))),128))]),a("pre",null,T(JSON.stringify(((E=o.value)==null?void 0:E.config)??{},null,2)),1)])):ee("",!0)],64))]),a("aside",Fu,[x[29]||(x[29]=a("h2",null,"运行",-1)),a("dl",null,[a("div",null,[x[23]||(x[23]=a("dt",null,"Pending",-1)),a("dd",null,T(((R=n.value)==null?void 0:R.queue.pending)??0),1)]),a("div",null,[x[24]||(x[24]=a("dt",null,"Running",-1)),a("dd",null,T(((j=n.value)==null?void 0:j.queue.running)??0),1)]),a("div",null,[x[25]||(x[25]=a("dt",null,"Failed",-1)),a("dd",null,T(((B=n.value)==null?void 0:B.queue.failed)??0),1)]),a("div",null,[x[26]||(x[26]=a("dt",null,"Dead",-1)),a("dd",null,T(((U=n.value)==null?void 0:U.queue.dead_letter)??0),1)])]),x[30]||(x[30]=a("h2",null,"存储",-1)),a("dl",null,[a("div",null,[x[27]||(x[27]=a("dt",null,"Images",-1)),a("dd",null,T(Ot(Xt("storage://images/"))),1)]),a("div",null,[x[28]||(x[28]=a("dt",null,"Materials",-1)),a("dd",null,T(Ot(Xt("storage://materials/"))),1)])])])])}}}),ju=(e,t)=>{const s=e.__vccOpts||e;for(const[n,i]of t)s[n]=i;return s},Lu=ju($u,[["__scopeId","data-v-0ef32593"]]);xo(Lu).mount("#app"); diff --git a/web/assets/index-BTWVDt8L.css b/web/assets/index-BTWVDt8L.css new file mode 100644 index 0000000..8a9e100 --- /dev/null +++ b/web/assets/index-BTWVDt8L.css @@ -0,0 +1 @@ +.web-shell[data-v-1d79a532]{box-sizing:border-box;display:grid;grid-template-columns:220px minmax(0,1fr) 260px;min-height:100vh;color:#1b2430;background:#f5f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sidebar[data-v-1d79a532],.inspector[data-v-1d79a532]{background:#fff}.sidebar[data-v-1d79a532]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-1d79a532]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-1d79a532]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-1d79a532]{font-size:19px}.brand span[data-v-1d79a532],p[data-v-1d79a532],dt[data-v-1d79a532],.empty[data-v-1d79a532],small[data-v-1d79a532]{color:#667085}nav[data-v-1d79a532]{display:grid;gap:6px}button[data-v-1d79a532]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-1d79a532]:disabled{cursor:wait;opacity:.62}nav button[data-v-1d79a532]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-1d79a532]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-1d79a532]{min-width:0;padding:24px}.topbar[data-v-1d79a532],.list-view header[data-v-1d79a532],.toolbar[data-v-1d79a532],.inline-actions[data-v-1d79a532]{display:flex;gap:12px;align-items:center}.topbar[data-v-1d79a532],.list-view header[data-v-1d79a532]{justify-content:space-between}.actions[data-v-1d79a532],.inline-actions[data-v-1d79a532]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-1d79a532],.toolbar button[data-v-1d79a532],.list-view header button[data-v-1d79a532],.inline-actions button[data-v-1d79a532]{padding:0 14px}h1[data-v-1d79a532],h2[data-v-1d79a532],p[data-v-1d79a532],dl[data-v-1d79a532],dd[data-v-1d79a532]{margin:0}h1[data-v-1d79a532]{min-height:30px;font-size:26px}h2[data-v-1d79a532]{font-size:15px}.notice[data-v-1d79a532],article[data-v-1d79a532],.list-view[data-v-1d79a532],pre[data-v-1d79a532]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-1d79a532]{margin-top:18px;padding:14px}.error[data-v-1d79a532]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-1d79a532],.split-view[data-v-1d79a532]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-1d79a532]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-1d79a532]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-1d79a532]{display:grid;gap:8px;padding:16px}article span[data-v-1d79a532]{color:#667085;font-size:13px}article strong[data-v-1d79a532]{font-size:24px}.list-view[data-v-1d79a532],.logs-view[data-v-1d79a532],.settings-view[data-v-1d79a532]{margin-top:18px}.split-view .list-view[data-v-1d79a532],.logs-view .list-view[data-v-1d79a532]{margin-top:0}.list-view[data-v-1d79a532]{padding:16px}ul[data-v-1d79a532]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-1d79a532]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-1d79a532]:first-child{border-top:0}li>div[data-v-1d79a532]{display:grid;gap:3px;min-width:0}li strong[data-v-1d79a532],li span[data-v-1d79a532],li small[data-v-1d79a532]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-1d79a532]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-1d79a532]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-1d79a532]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-1d79a532]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-1d79a532]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-1d79a532]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-1d79a532]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-1d79a532]{display:none}}@media(max-width:820px){.web-shell[data-v-1d79a532]{grid-template-columns:1fr}.sidebar[data-v-1d79a532]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-1d79a532]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-1d79a532]{text-align:center}.dashboard-grid[data-v-1d79a532],.split-view[data-v-1d79a532],.settings-sections[data-v-1d79a532]{grid-template-columns:1fr}.topbar[data-v-1d79a532],.list-view header[data-v-1d79a532]{align-items:flex-start;flex-direction:column}} diff --git a/web/assets/index-QsMDq_Mp.js b/web/assets/index-QsMDq_Mp.js new file mode 100644 index 0000000..3c86422 --- /dev/null +++ b/web/assets/index-QsMDq_Mp.js @@ -0,0 +1,17 @@ +var Gi=Object.defineProperty;var zi=(e,t,s)=>t in e?Gi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var bs=(e,t,s)=>zi(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const r of l.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function s(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(i){if(i.ep)return;i.ep=!0;const l=s(i);fetch(i.href,l)}})();/** +* @vue/shared v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Vs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Z={},wt=[],We=()=>{},Bn=()=>!1,cs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),as=e=>e.startsWith("onUpdate:"),de=Object.assign,Ws=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Yi=Object.prototype.hasOwnProperty,q=(e,t)=>Yi.call(e,t),L=Array.isArray,St=e=>qt(e)==="[object Map]",Kn=e=>qt(e)==="[object Set]",dn=e=>qt(e)==="[object Date]",k=e=>typeof e=="function",le=e=>typeof e=="string",qe=e=>typeof e=="symbol",z=e=>e!==null&&typeof e=="object",Un=e=>(z(e)||k(e))&&k(e.then)&&k(e.catch),Vn=Object.prototype.toString,qt=e=>Vn.call(e),Xi=e=>qt(e).slice(8,-1),Wn=e=>qt(e)==="[object Object]",qs=e=>le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ft=Vs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fs=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Zi=/-\w/g,Pe=fs(e=>e.replace(Zi,t=>t.slice(1).toUpperCase())),Qi=/\B([A-Z])/g,_t=fs(e=>e.replace(Qi,"-$1").toLowerCase()),qn=fs(e=>e.charAt(0).toUpperCase()+e.slice(1)),ys=fs(e=>e?`on${qn(e)}`:""),Ue=(e,t)=>!Object.is(e,t),xs=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},el=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let hn;const ds=()=>hn||(hn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Js(e){if(L(e)){const t={};for(let s=0;s{if(s){const n=s.split(sl);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ae(e){let t="";if(le(e))t=e;else if(L(e))for(let s=0;s!!(e&&e.__v_isRef===!0),T=e=>le(e)?e:e==null?"":L(e)||z(e)&&(e.toString===Vn||!k(e.toString))?zn(e)?T(e.value):JSON.stringify(e,Yn,2):String(e),Yn=(e,t)=>zn(t)?Yn(e,t.value):St(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],l)=>(s[ws(n,l)+" =>"]=i,s),{})}:Kn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ws(s))}:qe(t)?ws(t):z(t)&&!L(t)&&!Wn(t)?String(t):t,ws=(e,t="")=>{var s;return qe(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** +* @vue/reactivity v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let fe;class ul{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&&fe&&(fe.active?(this.parent=fe,this.index=(fe.scopes||(fe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0){if(fe===this)fe=this.prevScope;else{let t=fe;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 s,n;for(s=0,n=this.effects.length;s0)return;if(jt){let t=jt;for(jt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;$t;){let t=$t;for($t=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function ei(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ti(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),Xs(n),al(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Ds(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(si(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function si(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Bt)||(e.globalVersion=Bt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ds(e))))return;e.flags|=2;const t=e.dep,s=X,n=Me;X=e,Me=!0;try{ei(e);const i=e.fn(e._value);(t.version===0||Ue(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{X=s,Me=n,ti(e),e.flags&=-3}}function Xs(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let l=s.computed.deps;l;l=l.nextDep)Xs(l,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function al(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Me=!0;const ni=[];function Je(){ni.push(Me),Me=!1}function Ge(){const e=ni.pop();Me=e===void 0?!0:e}function pn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=X;X=void 0;try{t()}finally{X=s}}}let Bt=0;class fl{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Zs{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(!X||!Me||X===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==X)s=this.activeLink=new fl(X,this),X.deps?(s.prevDep=X.depsTail,X.depsTail.nextDep=s,X.depsTail=s):X.deps=X.depsTail=s,ii(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=X.depsTail,s.nextDep=void 0,X.depsTail.nextDep=s,X.depsTail=s,X.deps===s&&(X.deps=n)}return s}trigger(t){this.version++,Bt++,this.notify(t)}notify(t){zs();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Ys()}}}function ii(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)ii(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Fs=new WeakMap,pt=Symbol(""),$s=Symbol(""),Kt=Symbol("");function he(e,t,s){if(Me&&X){let n=Fs.get(e);n||Fs.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new Zs),i.map=n,i.key=s),i.track()}}function et(e,t,s,n,i,l){const r=Fs.get(e);if(!r){Bt++;return}const o=c=>{c&&c.trigger()};if(zs(),t==="clear")r.forEach(o);else{const c=L(e),h=c&&qs(s);if(c&&s==="length"){const d=Number(n);r.forEach((g,A)=>{(A==="length"||A===Kt||!qe(A)&&A>=d)&&o(g)})}else switch((s!==void 0||r.has(void 0))&&o(r.get(s)),h&&o(r.get(Kt)),t){case"add":c?h&&o(r.get("length")):(o(r.get(pt)),St(e)&&o(r.get($s)));break;case"delete":c||(o(r.get(pt)),St(e)&&o(r.get($s)));break;case"set":St(e)&&o(r.get(pt));break}}Ys()}function bt(e){const t=W(e);return t===e?t:(he(t,"iterate",Kt),Ee(e)?t:t.map(Re))}function hs(e){return he(e=W(e),"iterate",Kt),e}function Be(e,t){return st(e)?Et(gt(e)?Re(t):t):Re(t)}const dl={__proto__:null,[Symbol.iterator](){return Cs(this,Symbol.iterator,e=>Be(this,e))},concat(...e){return bt(this).concat(...e.map(t=>L(t)?bt(t):t))},entries(){return Cs(this,"entries",e=>(e[1]=Be(this,e[1]),e))},every(e,t){return Xe(this,"every",e,t,void 0,arguments)},filter(e,t){return Xe(this,"filter",e,t,s=>s.map(n=>Be(this,n)),arguments)},find(e,t){return Xe(this,"find",e,t,s=>Be(this,s),arguments)},findIndex(e,t){return Xe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xe(this,"findLast",e,t,s=>Be(this,s),arguments)},findLastIndex(e,t){return Xe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ts(this,"includes",e)},indexOf(...e){return Ts(this,"indexOf",e)},join(e){return bt(this).join(e)},lastIndexOf(...e){return Ts(this,"lastIndexOf",e)},map(e,t){return Xe(this,"map",e,t,void 0,arguments)},pop(){return Mt(this,"pop")},push(...e){return Mt(this,"push",e)},reduce(e,...t){return gn(this,"reduce",e,t)},reduceRight(e,...t){return gn(this,"reduceRight",e,t)},shift(){return Mt(this,"shift")},some(e,t){return Xe(this,"some",e,t,void 0,arguments)},splice(...e){return Mt(this,"splice",e)},toReversed(){return bt(this).toReversed()},toSorted(e){return bt(this).toSorted(e)},toSpliced(...e){return bt(this).toSpliced(...e)},unshift(...e){return Mt(this,"unshift",e)},values(){return Cs(this,"values",e=>Be(this,e))}};function Cs(e,t,s){const n=hs(e),i=n[t]();return n!==e&&!Ee(e)&&(i._next=i.next,i.next=()=>{const l=i._next();return l.done||(l.value=s(l.value)),l}),i}const hl=Array.prototype;function Xe(e,t,s,n,i,l){const r=hs(e),o=r!==e&&!Ee(e),c=r[t];if(c!==hl[t]){const g=c.apply(e,l);return o?Re(g):g}let h=s;r!==e&&(o?h=function(g,A){return s.call(this,Be(e,g),A,e)}:s.length>2&&(h=function(g,A){return s.call(this,g,A,e)}));const d=c.call(r,h,n);return o&&i?i(d):d}function gn(e,t,s,n){const i=hs(e),l=i!==e&&!Ee(e);let r=s,o=!1;i!==e&&(l?(o=n.length===0,r=function(h,d,g){return o&&(o=!1,h=Be(e,h)),s.call(this,h,Be(e,d),g,e)}):s.length>3&&(r=function(h,d,g){return s.call(this,h,d,g,e)}));const c=i[t](r,...n);return o?Be(e,c):c}function Ts(e,t,s){const n=W(e);he(n,"iterate",Kt);const i=n[t](...s);return(i===-1||i===!1)&&sn(s[0])?(s[0]=W(s[0]),n[t](...s)):i}function Mt(e,t,s=[]){Je(),zs();const n=W(e)[t].apply(e,s);return Ys(),Ge(),n}const pl=Vs("__proto__,__v_isRef,__isVue"),li=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(qe));function gl(e){qe(e)||(e=String(e));const t=W(this);return he(t,"has",e),t.hasOwnProperty(e)}class ri{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,l=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return l;if(s==="__v_raw")return n===(i?l?Tl:ai:l?ci:ui).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const r=L(t);if(!i){let c;if(r&&(c=dl[s]))return c;if(s==="hasOwnProperty")return gl}const o=Reflect.get(t,s,pe(t)?t:n);if((qe(s)?li.has(s):pl(s))||(i||he(t,"get",s),l))return o;if(pe(o)){const c=r&&qs(s)?o:o.value;return i&&z(c)?Ls(c):c}return z(o)?i?Ls(o):en(o):o}}class oi extends ri{constructor(t=!1){super(!1,t)}set(t,s,n,i){let l=t[s];const r=L(t)&&qs(s);if(!this._isShallow){const h=st(l);if(!Ee(n)&&!st(n)&&(l=W(l),n=W(n)),!r&&pe(l)&&!pe(n))return h||(l.value=n),!0}const o=r?Number(s)e,Xt=e=>Reflect.getPrototypeOf(e);function yl(e,t,s){return function(...n){const i=this.__v_raw,l=W(i),r=St(l),o=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,h=i[e](...n),d=s?js:t?Et:Re;return!t&&he(l,"iterate",c?$s:pt),de(Object.create(h),{next(){const{value:g,done:A}=h.next();return A?{value:g,done:A}:{value:o?[d(g[0]),d(g[1])]:d(g),done:A}}})}}function Zt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xl(e,t){const s={get(i){const l=this.__v_raw,r=W(l),o=W(i);e||(Ue(i,o)&&he(r,"get",i),he(r,"get",o));const{has:c}=Xt(r),h=t?js:e?Et:Re;if(c.call(r,i))return h(l.get(i));if(c.call(r,o))return h(l.get(o));l!==r&&l.get(i)},get size(){const i=this.__v_raw;return!e&&he(W(i),"iterate",pt),i.size},has(i){const l=this.__v_raw,r=W(l),o=W(i);return e||(Ue(i,o)&&he(r,"has",i),he(r,"has",o)),i===o?l.has(i):l.has(i)||l.has(o)},forEach(i,l){const r=this,o=r.__v_raw,c=W(o),h=t?js:e?Et:Re;return!e&&he(c,"iterate",pt),o.forEach((d,g)=>i.call(l,h(d),h(g),r))}};return de(s,e?{add:Zt("add"),set:Zt("set"),delete:Zt("delete"),clear:Zt("clear")}:{add(i){const l=W(this),r=Xt(l),o=W(i),c=!t&&!Ee(i)&&!st(i)?o:i;return r.has.call(l,c)||Ue(i,c)&&r.has.call(l,i)||Ue(o,c)&&r.has.call(l,o)||(l.add(c),et(l,"add",c,c)),this},set(i,l){!t&&!Ee(l)&&!st(l)&&(l=W(l));const r=W(this),{has:o,get:c}=Xt(r);let h=o.call(r,i);h||(i=W(i),h=o.call(r,i));const d=c.call(r,i);return r.set(i,l),h?Ue(l,d)&&et(r,"set",i,l):et(r,"add",i,l),this},delete(i){const l=W(this),{has:r,get:o}=Xt(l);let c=r.call(l,i);c||(i=W(i),c=r.call(l,i)),o&&o.call(l,i);const h=l.delete(i);return c&&et(l,"delete",i,void 0),h},clear(){const i=W(this),l=i.size!==0,r=i.clear();return l&&et(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=yl(i,e,t)}),s}function Qs(e,t){const s=xl(e,t);return(n,i,l)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(q(s,i)&&i in n?s:n,i,l)}const wl={get:Qs(!1,!1)},Sl={get:Qs(!1,!0)},Cl={get:Qs(!0,!1)};const ui=new WeakMap,ci=new WeakMap,ai=new WeakMap,Tl=new WeakMap;function El(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function en(e){return st(e)?e:tn(e,!1,vl,wl,ui)}function Ol(e){return tn(e,!1,bl,Sl,ci)}function Ls(e){return tn(e,!0,ml,Cl,ai)}function tn(e,t,s,n,i){if(!z(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const l=i.get(e);if(l)return l;const r=El(Xi(e));if(r===0)return e;const o=new Proxy(e,r===2?n:s);return i.set(e,o),o}function gt(e){return st(e)?gt(e.__v_raw):!!(e&&e.__v_isReactive)}function st(e){return!!(e&&e.__v_isReadonly)}function Ee(e){return!!(e&&e.__v_isShallow)}function sn(e){return e?!!e.__v_raw:!1}function W(e){const t=e&&e.__v_raw;return t?W(t):e}function Al(e){return!q(e,"__v_skip")&&Object.isExtensible(e)&&Jn(e,"__v_skip",!0),e}const Re=e=>z(e)?en(e):e,Et=e=>z(e)?Ls(e):e;function pe(e){return e?e.__v_isRef===!0:!1}function oe(e){return Pl(e,!1)}function Pl(e,t){return pe(e)?e:new Ml(e,t)}class Ml{constructor(t,s){this.dep=new Zs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:W(t),this._value=s?t:Re(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Ee(t)||st(t);t=n?t:W(t),Ue(t,s)&&(this._rawValue=t,this._value=n?t:Re(t),this.dep.trigger())}}function Rl(e){return pe(e)?e.value:e}const Il={get:(e,t,s)=>t==="__v_raw"?e:Rl(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return pe(i)&&!pe(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function fi(e){return gt(e)?e:new Proxy(e,Il)}class Dl{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Zs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&X!==this)return Qn(this,!0),!0}get value(){const t=this.dep.track();return si(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Fl(e,t,s=!1){let n,i;return k(e)?n=e:(n=e.get,i=e.set),new Dl(n,i,s)}const Qt={},ss=new WeakMap;let ht;function $l(e,t=!1,s=ht){if(s){let n=ss.get(s);n||ss.set(s,n=[]),n.push(e)}}function jl(e,t,s=Z){const{immediate:n,deep:i,once:l,scheduler:r,augmentJob:o,call:c}=s,h=D=>i?D:Ee(D)||i===!1||i===0?ot(D,1):ot(D);let d,g,A,M,K=!1,P=!1;if(pe(e)?(g=()=>e.value,K=Ee(e)):gt(e)?(g=()=>h(e),K=!0):L(e)?(P=!0,K=e.some(D=>gt(D)||Ee(D)),g=()=>e.map(D=>{if(pe(D))return D.value;if(gt(D))return h(D);if(k(D))return c?c(D,2):D()})):k(e)?t?g=c?()=>c(e,2):e:g=()=>{if(A){Je();try{A()}finally{Ge()}}const D=ht;ht=d;try{return c?c(e,3,[M]):e(M)}finally{ht=D}}:g=We,t&&i){const D=g,ne=i===!0?1/0:i;g=()=>ot(D(),ne)}const Q=cl(),J=()=>{d.stop(),Q&&Q.active&&Ws(Q.effects,d)};if(l&&t){const D=t;t=(...ne)=>{const Se=D(...ne);return J(),Se}}let H=P?new Array(e.length).fill(Qt):Qt;const N=D=>{if(!(!(d.flags&1)||!d.dirty&&!D))if(t){const ne=d.run();if(D||i||K||(P?ne.some((Se,Ce)=>Ue(Se,H[Ce])):Ue(ne,H))){A&&A();const Se=ht;ht=d;try{const Ce=[ne,H===Qt?void 0:P&&H[0]===Qt?[]:H,M];H=ne,c?c(t,3,Ce):t(...Ce)}finally{ht=Se}}}else d.run()};return o&&o(N),d=new Xn(g),d.scheduler=r?()=>r(N,!1):N,M=D=>$l(D,!1,d),A=d.onStop=()=>{const D=ss.get(d);if(D){if(c)c(D,4);else for(const ne of D)ne();ss.delete(d)}},t?n?N(!0):H=d.run():r?r(N.bind(null,!0),!0):d.run(),J.pause=d.pause.bind(d),J.resume=d.resume.bind(d),J.stop=J,J}function ot(e,t=1/0,s){if(t<=0||!z(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,pe(e))ot(e.value,t,s);else if(L(e))for(let n=0;n{ot(n,t,s)});else if(Wn(e)){for(const n in e)ot(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&ot(e[n],t,s)}return e}/** +* @vue/runtime-core v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Jt(e,t,s,n){try{return n?e(...n):e()}catch(i){ps(i,t,s)}}function Ie(e,t,s,n){if(k(e)){const i=Jt(e,t,s,n);return i&&Un(i)&&i.catch(l=>{ps(l,t,s)}),i}if(L(e)){const i=[];for(let l=0;l>>1,i=_e[n],l=Ut(i);l=Ut(s)?_e.push(e):_e.splice(Nl(t),0,e),e.flags|=1,hi()}}function hi(){ns||(ns=di.then(gi))}function Hl(e){L(e)?Ct.push(...e):rt&&e.id===-1?rt.splice(yt+1,0,e):e.flags&1||(Ct.push(e),e.flags|=1),hi()}function _n(e,t,s=He+1){for(;s<_e.length;s++){const n=_e[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;_e.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function pi(e){if(Ct.length){const t=[...new Set(Ct)].sort((s,n)=>Ut(s)-Ut(n));if(Ct.length=0,rt){rt.push(...t);return}for(rt=t,yt=0;yte.id==null?e.flags&2?-1:1/0:e.id;function gi(e){try{for(He=0;He<_e.length;He++){const t=_e[He];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Jt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;He<_e.length;He++){const t=_e[He];t&&(t.flags&=-2)}He=-1,_e.length=0,pi(),ns=null,(_e.length||Ct.length)&&gi()}}let Ve=null,_i=null;function is(e){const t=Ve;return Ve=e,_i=e&&e.type.__scopeId||null,t}function Bl(e,t=Ve,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&On(-1);const l=is(t);let r;try{r=e(...i)}finally{is(l),n._d&&On(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function ft(e,t,s,n){const i=e.dirs,l=t&&t.dirs;for(let r=0;r1)return s&&k(t)?t.call(n&&n.proxy):t}}const Ul=Symbol.for("v-scx"),Vl=()=>es(Ul);function Es(e,t,s){return vi(e,t,s)}function vi(e,t,s=Z){const{immediate:n,deep:i,flush:l,once:r}=s,o=de({},s),c=t&&n||!t&&l!=="post";let h;if(Wt){if(l==="sync"){const M=Vl();h=M.__watcherHandles||(M.__watcherHandles=[])}else if(!c){const M=()=>{};return M.stop=We,M.resume=We,M.pause=We,M}}const d=ve;o.call=(M,K,P)=>Ie(M,d,K,P);let g=!1;l==="post"?o.scheduler=M=>{be(M,d&&d.suspense)}:l!=="sync"&&(g=!0,o.scheduler=(M,K)=>{K?M():nn(M)}),o.augmentJob=M=>{t&&(M.flags|=4),g&&(M.flags|=2,d&&(M.id=d.uid,M.i=d))};const A=jl(e,t,o);return Wt&&(h?h.push(A):c&&A()),A}function Wl(e,t,s){const n=this.proxy,i=le(e)?e.includes(".")?mi(n,e):()=>n[e]:e.bind(n,n);let l;k(t)?l=t:(l=t.handler,s=t);const r=Gt(this),o=vi(i,l.bind(n),s);return r(),o}function mi(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;ie.__isTeleport,Os=Symbol("_leaveCb");function ln(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ln(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Gl(e,t){return k(e)?de({name:e.name},t,{setup:e}):e}function bi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function vn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ls=new WeakMap;function Lt(e,t,s,n,i=!1){if(L(e)){e.forEach((P,Q)=>Lt(P,t&&(L(t)?t[Q]:t),s,n,i));return}if(kt(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Lt(e,t,s,n.component.subTree);return}const l=n.shapeFlag&4?un(n.component):n.el,r=i?null:l,{i:o,r:c}=e,h=t&&t.r,d=o.refs===Z?o.refs={}:o.refs,g=o.setupState,A=W(g),M=g===Z?Bn:P=>vn(d,P)?!1:q(A,P),K=(P,Q)=>!(Q&&vn(d,Q));if(h!=null&&h!==c){if(mn(t),le(h))d[h]=null,M(h)&&(g[h]=null);else if(pe(h)){const P=t;K(h,P.k)&&(h.value=null),P.k&&(d[P.k]=null)}}if(k(c)){Je();try{Jt(c,o,12,[r,d])}finally{Ge()}}else{const P=le(c),Q=pe(c);if(P||Q){const J=()=>{if(e.f){const H=P?M(c)?g[c]:d[c]:K()||!e.k?c.value:d[e.k];if(i)L(H)&&Ws(H,l);else if(L(H))H.includes(l)||H.push(l);else if(P)d[c]=[l],M(c)&&(g[c]=d[c]);else{const N=[l];K(c,e.k)&&(c.value=N),e.k&&(d[e.k]=N)}}else P?(d[c]=r,M(c)&&(g[c]=r)):Q&&(K(c,e.k)&&(c.value=r),e.k&&(d[e.k]=r))};if(r){const H=()=>{J(),ls.delete(e)};H.id=-1,ls.set(e,H),be(H,s)}else mn(e),J()}}}function mn(e){const t=ls.get(e);t&&(t.flags|=8,ls.delete(e))}ds().requestIdleCallback;ds().cancelIdleCallback;const kt=e=>!!e.type.__asyncLoader,yi=e=>e.type.__isKeepAlive;function zl(e,t){xi(e,"a",t)}function Yl(e,t){xi(e,"da",t)}function xi(e,t,s=ve){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(gs(t,n,s),s){let i=s.parent;for(;i&&i.parent;)yi(i.parent.vnode)&&Xl(n,t,s,i),i=i.parent}}function Xl(e,t,s,n){const i=gs(t,e,n,!0);Si(()=>{Ws(n[t],i)},s)}function gs(e,t,s=ve,n=!1){if(s){const i=s[e]||(s[e]=[]),l=t.__weh||(t.__weh=(...r)=>{Je();const o=Gt(s),c=Ie(t,s,e,r);return o(),Ge(),c});return n?i.unshift(l):i.push(l),l}}const nt=e=>(t,s=ve)=>{(!Wt||e==="sp")&&gs(e,(...n)=>t(...n),s)},Zl=nt("bm"),wi=nt("m"),Ql=nt("bu"),er=nt("u"),tr=nt("bum"),Si=nt("um"),sr=nt("sp"),nr=nt("rtg"),ir=nt("rtc");function lr(e,t=ve){gs("ec",e,t)}const rr=Symbol.for("v-ndc");function xe(e,t,s,n){let i;const l=s,r=L(e);if(r||le(e)){const o=r&>(e);let c=!1,h=!1;o&&(c=!Ee(e),h=st(e),e=hs(e)),i=new Array(e.length);for(let d=0,g=e.length;dt(o,c,void 0,l));else{const o=Object.keys(e);i=new Array(o.length);for(let c=0,h=o.length;ce?Vi(e)?un(e):ks(e.parent):null,Nt=de(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ks(e.parent),$root:e=>ks(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ti(e),$forceUpdate:e=>e.f||(e.f=()=>{nn(e.update)}),$nextTick:e=>e.n||(e.n=kl.bind(e.proxy)),$watch:e=>Wl.bind(e)}),As=(e,t)=>e!==Z&&!e.__isScriptSetup&&q(e,t),or={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:l,accessCache:r,type:o,appContext:c}=e;if(t[0]!=="$"){const A=r[t];if(A!==void 0)switch(A){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return l[t]}else{if(As(n,t))return r[t]=1,n[t];if(i!==Z&&q(i,t))return r[t]=2,i[t];if(q(l,t))return r[t]=3,l[t];if(s!==Z&&q(s,t))return r[t]=4,s[t];Ns&&(r[t]=0)}}const h=Nt[t];let d,g;if(h)return t==="$attrs"&&he(e.attrs,"get",""),h(e);if((d=o.__cssModules)&&(d=d[t]))return d;if(s!==Z&&q(s,t))return r[t]=4,s[t];if(g=c.config.globalProperties,q(g,t))return g[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:l}=e;return As(i,t)?(i[t]=s,!0):n!==Z&&q(n,t)?(n[t]=s,!0):q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,props:l,type:r}},o){let c;return!!(s[o]||e!==Z&&o[0]!=="$"&&q(e,o)||As(t,o)||q(l,o)||q(n,o)||q(Nt,o)||q(i.config.globalProperties,o)||(c=r.__cssModules)&&c[o])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:q(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function bn(e){return L(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Ns=!0;function ur(e){const t=Ti(e),s=e.proxy,n=e.ctx;Ns=!1,t.beforeCreate&&yn(t.beforeCreate,e,"bc");const{data:i,computed:l,methods:r,watch:o,provide:c,inject:h,created:d,beforeMount:g,mounted:A,beforeUpdate:M,updated:K,activated:P,deactivated:Q,beforeDestroy:J,beforeUnmount:H,destroyed:N,unmounted:D,render:ne,renderTracked:Se,renderTriggered:Ce,errorCaptured:De,serverPrefetch:vt,expose:Oe,inheritAttrs:ct,components:Fe,directives:mt,filters:me}=t;if(h&&cr(h,n,null),r)for(const ee in r){const G=r[ee];k(G)&&(n[ee]=G.bind(s))}if(i){const ee=i.call(s,s);z(ee)&&(e.data=en(ee))}if(Ns=!0,l)for(const ee in l){const G=l[ee],ze=k(G)?G.bind(s,s):k(G.get)?G.get.bind(s,s):We,at=!k(G)&&k(G.set)?G.set.bind(s):We,Ye=xt({get:ze,set:at});Object.defineProperty(n,ee,{enumerable:!0,configurable:!0,get:()=>Ye.value,set:Te=>Ye.value=Te})}if(o)for(const ee in o)Ci(o[ee],n,s,ee);if(c){const ee=k(c)?c.call(s):c;Reflect.ownKeys(ee).forEach(G=>{Kl(G,ee[G])})}d&&yn(d,e,"c");function ce(ee,G){L(G)?G.forEach(ze=>ee(ze.bind(s))):G&&ee(G.bind(s))}if(ce(Zl,g),ce(wi,A),ce(Ql,M),ce(er,K),ce(zl,P),ce(Yl,Q),ce(lr,De),ce(ir,Se),ce(nr,Ce),ce(tr,H),ce(Si,D),ce(sr,vt),L(Oe))if(Oe.length){const ee=e.exposed||(e.exposed={});Oe.forEach(G=>{Object.defineProperty(ee,G,{get:()=>s[G],set:ze=>s[G]=ze,enumerable:!0})})}else e.exposed||(e.exposed={});ne&&e.render===We&&(e.render=ne),ct!=null&&(e.inheritAttrs=ct),Fe&&(e.components=Fe),mt&&(e.directives=mt),vt&&bi(e)}function cr(e,t,s=We){L(e)&&(e=Hs(e));for(const n in e){const i=e[n];let l;z(i)?"default"in i?l=es(i.from||n,i.default,!0):l=es(i.from||n):l=es(i),pe(l)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>l.value,set:r=>l.value=r}):t[n]=l}}function yn(e,t,s){Ie(L(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Ci(e,t,s,n){let i=n.includes(".")?mi(s,n):()=>s[n];if(le(e)){const l=t[e];k(l)&&Es(i,l)}else if(k(e))Es(i,e.bind(s));else if(z(e))if(L(e))e.forEach(l=>Ci(l,t,s,n));else{const l=k(e.handler)?e.handler.bind(s):t[e.handler];k(l)&&Es(i,l,e)}}function Ti(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:l,config:{optionMergeStrategies:r}}=e.appContext,o=l.get(t);let c;return o?c=o:!i.length&&!s&&!n?c=t:(c={},i.length&&i.forEach(h=>rs(c,h,r,!0)),rs(c,t,r)),z(t)&&l.set(t,c),c}function rs(e,t,s,n=!1){const{mixins:i,extends:l}=t;l&&rs(e,l,s,!0),i&&i.forEach(r=>rs(e,r,s,!0));for(const r in t)if(!(n&&r==="expose")){const o=ar[r]||s&&s[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const ar={data:xn,props:wn,emits:wn,methods:It,computed:It,beforeCreate:ge,created:ge,beforeMount:ge,mounted:ge,beforeUpdate:ge,updated:ge,beforeDestroy:ge,beforeUnmount:ge,destroyed:ge,unmounted:ge,activated:ge,deactivated:ge,errorCaptured:ge,serverPrefetch:ge,components:It,directives:It,watch:dr,provide:xn,inject:fr};function xn(e,t){return t?e?function(){return de(k(e)?e.call(this,this):e,k(t)?t.call(this,this):t)}:t:e}function fr(e,t){return It(Hs(e),Hs(t))}function Hs(e){if(L(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Pe(t)}Modifiers`]||e[`${_t(t)}Modifiers`];function _r(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||Z;let i=s;const l=t.startsWith("update:"),r=l&&gr(n,t.slice(7));r&&(r.trim&&(i=s.map(d=>le(d)?d.trim():d)),r.number&&(i=s.map(el)));let o,c=n[o=ys(t)]||n[o=ys(Pe(t))];!c&&l&&(c=n[o=ys(_t(t))]),c&&Ie(c,e,6,i);const h=n[o+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Ie(h,e,6,i)}}const vr=new WeakMap;function Oi(e,t,s=!1){const n=s?vr:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const l=e.emits;let r={},o=!1;if(!k(e)){const c=h=>{const d=Oi(h,t,!0);d&&(o=!0,de(r,d))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!l&&!o?(z(e)&&n.set(e,null),null):(L(l)?l.forEach(c=>r[c]=null):de(r,l),z(e)&&n.set(e,r),r)}function _s(e,t){return!e||!cs(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),q(e,t[0].toLowerCase()+t.slice(1))||q(e,_t(t))||q(e,t))}function Sn(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[l],slots:r,attrs:o,emit:c,render:h,renderCache:d,props:g,data:A,setupState:M,ctx:K,inheritAttrs:P}=e,Q=is(e);let J,H;try{if(s.shapeFlag&4){const D=i||n,ne=D;J=Ke(h.call(ne,D,d,g,M,A,K)),H=o}else{const D=t;J=Ke(D.length>1?D(g,{attrs:o,slots:r,emit:c}):D(g,null)),H=t.props?o:mr(o)}}catch(D){Ht.length=0,ps(D,e,1),J=tt(ut)}let N=J;if(H&&P!==!1){const D=Object.keys(H),{shapeFlag:ne}=N;D.length&&ne&7&&(l&&D.some(as)&&(H=br(H,l)),N=Ot(N,H,!1,!0))}return s.dirs&&(N=Ot(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(s.dirs):s.dirs),s.transition&&ln(N,s.transition),J=N,is(Q),J}const mr=e=>{let t;for(const s in e)(s==="class"||s==="style"||cs(s))&&((t||(t={}))[s]=e[s]);return t},br=(e,t)=>{const s={};for(const n in e)(!as(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function yr(e,t,s){const{props:n,children:i,component:l}=e,{props:r,children:o,patchFlag:c}=t,h=l.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Cn(n,r,h):!!r;if(c&8){const d=t.dynamicProps;for(let g=0;gObject.create(Pi),Ri=e=>Object.getPrototypeOf(e)===Pi;function wr(e,t,s,n=!1){const i={},l=Mi();e.propsDefaults=Object.create(null),Ii(e,t,i,l);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);s?e.props=n?i:Ol(i):e.type.props?e.props=i:e.props=l,e.attrs=l}function Sr(e,t,s,n){const{props:i,attrs:l,vnode:{patchFlag:r}}=e,o=W(i),[c]=e.propsOptions;let h=!1;if((n||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let g=0;g{c=!0;const[A,M]=Di(g,t,!0);de(r,A),M&&o.push(...M)};!s&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!l&&!c)return z(e)&&n.set(e,wt),wt;if(L(l))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",on=e=>L(e)?e.map(Ke):[Ke(e)],Tr=(e,t,s)=>{if(t._n)return t;const n=Bl((...i)=>on(t(...i)),s);return n._c=!1,n},Fi=(e,t,s)=>{const n=e._ctx;for(const i in e){if(rn(i))continue;const l=e[i];if(k(l))t[i]=Tr(i,l,n);else if(l!=null){const r=on(l);t[i]=()=>r}}},$i=(e,t)=>{const s=on(t);e.slots.default=()=>s},ji=(e,t,s)=>{for(const n in t)(s||!rn(n))&&(e[n]=t[n])},Er=(e,t,s)=>{const n=e.slots=Mi();if(e.vnode.shapeFlag&32){const i=t._;i?(ji(n,t,s),s&&Jn(n,"_",i,!0)):Fi(t,n)}else t&&$i(e,t)},Or=(e,t,s)=>{const{vnode:n,slots:i}=e;let l=!0,r=Z;if(n.shapeFlag&32){const o=t._;o?s&&o===1?l=!1:ji(i,t,s):(l=!t.$stable,Fi(t,i)),r=t}else t&&($i(e,t),r={default:1});if(l)for(const o in i)!rn(o)&&r[o]==null&&delete i[o]},be=Ir;function Ar(e){return Pr(e)}function Pr(e,t){const s=ds();s.__VUE__=!0;const{insert:n,remove:i,patchProp:l,createElement:r,createText:o,createComment:c,setText:h,setElementText:d,parentNode:g,nextSibling:A,setScopeId:M=We,insertStaticContent:K}=e,P=(u,a,p,x=null,m=null,_=null,C=void 0,S=null,w=!!a.dynamicChildren)=>{if(u===a)return;u&&!Rt(u,a)&&(x=O(u),Te(u,m,_,!0),u=null),a.patchFlag===-2&&(w=!1,a.dynamicChildren=null);const{type:b,ref:F,shapeFlag:E}=a;switch(b){case vs:Q(u,a,p,x);break;case ut:J(u,a,p,x);break;case Ms:u==null&&H(a,p,x,C);break;case se:Fe(u,a,p,x,m,_,C,S,w);break;default:E&1?ne(u,a,p,x,m,_,C,S,w):E&6?mt(u,a,p,x,m,_,C,S,w):(E&64||E&128)&&b.process(u,a,p,x,m,_,C,S,w,ie)}F!=null&&m?Lt(F,u&&u.ref,_,a||u,!a):F==null&&u&&u.ref!=null&&Lt(u.ref,null,_,u,!0)},Q=(u,a,p,x)=>{if(u==null)n(a.el=o(a.children),p,x);else{const m=a.el=u.el;a.children!==u.children&&h(m,a.children)}},J=(u,a,p,x)=>{u==null?n(a.el=c(a.children||""),p,x):a.el=u.el},H=(u,a,p,x)=>{[u.el,u.anchor]=K(u.children,a,p,x,u.el,u.anchor)},N=({el:u,anchor:a},p,x)=>{let m;for(;u&&u!==a;)m=A(u),n(u,p,x),u=m;n(a,p,x)},D=({el:u,anchor:a})=>{let p;for(;u&&u!==a;)p=A(u),i(u),u=p;i(a)},ne=(u,a,p,x,m,_,C,S,w)=>{if(a.type==="svg"?C="svg":a.type==="math"&&(C="mathml"),u==null)Se(a,p,x,m,_,C,S,w);else{const b=u.el&&u.el._isVueCE?u.el:null;try{b&&b._beginPatch(),vt(u,a,m,_,C,S,w)}finally{b&&b._endPatch()}}},Se=(u,a,p,x,m,_,C,S)=>{let w,b;const{props:F,shapeFlag:E,transition:R,dirs:j}=u;if(w=u.el=r(u.type,_,F&&F.is,F),E&8?d(w,u.children):E&16&&De(u.children,w,null,x,m,Ps(u,_),C,S),j&&ft(u,null,x,"created"),Ce(w,u,u.scopeId,C,x),F){for(const V in F)V!=="value"&&!Ft(V)&&l(w,V,null,F[V],_,x);"value"in F&&l(w,"value",null,F.value,_),(b=F.onVnodeBeforeMount)&&Ne(b,x,u)}j&&ft(u,null,x,"beforeMount");const B=Mr(m,R);B&&R.beforeEnter(w),n(w,a,p),((b=F&&F.onVnodeMounted)||B||j)&&be(()=>{try{b&&Ne(b,x,u),B&&R.enter(w),j&&ft(u,null,x,"mounted")}finally{}},m)},Ce=(u,a,p,x,m)=>{if(p&&M(u,p),x)for(let _=0;_{for(let b=w;b{const S=a.el=u.el;let{patchFlag:w,dynamicChildren:b,dirs:F}=a;w|=u.patchFlag&16;const E=u.props||Z,R=a.props||Z;let j;if(p&&dt(p,!1),(j=R.onVnodeBeforeUpdate)&&Ne(j,p,a,u),F&&ft(a,u,p,"beforeUpdate"),p&&dt(p,!0),b&&(!u.dynamicChildren||u.dynamicChildren.length!==b.length)&&(w=0,C=!1,b=null),(E.innerHTML&&R.innerHTML==null||E.textContent&&R.textContent==null)&&d(S,""),b?Oe(u.dynamicChildren,b,S,p,x,Ps(a,m),_):C||G(u,a,S,null,p,x,Ps(a,m),_,!1),w>0){if(w&16)ct(S,E,R,p,m);else if(w&2&&E.class!==R.class&&l(S,"class",null,R.class,m),w&4&&l(S,"style",E.style,R.style,m),w&8){const B=a.dynamicProps;for(let V=0;V{j&&Ne(j,p,a,u),F&&ft(a,u,p,"updated")},x)},Oe=(u,a,p,x,m,_,C)=>{for(let S=0;S{if(a!==p){if(a!==Z)for(const _ in a)!Ft(_)&&!(_ in p)&&l(u,_,a[_],null,m,x);for(const _ in p){if(Ft(_))continue;const C=p[_],S=a[_];C!==S&&_!=="value"&&l(u,_,S,C,m,x)}"value"in p&&l(u,"value",a.value,p.value,m)}},Fe=(u,a,p,x,m,_,C,S,w)=>{const b=a.el=u?u.el:o(""),F=a.anchor=u?u.anchor:o("");let{patchFlag:E,dynamicChildren:R,slotScopeIds:j}=a;j&&(S=S?S.concat(j):j),u==null?(n(b,p,x),n(F,p,x),De(a.children||[],p,F,m,_,C,S,w)):E>0&&E&64&&R&&u.dynamicChildren&&u.dynamicChildren.length===R.length?(Oe(u.dynamicChildren,R,p,m,_,C,S),(a.key!=null||m&&a===m.subTree)&&Li(u,a,!0)):G(u,a,p,F,m,_,C,S,w)},mt=(u,a,p,x,m,_,C,S,w)=>{a.slotScopeIds=S,u==null?a.shapeFlag&512?m.ctx.activate(a,p,x,C,w):me(a,p,x,m,_,C,w):zt(u,a,w)},me=(u,a,p,x,m,_,C)=>{const S=u.component=Br(u,x,m);if(yi(u)&&(S.ctx.renderer=ie),Ur(S,!1,C),S.asyncDep){if(m&&m.registerDep(S,ce,C),!u.el){const w=S.subTree=tt(ut);J(null,w,a,p),u.placeholder=w.el}}else ce(S,u,a,p,m,_,C)},zt=(u,a,p)=>{const x=a.component=u.component;if(yr(u,a,p))if(x.asyncDep&&!x.asyncResolved){ee(x,a,p);return}else x.next=a,x.update();else a.el=u.el,x.vnode=a},ce=(u,a,p,x,m,_,C)=>{const S=()=>{if(u.isMounted){let{next:E,bu:R,u:j,parent:B,vnode:V}=u;{const Le=ki(u);if(Le){E&&(E.el=V.el,ee(u,E,C)),Le.asyncDep.then(()=>{be(()=>{u.isUnmounted||b()},m)});return}}let U=E,v;dt(u,!1),E?(E.el=V.el,ee(u,E,C)):E=V,R&&xs(R),(v=E.props&&E.props.onVnodeBeforeUpdate)&&Ne(v,B,E,V),dt(u,!0);const re=Sn(u),je=u.subTree;u.subTree=re,P(je,re,g(je.el),O(je),u,m,_),E.el=re.el,U===null&&xr(u,re.el),j&&be(j,m),(v=E.props&&E.props.onVnodeUpdated)&&be(()=>Ne(v,B,E,V),m)}else{let E;const{el:R,props:j}=a,{bm:B,m:V,parent:U,root:v,type:re}=u,je=kt(a);dt(u,!1),B&&xs(B),!je&&(E=j&&j.onVnodeBeforeMount)&&Ne(E,U,a),dt(u,!0);{v.ce&&v.ce._hasShadowRoot()&&v.ce._injectChildStyle(re,u.parent?u.parent.type:void 0);const Le=u.subTree=Sn(u);P(null,Le,p,x,u,m,_),a.el=Le.el}if(V&&be(V,m),!je&&(E=j&&j.onVnodeMounted)){const Le=a;be(()=>Ne(E,U,Le),m)}(a.shapeFlag&256||U&&kt(U.vnode)&&U.vnode.shapeFlag&256)&&u.a&&be(u.a,m),u.isMounted=!0,a=p=x=null}};u.scope.on();const w=u.effect=new Xn(S);u.scope.off();const b=u.update=w.run.bind(w),F=u.job=w.runIfDirty.bind(w);F.i=u,F.id=u.uid,w.scheduler=()=>nn(F),dt(u,!0),b()},ee=(u,a,p)=>{a.component=u;const x=u.vnode.props;u.vnode=a,u.next=null,Sr(u,a.props,x,p),Or(u,a.children,p),Je(),_n(u),Ge()},G=(u,a,p,x,m,_,C,S,w=!1)=>{const b=u&&u.children,F=u?u.shapeFlag:0,E=a.children,{patchFlag:R,shapeFlag:j}=a;if(R>0){if(R&128){at(b,E,p,x,m,_,C,S,w);return}else if(R&256){ze(b,E,p,x,m,_,C,S,w);return}}j&8?(F&16&&it(b,m,_),E!==b&&d(p,E)):F&16?j&16?at(b,E,p,x,m,_,C,S,w):it(b,m,_,!0):(F&8&&d(p,""),j&16&&De(E,p,x,m,_,C,S,w))},ze=(u,a,p,x,m,_,C,S,w)=>{u=u||wt,a=a||wt;const b=u.length,F=a.length,E=Math.min(b,F);let R;for(R=0;RF?it(u,m,_,!0,!1,E):De(a,p,x,m,_,C,S,w,E)},at=(u,a,p,x,m,_,C,S,w)=>{let b=0;const F=a.length;let E=u.length-1,R=F-1;for(;b<=E&&b<=R;){const j=u[b],B=a[b]=w?Qe(a[b]):Ke(a[b]);if(Rt(j,B))P(j,B,p,null,m,_,C,S,w);else break;b++}for(;b<=E&&b<=R;){const j=u[E],B=a[R]=w?Qe(a[R]):Ke(a[R]);if(Rt(j,B))P(j,B,p,null,m,_,C,S,w);else break;E--,R--}if(b>E){if(b<=R){const j=R+1,B=jR)for(;b<=E;)Te(u[b],m,_,!0),b++;else{const j=b,B=b,V=new Map;for(b=B;b<=R;b++){const ye=a[b]=w?Qe(a[b]):Ke(a[b]);ye.key!=null&&V.set(ye.key,b)}let U,v=0;const re=R-B+1;let je=!1,Le=0;const Pt=new Array(re);for(b=0;b=re){Te(ye,m,_,!0);continue}let ke;if(ye.key!=null)ke=V.get(ye.key);else for(U=B;U<=R;U++)if(Pt[U-B]===0&&Rt(ye,a[U])){ke=U;break}ke===void 0?Te(ye,m,_,!0):(Pt[ke-B]=b+1,ke>=Le?Le=ke:je=!0,P(ye,a[ke],p,null,m,_,C,S,w),v++)}const cn=je?Rr(Pt):wt;for(U=cn.length-1,b=re-1;b>=0;b--){const ye=B+b,ke=a[ye],an=a[ye+1],fn=ye+1{const{el:_,type:C,transition:S,children:w,shapeFlag:b}=u;if(b&6){Ye(u.component.subTree,a,p,x);return}if(b&128){u.suspense.move(a,p,x);return}if(b&64){C.move(u,a,p,ie);return}if(C===se){n(_,a,p);for(let E=0;ES.enter(_),m));else{const{leave:E,delayLeave:R,afterLeave:j}=S,B=()=>{u.ctx.isUnmounted?i(_):n(_,a,p)},V=()=>{const U=_._isLeaving||!!_[Os];_._isLeaving&&_[Os](!0),S.persisted&&!U?B():E(_,()=>{B(),j&&j()})};R?R(_,B,V):V()}else n(_,a,p)},Te=(u,a,p,x=!1,m=!1)=>{const{type:_,props:C,ref:S,children:w,dynamicChildren:b,shapeFlag:F,patchFlag:E,dirs:R,cacheIndex:j,memo:B}=u;if(E===-2&&(m=!1),S!=null&&(Je(),Lt(S,null,p,u,!0),Ge()),j!=null&&(a.renderCache[j]=void 0),F&256){a.ctx.deactivate(u);return}const V=F&1&&R,U=!kt(u);let v;if(U&&(v=C&&C.onVnodeBeforeUnmount)&&Ne(v,a,u),F&6)At(u.component,p,x);else{if(F&128){u.suspense.unmount(p,x);return}V&&ft(u,null,a,"beforeUnmount"),F&64?u.type.remove(u,a,p,ie,x):b&&!b.hasOnce&&(_!==se||E>0&&E&64)?it(b,a,p,!1,!0):(_===se&&E&384||!m&&F&16)&&it(w,a,p),x&&Yt(u)}const re=B!=null&&j==null;(U&&(v=C&&C.onVnodeUnmounted)||V||re)&&be(()=>{v&&Ne(v,a,u),V&&ft(u,null,a,"unmounted"),re&&(u.el=null)},p)},Yt=u=>{const{type:a,el:p,anchor:x,transition:m}=u;if(a===se){ms(p,x);return}if(a===Ms){D(u);return}const _=()=>{i(p),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(u.shapeFlag&1&&m&&!m.persisted){const{leave:C,delayLeave:S}=m,w=()=>C(p,_);S?S(u.el,_,w):w()}else _()},ms=(u,a)=>{let p;for(;u!==a;)p=A(u),i(u),u=p;i(a)},At=(u,a,p)=>{const{bum:x,scope:m,job:_,subTree:C,um:S,m:w,a:b}=u;En(w),En(b),x&&xs(x),m.stop(),_&&(_.flags|=8,Te(C,u,a,p)),S&&be(S,a),be(()=>{u.isUnmounted=!0},a)},it=(u,a,p,x=!1,m=!1,_=0)=>{for(let C=_;C{if(u.shapeFlag&6)return O(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const a=A(u.anchor||u.el),p=a&&a[ql];return p?A(p):a};let y=!1;const ae=(u,a,p)=>{let x;u==null?a._vnode&&(Te(a._vnode,null,null,!0),x=a._vnode.component):P(a._vnode||null,u,a,null,null,null,p),a._vnode=u,y||(y=!0,_n(x),pi(),y=!1)},ie={p:P,um:Te,m:Ye,r:Yt,mt:me,mc:De,pc:G,pbc:Oe,n:O,o:e};return{render:ae,hydrate:void 0,createApp:pr(ae)}}function Ps({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function dt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Mr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Li(e,t,s=!1){const n=e.children,i=t.children;if(L(n)&&L(i))for(let l=0;l>1,e[s[o]]0&&(t[n]=s[l-1]),s[l]=n)}}for(l=s.length,r=s[l-1];l-- >0;)s[l]=r,r=t[r];return s}function ki(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ki(t)}function En(e){if(e)for(let t=0;te.__isSuspense;function Ir(e,t){t&&t.pendingBranch?L(e)?t.effects.push(...e):t.effects.push(e):Hl(e)}const se=Symbol.for("v-fgt"),vs=Symbol.for("v-txt"),ut=Symbol.for("v-cmt"),Ms=Symbol.for("v-stc"),Ht=[];let we=null;function I(e=!1){Ht.push(we=e?null:[])}function Dr(){Ht.pop(),we=Ht[Ht.length-1]||null}let Vt=1;function On(e,t=!1){Vt+=e,e<0&&we&&t&&(we.hasOnce=!0)}function Bi(e){return e.dynamicChildren=Vt>0?we||wt:null,Dr(),Vt>0&&we&&we.push(e),e}function $(e,t,s,n,i,l){return Bi(f(e,t,s,n,i,l,!0))}function Fr(e,t,s,n,i){return Bi(tt(e,t,s,n,i,!0))}function Ki(e){return e?e.__v_isVNode===!0:!1}function Rt(e,t){return e.type===t.type&&e.key===t.key}const Ui=({key:e})=>e??null,ts=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?le(e)||pe(e)||k(e)?{i:Ve,r:e,k:t,f:!!s}:e:null);function f(e,t=null,s=null,n=0,i=null,l=e===se?0:1,r=!1,o=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ui(t),ref:t&&ts(t),scopeId:_i,slotScopeIds:null,children:s,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:l,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ve};return o?(os(c,s),l&128&&e.normalize(c)):s&&(c.shapeFlag|=le(s)?8:16),Vt>0&&!r&&we&&(c.patchFlag>0||l&6)&&c.patchFlag!==32&&we.push(c),c}const tt=$r;function $r(e,t=null,s=null,n=0,i=null,l=!1){if((!e||e===rr)&&(e=ut),Ki(e)){const o=Ot(e,t,!0);return s&&os(o,s),Vt>0&&!l&&we&&(o.shapeFlag&6?we[we.indexOf(e)]=o:we.push(o)),o.patchFlag=-2,o}if(Jr(e)&&(e=e.__vccOpts),t){t=jr(t);let{class:o,style:c}=t;o&&!le(o)&&(t.class=Ae(o)),z(c)&&(sn(c)&&!L(c)&&(c=de({},c)),t.style=Js(c))}const r=le(e)?1:Hi(e)?128:Jl(e)?64:z(e)?4:k(e)?2:0;return f(e,t,s,n,i,r,l,!0)}function jr(e){return e?sn(e)||Ri(e)?de({},e):e:null}function Ot(e,t,s=!1,n=!1){const{props:i,ref:l,patchFlag:r,children:o,transition:c}=e,h=t?kr(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&Ui(h),ref:t&&t.ref?s&&l?L(l)?l.concat(ts(t)):[l,ts(t)]:ts(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==se?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ot(e.ssContent),ssFallback:e.ssFallback&&Ot(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&ln(d,c.clone(d)),d}function Lr(e=" ",t=0){return tt(vs,null,e,t)}function te(e="",t=!1){return t?(I(),Fr(ut,null,e)):tt(ut,null,e)}function Ke(e){return e==null||typeof e=="boolean"?tt(ut):L(e)?tt(se,null,e.slice()):Ki(e)?Qe(e):tt(vs,null,String(e))}function Qe(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ot(e)}function os(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(L(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),os(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!Ri(t)?t._ctx=Ve:i===3&&Ve&&(Ve.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(k(t)){if(n&65){os(e,{default:t});return}t={default:t,_ctx:Ve},s=32}else t=String(t),n&64?(s=16,t=[Lr(t)]):s=8;e.children=t,e.shapeFlag|=s}function kr(...e){const t={};for(let s=0;sve||Ve;let us,Ks;{const e=ds(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),l=>{i.length>1?i.forEach(r=>r(l)):i[0](l)}};us=t("__VUE_INSTANCE_SETTERS__",s=>ve=s),Ks=t("__VUE_SSR_SETTERS__",s=>Wt=s)}const Gt=e=>{const t=ve;return us(e),e.scope.on(),()=>{e.scope.off(),us(t)}},An=()=>{ve&&ve.scope.off(),us(null)};function Vi(e){return e.vnode.shapeFlag&4}let Wt=!1;function Ur(e,t=!1,s=!1){t&&Ks(t);const{props:n,children:i}=e.vnode,l=Vi(e);wr(e,n,l,t),Er(e,i,s||t);const r=l?Vr(e,t):void 0;return t&&Ks(!1),r}function Vr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,or);const{setup:n}=s;if(n){Je();const i=e.setupContext=n.length>1?qr(e):null,l=Gt(e),r=Jt(n,e,0,[e.props,i]),o=Un(r);if(Ge(),l(),(o||e.sp)&&!kt(e)&&bi(e),o){if(r.then(An,An),t)return r.then(c=>{Pn(e,c)}).catch(c=>{ps(c,e,0)});e.asyncDep=r}else Pn(e,r)}else Wi(e)}function Pn(e,t,s){k(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:z(t)&&(e.setupState=fi(t)),Wi(e)}function Wi(e,t,s){const n=e.type;e.render||(e.render=n.render||We);{const i=Gt(e);Je();try{ur(e)}finally{Ge(),i()}}}const Wr={get(e,t){return he(e,"get",""),e[t]}};function qr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Wr),slots:e.slots,emit:e.emit,expose:t}}function un(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(fi(Al(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Nt)return Nt[s](e)},has(t,s){return s in t||s in Nt}})):e.proxy}function Jr(e){return k(e)&&"__vccOpts"in e}const xt=(e,t)=>Fl(e,t,Wt),Gr="3.5.39";/** +* @vue/runtime-dom v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Us;const Mn=typeof window<"u"&&window.trustedTypes;if(Mn)try{Us=Mn.createPolicy("vue",{createHTML:e=>e})}catch{}const qi=Us?e=>Us.createHTML(e):e=>e,zr="http://www.w3.org/2000/svg",Yr="http://www.w3.org/1998/Math/MathML",Ze=typeof document<"u"?document:null,Rn=Ze&&Ze.createElement("template"),Xr={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?Ze.createElementNS(zr,e):t==="mathml"?Ze.createElementNS(Yr,e):s?Ze.createElement(e,{is:s}):Ze.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Ze.createTextNode(e),createComment:e=>Ze.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ze.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,l){const r=s?s.previousSibling:t.lastChild;if(i&&(i===l||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===l||!(i=i.nextSibling)););else{Rn.innerHTML=qi(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const o=Rn.content;if(n==="svg"||n==="mathml"){const c=o.firstChild;for(;c.firstChild;)o.appendChild(c.firstChild);o.removeChild(c)}t.insertBefore(o,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Zr=Symbol("_vtc");function Qr(e,t,s){const n=e[Zr];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const In=Symbol("_vod"),eo=Symbol("_vsh"),to=Symbol(""),so=/(?:^|;)\s*display\s*:/;function no(e,t,s){const n=e.style,i=le(s);let l=!1;if(s&&!i){if(t)if(le(t))for(const r of t.split(";")){const o=r.slice(0,r.indexOf(":")).trim();s[o]==null&&Dt(n,o,"")}else for(const r in t)s[r]==null&&Dt(n,r,"");for(const r in s){r==="display"&&(l=!0);const o=s[r];o!=null?lo(e,r,!le(t)&&t?t[r]:void 0,o)||Dt(n,r,o):Dt(n,r,"")}}else if(i){if(t!==s){const r=n[to];r&&(s+=";"+r),n.cssText=s,l=so.test(s)}}else t&&e.removeAttribute("style");In in e&&(e[In]=l?n.display:"",e[eo]&&(n.display="none"))}const Dn=/\s*!important$/;function Dt(e,t,s){if(L(s))s.forEach(n=>Dt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=io(e,t);Dn.test(s)?e.setProperty(_t(n),s.replace(Dn,""),"important"):e[n]=s}}const Fn=["Webkit","Moz","ms"],Rs={};function io(e,t){const s=Rs[t];if(s)return s;let n=Pe(t);if(n!=="filter"&&n in e)return Rs[t]=n;n=qn(n);for(let i=0;iIs||(ho.then(()=>Is=0),Is=Date.now());function go(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const i=s.value;if(L(i)){const l=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{l.call(n),n._stopped=!0};const r=i.slice(),o=[n];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_o=(e,t,s,n,i,l)=>{const r=i==="svg";t==="class"?Qr(e,n,r):t==="style"?no(e,s,n):cs(t)?as(t)||uo(e,t,s,n,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vo(e,t,n,r))?(Ln(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&jn(e,t,n,r,l,t!=="value")):e._isVueCE&&(mo(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!le(n)))?Ln(e,Pe(t),n,l,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),jn(e,t,n,r))};function vo(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Nn(t)&&k(s));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 i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Nn(t)&&le(s)?!1:t in e}function mo(e,t){const s=e._def.props;if(!s)return!1;const n=Pe(t);return Array.isArray(s)?s.some(i=>Pe(i)===n):Object.keys(s).some(i=>Pe(i)===n)}const bo=de({patchProp:_o},Xr);let Hn;function yo(){return Hn||(Hn=Ar(bo))}const xo=((...e)=>{const t=yo().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=So(n);if(!i)return;const l=t._component;!k(l)&&!l.render&&!l.template&&(l.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=s(i,!1,wo(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t});function wo(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function So(e){return le(e)?document.querySelector(e):e}const Co="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",Y={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",quickProfileDraft:"profiles/quick-draft",jobs:"jobs",jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsReload:"settings/reload",settingsExport:"settings/export",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class To extends Error{constructor(s,n,i={}){super(n);bs(this,"code");bs(this,"details");this.name="ApiClientError",this.code=s,this.details=i}}async function ue(e,t){return Ji(e,{method:"GET",query:t})}async function lt(e,t){return Ji(e,{method:"POST",body:t})}async function Ji(e,t={}){const n=await(await fetch(Eo(e,t.query),{method:t.method??"GET",headers:t.body===void 0?void 0:{"Content-Type":"application/json"},body:t.body===void 0?void 0:JSON.stringify(t.body)})).json();if(!n.ok)throw new To(n.error_code,n.message,n.details);return n.data}function Eo(e,t){const s=e.replace(/^\/+/,""),n=new URL(`${Co}/${s}`,window.location.origin);for(const[i,l]of Object.entries(t??{}))l!==void 0&&n.searchParams.set(i,String(l));return`${n.pathname}${n.search}`}const Oo={class:"web-shell"},Ao={class:"sidebar"},Po={class:"brand"},Mo={class:"workspace"},Ro={class:"topbar"},Io={class:"actions"},Do=["disabled"],Fo={key:0,class:"notice error"},$o={key:1,class:"notice"},jo={key:0,class:"dashboard-grid"},Lo={key:1,class:"list-view"},ko={class:"badge"},No={key:0,class:"empty"},Ho={key:2,class:"split-view"},Bo={class:"list-view"},Ko={key:0,class:"empty"},Uo={class:"list-view"},Vo={class:"inline-actions"},Wo=["disabled"],qo={class:"badge"},Jo={key:0,class:"empty"},Go={key:0},zo={key:3,class:"list-view"},Yo=["disabled"],Xo={key:0,class:"empty"},Zo={key:0},Qo={key:4,class:"list-view"},eu={class:"inline-actions"},tu=["disabled"],su=["disabled"],nu={class:"inline-actions"},iu={class:"badge"},lu=["onClick"],ru=["onClick"],ou={key:0,class:"empty"},uu={key:5,class:"split-view"},cu={class:"list-view"},au=["disabled"],fu={class:"list-view"},du={class:"inline-actions"},hu={class:"badge"},pu=["disabled","onClick"],gu=["disabled","onClick"],_u={key:0,class:"empty"},vu={key:6,class:"logs-view"},mu={class:"split-view"},bu={class:"list-view"},yu={key:0,class:"empty"},xu={class:"list-view"},wu={class:"badge"},Su={key:0,class:"empty"},Cu={class:"split-view"},Tu={class:"list-view"},Eu={key:0,class:"empty"},Ou={class:"list-view"},Au={class:"badge"},Pu={key:0,class:"empty"},Mu={class:"list-view"},Ru={key:0,class:"empty"},Iu={key:7,class:"settings-view"},Du={class:"toolbar"},Fu=["disabled"],$u=["disabled"],ju={class:"settings-sections"},Lu={class:"inspector"},ku=Gl({__name:"App",setup(e){const t=oe("dashboard"),s=oe(null),n=oe(null),i=oe(null),l=oe(null),r=oe(null),o=oe(null),c=oe(null),h=oe([]),d=oe(null),g=oe([]),A=oe([]),M=oe([]),K=oe(null),P=oe({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Q=oe(null),J=oe(""),H=oe(!0),N=oe(""),D=oe(""),ne=xt(()=>{var O,y;return((y=(O=i.value)==null?void 0:O.items[0])==null?void 0:y.profile_id)??""}),Se=xt(()=>{var O,y;return((y=(O=i.value)==null?void 0:O.items[0])==null?void 0:y.name)??"未选择角色"}),Ce=xt(()=>{var y;const O=(y=n.value)==null?void 0:y.queue;return O?O.pending+O.running+O.failed+O.dead_letter:0}),De=xt(()=>{var O;return((O=d.value)==null?void 0:O.items.filter(y=>y.recognition_status!=="confirmed").length)??0}),vt=xt(()=>({dashboard:"运行概览",profiles:"角色",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置"})[t.value]);wi(Oe);async function Oe(){var O;H.value=!0,D.value="";try{const[y,ae,ie,$e,u,a,p,x,m,_,C]=await Promise.all([ue(Y.uiBootstrap),ue(Y.dashboardSummary),ue(Y.profiles,{page:1,page_size:20}),ue(Y.jobs,{page:1,page_size:20}),ue(Y.settingsSchema),ue(Y.settingsCurrent),ue(Y.storageStatus),ue(Y.materialCategories),ue(Y.materials,{page:1,page_size:24}),ue(Y.apiDiscoveryDialects),ue(Y.apiDiscoveryCapabilities)]);s.value=y,n.value=ae,i.value=ie,l.value=$e,r.value=u,o.value=a,c.value=p,h.value=x,d.value=m,A.value=_,M.value=C,await mt((O=ie.items[0])==null?void 0:O.profile_id),await ct()}catch(y){D.value=y instanceof Error?y.message:"加载失败"}finally{H.value=!1}}async function ct(){const[O,y,ae,ie,$e]=await Promise.allSettled([ue(Y.generationLogs,{limit:12}),ue(Y.workflowLogs,{limit:12}),ue(Y.errorLogs,{limit:12}),ue(Y.integrationLogs,{limit:12}),ue(Y.auditLogs,{limit:12})]);P.value={generation:Fe(O),workflows:Fe(y),errors:Fe(ae),integrations:Fe(ie),audit:Fe($e)}}function Fe(O){return O.status==="fulfilled"?O.value:[]}async function mt(O){if(!O){g.value=[];return}g.value=await ue(Y.wardrobe(O))}async function me(O,y,ae=!0){N.value=O,D.value="";try{const ie=await y();J.value=`${O}完成`,O==="导出设置"&&(J.value=`导出设置完成,配置已脱敏:${!!ie.redacted}`),ae&&await Oe()}catch(ie){D.value=ie instanceof Error?ie.message:`${O}失败`}finally{N.value=""}}function zt(O){return me("重试任务",()=>lt(Y.jobRetry(O)))}function ce(O){return me("取消任务",()=>lt(Y.jobCancel(O)))}function ee(){return me("转入死信",()=>lt(Y.jobDeadLetterMoveFailed,{limit:20}))}function G(){return me("重试死信",()=>lt(Y.jobDeadLetterRetry,{limit:20}))}function ze(){var y;const O=((y=A.value[0])==null?void 0:y.dialect)??"unknown";return me("安全探测",()=>lt(Y.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:O,capabilities:{supports:["text_to_image"]}}))}function at(O,y){return me("能力覆盖",()=>lt(Y.apiDiscoveryManualOverride,{provider_id:O.provider_id,model_id:O.model_id,dialect:O.dialect,status:y,capabilities:O.capabilities}))}function Ye(){const O=ne.value;return O?me("衣橱匹配",async()=>(K.value=await lt(Y.wardrobeMatch(O),{tags:["daily"]}),K.value),!1):Promise.resolve()}function Te(){return me("重载设置",async()=>{var y;const O=await lt(Y.settingsReload);return o.value={config_path:((y=o.value)==null?void 0:y.config_path)??"***PATH***",config:O.config},O},!1)}function Yt(){return me("导出设置",()=>ue(Y.settingsExport),!1)}function ms(){var y,ae;const O=(ae=(y=d.value)==null?void 0:y.items.find(ie=>{var $e;return($e=ie.image_uri)==null?void 0:$e.startsWith("storage://")}))==null?void 0:ae.image_uri;return O?me("签名素材",async()=>(Q.value=await ue(Y.mediaSign,{uri:O}),Q.value),!1):(J.value="没有可签名的素材图片",Promise.resolve())}function At(O=0){return O<1024?`${O} B`:O<1024*1024?`${(O/1024).toFixed(1)} KB`:O<1024*1024*1024?`${(O/1024/1024).toFixed(1)} MB`:`${(O/1024/1024/1024).toFixed(1)} GB`}function it(O){var y,ae;return((ae=(y=c.value)==null?void 0:y.roots.find(ie=>ie.uri_prefix===O))==null?void 0:ae.bytes)??0}return(O,y)=>{var ae,ie,$e,u,a,p,x,m,_,C,S,w,b,F,E,R,j,B,V,U;return I(),$("main",Oo,[f("aside",Ao,[f("div",Po,[f("strong",null,T(((ae=s.value)==null?void 0:ae.display_name)??"ImageStudio"),1),f("span",null,T(((ie=s.value)==null?void 0:ie.dashboard_user)??"AstrBot"),1)]),f("nav",null,[f("button",{type:"button",class:Ae({active:t.value==="dashboard"}),onClick:y[0]||(y[0]=v=>t.value="dashboard")}," 概览 ",2),f("button",{type:"button",class:Ae({active:t.value==="profiles"}),onClick:y[1]||(y[1]=v=>t.value="profiles")}," 角色 ",2),f("button",{type:"button",class:Ae({active:t.value==="materials"}),onClick:y[2]||(y[2]=v=>t.value="materials")}," 素材 ",2),f("button",{type:"button",class:Ae({active:t.value==="wardrobe"}),onClick:y[3]||(y[3]=v=>t.value="wardrobe")}," 衣橱 ",2),f("button",{type:"button",class:Ae({active:t.value==="jobs"}),onClick:y[4]||(y[4]=v=>t.value="jobs")}," 队列 ",2),f("button",{type:"button",class:Ae({active:t.value==="discovery"}),onClick:y[5]||(y[5]=v=>t.value="discovery")}," 探测 ",2),f("button",{type:"button",class:Ae({active:t.value==="logs"}),onClick:y[6]||(y[6]=v=>t.value="logs")}," 日志 ",2),f("button",{type:"button",class:Ae({active:t.value==="settings"}),onClick:y[7]||(y[7]=v=>t.value="settings")}," 设置 ",2)])]),f("section",Mo,[f("header",Ro,[f("div",null,[f("h1",null,T(vt.value),1),f("p",null,T((($e=n.value)==null?void 0:$e.plugin_status)??"loading")+" · "+T(J.value||"等待操作"),1)]),f("div",Io,[f("button",{type:"button",disabled:!!N.value,onClick:Oe},T(N.value||"刷新"),9,Do)])]),D.value?(I(),$("section",Fo,T(D.value),1)):H.value?(I(),$("section",$o,"加载中...")):(I(),$(se,{key:2},[t.value==="dashboard"?(I(),$("section",jo,[f("article",null,[y[8]||(y[8]=f("span",null,"角色",-1)),f("strong",null,T(((u=n.value)==null?void 0:u.active_profiles)??0),1)]),f("article",null,[y[9]||(y[9]=f("span",null,"队列",-1)),f("strong",null,T(Ce.value),1)]),f("article",null,[y[10]||(y[10]=f("span",null,"素材",-1)),f("strong",null,T(((a=d.value)==null?void 0:a.total)??0),1)]),f("article",null,[y[11]||(y[11]=f("span",null,"存储",-1)),f("strong",null,T(At(((p=c.value)==null?void 0:p.total_bytes)??((x=n.value)==null?void 0:x.storage.total_bytes))),1)])])):te("",!0),t.value==="profiles"?(I(),$("section",Lo,[f("header",null,[y[12]||(y[12]=f("h2",null,"角色列表",-1)),f("span",null,T(((m=i.value)==null?void 0:m.total)??0),1)]),f("ul",null,[(I(!0),$(se,null,xe(((_=i.value)==null?void 0:_.items)??[],v=>(I(),$("li",{key:v.profile_id},[f("div",null,[f("strong",null,T(v.name),1),f("small",null,T(v.profile_id),1)]),f("span",ko,T(v.status),1)]))),128)),(C=i.value)!=null&&C.items.length?te("",!0):(I(),$("li",No,"暂无角色"))])])):te("",!0),t.value==="materials"?(I(),$("section",Ho,[f("div",Bo,[f("header",null,[y[13]||(y[13]=f("h2",null,"素材分类",-1)),f("span",null,T(h.value.length),1)]),f("ul",null,[(I(!0),$(se,null,xe(h.value,v=>(I(),$("li",{key:v.category_id},[f("div",null,[f("strong",null,T(v.name),1),f("small",null,T(v.category_type),1)]),f("span",null,T(v.sort_order),1)]))),128)),h.value.length?te("",!0):(I(),$("li",Ko,"暂无分类"))])]),f("div",Uo,[f("header",null,[y[14]||(y[14]=f("h2",null,"素材条目",-1)),f("div",Vo,[f("span",null,T(De.value)+" 待确认",1),f("button",{type:"button",disabled:!!N.value,onClick:ms},"签名首图",8,Wo)])]),f("ul",null,[(I(!0),$(se,null,xe(((S=d.value)==null?void 0:S.items)??[],v=>(I(),$("li",{key:v.material_id},[f("div",null,[f("strong",null,T(v.display_name),1),f("small",null,T(v.image_uri??"未绑定图片"),1)]),f("span",qo,T(v.recognition_status),1)]))),128)),(w=d.value)!=null&&w.items.length?te("",!0):(I(),$("li",Jo,"暂无素材"))]),Q.value?(I(),$("pre",Go,T(JSON.stringify(Q.value,null,2)),1)):te("",!0)])])):te("",!0),t.value==="wardrobe"?(I(),$("section",zo,[f("header",null,[f("h2",null,T(Se.value),1),f("button",{type:"button",disabled:!ne.value||!!N.value,onClick:Ye}," 匹配 ",8,Yo)]),f("ul",null,[(I(!0),$(se,null,xe(g.value,v=>(I(),$("li",{key:v.wardrobe_item_id},[f("div",null,[f("strong",null,T(v.wardrobe_category),1),f("small",null,T(v.material_id)+" · "+T(v.tags.join(", ")||"无标签"),1)]),f("span",null,T(v.usage_count),1)]))),128)),g.value.length?te("",!0):(I(),$("li",Xo,"暂无衣橱条目"))]),K.value?(I(),$("pre",Zo,T(JSON.stringify(K.value,null,2)),1)):te("",!0)])):te("",!0),t.value==="jobs"?(I(),$("section",Qo,[f("header",null,[y[15]||(y[15]=f("h2",null,"任务队列",-1)),f("div",eu,[f("button",{type:"button",disabled:!!N.value,onClick:ee},"失败转死信",8,tu),f("button",{type:"button",disabled:!!N.value,onClick:G},"重试死信",8,su)])]),f("ul",null,[(I(!0),$(se,null,xe(((b=l.value)==null?void 0:b.items)??[],v=>(I(),$("li",{key:v.task_id},[f("div",null,[f("strong",null,T(v.task_id),1),f("small",null,T(v.task_type)+" · "+T(v.progress)+"%",1)]),f("div",nu,[f("span",iu,T(v.status),1),v.status==="failed"?(I(),$("button",{key:0,type:"button",onClick:re=>zt(v.task_id)},"重试",8,lu)):te("",!0),v.status==="pending"?(I(),$("button",{key:1,type:"button",onClick:re=>ce(v.task_id)},"取消",8,ru)):te("",!0)])]))),128)),(F=l.value)!=null&&F.items.length?te("",!0):(I(),$("li",ou,"暂无任务"))])])):te("",!0),t.value==="discovery"?(I(),$("section",uu,[f("div",cu,[f("header",null,[y[16]||(y[16]=f("h2",null,"协议方言",-1)),f("button",{type:"button",disabled:!!N.value,onClick:ze},"安全探测",8,au)]),f("ul",null,[(I(!0),$(se,null,xe(A.value,v=>(I(),$("li",{key:v.dialect},[f("div",null,[f("strong",null,T(v.label),1),f("small",null,T(v.capabilities.join(", ")||"待确认"),1)]),f("span",null,T(v.dialect),1)]))),128))])]),f("div",fu,[f("header",null,[y[17]||(y[17]=f("h2",null,"能力档案",-1)),f("span",null,T(M.value.length),1)]),f("ul",null,[(I(!0),$(se,null,xe(M.value,v=>(I(),$("li",{key:v.capability_profile_id},[f("div",null,[f("strong",null,T(v.provider_id)+" / "+T(v.model_id),1),f("small",null,T(v.dialect),1)]),f("div",du,[f("span",hu,T(v.status),1),f("button",{type:"button",disabled:!!N.value,onClick:re=>at(v,"confirmed_supported")}," 支持 ",8,pu),f("button",{type:"button",disabled:!!N.value,onClick:re=>at(v,"unconfirmed")}," 待确认 ",8,gu)])]))),128)),M.value.length?te("",!0):(I(),$("li",_u,"暂无能力档案"))])])])):te("",!0),t.value==="logs"?(I(),$("section",vu,[f("div",mu,[f("div",bu,[f("header",null,[y[18]||(y[18]=f("h2",null,"生成日志",-1)),f("span",null,T(P.value.generation.length),1)]),f("ul",null,[(I(!0),$(se,null,xe(P.value.generation,v=>(I(),$("li",{key:v.task_id},[f("div",null,[f("strong",null,T(v.task_id),1),f("small",null,T(v.status)+" · "+T(v.progress)+"%",1)]),f("span",null,T(v.created_at),1)]))),128)),P.value.generation.length?te("",!0):(I(),$("li",yu,"暂无生成日志"))])]),f("div",xu,[f("header",null,[y[19]||(y[19]=f("h2",null,"错误",-1)),f("span",null,T(P.value.errors.length),1)]),f("ul",null,[(I(!0),$(se,null,xe(P.value.errors,v=>(I(),$("li",{key:`${v.source}-${v.id}`},[f("div",null,[f("strong",null,T(v.source),1),f("small",null,T(v.error_message??"无错误详情"),1)]),f("span",wu,T(v.status),1)]))),128)),P.value.errors.length?te("",!0):(I(),$("li",Su,"暂无错误"))])])]),f("div",Cu,[f("div",Tu,[f("header",null,[y[20]||(y[20]=f("h2",null,"工作流",-1)),f("span",null,T(P.value.workflows.length),1)]),f("ul",null,[(I(!0),$(se,null,xe(P.value.workflows,v=>(I(),$("li",{key:v.history_id},[f("div",null,[f("strong",null,T(v.action),1),f("small",null,T(v.title??v.workflow_id),1)]),f("span",null,T(v.branch_name??"main"),1)]))),128)),P.value.workflows.length?te("",!0):(I(),$("li",Eu,"暂无工作流日志"))])]),f("div",Ou,[f("header",null,[y[21]||(y[21]=f("h2",null,"集成",-1)),f("span",null,T(P.value.integrations.length),1)]),f("ul",null,[(I(!0),$(se,null,xe(P.value.integrations,v=>(I(),$("li",{key:v.integration_log_id},[f("div",null,[f("strong",null,T(v.integration_name),1),f("small",null,T(v.action),1)]),f("span",Au,T(v.status),1)]))),128)),P.value.integrations.length?te("",!0):(I(),$("li",Pu,"暂无集成日志"))])])]),f("div",Mu,[f("header",null,[y[22]||(y[22]=f("h2",null,"审计",-1)),f("span",null,T(P.value.audit.length),1)]),f("ul",null,[(I(!0),$(se,null,xe(P.value.audit,v=>(I(),$("li",{key:v.audit_id},[f("div",null,[f("strong",null,T(v.action),1),f("small",null,T(v.actor_type)+" / "+T(v.target_type)+" / "+T(v.target_id),1)]),f("span",null,T(v.created_at),1)]))),128)),P.value.audit.length?te("",!0):(I(),$("li",Ru,"暂无审计日志"))])])])):te("",!0),t.value==="settings"?(I(),$("section",Iu,[f("div",Du,[f("button",{type:"button",disabled:!!N.value,onClick:Te},"重载",8,Fu),f("button",{type:"button",disabled:!!N.value,onClick:Yt},"导出脱敏配置",8,$u)]),f("div",ju,[(I(!0),$(se,null,xe(((E=r.value)==null?void 0:E.sections)??[],v=>(I(),$("article",{key:v.key},[f("h2",null,T(v.title),1),f("span",null,T(v.fields.length)+" 项",1)]))),128))]),f("pre",null,T(JSON.stringify(((R=o.value)==null?void 0:R.config)??{},null,2)),1)])):te("",!0)],64))]),f("aside",Lu,[y[29]||(y[29]=f("h2",null,"运行",-1)),f("dl",null,[f("div",null,[y[23]||(y[23]=f("dt",null,"Pending",-1)),f("dd",null,T(((j=n.value)==null?void 0:j.queue.pending)??0),1)]),f("div",null,[y[24]||(y[24]=f("dt",null,"Running",-1)),f("dd",null,T(((B=n.value)==null?void 0:B.queue.running)??0),1)]),f("div",null,[y[25]||(y[25]=f("dt",null,"Failed",-1)),f("dd",null,T(((V=n.value)==null?void 0:V.queue.failed)??0),1)]),f("div",null,[y[26]||(y[26]=f("dt",null,"Dead",-1)),f("dd",null,T(((U=n.value)==null?void 0:U.queue.dead_letter)??0),1)])]),y[30]||(y[30]=f("h2",null,"存储",-1)),f("dl",null,[f("div",null,[y[27]||(y[27]=f("dt",null,"Images",-1)),f("dd",null,T(At(it("storage://images/"))),1)]),f("div",null,[y[28]||(y[28]=f("dt",null,"Materials",-1)),f("dd",null,T(At(it("storage://materials/"))),1)])])])])}}}),Nu=(e,t)=>{const s=e.__vccOpts||e;for(const[n,i]of t)s[n]=i;return s},Hu=Nu(ku,[["__scopeId","data-v-1d79a532"]]);xo(Hu).mount("#app"); diff --git a/web/index.html b/web/index.html index f2fcee7..61e71d3 100644 --- a/web/index.html +++ b/web/index.html @@ -1,3 +1,3 @@ - - + +