astrbot_plugin_imagestudio/web/assets/index-QsMDq_Mp.js

17 行
78 KiB
JavaScript

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<e.length;s++)e[s](...t)},Jn=(e,t,s,n=!1)=>{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<e.length;s++){const n=e[s],i=le(n)?il(n):Js(n);if(i)for(const l in i)t[l]=i[l]}return t}else if(le(e)||z(e))return e}const tl=/;(?![^(]*\))/g,sl=/:([^]+)/,nl=/\/\*[^]*?\*\//g;function il(e){const t={};return e.replace(nl,"").split(tl).forEach(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.length;s++){const n=Ae(e[s]);n&&(t+=n+" ")}else if(z(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const ll="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",rl=Vs(ll);function Gn(e){return!!e||e===""}function ol(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Gs(e[n],t[n]);return s}function Gs(e,t){if(e===t)return!0;let s=dn(e),n=dn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=qe(e),n=qe(t),s||n)return e===t;if(s=L(e),n=L(t),s||n)return s&&n?ol(e,t):!1;if(s=z(e),n=z(t),s||n){if(!s||!n)return!1;const i=Object.keys(e).length,l=Object.keys(t).length;if(i!==l)return!1;for(const r in e){const o=e.hasOwnProperty(r),c=t.hasOwnProperty(r);if(o&&!c||!o&&c||!Gs(e[r],t[r]))return!1}}return String(e)===String(t)}const zn=e=>!!(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;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=fe;try{return fe=this,t()}finally{fe=s}}}on(){++this._on===1&&(this.prevScope=fe,fe=this)}off(){if(this._on>0&&--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;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function cl(){return fe}let X;const Ss=new WeakSet;class Xn{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,fe&&(fe.active?fe.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ss.has(this)&&(Ss.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Qn(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,pn(this),ei(this);const t=X,s=Me;X=this,Me=!0;try{return this.fn()}finally{ti(this),X=t,Me=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Xs(t);this.deps=this.depsTail=void 0,pn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ss.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ds(this)&&this.run()}get dirty(){return Ds(this)}}let Zn=0,$t,jt;function Qn(e,t=!1){if(e.flags|=8,t){e.next=jt,jt=e;return}e.next=$t,$t=e}function zs(){Zn++}function Ys(){if(--Zn>0)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)<t.length:q(t,s),c=Reflect.set(t,s,n,pe(t)?t:i);return t===W(i)&&c&&(o?Ue(n,l)&&et(t,"set",s,n):et(t,"add",s,n)),c}deleteProperty(t,s){const n=q(t,s);t[s];const i=Reflect.deleteProperty(t,s);return i&&n&&et(t,"delete",s,void 0),i}has(t,s){const n=Reflect.has(t,s);return(!qe(s)||!li.has(s))&&he(t,"has",s),n}ownKeys(t){return he(t,"iterate",L(t)?"length":pt),Reflect.ownKeys(t)}}class _l extends ri{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const vl=new oi,ml=new _l,bl=new oi(!0);const js=e=>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<e.length;n++)ot(e[n],t,s);else if(Kn(e)||St(e))e.forEach(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<e.length;l++)i.push(Ie(e[l],t,s,n));return i}}function ps(e,t,s,n=!0){const i=t?t.vnode:null,{errorHandler:l,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||Z;if(t){let o=t.parent;const c=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${s}`;for(;o;){const d=o.ec;if(d){for(let g=0;g<d.length;g++)if(d[g](e,c,h)===!1)return}o=o.parent}if(l){Je(),Jt(l,null,10,[e,c,h]),Ge();return}}Ll(e,s,i,n,r)}function Ll(e,t,s,n=!0,i=!1){if(i)throw e;console.error(e)}const _e=[];let He=-1;const Ct=[];let rt=null,yt=0;const di=Promise.resolve();let ns=null;function kl(e){const t=ns||di;return e?t.then(this?e.bind(this):e):t}function Nl(e){let t=He+1,s=_e.length;for(;t<s;){const n=t+s>>>1,i=_e[n],l=Ut(i);l<e||l===e&&i.flags&2?t=n+1:s=n}return t}function nn(e){if(!(e.flags&1)){const t=Ut(e),s=_e[_e.length-1];!s||!(e.flags&2)&&t>=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;yt<rt.length;yt++){const s=rt[yt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}rt=null,yt=0}}const Ut=e=>e.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;r<i.length;r++){const o=i[r];l&&(o.oldValue=l[r].value);let c=o.dir[n];c&&(Je(),Ie(c,s,8,[e.el,o,e,t]),Ge())}}function Kl(e,t){if(ve){let s=ve.provides;const n=ve.parent&&ve.parent.provides;n===s&&(s=ve.provides=Object.create(n)),s[e]=t}}function es(e,t,s=!1){const n=Kr();if(n||Tt){let i=Tt?Tt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)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;i<s.length&&n;i++)n=n[s[i]];return n}}const ql=Symbol("_vte"),Jl=e=>e.__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&&gt(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;d<g;d++)i[d]=t(c?h?Et(Re(e[d])):Re(e[d]):e[d],d,void 0,l)}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,l)}else if(z(e))if(e[Symbol.iterator])i=Array.from(e,(o,c)=>t(o,c,void 0,l));else{const o=Object.keys(e);i=new Array(o.length);for(let c=0,h=o.length;c<h;c++){const d=o[c];i[c]=t(e[d],d,c,l)}}else i=[];return i}const ks=e=>e?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;s<e.length;s++)t[e[s]]=e[s];return t}return e}function ge(e,t){return e?[...new Set([].concat(e,t))]:t}function It(e,t){return e?de(Object.create(null),e,t):t}function wn(e,t){return e?L(e)&&L(t)?[...new Set([...e,...t])]:de(Object.create(null),bn(e),bn(t??{})):t}function dr(e,t){if(!e)return t;if(!t)return e;const s=de(Object.create(null),e);for(const n in t)s[n]=ge(e[n],t[n]);return s}function Ei(){return{app:null,config:{isNativeTag:Bn,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let hr=0;function pr(e,t){return function(n,i=null){k(n)||(n=de({},n)),i!=null&&!z(i)&&(i=null);const l=Ei(),r=new WeakSet,o=[];let c=!1;const h=l.app={_uid:hr++,_component:n,_props:i,_container:null,_context:l,_instance:null,version:Gr,get config(){return l.config},set config(d){},use(d,...g){return r.has(d)||(d&&k(d.install)?(r.add(d),d.install(h,...g)):k(d)&&(r.add(d),d(h,...g))),h},mixin(d){return l.mixins.includes(d)||l.mixins.push(d),h},component(d,g){return g?(l.components[d]=g,h):l.components[d]},directive(d,g){return g?(l.directives[d]=g,h):l.directives[d]},mount(d,g,A){if(!c){const M=h._ceVNode||tt(n,i);return M.appContext=l,A===!0?A="svg":A===!1&&(A=void 0),e(M,d,A),c=!0,h._container=d,d.__vue_app__=h,un(M.component)}},onUnmount(d){o.push(d)},unmount(){c&&(Ie(o,h._instance,16),e(null,h._container),delete h._container.__vue_app__)},provide(d,g){return l.provides[d]=g,h},runWithContext(d){const g=Tt;Tt=h;try{return d()}finally{Tt=g}}};return h}}let Tt=null;const gr=(e,t)=>t==="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;g<d.length;g++){const A=d[g];if(Ai(r,n,A)&&!_s(h,A))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:n===r?!1:n?r?Cn(n,r,h):!0:!!r;return!1}function Cn(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const l=n[i];if(Ai(t,e,l)&&!_s(s,l))return!0}return!1}function Ai(e,t,s){const n=e[s],i=t[s];return s==="style"&&z(n)&&z(i)?!Gs(n,i):n!==i}function xr({vnode:e,parent:t,suspense:s},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=n,e=i),i===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const Pi={},Mi=()=>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=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<d.length;g++){let A=d[g];if(_s(e.emitsOptions,A))continue;const M=t[A];if(c)if(q(l,A))M!==l[A]&&(l[A]=M,h=!0);else{const K=Pe(A);i[K]=Bs(c,o,K,M,e,!1)}else M!==l[A]&&(l[A]=M,h=!0)}}}else{Ii(e,t,i,l)&&(h=!0);let d;for(const g in o)(!t||!q(t,g)&&((d=_t(g))===g||!q(t,d)))&&(c?s&&(s[g]!==void 0||s[d]!==void 0)&&(i[g]=Bs(c,o,g,void 0,e,!0)):delete i[g]);if(l!==o)for(const g in l)(!t||!q(t,g))&&(delete l[g],h=!0)}h&&et(e.attrs,"set","")}function Ii(e,t,s,n){const[i,l]=e.propsOptions;let r=!1,o;if(t)for(let c in t){if(Ft(c))continue;const h=t[c];let d;i&&q(i,d=Pe(c))?!l||!l.includes(d)?s[d]=h:(o||(o={}))[d]=h:_s(e.emitsOptions,c)||(!(c in n)||h!==n[c])&&(n[c]=h,r=!0)}if(l){const c=W(s),h=o||Z;for(let d=0;d<l.length;d++){const g=l[d];s[g]=Bs(i,c,g,h[g],e,!q(h,g))}}return r}function Bs(e,t,s,n,i,l){const r=e[s];if(r!=null){const o=q(r,"default");if(o&&n===void 0){const c=r.default;if(r.type!==Function&&!r.skipFactory&&k(c)){const{propsDefaults:h}=i;if(s in h)n=h[s];else{const d=Gt(i);n=h[s]=c.call(null,t),d()}}else n=c;i.ce&&i.ce._setProp(s,n)}r[0]&&(l&&!o?n=!1:r[1]&&(n===""||n===_t(s))&&(n=!0))}return n}const Cr=new WeakMap;function Di(e,t,s=!1){const n=s?Cr:t.propsCache,i=n.get(e);if(i)return i;const l=e.props,r={},o=[];let c=!1;if(!k(e)){const d=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;d<l.length;d++){const g=Pe(l[d]);Tn(g)&&(r[g]=Z)}else if(l)for(const d in l){const g=Pe(d);if(Tn(g)){const A=l[d],M=r[g]=L(A)||k(A)?{type:A}:de({},A),K=M.type;let P=!1,Q=!0;if(L(K))for(let J=0;J<K.length;++J){const H=K[J],N=k(H)&&H.name;if(N==="Boolean"){P=!0;break}else N==="String"&&(Q=!1)}else P=k(K)&&K.name==="Boolean";M[0]=P,M[1]=Q,(P||q(M,"default"))&&o.push(g)}}const h=[r,o];return z(e)&&n.set(e,h),h}function Tn(e){return e[0]!=="$"&&!Ft(e)}const rn=e=>e==="_"||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;_<x.length;_++)M(u,x[_]);if(m){let _=m.subTree;if(a===_||Hi(_.type)&&(_.ssContent===a||_.ssFallback===a)){const C=m.vnode;Ce(u,C,C.scopeId,C.slotScopeIds,m.parent)}}},De=(u,a,p,x,m,_,C,S,w=0)=>{for(let b=w;b<u.length;b++){const F=u[b]=S?Qe(u[b]):Ke(u[b]);P(null,F,a,p,x,m,_,C,S)}},vt=(u,a,p,x,m,_,C)=>{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<B.length;V++){const U=B[V],v=E[U],re=R[U];(re!==v||U==="value")&&l(S,U,v,re,m,p)}}w&1&&u.children!==a.children&&d(S,a.children)}else!C&&b==null&&ct(S,E,R,p,m);((j=R.onVnodeUpdated)||F)&&be(()=>{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<a.length;S++){const w=u[S],b=a[S],F=w.el&&(w.type===se||!Rt(w,b)||w.shapeFlag&198)?g(w.el):p;P(w,b,F,null,x,m,_,C,!0)}},ct=(u,a,p,x,m)=>{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;R<E;R++){const j=a[R]=w?Qe(a[R]):Ke(a[R]);P(u[R],j,p,null,m,_,C,S,w)}b>F?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=j<F?a[j].el:x;for(;b<=R;)P(null,a[b]=w?Qe(a[b]):Ke(a[b]),p,B,m,_,C,S,w),b++}}else if(b>R)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;b++)Pt[b]=0;for(b=j;b<=E;b++){const ye=u[b];if(v>=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<F?an.el||Ni(an):x;Pt[b]===0?P(null,ke,p,fn,m,_,C,S,w):je&&(U<0||b!==cn[U]?Ye(ke,p,fn,2):U--)}}},Ye=(u,a,p,x,m=null)=>{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;E<w.length;E++)Ye(w[E],a,p,x);n(u.anchor,a,p);return}if(C===Ms){N(u,a,p);return}if(x!==2&&b&1&&S)if(x===0)S.persisted&&!_[Os]?n(_,a,p):(S.beforeEnter(_),n(_,a,p),be(()=>S.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<u.length;C++)Te(u[C],a,p,x,m)},O=u=>{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<n.length;l++){const r=n[l];let o=i[l];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[l]=Qe(i[l]),o.el=r.el),!s&&o.patchFlag!==-2&&Li(r,o)),o.type===vs&&(o.patchFlag===-1&&(o=i[l]=Qe(o)),o.el=r.el),o.type===ut&&!o.el&&(o.el=r.el)}}function Rr(e){const t=e.slice(),s=[0];let n,i,l,r,o;const c=e.length;for(n=0;n<c;n++){const h=e[n];if(h!==0){if(i=s[s.length-1],e[i]<h){t[n]=i,s.push(n);continue}for(l=0,r=s.length-1;l<r;)o=l+r>>1,e[s[o]]<h?l=o+1:r=o;h<e[s[l]]&&(l>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;t<e.length;t++)e[t].flags|=8}function Ni(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ni(t.subTree):null}const Hi=e=>e.__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;s<e.length;s++){const n=e[s];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=Ae([t.class,n.class]));else if(i==="style")t.style=Js([t.style,n.style]);else if(cs(i)){const l=t[i],r=n[i];r&&l!==r&&!(L(l)&&l.includes(r))?t[i]=l?[].concat(l,r):r:r==null&&l==null&&!as(i)&&(t[i]=r)}else i!==""&&(t[i]=n[i])}return t}function Ne(e,t,s,n=null){Ie(e,t,7,[s,n])}const Nr=Ei();let Hr=0;function Br(e,t,s){const n=e.type,i=(t?t.appContext:e.appContext)||Nr,l={uid:Hr++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ul(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Di(n,i),emitsOptions:Oi(n,i),emit:null,emitted:null,propsDefaults:Z,inheritAttrs:n.inheritAttrs,ctx:Z,data:Z,props:Z,attrs:Z,slots:Z,refs:Z,setupState:Z,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return l.ctx={_:l},l.root=t?t.root:l,l.emit=_r.bind(null,l),e.ce&&e.ce(l),l}let ve=null;const Kr=()=>ve||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"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`: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;i<Fn.length;i++){const l=Fn[i]+n;if(l in e)return Rs[t]=l}return t}function lo(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&le(n)&&s===n}const $n="http://www.w3.org/1999/xlink";function jn(e,t,s,n,i,l=rl(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS($n,t.slice(6,t.length)):e.setAttributeNS($n,t,s):s==null||l&&!Gn(s)?e.removeAttribute(t):e.setAttribute(t,l?"":qe(s)?String(s):s)}function Ln(e,t,s,n,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?qi(s):s);return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const o=l==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(o!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let r=!1;if(s===""||s==null){const o=typeof e[t];o==="boolean"?s=Gn(s):s==null&&o==="string"?(s="",r=!0):o==="number"&&(s=0,r=!0)}try{e[t]=s}catch{}r&&e.removeAttribute(i||t)}function ro(e,t,s,n){e.addEventListener(t,s,n)}function oo(e,t,s,n){e.removeEventListener(t,s,n)}const kn=Symbol("_vei");function uo(e,t,s,n,i=null){const l=e[kn]||(e[kn]={}),r=l[t];if(n&&r)r.value=n;else{const[o,c]=fo(t);if(n){const h=l[t]=go(n,i);ro(e,o,h,c)}else r&&(oo(e,o,r,c),l[t]=void 0)}}const co=/(Once|Passive|Capture)$/,ao=/^on:?(?:Once|Passive|Capture)$/;function fo(e){let t,s;for(;(s=e.match(co))&&!ao.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):_t(e.slice(2)),t]}let Is=0;const ho=Promise.resolve(),po=()=>Is||(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;c<r.length&&!n._stopped;c++){const h=r[c];h&&Ie(h,t,5,o)}}else Ie(i,t,5,[n])};return s.value=e,s.attached=po(),s}const Nn=e=>e.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");