From 79d1742c64c99f301b906300d6753b891fe2fa44 Mon Sep 17 00:00:00 2001 From: YokiiroBW Date: Sun, 5 Jul 2026 15:06:02 +0800 Subject: [PATCH] feat: add material upload registration --- frontend/shared/api/endpoints.ts | 1 + frontend/standalone-web/src/App.vue | 74 +++++++++++++++++++ .../{index-OyFsqfnI.js => index-B0NZlmow.js} | 8 +- pages/imagestudio/index.html | 2 +- web/assets/index-BconNihN.js | 17 +++++ web/assets/index-CE_7apqM.js | 17 ----- web/assets/index-Dp0aKiRk.css | 1 + web/assets/index-_0xdAcps.css | 1 - web/index.html | 4 +- 9 files changed, 100 insertions(+), 25 deletions(-) rename pages/imagestudio/assets/{index-OyFsqfnI.js => index-B0NZlmow.js} (85%) create mode 100644 web/assets/index-BconNihN.js delete mode 100644 web/assets/index-CE_7apqM.js create mode 100644 web/assets/index-Dp0aKiRk.css delete mode 100644 web/assets/index-_0xdAcps.css diff --git a/frontend/shared/api/endpoints.ts b/frontend/shared/api/endpoints.ts index 542bca3..be09032 100644 --- a/frontend/shared/api/endpoints.ts +++ b/frontend/shared/api/endpoints.ts @@ -49,6 +49,7 @@ export const endpoints = { materialCategories: "material-categories", materialCategory: (categoryId: string) => `material-categories/${categoryId}`, materials: "materials", + materialUpload: "materials/upload", material: (materialId: string) => `materials/${materialId}`, materialRecognize: (materialId: string) => `materials/${materialId}/recognize`, materialConfirm: (materialId: string) => `materials/${materialId}/confirm`, diff --git a/frontend/standalone-web/src/App.vue b/frontend/standalone-web/src/App.vue index de34f24..6f28d00 100644 --- a/frontend/standalone-web/src/App.vue +++ b/frontend/standalone-web/src/App.vue @@ -84,7 +84,11 @@ const text = { allCategories: "\u5168\u90e8\u5206\u7c7b", materialCreated: "\u7d20\u6750\u5df2\u521b\u5efa", materialUpdated: "\u7d20\u6750\u5df2\u66f4\u65b0", + materialUploaded: "\u7d20\u6750\u5df2\u767b\u8bb0\u4e0a\u4f20", materialArchived: "\u7d20\u6750\u5df2\u5f52\u6863", + upload: "\u4e0a\u4f20\u767b\u8bb0", + filename: "\u6587\u4ef6\u540d", + contentType: "Content-Type", importToWardrobe: "\u52a0\u5165\u8863\u6a71", delete: "\u5220\u9664", wardrobeCategory: "\u8863\u6a71\u5206\u7c7b", @@ -319,6 +323,13 @@ const materialDraft = ref({ prompt: "", negative_prompt: "", }) +const materialUploadDraft = ref({ + display_name: "", + filename: "", + content_type: "image/png", + image_uri: "", + category_id: "", +}) const categoryDraft = ref({ category_id: "", name: "", @@ -1387,6 +1398,34 @@ function editMaterialDraft(material: Material) { } } +function resetMaterialUploadDraft() { + materialUploadDraft.value = { + display_name: "", + filename: "", + content_type: "image/png", + image_uri: "", + category_id: "", + } +} + +function uploadMaterialDraft() { + return runOperation( + text.upload, + async () => { + const material = await postJson(endpoints.materialUpload, { + display_name: materialUploadDraft.value.display_name || undefined, + filename: materialUploadDraft.value.filename || undefined, + content_type: materialUploadDraft.value.content_type || undefined, + image_uri: materialUploadDraft.value.image_uri, + category_id: materialUploadDraft.value.category_id || undefined, + }) + resetMaterialUploadDraft() + lastOperation.value = text.materialUploaded + return material + }, + ) +} + function recognizeMaterial(materialId: string) { return runOperation(text.recognize, () => postJson(endpoints.materialRecognize(materialId))) } @@ -1967,6 +2006,41 @@ function storageRootBytes(uriPrefix: string) {
  • {{ text.emptyMaterials }}
  • +
    + + + + + + + +
    {{ JSON.stringify(signedMedia, null, 2) }}
    diff --git a/pages/imagestudio/assets/index-OyFsqfnI.js b/pages/imagestudio/assets/index-B0NZlmow.js similarity index 85% rename from pages/imagestudio/assets/index-OyFsqfnI.js rename to pages/imagestudio/assets/index-B0NZlmow.js index b15595a..bf6521f 100644 --- a/pages/imagestudio/assets/index-OyFsqfnI.js +++ b/pages/imagestudio/assets/index-B0NZlmow.js @@ -2,16 +2,16 @@ var kr=Object.defineProperty;var qr=(e,t,s)=>t in e?kr(e,t,{enumerable:!0,config * @vue/shared v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function $s(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const k={},nt=[],Ie=()=>{},Ln=()=>!1,Yt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),zt=e=>e.startsWith("onUpdate:"),Q=Object.assign,Fs=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Gr=Object.prototype.hasOwnProperty,L=(e,t)=>Gr.call(e,t),M=Array.isArray,rt=e=>Pt(e)==="[object Map]",Hn=e=>Pt(e)==="[object Set]",rn=e=>Pt(e)==="[object Date]",R=e=>typeof e=="function",Y=e=>typeof e=="string",$e=e=>typeof e=="symbol",B=e=>e!==null&&typeof e=="object",Nn=e=>(B(e)||R(e))&&R(e.then)&&R(e.catch),Bn=Object.prototype.toString,Pt=e=>Bn.call(e),Jr=e=>Pt(e).slice(8,-1),Kn=e=>Pt(e)==="[object Object]",Ds=e=>Y(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_t=$s(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xt=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Yr=/-\w/g,be=Xt(e=>e.replace(Yr,t=>t.slice(1).toUpperCase())),zr=/\B([A-Z])/g,et=Xt(e=>e.replace(zr,"-$1").toLowerCase()),Un=Xt(e=>e.charAt(0).toUpperCase()+e.slice(1)),ls=Xt(e=>e?`on${Un(e)}`:""),Me=(e,t)=>!Object.is(e,t),cs=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Xr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let on;const Zt=()=>on||(on=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function js(e){if(M(e)){const t={};for(let s=0;s{if(s){const n=s.split(Qr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ls(e){let t="";if(Y(e))t=e;else if(M(e))for(let s=0;s!!(e&&e.__v_isRef===!0),oe=e=>Y(e)?e:e==null?"":M(e)||B(e)&&(e.toString===Bn||!R(e.toString))?kn(e)?oe(e.value):JSON.stringify(e,qn,2):String(e),qn=(e,t)=>kn(t)?qn(e,t.value):rt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[fs(n,i)+" =>"]=r,s),{})}:Hn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>fs(s))}:$e(t)?fs(t):B(t)&&!M(t)&&!Kn(t)?String(t):t,fs=(e,t="")=>{var s;return $e(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** +**/function $s(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const k={},nt=[],Ie=()=>{},Ln=()=>!1,Yt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),zt=e=>e.startsWith("onUpdate:"),Q=Object.assign,Fs=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Gr=Object.prototype.hasOwnProperty,L=(e,t)=>Gr.call(e,t),M=Array.isArray,rt=e=>Pt(e)==="[object Map]",Hn=e=>Pt(e)==="[object Set]",rn=e=>Pt(e)==="[object Date]",R=e=>typeof e=="function",Y=e=>typeof e=="string",$e=e=>typeof e=="symbol",B=e=>e!==null&&typeof e=="object",Nn=e=>(B(e)||R(e))&&R(e.then)&&R(e.catch),Bn=Object.prototype.toString,Pt=e=>Bn.call(e),Jr=e=>Pt(e).slice(8,-1),Un=e=>Pt(e)==="[object Object]",Ds=e=>Y(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_t=$s(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xt=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Yr=/-\w/g,be=Xt(e=>e.replace(Yr,t=>t.slice(1).toUpperCase())),zr=/\B([A-Z])/g,et=Xt(e=>e.replace(zr,"-$1").toLowerCase()),Kn=Xt(e=>e.charAt(0).toUpperCase()+e.slice(1)),ls=Xt(e=>e?`on${Kn(e)}`:""),Me=(e,t)=>!Object.is(e,t),cs=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Xr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let on;const Zt=()=>on||(on=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function js(e){if(M(e)){const t={};for(let s=0;s{if(s){const n=s.split(Qr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ls(e){let t="";if(Y(e))t=e;else if(M(e))for(let s=0;s!!(e&&e.__v_isRef===!0),oe=e=>Y(e)?e:e==null?"":M(e)||B(e)&&(e.toString===Bn||!R(e.toString))?kn(e)?oe(e.value):JSON.stringify(e,qn,2):String(e),qn=(e,t)=>kn(t)?qn(e,t.value):rt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[fs(n,i)+" =>"]=r,s),{})}:Hn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>fs(s))}:$e(t)?fs(t):B(t)&&!M(t)&&!Un(t)?String(t):t,fs=(e,t="")=>{var s;return $e(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 Z;class ii{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&&Z&&(Z.active?(this.parent=Z,this.index=(Z.scopes||(Z.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(Z===this)Z=this.prevScope;else{let t=Z;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(yt){let t=yt;for(yt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;bt;){let t=bt;for(bt=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 zn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xn(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),Ks(n),li(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function xs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zn(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zn(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ct)||(e.globalVersion=Ct,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xs(e))))return;e.flags|=2;const t=e.dep,s=W,n=ye;W=e,ye=!0;try{zn(e);const r=e.fn(e._value);(t.version===0||Me(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{W=s,ye=n,Xn(e),e.flags&=-3}}function Ks(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)Ks(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function li(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let ye=!0;const Qn=[];function Fe(){Qn.push(ye),ye=!1}function De(){const e=Qn.pop();ye=e===void 0?!0:e}function ln(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=W;W=void 0;try{t()}finally{W=s}}}let Ct=0;class ci{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 Us{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(!W||!ye||W===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==W)s=this.activeLink=new ci(W,this),W.deps?(s.prevDep=W.depsTail,W.depsTail.nextDep=s,W.depsTail=s):W.deps=W.depsTail=s,er(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=W.depsTail,s.nextDep=void 0,W.depsTail.nextDep=s,W.depsTail=s,W.deps===s&&(W.deps=n)}return s}trigger(t){this.version++,Ct++,this.notify(t)}notify(t){Ns();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Bs()}}}function er(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)er(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const ws=new WeakMap,Ze=Symbol(""),Ss=Symbol(""),Tt=Symbol("");function ee(e,t,s){if(ye&&W){let n=ws.get(e);n||ws.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new Us),r.map=n,r.key=s),r.track()}}function Ne(e,t,s,n,r,i){const o=ws.get(e);if(!o){Ct++;return}const l=f=>{f&&f.trigger()};if(Ns(),t==="clear")o.forEach(l);else{const f=M(e),d=f&&Ds(s);if(f&&s==="length"){const a=Number(n);o.forEach((p,S)=>{(S==="length"||S===Tt||!$e(S)&&S>=a)&&l(p)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),d&&l(o.get(Tt)),t){case"add":f?d&&l(o.get("length")):(l(o.get(Ze)),rt(e)&&l(o.get(Ss)));break;case"delete":f||(l(o.get(Ze)),rt(e)&&l(o.get(Ss)));break;case"set":rt(e)&&l(o.get(Ze));break}}Bs()}function tt(e){const t=j(e);return t===e?t:(ee(t,"iterate",Tt),pe(e)?t:t.map(ve))}function Qt(e){return ee(e=j(e),"iterate",Tt),e}function Ae(e,t){return Ke(e)?lt(Qe(e)?ve(t):t):ve(t)}const fi={__proto__:null,[Symbol.iterator](){return as(this,Symbol.iterator,e=>Ae(this,e))},concat(...e){return tt(this).concat(...e.map(t=>M(t)?tt(t):t))},entries(){return as(this,"entries",e=>(e[1]=Ae(this,e[1]),e))},every(e,t){return je(this,"every",e,t,void 0,arguments)},filter(e,t){return je(this,"filter",e,t,s=>s.map(n=>Ae(this,n)),arguments)},find(e,t){return je(this,"find",e,t,s=>Ae(this,s),arguments)},findIndex(e,t){return je(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return je(this,"findLast",e,t,s=>Ae(this,s),arguments)},findLastIndex(e,t){return je(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return je(this,"forEach",e,t,void 0,arguments)},includes(...e){return ds(this,"includes",e)},indexOf(...e){return ds(this,"indexOf",e)},join(e){return tt(this).join(e)},lastIndexOf(...e){return ds(this,"lastIndexOf",e)},map(e,t){return je(this,"map",e,t,void 0,arguments)},pop(){return ht(this,"pop")},push(...e){return ht(this,"push",e)},reduce(e,...t){return cn(this,"reduce",e,t)},reduceRight(e,...t){return cn(this,"reduceRight",e,t)},shift(){return ht(this,"shift")},some(e,t){return je(this,"some",e,t,void 0,arguments)},splice(...e){return ht(this,"splice",e)},toReversed(){return tt(this).toReversed()},toSorted(e){return tt(this).toSorted(e)},toSpliced(...e){return tt(this).toSpliced(...e)},unshift(...e){return ht(this,"unshift",e)},values(){return as(this,"values",e=>Ae(this,e))}};function as(e,t,s){const n=Qt(e),r=n[t]();return n!==e&&!pe(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=s(i.value)),i}),r}const ui=Array.prototype;function je(e,t,s,n,r,i){const o=Qt(e),l=o!==e&&!pe(e),f=o[t];if(f!==ui[t]){const p=f.apply(e,i);return l?ve(p):p}let d=s;o!==e&&(l?d=function(p,S){return s.call(this,Ae(e,p),S,e)}:s.length>2&&(d=function(p,S){return s.call(this,p,S,e)}));const a=f.call(o,d,n);return l&&r?r(a):a}function cn(e,t,s,n){const r=Qt(e),i=r!==e&&!pe(e);let o=s,l=!1;r!==e&&(i?(l=n.length===0,o=function(d,a,p){return l&&(l=!1,d=Ae(e,d)),s.call(this,d,Ae(e,a),p,e)}):s.length>3&&(o=function(d,a,p){return s.call(this,d,a,p,e)}));const f=r[t](o,...n);return l?Ae(e,f):f}function ds(e,t,s){const n=j(e);ee(n,"iterate",Tt);const r=n[t](...s);return(r===-1||r===!1)&&qs(s[0])?(s[0]=j(s[0]),n[t](...s)):r}function ht(e,t,s=[]){Fe(),Ns();const n=j(e)[t].apply(e,s);return Bs(),De(),n}const ai=$s("__proto__,__v_isRef,__isVue"),tr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($e));function di(e){$e(e)||(e=String(e));const t=j(this);return ee(t,"has",e),t.hasOwnProperty(e)}class sr{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(r?i?wi:or:i?ir:rr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=M(t);if(!r){let f;if(o&&(f=fi[s]))return f;if(s==="hasOwnProperty")return di}const l=Reflect.get(t,s,te(t)?t:n);if(($e(s)?tr.has(s):ai(s))||(r||ee(t,"get",s),i))return l;if(te(l)){const f=o&&Ds(s)?l:l.value;return r&&B(f)?Ts(f):f}return B(l)?r?Ts(l):Ws(l):l}}class nr extends sr{constructor(t=!1){super(!1,t)}set(t,s,n,r){let i=t[s];const o=M(t)&&Ds(s);if(!this._isShallow){const d=Ke(i);if(!pe(n)&&!Ke(n)&&(i=j(i),n=j(n)),!o&&te(i)&&!te(n))return d||(i.value=n),!0}const l=o?Number(s)e,jt=e=>Reflect.getPrototypeOf(e);function _i(e,t,s){return function(...n){const r=this.__v_raw,i=j(r),o=rt(i),l=e==="entries"||e===Symbol.iterator&&o,f=e==="keys"&&o,d=r[e](...n),a=s?Cs:t?lt:ve;return!t&&ee(i,"iterate",f?Ss:Ze),Q(Object.create(d),{next(){const{value:p,done:S}=d.next();return S?{value:p,done:S}:{value:l?[a(p[0]),a(p[1])]:a(p),done:S}}})}}function Lt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function bi(e,t){const s={get(r){const i=this.__v_raw,o=j(i),l=j(r);e||(Me(r,l)&&ee(o,"get",r),ee(o,"get",l));const{has:f}=jt(o),d=t?Cs:e?lt:ve;if(f.call(o,r))return d(i.get(r));if(f.call(o,l))return d(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&ee(j(r),"iterate",Ze),r.size},has(r){const i=this.__v_raw,o=j(i),l=j(r);return e||(Me(r,l)&&ee(o,"has",r),ee(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,f=j(l),d=t?Cs:e?lt:ve;return!e&&ee(f,"iterate",Ze),l.forEach((a,p)=>r.call(i,d(a),d(p),o))}};return Q(s,e?{add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear")}:{add(r){const i=j(this),o=jt(i),l=j(r),f=!t&&!pe(r)&&!Ke(r)?l:r;return o.has.call(i,f)||Me(r,f)&&o.has.call(i,r)||Me(l,f)&&o.has.call(i,l)||(i.add(f),Ne(i,"add",f,f)),this},set(r,i){!t&&!pe(i)&&!Ke(i)&&(i=j(i));const o=j(this),{has:l,get:f}=jt(o);let d=l.call(o,r);d||(r=j(r),d=l.call(o,r));const a=f.call(o,r);return o.set(r,i),d?Me(i,a)&&Ne(o,"set",r,i):Ne(o,"add",r,i),this},delete(r){const i=j(this),{has:o,get:l}=jt(i);let f=o.call(i,r);f||(r=j(r),f=o.call(i,r)),l&&l.call(i,r);const d=i.delete(r);return f&&Ne(i,"delete",r,void 0),d},clear(){const r=j(this),i=r.size!==0,o=r.clear();return i&&Ne(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=_i(r,e,t)}),s}function Vs(e,t){const s=bi(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(L(s,r)&&r in n?s:n,r,i)}const yi={get:Vs(!1,!1)},vi={get:Vs(!1,!0)},xi={get:Vs(!0,!1)};const rr=new WeakMap,ir=new WeakMap,or=new WeakMap,wi=new WeakMap;function Si(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ws(e){return Ke(e)?e:ks(e,!1,pi,yi,rr)}function Ci(e){return ks(e,!1,mi,vi,ir)}function Ts(e){return ks(e,!0,gi,xi,or)}function ks(e,t,s,n,r){if(!B(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=r.get(e);if(i)return i;const o=Si(Jr(e));if(o===0)return e;const l=new Proxy(e,o===2?n:s);return r.set(e,l),l}function Qe(e){return Ke(e)?Qe(e.__v_raw):!!(e&&e.__v_isReactive)}function Ke(e){return!!(e&&e.__v_isReadonly)}function pe(e){return!!(e&&e.__v_isShallow)}function qs(e){return e?!!e.__v_raw:!1}function j(e){const t=e&&e.__v_raw;return t?j(t):e}function Ti(e){return!L(e,"__v_skip")&&Object.isExtensible(e)&&Vn(e,"__v_skip",!0),e}const ve=e=>B(e)?Ws(e):e,lt=e=>B(e)?Ts(e):e;function te(e){return e?e.__v_isRef===!0:!1}function Ht(e){return Ei(e,!1)}function Ei(e,t){return te(e)?e:new Oi(e,t)}class Oi{constructor(t,s){this.dep=new Us,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:j(t),this._value=s?t:ve(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||pe(t)||Ke(t);t=n?t:j(t),Me(t,s)&&(this._rawValue=t,this._value=n?t:ve(t),this.dep.trigger())}}function Ai(e){return te(e)?e.value:e}const Pi={get:(e,t,s)=>t==="__v_raw"?e:Ai(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return te(r)&&!te(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function lr(e){return Qe(e)?e:new Proxy(e,Pi)}class Mi{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Us(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ct-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&W!==this)return Yn(this,!0),!0}get value(){const t=this.dep.track();return Zn(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ri(e,t,s=!1){let n,r;return R(e)?n=e:(n=e.get,r=e.set),new Mi(n,r,s)}const Nt={},Ut=new WeakMap;let Xe;function Ii(e,t=!1,s=Xe){if(s){let n=Ut.get(s);n||Ut.set(s,n=[]),n.push(e)}}function $i(e,t,s=k){const{immediate:n,deep:r,once:i,scheduler:o,augmentJob:l,call:f}=s,d=O=>r?O:pe(O)||r===!1||r===0?We(O,1):We(O);let a,p,S,C,D=!1,A=!1;if(te(e)?(p=()=>e.value,D=pe(e)):Qe(e)?(p=()=>d(e),D=!0):M(e)?(A=!0,D=e.some(O=>Qe(O)||pe(O)),p=()=>e.map(O=>{if(te(O))return O.value;if(Qe(O))return d(O);if(R(O))return f?f(O,2):O()})):R(e)?t?p=f?()=>f(e,2):e:p=()=>{if(S){Fe();try{S()}finally{De()}}const O=Xe;Xe=a;try{return f?f(e,3,[C]):e(C)}finally{Xe=O}}:p=Ie,t&&r){const O=p,J=r===!0?1/0:r;p=()=>We(O(),J)}const q=oi(),K=()=>{a.stop(),q&&q.active&&Fs(q.effects,a)};if(i&&t){const O=t;t=(...J)=>{const ce=O(...J);return K(),ce}}let I=A?new Array(e.length).fill(Nt):Nt;const H=O=>{if(!(!(a.flags&1)||!a.dirty&&!O))if(t){const J=a.run();if(O||r||D||(A?J.some((ce,fe)=>Me(ce,I[fe])):Me(J,I))){S&&S();const ce=Xe;Xe=a;try{const fe=[J,I===Nt?void 0:A&&I[0]===Nt?[]:I,C];I=J,f?f(t,3,fe):t(...fe)}finally{Xe=ce}}}else a.run()};return l&&l(H),a=new Gn(p),a.scheduler=o?()=>o(H,!1):H,C=O=>Ii(O,!1,a),S=a.onStop=()=>{const O=Ut.get(a);if(O){if(f)f(O,4);else for(const J of O)J();Ut.delete(a)}},t?n?H(!0):I=a.run():o?o(H.bind(null,!0),!0):a.run(),K.pause=a.pause.bind(a),K.resume=a.resume.bind(a),K.stop=K,K}function We(e,t=1/0,s){if(t<=0||!B(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,te(e))We(e.value,t,s);else if(M(e))for(let n=0;n{We(n,t,s)});else if(Kn(e)){for(const n in e)We(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&We(e[n],t,s)}return e}/** +**/let Z;class ii{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&&Z&&(Z.active?(this.parent=Z,this.index=(Z.scopes||(Z.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(Z===this)Z=this.prevScope;else{let t=Z;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(yt){let t=yt;for(yt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;bt;){let t=bt;for(bt=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 zn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xn(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),Us(n),li(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function xs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zn(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zn(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ct)||(e.globalVersion=Ct,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xs(e))))return;e.flags|=2;const t=e.dep,s=W,n=ye;W=e,ye=!0;try{zn(e);const r=e.fn(e._value);(t.version===0||Me(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{W=s,ye=n,Xn(e),e.flags&=-3}}function Us(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)Us(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function li(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let ye=!0;const Qn=[];function Fe(){Qn.push(ye),ye=!1}function De(){const e=Qn.pop();ye=e===void 0?!0:e}function ln(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=W;W=void 0;try{t()}finally{W=s}}}let Ct=0;class ci{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 Ks{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(!W||!ye||W===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==W)s=this.activeLink=new ci(W,this),W.deps?(s.prevDep=W.depsTail,W.depsTail.nextDep=s,W.depsTail=s):W.deps=W.depsTail=s,er(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=W.depsTail,s.nextDep=void 0,W.depsTail.nextDep=s,W.depsTail=s,W.deps===s&&(W.deps=n)}return s}trigger(t){this.version++,Ct++,this.notify(t)}notify(t){Ns();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Bs()}}}function er(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)er(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const ws=new WeakMap,Ze=Symbol(""),Ss=Symbol(""),Tt=Symbol("");function ee(e,t,s){if(ye&&W){let n=ws.get(e);n||ws.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new Ks),r.map=n,r.key=s),r.track()}}function Ne(e,t,s,n,r,i){const o=ws.get(e);if(!o){Ct++;return}const l=f=>{f&&f.trigger()};if(Ns(),t==="clear")o.forEach(l);else{const f=M(e),d=f&&Ds(s);if(f&&s==="length"){const a=Number(n);o.forEach((p,S)=>{(S==="length"||S===Tt||!$e(S)&&S>=a)&&l(p)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),d&&l(o.get(Tt)),t){case"add":f?d&&l(o.get("length")):(l(o.get(Ze)),rt(e)&&l(o.get(Ss)));break;case"delete":f||(l(o.get(Ze)),rt(e)&&l(o.get(Ss)));break;case"set":rt(e)&&l(o.get(Ze));break}}Bs()}function tt(e){const t=j(e);return t===e?t:(ee(t,"iterate",Tt),pe(e)?t:t.map(ve))}function Qt(e){return ee(e=j(e),"iterate",Tt),e}function Ae(e,t){return Ue(e)?lt(Qe(e)?ve(t):t):ve(t)}const fi={__proto__:null,[Symbol.iterator](){return as(this,Symbol.iterator,e=>Ae(this,e))},concat(...e){return tt(this).concat(...e.map(t=>M(t)?tt(t):t))},entries(){return as(this,"entries",e=>(e[1]=Ae(this,e[1]),e))},every(e,t){return je(this,"every",e,t,void 0,arguments)},filter(e,t){return je(this,"filter",e,t,s=>s.map(n=>Ae(this,n)),arguments)},find(e,t){return je(this,"find",e,t,s=>Ae(this,s),arguments)},findIndex(e,t){return je(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return je(this,"findLast",e,t,s=>Ae(this,s),arguments)},findLastIndex(e,t){return je(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return je(this,"forEach",e,t,void 0,arguments)},includes(...e){return ds(this,"includes",e)},indexOf(...e){return ds(this,"indexOf",e)},join(e){return tt(this).join(e)},lastIndexOf(...e){return ds(this,"lastIndexOf",e)},map(e,t){return je(this,"map",e,t,void 0,arguments)},pop(){return ht(this,"pop")},push(...e){return ht(this,"push",e)},reduce(e,...t){return cn(this,"reduce",e,t)},reduceRight(e,...t){return cn(this,"reduceRight",e,t)},shift(){return ht(this,"shift")},some(e,t){return je(this,"some",e,t,void 0,arguments)},splice(...e){return ht(this,"splice",e)},toReversed(){return tt(this).toReversed()},toSorted(e){return tt(this).toSorted(e)},toSpliced(...e){return tt(this).toSpliced(...e)},unshift(...e){return ht(this,"unshift",e)},values(){return as(this,"values",e=>Ae(this,e))}};function as(e,t,s){const n=Qt(e),r=n[t]();return n!==e&&!pe(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=s(i.value)),i}),r}const ui=Array.prototype;function je(e,t,s,n,r,i){const o=Qt(e),l=o!==e&&!pe(e),f=o[t];if(f!==ui[t]){const p=f.apply(e,i);return l?ve(p):p}let d=s;o!==e&&(l?d=function(p,S){return s.call(this,Ae(e,p),S,e)}:s.length>2&&(d=function(p,S){return s.call(this,p,S,e)}));const a=f.call(o,d,n);return l&&r?r(a):a}function cn(e,t,s,n){const r=Qt(e),i=r!==e&&!pe(e);let o=s,l=!1;r!==e&&(i?(l=n.length===0,o=function(d,a,p){return l&&(l=!1,d=Ae(e,d)),s.call(this,d,Ae(e,a),p,e)}):s.length>3&&(o=function(d,a,p){return s.call(this,d,a,p,e)}));const f=r[t](o,...n);return l?Ae(e,f):f}function ds(e,t,s){const n=j(e);ee(n,"iterate",Tt);const r=n[t](...s);return(r===-1||r===!1)&&qs(s[0])?(s[0]=j(s[0]),n[t](...s)):r}function ht(e,t,s=[]){Fe(),Ns();const n=j(e)[t].apply(e,s);return Bs(),De(),n}const ai=$s("__proto__,__v_isRef,__isVue"),tr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($e));function di(e){$e(e)||(e=String(e));const t=j(this);return ee(t,"has",e),t.hasOwnProperty(e)}class sr{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(r?i?wi:or:i?ir:rr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=M(t);if(!r){let f;if(o&&(f=fi[s]))return f;if(s==="hasOwnProperty")return di}const l=Reflect.get(t,s,te(t)?t:n);if(($e(s)?tr.has(s):ai(s))||(r||ee(t,"get",s),i))return l;if(te(l)){const f=o&&Ds(s)?l:l.value;return r&&B(f)?Ts(f):f}return B(l)?r?Ts(l):Ws(l):l}}class nr extends sr{constructor(t=!1){super(!1,t)}set(t,s,n,r){let i=t[s];const o=M(t)&&Ds(s);if(!this._isShallow){const d=Ue(i);if(!pe(n)&&!Ue(n)&&(i=j(i),n=j(n)),!o&&te(i)&&!te(n))return d||(i.value=n),!0}const l=o?Number(s)e,jt=e=>Reflect.getPrototypeOf(e);function _i(e,t,s){return function(...n){const r=this.__v_raw,i=j(r),o=rt(i),l=e==="entries"||e===Symbol.iterator&&o,f=e==="keys"&&o,d=r[e](...n),a=s?Cs:t?lt:ve;return!t&&ee(i,"iterate",f?Ss:Ze),Q(Object.create(d),{next(){const{value:p,done:S}=d.next();return S?{value:p,done:S}:{value:l?[a(p[0]),a(p[1])]:a(p),done:S}}})}}function Lt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function bi(e,t){const s={get(r){const i=this.__v_raw,o=j(i),l=j(r);e||(Me(r,l)&&ee(o,"get",r),ee(o,"get",l));const{has:f}=jt(o),d=t?Cs:e?lt:ve;if(f.call(o,r))return d(i.get(r));if(f.call(o,l))return d(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&ee(j(r),"iterate",Ze),r.size},has(r){const i=this.__v_raw,o=j(i),l=j(r);return e||(Me(r,l)&&ee(o,"has",r),ee(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,f=j(l),d=t?Cs:e?lt:ve;return!e&&ee(f,"iterate",Ze),l.forEach((a,p)=>r.call(i,d(a),d(p),o))}};return Q(s,e?{add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear")}:{add(r){const i=j(this),o=jt(i),l=j(r),f=!t&&!pe(r)&&!Ue(r)?l:r;return o.has.call(i,f)||Me(r,f)&&o.has.call(i,r)||Me(l,f)&&o.has.call(i,l)||(i.add(f),Ne(i,"add",f,f)),this},set(r,i){!t&&!pe(i)&&!Ue(i)&&(i=j(i));const o=j(this),{has:l,get:f}=jt(o);let d=l.call(o,r);d||(r=j(r),d=l.call(o,r));const a=f.call(o,r);return o.set(r,i),d?Me(i,a)&&Ne(o,"set",r,i):Ne(o,"add",r,i),this},delete(r){const i=j(this),{has:o,get:l}=jt(i);let f=o.call(i,r);f||(r=j(r),f=o.call(i,r)),l&&l.call(i,r);const d=i.delete(r);return f&&Ne(i,"delete",r,void 0),d},clear(){const r=j(this),i=r.size!==0,o=r.clear();return i&&Ne(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=_i(r,e,t)}),s}function Vs(e,t){const s=bi(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(L(s,r)&&r in n?s:n,r,i)}const yi={get:Vs(!1,!1)},vi={get:Vs(!1,!0)},xi={get:Vs(!0,!1)};const rr=new WeakMap,ir=new WeakMap,or=new WeakMap,wi=new WeakMap;function Si(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ws(e){return Ue(e)?e:ks(e,!1,pi,yi,rr)}function Ci(e){return ks(e,!1,mi,vi,ir)}function Ts(e){return ks(e,!0,gi,xi,or)}function ks(e,t,s,n,r){if(!B(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=r.get(e);if(i)return i;const o=Si(Jr(e));if(o===0)return e;const l=new Proxy(e,o===2?n:s);return r.set(e,l),l}function Qe(e){return Ue(e)?Qe(e.__v_raw):!!(e&&e.__v_isReactive)}function Ue(e){return!!(e&&e.__v_isReadonly)}function pe(e){return!!(e&&e.__v_isShallow)}function qs(e){return e?!!e.__v_raw:!1}function j(e){const t=e&&e.__v_raw;return t?j(t):e}function Ti(e){return!L(e,"__v_skip")&&Object.isExtensible(e)&&Vn(e,"__v_skip",!0),e}const ve=e=>B(e)?Ws(e):e,lt=e=>B(e)?Ts(e):e;function te(e){return e?e.__v_isRef===!0:!1}function Ht(e){return Ei(e,!1)}function Ei(e,t){return te(e)?e:new Oi(e,t)}class Oi{constructor(t,s){this.dep=new Ks,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:j(t),this._value=s?t:ve(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||pe(t)||Ue(t);t=n?t:j(t),Me(t,s)&&(this._rawValue=t,this._value=n?t:ve(t),this.dep.trigger())}}function Ai(e){return te(e)?e.value:e}const Pi={get:(e,t,s)=>t==="__v_raw"?e:Ai(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return te(r)&&!te(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function lr(e){return Qe(e)?e:new Proxy(e,Pi)}class Mi{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Ks(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ct-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&W!==this)return Yn(this,!0),!0}get value(){const t=this.dep.track();return Zn(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ri(e,t,s=!1){let n,r;return R(e)?n=e:(n=e.get,r=e.set),new Mi(n,r,s)}const Nt={},Kt=new WeakMap;let Xe;function Ii(e,t=!1,s=Xe){if(s){let n=Kt.get(s);n||Kt.set(s,n=[]),n.push(e)}}function $i(e,t,s=k){const{immediate:n,deep:r,once:i,scheduler:o,augmentJob:l,call:f}=s,d=O=>r?O:pe(O)||r===!1||r===0?We(O,1):We(O);let a,p,S,C,D=!1,A=!1;if(te(e)?(p=()=>e.value,D=pe(e)):Qe(e)?(p=()=>d(e),D=!0):M(e)?(A=!0,D=e.some(O=>Qe(O)||pe(O)),p=()=>e.map(O=>{if(te(O))return O.value;if(Qe(O))return d(O);if(R(O))return f?f(O,2):O()})):R(e)?t?p=f?()=>f(e,2):e:p=()=>{if(S){Fe();try{S()}finally{De()}}const O=Xe;Xe=a;try{return f?f(e,3,[C]):e(C)}finally{Xe=O}}:p=Ie,t&&r){const O=p,J=r===!0?1/0:r;p=()=>We(O(),J)}const q=oi(),U=()=>{a.stop(),q&&q.active&&Fs(q.effects,a)};if(i&&t){const O=t;t=(...J)=>{const ce=O(...J);return U(),ce}}let I=A?new Array(e.length).fill(Nt):Nt;const H=O=>{if(!(!(a.flags&1)||!a.dirty&&!O))if(t){const J=a.run();if(O||r||D||(A?J.some((ce,fe)=>Me(ce,I[fe])):Me(J,I))){S&&S();const ce=Xe;Xe=a;try{const fe=[J,I===Nt?void 0:A&&I[0]===Nt?[]:I,C];I=J,f?f(t,3,fe):t(...fe)}finally{Xe=ce}}}else a.run()};return l&&l(H),a=new Gn(p),a.scheduler=o?()=>o(H,!1):H,C=O=>Ii(O,!1,a),S=a.onStop=()=>{const O=Kt.get(a);if(O){if(f)f(O,4);else for(const J of O)J();Kt.delete(a)}},t?n?H(!0):I=a.run():o?o(H.bind(null,!0),!0):a.run(),U.pause=a.pause.bind(a),U.resume=a.resume.bind(a),U.stop=U,U}function We(e,t=1/0,s){if(t<=0||!B(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,te(e))We(e.value,t,s);else if(M(e))for(let n=0;n{We(n,t,s)});else if(Un(e)){for(const n in e)We(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&We(e[n],t,s)}return e}/** * @vue/runtime-core v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Mt(e,t,s,n){try{return n?e(...n):e()}catch(r){es(r,t,s)}}function xe(e,t,s,n){if(R(e)){const r=Mt(e,t,s,n);return r&&Nn(r)&&r.catch(i=>{es(i,t,s)}),r}if(M(e)){const r=[];for(let i=0;i>>1,r=re[n],i=Et(r);i=Et(s)?re.push(e):re.splice(ji(t),0,e),e.flags|=1,fr()}}function fr(){Vt||(Vt=cr.then(ar))}function Li(e){M(e)?it.push(...e):Ve&&e.id===-1?Ve.splice(st+1,0,e):e.flags&1||(it.push(e),e.flags|=1),fr()}function fn(e,t,s=Oe+1){for(;sEt(s)-Et(n));if(it.length=0,Ve){Ve.push(...t);return}for(Ve=t,st=0;ste.id==null?e.flags&2?-1:1/0:e.id;function ar(e){try{for(Oe=0;Oe{n._d&&xn(-1);const i=Wt(t);let o;try{o=e(...r)}finally{Wt(i),n._d&&xn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Ye(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o1)return s&&R(t)?t.call(n&&n.proxy):t}}const Bi=Symbol.for("v-scx"),Ki=()=>Bt(Bi);function hs(e,t,s){return hr(e,t,s)}function hr(e,t,s=k){const{immediate:n,deep:r,flush:i,once:o}=s,l=Q({},s),f=t&&n||!t&&i!=="post";let d;if(At){if(i==="sync"){const C=Ki();d=C.__watcherHandles||(C.__watcherHandles=[])}else if(!f){const C=()=>{};return C.stop=Ie,C.resume=Ie,C.pause=Ie,C}}const a=ie;l.call=(C,D,A)=>xe(C,a,D,A);let p=!1;i==="post"?l.scheduler=C=>{le(C,a&&a.suspense)}:i!=="sync"&&(p=!0,l.scheduler=(C,D)=>{D?C():Gs(C)}),l.augmentJob=C=>{t&&(C.flags|=4),p&&(C.flags|=2,a&&(C.id=a.uid,C.i=a))};const S=$i(e,t,l);return At&&(d?d.push(S):f&&S()),S}function Ui(e,t,s){const n=this.proxy,r=Y(e)?e.includes(".")?pr(n,e):()=>n[e]:e.bind(n,n);let i;R(t)?i=t:(i=t.handler,s=t);const o=Rt(this),l=hr(r,i.bind(n),s);return o(),l}function pr(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;re.__isTeleport,ps=Symbol("_leaveCb");function Js(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Js(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 ki(e,t){return R(e)?Q({name:e.name},t,{setup:e}):e}function gr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function un(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const kt=new WeakMap;function vt(e,t,s,n,r=!1){if(M(e)){e.forEach((A,q)=>vt(A,t&&(M(t)?t[q]:t),s,n,r));return}if(xt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&vt(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?Xs(n.component):n.el,o=r?null:i,{i:l,r:f}=e,d=t&&t.r,a=l.refs===k?l.refs={}:l.refs,p=l.setupState,S=j(p),C=p===k?Ln:A=>un(a,A)?!1:L(S,A),D=(A,q)=>!(q&&un(a,q));if(d!=null&&d!==f){if(an(t),Y(d))a[d]=null,C(d)&&(p[d]=null);else if(te(d)){const A=t;D(d,A.k)&&(d.value=null),A.k&&(a[A.k]=null)}}if(R(f)){Fe();try{Mt(f,l,12,[o,a])}finally{De()}}else{const A=Y(f),q=te(f);if(A||q){const K=()=>{if(e.f){const I=A?C(f)?p[f]:a[f]:D()||!e.k?f.value:a[e.k];if(r)M(I)&&Fs(I,i);else if(M(I))I.includes(i)||I.push(i);else if(A)a[f]=[i],C(f)&&(p[f]=a[f]);else{const H=[i];D(f,e.k)&&(f.value=H),e.k&&(a[e.k]=H)}}else A?(a[f]=o,C(f)&&(p[f]=o)):q&&(D(f,e.k)&&(f.value=o),e.k&&(a[e.k]=o))};if(o){const I=()=>{K(),kt.delete(e)};I.id=-1,kt.set(e,I),le(I,s)}else an(e),K()}}}function an(e){const t=kt.get(e);t&&(t.flags|=8,kt.delete(e))}Zt().requestIdleCallback;Zt().cancelIdleCallback;const xt=e=>!!e.type.__asyncLoader,mr=e=>e.type.__isKeepAlive;function qi(e,t){_r(e,"a",t)}function Gi(e,t){_r(e,"da",t)}function _r(e,t,s=ie){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ts(t,n,s),s){let r=s.parent;for(;r&&r.parent;)mr(r.parent.vnode)&&Ji(n,t,s,r),r=r.parent}}function Ji(e,t,s,n){const r=ts(t,e,n,!0);yr(()=>{Fs(n[t],r)},s)}function ts(e,t,s=ie,n=!1){if(s){const r=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Fe();const l=Rt(s),f=xe(t,s,e,o);return l(),De(),f});return n?r.unshift(i):r.push(i),i}}const Ue=e=>(t,s=ie)=>{(!At||e==="sp")&&ts(e,(...n)=>t(...n),s)},Yi=Ue("bm"),br=Ue("m"),zi=Ue("bu"),Xi=Ue("u"),Zi=Ue("bum"),yr=Ue("um"),Qi=Ue("sp"),eo=Ue("rtg"),to=Ue("rtc");function so(e,t=ie){ts("ec",e,t)}const no=Symbol.for("v-ndc");function dn(e,t,s,n){let r;const i=s,o=M(e);if(o||Y(e)){const l=o&&Qe(e);let f=!1,d=!1;l&&(f=!pe(e),d=Ke(e),e=Qt(e)),r=new Array(e.length);for(let a=0,p=e.length;at(l,f,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let f=0,d=l.length;fe?Br(e)?Xs(e):Es(e.parent):null,wt=Q(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=>Es(e.parent),$root:e=>Es(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xr(e),$forceUpdate:e=>e.f||(e.f=()=>{Gs(e.update)}),$nextTick:e=>e.n||(e.n=Di.bind(e.proxy)),$watch:e=>Ui.bind(e)}),gs=(e,t)=>e!==k&&!e.__isScriptSetup&&L(e,t),ro={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:o,type:l,appContext:f}=e;if(t[0]!=="$"){const S=o[t];if(S!==void 0)switch(S){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(gs(n,t))return o[t]=1,n[t];if(r!==k&&L(r,t))return o[t]=2,r[t];if(L(i,t))return o[t]=3,i[t];if(s!==k&&L(s,t))return o[t]=4,s[t];Os&&(o[t]=0)}}const d=wt[t];let a,p;if(d)return t==="$attrs"&&ee(e.attrs,"get",""),d(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(s!==k&&L(s,t))return o[t]=4,s[t];if(p=f.config.globalProperties,L(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:i}=e;return gs(r,t)?(r[t]=s,!0):n!==k&&L(n,t)?(n[t]=s,!0):L(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,props:i,type:o}},l){let f;return!!(s[l]||e!==k&&l[0]!=="$"&&L(e,l)||gs(t,l)||L(i,l)||L(n,l)||L(wt,l)||L(r.config.globalProperties,l)||(f=o.__cssModules)&&f[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:L(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function hn(e){return M(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Os=!0;function io(e){const t=xr(e),s=e.proxy,n=e.ctx;Os=!1,t.beforeCreate&&pn(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:f,inject:d,created:a,beforeMount:p,mounted:S,beforeUpdate:C,updated:D,activated:A,deactivated:q,beforeDestroy:K,beforeUnmount:I,destroyed:H,unmounted:O,render:J,renderTracked:ce,renderTriggered:fe,errorCaptured:ge,serverPrefetch:de,expose:qe,inheritAttrs:ft,components:It,directives:$t,filters:rs}=t;if(d&&oo(d,n,null),o)for(const G in o){const V=o[G];R(V)&&(n[G]=V.bind(s))}if(r){const G=r.call(s,s);B(G)&&(e.data=Ws(G))}if(Os=!0,i)for(const G in i){const V=i[G],Ge=R(V)?V.bind(s,s):R(V.get)?V.get.bind(s,s):Ie,Ft=!R(V)&&R(V.set)?V.set.bind(s):Ie,Je=Rs({get:Ge,set:Ft});Object.defineProperty(n,G,{enumerable:!0,configurable:!0,get:()=>Je.value,set:we=>Je.value=we})}if(l)for(const G in l)vr(l[G],n,s,G);if(f){const G=R(f)?f.call(s):f;Reflect.ownKeys(G).forEach(V=>{Ni(V,G[V])})}a&&pn(a,e,"c");function se(G,V){M(V)?V.forEach(Ge=>G(Ge.bind(s))):V&&G(V.bind(s))}if(se(Yi,p),se(br,S),se(zi,C),se(Xi,D),se(qi,A),se(Gi,q),se(so,ge),se(to,ce),se(eo,fe),se(Zi,I),se(yr,O),se(Qi,de),M(qe))if(qe.length){const G=e.exposed||(e.exposed={});qe.forEach(V=>{Object.defineProperty(G,V,{get:()=>s[V],set:Ge=>s[V]=Ge,enumerable:!0})})}else e.exposed||(e.exposed={});J&&e.render===Ie&&(e.render=J),ft!=null&&(e.inheritAttrs=ft),It&&(e.components=It),$t&&(e.directives=$t),de&&gr(e)}function oo(e,t,s=Ie){M(e)&&(e=As(e));for(const n in e){const r=e[n];let i;B(r)?"default"in r?i=Bt(r.from||n,r.default,!0):i=Bt(r.from||n):i=Bt(r),te(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function pn(e,t,s){xe(M(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function vr(e,t,s,n){let r=n.includes(".")?pr(s,n):()=>s[n];if(Y(e)){const i=t[e];R(i)&&hs(r,i)}else if(R(e))hs(r,e.bind(s));else if(B(e))if(M(e))e.forEach(i=>vr(i,t,s,n));else{const i=R(e.handler)?e.handler.bind(s):t[e.handler];R(i)&&hs(r,i,e)}}function xr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let f;return l?f=l:!r.length&&!s&&!n?f=t:(f={},r.length&&r.forEach(d=>qt(f,d,o,!0)),qt(f,t,o)),B(t)&&i.set(t,f),f}function qt(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&qt(e,i,s,!0),r&&r.forEach(o=>qt(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=lo[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const lo={data:gn,props:mn,emits:mn,methods:gt,computed:gt,beforeCreate:ne,created:ne,beforeMount:ne,mounted:ne,beforeUpdate:ne,updated:ne,beforeDestroy:ne,beforeUnmount:ne,destroyed:ne,unmounted:ne,activated:ne,deactivated:ne,errorCaptured:ne,serverPrefetch:ne,components:gt,directives:gt,watch:fo,provide:gn,inject:co};function gn(e,t){return t?e?function(){return Q(R(e)?e.call(this,this):e,R(t)?t.call(this,this):t)}:t:e}function co(e,t){return gt(As(e),As(t))}function As(e){if(M(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${be(t)}Modifiers`]||e[`${et(t)}Modifiers`];function po(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||k;let r=s;const i=t.startsWith("update:"),o=i&&ho(n,t.slice(7));o&&(o.trim&&(r=s.map(a=>Y(a)?a.trim():a)),o.number&&(r=s.map(Xr)));let l,f=n[l=ls(t)]||n[l=ls(be(t))];!f&&i&&(f=n[l=ls(et(t))]),f&&xe(f,e,6,r);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,xe(d,e,6,r)}}const go=new WeakMap;function Sr(e,t,s=!1){const n=s?go:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!R(e)){const f=d=>{const a=Sr(d,t,!0);a&&(l=!0,Q(o,a))};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!l?(B(e)&&n.set(e,null),null):(M(i)?i.forEach(f=>o[f]=null):Q(o,i),B(e)&&n.set(e,o),o)}function ss(e,t){return!e||!Yt(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),L(e,t[0].toLowerCase()+t.slice(1))||L(e,et(t))||L(e,t))}function _n(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:f,render:d,renderCache:a,props:p,data:S,setupState:C,ctx:D,inheritAttrs:A}=e,q=Wt(e);let K,I;try{if(s.shapeFlag&4){const O=r||n,J=O;K=Pe(d.call(J,O,a,p,C,S,D)),I=l}else{const O=t;K=Pe(O.length>1?O(p,{attrs:l,slots:o,emit:f}):O(p,null)),I=t.props?l:mo(l)}}catch(O){St.length=0,es(O,e,1),K=Be(ke)}let H=K;if(I&&A!==!1){const O=Object.keys(I),{shapeFlag:J}=H;O.length&&J&7&&(i&&O.some(zt)&&(I=_o(I,i)),H=ct(H,I,!1,!0))}return s.dirs&&(H=ct(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(s.dirs):s.dirs),s.transition&&Js(H,s.transition),K=H,Wt(q),K}const mo=e=>{let t;for(const s in e)(s==="class"||s==="style"||Yt(s))&&((t||(t={}))[s]=e[s]);return t},_o=(e,t)=>{const s={};for(const n in e)(!zt(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function bo(e,t,s){const{props:n,children:r,component:i}=e,{props:o,children:l,patchFlag:f}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&f>=0){if(f&1024)return!0;if(f&16)return n?bn(n,o,d):!!o;if(f&8){const a=t.dynamicProps;for(let p=0;pObject.create(Tr),Or=e=>Object.getPrototypeOf(e)===Tr;function vo(e,t,s,n=!1){const r={},i=Er();e.propsDefaults=Object.create(null),Ar(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);s?e.props=n?r:Ci(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function xo(e,t,s,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=j(r),[f]=e.propsOptions;let d=!1;if((n||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let p=0;p{f=!0;const[S,C]=Pr(p,t,!0);Q(o,S),C&&l.push(...C)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!f)return B(e)&&n.set(e,nt),nt;if(M(i))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",zs=e=>M(e)?e.map(Pe):[Pe(e)],So=(e,t,s)=>{if(t._n)return t;const n=Hi((...r)=>zs(t(...r)),s);return n._c=!1,n},Mr=(e,t,s)=>{const n=e._ctx;for(const r in e){if(Ys(r))continue;const i=e[r];if(R(i))t[r]=So(r,i,n);else if(i!=null){const o=zs(i);t[r]=()=>o}}},Rr=(e,t)=>{const s=zs(t);e.slots.default=()=>s},Ir=(e,t,s)=>{for(const n in t)(s||!Ys(n))&&(e[n]=t[n])},Co=(e,t,s)=>{const n=e.slots=Er();if(e.vnode.shapeFlag&32){const r=t._;r?(Ir(n,t,s),s&&Vn(n,"_",r,!0)):Mr(t,n)}else t&&Rr(e,t)},To=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,o=k;if(n.shapeFlag&32){const l=t._;l?s&&l===1?i=!1:Ir(r,t,s):(i=!t.$stable,Mr(t,r)),o=t}else t&&(Rr(e,t),o={default:1});if(i)for(const l in r)!Ys(l)&&o[l]==null&&delete r[l]},le=Mo;function Eo(e){return Oo(e)}function Oo(e,t){const s=Zt();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:f,setText:d,setElementText:a,parentNode:p,nextSibling:S,setScopeId:C=Ie,insertStaticContent:D}=e,A=(c,u,h,b=null,_=null,g=null,x=void 0,v=null,y=!!u.dynamicChildren)=>{if(c===u)return;c&&!pt(c,u)&&(b=Dt(c),we(c,_,g,!0),c=null),u.patchFlag===-2&&(y=!1,u.dynamicChildren=null);const{type:m,ref:E,shapeFlag:w}=u;switch(m){case ns:q(c,u,h,b);break;case ke:K(c,u,h,b);break;case _s:c==null&&I(u,h,b,x);break;case _e:It(c,u,h,b,_,g,x,v,y);break;default:w&1?J(c,u,h,b,_,g,x,v,y):w&6?$t(c,u,h,b,_,g,x,v,y):(w&64||w&128)&&m.process(c,u,h,b,_,g,x,v,y,at)}E!=null&&_?vt(E,c&&c.ref,g,u||c,!u):E==null&&c&&c.ref!=null&&vt(c.ref,null,g,c,!0)},q=(c,u,h,b)=>{if(c==null)n(u.el=l(u.children),h,b);else{const _=u.el=c.el;u.children!==c.children&&d(_,u.children)}},K=(c,u,h,b)=>{c==null?n(u.el=f(u.children||""),h,b):u.el=c.el},I=(c,u,h,b)=>{[c.el,c.anchor]=D(c.children,u,h,b,c.el,c.anchor)},H=({el:c,anchor:u},h,b)=>{let _;for(;c&&c!==u;)_=S(c),n(c,h,b),c=_;n(u,h,b)},O=({el:c,anchor:u})=>{let h;for(;c&&c!==u;)h=S(c),r(c),c=h;r(u)},J=(c,u,h,b,_,g,x,v,y)=>{if(u.type==="svg"?x="svg":u.type==="math"&&(x="mathml"),c==null)ce(u,h,b,_,g,x,v,y);else{const m=c.el&&c.el._isVueCE?c.el:null;try{m&&m._beginPatch(),de(c,u,_,g,x,v,y)}finally{m&&m._endPatch()}}},ce=(c,u,h,b,_,g,x,v)=>{let y,m;const{props:E,shapeFlag:w,transition:T,dirs:P}=c;if(y=c.el=o(c.type,g,E&&E.is,E),w&8?a(y,c.children):w&16&&ge(c.children,y,null,b,_,ms(c,g),x,v),P&&Ye(c,null,b,"created"),fe(y,c,c.scopeId,x,b),E){for(const U in E)U!=="value"&&!_t(U)&&i(y,U,null,E[U],g,b);"value"in E&&i(y,"value",null,E.value,g),(m=E.onVnodeBeforeMount)&&Ee(m,b,c)}P&&Ye(c,null,b,"beforeMount");const F=Ao(_,T);F&&T.beforeEnter(y),n(y,u,h),((m=E&&E.onVnodeMounted)||F||P)&&le(()=>{try{m&&Ee(m,b,c),F&&T.enter(y),P&&Ye(c,null,b,"mounted")}finally{}},_)},fe=(c,u,h,b,_)=>{if(h&&C(c,h),b)for(let g=0;g{for(let m=y;m{const v=u.el=c.el;let{patchFlag:y,dynamicChildren:m,dirs:E}=u;y|=c.patchFlag&16;const w=c.props||k,T=u.props||k;let P;if(h&&ze(h,!1),(P=T.onVnodeBeforeUpdate)&&Ee(P,h,u,c),E&&Ye(u,c,h,"beforeUpdate"),h&&ze(h,!0),m&&(!c.dynamicChildren||c.dynamicChildren.length!==m.length)&&(y=0,x=!1,m=null),(w.innerHTML&&T.innerHTML==null||w.textContent&&T.textContent==null)&&a(v,""),m?qe(c.dynamicChildren,m,v,h,b,ms(u,_),g):x||V(c,u,v,null,h,b,ms(u,_),g,!1),y>0){if(y&16)ft(v,w,T,h,_);else if(y&2&&w.class!==T.class&&i(v,"class",null,T.class,_),y&4&&i(v,"style",w.style,T.style,_),y&8){const F=u.dynamicProps;for(let U=0;U{P&&Ee(P,h,u,c),E&&Ye(u,c,h,"updated")},b)},qe=(c,u,h,b,_,g,x)=>{for(let v=0;v{if(u!==h){if(u!==k)for(const g in u)!_t(g)&&!(g in h)&&i(c,g,u[g],null,_,b);for(const g in h){if(_t(g))continue;const x=h[g],v=u[g];x!==v&&g!=="value"&&i(c,g,v,x,_,b)}"value"in h&&i(c,"value",u.value,h.value,_)}},It=(c,u,h,b,_,g,x,v,y)=>{const m=u.el=c?c.el:l(""),E=u.anchor=c?c.anchor:l("");let{patchFlag:w,dynamicChildren:T,slotScopeIds:P}=u;P&&(v=v?v.concat(P):P),c==null?(n(m,h,b),n(E,h,b),ge(u.children||[],h,E,_,g,x,v,y)):w>0&&w&64&&T&&c.dynamicChildren&&c.dynamicChildren.length===T.length?(qe(c.dynamicChildren,T,h,_,g,x,v),(u.key!=null||_&&u===_.subTree)&&$r(c,u,!0)):V(c,u,h,E,_,g,x,v,y)},$t=(c,u,h,b,_,g,x,v,y)=>{u.slotScopeIds=v,c==null?u.shapeFlag&512?_.ctx.activate(u,h,b,x,y):rs(u,h,b,_,g,x,y):Zs(c,u,y)},rs=(c,u,h,b,_,g,x)=>{const v=c.component=No(c,b,_);if(mr(c)&&(v.ctx.renderer=at),Ko(v,!1,x),v.asyncDep){if(_&&_.registerDep(v,se,x),!c.el){const y=v.subTree=Be(ke);K(null,y,u,h),c.placeholder=y.el}}else se(v,c,u,h,_,g,x)},Zs=(c,u,h)=>{const b=u.component=c.component;if(bo(c,u,h))if(b.asyncDep&&!b.asyncResolved){G(b,u,h);return}else b.next=u,b.update();else u.el=c.el,b.vnode=u},se=(c,u,h,b,_,g,x)=>{const v=()=>{if(c.isMounted){let{next:w,bu:T,u:P,parent:F,vnode:U}=c;{const Ce=Fr(c);if(Ce){w&&(w.el=U.el,G(c,w,x)),Ce.asyncDep.then(()=>{le(()=>{c.isUnmounted||m()},_)});return}}let N=w,z;ze(c,!1),w?(w.el=U.el,G(c,w,x)):w=U,T&&cs(T),(z=w.props&&w.props.onVnodeBeforeUpdate)&&Ee(z,F,w,U),ze(c,!0);const X=_n(c),Se=c.subTree;c.subTree=X,A(Se,X,p(Se.el),Dt(Se),c,_,g),w.el=X.el,N===null&&yo(c,X.el),P&&le(P,_),(z=w.props&&w.props.onVnodeUpdated)&&le(()=>Ee(z,F,w,U),_)}else{let w;const{el:T,props:P}=u,{bm:F,m:U,parent:N,root:z,type:X}=c,Se=xt(u);ze(c,!1),F&&cs(F),!Se&&(w=P&&P.onVnodeBeforeMount)&&Ee(w,N,u),ze(c,!0);{z.ce&&z.ce._hasShadowRoot()&&z.ce._injectChildStyle(X,c.parent?c.parent.type:void 0);const Ce=c.subTree=_n(c);A(null,Ce,h,b,c,_,g),u.el=Ce.el}if(U&&le(U,_),!Se&&(w=P&&P.onVnodeMounted)){const Ce=u;le(()=>Ee(w,N,Ce),_)}(u.shapeFlag&256||N&&xt(N.vnode)&&N.vnode.shapeFlag&256)&&c.a&&le(c.a,_),c.isMounted=!0,u=h=b=null}};c.scope.on();const y=c.effect=new Gn(v);c.scope.off();const m=c.update=y.run.bind(y),E=c.job=y.runIfDirty.bind(y);E.i=c,E.id=c.uid,y.scheduler=()=>Gs(E),ze(c,!0),m()},G=(c,u,h)=>{u.component=c;const b=c.vnode.props;c.vnode=u,c.next=null,xo(c,u.props,b,h),To(c,u.children,h),Fe(),fn(c),De()},V=(c,u,h,b,_,g,x,v,y=!1)=>{const m=c&&c.children,E=c?c.shapeFlag:0,w=u.children,{patchFlag:T,shapeFlag:P}=u;if(T>0){if(T&128){Ft(m,w,h,b,_,g,x,v,y);return}else if(T&256){Ge(m,w,h,b,_,g,x,v,y);return}}P&8?(E&16&&ut(m,_,g),w!==m&&a(h,w)):E&16?P&16?Ft(m,w,h,b,_,g,x,v,y):ut(m,_,g,!0):(E&8&&a(h,""),P&16&&ge(w,h,b,_,g,x,v,y))},Ge=(c,u,h,b,_,g,x,v,y)=>{c=c||nt,u=u||nt;const m=c.length,E=u.length,w=Math.min(m,E);let T;for(T=0;TE?ut(c,_,g,!0,!1,w):ge(u,h,b,_,g,x,v,y,w)},Ft=(c,u,h,b,_,g,x,v,y)=>{let m=0;const E=u.length;let w=c.length-1,T=E-1;for(;m<=w&&m<=T;){const P=c[m],F=u[m]=y?He(u[m]):Pe(u[m]);if(pt(P,F))A(P,F,h,null,_,g,x,v,y);else break;m++}for(;m<=w&&m<=T;){const P=c[w],F=u[T]=y?He(u[T]):Pe(u[T]);if(pt(P,F))A(P,F,h,null,_,g,x,v,y);else break;w--,T--}if(m>w){if(m<=T){const P=T+1,F=PT)for(;m<=w;)we(c[m],_,g,!0),m++;else{const P=m,F=m,U=new Map;for(m=F;m<=T;m++){const ue=u[m]=y?He(u[m]):Pe(u[m]);ue.key!=null&&U.set(ue.key,m)}let N,z=0;const X=T-F+1;let Se=!1,Ce=0;const dt=new Array(X);for(m=0;m=X){we(ue,_,g,!0);continue}let Te;if(ue.key!=null)Te=U.get(ue.key);else for(N=F;N<=T;N++)if(dt[N-F]===0&&pt(ue,u[N])){Te=N;break}Te===void 0?we(ue,_,g,!0):(dt[Te-F]=m+1,Te>=Ce?Ce=Te:Se=!0,A(ue,u[Te],h,null,_,g,x,v,y),z++)}const tn=Se?Po(dt):nt;for(N=tn.length-1,m=X-1;m>=0;m--){const ue=F+m,Te=u[ue],sn=u[ue+1],nn=ue+1{const{el:g,type:x,transition:v,children:y,shapeFlag:m}=c;if(m&6){Je(c.component.subTree,u,h,b);return}if(m&128){c.suspense.move(u,h,b);return}if(m&64){x.move(c,u,h,at);return}if(x===_e){n(g,u,h);for(let w=0;wv.enter(g),_));else{const{leave:w,delayLeave:T,afterLeave:P}=v,F=()=>{c.ctx.isUnmounted?r(g):n(g,u,h)},U=()=>{const N=g._isLeaving||!!g[ps];g._isLeaving&&g[ps](!0),v.persisted&&!N?F():w(g,()=>{F(),P&&P()})};T?T(g,F,U):U()}else n(g,u,h)},we=(c,u,h,b=!1,_=!1)=>{const{type:g,props:x,ref:v,children:y,dynamicChildren:m,shapeFlag:E,patchFlag:w,dirs:T,cacheIndex:P,memo:F}=c;if(w===-2&&(_=!1),v!=null&&(Fe(),vt(v,null,h,c,!0),De()),P!=null&&(u.renderCache[P]=void 0),E&256){u.ctx.deactivate(c);return}const U=E&1&&T,N=!xt(c);let z;if(N&&(z=x&&x.onVnodeBeforeUnmount)&&Ee(z,u,c),E&6)Wr(c.component,h,b);else{if(E&128){c.suspense.unmount(h,b);return}U&&Ye(c,null,u,"beforeUnmount"),E&64?c.type.remove(c,u,h,at,b):m&&!m.hasOnce&&(g!==_e||w>0&&w&64)?ut(m,u,h,!1,!0):(g===_e&&w&384||!_&&E&16)&&ut(y,u,h),b&&Qs(c)}const X=F!=null&&P==null;(N&&(z=x&&x.onVnodeUnmounted)||U||X)&&le(()=>{z&&Ee(z,u,c),U&&Ye(c,null,u,"unmounted"),X&&(c.el=null)},h)},Qs=c=>{const{type:u,el:h,anchor:b,transition:_}=c;if(u===_e){Vr(h,b);return}if(u===_s){O(c);return}const g=()=>{r(h),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(c.shapeFlag&1&&_&&!_.persisted){const{leave:x,delayLeave:v}=_,y=()=>x(h,g);v?v(c.el,g,y):y()}else g()},Vr=(c,u)=>{let h;for(;c!==u;)h=S(c),r(c),c=h;r(u)},Wr=(c,u,h)=>{const{bum:b,scope:_,job:g,subTree:x,um:v,m:y,a:m}=c;vn(y),vn(m),b&&cs(b),_.stop(),g&&(g.flags|=8,we(x,c,u,h)),v&&le(v,u),le(()=>{c.isUnmounted=!0},u)},ut=(c,u,h,b=!1,_=!1,g=0)=>{for(let x=g;x{if(c.shapeFlag&6)return Dt(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const u=S(c.anchor||c.el),h=u&&u[Vi];return h?S(h):u};let is=!1;const en=(c,u,h)=>{let b;c==null?u._vnode&&(we(u._vnode,null,null,!0),b=u._vnode.component):A(u._vnode||null,c,u,null,null,null,h),u._vnode=c,is||(is=!0,fn(b),ur(),is=!1)},at={p:A,um:we,m:Je,r:Qs,mt:rs,mc:ge,pc:V,pbc:qe,n:Dt,o:e};return{render:en,hydrate:void 0,createApp:ao(en)}}function ms({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 ze({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ao(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $r(e,t,s=!1){const n=e.children,r=t.children;if(M(n)&&M(r))for(let i=0;i>1,e[s[l]]0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,o=s[i-1];i-- >0;)s[i]=o,o=t[o];return s}function Fr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fr(t)}function vn(e){if(e)for(let t=0;te.__isSuspense;function Mo(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):Li(e)}const _e=Symbol.for("v-fgt"),ns=Symbol.for("v-txt"),ke=Symbol.for("v-cmt"),_s=Symbol.for("v-stc"),St=[];let ae=null;function he(e=!1){St.push(ae=e?null:[])}function Ro(){St.pop(),ae=St[St.length-1]||null}let Ot=1;function xn(e,t=!1){Ot+=e,e<0&&ae&&t&&(ae.hasOnce=!0)}function Lr(e){return e.dynamicChildren=Ot>0?ae||nt:null,Ro(),Ot>0&&ae&&ae.push(e),e}function me(e,t,s,n,r,i){return Lr($(e,t,s,n,r,i,!0))}function Io(e,t,s,n,r){return Lr(Be(e,t,s,n,r,!0))}function Hr(e){return e?e.__v_isVNode===!0:!1}function pt(e,t){return e.type===t.type&&e.key===t.key}const Nr=({key:e})=>e??null,Kt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Y(e)||te(e)||R(e)?{i:Re,r:e,k:t,f:!!s}:e:null);function $(e,t=null,s=null,n=0,r=null,i=e===_e?0:1,o=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Nr(t),ref:t&&Kt(t),scopeId:dr,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:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Re};return l?(Gt(f,s),i&128&&e.normalize(f)):s&&(f.shapeFlag|=Y(s)?8:16),Ot>0&&!o&&ae&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&ae.push(f),f}const Be=$o;function $o(e,t=null,s=null,n=0,r=null,i=!1){if((!e||e===no)&&(e=ke),Hr(e)){const l=ct(e,t,!0);return s&&Gt(l,s),Ot>0&&!i&&ae&&(l.shapeFlag&6?ae[ae.indexOf(e)]=l:ae.push(l)),l.patchFlag=-2,l}if(ko(e)&&(e=e.__vccOpts),t){t=Fo(t);let{class:l,style:f}=t;l&&!Y(l)&&(t.class=Ls(l)),B(f)&&(qs(f)&&!M(f)&&(f=Q({},f)),t.style=js(f))}const o=Y(e)?1:jr(e)?128:Wi(e)?64:B(e)?4:R(e)?2:0;return $(e,t,s,n,r,o,i,!0)}function Fo(e){return e?qs(e)||Or(e)?Q({},e):e:null}function ct(e,t,s=!1,n=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:f}=e,d=t?jo(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Nr(d),ref:t&&t.ref?s&&i?M(i)?i.concat(Kt(t)):[i,Kt(t)]:Kt(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ct(e.ssContent),ssFallback:e.ssFallback&&ct(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&n&&Js(a,f.clone(a)),a}function Do(e=" ",t=0){return Be(ns,null,e,t)}function bs(e="",t=!1){return t?(he(),Io(ke,null,e)):Be(ke,null,e)}function Pe(e){return e==null||typeof e=="boolean"?Be(ke):M(e)?Be(_e,null,e.slice()):Hr(e)?He(e):Be(ns,null,String(e))}function He(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ct(e)}function Gt(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(M(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Gt(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!Or(t)?t._ctx=Re:r===3&&Re&&(Re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(R(t)){if(n&65){Gt(e,{default:t});return}t={default:t,_ctx:Re},s=32}else t=String(t),n&64?(s=16,t=[Do(t)]):s=8;e.children=t,e.shapeFlag|=s}function jo(...e){const t={};for(let s=0;sie||Re;let Jt,Ms;{const e=Zt(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Jt=t("__VUE_INSTANCE_SETTERS__",s=>ie=s),Ms=t("__VUE_SSR_SETTERS__",s=>At=s)}const Rt=e=>{const t=ie;return Jt(e),e.scope.on(),()=>{e.scope.off(),Jt(t)}},wn=()=>{ie&&ie.scope.off(),Jt(null)};function Br(e){return e.vnode.shapeFlag&4}let At=!1;function Ko(e,t=!1,s=!1){t&&Ms(t);const{props:n,children:r}=e.vnode,i=Br(e);vo(e,n,i,t),Co(e,r,s||t);const o=i?Uo(e,t):void 0;return t&&Ms(!1),o}function Uo(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ro);const{setup:n}=s;if(n){Fe();const r=e.setupContext=n.length>1?Wo(e):null,i=Rt(e),o=Mt(n,e,0,[e.props,r]),l=Nn(o);if(De(),i(),(l||e.sp)&&!xt(e)&&gr(e),l){if(o.then(wn,wn),t)return o.then(f=>{Sn(e,f)}).catch(f=>{es(f,e,0)});e.asyncDep=o}else Sn(e,o)}else Kr(e)}function Sn(e,t,s){R(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:B(t)&&(e.setupState=lr(t)),Kr(e)}function Kr(e,t,s){const n=e.type;e.render||(e.render=n.render||Ie);{const r=Rt(e);Fe();try{io(e)}finally{De(),r()}}}const Vo={get(e,t){return ee(e,"get",""),e[t]}};function Wo(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Vo),slots:e.slots,emit:e.emit,expose:t}}function Xs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(lr(Ti(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in wt)return wt[s](e)},has(t,s){return s in t||s in wt}})):e.proxy}function ko(e){return R(e)&&"__vccOpts"in e}const Rs=(e,t)=>Ri(e,t,At),qo="3.5.39";/** +**/function Mt(e,t,s,n){try{return n?e(...n):e()}catch(r){es(r,t,s)}}function xe(e,t,s,n){if(R(e)){const r=Mt(e,t,s,n);return r&&Nn(r)&&r.catch(i=>{es(i,t,s)}),r}if(M(e)){const r=[];for(let i=0;i>>1,r=re[n],i=Et(r);i=Et(s)?re.push(e):re.splice(ji(t),0,e),e.flags|=1,fr()}}function fr(){Vt||(Vt=cr.then(ar))}function Li(e){M(e)?it.push(...e):Ve&&e.id===-1?Ve.splice(st+1,0,e):e.flags&1||(it.push(e),e.flags|=1),fr()}function fn(e,t,s=Oe+1){for(;sEt(s)-Et(n));if(it.length=0,Ve){Ve.push(...t);return}for(Ve=t,st=0;ste.id==null?e.flags&2?-1:1/0:e.id;function ar(e){try{for(Oe=0;Oe{n._d&&xn(-1);const i=Wt(t);let o;try{o=e(...r)}finally{Wt(i),n._d&&xn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Ye(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o1)return s&&R(t)?t.call(n&&n.proxy):t}}const Bi=Symbol.for("v-scx"),Ui=()=>Bt(Bi);function hs(e,t,s){return hr(e,t,s)}function hr(e,t,s=k){const{immediate:n,deep:r,flush:i,once:o}=s,l=Q({},s),f=t&&n||!t&&i!=="post";let d;if(At){if(i==="sync"){const C=Ui();d=C.__watcherHandles||(C.__watcherHandles=[])}else if(!f){const C=()=>{};return C.stop=Ie,C.resume=Ie,C.pause=Ie,C}}const a=ie;l.call=(C,D,A)=>xe(C,a,D,A);let p=!1;i==="post"?l.scheduler=C=>{le(C,a&&a.suspense)}:i!=="sync"&&(p=!0,l.scheduler=(C,D)=>{D?C():Gs(C)}),l.augmentJob=C=>{t&&(C.flags|=4),p&&(C.flags|=2,a&&(C.id=a.uid,C.i=a))};const S=$i(e,t,l);return At&&(d?d.push(S):f&&S()),S}function Ki(e,t,s){const n=this.proxy,r=Y(e)?e.includes(".")?pr(n,e):()=>n[e]:e.bind(n,n);let i;R(t)?i=t:(i=t.handler,s=t);const o=Rt(this),l=hr(r,i.bind(n),s);return o(),l}function pr(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;re.__isTeleport,ps=Symbol("_leaveCb");function Js(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Js(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 ki(e,t){return R(e)?Q({name:e.name},t,{setup:e}):e}function gr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function un(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const kt=new WeakMap;function vt(e,t,s,n,r=!1){if(M(e)){e.forEach((A,q)=>vt(A,t&&(M(t)?t[q]:t),s,n,r));return}if(xt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&vt(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?Xs(n.component):n.el,o=r?null:i,{i:l,r:f}=e,d=t&&t.r,a=l.refs===k?l.refs={}:l.refs,p=l.setupState,S=j(p),C=p===k?Ln:A=>un(a,A)?!1:L(S,A),D=(A,q)=>!(q&&un(a,q));if(d!=null&&d!==f){if(an(t),Y(d))a[d]=null,C(d)&&(p[d]=null);else if(te(d)){const A=t;D(d,A.k)&&(d.value=null),A.k&&(a[A.k]=null)}}if(R(f)){Fe();try{Mt(f,l,12,[o,a])}finally{De()}}else{const A=Y(f),q=te(f);if(A||q){const U=()=>{if(e.f){const I=A?C(f)?p[f]:a[f]:D()||!e.k?f.value:a[e.k];if(r)M(I)&&Fs(I,i);else if(M(I))I.includes(i)||I.push(i);else if(A)a[f]=[i],C(f)&&(p[f]=a[f]);else{const H=[i];D(f,e.k)&&(f.value=H),e.k&&(a[e.k]=H)}}else A?(a[f]=o,C(f)&&(p[f]=o)):q&&(D(f,e.k)&&(f.value=o),e.k&&(a[e.k]=o))};if(o){const I=()=>{U(),kt.delete(e)};I.id=-1,kt.set(e,I),le(I,s)}else an(e),U()}}}function an(e){const t=kt.get(e);t&&(t.flags|=8,kt.delete(e))}Zt().requestIdleCallback;Zt().cancelIdleCallback;const xt=e=>!!e.type.__asyncLoader,mr=e=>e.type.__isKeepAlive;function qi(e,t){_r(e,"a",t)}function Gi(e,t){_r(e,"da",t)}function _r(e,t,s=ie){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ts(t,n,s),s){let r=s.parent;for(;r&&r.parent;)mr(r.parent.vnode)&&Ji(n,t,s,r),r=r.parent}}function Ji(e,t,s,n){const r=ts(t,e,n,!0);yr(()=>{Fs(n[t],r)},s)}function ts(e,t,s=ie,n=!1){if(s){const r=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Fe();const l=Rt(s),f=xe(t,s,e,o);return l(),De(),f});return n?r.unshift(i):r.push(i),i}}const Ke=e=>(t,s=ie)=>{(!At||e==="sp")&&ts(e,(...n)=>t(...n),s)},Yi=Ke("bm"),br=Ke("m"),zi=Ke("bu"),Xi=Ke("u"),Zi=Ke("bum"),yr=Ke("um"),Qi=Ke("sp"),eo=Ke("rtg"),to=Ke("rtc");function so(e,t=ie){ts("ec",e,t)}const no=Symbol.for("v-ndc");function dn(e,t,s,n){let r;const i=s,o=M(e);if(o||Y(e)){const l=o&&Qe(e);let f=!1,d=!1;l&&(f=!pe(e),d=Ue(e),e=Qt(e)),r=new Array(e.length);for(let a=0,p=e.length;at(l,f,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let f=0,d=l.length;fe?Br(e)?Xs(e):Es(e.parent):null,wt=Q(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=>Es(e.parent),$root:e=>Es(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xr(e),$forceUpdate:e=>e.f||(e.f=()=>{Gs(e.update)}),$nextTick:e=>e.n||(e.n=Di.bind(e.proxy)),$watch:e=>Ki.bind(e)}),gs=(e,t)=>e!==k&&!e.__isScriptSetup&&L(e,t),ro={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:o,type:l,appContext:f}=e;if(t[0]!=="$"){const S=o[t];if(S!==void 0)switch(S){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(gs(n,t))return o[t]=1,n[t];if(r!==k&&L(r,t))return o[t]=2,r[t];if(L(i,t))return o[t]=3,i[t];if(s!==k&&L(s,t))return o[t]=4,s[t];Os&&(o[t]=0)}}const d=wt[t];let a,p;if(d)return t==="$attrs"&&ee(e.attrs,"get",""),d(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(s!==k&&L(s,t))return o[t]=4,s[t];if(p=f.config.globalProperties,L(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:i}=e;return gs(r,t)?(r[t]=s,!0):n!==k&&L(n,t)?(n[t]=s,!0):L(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,props:i,type:o}},l){let f;return!!(s[l]||e!==k&&l[0]!=="$"&&L(e,l)||gs(t,l)||L(i,l)||L(n,l)||L(wt,l)||L(r.config.globalProperties,l)||(f=o.__cssModules)&&f[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:L(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function hn(e){return M(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Os=!0;function io(e){const t=xr(e),s=e.proxy,n=e.ctx;Os=!1,t.beforeCreate&&pn(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:f,inject:d,created:a,beforeMount:p,mounted:S,beforeUpdate:C,updated:D,activated:A,deactivated:q,beforeDestroy:U,beforeUnmount:I,destroyed:H,unmounted:O,render:J,renderTracked:ce,renderTriggered:fe,errorCaptured:ge,serverPrefetch:de,expose:qe,inheritAttrs:ft,components:It,directives:$t,filters:rs}=t;if(d&&oo(d,n,null),o)for(const G in o){const V=o[G];R(V)&&(n[G]=V.bind(s))}if(r){const G=r.call(s,s);B(G)&&(e.data=Ws(G))}if(Os=!0,i)for(const G in i){const V=i[G],Ge=R(V)?V.bind(s,s):R(V.get)?V.get.bind(s,s):Ie,Ft=!R(V)&&R(V.set)?V.set.bind(s):Ie,Je=Rs({get:Ge,set:Ft});Object.defineProperty(n,G,{enumerable:!0,configurable:!0,get:()=>Je.value,set:we=>Je.value=we})}if(l)for(const G in l)vr(l[G],n,s,G);if(f){const G=R(f)?f.call(s):f;Reflect.ownKeys(G).forEach(V=>{Ni(V,G[V])})}a&&pn(a,e,"c");function se(G,V){M(V)?V.forEach(Ge=>G(Ge.bind(s))):V&&G(V.bind(s))}if(se(Yi,p),se(br,S),se(zi,C),se(Xi,D),se(qi,A),se(Gi,q),se(so,ge),se(to,ce),se(eo,fe),se(Zi,I),se(yr,O),se(Qi,de),M(qe))if(qe.length){const G=e.exposed||(e.exposed={});qe.forEach(V=>{Object.defineProperty(G,V,{get:()=>s[V],set:Ge=>s[V]=Ge,enumerable:!0})})}else e.exposed||(e.exposed={});J&&e.render===Ie&&(e.render=J),ft!=null&&(e.inheritAttrs=ft),It&&(e.components=It),$t&&(e.directives=$t),de&&gr(e)}function oo(e,t,s=Ie){M(e)&&(e=As(e));for(const n in e){const r=e[n];let i;B(r)?"default"in r?i=Bt(r.from||n,r.default,!0):i=Bt(r.from||n):i=Bt(r),te(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function pn(e,t,s){xe(M(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function vr(e,t,s,n){let r=n.includes(".")?pr(s,n):()=>s[n];if(Y(e)){const i=t[e];R(i)&&hs(r,i)}else if(R(e))hs(r,e.bind(s));else if(B(e))if(M(e))e.forEach(i=>vr(i,t,s,n));else{const i=R(e.handler)?e.handler.bind(s):t[e.handler];R(i)&&hs(r,i,e)}}function xr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let f;return l?f=l:!r.length&&!s&&!n?f=t:(f={},r.length&&r.forEach(d=>qt(f,d,o,!0)),qt(f,t,o)),B(t)&&i.set(t,f),f}function qt(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&qt(e,i,s,!0),r&&r.forEach(o=>qt(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=lo[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const lo={data:gn,props:mn,emits:mn,methods:gt,computed:gt,beforeCreate:ne,created:ne,beforeMount:ne,mounted:ne,beforeUpdate:ne,updated:ne,beforeDestroy:ne,beforeUnmount:ne,destroyed:ne,unmounted:ne,activated:ne,deactivated:ne,errorCaptured:ne,serverPrefetch:ne,components:gt,directives:gt,watch:fo,provide:gn,inject:co};function gn(e,t){return t?e?function(){return Q(R(e)?e.call(this,this):e,R(t)?t.call(this,this):t)}:t:e}function co(e,t){return gt(As(e),As(t))}function As(e){if(M(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${be(t)}Modifiers`]||e[`${et(t)}Modifiers`];function po(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||k;let r=s;const i=t.startsWith("update:"),o=i&&ho(n,t.slice(7));o&&(o.trim&&(r=s.map(a=>Y(a)?a.trim():a)),o.number&&(r=s.map(Xr)));let l,f=n[l=ls(t)]||n[l=ls(be(t))];!f&&i&&(f=n[l=ls(et(t))]),f&&xe(f,e,6,r);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,xe(d,e,6,r)}}const go=new WeakMap;function Sr(e,t,s=!1){const n=s?go:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!R(e)){const f=d=>{const a=Sr(d,t,!0);a&&(l=!0,Q(o,a))};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!l?(B(e)&&n.set(e,null),null):(M(i)?i.forEach(f=>o[f]=null):Q(o,i),B(e)&&n.set(e,o),o)}function ss(e,t){return!e||!Yt(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),L(e,t[0].toLowerCase()+t.slice(1))||L(e,et(t))||L(e,t))}function _n(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:f,render:d,renderCache:a,props:p,data:S,setupState:C,ctx:D,inheritAttrs:A}=e,q=Wt(e);let U,I;try{if(s.shapeFlag&4){const O=r||n,J=O;U=Pe(d.call(J,O,a,p,C,S,D)),I=l}else{const O=t;U=Pe(O.length>1?O(p,{attrs:l,slots:o,emit:f}):O(p,null)),I=t.props?l:mo(l)}}catch(O){St.length=0,es(O,e,1),U=Be(ke)}let H=U;if(I&&A!==!1){const O=Object.keys(I),{shapeFlag:J}=H;O.length&&J&7&&(i&&O.some(zt)&&(I=_o(I,i)),H=ct(H,I,!1,!0))}return s.dirs&&(H=ct(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(s.dirs):s.dirs),s.transition&&Js(H,s.transition),U=H,Wt(q),U}const mo=e=>{let t;for(const s in e)(s==="class"||s==="style"||Yt(s))&&((t||(t={}))[s]=e[s]);return t},_o=(e,t)=>{const s={};for(const n in e)(!zt(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function bo(e,t,s){const{props:n,children:r,component:i}=e,{props:o,children:l,patchFlag:f}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&f>=0){if(f&1024)return!0;if(f&16)return n?bn(n,o,d):!!o;if(f&8){const a=t.dynamicProps;for(let p=0;pObject.create(Tr),Or=e=>Object.getPrototypeOf(e)===Tr;function vo(e,t,s,n=!1){const r={},i=Er();e.propsDefaults=Object.create(null),Ar(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);s?e.props=n?r:Ci(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function xo(e,t,s,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=j(r),[f]=e.propsOptions;let d=!1;if((n||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let p=0;p{f=!0;const[S,C]=Pr(p,t,!0);Q(o,S),C&&l.push(...C)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!f)return B(e)&&n.set(e,nt),nt;if(M(i))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",zs=e=>M(e)?e.map(Pe):[Pe(e)],So=(e,t,s)=>{if(t._n)return t;const n=Hi((...r)=>zs(t(...r)),s);return n._c=!1,n},Mr=(e,t,s)=>{const n=e._ctx;for(const r in e){if(Ys(r))continue;const i=e[r];if(R(i))t[r]=So(r,i,n);else if(i!=null){const o=zs(i);t[r]=()=>o}}},Rr=(e,t)=>{const s=zs(t);e.slots.default=()=>s},Ir=(e,t,s)=>{for(const n in t)(s||!Ys(n))&&(e[n]=t[n])},Co=(e,t,s)=>{const n=e.slots=Er();if(e.vnode.shapeFlag&32){const r=t._;r?(Ir(n,t,s),s&&Vn(n,"_",r,!0)):Mr(t,n)}else t&&Rr(e,t)},To=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,o=k;if(n.shapeFlag&32){const l=t._;l?s&&l===1?i=!1:Ir(r,t,s):(i=!t.$stable,Mr(t,r)),o=t}else t&&(Rr(e,t),o={default:1});if(i)for(const l in r)!Ys(l)&&o[l]==null&&delete r[l]},le=Mo;function Eo(e){return Oo(e)}function Oo(e,t){const s=Zt();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:f,setText:d,setElementText:a,parentNode:p,nextSibling:S,setScopeId:C=Ie,insertStaticContent:D}=e,A=(c,u,h,b=null,_=null,g=null,x=void 0,v=null,y=!!u.dynamicChildren)=>{if(c===u)return;c&&!pt(c,u)&&(b=Dt(c),we(c,_,g,!0),c=null),u.patchFlag===-2&&(y=!1,u.dynamicChildren=null);const{type:m,ref:E,shapeFlag:w}=u;switch(m){case ns:q(c,u,h,b);break;case ke:U(c,u,h,b);break;case _s:c==null&&I(u,h,b,x);break;case _e:It(c,u,h,b,_,g,x,v,y);break;default:w&1?J(c,u,h,b,_,g,x,v,y):w&6?$t(c,u,h,b,_,g,x,v,y):(w&64||w&128)&&m.process(c,u,h,b,_,g,x,v,y,at)}E!=null&&_?vt(E,c&&c.ref,g,u||c,!u):E==null&&c&&c.ref!=null&&vt(c.ref,null,g,c,!0)},q=(c,u,h,b)=>{if(c==null)n(u.el=l(u.children),h,b);else{const _=u.el=c.el;u.children!==c.children&&d(_,u.children)}},U=(c,u,h,b)=>{c==null?n(u.el=f(u.children||""),h,b):u.el=c.el},I=(c,u,h,b)=>{[c.el,c.anchor]=D(c.children,u,h,b,c.el,c.anchor)},H=({el:c,anchor:u},h,b)=>{let _;for(;c&&c!==u;)_=S(c),n(c,h,b),c=_;n(u,h,b)},O=({el:c,anchor:u})=>{let h;for(;c&&c!==u;)h=S(c),r(c),c=h;r(u)},J=(c,u,h,b,_,g,x,v,y)=>{if(u.type==="svg"?x="svg":u.type==="math"&&(x="mathml"),c==null)ce(u,h,b,_,g,x,v,y);else{const m=c.el&&c.el._isVueCE?c.el:null;try{m&&m._beginPatch(),de(c,u,_,g,x,v,y)}finally{m&&m._endPatch()}}},ce=(c,u,h,b,_,g,x,v)=>{let y,m;const{props:E,shapeFlag:w,transition:T,dirs:P}=c;if(y=c.el=o(c.type,g,E&&E.is,E),w&8?a(y,c.children):w&16&&ge(c.children,y,null,b,_,ms(c,g),x,v),P&&Ye(c,null,b,"created"),fe(y,c,c.scopeId,x,b),E){for(const K in E)K!=="value"&&!_t(K)&&i(y,K,null,E[K],g,b);"value"in E&&i(y,"value",null,E.value,g),(m=E.onVnodeBeforeMount)&&Ee(m,b,c)}P&&Ye(c,null,b,"beforeMount");const F=Ao(_,T);F&&T.beforeEnter(y),n(y,u,h),((m=E&&E.onVnodeMounted)||F||P)&&le(()=>{try{m&&Ee(m,b,c),F&&T.enter(y),P&&Ye(c,null,b,"mounted")}finally{}},_)},fe=(c,u,h,b,_)=>{if(h&&C(c,h),b)for(let g=0;g{for(let m=y;m{const v=u.el=c.el;let{patchFlag:y,dynamicChildren:m,dirs:E}=u;y|=c.patchFlag&16;const w=c.props||k,T=u.props||k;let P;if(h&&ze(h,!1),(P=T.onVnodeBeforeUpdate)&&Ee(P,h,u,c),E&&Ye(u,c,h,"beforeUpdate"),h&&ze(h,!0),m&&(!c.dynamicChildren||c.dynamicChildren.length!==m.length)&&(y=0,x=!1,m=null),(w.innerHTML&&T.innerHTML==null||w.textContent&&T.textContent==null)&&a(v,""),m?qe(c.dynamicChildren,m,v,h,b,ms(u,_),g):x||V(c,u,v,null,h,b,ms(u,_),g,!1),y>0){if(y&16)ft(v,w,T,h,_);else if(y&2&&w.class!==T.class&&i(v,"class",null,T.class,_),y&4&&i(v,"style",w.style,T.style,_),y&8){const F=u.dynamicProps;for(let K=0;K{P&&Ee(P,h,u,c),E&&Ye(u,c,h,"updated")},b)},qe=(c,u,h,b,_,g,x)=>{for(let v=0;v{if(u!==h){if(u!==k)for(const g in u)!_t(g)&&!(g in h)&&i(c,g,u[g],null,_,b);for(const g in h){if(_t(g))continue;const x=h[g],v=u[g];x!==v&&g!=="value"&&i(c,g,v,x,_,b)}"value"in h&&i(c,"value",u.value,h.value,_)}},It=(c,u,h,b,_,g,x,v,y)=>{const m=u.el=c?c.el:l(""),E=u.anchor=c?c.anchor:l("");let{patchFlag:w,dynamicChildren:T,slotScopeIds:P}=u;P&&(v=v?v.concat(P):P),c==null?(n(m,h,b),n(E,h,b),ge(u.children||[],h,E,_,g,x,v,y)):w>0&&w&64&&T&&c.dynamicChildren&&c.dynamicChildren.length===T.length?(qe(c.dynamicChildren,T,h,_,g,x,v),(u.key!=null||_&&u===_.subTree)&&$r(c,u,!0)):V(c,u,h,E,_,g,x,v,y)},$t=(c,u,h,b,_,g,x,v,y)=>{u.slotScopeIds=v,c==null?u.shapeFlag&512?_.ctx.activate(u,h,b,x,y):rs(u,h,b,_,g,x,y):Zs(c,u,y)},rs=(c,u,h,b,_,g,x)=>{const v=c.component=No(c,b,_);if(mr(c)&&(v.ctx.renderer=at),Uo(v,!1,x),v.asyncDep){if(_&&_.registerDep(v,se,x),!c.el){const y=v.subTree=Be(ke);U(null,y,u,h),c.placeholder=y.el}}else se(v,c,u,h,_,g,x)},Zs=(c,u,h)=>{const b=u.component=c.component;if(bo(c,u,h))if(b.asyncDep&&!b.asyncResolved){G(b,u,h);return}else b.next=u,b.update();else u.el=c.el,b.vnode=u},se=(c,u,h,b,_,g,x)=>{const v=()=>{if(c.isMounted){let{next:w,bu:T,u:P,parent:F,vnode:K}=c;{const Ce=Fr(c);if(Ce){w&&(w.el=K.el,G(c,w,x)),Ce.asyncDep.then(()=>{le(()=>{c.isUnmounted||m()},_)});return}}let N=w,z;ze(c,!1),w?(w.el=K.el,G(c,w,x)):w=K,T&&cs(T),(z=w.props&&w.props.onVnodeBeforeUpdate)&&Ee(z,F,w,K),ze(c,!0);const X=_n(c),Se=c.subTree;c.subTree=X,A(Se,X,p(Se.el),Dt(Se),c,_,g),w.el=X.el,N===null&&yo(c,X.el),P&&le(P,_),(z=w.props&&w.props.onVnodeUpdated)&&le(()=>Ee(z,F,w,K),_)}else{let w;const{el:T,props:P}=u,{bm:F,m:K,parent:N,root:z,type:X}=c,Se=xt(u);ze(c,!1),F&&cs(F),!Se&&(w=P&&P.onVnodeBeforeMount)&&Ee(w,N,u),ze(c,!0);{z.ce&&z.ce._hasShadowRoot()&&z.ce._injectChildStyle(X,c.parent?c.parent.type:void 0);const Ce=c.subTree=_n(c);A(null,Ce,h,b,c,_,g),u.el=Ce.el}if(K&&le(K,_),!Se&&(w=P&&P.onVnodeMounted)){const Ce=u;le(()=>Ee(w,N,Ce),_)}(u.shapeFlag&256||N&&xt(N.vnode)&&N.vnode.shapeFlag&256)&&c.a&&le(c.a,_),c.isMounted=!0,u=h=b=null}};c.scope.on();const y=c.effect=new Gn(v);c.scope.off();const m=c.update=y.run.bind(y),E=c.job=y.runIfDirty.bind(y);E.i=c,E.id=c.uid,y.scheduler=()=>Gs(E),ze(c,!0),m()},G=(c,u,h)=>{u.component=c;const b=c.vnode.props;c.vnode=u,c.next=null,xo(c,u.props,b,h),To(c,u.children,h),Fe(),fn(c),De()},V=(c,u,h,b,_,g,x,v,y=!1)=>{const m=c&&c.children,E=c?c.shapeFlag:0,w=u.children,{patchFlag:T,shapeFlag:P}=u;if(T>0){if(T&128){Ft(m,w,h,b,_,g,x,v,y);return}else if(T&256){Ge(m,w,h,b,_,g,x,v,y);return}}P&8?(E&16&&ut(m,_,g),w!==m&&a(h,w)):E&16?P&16?Ft(m,w,h,b,_,g,x,v,y):ut(m,_,g,!0):(E&8&&a(h,""),P&16&&ge(w,h,b,_,g,x,v,y))},Ge=(c,u,h,b,_,g,x,v,y)=>{c=c||nt,u=u||nt;const m=c.length,E=u.length,w=Math.min(m,E);let T;for(T=0;TE?ut(c,_,g,!0,!1,w):ge(u,h,b,_,g,x,v,y,w)},Ft=(c,u,h,b,_,g,x,v,y)=>{let m=0;const E=u.length;let w=c.length-1,T=E-1;for(;m<=w&&m<=T;){const P=c[m],F=u[m]=y?He(u[m]):Pe(u[m]);if(pt(P,F))A(P,F,h,null,_,g,x,v,y);else break;m++}for(;m<=w&&m<=T;){const P=c[w],F=u[T]=y?He(u[T]):Pe(u[T]);if(pt(P,F))A(P,F,h,null,_,g,x,v,y);else break;w--,T--}if(m>w){if(m<=T){const P=T+1,F=PT)for(;m<=w;)we(c[m],_,g,!0),m++;else{const P=m,F=m,K=new Map;for(m=F;m<=T;m++){const ue=u[m]=y?He(u[m]):Pe(u[m]);ue.key!=null&&K.set(ue.key,m)}let N,z=0;const X=T-F+1;let Se=!1,Ce=0;const dt=new Array(X);for(m=0;m=X){we(ue,_,g,!0);continue}let Te;if(ue.key!=null)Te=K.get(ue.key);else for(N=F;N<=T;N++)if(dt[N-F]===0&&pt(ue,u[N])){Te=N;break}Te===void 0?we(ue,_,g,!0):(dt[Te-F]=m+1,Te>=Ce?Ce=Te:Se=!0,A(ue,u[Te],h,null,_,g,x,v,y),z++)}const tn=Se?Po(dt):nt;for(N=tn.length-1,m=X-1;m>=0;m--){const ue=F+m,Te=u[ue],sn=u[ue+1],nn=ue+1{const{el:g,type:x,transition:v,children:y,shapeFlag:m}=c;if(m&6){Je(c.component.subTree,u,h,b);return}if(m&128){c.suspense.move(u,h,b);return}if(m&64){x.move(c,u,h,at);return}if(x===_e){n(g,u,h);for(let w=0;wv.enter(g),_));else{const{leave:w,delayLeave:T,afterLeave:P}=v,F=()=>{c.ctx.isUnmounted?r(g):n(g,u,h)},K=()=>{const N=g._isLeaving||!!g[ps];g._isLeaving&&g[ps](!0),v.persisted&&!N?F():w(g,()=>{F(),P&&P()})};T?T(g,F,K):K()}else n(g,u,h)},we=(c,u,h,b=!1,_=!1)=>{const{type:g,props:x,ref:v,children:y,dynamicChildren:m,shapeFlag:E,patchFlag:w,dirs:T,cacheIndex:P,memo:F}=c;if(w===-2&&(_=!1),v!=null&&(Fe(),vt(v,null,h,c,!0),De()),P!=null&&(u.renderCache[P]=void 0),E&256){u.ctx.deactivate(c);return}const K=E&1&&T,N=!xt(c);let z;if(N&&(z=x&&x.onVnodeBeforeUnmount)&&Ee(z,u,c),E&6)Wr(c.component,h,b);else{if(E&128){c.suspense.unmount(h,b);return}K&&Ye(c,null,u,"beforeUnmount"),E&64?c.type.remove(c,u,h,at,b):m&&!m.hasOnce&&(g!==_e||w>0&&w&64)?ut(m,u,h,!1,!0):(g===_e&&w&384||!_&&E&16)&&ut(y,u,h),b&&Qs(c)}const X=F!=null&&P==null;(N&&(z=x&&x.onVnodeUnmounted)||K||X)&&le(()=>{z&&Ee(z,u,c),K&&Ye(c,null,u,"unmounted"),X&&(c.el=null)},h)},Qs=c=>{const{type:u,el:h,anchor:b,transition:_}=c;if(u===_e){Vr(h,b);return}if(u===_s){O(c);return}const g=()=>{r(h),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(c.shapeFlag&1&&_&&!_.persisted){const{leave:x,delayLeave:v}=_,y=()=>x(h,g);v?v(c.el,g,y):y()}else g()},Vr=(c,u)=>{let h;for(;c!==u;)h=S(c),r(c),c=h;r(u)},Wr=(c,u,h)=>{const{bum:b,scope:_,job:g,subTree:x,um:v,m:y,a:m}=c;vn(y),vn(m),b&&cs(b),_.stop(),g&&(g.flags|=8,we(x,c,u,h)),v&&le(v,u),le(()=>{c.isUnmounted=!0},u)},ut=(c,u,h,b=!1,_=!1,g=0)=>{for(let x=g;x{if(c.shapeFlag&6)return Dt(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const u=S(c.anchor||c.el),h=u&&u[Vi];return h?S(h):u};let is=!1;const en=(c,u,h)=>{let b;c==null?u._vnode&&(we(u._vnode,null,null,!0),b=u._vnode.component):A(u._vnode||null,c,u,null,null,null,h),u._vnode=c,is||(is=!0,fn(b),ur(),is=!1)},at={p:A,um:we,m:Je,r:Qs,mt:rs,mc:ge,pc:V,pbc:qe,n:Dt,o:e};return{render:en,hydrate:void 0,createApp:ao(en)}}function ms({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 ze({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ao(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $r(e,t,s=!1){const n=e.children,r=t.children;if(M(n)&&M(r))for(let i=0;i>1,e[s[l]]0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,o=s[i-1];i-- >0;)s[i]=o,o=t[o];return s}function Fr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fr(t)}function vn(e){if(e)for(let t=0;te.__isSuspense;function Mo(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):Li(e)}const _e=Symbol.for("v-fgt"),ns=Symbol.for("v-txt"),ke=Symbol.for("v-cmt"),_s=Symbol.for("v-stc"),St=[];let ae=null;function he(e=!1){St.push(ae=e?null:[])}function Ro(){St.pop(),ae=St[St.length-1]||null}let Ot=1;function xn(e,t=!1){Ot+=e,e<0&&ae&&t&&(ae.hasOnce=!0)}function Lr(e){return e.dynamicChildren=Ot>0?ae||nt:null,Ro(),Ot>0&&ae&&ae.push(e),e}function me(e,t,s,n,r,i){return Lr($(e,t,s,n,r,i,!0))}function Io(e,t,s,n,r){return Lr(Be(e,t,s,n,r,!0))}function Hr(e){return e?e.__v_isVNode===!0:!1}function pt(e,t){return e.type===t.type&&e.key===t.key}const Nr=({key:e})=>e??null,Ut=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Y(e)||te(e)||R(e)?{i:Re,r:e,k:t,f:!!s}:e:null);function $(e,t=null,s=null,n=0,r=null,i=e===_e?0:1,o=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Nr(t),ref:t&&Ut(t),scopeId:dr,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:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Re};return l?(Gt(f,s),i&128&&e.normalize(f)):s&&(f.shapeFlag|=Y(s)?8:16),Ot>0&&!o&&ae&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&ae.push(f),f}const Be=$o;function $o(e,t=null,s=null,n=0,r=null,i=!1){if((!e||e===no)&&(e=ke),Hr(e)){const l=ct(e,t,!0);return s&&Gt(l,s),Ot>0&&!i&&ae&&(l.shapeFlag&6?ae[ae.indexOf(e)]=l:ae.push(l)),l.patchFlag=-2,l}if(ko(e)&&(e=e.__vccOpts),t){t=Fo(t);let{class:l,style:f}=t;l&&!Y(l)&&(t.class=Ls(l)),B(f)&&(qs(f)&&!M(f)&&(f=Q({},f)),t.style=js(f))}const o=Y(e)?1:jr(e)?128:Wi(e)?64:B(e)?4:R(e)?2:0;return $(e,t,s,n,r,o,i,!0)}function Fo(e){return e?qs(e)||Or(e)?Q({},e):e:null}function ct(e,t,s=!1,n=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:f}=e,d=t?jo(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Nr(d),ref:t&&t.ref?s&&i?M(i)?i.concat(Ut(t)):[i,Ut(t)]:Ut(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ct(e.ssContent),ssFallback:e.ssFallback&&ct(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&n&&Js(a,f.clone(a)),a}function Do(e=" ",t=0){return Be(ns,null,e,t)}function bs(e="",t=!1){return t?(he(),Io(ke,null,e)):Be(ke,null,e)}function Pe(e){return e==null||typeof e=="boolean"?Be(ke):M(e)?Be(_e,null,e.slice()):Hr(e)?He(e):Be(ns,null,String(e))}function He(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ct(e)}function Gt(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(M(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Gt(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!Or(t)?t._ctx=Re:r===3&&Re&&(Re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(R(t)){if(n&65){Gt(e,{default:t});return}t={default:t,_ctx:Re},s=32}else t=String(t),n&64?(s=16,t=[Do(t)]):s=8;e.children=t,e.shapeFlag|=s}function jo(...e){const t={};for(let s=0;sie||Re;let Jt,Ms;{const e=Zt(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Jt=t("__VUE_INSTANCE_SETTERS__",s=>ie=s),Ms=t("__VUE_SSR_SETTERS__",s=>At=s)}const Rt=e=>{const t=ie;return Jt(e),e.scope.on(),()=>{e.scope.off(),Jt(t)}},wn=()=>{ie&&ie.scope.off(),Jt(null)};function Br(e){return e.vnode.shapeFlag&4}let At=!1;function Uo(e,t=!1,s=!1){t&&Ms(t);const{props:n,children:r}=e.vnode,i=Br(e);vo(e,n,i,t),Co(e,r,s||t);const o=i?Ko(e,t):void 0;return t&&Ms(!1),o}function Ko(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ro);const{setup:n}=s;if(n){Fe();const r=e.setupContext=n.length>1?Wo(e):null,i=Rt(e),o=Mt(n,e,0,[e.props,r]),l=Nn(o);if(De(),i(),(l||e.sp)&&!xt(e)&&gr(e),l){if(o.then(wn,wn),t)return o.then(f=>{Sn(e,f)}).catch(f=>{es(f,e,0)});e.asyncDep=o}else Sn(e,o)}else Ur(e)}function Sn(e,t,s){R(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:B(t)&&(e.setupState=lr(t)),Ur(e)}function Ur(e,t,s){const n=e.type;e.render||(e.render=n.render||Ie);{const r=Rt(e);Fe();try{io(e)}finally{De(),r()}}}const Vo={get(e,t){return ee(e,"get",""),e[t]}};function Wo(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Vo),slots:e.slots,emit:e.emit,expose:t}}function Xs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(lr(Ti(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in wt)return wt[s](e)},has(t,s){return s in t||s in wt}})):e.proxy}function ko(e){return R(e)&&"__vccOpts"in e}const Rs=(e,t)=>Ri(e,t,At),qo="3.5.39";/** * @vue/runtime-dom v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Is;const Cn=typeof window<"u"&&window.trustedTypes;if(Cn)try{Is=Cn.createPolicy("vue",{createHTML:e=>e})}catch{}const Ur=Is?e=>Is.createHTML(e):e=>e,Go="http://www.w3.org/2000/svg",Jo="http://www.w3.org/1998/Math/MathML",Le=typeof document<"u"?document:null,Tn=Le&&Le.createElement("template"),Yo={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 r=t==="svg"?Le.createElementNS(Go,e):t==="mathml"?Le.createElementNS(Jo,e):s?Le.createElement(e,{is:s}):Le.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Le.createTextNode(e),createComment:e=>Le.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Le.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Tn.innerHTML=Ur(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const l=Tn.content;if(n==="svg"||n==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},zo=Symbol("_vtc");function Xo(e,t,s){const n=e[zo];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const En=Symbol("_vod"),Zo=Symbol("_vsh"),Qo=Symbol(""),el=/(?:^|;)\s*display\s*:/;function tl(e,t,s){const n=e.style,r=Y(s);let i=!1;if(s&&!r){if(t)if(Y(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&mt(n,l,"")}else for(const o in t)s[o]==null&&mt(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?nl(e,o,!Y(t)&&t?t[o]:void 0,l)||mt(n,o,l):mt(n,o,"")}}else if(r){if(t!==s){const o=n[Qo];o&&(s+=";"+o),n.cssText=s,i=el.test(s)}}else t&&e.removeAttribute("style");En in e&&(e[En]=i?n.display:"",e[Zo]&&(n.display="none"))}const On=/\s*!important$/;function mt(e,t,s){if(M(s))s.forEach(n=>mt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=sl(e,t);On.test(s)?e.setProperty(et(n),s.replace(On,""),"important"):e[n]=s}}const An=["Webkit","Moz","ms"],ys={};function sl(e,t){const s=ys[t];if(s)return s;let n=be(t);if(n!=="filter"&&n in e)return ys[t]=n;n=Un(n);for(let r=0;rvs||(ul.then(()=>vs=0),vs=Date.now());function dl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const r=s.value;if(M(r)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const o=r.slice(),l=[n];for(let f=0;fe.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hl=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?Xo(e,n,o):t==="style"?tl(e,s,n):Yt(t)?zt(t)||ol(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pl(e,t,n,o))?(Rn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Mn(e,t,n,o,i,t!=="value")):e._isVueCE&&(gl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Y(n)))?Rn(e,be(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Mn(e,t,n,o))};function pl(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&$n(t)&&R(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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return $n(t)&&Y(s)?!1:t in e}function gl(e,t){const s=e._def.props;if(!s)return!1;const n=be(t);return Array.isArray(s)?s.some(r=>be(r)===n):Object.keys(s).some(r=>be(r)===n)}const ml=Q({patchProp:hl},Yo);let Fn;function _l(){return Fn||(Fn=Eo(ml))}const bl=((...e)=>{const t=_l().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=vl(n);if(!r)return;const i=t._component;!R(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,yl(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function yl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function vl(e){return Y(e)?document.querySelector(e):e}const xl="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",Dn={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,workflowBranches:e=>`workflows/${e}/branches`,workflowSwitchBranch:e=>`workflows/${e}/switch-branch`,workflowHistory:e=>`workflows/${e}/history`,node:e=>`nodes/${e}`,nodeGenerate:e=>`nodes/${e}/generate`,nodeRetry:e=>`nodes/${e}/retry`,nodeComplete:e=>`nodes/${e}/complete`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeReview:e=>`nodes/${e}/review`,nodeImages:e=>`nodes/${e}/images`,workflowReview:e=>`workflows/${e}/review`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,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",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",settingsImport:"settings/import",settingsSnapshots:"settings/snapshots",settingsRollback:"settings/rollback",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materialCategory:e=>`material-categories/${e}`,materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeProvider:"api-discovery/probe-provider",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class wl extends Error{constructor(s,n,r={}){super(n);os(this,"code");os(this,"details");this.name="ApiClientError",this.code=s,this.details=r}}async function jn(e,t){return Sl(e,{method:"GET",query:t})}async function Sl(e,t={}){const n=await(await fetch(Cl(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 wl(n.error_code,n.message,n.details);return n.data}function Cl(e,t){const s=e.replace(/^\/+/,""),n=new URL(`${xl}/${s}`,window.location.origin);for(const[r,i]of Object.entries(t??{}))i!==void 0&&n.searchParams.set(r,String(i));return`${n.pathname}${n.search}`}const Tl={class:"plugin-page-shell"},El={class:"topbar"},Ol={class:"actions"},Al=["data-state"],Pl=["href"],Ml={key:0,class:"notice"},Rl={key:1,class:"notice"},Il={key:2,class:"metrics","aria-label":"ImageStudio dashboard"},$l={class:"activity"},Fl={key:0,class:"empty"},Dl={key:0,class:"empty"},jl=ki({__name:"App",setup(e){const t=Ht(null),s=Ht(null),n=Ht(!0),r=Ht(""),i=Rs(()=>{var d;return`${((d=t.value)==null?void 0:d.api_base)??""}/web`}),o=Rs(()=>{var a;const d=(a=s.value)==null?void 0:a.queue;return d?d.pending+d.running+d.failed+d.dead_letter:0});br(l);async function l(){n.value=!0,r.value="";try{const[d,a]=await Promise.all([jn(Dn.uiBootstrap),jn(Dn.dashboardSummary)]);t.value=d,s.value=a}catch(d){r.value=d instanceof Error?d.message:"加载失败"}finally{n.value=!1}}function f(d=0){return d<1024?`${d} B`:d<1024*1024?`${(d/1024).toFixed(1)} KB`:d<1024*1024*1024?`${(d/1024/1024).toFixed(1)} MB`:`${(d/1024/1024/1024).toFixed(1)} GB`}return(d,a)=>{var p,S,C,D,A,q,K,I,H,O,J,ce,fe,ge;return he(),me("main",Tl,[$("header",El,[$("div",null,[$("h1",null,oe(((p=t.value)==null?void 0:p.display_name)??"ImageStudio"),1),$("p",null,oe(((S=t.value)==null?void 0:S.dashboard_user)??"AstrBot"),1)]),$("div",Ol,[$("span",{class:"status","data-state":((C=s.value)==null?void 0:C.plugin_status)??"loading"},oe(((D=s.value)==null?void 0:D.plugin_status)??"loading"),9,Al),$("button",{type:"button",onClick:l},"刷新"),t.value?(he(),me("a",{key:0,class:"primary",href:i.value,target:"_blank",rel:"noreferrer"},"工作台",8,Pl)):bs("",!0)])]),r.value?(he(),me("section",Ml,oe(r.value),1)):n.value?(he(),me("section",Rl,"加载中")):(he(),me("section",Il,[$("article",null,[a[0]||(a[0]=$("span",null,"角色",-1)),$("strong",null,oe(((A=s.value)==null?void 0:A.active_profiles)??0),1)]),$("article",null,[a[1]||(a[1]=$("span",null,"队列",-1)),$("strong",null,oe(o.value),1)]),$("article",null,[a[2]||(a[2]=$("span",null,"运行中",-1)),$("strong",null,oe(((q=s.value)==null?void 0:q.queue.running)??0),1)]),$("article",null,[a[3]||(a[3]=$("span",null,"失败",-1)),$("strong",null,oe(((K=s.value)==null?void 0:K.queue.failed)??0),1)]),$("article",null,[a[4]||(a[4]=$("span",null,"存储",-1)),$("strong",null,oe(f((I=s.value)==null?void 0:I.storage.total_bytes)),1)])])),$("section",$l,[$("div",null,[a[5]||(a[5]=$("h2",null,"最近图片",-1)),$("ul",null,[(he(!0),me(_e,null,dn(((H=s.value)==null?void 0:H.recent_images)??[],de=>(he(),me("li",{key:String(de.image_id)},[$("span",null,oe(de.image_id),1),$("small",null,oe(de.created_at),1)]))),128)),(J=(O=s.value)==null?void 0:O.recent_images)!=null&&J.length?bs("",!0):(he(),me("li",Fl,"暂无图片"))])]),$("div",null,[a[6]||(a[6]=$("h2",null,"任务",-1)),$("ul",null,[(he(!0),me(_e,null,dn(((ce=s.value)==null?void 0:ce.recent_jobs)??[],de=>(he(),me("li",{key:String(de.task_id)},[$("span",null,oe(de.task_id),1),$("small",null,oe(de.status),1)]))),128)),(ge=(fe=s.value)==null?void 0:fe.recent_jobs)!=null&&ge.length?bs("",!0):(he(),me("li",Dl,"暂无任务"))])])])])}}}),Ll=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Hl=Ll(jl,[["__scopeId","data-v-7e06e9af"]]);bl(Hl).mount("#app"); +**/let Is;const Cn=typeof window<"u"&&window.trustedTypes;if(Cn)try{Is=Cn.createPolicy("vue",{createHTML:e=>e})}catch{}const Kr=Is?e=>Is.createHTML(e):e=>e,Go="http://www.w3.org/2000/svg",Jo="http://www.w3.org/1998/Math/MathML",Le=typeof document<"u"?document:null,Tn=Le&&Le.createElement("template"),Yo={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 r=t==="svg"?Le.createElementNS(Go,e):t==="mathml"?Le.createElementNS(Jo,e):s?Le.createElement(e,{is:s}):Le.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Le.createTextNode(e),createComment:e=>Le.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Le.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Tn.innerHTML=Kr(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const l=Tn.content;if(n==="svg"||n==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},zo=Symbol("_vtc");function Xo(e,t,s){const n=e[zo];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const En=Symbol("_vod"),Zo=Symbol("_vsh"),Qo=Symbol(""),el=/(?:^|;)\s*display\s*:/;function tl(e,t,s){const n=e.style,r=Y(s);let i=!1;if(s&&!r){if(t)if(Y(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&mt(n,l,"")}else for(const o in t)s[o]==null&&mt(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?nl(e,o,!Y(t)&&t?t[o]:void 0,l)||mt(n,o,l):mt(n,o,"")}}else if(r){if(t!==s){const o=n[Qo];o&&(s+=";"+o),n.cssText=s,i=el.test(s)}}else t&&e.removeAttribute("style");En in e&&(e[En]=i?n.display:"",e[Zo]&&(n.display="none"))}const On=/\s*!important$/;function mt(e,t,s){if(M(s))s.forEach(n=>mt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=sl(e,t);On.test(s)?e.setProperty(et(n),s.replace(On,""),"important"):e[n]=s}}const An=["Webkit","Moz","ms"],ys={};function sl(e,t){const s=ys[t];if(s)return s;let n=be(t);if(n!=="filter"&&n in e)return ys[t]=n;n=Kn(n);for(let r=0;rvs||(ul.then(()=>vs=0),vs=Date.now());function dl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const r=s.value;if(M(r)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const o=r.slice(),l=[n];for(let f=0;fe.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hl=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?Xo(e,n,o):t==="style"?tl(e,s,n):Yt(t)?zt(t)||ol(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pl(e,t,n,o))?(Rn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Mn(e,t,n,o,i,t!=="value")):e._isVueCE&&(gl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Y(n)))?Rn(e,be(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Mn(e,t,n,o))};function pl(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&$n(t)&&R(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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return $n(t)&&Y(s)?!1:t in e}function gl(e,t){const s=e._def.props;if(!s)return!1;const n=be(t);return Array.isArray(s)?s.some(r=>be(r)===n):Object.keys(s).some(r=>be(r)===n)}const ml=Q({patchProp:hl},Yo);let Fn;function _l(){return Fn||(Fn=Eo(ml))}const bl=((...e)=>{const t=_l().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=vl(n);if(!r)return;const i=t._component;!R(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,yl(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function yl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function vl(e){return Y(e)?document.querySelector(e):e}const xl="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",Dn={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,workflowBranches:e=>`workflows/${e}/branches`,workflowSwitchBranch:e=>`workflows/${e}/switch-branch`,workflowHistory:e=>`workflows/${e}/history`,node:e=>`nodes/${e}`,nodeGenerate:e=>`nodes/${e}/generate`,nodeRetry:e=>`nodes/${e}/retry`,nodeComplete:e=>`nodes/${e}/complete`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeReview:e=>`nodes/${e}/review`,nodeImages:e=>`nodes/${e}/images`,workflowReview:e=>`workflows/${e}/review`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,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",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",settingsImport:"settings/import",settingsSnapshots:"settings/snapshots",settingsRollback:"settings/rollback",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materialCategory:e=>`material-categories/${e}`,materials:"materials",materialUpload:"materials/upload",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeProvider:"api-discovery/probe-provider",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class wl extends Error{constructor(s,n,r={}){super(n);os(this,"code");os(this,"details");this.name="ApiClientError",this.code=s,this.details=r}}async function jn(e,t){return Sl(e,{method:"GET",query:t})}async function Sl(e,t={}){const n=await(await fetch(Cl(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 wl(n.error_code,n.message,n.details);return n.data}function Cl(e,t){const s=e.replace(/^\/+/,""),n=new URL(`${xl}/${s}`,window.location.origin);for(const[r,i]of Object.entries(t??{}))i!==void 0&&n.searchParams.set(r,String(i));return`${n.pathname}${n.search}`}const Tl={class:"plugin-page-shell"},El={class:"topbar"},Ol={class:"actions"},Al=["data-state"],Pl=["href"],Ml={key:0,class:"notice"},Rl={key:1,class:"notice"},Il={key:2,class:"metrics","aria-label":"ImageStudio dashboard"},$l={class:"activity"},Fl={key:0,class:"empty"},Dl={key:0,class:"empty"},jl=ki({__name:"App",setup(e){const t=Ht(null),s=Ht(null),n=Ht(!0),r=Ht(""),i=Rs(()=>{var d;return`${((d=t.value)==null?void 0:d.api_base)??""}/web`}),o=Rs(()=>{var a;const d=(a=s.value)==null?void 0:a.queue;return d?d.pending+d.running+d.failed+d.dead_letter:0});br(l);async function l(){n.value=!0,r.value="";try{const[d,a]=await Promise.all([jn(Dn.uiBootstrap),jn(Dn.dashboardSummary)]);t.value=d,s.value=a}catch(d){r.value=d instanceof Error?d.message:"加载失败"}finally{n.value=!1}}function f(d=0){return d<1024?`${d} B`:d<1024*1024?`${(d/1024).toFixed(1)} KB`:d<1024*1024*1024?`${(d/1024/1024).toFixed(1)} MB`:`${(d/1024/1024/1024).toFixed(1)} GB`}return(d,a)=>{var p,S,C,D,A,q,U,I,H,O,J,ce,fe,ge;return he(),me("main",Tl,[$("header",El,[$("div",null,[$("h1",null,oe(((p=t.value)==null?void 0:p.display_name)??"ImageStudio"),1),$("p",null,oe(((S=t.value)==null?void 0:S.dashboard_user)??"AstrBot"),1)]),$("div",Ol,[$("span",{class:"status","data-state":((C=s.value)==null?void 0:C.plugin_status)??"loading"},oe(((D=s.value)==null?void 0:D.plugin_status)??"loading"),9,Al),$("button",{type:"button",onClick:l},"刷新"),t.value?(he(),me("a",{key:0,class:"primary",href:i.value,target:"_blank",rel:"noreferrer"},"工作台",8,Pl)):bs("",!0)])]),r.value?(he(),me("section",Ml,oe(r.value),1)):n.value?(he(),me("section",Rl,"加载中")):(he(),me("section",Il,[$("article",null,[a[0]||(a[0]=$("span",null,"角色",-1)),$("strong",null,oe(((A=s.value)==null?void 0:A.active_profiles)??0),1)]),$("article",null,[a[1]||(a[1]=$("span",null,"队列",-1)),$("strong",null,oe(o.value),1)]),$("article",null,[a[2]||(a[2]=$("span",null,"运行中",-1)),$("strong",null,oe(((q=s.value)==null?void 0:q.queue.running)??0),1)]),$("article",null,[a[3]||(a[3]=$("span",null,"失败",-1)),$("strong",null,oe(((U=s.value)==null?void 0:U.queue.failed)??0),1)]),$("article",null,[a[4]||(a[4]=$("span",null,"存储",-1)),$("strong",null,oe(f((I=s.value)==null?void 0:I.storage.total_bytes)),1)])])),$("section",$l,[$("div",null,[a[5]||(a[5]=$("h2",null,"最近图片",-1)),$("ul",null,[(he(!0),me(_e,null,dn(((H=s.value)==null?void 0:H.recent_images)??[],de=>(he(),me("li",{key:String(de.image_id)},[$("span",null,oe(de.image_id),1),$("small",null,oe(de.created_at),1)]))),128)),(J=(O=s.value)==null?void 0:O.recent_images)!=null&&J.length?bs("",!0):(he(),me("li",Fl,"暂无图片"))])]),$("div",null,[a[6]||(a[6]=$("h2",null,"任务",-1)),$("ul",null,[(he(!0),me(_e,null,dn(((ce=s.value)==null?void 0:ce.recent_jobs)??[],de=>(he(),me("li",{key:String(de.task_id)},[$("span",null,oe(de.task_id),1),$("small",null,oe(de.status),1)]))),128)),(ge=(fe=s.value)==null?void 0:fe.recent_jobs)!=null&&ge.length?bs("",!0):(he(),me("li",Dl,"暂无任务"))])])])])}}}),Ll=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Hl=Ll(jl,[["__scopeId","data-v-7e06e9af"]]);bl(Hl).mount("#app"); diff --git a/pages/imagestudio/index.html b/pages/imagestudio/index.html index d14605f..7f1f720 100644 --- a/pages/imagestudio/index.html +++ b/pages/imagestudio/index.html @@ -1,3 +1,3 @@ - +
    diff --git a/web/assets/index-BconNihN.js b/web/assets/index-BconNihN.js new file mode 100644 index 0000000..715c037 --- /dev/null +++ b/web/assets/index-BconNihN.js @@ -0,0 +1,17 @@ +var Gi=Object.defineProperty;var zi=(e,t,n)=>t in e?Gi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var sl=(e,t,n)=>zi(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const u of i.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&l(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function l(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();/** +* @vue/shared v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function El(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const pe={},jt=[],ut=()=>{},Wo=()=>!1,Nn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),jn=e=>e.startsWith("onUpdate:"),De=Object.assign,Ol=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Yi=Object.prototype.hasOwnProperty,re=(e,t)=>Yi.call(e,t),W=Array.isArray,Wt=e=>pn(e)==="[object Map]",Wn=e=>pn(e)==="[object Set]",co=e=>pn(e)==="[object Date]",J=e=>typeof e=="function",we=e=>typeof e=="string",ct=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",Ho=e=>(ce(e)||J(e))&&J(e.then)&&J(e.catch),Ko=Object.prototype.toString,pn=e=>Ko.call(e),Qi=e=>pn(e).slice(8,-1),qo=e=>pn(e)==="[object Object]",Il=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,en=El(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Xi=/-\w/g,Xe=Hn(e=>e.replace(Xi,t=>t.slice(1).toUpperCase())),Zi=/\B([A-Z])/g,Vt=Hn(e=>e.replace(Zi,"-$1").toLowerCase()),Jo=Hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),il=Hn(e=>e?`on${Jo(e)}`:""),at=(e,t)=>!Object.is(e,t),En=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},Kn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fo;const qn=()=>fo||(fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Al(e){if(W(e)){const t={};for(let n=0;n{if(n){const l=n.split(tr);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function Jn(e){let t="";if(we(e))t=e;else if(W(e))for(let n=0;nhn(n,t))}const Yo=e=>!!(e&&e.__v_isRef===!0),a=e=>we(e)?e:e==null?"":W(e)||ce(e)&&(e.toString===Ko||!J(e.toString))?Yo(e)?a(e.value):JSON.stringify(e,Qo,2):String(e),Qo=(e,t)=>Yo(t)?Qo(e,t.value):Wt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,s],i)=>(n[rl(l,i)+" =>"]=s,n),{})}:Wn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>rl(n))}:ct(t)?rl(t):ce(t)&&!W(t)&&!qo(t)?String(t):t,rl=(e,t="")=>{var n;return ct(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Pe;class ar{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&&Pe&&(Pe.active?(this.parent=Pe,this.index=(Pe.scopes||(Pe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(Pe===this)Pe=this.prevScope;else{let t=Pe;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n0)return;if(nn){let t=nn;for(nn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;tn;){let t=tn;for(tn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function ts(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ns(e){let t,n=e.depsTail,l=n;for(;l;){const s=l.prevDep;l.version===-1?(l===n&&(n=s),Rl(l),cr(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=s}e.deps=t,e.depsTail=n}function ml(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ls(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ls(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===an)||(e.globalVersion=an,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ml(e))))return;e.flags|=2;const t=e.dep,n=ge,l=Ze;ge=e,Ze=!0;try{ts(e);const s=e.fn(e._value);(t.version===0||at(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ge=n,Ze=l,ns(e),e.flags&=-3}}function Rl(e,t=!1){const{dep:n,prevSub:l,nextSub:s}=e;if(l&&(l.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Rl(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function cr(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ze=!0;const os=[];function dt(){os.push(Ze),Ze=!1}function ft(){const e=os.pop();Ze=e===void 0?!0:e}function po(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ge;ge=void 0;try{t()}finally{ge=n}}}let an=0;class dr{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ul{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(!ge||!Ze||ge===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ge)n=this.activeLink=new dr(ge,this),ge.deps?(n.prevDep=ge.depsTail,ge.depsTail.nextDep=n,ge.depsTail=n):ge.deps=ge.depsTail=n,ss(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=ge.depsTail,n.nextDep=void 0,ge.depsTail.nextDep=n,ge.depsTail=n,ge.deps===n&&(ge.deps=l)}return n}trigger(t){this.version++,an++,this.notify(t)}notify(t){Ml();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{$l()}}}function ss(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)ss(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const yl=new WeakMap,Ut=Symbol(""),bl=Symbol(""),un=Symbol("");function Te(e,t,n){if(Ze&&ge){let l=yl.get(e);l||yl.set(e,l=new Map);let s=l.get(n);s||(l.set(n,s=new Ul),s.map=l,s.key=n),s.track()}}function mt(e,t,n,l,s,i){const u=yl.get(e);if(!u){an++;return}const d=h=>{h&&h.trigger()};if(Ml(),t==="clear")u.forEach(d);else{const h=W(e),m=h&&Il(n);if(h&&n==="length"){const g=Number(l);u.forEach((b,O)=>{(O==="length"||O===un||!ct(O)&&O>=g)&&d(b)})}else switch((n!==void 0||u.has(void 0))&&d(u.get(n)),m&&d(u.get(un)),t){case"add":h?m&&d(u.get("length")):(d(u.get(Ut)),Wt(e)&&d(u.get(bl)));break;case"delete":h||(d(u.get(Ut)),Wt(e)&&d(u.get(bl)));break;case"set":Wt(e)&&d(u.get(Ut));break}}$l()}function Ft(e){const t=ie(e);return t===e?t:(Te(t,"iterate",un),ze(e)?t:t.map(et))}function Gn(e){return Te(e=ie(e),"iterate",un),e}function it(e,t){return wt(e)?Jt(Bt(e)?et(t):t):et(t)}const fr={__proto__:null,[Symbol.iterator](){return ul(this,Symbol.iterator,e=>it(this,e))},concat(...e){return Ft(this).concat(...e.map(t=>W(t)?Ft(t):t))},entries(){return ul(this,"entries",e=>(e[1]=it(this,e[1]),e))},every(e,t){return vt(this,"every",e,t,void 0,arguments)},filter(e,t){return vt(this,"filter",e,t,n=>n.map(l=>it(this,l)),arguments)},find(e,t){return vt(this,"find",e,t,n=>it(this,n),arguments)},findIndex(e,t){return vt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return vt(this,"findLast",e,t,n=>it(this,n),arguments)},findLastIndex(e,t){return vt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return vt(this,"forEach",e,t,void 0,arguments)},includes(...e){return cl(this,"includes",e)},indexOf(...e){return cl(this,"indexOf",e)},join(e){return Ft(this).join(e)},lastIndexOf(...e){return cl(this,"lastIndexOf",e)},map(e,t){return vt(this,"map",e,t,void 0,arguments)},pop(){return Yt(this,"pop")},push(...e){return Yt(this,"push",e)},reduce(e,...t){return ho(this,"reduce",e,t)},reduceRight(e,...t){return ho(this,"reduceRight",e,t)},shift(){return Yt(this,"shift")},some(e,t){return vt(this,"some",e,t,void 0,arguments)},splice(...e){return Yt(this,"splice",e)},toReversed(){return Ft(this).toReversed()},toSorted(e){return Ft(this).toSorted(e)},toSpliced(...e){return Ft(this).toSpliced(...e)},unshift(...e){return Yt(this,"unshift",e)},values(){return ul(this,"values",e=>it(this,e))}};function ul(e,t,n){const l=Gn(e),s=l[t]();return l!==e&&!ze(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const pr=Array.prototype;function vt(e,t,n,l,s,i){const u=Gn(e),d=u!==e&&!ze(e),h=u[t];if(h!==pr[t]){const b=h.apply(e,i);return d?et(b):b}let m=n;u!==e&&(d?m=function(b,O){return n.call(this,it(e,b),O,e)}:n.length>2&&(m=function(b,O){return n.call(this,b,O,e)}));const g=h.call(u,m,l);return d&&s?s(g):g}function ho(e,t,n,l){const s=Gn(e),i=s!==e&&!ze(e);let u=n,d=!1;s!==e&&(i?(d=l.length===0,u=function(m,g,b){return d&&(d=!1,m=it(e,m)),n.call(this,m,it(e,g),b,e)}):n.length>3&&(u=function(m,g,b){return n.call(this,m,g,b,e)}));const h=s[t](u,...l);return d?it(e,h):h}function cl(e,t,n){const l=ie(e);Te(l,"iterate",un);const s=l[t](...n);return(s===-1||s===!1)&&Fl(n[0])?(n[0]=ie(n[0]),l[t](...n)):s}function Yt(e,t,n=[]){dt(),Ml();const l=ie(e)[t].apply(e,n);return $l(),ft(),l}const hr=El("__proto__,__v_isRef,__isVue"),is=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ct));function vr(e){ct(e)||(e=String(e));const t=ie(this);return Te(t,"has",e),t.hasOwnProperty(e)}class rs{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return l===(s?i?Sr:ds:i?cs:us).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const u=W(t);if(!s){let h;if(u&&(h=fr[n]))return h;if(n==="hasOwnProperty")return vr}const d=Reflect.get(t,n,Ee(t)?t:l);if((ct(n)?is.has(n):hr(n))||(s||Te(t,"get",n),i))return d;if(Ee(d)){const h=u&&Il(n)?d:d.value;return s&&ce(h)?kl(h):h}return ce(d)?s?kl(d):Vl(d):d}}class as extends rs{constructor(t=!1){super(!1,t)}set(t,n,l,s){let i=t[n];const u=W(t)&&Il(n);if(!this._isShallow){const m=wt(i);if(!ze(l)&&!wt(l)&&(i=ie(i),l=ie(l)),!u&&Ee(i)&&!Ee(l))return m||(i.value=l),!0}const d=u?Number(n)e,Pn=e=>Reflect.getPrototypeOf(e);function br(e,t,n){return function(...l){const s=this.__v_raw,i=ie(s),u=Wt(i),d=e==="entries"||e===Symbol.iterator&&u,h=e==="keys"&&u,m=s[e](...l),g=n?wl:t?Jt:et;return!t&&Te(i,"iterate",h?bl:Ut),De(Object.create(m),{next(){const{value:b,done:O}=m.next();return O?{value:b,done:O}:{value:d?[g(b[0]),g(b[1])]:g(b),done:O}}})}}function Dn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function wr(e,t){const n={get(s){const i=this.__v_raw,u=ie(i),d=ie(s);e||(at(s,d)&&Te(u,"get",s),Te(u,"get",d));const{has:h}=Pn(u),m=t?wl:e?Jt:et;if(h.call(u,s))return m(i.get(s));if(h.call(u,d))return m(i.get(d));i!==u&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Te(ie(s),"iterate",Ut),s.size},has(s){const i=this.__v_raw,u=ie(i),d=ie(s);return e||(at(s,d)&&Te(u,"has",s),Te(u,"has",d)),s===d?i.has(s):i.has(s)||i.has(d)},forEach(s,i){const u=this,d=u.__v_raw,h=ie(d),m=t?wl:e?Jt:et;return!e&&Te(h,"iterate",Ut),d.forEach((g,b)=>s.call(i,m(g),m(b),u))}};return De(n,e?{add:Dn("add"),set:Dn("set"),delete:Dn("delete"),clear:Dn("clear")}:{add(s){const i=ie(this),u=Pn(i),d=ie(s),h=!t&&!ze(s)&&!wt(s)?d:s;return u.has.call(i,h)||at(s,h)&&u.has.call(i,s)||at(d,h)&&u.has.call(i,d)||(i.add(h),mt(i,"add",h,h)),this},set(s,i){!t&&!ze(i)&&!wt(i)&&(i=ie(i));const u=ie(this),{has:d,get:h}=Pn(u);let m=d.call(u,s);m||(s=ie(s),m=d.call(u,s));const g=h.call(u,s);return u.set(s,i),m?at(i,g)&&mt(u,"set",s,i):mt(u,"add",s,i),this},delete(s){const i=ie(this),{has:u,get:d}=Pn(i);let h=u.call(i,s);h||(s=ie(s),h=u.call(i,s)),d&&d.call(i,s);const m=i.delete(s);return h&&mt(i,"delete",s,void 0),m},clear(){const s=ie(this),i=s.size!==0,u=s.clear();return i&&mt(s,"clear",void 0,void 0),u}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=br(s,e,t)}),n}function Bl(e,t){const n=wr(e,t);return(l,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?l:Reflect.get(re(n,s)&&s in l?n:l,s,i)}const kr={get:Bl(!1,!1)},Cr={get:Bl(!1,!0)},xr={get:Bl(!0,!1)};const us=new WeakMap,cs=new WeakMap,ds=new WeakMap,Sr=new WeakMap;function Pr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Vl(e){return wt(e)?e:Ll(e,!1,_r,kr,us)}function Dr(e){return Ll(e,!1,yr,Cr,cs)}function kl(e){return Ll(e,!0,mr,xr,ds)}function Ll(e,t,n,l,s){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=s.get(e);if(i)return i;const u=Pr(Qi(e));if(u===0)return e;const d=new Proxy(e,u===2?l:n);return s.set(e,d),d}function Bt(e){return wt(e)?Bt(e.__v_raw):!!(e&&e.__v_isReactive)}function wt(e){return!!(e&&e.__v_isReadonly)}function ze(e){return!!(e&&e.__v_isShallow)}function Fl(e){return e?!!e.__v_raw:!1}function ie(e){const t=e&&e.__v_raw;return t?ie(t):e}function Tr(e){return!re(e,"__v_skip")&&Object.isExtensible(e)&&Go(e,"__v_skip",!0),e}const et=e=>ce(e)?Vl(e):e,Jt=e=>ce(e)?kl(e):e;function Ee(e){return e?e.__v_isRef===!0:!1}function N(e){return Er(e,!1)}function Er(e,t){return Ee(e)?e:new Or(e,t)}class Or{constructor(t,n){this.dep=new Ul,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ie(t),this._value=n?t:et(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||ze(t)||wt(t);t=l?t:ie(t),at(t,n)&&(this._rawValue=t,this._value=l?t:et(t),this.dep.trigger())}}function Ir(e){return Ee(e)?e.value:e}const Ar={get:(e,t,n)=>t==="__v_raw"?e:Ir(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const s=e[t];return Ee(s)&&!Ee(n)?(s.value=n,!0):Reflect.set(e,t,n,l)}};function fs(e){return Bt(e)?e:new Proxy(e,Ar)}class Mr{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ul(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=an-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&ge!==this)return es(this,!0),!0}get value(){const t=this.dep.track();return ls(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function $r(e,t,n=!1){let l,s;return J(e)?l=e:(l=e.get,s=e.set),new Mr(l,s,n)}const Tn={},An=new WeakMap;let $t;function Rr(e,t=!1,n=$t){if(n){let l=An.get(n);l||An.set(n,l=[]),l.push(e)}}function Ur(e,t,n=pe){const{immediate:l,deep:s,once:i,scheduler:u,augmentJob:d,call:h}=n,m=V=>s?V:ze(V)||s===!1||s===0?yt(V,1):yt(V);let g,b,O,$,Z=!1,j=!1;if(Ee(e)?(b=()=>e.value,Z=ze(e)):Bt(e)?(b=()=>m(e),Z=!0):W(e)?(j=!0,Z=e.some(V=>Bt(V)||ze(V)),b=()=>e.map(V=>{if(Ee(V))return V.value;if(Bt(V))return m(V);if(J(V))return h?h(V,2):V()})):J(e)?t?b=h?()=>h(e,2):e:b=()=>{if(O){dt();try{O()}finally{ft()}}const V=$t;$t=g;try{return h?h(e,3,[$]):e($)}finally{$t=V}}:b=ut,t&&s){const V=b,fe=s===!0?1/0:s;b=()=>yt(V(),fe)}const he=ur(),de=()=>{g.stop(),he&&he.active&&Ol(he.effects,g)};if(i&&t){const V=t;t=(...fe)=>{const Oe=V(...fe);return de(),Oe}}let H=j?new Array(e.length).fill(Tn):Tn;const ae=V=>{if(!(!(g.flags&1)||!g.dirty&&!V))if(t){const fe=g.run();if(V||s||Z||(j?fe.some((Oe,Ie)=>at(Oe,H[Ie])):at(fe,H))){O&&O();const Oe=$t;$t=g;try{const Ie=[fe,H===Tn?void 0:j&&H[0]===Tn?[]:H,$];H=fe,h?h(t,3,Ie):t(...Ie)}finally{$t=Oe}}}else g.run()};return d&&d(ae),g=new Xo(b),g.scheduler=u?()=>u(ae,!1):ae,$=V=>Rr(V,!1,g),O=g.onStop=()=>{const V=An.get(g);if(V){if(h)h(V,4);else for(const fe of V)fe();An.delete(g)}},t?l?ae(!0):H=g.run():u?u(ae.bind(null,!0),!0):g.run(),de.pause=g.pause.bind(g),de.resume=g.resume.bind(g),de.stop=de,de}function yt(e,t=1/0,n){if(t<=0||!ce(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ee(e))yt(e.value,t,n);else if(W(e))for(let l=0;l{yt(l,t,n)});else if(qo(e)){for(const l in e)yt(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&yt(e[l],t,n)}return e}/** +* @vue/runtime-core v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function vn(e,t,n,l){try{return l?e(...l):e()}catch(s){zn(s,t,n)}}function tt(e,t,n,l){if(J(e)){const s=vn(e,t,n,l);return s&&Ho(s)&&s.catch(i=>{zn(i,t,n)}),s}if(W(e)){const s=[];for(let i=0;i>>1,s=Ue[l],i=cn(s);i=cn(n)?Ue.push(e):Ue.splice(Vr(t),0,e),e.flags|=1,vs()}}function vs(){Mn||(Mn=ps.then(_s))}function Lr(e){W(e)?Ht.push(...e):Tt&&e.id===-1?Tt.splice(Nt+1,0,e):e.flags&1||(Ht.push(e),e.flags|=1),vs()}function vo(e,t,n=st+1){for(;ncn(n)-cn(l));if(Ht.length=0,Tt){Tt.push(...t);return}for(Tt=t,Nt=0;Nte.id==null?e.flags&2?-1:1/0:e.id;function _s(e){try{for(st=0;st{l._d&&Po(-1);const i=$n(t);let u;try{u=e(...s)}finally{$n(i),l._d&&Po(1)}return u};return l._n=!0,l._c=!0,l._d=!0,l}function M(e,t){if(Ge===null)return e;const n=Zn(Ge),l=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&J(t)?t.call(l&&l.proxy):t}}const jr=Symbol.for("v-scx"),Wr=()=>On(jr);function dl(e,t,n){return ys(e,t,n)}function ys(e,t,n=pe){const{immediate:l,deep:s,flush:i,once:u}=n,d=De({},n),h=t&&l||!t&&i!=="post";let m;if(fn){if(i==="sync"){const $=Wr();m=$.__watcherHandles||($.__watcherHandles=[])}else if(!h){const $=()=>{};return $.stop=ut,$.resume=ut,$.pause=ut,$}}const g=Be;d.call=($,Z,j)=>tt($,g,Z,j);let b=!1;i==="post"?d.scheduler=$=>{Ne($,g&&g.suspense)}:i!=="sync"&&(b=!0,d.scheduler=($,Z)=>{Z?$():Nl($)}),d.augmentJob=$=>{t&&($.flags|=4),b&&($.flags|=2,g&&($.id=g.uid,$.i=g))};const O=Ur(e,t,d);return fn&&(m?m.push(O):h&&O()),O}function Hr(e,t,n){const l=this.proxy,s=we(e)?e.includes(".")?bs(l,e):()=>l[e]:e.bind(l,l);let i;J(t)?i=t:(i=t.handler,n=t);const u=gn(this),d=ys(s,i.bind(l),n);return u(),d}function bs(e,t){const n=t.split(".");return()=>{let l=e;for(let s=0;se.__isTeleport,fl=Symbol("_leaveCb");function jl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,jl(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 Jr(e,t){return J(e)?De({name:e.name},t,{setup:e}):e}function ws(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function go(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Rn=new WeakMap;function ln(e,t,n,l,s=!1){if(W(e)){e.forEach((j,he)=>ln(j,t&&(W(t)?t[he]:t),n,l,s));return}if(on(l)&&!s){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&ln(e,t,n,l.component.subTree);return}const i=l.shapeFlag&4?Zn(l.component):l.el,u=s?null:i,{i:d,r:h}=e,m=t&&t.r,g=d.refs===pe?d.refs={}:d.refs,b=d.setupState,O=ie(b),$=b===pe?Wo:j=>go(g,j)?!1:re(O,j),Z=(j,he)=>!(he&&go(g,he));if(m!=null&&m!==h){if(_o(t),we(m))g[m]=null,$(m)&&(b[m]=null);else if(Ee(m)){const j=t;Z(m,j.k)&&(m.value=null),j.k&&(g[j.k]=null)}}if(J(h)){dt();try{vn(h,d,12,[u,g])}finally{ft()}}else{const j=we(h),he=Ee(h);if(j||he){const de=()=>{if(e.f){const H=j?$(h)?b[h]:g[h]:Z()||!e.k?h.value:g[e.k];if(s)W(H)&&Ol(H,i);else if(W(H))H.includes(i)||H.push(i);else if(j)g[h]=[i],$(h)&&(b[h]=g[h]);else{const ae=[i];Z(h,e.k)&&(h.value=ae),e.k&&(g[e.k]=ae)}}else j?(g[h]=u,$(h)&&(b[h]=u)):he&&(Z(h,e.k)&&(h.value=u),e.k&&(g[e.k]=u))};if(u){const H=()=>{de(),Rn.delete(e)};H.id=-1,Rn.set(e,H),Ne(H,n)}else _o(e),de()}}}function _o(e){const t=Rn.get(e);t&&(t.flags|=8,Rn.delete(e))}qn().requestIdleCallback;qn().cancelIdleCallback;const on=e=>!!e.type.__asyncLoader,ks=e=>e.type.__isKeepAlive;function Gr(e,t){Cs(e,"a",t)}function zr(e,t){Cs(e,"da",t)}function Cs(e,t,n=Be){const l=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Yn(t,l,n),n){let s=n.parent;for(;s&&s.parent;)ks(s.parent.vnode)&&Yr(l,t,n,s),s=s.parent}}function Yr(e,t,n,l){const s=Yn(t,e,l,!0);Ss(()=>{Ol(l[t],s)},n)}function Yn(e,t,n=Be,l=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...u)=>{dt();const d=gn(n),h=tt(t,n,e,u);return d(),ft(),h});return l?s.unshift(i):s.push(i),i}}const kt=e=>(t,n=Be)=>{(!fn||e==="sp")&&Yn(e,(...l)=>t(...l),n)},Qr=kt("bm"),xs=kt("m"),Xr=kt("bu"),Zr=kt("u"),ea=kt("bum"),Ss=kt("um"),ta=kt("sp"),na=kt("rtg"),la=kt("rtc");function oa(e,t=Be){Yn("ec",e,t)}const sa=Symbol.for("v-ndc");function ve(e,t,n,l){let s;const i=n,u=W(e);if(u||we(e)){const d=u&&Bt(e);let h=!1,m=!1;d&&(h=!ze(e),m=wt(e),e=Gn(e)),s=new Array(e.length);for(let g=0,b=e.length;gt(d,h,void 0,i));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,m=d.length;he?qs(e)?Zn(e):Cl(e.parent):null,sn=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=>Cl(e.parent),$root:e=>Cl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ds(e),$forceUpdate:e=>e.f||(e.f=()=>{Nl(e.update)}),$nextTick:e=>e.n||(e.n=hs.bind(e.proxy)),$watch:e=>Hr.bind(e)}),pl=(e,t)=>e!==pe&&!e.__isScriptSetup&&re(e,t),ia={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:s,props:i,accessCache:u,type:d,appContext:h}=e;if(t[0]!=="$"){const O=u[t];if(O!==void 0)switch(O){case 1:return l[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(pl(l,t))return u[t]=1,l[t];if(s!==pe&&re(s,t))return u[t]=2,s[t];if(re(i,t))return u[t]=3,i[t];if(n!==pe&&re(n,t))return u[t]=4,n[t];xl&&(u[t]=0)}}const m=sn[t];let g,b;if(m)return t==="$attrs"&&Te(e.attrs,"get",""),m(e);if((g=d.__cssModules)&&(g=g[t]))return g;if(n!==pe&&re(n,t))return u[t]=4,n[t];if(b=h.config.globalProperties,re(b,t))return b[t]},set({_:e},t,n){const{data:l,setupState:s,ctx:i}=e;return pl(s,t)?(s[t]=n,!0):l!==pe&&re(l,t)?(l[t]=n,!0):re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:s,props:i,type:u}},d){let h;return!!(n[d]||e!==pe&&d[0]!=="$"&&re(e,d)||pl(t,d)||re(i,d)||re(l,d)||re(sn,d)||re(s.config.globalProperties,d)||(h=u.__cssModules)&&h[d])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function mo(e){return W(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xl=!0;function ra(e){const t=Ds(e),n=e.proxy,l=e.ctx;xl=!1,t.beforeCreate&&yo(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:u,watch:d,provide:h,inject:m,created:g,beforeMount:b,mounted:O,beforeUpdate:$,updated:Z,activated:j,deactivated:he,beforeDestroy:de,beforeUnmount:H,destroyed:ae,unmounted:V,render:fe,renderTracked:Oe,renderTriggered:Ie,errorCaptured:je,serverPrefetch:pt,expose:_e,inheritAttrs:Ve,components:ht,directives:nt,filters:Ct}=t;if(m&&aa(m,l,null),u)for(const R in u){const ee=u[R];J(ee)&&(l[R]=ee.bind(n))}if(s){const R=s.call(n,n);ce(R)&&(e.data=Vl(R))}if(xl=!0,i)for(const R in i){const ee=i[R],Q=J(ee)?ee.bind(n,n):J(ee.get)?ee.get.bind(n,n):ut,We=!J(ee)&&J(ee.set)?ee.set.bind(n):ut,Le=Dt({get:Q,set:We});Object.defineProperty(l,R,{enumerable:!0,configurable:!0,get:()=>Le.value,set:K=>Le.value=K})}if(d)for(const R in d)Ps(d[R],l,n,R);if(h){const R=J(h)?h.call(n):h;Reflect.ownKeys(R).forEach(ee=>{Nr(ee,R[ee])})}g&&yo(g,e,"c");function ke(R,ee){W(ee)?ee.forEach(Q=>R(Q.bind(n))):ee&&R(ee.bind(n))}if(ke(Qr,b),ke(xs,O),ke(Xr,$),ke(Zr,Z),ke(Gr,j),ke(zr,he),ke(oa,je),ke(la,Oe),ke(na,Ie),ke(ea,H),ke(Ss,V),ke(ta,pt),W(_e))if(_e.length){const R=e.exposed||(e.exposed={});_e.forEach(ee=>{Object.defineProperty(R,ee,{get:()=>n[ee],set:Q=>n[ee]=Q,enumerable:!0})})}else e.exposed||(e.exposed={});fe&&e.render===ut&&(e.render=fe),Ve!=null&&(e.inheritAttrs=Ve),ht&&(e.components=ht),nt&&(e.directives=nt),pt&&ws(e)}function aa(e,t,n=ut){W(e)&&(e=Sl(e));for(const l in e){const s=e[l];let i;ce(s)?"default"in s?i=On(s.from||l,s.default,!0):i=On(s.from||l):i=On(s),Ee(i)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>i.value,set:u=>i.value=u}):t[l]=i}}function yo(e,t,n){tt(W(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ps(e,t,n,l){let s=l.includes(".")?bs(n,l):()=>n[l];if(we(e)){const i=t[e];J(i)&&dl(s,i)}else if(J(e))dl(s,e.bind(n));else if(ce(e))if(W(e))e.forEach(i=>Ps(i,t,n,l));else{const i=J(e.handler)?e.handler.bind(n):t[e.handler];J(i)&&dl(s,i,e)}}function Ds(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:u}}=e.appContext,d=i.get(t);let h;return d?h=d:!s.length&&!n&&!l?h=t:(h={},s.length&&s.forEach(m=>Un(h,m,u,!0)),Un(h,t,u)),ce(t)&&i.set(t,h),h}function Un(e,t,n,l=!1){const{mixins:s,extends:i}=t;i&&Un(e,i,n,!0),s&&s.forEach(u=>Un(e,u,n,!0));for(const u in t)if(!(l&&u==="expose")){const d=ua[u]||n&&n[u];e[u]=d?d(e[u],t[u]):t[u]}return e}const ua={data:bo,props:wo,emits:wo,methods:Xt,computed:Xt,beforeCreate:Re,created:Re,beforeMount:Re,mounted:Re,beforeUpdate:Re,updated:Re,beforeDestroy:Re,beforeUnmount:Re,destroyed:Re,unmounted:Re,activated:Re,deactivated:Re,errorCaptured:Re,serverPrefetch:Re,components:Xt,directives:Xt,watch:da,provide:bo,inject:ca};function bo(e,t){return t?e?function(){return De(J(e)?e.call(this,this):e,J(t)?t.call(this,this):t)}:t:e}function ca(e,t){return Xt(Sl(e),Sl(t))}function Sl(e){if(W(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Xe(t)}Modifiers`]||e[`${Vt(t)}Modifiers`];function va(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||pe;let s=n;const i=t.startsWith("update:"),u=i&&ha(l,t.slice(7));u&&(u.trim&&(s=n.map(g=>we(g)?g.trim():g)),u.number&&(s=n.map(Kn)));let d,h=l[d=il(t)]||l[d=il(Xe(t))];!h&&i&&(h=l[d=il(Vt(t))]),h&&tt(h,e,6,s);const m=l[d+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,tt(m,e,6,s)}}const ga=new WeakMap;function Es(e,t,n=!1){const l=n?ga:t.emitsCache,s=l.get(e);if(s!==void 0)return s;const i=e.emits;let u={},d=!1;if(!J(e)){const h=m=>{const g=Es(m,t,!0);g&&(d=!0,De(u,g))};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!i&&!d?(ce(e)&&l.set(e,null),null):(W(i)?i.forEach(h=>u[h]=null):De(u,i),ce(e)&&l.set(e,u),u)}function Qn(e,t){return!e||!Nn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,Vt(t))||re(e,t))}function ko(e){const{type:t,vnode:n,proxy:l,withProxy:s,propsOptions:[i],slots:u,attrs:d,emit:h,render:m,renderCache:g,props:b,data:O,setupState:$,ctx:Z,inheritAttrs:j}=e,he=$n(e);let de,H;try{if(n.shapeFlag&4){const V=s||l,fe=V;de=rt(m.call(fe,V,g,b,$,O,Z)),H=d}else{const V=t;de=rt(V.length>1?V(b,{attrs:d,slots:u,emit:h}):V(b,null)),H=t.props?d:_a(d)}}catch(V){rn.length=0,zn(V,e,1),de=bt(Et)}let ae=de;if(H&&j!==!1){const V=Object.keys(H),{shapeFlag:fe}=ae;V.length&&fe&7&&(i&&V.some(jn)&&(H=ma(H,i)),ae=Gt(ae,H,!1,!0))}return n.dirs&&(ae=Gt(ae,null,!1,!0),ae.dirs=ae.dirs?ae.dirs.concat(n.dirs):n.dirs),n.transition&&jl(ae,n.transition),de=ae,$n(he),de}const _a=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nn(n))&&((t||(t={}))[n]=e[n]);return t},ma=(e,t)=>{const n={};for(const l in e)(!jn(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function ya(e,t,n){const{props:l,children:s,component:i}=e,{props:u,children:d,patchFlag:h}=t,m=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&h>=0){if(h&1024)return!0;if(h&16)return l?Co(l,u,m):!!u;if(h&8){const g=t.dynamicProps;for(let b=0;bObject.create(Is),Ms=e=>Object.getPrototypeOf(e)===Is;function wa(e,t,n,l=!1){const s={},i=As();e.propsDefaults=Object.create(null),$s(e,t,s,i);for(const u in e.propsOptions[0])u in s||(s[u]=void 0);n?e.props=l?s:Dr(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function ka(e,t,n,l){const{props:s,attrs:i,vnode:{patchFlag:u}}=e,d=ie(s),[h]=e.propsOptions;let m=!1;if((l||u>0)&&!(u&16)){if(u&8){const g=e.vnode.dynamicProps;for(let b=0;b{h=!0;const[O,$]=Rs(b,t,!0);De(u,O),$&&d.push(...$)};!n&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!i&&!h)return ce(e)&&l.set(e,jt),jt;if(W(i))for(let g=0;ge==="_"||e==="_ctx"||e==="$stable",Hl=e=>W(e)?e.map(rt):[rt(e)],xa=(e,t,n)=>{if(t._n)return t;const l=Fr((...s)=>Hl(t(...s)),n);return l._c=!1,l},Us=(e,t,n)=>{const l=e._ctx;for(const s in e){if(Wl(s))continue;const i=e[s];if(J(i))t[s]=xa(s,i,l);else if(i!=null){const u=Hl(i);t[s]=()=>u}}},Bs=(e,t)=>{const n=Hl(t);e.slots.default=()=>n},Vs=(e,t,n)=>{for(const l in t)(n||!Wl(l))&&(e[l]=t[l])},Sa=(e,t,n)=>{const l=e.slots=As();if(e.vnode.shapeFlag&32){const s=t._;s?(Vs(l,t,n),n&&Go(l,"_",s,!0)):Us(t,l)}else t&&Bs(e,t)},Pa=(e,t,n)=>{const{vnode:l,slots:s}=e;let i=!0,u=pe;if(l.shapeFlag&32){const d=t._;d?n&&d===1?i=!1:Vs(s,t,n):(i=!t.$stable,Us(t,s)),u=t}else t&&(Bs(e,t),u={default:1});if(i)for(const d in s)!Wl(d)&&u[d]==null&&delete s[d]},Ne=Ia;function Da(e){return Ta(e)}function Ta(e,t){const n=qn();n.__VUE__=!0;const{insert:l,remove:s,patchProp:i,createElement:u,createText:d,createComment:h,setText:m,setElementText:g,parentNode:b,nextSibling:O,setScopeId:$=ut,insertStaticContent:Z}=e,j=(p,v,y,_=null,k=null,w=null,T=void 0,D=null,P=!!v.dynamicChildren)=>{if(p===v)return;p&&!Qt(p,v)&&(_=Ce(p),K(p,k,w,!0),p=null),v.patchFlag===-2&&(P=!1,v.dynamicChildren=null);const{type:C,ref:L,shapeFlag:I}=v;switch(C){case Xn:he(p,v,y,_);break;case Et:de(p,v,y,_);break;case vl:p==null&&H(v,y,_,T);break;case Y:ht(p,v,y,_,k,w,T,D,P);break;default:I&1?fe(p,v,y,_,k,w,T,D,P):I&6?nt(p,v,y,_,k,w,T,D,P):(I&64||I&128)&&C.process(p,v,y,_,k,w,T,D,P,lt)}L!=null&&k?ln(L,p&&p.ref,w,v||p,!v):L==null&&p&&p.ref!=null&&ln(p.ref,null,w,p,!0)},he=(p,v,y,_)=>{if(p==null)l(v.el=d(v.children),y,_);else{const k=v.el=p.el;v.children!==p.children&&m(k,v.children)}},de=(p,v,y,_)=>{p==null?l(v.el=h(v.children||""),y,_):v.el=p.el},H=(p,v,y,_)=>{[p.el,p.anchor]=Z(p.children,v,y,_,p.el,p.anchor)},ae=({el:p,anchor:v},y,_)=>{let k;for(;p&&p!==v;)k=O(p),l(p,y,_),p=k;l(v,y,_)},V=({el:p,anchor:v})=>{let y;for(;p&&p!==v;)y=O(p),s(p),p=y;s(v)},fe=(p,v,y,_,k,w,T,D,P)=>{if(v.type==="svg"?T="svg":v.type==="math"&&(T="mathml"),p==null)Oe(v,y,_,k,w,T,D,P);else{const C=p.el&&p.el._isVueCE?p.el:null;try{C&&C._beginPatch(),pt(p,v,k,w,T,D,P)}finally{C&&C._endPatch()}}},Oe=(p,v,y,_,k,w,T,D)=>{let P,C;const{props:L,shapeFlag:I,transition:U,dirs:F}=p;if(P=p.el=u(p.type,w,L&&L.is,L),I&8?g(P,p.children):I&16&&je(p.children,P,null,_,k,hl(p,w),T,D),F&&It(p,null,_,"created"),Ie(P,p,p.scopeId,T,_),L){for(const te in L)te!=="value"&&!en(te)&&i(P,te,null,L[te],w,_);"value"in L&&i(P,"value",null,L.value,w),(C=L.onVnodeBeforeMount)&&ot(C,_,p)}F&&It(p,null,_,"beforeMount");const X=Ea(k,U);X&&U.beforeEnter(P),l(P,v,y),((C=L&&L.onVnodeMounted)||X||F)&&Ne(()=>{try{C&&ot(C,_,p),X&&U.enter(P),F&&It(p,null,_,"mounted")}finally{}},k)},Ie=(p,v,y,_,k)=>{if(y&&$(p,y),_)for(let w=0;w<_.length;w++)$(p,_[w]);if(k){let w=k.subTree;if(v===w||js(w.type)&&(w.ssContent===v||w.ssFallback===v)){const T=k.vnode;Ie(p,T,T.scopeId,T.slotScopeIds,k.parent)}}},je=(p,v,y,_,k,w,T,D,P=0)=>{for(let C=P;C{const D=v.el=p.el;let{patchFlag:P,dynamicChildren:C,dirs:L}=v;P|=p.patchFlag&16;const I=p.props||pe,U=v.props||pe;let F;if(y&&At(y,!1),(F=U.onVnodeBeforeUpdate)&&ot(F,y,v,p),L&&It(v,p,y,"beforeUpdate"),y&&At(y,!0),C&&(!p.dynamicChildren||p.dynamicChildren.length!==C.length)&&(P=0,T=!1,C=null),(I.innerHTML&&U.innerHTML==null||I.textContent&&U.textContent==null)&&g(D,""),C?_e(p.dynamicChildren,C,D,y,_,hl(v,k),w):T||ee(p,v,D,null,y,_,hl(v,k),w,!1),P>0){if(P&16)Ve(D,I,U,y,k);else if(P&2&&I.class!==U.class&&i(D,"class",null,U.class,k),P&4&&i(D,"style",I.style,U.style,k),P&8){const X=v.dynamicProps;for(let te=0;te{F&&ot(F,y,v,p),L&&It(v,p,y,"updated")},_)},_e=(p,v,y,_,k,w,T)=>{for(let D=0;D{if(v!==y){if(v!==pe)for(const w in v)!en(w)&&!(w in y)&&i(p,w,v[w],null,k,_);for(const w in y){if(en(w))continue;const T=y[w],D=v[w];T!==D&&w!=="value"&&i(p,w,D,T,k,_)}"value"in y&&i(p,"value",v.value,y.value,k)}},ht=(p,v,y,_,k,w,T,D,P)=>{const C=v.el=p?p.el:d(""),L=v.anchor=p?p.anchor:d("");let{patchFlag:I,dynamicChildren:U,slotScopeIds:F}=v;F&&(D=D?D.concat(F):F),p==null?(l(C,y,_),l(L,y,_),je(v.children||[],y,L,k,w,T,D,P)):I>0&&I&64&&U&&p.dynamicChildren&&p.dynamicChildren.length===U.length?(_e(p.dynamicChildren,U,y,k,w,T,D),(v.key!=null||k&&v===k.subTree)&&Ls(p,v,!0)):ee(p,v,y,L,k,w,T,D,P)},nt=(p,v,y,_,k,w,T,D,P)=>{v.slotScopeIds=D,p==null?v.shapeFlag&512?k.ctx.activate(v,y,_,T,P):Ct(v,y,_,k,w,T,P):xt(p,v,P)},Ct=(p,v,y,_,k,w,T)=>{const D=p.component=Fa(p,_,k);if(ks(p)&&(D.ctx.renderer=lt),ja(D,!1,T),D.asyncDep){if(k&&k.registerDep(D,ke,T),!p.el){const P=D.subTree=bt(Et);de(null,P,v,y),p.placeholder=P.el}}else ke(D,p,v,y,k,w,T)},xt=(p,v,y)=>{const _=v.component=p.component;if(ya(p,v,y))if(_.asyncDep&&!_.asyncResolved){R(_,v,y);return}else _.next=v,_.update();else v.el=p.el,_.vnode=v},ke=(p,v,y,_,k,w,T)=>{const D=()=>{if(p.isMounted){let{next:I,bu:U,u:F,parent:X,vnode:te}=p;{const He=Fs(p);if(He){I&&(I.el=te.el,R(p,I,T)),He.asyncDep.then(()=>{Ne(()=>{p.isUnmounted||C()},k)});return}}let le=I,be;At(p,!1),I?(I.el=te.el,R(p,I,T)):I=te,U&&En(U),(be=I.props&&I.props.onVnodeBeforeUpdate)&&ot(be,X,I,te),At(p,!0);const xe=ko(p),Fe=p.subTree;p.subTree=xe,j(Fe,xe,b(Fe.el),Ce(Fe),p,k,w),I.el=xe.el,le===null&&ba(p,xe.el),F&&Ne(F,k),(be=I.props&&I.props.onVnodeUpdated)&&Ne(()=>ot(be,X,I,te),k)}else{let I;const{el:U,props:F}=v,{bm:X,m:te,parent:le,root:be,type:xe}=p,Fe=on(v);At(p,!1),X&&En(X),!Fe&&(I=F&&F.onVnodeBeforeMount)&&ot(I,le,v),At(p,!0);{be.ce&&be.ce._hasShadowRoot()&&be.ce._injectChildStyle(xe,p.parent?p.parent.type:void 0);const He=p.subTree=ko(p);j(null,He,y,_,p,k,w),v.el=He.el}if(te&&Ne(te,k),!Fe&&(I=F&&F.onVnodeMounted)){const He=v;Ne(()=>ot(I,le,He),k)}(v.shapeFlag&256||le&&on(le.vnode)&&le.vnode.shapeFlag&256)&&p.a&&Ne(p.a,k),p.isMounted=!0,v=y=_=null}};p.scope.on();const P=p.effect=new Xo(D);p.scope.off();const C=p.update=P.run.bind(P),L=p.job=P.runIfDirty.bind(P);L.i=p,L.id=p.uid,P.scheduler=()=>Nl(L),At(p,!0),C()},R=(p,v,y)=>{v.component=p;const _=p.vnode.props;p.vnode=v,p.next=null,ka(p,v.props,_,y),Pa(p,v.children,y),dt(),vo(p),ft()},ee=(p,v,y,_,k,w,T,D,P=!1)=>{const C=p&&p.children,L=p?p.shapeFlag:0,I=v.children,{patchFlag:U,shapeFlag:F}=v;if(U>0){if(U&128){We(C,I,y,_,k,w,T,D,P);return}else if(U&256){Q(C,I,y,_,k,w,T,D,P);return}}F&8?(L&16&&me(C,k,w),I!==C&&g(y,I)):L&16?F&16?We(C,I,y,_,k,w,T,D,P):me(C,k,w,!0):(L&8&&g(y,""),F&16&&je(I,y,_,k,w,T,D,P))},Q=(p,v,y,_,k,w,T,D,P)=>{p=p||jt,v=v||jt;const C=p.length,L=v.length,I=Math.min(C,L);let U;for(U=0;UL?me(p,k,w,!0,!1,I):je(v,y,_,k,w,T,D,P,I)},We=(p,v,y,_,k,w,T,D,P)=>{let C=0;const L=v.length;let I=p.length-1,U=L-1;for(;C<=I&&C<=U;){const F=p[C],X=v[C]=P?_t(v[C]):rt(v[C]);if(Qt(F,X))j(F,X,y,null,k,w,T,D,P);else break;C++}for(;C<=I&&C<=U;){const F=p[I],X=v[U]=P?_t(v[U]):rt(v[U]);if(Qt(F,X))j(F,X,y,null,k,w,T,D,P);else break;I--,U--}if(C>I){if(C<=U){const F=U+1,X=FU)for(;C<=I;)K(p[C],k,w,!0),C++;else{const F=C,X=C,te=new Map;for(C=X;C<=U;C++){const A=v[C]=P?_t(v[C]):rt(v[C]);A.key!=null&&te.set(A.key,C)}let le,be=0;const xe=U-X+1;let Fe=!1,He=0;const Ot=new Array(xe);for(C=0;C=xe){K(A,k,w,!0);continue}let Je;if(A.key!=null)Je=te.get(A.key);else for(le=X;le<=U;le++)if(Ot[le-X]===0&&Qt(A,v[le])){Je=le;break}Je===void 0?K(A,k,w,!0):(Ot[Je-X]=C+1,Je>=He?He=Je:Fe=!0,j(A,v[Je],y,null,k,w,T,D,P),be++)}const $e=Fe?Oa(Ot):jt;for(le=$e.length-1,C=xe-1;C>=0;C--){const A=X+C,Je=v[A],_n=v[A+1],mn=A+1{const{el:w,type:T,transition:D,children:P,shapeFlag:C}=p;if(C&6){Le(p.component.subTree,v,y,_);return}if(C&128){p.suspense.move(v,y,_);return}if(C&64){T.move(p,v,y,lt);return}if(T===Y){l(w,v,y);for(let I=0;ID.enter(w),k));else{const{leave:I,delayLeave:U,afterLeave:F}=D,X=()=>{p.ctx.isUnmounted?s(w):l(w,v,y)},te=()=>{const le=w._isLeaving||!!w[fl];w._isLeaving&&w[fl](!0),D.persisted&&!le?X():I(w,()=>{X(),F&&F()})};U?U(w,X,te):te()}else l(w,v,y)},K=(p,v,y,_=!1,k=!1)=>{const{type:w,props:T,ref:D,children:P,dynamicChildren:C,shapeFlag:L,patchFlag:I,dirs:U,cacheIndex:F,memo:X}=p;if(I===-2&&(k=!1),D!=null&&(dt(),ln(D,null,y,p,!0),ft()),F!=null&&(v.renderCache[F]=void 0),L&256){v.ctx.deactivate(p);return}const te=L&1&&U,le=!on(p);let be;if(le&&(be=T&&T.onVnodeBeforeUnmount)&&ot(be,v,p),L&6)ue(p.component,y,_);else{if(L&128){p.suspense.unmount(y,_);return}te&&It(p,null,v,"beforeUnmount"),L&64?p.type.remove(p,v,y,lt,_):C&&!C.hasOnce&&(w!==Y||I>0&&I&64)?me(C,v,y,!1,!0):(w===Y&&I&384||!k&&L&16)&&me(P,v,y),_&&qe(p)}const xe=X!=null&&F==null;(le&&(be=T&&T.onVnodeUnmounted)||te||xe)&&Ne(()=>{be&&ot(be,v,p),te&&It(p,null,v,"unmounted"),xe&&(p.el=null)},y)},qe=p=>{const{type:v,el:y,anchor:_,transition:k}=p;if(v===Y){Ye(y,_);return}if(v===vl){V(p);return}const w=()=>{s(y),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(p.shapeFlag&1&&k&&!k.persisted){const{leave:T,delayLeave:D}=k,P=()=>T(y,w);D?D(p.el,w,P):P()}else w()},Ye=(p,v)=>{let y;for(;p!==v;)y=O(p),s(p),p=y;s(v)},ue=(p,v,y)=>{const{bum:_,scope:k,job:w,subTree:T,um:D,m:P,a:C}=p;So(P),So(C),_&&En(_),k.stop(),w&&(w.flags|=8,K(T,p,v,y)),D&&Ne(D,v),Ne(()=>{p.isUnmounted=!0},v)},me=(p,v,y,_=!1,k=!1,w=0)=>{for(let T=w;T{if(p.shapeFlag&6)return Ce(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const v=O(p.anchor||p.el),y=v&&v[Kr];return y?O(y):v};let ye=!1;const Ae=(p,v,y)=>{let _;p==null?v._vnode&&(K(v._vnode,null,null,!0),_=v._vnode.component):j(v._vnode||null,p,v,null,null,null,y),v._vnode=p,ye||(ye=!0,vo(_),gs(),ye=!1)},lt={p:j,um:K,m:Le,r:qe,mt:Ct,mc:je,pc:ee,pbc:_e,n:Ce,o:e};return{render:Ae,hydrate:void 0,createApp:pa(Ae)}}function hl({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function At({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ea(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ls(e,t,n=!1){const l=e.children,s=t.children;if(W(l)&&W(s))for(let i=0;i>1,e[n[d]]0&&(t[l]=n[i-1]),n[i]=l)}}for(i=n.length,u=n[i-1];i-- >0;)n[i]=u,u=t[u];return n}function Fs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fs(t)}function So(e){if(e)for(let t=0;te.__isSuspense;function Ia(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Lr(e)}const Y=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),vl=Symbol.for("v-stc"),rn=[];let Ke=null;function x(e=!1){rn.push(Ke=e?null:[])}function Aa(){rn.pop(),Ke=rn[rn.length-1]||null}let dn=1;function Po(e,t=!1){dn+=e,e<0&&Ke&&t&&(Ke.hasOnce=!0)}function Ws(e){return e.dynamicChildren=dn>0?Ke||jt:null,Aa(),dn>0&&Ke&&Ke.push(e),e}function S(e,t,n,l,s,i){return Ws(o(e,t,n,l,s,i,!0))}function Ma(e,t,n,l,s){return Ws(bt(e,t,n,l,s,!0))}function Hs(e){return e?e.__v_isVNode===!0:!1}function Qt(e,t){return e.type===t.type&&e.key===t.key}const Ks=({key:e})=>e??null,In=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Ee(e)||J(e)?{i:Ge,r:e,k:t,f:!!n}:e:null);function o(e,t=null,n=null,l=0,s=null,i=e===Y?0:1,u=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ks(t),ref:t&&In(t),scopeId:ms,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:l,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ge};return d?(Bn(h,n),i&128&&e.normalize(h)):n&&(h.shapeFlag|=we(n)?8:16),dn>0&&!u&&Ke&&(h.patchFlag>0||i&6)&&h.patchFlag!==32&&Ke.push(h),h}const bt=$a;function $a(e,t=null,n=null,l=0,s=null,i=!1){if((!e||e===sa)&&(e=Et),Hs(e)){const d=Gt(e,t,!0);return n&&Bn(d,n),dn>0&&!i&&Ke&&(d.shapeFlag&6?Ke[Ke.indexOf(e)]=d:Ke.push(d)),d.patchFlag=-2,d}if(qa(e)&&(e=e.__vccOpts),t){t=Ra(t);let{class:d,style:h}=t;d&&!we(d)&&(t.class=Jn(d)),ce(h)&&(Fl(h)&&!W(h)&&(h=De({},h)),t.style=Al(h))}const u=we(e)?1:js(e)?128:qr(e)?64:ce(e)?4:J(e)?2:0;return o(e,t,n,l,s,u,i,!0)}function Ra(e){return e?Fl(e)||Ms(e)?De({},e):e:null}function Gt(e,t,n=!1,l=!1){const{props:s,ref:i,patchFlag:u,children:d,transition:h}=e,m=t?Ba(s||{},t):s,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:m,key:m&&Ks(m),ref:t&&t.ref?n&&i?W(i)?i.concat(In(t)):[i,In(t)]:In(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Y?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gt(e.ssContent),ssFallback:e.ssFallback&&Gt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&l&&jl(g,h.clone(g)),g}function Ua(e=" ",t=0){return bt(Xn,null,e,t)}function G(e="",t=!1){return t?(x(),Ma(Et,null,e)):bt(Et,null,e)}function rt(e){return e==null||typeof e=="boolean"?bt(Et):W(e)?bt(Y,null,e.slice()):Hs(e)?_t(e):bt(Xn,null,String(e))}function _t(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gt(e)}function Bn(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(l&65){const s=t.default;s&&(s._c&&(s._d=!1),Bn(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ms(t)?t._ctx=Ge:s===3&&Ge&&(Ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(J(t)){if(l&65){Bn(e,{default:t});return}t={default:t,_ctx:Ge},n=32}else t=String(t),l&64?(n=16,t=[Ua(t)]):n=8;e.children=t,e.shapeFlag|=n}function Ba(...e){const t={};for(let n=0;nBe||Ge;let Vn,Dl;{const e=qn(),t=(n,l)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(l),i=>{s.length>1?s.forEach(u=>u(i)):s[0](i)}};Vn=t("__VUE_INSTANCE_SETTERS__",n=>Be=n),Dl=t("__VUE_SSR_SETTERS__",n=>fn=n)}const gn=e=>{const t=Be;return Vn(e),e.scope.on(),()=>{e.scope.off(),Vn(t)}},Do=()=>{Be&&Be.scope.off(),Vn(null)};function qs(e){return e.vnode.shapeFlag&4}let fn=!1;function ja(e,t=!1,n=!1){t&&Dl(t);const{props:l,children:s}=e.vnode,i=qs(e);wa(e,l,i,t),Sa(e,s,n||t);const u=i?Wa(e,t):void 0;return t&&Dl(!1),u}function Wa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ia);const{setup:l}=n;if(l){dt();const s=e.setupContext=l.length>1?Ka(e):null,i=gn(e),u=vn(l,e,0,[e.props,s]),d=Ho(u);if(ft(),i(),(d||e.sp)&&!on(e)&&ws(e),d){if(u.then(Do,Do),t)return u.then(h=>{To(e,h)}).catch(h=>{zn(h,e,0)});e.asyncDep=u}else To(e,u)}else Js(e)}function To(e,t,n){J(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=fs(t)),Js(e)}function Js(e,t,n){const l=e.type;e.render||(e.render=l.render||ut);{const s=gn(e);dt();try{ra(e)}finally{ft(),s()}}}const Ha={get(e,t){return Te(e,"get",""),e[t]}};function Ka(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ha),slots:e.slots,emit:e.emit,expose:t}}function Zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(fs(Tr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in sn)return sn[n](e)},has(t,n){return n in t||n in sn}})):e.proxy}function qa(e){return J(e)&&"__vccOpts"in e}const Dt=(e,t)=>$r(e,t,fn),Ja="3.5.39";/** +* @vue/runtime-dom v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Tl;const Eo=typeof window<"u"&&window.trustedTypes;if(Eo)try{Tl=Eo.createPolicy("vue",{createHTML:e=>e})}catch{}const Gs=Tl?e=>Tl.createHTML(e):e=>e,Ga="http://www.w3.org/2000/svg",za="http://www.w3.org/1998/Math/MathML",gt=typeof document<"u"?document:null,Oo=gt&>.createElement("template"),Ya={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const s=t==="svg"?gt.createElementNS(Ga,e):t==="mathml"?gt.createElementNS(za,e):n?gt.createElement(e,{is:n}):gt.createElement(e);return e==="select"&&l&&l.multiple!=null&&s.setAttribute("multiple",l.multiple),s},createText:e=>gt.createTextNode(e),createComment:e=>gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,s,i){const u=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Oo.innerHTML=Gs(l==="svg"?`${e}`:l==="mathml"?`${e}`:e);const d=Oo.content;if(l==="svg"||l==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,n)}return[u?u.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Qa=Symbol("_vtc");function Xa(e,t,n){const l=e[Qa];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Io=Symbol("_vod"),Za=Symbol("_vsh"),eu=Symbol(""),tu=/(?:^|;)\s*display\s*:/;function nu(e,t,n){const l=e.style,s=we(n);let i=!1;if(n&&!s){if(t)if(we(t))for(const u of t.split(";")){const d=u.slice(0,u.indexOf(":")).trim();n[d]==null&&Zt(l,d,"")}else for(const u in t)n[u]==null&&Zt(l,u,"");for(const u in n){u==="display"&&(i=!0);const d=n[u];d!=null?ou(e,u,!we(t)&&t?t[u]:void 0,d)||Zt(l,u,d):Zt(l,u,"")}}else if(s){if(t!==n){const u=l[eu];u&&(n+=";"+u),l.cssText=n,i=tu.test(n)}}else t&&e.removeAttribute("style");Io in e&&(e[Io]=i?l.display:"",e[Za]&&(l.display="none"))}const Ao=/\s*!important$/;function Zt(e,t,n){if(W(n))n.forEach(l=>Zt(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=lu(e,t);Ao.test(n)?e.setProperty(Vt(l),n.replace(Ao,""),"important"):e[l]=n}}const Mo=["Webkit","Moz","ms"],gl={};function lu(e,t){const n=gl[t];if(n)return n;let l=Xe(t);if(l!=="filter"&&l in e)return gl[t]=l;l=Jo(l);for(let s=0;s_l||(cu.then(()=>_l=0),_l=Date.now());function fu(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;const s=n.value;if(W(s)){const i=l.stopImmediatePropagation;l.stopImmediatePropagation=()=>{i.call(l),l._stopped=!0};const u=s.slice(),d=[l];for(let h=0;he.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,pu=(e,t,n,l,s,i)=>{const u=s==="svg";t==="class"?Xa(e,l,u):t==="style"?nu(e,n,l):Nn(t)?jn(t)||iu(e,t,n,l,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):hu(e,t,l,u))?(Uo(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ro(e,t,l,u,i,t!=="value")):e._isVueCE&&(vu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!we(l)))?Uo(e,Xe(t),l,i,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Ro(e,t,l,u))};function hu(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Vo(t)&&J(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Vo(t)&&we(n)?!1:t in e}function vu(e,t){const n=e._def.props;if(!n)return!1;const l=Xe(t);return Array.isArray(n)?n.some(s=>Xe(s)===l):Object.keys(n).some(s=>Xe(s)===l)}const Ln=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>En(t,n):t};function gu(e){e.target.composing=!0}function Lo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const qt=Symbol("_assign");function Fo(e,t,n){return t&&(e=e.trim()),n&&(e=Kn(e)),e}const B={created(e,{modifiers:{lazy:t,trim:n,number:l}},s){e[qt]=Ln(s);const i=l||s.props&&s.props.type==="number";Rt(e,t?"change":"input",u=>{u.target.composing||e[qt](Fo(e.value,n,i))}),(n||i)&&Rt(e,"change",()=>{e.value=Fo(e.value,n,i)}),t||(Rt(e,"compositionstart",gu),Rt(e,"compositionend",Lo),Rt(e,"change",Lo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:s,number:i}},u){if(e[qt]=Ln(u),e.composing)return;const d=(i||e.type==="number")&&!/^0\d/.test(e.value)?Kn(e.value):e.value,h=t??"";if(d===h)return;const m=e.getRootNode();(m instanceof Document||m instanceof ShadowRoot)&&m.activeElement===e&&e.type!=="range"&&(l&&t===n||s&&e.value.trim()===h)||(e.value=h)}},Mt={deep:!0,created(e,{value:t,modifiers:{number:n}},l){const s=Wn(t);Rt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,u=>u.selected).map(u=>n?Kn(Fn(u)):Fn(u));e[qt](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,hs(()=>{e._assigning=!1})}),e[qt]=Ln(l)},mounted(e,{value:t}){No(e,t)},beforeUpdate(e,t,n){e[qt]=Ln(n)},updated(e,{value:t}){e._assigning||No(e,t)}};function No(e,t){const n=e.multiple,l=W(t);if(!(n&&!l&&!Wn(t))){for(let s=0,i=e.options.length;sString(m)===String(d)):u.selected=rr(t,d)>-1}else u.selected=t.has(d);else if(hn(Fn(u),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Fn(e){return"_value"in e?e._value:e.value}const _u=De({patchProp:pu},Ya);let jo;function mu(){return jo||(jo=Da(_u))}const yu=((...e)=>{const t=mu().createApp(...e),{mount:n}=t;return t.mount=l=>{const s=wu(l);if(!s)return;const i=t._component;!J(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const u=n(s,!1,bu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),u},t});function bu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function wu(e){return we(e)?document.querySelector(e):e}const ku="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",E={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,workflowBranches:e=>`workflows/${e}/branches`,workflowSwitchBranch:e=>`workflows/${e}/switch-branch`,workflowHistory:e=>`workflows/${e}/history`,node:e=>`nodes/${e}`,nodeGenerate:e=>`nodes/${e}/generate`,nodeRetry:e=>`nodes/${e}/retry`,nodeComplete:e=>`nodes/${e}/complete`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeReview:e=>`nodes/${e}/review`,nodeImages:e=>`nodes/${e}/images`,workflowReview:e=>`workflows/${e}/review`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,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",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",settingsImport:"settings/import",settingsSnapshots:"settings/snapshots",settingsRollback:"settings/rollback",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materialCategory:e=>`material-categories/${e}`,materials:"materials",materialUpload:"materials/upload",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeProvider:"api-discovery/probe-provider",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class Cu extends Error{constructor(n,l,s={}){super(l);sl(this,"code");sl(this,"details");this.name="ApiClientError",this.code=n,this.details=s}}async function se(e,t){return Qe(e,{method:"GET",query:t})}async function z(e,t){return Qe(e,{method:"POST",body:t})}async function Qe(e,t={}){const l=await(await fetch(xu(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(!l.ok)throw new Cu(l.error_code,l.message,l.details);return l.data}function xu(e,t){const n=e.replace(/^\/+/,""),l=new URL(`${ku}/${n}`,window.location.origin);for(const[s,i]of Object.entries(t??{}))i!==void 0&&l.searchParams.set(s,String(i));return`${l.pathname}${l.search}`}const Su={class:"web-shell"},Pu={class:"sidebar"},Du={class:"brand"},Tu=["onClick"],Eu={class:"workspace"},Ou={class:"topbar"},Iu={class:"actions"},Au=["disabled"],Mu={key:0,class:"notice error"},$u={key:1,class:"notice"},Ru={key:0,class:"dashboard-grid"},Uu={key:1,class:"list-view"},Bu={class:"form-grid"},Vu={class:"wide-field"},Lu=["disabled"],Fu=["disabled"],Nu={key:0},ju={key:1,class:"form-grid"},Wu={class:"wide-field"},Hu={class:"wide-field"},Ku={class:"wide-field"},qu={class:"wide-field"},Ju={class:"wide-field"},Gu=["disabled"],zu=["disabled"],Yu={class:"inline-actions"},Qu={class:"badge"},Xu=["disabled","onClick"],Zu=["disabled","onClick"],ec={key:0,class:"empty"},tc={key:2,class:"split-view"},nc={class:"list-view"},lc={class:"form-grid"},oc=["disabled"],sc={class:"inline-actions"},ic={class:"badge"},rc=["disabled","onClick"],ac=["disabled","onClick"],uc=["disabled","onClick"],cc=["disabled","onClick"],dc={key:0,class:"empty"},fc={key:0,class:"editor-panel"},pc={class:"form-grid"},hc=["disabled"],vc=["disabled","onClick"],gc={class:"list-view"},_c={class:"inline-actions"},mc=["disabled"],yc={class:"form-grid"},bc={class:"wide-field"},wc={class:"wide-field"},kc={class:"wide-field"},Cc=["disabled"],xc=["disabled"],Sc={class:"form-grid"},Pc={class:"wide-field"},Dc=["disabled"],Tc=["disabled"],Ec={class:"inline-actions"},Oc={class:"badge"},Ic=["disabled","onClick"],Ac=["disabled","onClick"],Mc=["disabled","onClick"],$c=["disabled","onClick"],Rc={key:0,class:"empty"},Uc={class:"inline-actions"},Bc={key:0,class:"badge"},Vc=["disabled","onClick"],Lc=["disabled","onClick"],Fc=["disabled","onClick"],Nc=["disabled","onClick"],jc=["disabled","onClick"],Wc=["disabled","onClick"],Hc={key:0,class:"empty"},Kc={key:0},qc={key:1},Jc={class:"editor-panel"},Gc={key:0,class:"empty"},zc={key:2,class:"editor-panel"},Yc={key:3},Qc={key:3,class:"split-view"},Xc={class:"list-view"},Zc={class:"form-grid"},ed=["disabled"],td=["disabled"],nd={class:"inline-actions"},ld=["disabled","onClick"],od=["disabled","onClick"],sd={key:0,class:"empty"},id={class:"list-view"},rd={class:"inline-actions"},ad=["disabled"],ud={class:"form-grid"},cd={value:""},dd=["value"],fd=["disabled"],pd=["disabled"],hd={class:"inline-actions"},vd={class:"badge"},gd=["disabled","onClick"],_d=["disabled","onClick"],md=["disabled","onClick"],yd=["disabled","onClick"],bd={key:0,class:"empty"},wd={class:"form-grid"},kd={value:""},Cd=["value"],xd=["disabled"],Sd=["disabled"],Pd={key:0},Dd={key:4,class:"list-view"},Td=["disabled"],Ed={class:"form-grid"},Od={value:""},Id=["value"],Ad=["disabled"],Md={class:"inline-actions"},$d=["disabled","onClick"],Rd={key:0,class:"empty"},Ud={key:0},Bd={class:"form-grid"},Vd=["disabled"],Ld={key:1},Fd={key:5,class:"list-view"},Nd={class:"inline-actions"},jd=["disabled"],Wd=["disabled"],Hd={class:"form-grid"},Kd={value:""},qd=["value"],Jd={value:""},Gd=["value"],zd={value:""},Yd=["value"],Qd=["disabled"],Xd={class:"inline-actions"},Zd={class:"badge"},ef=["onClick"],tf=["onClick"],nf=["disabled","onClick"],lf={key:0,class:"empty"},of={key:0,class:"editor-panel"},sf={key:6,class:"split-view"},rf={class:"list-view"},af={class:"inline-actions"},uf=["disabled"],cf=["disabled"],df={class:"form-grid"},ff=["disabled"],pf={key:0},hf={class:"list-view"},vf={class:"inline-actions"},gf={class:"badge"},_f=["disabled","onClick"],mf=["disabled","onClick"],yf=["disabled","onClick"],bf={key:0,class:"empty"},wf={key:7,class:"logs-view"},kf={class:"split-view"},Cf={class:"list-view"},xf={key:0,class:"empty"},Sf={class:"list-view"},Pf={class:"badge"},Df={key:0,class:"empty"},Tf={class:"split-view"},Ef={class:"list-view"},Of={key:0,class:"empty"},If={class:"list-view"},Af={class:"badge"},Mf={key:0,class:"empty"},$f={class:"list-view"},Rf={key:0,class:"empty"},Uf={key:8,class:"settings-view"},Bf={class:"toolbar"},Vf=["disabled"],Lf=["disabled"],Ff=["disabled"],Nf=["disabled"],jf=["disabled"],Wf=["disabled"],Hf=["disabled"],Kf={class:"settings-sections"},qf={class:"editor-panel"},Jf={class:"editor-panel"},Gf=["disabled"],zf={class:"editor-panel"},Yf=["disabled","onClick"],Qf={class:"split-view"},Xf={class:"list-view"},Zf={class:"list-view"},ep={class:"inspector"},tp=Jr({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",generate:"生成",adopt:"采纳",select:"选择",unselect:"取选",recognize:"识别",confirm:"确认",edit:"编辑",update:"更新",name:"名称",identity:"身份",personality:"性格",hairColor:"发色",hairstyle:"发型",eyeColor:"眼色",description:"描述",basePrompt:"基础提示词",appearancePrompt:"外观提示词",stylePrompt:"风格提示词",negativePrompt:"反向提示词",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialUpdated:"素材已更新",materialUploaded:"素材已登记上传",materialArchived:"素材已归档",upload:"上传登记",filename:"文件名",contentType:"Content-Type",importToWardrobe:"加入衣橱",delete:"删除",wardrobeCategory:"衣橱分类",season:"季节",style:"风格",selectMaterial:"选择素材",wardrobeImported:"衣橱条目已加入",wardrobeDeleted:"衣橱条目已删除",dailyOutfit:"每日穿搭",categories:"分类",mood:"心情",weather:"天气",keywords:"关键词",outfitGenerated:"每日穿搭已生成",dashboard:"运行概览",profiles:"角色",workflows:"工作流",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",profileCreated:"角色已创建",profileUpdated:"角色已更新",profileDeleted:"角色已删除",emptyProfiles:"暂无角色",workflowList:"工作流列表",workflowType:"工作流类型",workflowCreated:"工作流已创建",emptyWorkflows:"暂无工作流",nodes:"节点",nodeKey:"NodeKey",nodeTitle:"节点标题",nodeType:"节点类型",status:"状态",nodeCreated:"节点已创建",nodeUpdated:"节点已更新",nodeQueued:"节点已重新入队",nodeCompleted:"节点已完成",images:"图片",branches:"分支",branchName:"分支名",switchBranch:"切换分支",history:"历史",review:"评审",reviewResult:"评审结果",emptyImages:"暂无图片",emptyHistory:"暂无历史",modelRoute:"模型路由",prompt:"提示词",generationQueued:"生成已入队",branchCreated:"分支已创建",imageArchived:"图片已归档",imageDeleted:"图片已删除",currentBranch:"当前分支",materialCategories:"素材分类",categoryType:"分类类型",sortOrder:"排序",categoryCreated:"分类已创建",categoryUpdated:"分类已更新",categoryDeleted:"分类已删除",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",filter:"筛选",detail:"详情",jobDetail:"任务详情",allStatuses:"全部状态",allProfiles:"全部角色",allWorkflows:"全部工作流",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",probeProvider:"探测 Provider",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",importSettings:"导入设置",importDone:"设置已导入",importDraftInvalid:"导入 JSON 格式无效",snapshots:"配置快照",loadSnapshots:"加载快照",rollback:"回滚",rollbackDone:"配置已回滚",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},n=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"workflows",label:t.workflows},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],l=N("dashboard"),s=N(null),i=N(null),u=N(null),d=N([]),h=N(null),m=N([]),g=N([]),b=N(null),O=N(""),$=N([]),Z=N(null),j=N(null),he=N(null),de=N(null),H=N(null),ae=N(null),V=N([]),fe=N(null),Oe=N([]),Ie=N([]),je=N([]),pt=N(null),_e=N({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Ve=N(null),ht=N(""),nt=N(""),Ct=N([]),xt=N(null),ke=N(null),R=N({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),ee=N(null),Q=N({profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}),We=N({display_name:"",workflow_type:"single_image"}),Le=N({branch_name:""}),K=N({node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}),qe=N({model_route:"",prompt:"",negative_prompt:""}),Ye=N({status:"",profile_id:"",workflow_id:""}),ue=N({material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}),me=N({display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}),Ce=N({category_id:"",name:"",category_type:"material",sort_order:0}),ye=N({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),Ae=N({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),lt=N(null),Me=N({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),p=N(null),v=N(""),y=N(!0),_=N(""),k=N(""),w=Dt(()=>{var f,c;return((c=(f=u.value)==null?void 0:f.items[0])==null?void 0:c.profile_id)??""}),T=Dt(()=>{var f,c;return((c=(f=u.value)==null?void 0:f.items[0])==null?void 0:c.name)??t.noProfile}),D=Dt(()=>{var c;const f=(c=i.value)==null?void 0:c.queue;return f?f.pending+f.running+f.failed+f.dead_letter:0}),P=Dt(()=>{var f;return((f=fe.value)==null?void 0:f.items.filter(c=>c.recognition_status!=="confirmed").length)??0}),C=Dt(()=>{var f;return(((f=fe.value)==null?void 0:f.items)??[]).filter(c=>c.recognition_status==="confirmed")}),L=Dt(()=>{var f;return((f=h.value)==null?void 0:f.nodes.find(c=>c.node_id===O.value))??null}),I=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],U=Dt(()=>({dashboard:t.dashboard,profiles:t.profiles,workflows:t.workflows,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[l.value]);xs(F);async function F(){var f,c;y.value=!0,k.value="";try{const[q,oe,Se,Pt,bn,zt,wn,kn,Cn,xn,Sn]=await Promise.all([se(E.uiBootstrap),se(E.dashboardSummary),se(E.profiles,{page:1,page_size:20}),se(E.jobs,{page:1,page_size:20}),se(E.settingsSchema),se(E.settingsCurrent),se(E.storageStatus),se(E.materialCategories),se(E.materials,{page:1,page_size:24}),se(E.apiDiscoveryDialects),se(E.apiDiscoveryCapabilities)]);s.value=q,i.value=oe,u.value=Se,j.value=Pt,de.value=bn,H.value=zt,Lt(zt.config),ae.value=wn,V.value=kn,fe.value=Cn,Ie.value=xn,je.value=Sn,await be((f=Se.items[0])==null?void 0:f.profile_id),await xe((c=Se.items[0])==null?void 0:c.profile_id),await X()}catch(q){k.value=q instanceof Error?q.message:t.loadFailed}finally{y.value=!1}}async function X(){const[f,c,q,oe,Se]=await Promise.allSettled([se(E.generationLogs,{limit:12}),se(E.workflowLogs,{limit:12}),se(E.errorLogs,{limit:12}),se(E.integrationLogs,{limit:12}),se(E.auditLogs,{limit:12})]);_e.value={generation:te(f),workflows:te(c),errors:te(q),integrations:te(oe),audit:te(Se)}}function te(f){return f.status==="fulfilled"?f.value:[]}async function le(){j.value=await se(E.jobs,{status:Ye.value.status||void 0,profile_id:Ye.value.profile_id||void 0,workflow_id:Ye.value.workflow_id||void 0,page:1,page_size:20})}async function be(f){if(!f){Oe.value=[];return}Oe.value=await se(E.wardrobe(f))}async function xe(f){var oe,Se;if(!f){d.value=[],h.value=null,m.value=[],g.value=[],O.value="",$.value=[];return}d.value=await se(E.profileWorkflows(f));const c=(oe=h.value)==null?void 0:oe.workflow.workflow_id,q=d.value.some(Pt=>Pt.workflow_id===c)?c:(Se=d.value[0])==null?void 0:Se.workflow_id;q?await Fe(q):h.value=null}async function Fe(f){var Se;const c=await se(E.workflow(f));h.value=c;const q=O.value,oe=c.nodes.some(Pt=>Pt.node_id===q)?q:c.workflow.current_node_id||((Se=c.nodes[0])==null?void 0:Se.node_id);oe?await He(oe):(O.value="",$.value=[]),await Ot(f)}async function He(f){O.value=f,$.value=await se(E.nodeImages(f))}async function Ot(f){const[c,q]=await Promise.all([se(E.workflowBranches(f)),se(E.workflowHistory(f))]);m.value=c,g.value=q}async function $e(){var c;const f=(c=h.value)==null?void 0:c.workflow.workflow_id;f&&await Fe(f)}async function A(f,c,q=!0){_.value=f,k.value="";try{const oe=await c();v.value=`${f}${t.complete}`,f===t.exportSettings&&(v.value=`${t.exportDone}: ${!!oe.redacted}`),q&&await F()}catch(oe){k.value=oe instanceof Error?oe.message:`${f}${t.failed}`}finally{_.value=""}}function Je(f){return A(t.retry,()=>z(E.jobRetry(f)))}function _n(f){return A(t.cancel,()=>z(E.jobCancel(f)))}function mn(f){return A(t.detail,async()=>(he.value=await se(E.job(f)),he.value),!1)}function zs(){R.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},ee.value=null}function Ys(){return A(t.quickDraft,async()=>(ee.value=await z(E.quickProfileDraft,{questionnaire:{name:R.value.name,identity:R.value.identity,personality:St(R.value.personality),hair_color:R.value.hair_color,hairstyle:R.value.hairstyle,eye_color:R.value.eye_color,style:R.value.style,clothing_keywords:St(R.value.clothing_keywords)}}),ee.value),!1)}function Qs(){var c;const f=(c=ee.value)==null?void 0:c.profile_preview;return A(t.create,async()=>{const q=await z(E.profiles,{name:(f==null?void 0:f.name)||R.value.name,description:R.value.description,base_prompt:f==null?void 0:f.base_prompt,appearance_prompt:f==null?void 0:f.appearance_prompt,style_prompt:f==null?void 0:f.style_prompt,negative_prompt:f==null?void 0:f.negative_prompt});return zs(),v.value=t.profileCreated,q})}function Xs(f){return A(t.delete,async()=>{const c=await Qe(E.profile(f),{method:"DELETE"});return v.value=t.profileDeleted,c})}function Kl(){Q.value={profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}}function Zs(f){Q.value={profile_id:f.profile_id,name:f.name,description:f.description??"",base_prompt:f.base_prompt??"",appearance_prompt:f.appearance_prompt??"",style_prompt:f.style_prompt??"",negative_prompt:f.negative_prompt??"",default_model_route:f.default_model_route??""}}function ei(){return Q.value.profile_id?A(t.update,async()=>{const f=await Qe(E.profile(Q.value.profile_id),{method:"PUT",body:{name:Q.value.name,description:Q.value.description||void 0,base_prompt:Q.value.base_prompt||void 0,appearance_prompt:Q.value.appearance_prompt||void 0,style_prompt:Q.value.style_prompt||void 0,negative_prompt:Q.value.negative_prompt||void 0,default_model_route:Q.value.default_model_route||void 0}});return Kl(),v.value=t.profileUpdated,f}):Promise.resolve()}function ti(){const f=w.value;return f?A(t.create,async()=>{const c=await z(E.profileWorkflows(f),{display_name:We.value.display_name,workflow_type:We.value.workflow_type});return We.value.display_name="",h.value=c,v.value=t.workflowCreated,c}):Promise.resolve()}function ni(f){return A(t.start,()=>z(E.workflowStart(f)))}function li(f){return A(t.cancel,()=>z(E.workflowCancel(f)))}function oi(f){return A(t.archive,()=>z(E.workflowArchive(f)))}function si(){var c;const f=(c=h.value)==null?void 0:c.workflow;return!f||!Le.value.branch_name?Promise.resolve():A(t.branches,async()=>{const q=await z(E.workflowBranches(f.workflow_id),{branch_name:Le.value.branch_name,base_branch_name:f.current_branch,base_node_id:O.value||f.current_node_id,copy_nodes:!0});return Le.value.branch_name="",await $e(),v.value=t.branchCreated,q},!1)}function ii(f){var q;const c=(q=h.value)==null?void 0:q.workflow.workflow_id;return c?A(t.switchBranch,async()=>{const oe=await z(E.workflowSwitchBranch(c),{branch_name:f});return await $e(),oe},!1):Promise.resolve()}function el(){K.value={node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}}function ri(f){K.value={node_id:f.node_id,node_key:f.node_key,title:f.title,description:f.description??"",node_type:f.node_type,status:f.status,prompt:f.prompt??"",negative_prompt:f.negative_prompt??"",model_route:f.model_route??""}}function ai(){var q;const f=(q=h.value)==null?void 0:q.workflow.workflow_id;if(!f||!K.value.node_key||!K.value.title)return Promise.resolve();const c={node_key:K.value.node_key,title:K.value.title,description:K.value.description||void 0,node_type:K.value.node_type||"generation",status:K.value.status||"pending",prompt:K.value.prompt||void 0,negative_prompt:K.value.negative_prompt||void 0,model_route:K.value.model_route||void 0};return K.value.node_id?A(t.update,async()=>{const oe=await Qe(E.node(K.value.node_id),{method:"PUT",body:c});return el(),await $e(),v.value=t.nodeUpdated,oe},!1):A(t.create,async()=>{const oe=await z(E.workflowNodes(f),c);return el(),await $e(),v.value=t.nodeCreated,oe},!1)}function ui(){var c;const f=(c=h.value)==null?void 0:c.workflow.workflow_id;return f?A(t.review,async()=>(b.value=await se(E.workflowReview(f)),b.value),!1):Promise.resolve()}function ci(){const f=O.value;return f?A(t.review,async()=>(b.value=await se(E.nodeReview(f)),b.value),!1):Promise.resolve()}function di(){const f=O.value;return f?A(t.generate,async()=>(Z.value=await z(E.nodeGenerate(f),{model_route:qe.value.model_route||void 0,prompt:qe.value.prompt||void 0,negative_prompt:qe.value.negative_prompt||void 0}),await $e(),v.value=t.generationQueued,Z.value),!1):Promise.resolve()}function fi(f){return A(t.retry,async()=>{const c=await z(E.nodeRetry(f));return await $e(),v.value=t.nodeQueued,c},!1)}function pi(f){return A(t.complete,async()=>{const c=await z(E.nodeComplete(f));return await $e(),v.value=t.nodeCompleted,c},!1)}function hi(f){const c=O.value;return c?A(t.select,async()=>{const q=await z(E.nodeSelectImage(c),{image_id:f});return await $e(),q},!1):Promise.resolve()}function vi(f){const c=O.value;return c?A(t.adopt,async()=>{var oe;const q=await z(E.nodeAdoptImage(c),{image_id:f,title:(oe=L.value)==null?void 0:oe.title});return await $e(),q},!1):Promise.resolve()}function gi(f){return A(t.unselect,async()=>{const c=await z(E.imageUnselect(f));return await $e(),c},!1)}function _i(f){return A(t.archive,async()=>{const c=await z(E.imageArchive(f));return await $e(),v.value=t.imageArchived,c},!1)}function mi(f){return A(t.delete,async()=>{const c=await Qe(E.image(f),{method:"DELETE"});return await $e(),v.value=t.imageDeleted,c},!1)}function yi(){return A(t.moveFailed,()=>z(E.jobDeadLetterMoveFailed,{limit:20}))}function bi(){return A(t.retryDead,()=>z(E.jobDeadLetterRetry,{limit:20}))}function wi(){var c;const f=((c=Ie.value[0])==null?void 0:c.dialect)??"unknown";return A(t.safeProbe,()=>z(E.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:f,capabilities:{supports:["text_to_image"]}}))}function ki(){var c;const f=((c=Ie.value[0])==null?void 0:c.dialect)??"unknown";return A(t.probeProvider,()=>z(E.apiDiscoveryProbeProvider,{provider_id:Me.value.provider_id||"local-preview",model_id:Me.value.model_id||"metadata-only",dialect:f,capabilities:{supports:St(Me.value.required_capabilities)}}))}function Ci(){return A(t.validatePlan,async()=>(p.value=await z(E.apiDiscoveryValidateRenderPlan,{provider_id:Me.value.provider_id,model_id:Me.value.model_id,required_capabilities:St(Me.value.required_capabilities)}),p.value),!1)}function tl(f,c){return A(t.discovery,()=>z(E.apiDiscoveryManualOverride,{provider_id:f.provider_id,model_id:f.model_id,dialect:f.dialect,status:c,capabilities:f.capabilities}))}function xi(){const f=w.value;return f?A(t.matchWardrobe,async()=>(pt.value=await z(E.wardrobeMatch(f),{tags:["daily"]}),pt.value),!1):Promise.resolve()}function Si(){ye.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function Pi(){const f=w.value;return f?A(t.importToWardrobe,async()=>{const c=await z(E.wardrobeImportMaterial(f),{material_id:ye.value.material_id,wardrobe_category:ye.value.wardrobe_category,tags:St(ye.value.tags),season:ye.value.season||void 0,style:ye.value.style||void 0});return Si(),v.value=t.wardrobeImported,c}):Promise.resolve()}function Di(f){const c=w.value;return c?A(t.delete,async()=>{const q=await Qe(E.wardrobeItem(c,f),{method:"DELETE"});return v.value=t.wardrobeDeleted,q}):Promise.resolve()}function Ti(){const f=w.value;return f?A(t.dailyOutfit,async()=>(lt.value=await z(E.privateCompanionDailyOutfit,{profile_id:f,categories:St(Ae.value.categories),mood:Ae.value.mood,weather:Ae.value.weather,keywords:St(Ae.value.keywords),request_source:"astrbot_plugin_private_companion"}),v.value=t.outfitGenerated,lt.value),!1):Promise.resolve()}function Ei(){return A(t.reload,async()=>{var c;const f=await z(E.settingsReload);return H.value={config_path:((c=H.value)==null?void 0:c.config_path)??"***PATH***",config:f.config},Lt(f.config),f},!1)}function Oi(){return A(t.exportSettings,()=>se(E.settingsExport),!1)}function Lt(f=(c=>(c=H.value)==null?void 0:c.config)()??{}){ht.value=JSON.stringify(f,null,2),xt.value=null,ke.value=null}function nl(){try{const f=JSON.parse(ht.value);if(!f||Array.isArray(f)||typeof f!="object")throw new Error(t.settingsDraftInvalid);return f}catch(f){throw new Error(f instanceof Error?f.message:t.settingsDraftInvalid)}}function Ii(){try{const f=JSON.parse(nt.value);if(!f||Array.isArray(f)||typeof f!="object")throw new Error(t.importDraftInvalid);return f}catch(f){throw new Error(f instanceof Error?f.message:t.importDraftInvalid)}}function Ai(){return A(t.validate,async()=>(xt.value=await z(E.settingsValidate,{config:nl()}),xt.value),!1)}function Mi(){return A(t.diff,async()=>(ke.value=await z(E.settingsDiff,{config:nl()}),ke.value),!1)}function $i(){return A(t.save,async()=>{var c;const f=await z(E.settingsSave,{config:nl()});return H.value={config_path:((c=H.value)==null?void 0:c.config_path)??"***PATH***",config:f.config},Lt(f.config),v.value=t.settingsSaved,f},!1)}function Ri(){return A(t.importSettings,async()=>{var c;const f=await z(E.settingsImport,{config:Ii()});return H.value={config_path:((c=H.value)==null?void 0:c.config_path)??"***PATH***",config:f.config},Lt(f.config),nt.value="",v.value=t.importDone,f},!1)}function ql(){return A(t.loadSnapshots,async()=>(Ct.value=await se(E.settingsSnapshots,{limit:20}),Ct.value),!1)}function Ui(f){return A(t.rollback,async()=>{var q;const c=await z(E.settingsRollback,{snapshot_id:f});return H.value={config_path:((q=H.value)==null?void 0:q.config_path)??"***PATH***",config:c.config},Lt(c.config),await ql(),v.value=t.rollbackDone,c},!1)}function Bi(){var c,q;const f=(q=(c=fe.value)==null?void 0:c.items.find(oe=>{var Se;return(Se=oe.image_uri)==null?void 0:Se.startsWith("storage://")}))==null?void 0:q.image_uri;return f?A(t.signMaterial,async()=>(Ve.value=await se(E.mediaSign,{uri:f}),Ve.value),!1):(v.value=t.noSignableMaterial,Promise.resolve())}function Vi(f){return f!=null&&f.startsWith("storage://")?A(t.signMaterial,async()=>(Ve.value=await se(E.mediaSign,{uri:f}),Ve.value),!1):(v.value=t.noSignableMaterial,Promise.resolve())}function yn(){Ce.value={category_id:"",name:"",category_type:"material",sort_order:0}}function Li(f){Ce.value={category_id:f.category_id,name:f.name,category_type:f.category_type,sort_order:f.sort_order}}function Fi(){const f={name:Ce.value.name,category_type:Ce.value.category_type,sort_order:Number(Ce.value.sort_order)||0};return Ce.value.category_id?A(t.update,async()=>{const c=await Qe(E.materialCategory(Ce.value.category_id),{method:"PUT",body:f});return yn(),v.value=t.categoryUpdated,c}):A(t.create,async()=>{const c=await z(E.materialCategories,f);return yn(),v.value=t.categoryCreated,c})}function Ni(f){return A(t.delete,async()=>{const c=await Qe(E.materialCategory(f),{method:"DELETE"});return Ce.value.category_id===f&&yn(),v.value=t.categoryDeleted,c})}function ll(){ue.value={material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}}function ji(){const f={display_name:ue.value.display_name,image_uri:ue.value.image_uri||void 0,thumbnail_uri:ue.value.image_uri||void 0,category_id:ue.value.category_id||void 0,tags:St(ue.value.tags),prompt:ue.value.prompt||void 0,negative_prompt:ue.value.negative_prompt||void 0,recognition_status:ue.value.image_uri?"pending_recognition":"pending_upload"};return ue.value.material_id?A(t.update,async()=>{const c=await Qe(E.material(ue.value.material_id),{method:"PUT",body:f});return ll(),v.value=t.materialUpdated,c}):A(t.create,async()=>{const c=await z(E.materials,f);return ll(),v.value=t.materialCreated,c})}function Wi(f){ue.value={material_id:f.material_id,display_name:f.display_name,image_uri:f.image_uri??"",tags:f.tags.join(", "),category_id:f.category_id??"",prompt:f.prompt??"",negative_prompt:f.negative_prompt??""}}function Jl(){me.value={display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}}function Hi(){return A(t.upload,async()=>{const f=await z(E.materialUpload,{display_name:me.value.display_name||void 0,filename:me.value.filename||void 0,content_type:me.value.content_type||void 0,image_uri:me.value.image_uri,category_id:me.value.category_id||void 0});return Jl(),v.value=t.materialUploaded,f})}function Ki(f){return A(t.recognize,()=>z(E.materialRecognize(f)))}function qi(f){return A(t.confirm,()=>z(E.materialConfirm(f.material_id),{display_name:f.display_name,prompt:f.prompt,negative_prompt:f.negative_prompt,tags:f.tags}))}function Ji(f){return A(t.archive,async()=>{const c=await Qe(E.material(f),{method:"DELETE"});return v.value=t.materialArchived,c})}function St(f){return f.split(",").map(c=>c.trim()).filter(Boolean)}function ol(f=0){return f<1024?`${f} B`:f<1024*1024?`${(f/1024).toFixed(1)} KB`:f<1024*1024*1024?`${(f/1024/1024).toFixed(1)} MB`:`${(f/1024/1024/1024).toFixed(1)} GB`}function Gl(f){var c,q;return((q=(c=ae.value)==null?void 0:c.roots.find(oe=>oe.uri_prefix===f))==null?void 0:q.bytes)??0}return(f,c)=>{var q,oe,Se,Pt,bn,zt,wn,kn,Cn,xn,Sn,zl,Yl,Ql,Xl,Zl,eo,to,no,lo,oo,so,io,ro,ao,uo;return x(),S("main",Su,[o("aside",Pu,[o("div",Du,[o("strong",null,a(((q=s.value)==null?void 0:q.display_name)??"ImageStudio"),1),o("span",null,a(((oe=s.value)==null?void 0:oe.dashboard_user)??"AstrBot"),1)]),o("nav",null,[(x(),S(Y,null,ve(n,r=>o("button",{key:r.key,type:"button",class:Jn({active:l.value===r.key}),onClick:ne=>l.value=r.key},a(r.label),11,Tu)),64))])]),o("section",Eu,[o("header",Ou,[o("div",null,[o("h1",null,a(U.value),1),o("p",null,a(((Se=i.value)==null?void 0:Se.plugin_status)??"loading")+" / "+a(v.value||t.waiting),1)]),o("div",Iu,[o("button",{type:"button",disabled:!!_.value,onClick:F},a(_.value||t.refresh),9,Au)])]),k.value?(x(),S("section",Mu,a(k.value),1)):y.value?(x(),S("section",$u,a(t.loading),1)):(x(),S(Y,{key:2},[l.value==="dashboard"?(x(),S("section",Ru,[o("article",null,[o("span",null,a(t.profiles),1),o("strong",null,a(((Pt=i.value)==null?void 0:Pt.active_profiles)??0),1)]),o("article",null,[o("span",null,a(t.jobs),1),o("strong",null,a(D.value),1)]),o("article",null,[o("span",null,a(t.materials),1),o("strong",null,a(((bn=fe.value)==null?void 0:bn.total)??0),1)]),o("article",null,[o("span",null,a(t.storage),1),o("strong",null,a(ol(((zt=ae.value)==null?void 0:zt.total_bytes)??((wn=i.value)==null?void 0:wn.storage.total_bytes))),1)])])):G("",!0),l.value==="profiles"?(x(),S("section",Uu,[o("header",null,[o("h2",null,a(t.profileList),1),o("span",null,a(((kn=u.value)==null?void 0:kn.total)??0),1)]),o("div",Bu,[o("label",null,[o("span",null,a(t.name),1),M(o("input",{"onUpdate:modelValue":c[0]||(c[0]=r=>R.value.name=r),type:"text"},null,512),[[B,R.value.name]])]),o("label",null,[o("span",null,a(t.identity),1),M(o("input",{"onUpdate:modelValue":c[1]||(c[1]=r=>R.value.identity=r),type:"text"},null,512),[[B,R.value.identity]])]),o("label",null,[o("span",null,a(t.personality),1),M(o("input",{"onUpdate:modelValue":c[2]||(c[2]=r=>R.value.personality=r),type:"text",placeholder:"calm, brave"},null,512),[[B,R.value.personality]])]),o("label",null,[o("span",null,a(t.hairColor),1),M(o("input",{"onUpdate:modelValue":c[3]||(c[3]=r=>R.value.hair_color=r),type:"text"},null,512),[[B,R.value.hair_color]])]),o("label",null,[o("span",null,a(t.hairstyle),1),M(o("input",{"onUpdate:modelValue":c[4]||(c[4]=r=>R.value.hairstyle=r),type:"text"},null,512),[[B,R.value.hairstyle]])]),o("label",null,[o("span",null,a(t.eyeColor),1),M(o("input",{"onUpdate:modelValue":c[5]||(c[5]=r=>R.value.eye_color=r),type:"text"},null,512),[[B,R.value.eye_color]])]),o("label",null,[o("span",null,a(t.stylePrompt),1),M(o("input",{"onUpdate:modelValue":c[6]||(c[6]=r=>R.value.style=r),type:"text"},null,512),[[B,R.value.style]])]),o("label",null,[o("span",null,a(t.tags),1),M(o("input",{"onUpdate:modelValue":c[7]||(c[7]=r=>R.value.clothing_keywords=r),type:"text",placeholder:"white blouse, ribbon"},null,512),[[B,R.value.clothing_keywords]])]),o("label",Vu,[o("span",null,a(t.description),1),M(o("input",{"onUpdate:modelValue":c[8]||(c[8]=r=>R.value.description=r),type:"text"},null,512),[[B,R.value.description]])]),o("button",{type:"button",disabled:!!_.value||!R.value.name,onClick:Ys},a(t.quickDraft),9,Lu),o("button",{type:"button",disabled:!!_.value||!R.value.name,onClick:Qs},a(t.create),9,Fu)]),ee.value?(x(),S("pre",Nu,a(JSON.stringify(ee.value,null,2)),1)):G("",!0),Q.value.profile_id?(x(),S("div",ju,[o("label",null,[o("span",null,a(t.name),1),M(o("input",{"onUpdate:modelValue":c[9]||(c[9]=r=>Q.value.name=r),type:"text"},null,512),[[B,Q.value.name]])]),o("label",null,[o("span",null,a(t.provider),1),M(o("input",{"onUpdate:modelValue":c[10]||(c[10]=r=>Q.value.default_model_route=r),type:"text"},null,512),[[B,Q.value.default_model_route]])]),o("label",Wu,[o("span",null,a(t.description),1),M(o("input",{"onUpdate:modelValue":c[11]||(c[11]=r=>Q.value.description=r),type:"text"},null,512),[[B,Q.value.description]])]),o("label",Hu,[o("span",null,a(t.basePrompt),1),M(o("input",{"onUpdate:modelValue":c[12]||(c[12]=r=>Q.value.base_prompt=r),type:"text"},null,512),[[B,Q.value.base_prompt]])]),o("label",Ku,[o("span",null,a(t.appearancePrompt),1),M(o("input",{"onUpdate:modelValue":c[13]||(c[13]=r=>Q.value.appearance_prompt=r),type:"text"},null,512),[[B,Q.value.appearance_prompt]])]),o("label",qu,[o("span",null,a(t.stylePrompt),1),M(o("input",{"onUpdate:modelValue":c[14]||(c[14]=r=>Q.value.style_prompt=r),type:"text"},null,512),[[B,Q.value.style_prompt]])]),o("label",Ju,[o("span",null,a(t.negativePrompt),1),M(o("input",{"onUpdate:modelValue":c[15]||(c[15]=r=>Q.value.negative_prompt=r),type:"text"},null,512),[[B,Q.value.negative_prompt]])]),o("button",{type:"button",disabled:!!_.value||!Q.value.name,onClick:ei},a(t.update),9,Gu),o("button",{type:"button",disabled:!!_.value,onClick:Kl},a(t.reset),9,zu)])):G("",!0),o("ul",null,[(x(!0),S(Y,null,ve(((Cn=u.value)==null?void 0:Cn.items)??[],r=>(x(),S("li",{key:r.profile_id},[o("div",null,[o("strong",null,a(r.name),1),o("small",null,a(r.profile_id),1)]),o("div",Yu,[o("span",Qu,a(r.status),1),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Zs(r)},a(t.edit),9,Xu),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Xs(r.profile_id)},a(t.delete),9,Zu)])]))),128)),(xn=u.value)!=null&&xn.items.length?G("",!0):(x(),S("li",ec,a(t.emptyProfiles),1))])])):G("",!0),l.value==="workflows"?(x(),S("section",tc,[o("div",nc,[o("header",null,[o("h2",null,a(T.value),1),o("span",null,a(d.value.length),1)]),o("div",lc,[o("label",null,[o("span",null,a(t.name),1),M(o("input",{"onUpdate:modelValue":c[16]||(c[16]=r=>We.value.display_name=r),type:"text"},null,512),[[B,We.value.display_name]])]),o("label",null,[o("span",null,a(t.workflowType),1),M(o("select",{"onUpdate:modelValue":c[17]||(c[17]=r=>We.value.workflow_type=r)},[...c[62]||(c[62]=[o("option",{value:"single_image"},"single_image",-1),o("option",{value:"character_gradual"},"character_gradual",-1),o("option",{value:"character_fast"},"character_fast",-1),o("option",{value:"quick_profile"},"quick_profile",-1)])],512),[[Mt,We.value.workflow_type]])]),o("button",{type:"button",disabled:!!_.value||!w.value||!We.value.display_name,onClick:ti},a(t.create),9,oc)]),o("ul",null,[(x(!0),S(Y,null,ve(d.value,r=>(x(),S("li",{key:r.workflow_id},[o("div",null,[o("strong",null,a(r.display_name),1),o("small",null,a(r.workflow_type)+" / "+a(r.workflow_id),1)]),o("div",sc,[o("span",ic,a(r.status),1),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Fe(r.workflow_id)},a(t.nodes),9,rc),o("button",{type:"button",disabled:!!_.value,onClick:ne=>ni(r.workflow_id)},a(t.start),9,ac),o("button",{type:"button",disabled:!!_.value,onClick:ne=>li(r.workflow_id)},a(t.cancel),9,uc),o("button",{type:"button",disabled:!!_.value,onClick:ne=>oi(r.workflow_id)},a(t.archive),9,cc)])]))),128)),d.value.length?G("",!0):(x(),S("li",dc,a(t.emptyWorkflows),1))]),h.value?(x(),S("section",fc,[o("header",null,[o("h2",null,a(t.branches),1),o("span",null,a(m.value.length),1)]),o("div",pc,[o("label",null,[o("span",null,a(t.branchName),1),M(o("input",{"onUpdate:modelValue":c[18]||(c[18]=r=>Le.value.branch_name=r),type:"text",placeholder:"alt_pose"},null,512),[[B,Le.value.branch_name]])]),o("button",{type:"button",disabled:!!_.value||!Le.value.branch_name,onClick:si},a(t.create),9,hc)]),o("ul",null,[(x(!0),S(Y,null,ve(m.value,r=>(x(),S("li",{key:r.branch_id},[o("div",null,[o("strong",null,a(r.branch_name),1),o("small",null,a(r.base_branch_name??"main")+" / "+a(r.status),1)]),o("button",{type:"button",disabled:!!_.value,onClick:ne=>ii(r.branch_name)},a(t.switchBranch),9,vc)]))),128))])])):G("",!0)]),o("div",gc,[o("header",null,[o("h2",null,a(t.nodes),1),o("div",_c,[o("span",null,a(((Sn=h.value)==null?void 0:Sn.workflow.current_branch)??"main"),1),o("button",{type:"button",disabled:!!_.value||!h.value,onClick:ui},a(t.review),9,mc)])]),o("div",yc,[o("label",null,[o("span",null,a(t.nodeKey),1),M(o("input",{"onUpdate:modelValue":c[19]||(c[19]=r=>K.value.node_key=r),type:"text"},null,512),[[B,K.value.node_key]])]),o("label",null,[o("span",null,a(t.nodeTitle),1),M(o("input",{"onUpdate:modelValue":c[20]||(c[20]=r=>K.value.title=r),type:"text"},null,512),[[B,K.value.title]])]),o("label",null,[o("span",null,a(t.nodeType),1),M(o("input",{"onUpdate:modelValue":c[21]||(c[21]=r=>K.value.node_type=r),type:"text"},null,512),[[B,K.value.node_type]])]),o("label",null,[o("span",null,a(t.status),1),M(o("input",{"onUpdate:modelValue":c[22]||(c[22]=r=>K.value.status=r),type:"text"},null,512),[[B,K.value.status]])]),o("label",bc,[o("span",null,a(t.description),1),M(o("input",{"onUpdate:modelValue":c[23]||(c[23]=r=>K.value.description=r),type:"text"},null,512),[[B,K.value.description]])]),o("label",wc,[o("span",null,a(t.prompt),1),M(o("input",{"onUpdate:modelValue":c[24]||(c[24]=r=>K.value.prompt=r),type:"text"},null,512),[[B,K.value.prompt]])]),o("label",kc,[o("span",null,a(t.negativePrompt),1),M(o("input",{"onUpdate:modelValue":c[25]||(c[25]=r=>K.value.negative_prompt=r),type:"text"},null,512),[[B,K.value.negative_prompt]])]),o("label",null,[o("span",null,a(t.modelRoute),1),M(o("input",{"onUpdate:modelValue":c[26]||(c[26]=r=>K.value.model_route=r),type:"text"},null,512),[[B,K.value.model_route]])]),o("button",{type:"button",disabled:!!_.value||!K.value.node_key||!K.value.title,onClick:ai},a(K.value.node_id?t.update:t.create),9,Cc),o("button",{type:"button",disabled:!!_.value,onClick:el},a(t.reset),9,xc)]),o("div",Sc,[o("label",null,[o("span",null,a(t.modelRoute),1),M(o("input",{"onUpdate:modelValue":c[27]||(c[27]=r=>qe.value.model_route=r),type:"text",placeholder:"image_low"},null,512),[[B,qe.value.model_route]])]),o("label",null,[o("span",null,a(t.prompt),1),M(o("input",{"onUpdate:modelValue":c[28]||(c[28]=r=>qe.value.prompt=r),type:"text"},null,512),[[B,qe.value.prompt]])]),o("label",Pc,[o("span",null,a(t.negativePrompt),1),M(o("input",{"onUpdate:modelValue":c[29]||(c[29]=r=>qe.value.negative_prompt=r),type:"text"},null,512),[[B,qe.value.negative_prompt]])]),o("button",{type:"button",disabled:!!_.value||!O.value,onClick:di},a(t.generate),9,Dc),o("button",{type:"button",disabled:!!_.value||!O.value,onClick:ci},a(t.review),9,Tc)]),o("ul",null,[(x(!0),S(Y,null,ve(((zl=h.value)==null?void 0:zl.nodes)??[],r=>(x(),S("li",{key:r.node_id},[o("div",null,[o("strong",null,a(r.title),1),o("small",null,a(r.node_key)+" / "+a(r.node_id),1)]),o("div",Ec,[o("span",null,a(r.branch_name),1),o("span",Oc,a(r.status),1),o("button",{type:"button",disabled:!!_.value,onClick:ne=>ri(r)},a(t.edit),9,Ic),o("button",{type:"button",disabled:!!_.value,onClick:ne=>fi(r.node_id)},a(t.retry),9,Ac),o("button",{type:"button",disabled:!!_.value,onClick:ne=>pi(r.node_id)},a(t.complete),9,Mc),o("button",{type:"button",disabled:!!_.value,onClick:ne=>He(r.node_id)},a(t.images),9,$c)])]))),128)),(Yl=h.value)!=null&&Yl.nodes.length?G("",!0):(x(),S("li",Rc,a(t.emptyWorkflows),1))]),o("ul",null,[(x(!0),S(Y,null,ve($.value,r=>(x(),S("li",{key:r.image_id},[o("div",null,[o("strong",null,a(r.image_id),1),o("small",null,a(r.thumbnail_uri??r.image_uri),1)]),o("div",Uc,[r.is_selected?(x(),S("span",Bc,a(t.select),1)):G("",!0),o("button",{type:"button",disabled:!!_.value||r.is_selected||r.is_archived,onClick:ne=>hi(r.image_id)},a(t.select),9,Vc),o("button",{type:"button",disabled:!!_.value||r.is_archived,onClick:ne=>vi(r.image_id)},a(t.adopt),9,Lc),o("button",{type:"button",disabled:!!_.value||!(r.thumbnail_uri??r.image_uri).startsWith("storage://"),onClick:ne=>Vi(r.thumbnail_uri??r.image_uri)},a(t.signMaterial),9,Fc),o("button",{type:"button",disabled:!!_.value||!r.is_selected,onClick:ne=>gi(r.image_id)},a(t.unselect),9,Nc),o("button",{type:"button",disabled:!!_.value||r.is_archived,onClick:ne=>_i(r.image_id)},a(t.archive),9,jc),o("button",{type:"button",disabled:!!_.value,onClick:ne=>mi(r.image_id)},a(t.delete),9,Wc)])]))),128)),$.value.length?G("",!0):(x(),S("li",Hc,a(t.emptyImages),1))]),Ve.value?(x(),S("pre",Kc,a(JSON.stringify(Ve.value,null,2)),1)):G("",!0),Z.value?(x(),S("pre",qc,a(JSON.stringify(Z.value,null,2)),1)):G("",!0),o("section",Jc,[o("header",null,[o("h2",null,a(t.history),1),o("span",null,a(g.value.length),1)]),o("ul",null,[(x(!0),S(Y,null,ve(g.value,r=>(x(),S("li",{key:r.history_id},[o("div",null,[o("strong",null,a(r.action),1),o("small",null,a(r.title??r.node_id??r.workflow_id),1)]),o("span",null,a(r.branch_name),1)]))),128)),g.value.length?G("",!0):(x(),S("li",Gc,a(t.emptyHistory),1))])]),b.value?(x(),S("section",zc,[o("header",null,[o("h2",null,a(t.reviewResult),1),o("span",null,a(b.value.passed?t.support:t.unsupported),1)]),o("pre",null,a(JSON.stringify(b.value,null,2)),1)])):G("",!0),h.value?(x(),S("pre",Yc,a(JSON.stringify(h.value.workflow,null,2)),1)):G("",!0)])])):G("",!0),l.value==="materials"?(x(),S("section",Qc,[o("div",Xc,[o("header",null,[o("h2",null,a(t.materialCategories),1),o("span",null,a(V.value.length),1)]),o("div",Zc,[o("label",null,[o("span",null,a(t.name),1),M(o("input",{"onUpdate:modelValue":c[30]||(c[30]=r=>Ce.value.name=r),type:"text"},null,512),[[B,Ce.value.name]])]),o("label",null,[o("span",null,a(t.categoryType),1),M(o("input",{"onUpdate:modelValue":c[31]||(c[31]=r=>Ce.value.category_type=r),type:"text"},null,512),[[B,Ce.value.category_type]])]),o("label",null,[o("span",null,a(t.sortOrder),1),M(o("input",{"onUpdate:modelValue":c[32]||(c[32]=r=>Ce.value.sort_order=r),type:"number"},null,512),[[B,Ce.value.sort_order,void 0,{number:!0}]])]),o("button",{type:"button",disabled:!!_.value||!Ce.value.name,onClick:Fi},a(Ce.value.category_id?t.update:t.create),9,ed),o("button",{type:"button",disabled:!!_.value,onClick:yn},a(t.reset),9,td)]),o("ul",null,[(x(!0),S(Y,null,ve(V.value,r=>(x(),S("li",{key:r.category_id},[o("div",null,[o("strong",null,a(r.name),1),o("small",null,a(r.category_type),1)]),o("div",nd,[o("span",null,a(r.sort_order),1),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Li(r)},a(t.edit),9,ld),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Ni(r.category_id)},a(t.delete),9,od)])]))),128)),V.value.length?G("",!0):(x(),S("li",sd,a(t.emptyCategories),1))])]),o("div",id,[o("header",null,[o("h2",null,a(t.materialItems),1),o("div",rd,[o("span",null,a(P.value)+" "+a(t.pendingConfirm),1),o("button",{type:"button",disabled:!!_.value,onClick:Bi},a(t.signFirstImage),9,ad)])]),o("div",ud,[o("label",null,[o("span",null,a(t.name),1),M(o("input",{"onUpdate:modelValue":c[33]||(c[33]=r=>ue.value.display_name=r),type:"text"},null,512),[[B,ue.value.display_name]])]),o("label",null,[o("span",null,a(t.imageUri),1),M(o("input",{"onUpdate:modelValue":c[34]||(c[34]=r=>ue.value.image_uri=r),type:"text",placeholder:"storage://materials/example.png"},null,512),[[B,ue.value.image_uri]])]),o("label",null,[o("span",null,a(t.category),1),M(o("select",{"onUpdate:modelValue":c[35]||(c[35]=r=>ue.value.category_id=r)},[o("option",cd,a(t.allCategories),1),(x(!0),S(Y,null,ve(V.value,r=>(x(),S("option",{key:r.category_id,value:r.category_id},a(r.name),9,dd))),128))],512),[[Mt,ue.value.category_id]])]),o("label",null,[o("span",null,a(t.tags),1),M(o("input",{"onUpdate:modelValue":c[36]||(c[36]=r=>ue.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[B,ue.value.tags]])]),o("label",null,[o("span",null,a(t.prompt),1),M(o("input",{"onUpdate:modelValue":c[37]||(c[37]=r=>ue.value.prompt=r),type:"text"},null,512),[[B,ue.value.prompt]])]),o("label",null,[o("span",null,a(t.negativePrompt),1),M(o("input",{"onUpdate:modelValue":c[38]||(c[38]=r=>ue.value.negative_prompt=r),type:"text"},null,512),[[B,ue.value.negative_prompt]])]),o("button",{type:"button",disabled:!!_.value||!ue.value.display_name,onClick:ji},a(ue.value.material_id?t.update:t.create),9,fd),o("button",{type:"button",disabled:!!_.value,onClick:ll},a(t.reset),9,pd)]),o("ul",null,[(x(!0),S(Y,null,ve(((Ql=fe.value)==null?void 0:Ql.items)??[],r=>(x(),S("li",{key:r.material_id},[o("div",null,[o("strong",null,a(r.display_name),1),o("small",null,a(r.image_uri??t.noImage),1)]),o("div",hd,[o("span",vd,a(r.recognition_status),1),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Wi(r)},a(t.edit),9,gd),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Ki(r.material_id)},a(t.recognize),9,_d),o("button",{type:"button",disabled:!!_.value||r.recognition_status==="confirmed",onClick:ne=>qi(r)},a(t.confirm),9,md),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Ji(r.material_id)},a(t.archive),9,yd)])]))),128)),(Xl=fe.value)!=null&&Xl.items.length?G("",!0):(x(),S("li",bd,a(t.emptyMaterials),1))]),o("div",wd,[o("label",null,[o("span",null,a(t.name),1),M(o("input",{"onUpdate:modelValue":c[39]||(c[39]=r=>me.value.display_name=r),type:"text"},null,512),[[B,me.value.display_name]])]),o("label",null,[o("span",null,a(t.filename),1),M(o("input",{"onUpdate:modelValue":c[40]||(c[40]=r=>me.value.filename=r),type:"text"},null,512),[[B,me.value.filename]])]),o("label",null,[o("span",null,a(t.contentType),1),M(o("input",{"onUpdate:modelValue":c[41]||(c[41]=r=>me.value.content_type=r),type:"text"},null,512),[[B,me.value.content_type]])]),o("label",null,[o("span",null,a(t.imageUri),1),M(o("input",{"onUpdate:modelValue":c[42]||(c[42]=r=>me.value.image_uri=r),type:"text",placeholder:"storage://materials/upload.png"},null,512),[[B,me.value.image_uri]])]),o("label",null,[o("span",null,a(t.category),1),M(o("select",{"onUpdate:modelValue":c[43]||(c[43]=r=>me.value.category_id=r)},[o("option",kd,a(t.allCategories),1),(x(!0),S(Y,null,ve(V.value,r=>(x(),S("option",{key:r.category_id,value:r.category_id},a(r.name),9,Cd))),128))],512),[[Mt,me.value.category_id]])]),o("button",{type:"button",disabled:!!_.value||!me.value.image_uri,onClick:Hi},a(t.upload),9,xd),o("button",{type:"button",disabled:!!_.value,onClick:Jl},a(t.reset),9,Sd)]),Ve.value?(x(),S("pre",Pd,a(JSON.stringify(Ve.value,null,2)),1)):G("",!0)])])):G("",!0),l.value==="wardrobe"?(x(),S("section",Dd,[o("header",null,[o("h2",null,a(T.value),1),o("button",{type:"button",disabled:!w.value||!!_.value,onClick:xi},a(t.match),9,Td)]),o("div",Ed,[o("label",null,[o("span",null,a(t.selectMaterial),1),M(o("select",{"onUpdate:modelValue":c[44]||(c[44]=r=>ye.value.material_id=r)},[o("option",Od,a(t.selectMaterial),1),(x(!0),S(Y,null,ve(C.value,r=>(x(),S("option",{key:r.material_id,value:r.material_id},a(r.display_name),9,Id))),128))],512),[[Mt,ye.value.material_id]])]),o("label",null,[o("span",null,a(t.wardrobeCategory),1),M(o("input",{"onUpdate:modelValue":c[45]||(c[45]=r=>ye.value.wardrobe_category=r),type:"text"},null,512),[[B,ye.value.wardrobe_category]])]),o("label",null,[o("span",null,a(t.tags),1),M(o("input",{"onUpdate:modelValue":c[46]||(c[46]=r=>ye.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[B,ye.value.tags]])]),o("label",null,[o("span",null,a(t.season),1),M(o("input",{"onUpdate:modelValue":c[47]||(c[47]=r=>ye.value.season=r),type:"text"},null,512),[[B,ye.value.season]])]),o("label",null,[o("span",null,a(t.style),1),M(o("input",{"onUpdate:modelValue":c[48]||(c[48]=r=>ye.value.style=r),type:"text"},null,512),[[B,ye.value.style]])]),o("button",{type:"button",disabled:!!_.value||!w.value||!ye.value.material_id||!ye.value.wardrobe_category,onClick:Pi},a(t.importToWardrobe),9,Ad)]),o("ul",null,[(x(!0),S(Y,null,ve(Oe.value,r=>(x(),S("li",{key:r.wardrobe_item_id},[o("div",null,[o("strong",null,a(r.wardrobe_category),1),o("small",null,a(r.material_id)+" / "+a(r.tags.join(", ")||t.noTags),1)]),o("div",Md,[o("span",null,a(r.usage_count),1),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Di(r.wardrobe_item_id)},a(t.delete),9,$d)])]))),128)),Oe.value.length?G("",!0):(x(),S("li",Rd,a(t.emptyWardrobe),1))]),pt.value?(x(),S("pre",Ud,a(JSON.stringify(pt.value,null,2)),1)):G("",!0),o("div",Bd,[o("label",null,[o("span",null,a(t.categories),1),M(o("input",{"onUpdate:modelValue":c[49]||(c[49]=r=>Ae.value.categories=r),type:"text"},null,512),[[B,Ae.value.categories]])]),o("label",null,[o("span",null,a(t.mood),1),M(o("input",{"onUpdate:modelValue":c[50]||(c[50]=r=>Ae.value.mood=r),type:"text"},null,512),[[B,Ae.value.mood]])]),o("label",null,[o("span",null,a(t.weather),1),M(o("input",{"onUpdate:modelValue":c[51]||(c[51]=r=>Ae.value.weather=r),type:"text"},null,512),[[B,Ae.value.weather]])]),o("label",null,[o("span",null,a(t.keywords),1),M(o("input",{"onUpdate:modelValue":c[52]||(c[52]=r=>Ae.value.keywords=r),type:"text"},null,512),[[B,Ae.value.keywords]])]),o("button",{type:"button",disabled:!!_.value||!w.value,onClick:Ti},a(t.dailyOutfit),9,Vd)]),lt.value?(x(),S("pre",Ld,a(JSON.stringify(lt.value,null,2)),1)):G("",!0)])):G("",!0),l.value==="jobs"?(x(),S("section",Fd,[o("header",null,[o("h2",null,a(t.jobs),1),o("div",Nd,[o("button",{type:"button",disabled:!!_.value,onClick:yi},a(t.moveFailed),9,jd),o("button",{type:"button",disabled:!!_.value,onClick:bi},a(t.retryDead),9,Wd)])]),o("div",Hd,[o("label",null,[c[63]||(c[63]=o("span",null,"Status",-1)),M(o("select",{"onUpdate:modelValue":c[53]||(c[53]=r=>Ye.value.status=r)},[o("option",Kd,a(t.allStatuses),1),(x(),S(Y,null,ve(I,r=>o("option",{key:r,value:r},a(r),9,qd)),64))],512),[[Mt,Ye.value.status]])]),o("label",null,[o("span",null,a(t.profiles),1),M(o("select",{"onUpdate:modelValue":c[54]||(c[54]=r=>Ye.value.profile_id=r)},[o("option",Jd,a(t.allProfiles),1),(x(!0),S(Y,null,ve(((Zl=u.value)==null?void 0:Zl.items)??[],r=>(x(),S("option",{key:r.profile_id,value:r.profile_id},a(r.name),9,Gd))),128))],512),[[Mt,Ye.value.profile_id]])]),o("label",null,[o("span",null,a(t.workflows),1),M(o("select",{"onUpdate:modelValue":c[55]||(c[55]=r=>Ye.value.workflow_id=r)},[o("option",zd,a(t.allWorkflows),1),(x(!0),S(Y,null,ve(d.value,r=>(x(),S("option",{key:r.workflow_id,value:r.workflow_id},a(r.display_name),9,Yd))),128))],512),[[Mt,Ye.value.workflow_id]])]),o("button",{type:"button",disabled:!!_.value,onClick:le},a(t.filter),9,Qd)]),o("ul",null,[(x(!0),S(Y,null,ve(((eo=j.value)==null?void 0:eo.items)??[],r=>(x(),S("li",{key:r.task_id},[o("div",null,[o("strong",null,a(r.task_id),1),o("small",null,a(r.task_type)+" / "+a(r.progress)+"%",1)]),o("div",Xd,[o("span",Zd,a(r.status),1),["failed","dead_letter","cancelled"].includes(r.status)?(x(),S("button",{key:0,type:"button",onClick:ne=>Je(r.task_id)},a(t.retry),9,ef)):G("",!0),["completed","succeeded","cancelled"].includes(r.status)?G("",!0):(x(),S("button",{key:1,type:"button",onClick:ne=>_n(r.task_id)},a(t.cancel),9,tf)),o("button",{type:"button",disabled:!!_.value,onClick:ne=>mn(r.task_id)},a(t.detail),9,nf)])]))),128)),(to=j.value)!=null&&to.items.length?G("",!0):(x(),S("li",lf,a(t.emptyJobs),1))]),he.value?(x(),S("section",of,[o("header",null,[o("h2",null,a(t.jobDetail),1),o("span",null,a(he.value.status),1)]),o("pre",null,a(JSON.stringify(he.value,null,2)),1)])):G("",!0)])):G("",!0),l.value==="discovery"?(x(),S("section",sf,[o("div",rf,[o("header",null,[o("h2",null,a(t.dialects),1),o("div",af,[o("button",{type:"button",disabled:!!_.value,onClick:ki},a(t.probeProvider),9,uf),o("button",{type:"button",disabled:!!_.value,onClick:wi},a(t.safeProbe),9,cf)])]),o("ul",null,[(x(!0),S(Y,null,ve(Ie.value,r=>(x(),S("li",{key:r.dialect},[o("div",null,[o("strong",null,a(r.label),1),o("small",null,a(r.capabilities.join(", ")||t.unconfirmed),1)]),o("span",null,a(r.dialect),1)]))),128))]),o("div",df,[o("label",null,[o("span",null,a(t.provider),1),M(o("input",{"onUpdate:modelValue":c[56]||(c[56]=r=>Me.value.provider_id=r),type:"text",placeholder:"local-preview"},null,512),[[B,Me.value.provider_id]])]),o("label",null,[o("span",null,a(t.model),1),M(o("input",{"onUpdate:modelValue":c[57]||(c[57]=r=>Me.value.model_id=r),type:"text",placeholder:"metadata-only"},null,512),[[B,Me.value.model_id]])]),o("label",null,[o("span",null,a(t.requiredCapabilities),1),M(o("input",{"onUpdate:modelValue":c[58]||(c[58]=r=>Me.value.required_capabilities=r),type:"text",placeholder:"text_to_image"},null,512),[[B,Me.value.required_capabilities]])]),o("button",{type:"button",disabled:!!_.value||!Me.value.provider_id||!Me.value.model_id,onClick:Ci},a(t.validatePlan),9,ff)]),p.value?(x(),S("pre",pf,a(JSON.stringify(p.value,null,2)),1)):G("",!0)]),o("div",hf,[o("header",null,[o("h2",null,a(t.capabilityProfiles),1),o("span",null,a(je.value.length),1)]),o("ul",null,[(x(!0),S(Y,null,ve(je.value,r=>(x(),S("li",{key:r.capability_profile_id},[o("div",null,[o("strong",null,a(r.provider_id)+" / "+a(r.model_id),1),o("small",null,a(r.dialect),1)]),o("div",vf,[o("span",gf,a(r.status),1),o("button",{type:"button",disabled:!!_.value,onClick:ne=>tl(r,"confirmed_supported")},a(t.support),9,_f),o("button",{type:"button",disabled:!!_.value,onClick:ne=>tl(r,"confirmed_unsupported")},a(t.unsupported),9,mf),o("button",{type:"button",disabled:!!_.value,onClick:ne=>tl(r,"unconfirmed")},a(t.unconfirmed),9,yf)])]))),128)),je.value.length?G("",!0):(x(),S("li",bf,a(t.emptyCapabilities),1))])])])):G("",!0),l.value==="logs"?(x(),S("section",wf,[o("div",kf,[o("div",Cf,[o("header",null,[o("h2",null,a(t.generationLogs),1),o("span",null,a(_e.value.generation.length),1)]),o("ul",null,[(x(!0),S(Y,null,ve(_e.value.generation,r=>(x(),S("li",{key:r.task_id},[o("div",null,[o("strong",null,a(r.task_id),1),o("small",null,a(r.status)+" / "+a(r.progress)+"%",1)]),o("span",null,a(r.created_at),1)]))),128)),_e.value.generation.length?G("",!0):(x(),S("li",xf,a(t.emptyGenerationLogs),1))])]),o("div",Sf,[o("header",null,[o("h2",null,a(t.errorLogs),1),o("span",null,a(_e.value.errors.length),1)]),o("ul",null,[(x(!0),S(Y,null,ve(_e.value.errors,r=>(x(),S("li",{key:`${r.source}-${r.id}`},[o("div",null,[o("strong",null,a(r.source),1),o("small",null,a(r.error_message??t.noErrorDetail),1)]),o("span",Pf,a(r.status),1)]))),128)),_e.value.errors.length?G("",!0):(x(),S("li",Df,a(t.emptyErrors),1))])])]),o("div",Tf,[o("div",Ef,[o("header",null,[o("h2",null,a(t.workflowLogs),1),o("span",null,a(_e.value.workflows.length),1)]),o("ul",null,[(x(!0),S(Y,null,ve(_e.value.workflows,r=>(x(),S("li",{key:r.history_id},[o("div",null,[o("strong",null,a(r.action),1),o("small",null,a(r.title??r.workflow_id),1)]),o("span",null,a(r.branch_name??"main"),1)]))),128)),_e.value.workflows.length?G("",!0):(x(),S("li",Of,a(t.emptyWorkflowLogs),1))])]),o("div",If,[o("header",null,[o("h2",null,a(t.integrationLogs),1),o("span",null,a(_e.value.integrations.length),1)]),o("ul",null,[(x(!0),S(Y,null,ve(_e.value.integrations,r=>(x(),S("li",{key:r.integration_log_id},[o("div",null,[o("strong",null,a(r.integration_name),1),o("small",null,a(r.action),1)]),o("span",Af,a(r.status),1)]))),128)),_e.value.integrations.length?G("",!0):(x(),S("li",Mf,a(t.emptyIntegrationLogs),1))])])]),o("div",$f,[o("header",null,[o("h2",null,a(t.auditLogs),1),o("span",null,a(_e.value.audit.length),1)]),o("ul",null,[(x(!0),S(Y,null,ve(_e.value.audit,r=>(x(),S("li",{key:r.audit_id},[o("div",null,[o("strong",null,a(r.action),1),o("small",null,a(r.actor_type)+" / "+a(r.target_type)+" / "+a(r.target_id),1)]),o("span",null,a(r.created_at),1)]))),128)),_e.value.audit.length?G("",!0):(x(),S("li",Rf,a(t.emptyAuditLogs),1))])])])):G("",!0),l.value==="settings"?(x(),S("section",Uf,[o("div",Bf,[o("button",{type:"button",disabled:!!_.value,onClick:Ei},a(t.reload),9,Vf),o("button",{type:"button",disabled:!!_.value,onClick:c[59]||(c[59]=r=>Lt())},a(t.reset),9,Lf),o("button",{type:"button",disabled:!!_.value,onClick:Ai},a(t.validate),9,Ff),o("button",{type:"button",disabled:!!_.value,onClick:Mi},a(t.diff),9,Nf),o("button",{type:"button",disabled:!!_.value,onClick:$i},a(t.save),9,jf),o("button",{type:"button",disabled:!!_.value,onClick:Oi},a(t.exportRedacted),9,Wf),o("button",{type:"button",disabled:!!_.value,onClick:ql},a(t.loadSnapshots),9,Hf)]),o("div",Kf,[(x(!0),S(Y,null,ve(((no=de.value)==null?void 0:no.sections)??[],r=>(x(),S("article",{key:r.key},[o("h2",null,a(r.title),1),o("span",null,a(r.fields.length),1)]))),128))]),o("section",qf,[o("header",null,[o("h2",null,a(t.settingsEditor),1),o("span",null,a(((lo=H.value)==null?void 0:lo.config_path)??"***PATH***"),1)]),M(o("textarea",{"onUpdate:modelValue":c[60]||(c[60]=r=>ht.value=r),spellcheck:"false"},null,512),[[B,ht.value]])]),o("section",Jf,[o("header",null,[o("h2",null,a(t.importSettings),1),o("button",{type:"button",disabled:!!_.value||!nt.value,onClick:Ri},a(t.importSettings),9,Gf)]),M(o("textarea",{"onUpdate:modelValue":c[61]||(c[61]=r=>nt.value=r),spellcheck:"false"},null,512),[[B,nt.value]])]),o("section",zf,[o("header",null,[o("h2",null,a(t.snapshots),1),o("span",null,a(Ct.value.length),1)]),o("ul",null,[(x(!0),S(Y,null,ve(Ct.value,r=>(x(),S("li",{key:r.snapshot_id},[o("div",null,[o("strong",null,a(r.reason),1),o("small",null,a(r.snapshot_id)+" / "+a(r.created_at),1)]),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Ui(r.snapshot_id)},a(t.rollback),9,Yf)]))),128))])]),o("div",Qf,[o("div",Xf,[o("header",null,[o("h2",null,a(t.validationResult),1),o("span",null,a(((oo=xt.value)==null?void 0:oo.valid)??"-"),1)]),o("pre",null,a(JSON.stringify(xt.value??{},null,2)),1)]),o("div",Zf,[o("header",null,[o("h2",null,a(t.diffResult),1),o("span",null,a(((so=ke.value)==null?void 0:so.changes.length)??0),1)]),o("pre",null,a(JSON.stringify(ke.value??{},null,2)),1)])])])):G("",!0)],64))]),o("aside",ep,[o("h2",null,a(t.running),1),o("dl",null,[o("div",null,[c[64]||(c[64]=o("dt",null,"Pending",-1)),o("dd",null,a(((io=i.value)==null?void 0:io.queue.pending)??0),1)]),o("div",null,[c[65]||(c[65]=o("dt",null,"Running",-1)),o("dd",null,a(((ro=i.value)==null?void 0:ro.queue.running)??0),1)]),o("div",null,[c[66]||(c[66]=o("dt",null,"Failed",-1)),o("dd",null,a(((ao=i.value)==null?void 0:ao.queue.failed)??0),1)]),o("div",null,[c[67]||(c[67]=o("dt",null,"Dead",-1)),o("dd",null,a(((uo=i.value)==null?void 0:uo.queue.dead_letter)??0),1)])]),o("h2",null,a(t.storage),1),o("dl",null,[o("div",null,[c[68]||(c[68]=o("dt",null,"Images",-1)),o("dd",null,a(ol(Gl("storage://images/"))),1)]),o("div",null,[c[69]||(c[69]=o("dt",null,"Materials",-1)),o("dd",null,a(ol(Gl("storage://materials/"))),1)])])])])}}}),np=(e,t)=>{const n=e.__vccOpts||e;for(const[l,s]of t)n[l]=s;return n},lp=np(tp,[["__scopeId","data-v-a37d195e"]]);yu(lp).mount("#app"); diff --git a/web/assets/index-CE_7apqM.js b/web/assets/index-CE_7apqM.js deleted file mode 100644 index fe73184..0000000 --- a/web/assets/index-CE_7apqM.js +++ /dev/null @@ -1,17 +0,0 @@ -var Ki=Object.defineProperty;var qi=(e,t,n)=>t in e?Ki(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ol=(e,t,n)=>qi(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&l(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function l(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();/** -* @vue/shared v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Tl(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const pe={},Nt=[],at=()=>{},Ns=()=>!1,Nn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),jn=e=>e.startsWith("onUpdate:"),Ee=Object.assign,Ol=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ji=Object.prototype.hasOwnProperty,ie=(e,t)=>Ji.call(e,t),W=Array.isArray,jt=e=>pn(e)==="[object Map]",Wn=e=>pn(e)==="[object Set]",us=e=>pn(e)==="[object Date]",J=e=>typeof e=="function",we=e=>typeof e=="string",ut=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",js=e=>(ce(e)||J(e))&&J(e.then)&&J(e.catch),Ws=Object.prototype.toString,pn=e=>Ws.call(e),Gi=e=>pn(e).slice(8,-1),Hs=e=>pn(e)==="[object Object]",Il=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,en=Tl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},zi=/-\w/g,Xe=Hn(e=>e.replace(zi,t=>t.slice(1).toUpperCase())),Yi=/\B([A-Z])/g,Bt=Hn(e=>e.replace(Yi,"-$1").toLowerCase()),Ks=Hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),il=Hn(e=>e?`on${Ks(e)}`:""),rt=(e,t)=>!Object.is(e,t),Tn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},Kn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let cs;const qn=()=>cs||(cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Al(e){if(W(e)){const t={};for(let n=0;n{if(n){const l=n.split(Xi);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function Jn(e){let t="";if(we(e))t=e;else if(W(e))for(let n=0;nhn(n,t))}const Gs=e=>!!(e&&e.__v_isRef===!0),a=e=>we(e)?e:e==null?"":W(e)||ce(e)&&(e.toString===Ws||!J(e.toString))?Gs(e)?a(e.value):JSON.stringify(e,zs,2):String(e),zs=(e,t)=>Gs(t)?zs(e,t.value):jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,o],i)=>(n[rl(l,i)+" =>"]=o,n),{})}:Wn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>rl(n))}:ut(t)?rl(t):ce(t)&&!W(t)&&!Hs(t)?String(t):t,rl=(e,t="")=>{var n;return ut(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let De;class or{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&&De&&(De.active?(this.parent=De,this.index=(De.scopes||(De.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(De===this)De=this.prevScope;else{let t=De;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n0)return;if(nn){let t=nn;for(nn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;tn;){let t=tn;for(tn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function Zs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function eo(e){let t,n=e.depsTail,l=n;for(;l;){const o=l.prevDep;l.version===-1?(l===n&&(n=o),Rl(l),rr(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=o}e.deps=t,e.depsTail=n}function ml(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(to(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function to(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===an)||(e.globalVersion=an,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ml(e))))return;e.flags|=2;const t=e.dep,n=ve,l=Ze;ve=e,Ze=!0;try{Zs(e);const o=e.fn(e._value);(t.version===0||rt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ve=n,Ze=l,eo(e),e.flags&=-3}}function Rl(e,t=!1){const{dep:n,prevSub:l,nextSub:o}=e;if(l&&(l.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Rl(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function rr(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ze=!0;const no=[];function ct(){no.push(Ze),Ze=!1}function dt(){const e=no.pop();Ze=e===void 0?!0:e}function ds(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ve;ve=void 0;try{t()}finally{ve=n}}}let an=0;class ar{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Bl{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(!ve||!Ze||ve===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ve)n=this.activeLink=new ar(ve,this),ve.deps?(n.prevDep=ve.depsTail,ve.depsTail.nextDep=n,ve.depsTail=n):ve.deps=ve.depsTail=n,lo(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=ve.depsTail,n.nextDep=void 0,ve.depsTail.nextDep=n,ve.depsTail=n,ve.deps===n&&(ve.deps=l)}return n}trigger(t){this.version++,an++,this.notify(t)}notify(t){Ml();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{$l()}}}function lo(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)lo(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const yl=new WeakMap,$t=Symbol(""),bl=Symbol(""),un=Symbol("");function Oe(e,t,n){if(Ze&&ve){let l=yl.get(e);l||yl.set(e,l=new Map);let o=l.get(n);o||(l.set(n,o=new Bl),o.map=l,o.key=n),o.track()}}function _t(e,t,n,l,o,i){const r=yl.get(e);if(!r){an++;return}const d=h=>{h&&h.trigger()};if(Ml(),t==="clear")r.forEach(d);else{const h=W(e),m=h&&Il(n);if(h&&n==="length"){const _=Number(l);r.forEach((y,O)=>{(O==="length"||O===un||!ut(O)&&O>=_)&&d(y)})}else switch((n!==void 0||r.has(void 0))&&d(r.get(n)),m&&d(r.get(un)),t){case"add":h?m&&d(r.get("length")):(d(r.get($t)),jt(e)&&d(r.get(bl)));break;case"delete":h||(d(r.get($t)),jt(e)&&d(r.get(bl)));break;case"set":jt(e)&&d(r.get($t));break}}$l()}function Vt(e){const t=oe(e);return t===e?t:(Oe(t,"iterate",un),ze(e)?t:t.map(et))}function Gn(e){return Oe(e=oe(e),"iterate",un),e}function ot(e,t){return bt(e)?qt(Rt(e)?et(t):t):et(t)}const ur={__proto__:null,[Symbol.iterator](){return ul(this,Symbol.iterator,e=>ot(this,e))},concat(...e){return Vt(this).concat(...e.map(t=>W(t)?Vt(t):t))},entries(){return ul(this,"entries",e=>(e[1]=ot(this,e[1]),e))},every(e,t){return ht(this,"every",e,t,void 0,arguments)},filter(e,t){return ht(this,"filter",e,t,n=>n.map(l=>ot(this,l)),arguments)},find(e,t){return ht(this,"find",e,t,n=>ot(this,n),arguments)},findIndex(e,t){return ht(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ht(this,"findLast",e,t,n=>ot(this,n),arguments)},findLastIndex(e,t){return ht(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ht(this,"forEach",e,t,void 0,arguments)},includes(...e){return cl(this,"includes",e)},indexOf(...e){return cl(this,"indexOf",e)},join(e){return Vt(this).join(e)},lastIndexOf(...e){return cl(this,"lastIndexOf",e)},map(e,t){return ht(this,"map",e,t,void 0,arguments)},pop(){return Yt(this,"pop")},push(...e){return Yt(this,"push",e)},reduce(e,...t){return fs(this,"reduce",e,t)},reduceRight(e,...t){return fs(this,"reduceRight",e,t)},shift(){return Yt(this,"shift")},some(e,t){return ht(this,"some",e,t,void 0,arguments)},splice(...e){return Yt(this,"splice",e)},toReversed(){return Vt(this).toReversed()},toSorted(e){return Vt(this).toSorted(e)},toSpliced(...e){return Vt(this).toSpliced(...e)},unshift(...e){return Yt(this,"unshift",e)},values(){return ul(this,"values",e=>ot(this,e))}};function ul(e,t,n){const l=Gn(e),o=l[t]();return l!==e&&!ze(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.done||(i.value=n(i.value)),i}),o}const cr=Array.prototype;function ht(e,t,n,l,o,i){const r=Gn(e),d=r!==e&&!ze(e),h=r[t];if(h!==cr[t]){const y=h.apply(e,i);return d?et(y):y}let m=n;r!==e&&(d?m=function(y,O){return n.call(this,ot(e,y),O,e)}:n.length>2&&(m=function(y,O){return n.call(this,y,O,e)}));const _=h.call(r,m,l);return d&&o?o(_):_}function fs(e,t,n,l){const o=Gn(e),i=o!==e&&!ze(e);let r=n,d=!1;o!==e&&(i?(d=l.length===0,r=function(m,_,y){return d&&(d=!1,m=ot(e,m)),n.call(this,m,ot(e,_),y,e)}):n.length>3&&(r=function(m,_,y){return n.call(this,m,_,y,e)}));const h=o[t](r,...l);return d?ot(e,h):h}function cl(e,t,n){const l=oe(e);Oe(l,"iterate",un);const o=l[t](...n);return(o===-1||o===!1)&&Fl(n[0])?(n[0]=oe(n[0]),l[t](...n)):o}function Yt(e,t,n=[]){ct(),Ml();const l=oe(e)[t].apply(e,n);return $l(),dt(),l}const dr=Tl("__proto__,__v_isRef,__isVue"),so=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ut));function fr(e){ut(e)||(e=String(e));const t=oe(this);return Oe(t,"has",e),t.hasOwnProperty(e)}class oo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return l===(o?i?kr:uo:i?ao:ro).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const r=W(t);if(!o){let h;if(r&&(h=ur[n]))return h;if(n==="hasOwnProperty")return fr}const d=Reflect.get(t,n,Ie(t)?t:l);if((ut(n)?so.has(n):dr(n))||(o||Oe(t,"get",n),i))return d;if(Ie(d)){const h=r&&Il(n)?d:d.value;return o&&ce(h)?kl(h):h}return ce(d)?o?kl(d):Vl(d):d}}class io extends oo{constructor(t=!1){super(!1,t)}set(t,n,l,o){let i=t[n];const r=W(t)&&Il(n);if(!this._isShallow){const m=bt(i);if(!ze(l)&&!bt(l)&&(i=oe(i),l=oe(l)),!r&&Ie(i)&&!Ie(l))return m||(i.value=l),!0}const d=r?Number(n)e,Pn=e=>Reflect.getPrototypeOf(e);function _r(e,t,n){return function(...l){const o=this.__v_raw,i=oe(o),r=jt(i),d=e==="entries"||e===Symbol.iterator&&r,h=e==="keys"&&r,m=o[e](...l),_=n?wl:t?qt:et;return!t&&Oe(i,"iterate",h?bl:$t),Ee(Object.create(m),{next(){const{value:y,done:O}=m.next();return O?{value:y,done:O}:{value:d?[_(y[0]),_(y[1])]:_(y),done:O}}})}}function Dn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function mr(e,t){const n={get(o){const i=this.__v_raw,r=oe(i),d=oe(o);e||(rt(o,d)&&Oe(r,"get",o),Oe(r,"get",d));const{has:h}=Pn(r),m=t?wl:e?qt:et;if(h.call(r,o))return m(i.get(o));if(h.call(r,d))return m(i.get(d));i!==r&&i.get(o)},get size(){const o=this.__v_raw;return!e&&Oe(oe(o),"iterate",$t),o.size},has(o){const i=this.__v_raw,r=oe(i),d=oe(o);return e||(rt(o,d)&&Oe(r,"has",o),Oe(r,"has",d)),o===d?i.has(o):i.has(o)||i.has(d)},forEach(o,i){const r=this,d=r.__v_raw,h=oe(d),m=t?wl:e?qt:et;return!e&&Oe(h,"iterate",$t),d.forEach((_,y)=>o.call(i,m(_),m(y),r))}};return Ee(n,e?{add:Dn("add"),set:Dn("set"),delete:Dn("delete"),clear:Dn("clear")}:{add(o){const i=oe(this),r=Pn(i),d=oe(o),h=!t&&!ze(o)&&!bt(o)?d:o;return r.has.call(i,h)||rt(o,h)&&r.has.call(i,o)||rt(d,h)&&r.has.call(i,d)||(i.add(h),_t(i,"add",h,h)),this},set(o,i){!t&&!ze(i)&&!bt(i)&&(i=oe(i));const r=oe(this),{has:d,get:h}=Pn(r);let m=d.call(r,o);m||(o=oe(o),m=d.call(r,o));const _=h.call(r,o);return r.set(o,i),m?rt(i,_)&&_t(r,"set",o,i):_t(r,"add",o,i),this},delete(o){const i=oe(this),{has:r,get:d}=Pn(i);let h=r.call(i,o);h||(o=oe(o),h=r.call(i,o)),d&&d.call(i,o);const m=i.delete(o);return h&&_t(i,"delete",o,void 0),m},clear(){const o=oe(this),i=o.size!==0,r=o.clear();return i&&_t(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=_r(o,e,t)}),n}function Ul(e,t){const n=mr(e,t);return(l,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?l:Reflect.get(ie(n,o)&&o in l?n:l,o,i)}const yr={get:Ul(!1,!1)},br={get:Ul(!1,!0)},wr={get:Ul(!0,!1)};const ro=new WeakMap,ao=new WeakMap,uo=new WeakMap,kr=new WeakMap;function Cr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Vl(e){return bt(e)?e:Ll(e,!1,hr,yr,ro)}function xr(e){return Ll(e,!1,gr,br,ao)}function kl(e){return Ll(e,!0,vr,wr,uo)}function Ll(e,t,n,l,o){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=o.get(e);if(i)return i;const r=Cr(Gi(e));if(r===0)return e;const d=new Proxy(e,r===2?l:n);return o.set(e,d),d}function Rt(e){return bt(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function bt(e){return!!(e&&e.__v_isReadonly)}function ze(e){return!!(e&&e.__v_isShallow)}function Fl(e){return e?!!e.__v_raw:!1}function oe(e){const t=e&&e.__v_raw;return t?oe(t):e}function Sr(e){return!ie(e,"__v_skip")&&Object.isExtensible(e)&&qs(e,"__v_skip",!0),e}const et=e=>ce(e)?Vl(e):e,qt=e=>ce(e)?kl(e):e;function Ie(e){return e?e.__v_isRef===!0:!1}function F(e){return Pr(e,!1)}function Pr(e,t){return Ie(e)?e:new Dr(e,t)}class Dr{constructor(t,n){this.dep=new Bl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:oe(t),this._value=n?t:et(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||ze(t)||bt(t);t=l?t:oe(t),rt(t,n)&&(this._rawValue=t,this._value=l?t:et(t),this.dep.trigger())}}function Er(e){return Ie(e)?e.value:e}const Tr={get:(e,t,n)=>t==="__v_raw"?e:Er(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const o=e[t];return Ie(o)&&!Ie(n)?(o.value=n,!0):Reflect.set(e,t,n,l)}};function co(e){return Rt(e)?e:new Proxy(e,Tr)}class Or{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Bl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=an-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&ve!==this)return Xs(this,!0),!0}get value(){const t=this.dep.track();return to(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ir(e,t,n=!1){let l,o;return J(e)?l=e:(l=e.get,o=e.set),new Or(l,o,n)}const En={},An=new WeakMap;let At;function Ar(e,t=!1,n=At){if(n){let l=An.get(n);l||An.set(n,l=[]),l.push(e)}}function Mr(e,t,n=pe){const{immediate:l,deep:o,once:i,scheduler:r,augmentJob:d,call:h}=n,m=U=>o?U:ze(U)||o===!1||o===0?mt(U,1):mt(U);let _,y,O,A,Z=!1,N=!1;if(Ie(e)?(y=()=>e.value,Z=ze(e)):Rt(e)?(y=()=>m(e),Z=!0):W(e)?(N=!0,Z=e.some(U=>Rt(U)||ze(U)),y=()=>e.map(U=>{if(Ie(U))return U.value;if(Rt(U))return m(U);if(J(U))return h?h(U,2):U()})):J(e)?t?y=h?()=>h(e,2):e:y=()=>{if(O){ct();try{O()}finally{dt()}}const U=At;At=_;try{return h?h(e,3,[A]):e(A)}finally{At=U}}:y=at,t&&o){const U=y,fe=o===!0?1/0:o;y=()=>mt(U(),fe)}const he=ir(),de=()=>{_.stop(),he&&he.active&&Ol(he.effects,_)};if(i&&t){const U=t;t=(...fe)=>{const Ae=U(...fe);return de(),Ae}}let H=N?new Array(e.length).fill(En):En;const re=U=>{if(!(!(_.flags&1)||!_.dirty&&!U))if(t){const fe=_.run();if(U||o||Z||(N?fe.some((Ae,Me)=>rt(Ae,H[Me])):rt(fe,H))){O&&O();const Ae=At;At=_;try{const Me=[fe,H===En?void 0:N&&H[0]===En?[]:H,A];H=fe,h?h(t,3,Me):t(...Me)}finally{At=Ae}}}else _.run()};return d&&d(re),_=new Ys(y),_.scheduler=r?()=>r(re,!1):re,A=U=>Ar(U,!1,_),O=_.onStop=()=>{const U=An.get(_);if(U){if(h)h(U,4);else for(const fe of U)fe();An.delete(_)}},t?l?re(!0):H=_.run():r?r(re.bind(null,!0),!0):_.run(),de.pause=_.pause.bind(_),de.resume=_.resume.bind(_),de.stop=de,de}function mt(e,t=1/0,n){if(t<=0||!ce(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ie(e))mt(e.value,t,n);else if(W(e))for(let l=0;l{mt(l,t,n)});else if(Hs(e)){for(const l in e)mt(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&mt(e[l],t,n)}return e}/** -* @vue/runtime-core v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function vn(e,t,n,l){try{return l?e(...l):e()}catch(o){zn(o,t,n)}}function tt(e,t,n,l){if(J(e)){const o=vn(e,t,n,l);return o&&js(o)&&o.catch(i=>{zn(i,t,n)}),o}if(W(e)){const o=[];for(let i=0;i>>1,o=Be[l],i=cn(o);i=cn(n)?Be.push(e):Be.splice(Rr(t),0,e),e.flags|=1,ho()}}function ho(){Mn||(Mn=fo.then(go))}function Br(e){W(e)?Wt.push(...e):Dt&&e.id===-1?Dt.splice(Ft+1,0,e):e.flags&1||(Wt.push(e),e.flags|=1),ho()}function ps(e,t,n=st+1){for(;ncn(n)-cn(l));if(Wt.length=0,Dt){Dt.push(...t);return}for(Dt=t,Ft=0;Fte.id==null?e.flags&2?-1:1/0:e.id;function go(e){try{for(st=0;st{l._d&&xs(-1);const i=$n(t);let r;try{r=e(...o)}finally{$n(i),l._d&&xs(1)}return r};return l._n=!0,l._c=!0,l._d=!0,l}function R(e,t){if(Ge===null)return e;const n=Zn(Ge),l=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&J(t)?t.call(l&&l.proxy):t}}const Lr=Symbol.for("v-scx"),Fr=()=>On(Lr);function dl(e,t,n){return mo(e,t,n)}function mo(e,t,n=pe){const{immediate:l,deep:o,flush:i,once:r}=n,d=Ee({},n),h=t&&l||!t&&i!=="post";let m;if(fn){if(i==="sync"){const A=Fr();m=A.__watcherHandles||(A.__watcherHandles=[])}else if(!h){const A=()=>{};return A.stop=at,A.resume=at,A.pause=at,A}}const _=Ue;d.call=(A,Z,N)=>tt(A,_,Z,N);let y=!1;i==="post"?d.scheduler=A=>{Fe(A,_&&_.suspense)}:i!=="sync"&&(y=!0,d.scheduler=(A,Z)=>{Z?A():Nl(A)}),d.augmentJob=A=>{t&&(A.flags|=4),y&&(A.flags|=2,_&&(A.id=_.uid,A.i=_))};const O=Mr(e,t,d);return fn&&(m?m.push(O):h&&O()),O}function Nr(e,t,n){const l=this.proxy,o=we(e)?e.includes(".")?yo(l,e):()=>l[e]:e.bind(l,l);let i;J(t)?i=t:(i=t.handler,n=t);const r=gn(this),d=mo(o,i.bind(l),n);return r(),d}function yo(e,t){const n=t.split(".");return()=>{let l=e;for(let o=0;oe.__isTeleport,fl=Symbol("_leaveCb");function jl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,jl(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 Hr(e,t){return J(e)?Ee({name:e.name},t,{setup:e}):e}function bo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function hs(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Rn=new WeakMap;function ln(e,t,n,l,o=!1){if(W(e)){e.forEach((N,he)=>ln(N,t&&(W(t)?t[he]:t),n,l,o));return}if(sn(l)&&!o){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&ln(e,t,n,l.component.subTree);return}const i=l.shapeFlag&4?Zn(l.component):l.el,r=o?null:i,{i:d,r:h}=e,m=t&&t.r,_=d.refs===pe?d.refs={}:d.refs,y=d.setupState,O=oe(y),A=y===pe?Ns:N=>hs(_,N)?!1:ie(O,N),Z=(N,he)=>!(he&&hs(_,he));if(m!=null&&m!==h){if(vs(t),we(m))_[m]=null,A(m)&&(y[m]=null);else if(Ie(m)){const N=t;Z(m,N.k)&&(m.value=null),N.k&&(_[N.k]=null)}}if(J(h)){ct();try{vn(h,d,12,[r,_])}finally{dt()}}else{const N=we(h),he=Ie(h);if(N||he){const de=()=>{if(e.f){const H=N?A(h)?y[h]:_[h]:Z()||!e.k?h.value:_[e.k];if(o)W(H)&&Ol(H,i);else if(W(H))H.includes(i)||H.push(i);else if(N)_[h]=[i],A(h)&&(y[h]=_[h]);else{const re=[i];Z(h,e.k)&&(h.value=re),e.k&&(_[e.k]=re)}}else N?(_[h]=r,A(h)&&(y[h]=r)):he&&(Z(h,e.k)&&(h.value=r),e.k&&(_[e.k]=r))};if(r){const H=()=>{de(),Rn.delete(e)};H.id=-1,Rn.set(e,H),Fe(H,n)}else vs(e),de()}}}function vs(e){const t=Rn.get(e);t&&(t.flags|=8,Rn.delete(e))}qn().requestIdleCallback;qn().cancelIdleCallback;const sn=e=>!!e.type.__asyncLoader,wo=e=>e.type.__isKeepAlive;function Kr(e,t){ko(e,"a",t)}function qr(e,t){ko(e,"da",t)}function ko(e,t,n=Ue){const l=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Yn(t,l,n),n){let o=n.parent;for(;o&&o.parent;)wo(o.parent.vnode)&&Jr(l,t,n,o),o=o.parent}}function Jr(e,t,n,l){const o=Yn(t,e,l,!0);xo(()=>{Ol(l[t],o)},n)}function Yn(e,t,n=Ue,l=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{ct();const d=gn(n),h=tt(t,n,e,r);return d(),dt(),h});return l?o.unshift(i):o.push(i),i}}const wt=e=>(t,n=Ue)=>{(!fn||e==="sp")&&Yn(e,(...l)=>t(...l),n)},Gr=wt("bm"),Co=wt("m"),zr=wt("bu"),Yr=wt("u"),Qr=wt("bum"),xo=wt("um"),Xr=wt("sp"),Zr=wt("rtg"),ea=wt("rtc");function ta(e,t=Ue){Yn("ec",e,t)}const na=Symbol.for("v-ndc");function ge(e,t,n,l){let o;const i=n,r=W(e);if(r||we(e)){const d=r&&Rt(e);let h=!1,m=!1;d&&(h=!ze(e),m=bt(e),e=Gn(e)),o=new Array(e.length);for(let _=0,y=e.length;_t(d,h,void 0,i));else{const d=Object.keys(e);o=new Array(d.length);for(let h=0,m=d.length;he?Ko(e)?Zn(e):Cl(e.parent):null,on=Ee(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=>Cl(e.parent),$root:e=>Cl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Po(e),$forceUpdate:e=>e.f||(e.f=()=>{Nl(e.update)}),$nextTick:e=>e.n||(e.n=po.bind(e.proxy)),$watch:e=>Nr.bind(e)}),pl=(e,t)=>e!==pe&&!e.__isScriptSetup&&ie(e,t),la={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:o,props:i,accessCache:r,type:d,appContext:h}=e;if(t[0]!=="$"){const O=r[t];if(O!==void 0)switch(O){case 1:return l[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(pl(l,t))return r[t]=1,l[t];if(o!==pe&&ie(o,t))return r[t]=2,o[t];if(ie(i,t))return r[t]=3,i[t];if(n!==pe&&ie(n,t))return r[t]=4,n[t];xl&&(r[t]=0)}}const m=on[t];let _,y;if(m)return t==="$attrs"&&Oe(e.attrs,"get",""),m(e);if((_=d.__cssModules)&&(_=_[t]))return _;if(n!==pe&&ie(n,t))return r[t]=4,n[t];if(y=h.config.globalProperties,ie(y,t))return y[t]},set({_:e},t,n){const{data:l,setupState:o,ctx:i}=e;return pl(o,t)?(o[t]=n,!0):l!==pe&&ie(l,t)?(l[t]=n,!0):ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:o,props:i,type:r}},d){let h;return!!(n[d]||e!==pe&&d[0]!=="$"&&ie(e,d)||pl(t,d)||ie(i,d)||ie(l,d)||ie(on,d)||ie(o.config.globalProperties,d)||(h=r.__cssModules)&&h[d])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function gs(e){return W(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xl=!0;function sa(e){const t=Po(e),n=e.proxy,l=e.ctx;xl=!1,t.beforeCreate&&_s(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:r,watch:d,provide:h,inject:m,created:_,beforeMount:y,mounted:O,beforeUpdate:A,updated:Z,activated:N,deactivated:he,beforeDestroy:de,beforeUnmount:H,destroyed:re,unmounted:U,render:fe,renderTracked:Ae,renderTriggered:Me,errorCaptured:Ne,serverPrefetch:ft,expose:_e,inheritAttrs:Ve,components:pt,directives:nt,filters:kt}=t;if(m&&oa(m,l,null),r)for(const B in r){const ee=r[B];J(ee)&&(l[B]=ee.bind(n))}if(o){const B=o.call(n,n);ce(B)&&(e.data=Vl(B))}if(xl=!0,i)for(const B in i){const ee=i[B],Q=J(ee)?ee.bind(n,n):J(ee.get)?ee.get.bind(n,n):at,je=!J(ee)&&J(ee.set)?ee.set.bind(n):at,Le=Pt({get:Q,set:je});Object.defineProperty(l,B,{enumerable:!0,configurable:!0,get:()=>Le.value,set:K=>Le.value=K})}if(d)for(const B in d)So(d[B],l,n,B);if(h){const B=J(h)?h.call(n):h;Reflect.ownKeys(B).forEach(ee=>{Vr(ee,B[ee])})}_&&_s(_,e,"c");function ke(B,ee){W(ee)?ee.forEach(Q=>B(Q.bind(n))):ee&&B(ee.bind(n))}if(ke(Gr,y),ke(Co,O),ke(zr,A),ke(Yr,Z),ke(Kr,N),ke(qr,he),ke(ta,Ne),ke(ea,Ae),ke(Zr,Me),ke(Qr,H),ke(xo,U),ke(Xr,ft),W(_e))if(_e.length){const B=e.exposed||(e.exposed={});_e.forEach(ee=>{Object.defineProperty(B,ee,{get:()=>n[ee],set:Q=>n[ee]=Q,enumerable:!0})})}else e.exposed||(e.exposed={});fe&&e.render===at&&(e.render=fe),Ve!=null&&(e.inheritAttrs=Ve),pt&&(e.components=pt),nt&&(e.directives=nt),ft&&bo(e)}function oa(e,t,n=at){W(e)&&(e=Sl(e));for(const l in e){const o=e[l];let i;ce(o)?"default"in o?i=On(o.from||l,o.default,!0):i=On(o.from||l):i=On(o),Ie(i)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[l]=i}}function _s(e,t,n){tt(W(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function So(e,t,n,l){let o=l.includes(".")?yo(n,l):()=>n[l];if(we(e)){const i=t[e];J(i)&&dl(o,i)}else if(J(e))dl(o,e.bind(n));else if(ce(e))if(W(e))e.forEach(i=>So(i,t,n,l));else{const i=J(e.handler)?e.handler.bind(n):t[e.handler];J(i)&&dl(o,i,e)}}function Po(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,d=i.get(t);let h;return d?h=d:!o.length&&!n&&!l?h=t:(h={},o.length&&o.forEach(m=>Bn(h,m,r,!0)),Bn(h,t,r)),ce(t)&&i.set(t,h),h}function Bn(e,t,n,l=!1){const{mixins:o,extends:i}=t;i&&Bn(e,i,n,!0),o&&o.forEach(r=>Bn(e,r,n,!0));for(const r in t)if(!(l&&r==="expose")){const d=ia[r]||n&&n[r];e[r]=d?d(e[r],t[r]):t[r]}return e}const ia={data:ms,props:ys,emits:ys,methods:Xt,computed:Xt,beforeCreate:Re,created:Re,beforeMount:Re,mounted:Re,beforeUpdate:Re,updated:Re,beforeDestroy:Re,beforeUnmount:Re,destroyed:Re,unmounted:Re,activated:Re,deactivated:Re,errorCaptured:Re,serverPrefetch:Re,components:Xt,directives:Xt,watch:aa,provide:ms,inject:ra};function ms(e,t){return t?e?function(){return Ee(J(e)?e.call(this,this):e,J(t)?t.call(this,this):t)}:t:e}function ra(e,t){return Xt(Sl(e),Sl(t))}function Sl(e){if(W(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Xe(t)}Modifiers`]||e[`${Bt(t)}Modifiers`];function fa(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||pe;let o=n;const i=t.startsWith("update:"),r=i&&da(l,t.slice(7));r&&(r.trim&&(o=n.map(_=>we(_)?_.trim():_)),r.number&&(o=n.map(Kn)));let d,h=l[d=il(t)]||l[d=il(Xe(t))];!h&&i&&(h=l[d=il(Bt(t))]),h&&tt(h,e,6,o);const m=l[d+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,tt(m,e,6,o)}}const pa=new WeakMap;function Eo(e,t,n=!1){const l=n?pa:t.emitsCache,o=l.get(e);if(o!==void 0)return o;const i=e.emits;let r={},d=!1;if(!J(e)){const h=m=>{const _=Eo(m,t,!0);_&&(d=!0,Ee(r,_))};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!i&&!d?(ce(e)&&l.set(e,null),null):(W(i)?i.forEach(h=>r[h]=null):Ee(r,i),ce(e)&&l.set(e,r),r)}function Qn(e,t){return!e||!Nn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,Bt(t))||ie(e,t))}function bs(e){const{type:t,vnode:n,proxy:l,withProxy:o,propsOptions:[i],slots:r,attrs:d,emit:h,render:m,renderCache:_,props:y,data:O,setupState:A,ctx:Z,inheritAttrs:N}=e,he=$n(e);let de,H;try{if(n.shapeFlag&4){const U=o||l,fe=U;de=it(m.call(fe,U,_,y,A,O,Z)),H=d}else{const U=t;de=it(U.length>1?U(y,{attrs:d,slots:r,emit:h}):U(y,null)),H=t.props?d:ha(d)}}catch(U){rn.length=0,zn(U,e,1),de=yt(Et)}let re=de;if(H&&N!==!1){const U=Object.keys(H),{shapeFlag:fe}=re;U.length&&fe&7&&(i&&U.some(jn)&&(H=va(H,i)),re=Jt(re,H,!1,!0))}return n.dirs&&(re=Jt(re,null,!1,!0),re.dirs=re.dirs?re.dirs.concat(n.dirs):n.dirs),n.transition&&jl(re,n.transition),de=re,$n(he),de}const ha=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nn(n))&&((t||(t={}))[n]=e[n]);return t},va=(e,t)=>{const n={};for(const l in e)(!jn(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function ga(e,t,n){const{props:l,children:o,component:i}=e,{props:r,children:d,patchFlag:h}=t,m=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&h>=0){if(h&1024)return!0;if(h&16)return l?ws(l,r,m):!!r;if(h&8){const _=t.dynamicProps;for(let y=0;y<_.length;y++){const O=_[y];if(To(r,l,O)&&!Qn(m,O))return!0}}}else return(o||d)&&(!d||!d.$stable)?!0:l===r?!1:l?r?ws(l,r,m):!0:!!r;return!1}function ws(e,t,n){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let o=0;oObject.create(Oo),Ao=e=>Object.getPrototypeOf(e)===Oo;function ma(e,t,n,l=!1){const o={},i=Io();e.propsDefaults=Object.create(null),Mo(e,t,o,i);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=l?o:xr(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function ya(e,t,n,l){const{props:o,attrs:i,vnode:{patchFlag:r}}=e,d=oe(o),[h]=e.propsOptions;let m=!1;if((l||r>0)&&!(r&16)){if(r&8){const _=e.vnode.dynamicProps;for(let y=0;y<_.length;y++){let O=_[y];if(Qn(e.emitsOptions,O))continue;const A=t[O];if(h)if(ie(i,O))A!==i[O]&&(i[O]=A,m=!0);else{const Z=Xe(O);o[Z]=Pl(h,d,Z,A,e,!1)}else A!==i[O]&&(i[O]=A,m=!0)}}}else{Mo(e,t,o,i)&&(m=!0);let _;for(const y in d)(!t||!ie(t,y)&&((_=Bt(y))===y||!ie(t,_)))&&(h?n&&(n[y]!==void 0||n[_]!==void 0)&&(o[y]=Pl(h,d,y,void 0,e,!0)):delete o[y]);if(i!==d)for(const y in i)(!t||!ie(t,y))&&(delete i[y],m=!0)}m&&_t(e.attrs,"set","")}function Mo(e,t,n,l){const[o,i]=e.propsOptions;let r=!1,d;if(t)for(let h in t){if(en(h))continue;const m=t[h];let _;o&&ie(o,_=Xe(h))?!i||!i.includes(_)?n[_]=m:(d||(d={}))[_]=m:Qn(e.emitsOptions,h)||(!(h in l)||m!==l[h])&&(l[h]=m,r=!0)}if(i){const h=oe(n),m=d||pe;for(let _=0;_{h=!0;const[O,A]=$o(y,t,!0);Ee(r,O),A&&d.push(...A)};!n&&t.mixins.length&&t.mixins.forEach(_),e.extends&&_(e.extends),e.mixins&&e.mixins.forEach(_)}if(!i&&!h)return ce(e)&&l.set(e,Nt),Nt;if(W(i))for(let _=0;_e==="_"||e==="_ctx"||e==="$stable",Hl=e=>W(e)?e.map(it):[it(e)],wa=(e,t,n)=>{if(t._n)return t;const l=Ur((...o)=>Hl(t(...o)),n);return l._c=!1,l},Ro=(e,t,n)=>{const l=e._ctx;for(const o in e){if(Wl(o))continue;const i=e[o];if(J(i))t[o]=wa(o,i,l);else if(i!=null){const r=Hl(i);t[o]=()=>r}}},Bo=(e,t)=>{const n=Hl(t);e.slots.default=()=>n},Uo=(e,t,n)=>{for(const l in t)(n||!Wl(l))&&(e[l]=t[l])},ka=(e,t,n)=>{const l=e.slots=Io();if(e.vnode.shapeFlag&32){const o=t._;o?(Uo(l,t,n),n&&qs(l,"_",o,!0)):Ro(t,l)}else t&&Bo(e,t)},Ca=(e,t,n)=>{const{vnode:l,slots:o}=e;let i=!0,r=pe;if(l.shapeFlag&32){const d=t._;d?n&&d===1?i=!1:Uo(o,t,n):(i=!t.$stable,Ro(t,o)),r=t}else t&&(Bo(e,t),r={default:1});if(i)for(const d in o)!Wl(d)&&r[d]==null&&delete o[d]},Fe=Ea;function xa(e){return Sa(e)}function Sa(e,t){const n=qn();n.__VUE__=!0;const{insert:l,remove:o,patchProp:i,createElement:r,createText:d,createComment:h,setText:m,setElementText:_,parentNode:y,nextSibling:O,setScopeId:A=at,insertStaticContent:Z}=e,N=(c,g,v,C=null,b=null,w=null,E=void 0,D=null,P=!!g.dynamicChildren)=>{if(c===g)return;c&&!Qt(c,g)&&(C=me(c),K(c,b,w,!0),c=null),g.patchFlag===-2&&(P=!1,g.dynamicChildren=null);const{type:k,ref:V,shapeFlag:I}=g;switch(k){case Xn:he(c,g,v,C);break;case Et:de(c,g,v,C);break;case vl:c==null&&H(g,v,C,E);break;case X:pt(c,g,v,C,b,w,E,D,P);break;default:I&1?fe(c,g,v,C,b,w,E,D,P):I&6?nt(c,g,v,C,b,w,E,D,P):(I&64||I&128)&&k.process(c,g,v,C,b,w,E,D,P,xe)}V!=null&&b?ln(V,c&&c.ref,w,g||c,!g):V==null&&c&&c.ref!=null&&ln(c.ref,null,w,c,!0)},he=(c,g,v,C)=>{if(c==null)l(g.el=d(g.children),v,C);else{const b=g.el=c.el;g.children!==c.children&&m(b,g.children)}},de=(c,g,v,C)=>{c==null?l(g.el=h(g.children||""),v,C):g.el=c.el},H=(c,g,v,C)=>{[c.el,c.anchor]=Z(c.children,g,v,C,c.el,c.anchor)},re=({el:c,anchor:g},v,C)=>{let b;for(;c&&c!==g;)b=O(c),l(c,v,C),c=b;l(g,v,C)},U=({el:c,anchor:g})=>{let v;for(;c&&c!==g;)v=O(c),o(c),c=v;o(g)},fe=(c,g,v,C,b,w,E,D,P)=>{if(g.type==="svg"?E="svg":g.type==="math"&&(E="mathml"),c==null)Ae(g,v,C,b,w,E,D,P);else{const k=c.el&&c.el._isVueCE?c.el:null;try{k&&k._beginPatch(),ft(c,g,b,w,E,D,P)}finally{k&&k._endPatch()}}},Ae=(c,g,v,C,b,w,E,D)=>{let P,k;const{props:V,shapeFlag:I,transition:M,dirs:j}=c;if(P=c.el=r(c.type,w,V&&V.is,V),I&8?_(P,c.children):I&16&&Ne(c.children,P,null,C,b,hl(c,w),E,D),j&&Ot(c,null,C,"created"),Me(P,c,c.scopeId,E,C),V){for(const ae in V)ae!=="value"&&!en(ae)&&i(P,ae,null,V[ae],w,C);"value"in V&&i(P,"value",null,V.value,w),(k=V.onVnodeBeforeMount)&<(k,C,c)}j&&Ot(c,null,C,"beforeMount");const G=Pa(b,M);G&&M.beforeEnter(P),l(P,g,v),((k=V&&V.onVnodeMounted)||G||j)&&Fe(()=>{try{k&<(k,C,c),G&&M.enter(P),j&&Ot(c,null,C,"mounted")}finally{}},b)},Me=(c,g,v,C,b)=>{if(v&&A(c,v),C)for(let w=0;w{for(let k=P;k{const D=g.el=c.el;let{patchFlag:P,dynamicChildren:k,dirs:V}=g;P|=c.patchFlag&16;const I=c.props||pe,M=g.props||pe;let j;if(v&&It(v,!1),(j=M.onVnodeBeforeUpdate)&<(j,v,g,c),V&&Ot(g,c,v,"beforeUpdate"),v&&It(v,!0),k&&(!c.dynamicChildren||c.dynamicChildren.length!==k.length)&&(P=0,E=!1,k=null),(I.innerHTML&&M.innerHTML==null||I.textContent&&M.textContent==null)&&_(D,""),k?_e(c.dynamicChildren,k,D,v,C,hl(g,b),w):E||ee(c,g,D,null,v,C,hl(g,b),w,!1),P>0){if(P&16)Ve(D,I,M,v,b);else if(P&2&&I.class!==M.class&&i(D,"class",null,M.class,b),P&4&&i(D,"style",I.style,M.style,b),P&8){const G=g.dynamicProps;for(let ae=0;ae{j&<(j,v,g,c),V&&Ot(g,c,v,"updated")},C)},_e=(c,g,v,C,b,w,E)=>{for(let D=0;D{if(g!==v){if(g!==pe)for(const w in g)!en(w)&&!(w in v)&&i(c,w,g[w],null,b,C);for(const w in v){if(en(w))continue;const E=v[w],D=g[w];E!==D&&w!=="value"&&i(c,w,D,E,b,C)}"value"in v&&i(c,"value",g.value,v.value,b)}},pt=(c,g,v,C,b,w,E,D,P)=>{const k=g.el=c?c.el:d(""),V=g.anchor=c?c.anchor:d("");let{patchFlag:I,dynamicChildren:M,slotScopeIds:j}=g;j&&(D=D?D.concat(j):j),c==null?(l(k,v,C),l(V,v,C),Ne(g.children||[],v,V,b,w,E,D,P)):I>0&&I&64&&M&&c.dynamicChildren&&c.dynamicChildren.length===M.length?(_e(c.dynamicChildren,M,v,b,w,E,D),(g.key!=null||b&&g===b.subTree)&&Vo(c,g,!0)):ee(c,g,v,V,b,w,E,D,P)},nt=(c,g,v,C,b,w,E,D,P)=>{g.slotScopeIds=D,c==null?g.shapeFlag&512?b.ctx.activate(g,v,C,E,P):kt(g,v,C,b,w,E,P):Ct(c,g,P)},kt=(c,g,v,C,b,w,E)=>{const D=c.component=Ua(c,C,b);if(wo(c)&&(D.ctx.renderer=xe),La(D,!1,E),D.asyncDep){if(b&&b.registerDep(D,ke,E),!c.el){const P=D.subTree=yt(Et);de(null,P,g,v),c.placeholder=P.el}}else ke(D,c,g,v,b,w,E)},Ct=(c,g,v)=>{const C=g.component=c.component;if(ga(c,g,v))if(C.asyncDep&&!C.asyncResolved){B(C,g,v);return}else C.next=g,C.update();else g.el=c.el,C.vnode=g},ke=(c,g,v,C,b,w,E)=>{const D=()=>{if(c.isMounted){let{next:I,bu:M,u:j,parent:G,vnode:ae}=c;{const qe=Lo(c);if(qe){I&&(I.el=ae.el,B(c,I,E)),qe.asyncDep.then(()=>{Fe(()=>{c.isUnmounted||k()},b)});return}}let ne=I,be;It(c,!1),I?(I.el=ae.el,B(c,I,E)):I=ae,M&&Tn(M),(be=I.props&&I.props.onVnodeBeforeUpdate)&<(be,G,I,ae),It(c,!0);const Ce=bs(c),We=c.subTree;c.subTree=Ce,N(We,Ce,y(We.el),me(We),c,b,w),I.el=Ce.el,ne===null&&_a(c,Ce.el),j&&Fe(j,b),(be=I.props&&I.props.onVnodeUpdated)&&Fe(()=>lt(be,G,I,ae),b)}else{let I;const{el:M,props:j}=g,{bm:G,m:ae,parent:ne,root:be,type:Ce}=c,We=sn(g);It(c,!1),G&&Tn(G),!We&&(I=j&&j.onVnodeBeforeMount)&<(I,ne,g),It(c,!0);{be.ce&&be.ce._hasShadowRoot()&&be.ce._injectChildStyle(Ce,c.parent?c.parent.type:void 0);const qe=c.subTree=bs(c);N(null,qe,v,C,c,b,w),g.el=qe.el}if(ae&&Fe(ae,b),!We&&(I=j&&j.onVnodeMounted)){const qe=g;Fe(()=>lt(I,ne,qe),b)}(g.shapeFlag&256||ne&&sn(ne.vnode)&&ne.vnode.shapeFlag&256)&&c.a&&Fe(c.a,b),c.isMounted=!0,g=v=C=null}};c.scope.on();const P=c.effect=new Ys(D);c.scope.off();const k=c.update=P.run.bind(P),V=c.job=P.runIfDirty.bind(P);V.i=c,V.id=c.uid,P.scheduler=()=>Nl(V),It(c,!0),k()},B=(c,g,v)=>{g.component=c;const C=c.vnode.props;c.vnode=g,c.next=null,ya(c,g.props,C,v),Ca(c,g.children,v),ct(),ps(c),dt()},ee=(c,g,v,C,b,w,E,D,P=!1)=>{const k=c&&c.children,V=c?c.shapeFlag:0,I=g.children,{patchFlag:M,shapeFlag:j}=g;if(M>0){if(M&128){je(k,I,v,C,b,w,E,D,P);return}else if(M&256){Q(k,I,v,C,b,w,E,D,P);return}}j&8?(V&16&&ye(k,b,w),I!==k&&_(v,I)):V&16?j&16?je(k,I,v,C,b,w,E,D,P):ye(k,b,w,!0):(V&8&&_(v,""),j&16&&Ne(I,v,C,b,w,E,D,P))},Q=(c,g,v,C,b,w,E,D,P)=>{c=c||Nt,g=g||Nt;const k=c.length,V=g.length,I=Math.min(k,V);let M;for(M=0;MV?ye(c,b,w,!0,!1,I):Ne(g,v,C,b,w,E,D,P,I)},je=(c,g,v,C,b,w,E,D,P)=>{let k=0;const V=g.length;let I=c.length-1,M=V-1;for(;k<=I&&k<=M;){const j=c[k],G=g[k]=P?gt(g[k]):it(g[k]);if(Qt(j,G))N(j,G,v,null,b,w,E,D,P);else break;k++}for(;k<=I&&k<=M;){const j=c[I],G=g[M]=P?gt(g[M]):it(g[M]);if(Qt(j,G))N(j,G,v,null,b,w,E,D,P);else break;I--,M--}if(k>I){if(k<=M){const j=M+1,G=jM)for(;k<=I;)K(c[k],b,w,!0),k++;else{const j=k,G=k,ae=new Map;for(k=G;k<=M;k++){const $e=g[k]=P?gt(g[k]):it(g[k]);$e.key!=null&&ae.set($e.key,k)}let ne,be=0;const Ce=M-G+1;let We=!1,qe=0;const Se=new Array(Ce);for(k=0;k=Ce){K($e,b,w,!0);continue}let Je;if($e.key!=null)Je=ae.get($e.key);else for(ne=G;ne<=M;ne++)if(Se[ne-G]===0&&Qt($e,g[ne])){Je=ne;break}Je===void 0?K($e,b,w,!0):(Se[Je-G]=k+1,Je>=qe?qe=Je:We=!0,N($e,g[Je],v,null,b,w,E,D,P),be++)}const $=We?Da(Se):Nt;for(ne=$.length-1,k=Ce-1;k>=0;k--){const $e=G+k,Je=g[$e],_n=g[$e+1],mn=$e+1{const{el:w,type:E,transition:D,children:P,shapeFlag:k}=c;if(k&6){Le(c.component.subTree,g,v,C);return}if(k&128){c.suspense.move(g,v,C);return}if(k&64){E.move(c,g,v,xe);return}if(E===X){l(w,g,v);for(let I=0;ID.enter(w),b));else{const{leave:I,delayLeave:M,afterLeave:j}=D,G=()=>{c.ctx.isUnmounted?o(w):l(w,g,v)},ae=()=>{const ne=w._isLeaving||!!w[fl];w._isLeaving&&w[fl](!0),D.persisted&&!ne?G():I(w,()=>{G(),j&&j()})};M?M(w,G,ae):ae()}else l(w,g,v)},K=(c,g,v,C=!1,b=!1)=>{const{type:w,props:E,ref:D,children:P,dynamicChildren:k,shapeFlag:V,patchFlag:I,dirs:M,cacheIndex:j,memo:G}=c;if(I===-2&&(b=!1),D!=null&&(ct(),ln(D,null,v,c,!0),dt()),j!=null&&(g.renderCache[j]=void 0),V&256){g.ctx.deactivate(c);return}const ae=V&1&&M,ne=!sn(c);let be;if(ne&&(be=E&&E.onVnodeBeforeUnmount)&<(be,g,c),V&6)ue(c.component,v,C);else{if(V&128){c.suspense.unmount(v,C);return}ae&&Ot(c,null,g,"beforeUnmount"),V&64?c.type.remove(c,g,v,xe,C):k&&!k.hasOnce&&(w!==X||I>0&&I&64)?ye(k,g,v,!1,!0):(w===X&&I&384||!b&&V&16)&&ye(P,g,v),C&&Ke(c)}const Ce=G!=null&&j==null;(ne&&(be=E&&E.onVnodeUnmounted)||ae||Ce)&&Fe(()=>{be&<(be,g,c),ae&&Ot(c,null,g,"unmounted"),Ce&&(c.el=null)},v)},Ke=c=>{const{type:g,el:v,anchor:C,transition:b}=c;if(g===X){Ye(v,C);return}if(g===vl){U(c);return}const w=()=>{o(v),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(c.shapeFlag&1&&b&&!b.persisted){const{leave:E,delayLeave:D}=b,P=()=>E(v,w);D?D(c.el,w,P):P()}else w()},Ye=(c,g)=>{let v;for(;c!==g;)v=O(c),o(c),c=v;o(g)},ue=(c,g,v)=>{const{bum:C,scope:b,job:w,subTree:E,um:D,m:P,a:k}=c;Cs(P),Cs(k),C&&Tn(C),b.stop(),w&&(w.flags|=8,K(E,c,g,v)),D&&Fe(D,g),Fe(()=>{c.isUnmounted=!0},g)},ye=(c,g,v,C=!1,b=!1,w=0)=>{for(let E=w;E{if(c.shapeFlag&6)return me(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const g=O(c.anchor||c.el),v=g&&g[jr];return v?O(v):g};let Te=!1;const Tt=(c,g,v)=>{let C;c==null?g._vnode&&(K(g._vnode,null,null,!0),C=g._vnode.component):N(g._vnode||null,c,g,null,null,null,v),g._vnode=c,Te||(Te=!0,ps(C),vo(),Te=!1)},xe={p:N,um:K,m:Le,r:Ke,mt:kt,mc:Ne,pc:ee,pbc:_e,n:me,o:e};return{render:Tt,hydrate:void 0,createApp:ca(Tt)}}function hl({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function It({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Pa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vo(e,t,n=!1){const l=e.children,o=t.children;if(W(l)&&W(o))for(let i=0;i>1,e[n[d]]0&&(t[l]=n[i-1]),n[i]=l)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}function Lo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Lo(t)}function Cs(e){if(e)for(let t=0;te.__isSuspense;function Ea(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Br(e)}const X=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),vl=Symbol.for("v-stc"),rn=[];let He=null;function x(e=!1){rn.push(He=e?null:[])}function Ta(){rn.pop(),He=rn[rn.length-1]||null}let dn=1;function xs(e,t=!1){dn+=e,e<0&&He&&t&&(He.hasOnce=!0)}function jo(e){return e.dynamicChildren=dn>0?He||Nt:null,Ta(),dn>0&&He&&He.push(e),e}function S(e,t,n,l,o,i){return jo(s(e,t,n,l,o,i,!0))}function Oa(e,t,n,l,o){return jo(yt(e,t,n,l,o,!0))}function Wo(e){return e?e.__v_isVNode===!0:!1}function Qt(e,t){return e.type===t.type&&e.key===t.key}const Ho=({key:e})=>e??null,In=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Ie(e)||J(e)?{i:Ge,r:e,k:t,f:!!n}:e:null);function s(e,t=null,n=null,l=0,o=null,i=e===X?0:1,r=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ho(t),ref:t&&In(t),scopeId:_o,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:l,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ge};return d?(Un(h,n),i&128&&e.normalize(h)):n&&(h.shapeFlag|=we(n)?8:16),dn>0&&!r&&He&&(h.patchFlag>0||i&6)&&h.patchFlag!==32&&He.push(h),h}const yt=Ia;function Ia(e,t=null,n=null,l=0,o=null,i=!1){if((!e||e===na)&&(e=Et),Wo(e)){const d=Jt(e,t,!0);return n&&Un(d,n),dn>0&&!i&&He&&(d.shapeFlag&6?He[He.indexOf(e)]=d:He.push(d)),d.patchFlag=-2,d}if(Wa(e)&&(e=e.__vccOpts),t){t=Aa(t);let{class:d,style:h}=t;d&&!we(d)&&(t.class=Jn(d)),ce(h)&&(Fl(h)&&!W(h)&&(h=Ee({},h)),t.style=Al(h))}const r=we(e)?1:No(e)?128:Wr(e)?64:ce(e)?4:J(e)?2:0;return s(e,t,n,l,o,r,i,!0)}function Aa(e){return e?Fl(e)||Ao(e)?Ee({},e):e:null}function Jt(e,t,n=!1,l=!1){const{props:o,ref:i,patchFlag:r,children:d,transition:h}=e,m=t?$a(o||{},t):o,_={__v_isVNode:!0,__v_skip:!0,type:e.type,props:m,key:m&&Ho(m),ref:t&&t.ref?n&&i?W(i)?i.concat(In(t)):[i,In(t)]:In(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==X?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Jt(e.ssContent),ssFallback:e.ssFallback&&Jt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&l&&jl(_,h.clone(_)),_}function Ma(e=" ",t=0){return yt(Xn,null,e,t)}function z(e="",t=!1){return t?(x(),Oa(Et,null,e)):yt(Et,null,e)}function it(e){return e==null||typeof e=="boolean"?yt(Et):W(e)?yt(X,null,e.slice()):Wo(e)?gt(e):yt(Xn,null,String(e))}function gt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Jt(e)}function Un(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(l&65){const o=t.default;o&&(o._c&&(o._d=!1),Un(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Ao(t)?t._ctx=Ge:o===3&&Ge&&(Ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(J(t)){if(l&65){Un(e,{default:t});return}t={default:t,_ctx:Ge},n=32}else t=String(t),l&64?(n=16,t=[Ma(t)]):n=8;e.children=t,e.shapeFlag|=n}function $a(...e){const t={};for(let n=0;nUe||Ge;let Vn,Dl;{const e=qn(),t=(n,l)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(l),i=>{o.length>1?o.forEach(r=>r(i)):o[0](i)}};Vn=t("__VUE_INSTANCE_SETTERS__",n=>Ue=n),Dl=t("__VUE_SSR_SETTERS__",n=>fn=n)}const gn=e=>{const t=Ue;return Vn(e),e.scope.on(),()=>{e.scope.off(),Vn(t)}},Ss=()=>{Ue&&Ue.scope.off(),Vn(null)};function Ko(e){return e.vnode.shapeFlag&4}let fn=!1;function La(e,t=!1,n=!1){t&&Dl(t);const{props:l,children:o}=e.vnode,i=Ko(e);ma(e,l,i,t),ka(e,o,n||t);const r=i?Fa(e,t):void 0;return t&&Dl(!1),r}function Fa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,la);const{setup:l}=n;if(l){ct();const o=e.setupContext=l.length>1?ja(e):null,i=gn(e),r=vn(l,e,0,[e.props,o]),d=js(r);if(dt(),i(),(d||e.sp)&&!sn(e)&&bo(e),d){if(r.then(Ss,Ss),t)return r.then(h=>{Ps(e,h)}).catch(h=>{zn(h,e,0)});e.asyncDep=r}else Ps(e,r)}else qo(e)}function Ps(e,t,n){J(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=co(t)),qo(e)}function qo(e,t,n){const l=e.type;e.render||(e.render=l.render||at);{const o=gn(e);ct();try{sa(e)}finally{dt(),o()}}}const Na={get(e,t){return Oe(e,"get",""),e[t]}};function ja(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Na),slots:e.slots,emit:e.emit,expose:t}}function Zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(co(Sr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in on)return on[n](e)},has(t,n){return n in t||n in on}})):e.proxy}function Wa(e){return J(e)&&"__vccOpts"in e}const Pt=(e,t)=>Ir(e,t,fn),Ha="3.5.39";/** -* @vue/runtime-dom v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let El;const Ds=typeof window<"u"&&window.trustedTypes;if(Ds)try{El=Ds.createPolicy("vue",{createHTML:e=>e})}catch{}const Jo=El?e=>El.createHTML(e):e=>e,Ka="http://www.w3.org/2000/svg",qa="http://www.w3.org/1998/Math/MathML",vt=typeof document<"u"?document:null,Es=vt&&vt.createElement("template"),Ja={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const o=t==="svg"?vt.createElementNS(Ka,e):t==="mathml"?vt.createElementNS(qa,e):n?vt.createElement(e,{is:n}):vt.createElement(e);return e==="select"&&l&&l.multiple!=null&&o.setAttribute("multiple",l.multiple),o},createText:e=>vt.createTextNode(e),createComment:e=>vt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>vt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,o,i){const r=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Es.innerHTML=Jo(l==="svg"?`${e}`:l==="mathml"?`${e}`:e);const d=Es.content;if(l==="svg"||l==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ga=Symbol("_vtc");function za(e,t,n){const l=e[Ga];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ts=Symbol("_vod"),Ya=Symbol("_vsh"),Qa=Symbol(""),Xa=/(?:^|;)\s*display\s*:/;function Za(e,t,n){const l=e.style,o=we(n);let i=!1;if(n&&!o){if(t)if(we(t))for(const r of t.split(";")){const d=r.slice(0,r.indexOf(":")).trim();n[d]==null&&Zt(l,d,"")}else for(const r in t)n[r]==null&&Zt(l,r,"");for(const r in n){r==="display"&&(i=!0);const d=n[r];d!=null?tu(e,r,!we(t)&&t?t[r]:void 0,d)||Zt(l,r,d):Zt(l,r,"")}}else if(o){if(t!==n){const r=l[Qa];r&&(n+=";"+r),l.cssText=n,i=Xa.test(n)}}else t&&e.removeAttribute("style");Ts in e&&(e[Ts]=i?l.display:"",e[Ya]&&(l.display="none"))}const Os=/\s*!important$/;function Zt(e,t,n){if(W(n))n.forEach(l=>Zt(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=eu(e,t);Os.test(n)?e.setProperty(Bt(l),n.replace(Os,""),"important"):e[l]=n}}const Is=["Webkit","Moz","ms"],gl={};function eu(e,t){const n=gl[t];if(n)return n;let l=Xe(t);if(l!=="filter"&&l in e)return gl[t]=l;l=Ks(l);for(let o=0;o_l||(ru.then(()=>_l=0),_l=Date.now());function uu(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;const o=n.value;if(W(o)){const i=l.stopImmediatePropagation;l.stopImmediatePropagation=()=>{i.call(l),l._stopped=!0};const r=o.slice(),d=[l];for(let h=0;he.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,cu=(e,t,n,l,o,i)=>{const r=o==="svg";t==="class"?za(e,l,r):t==="style"?Za(e,n,l):Nn(t)?jn(t)||lu(e,t,n,l,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):du(e,t,l,r))?($s(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ms(e,t,l,r,i,t!=="value")):e._isVueCE&&(fu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!we(l)))?$s(e,Xe(t),l,i,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Ms(e,t,l,r))};function du(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Bs(t)&&J(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Bs(t)&&we(n)?!1:t in e}function fu(e,t){const n=e._def.props;if(!n)return!1;const l=Xe(t);return Array.isArray(n)?n.some(o=>Xe(o)===l):Object.keys(n).some(o=>Xe(o)===l)}const Ln=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>Tn(t,n):t};function pu(e){e.target.composing=!0}function Us(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Kt=Symbol("_assign");function Vs(e,t,n){return t&&(e=e.trim()),n&&(e=Kn(e)),e}const L={created(e,{modifiers:{lazy:t,trim:n,number:l}},o){e[Kt]=Ln(o);const i=l||o.props&&o.props.type==="number";Mt(e,t?"change":"input",r=>{r.target.composing||e[Kt](Vs(e.value,n,i))}),(n||i)&&Mt(e,"change",()=>{e.value=Vs(e.value,n,i)}),t||(Mt(e,"compositionstart",pu),Mt(e,"compositionend",Us),Mt(e,"change",Us))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:o,number:i}},r){if(e[Kt]=Ln(r),e.composing)return;const d=(i||e.type==="number")&&!/^0\d/.test(e.value)?Kn(e.value):e.value,h=t??"";if(d===h)return;const m=e.getRootNode();(m instanceof Document||m instanceof ShadowRoot)&&m.activeElement===e&&e.type!=="range"&&(l&&t===n||o&&e.value.trim()===h)||(e.value=h)}},Lt={deep:!0,created(e,{value:t,modifiers:{number:n}},l){const o=Wn(t);Mt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?Kn(Fn(r)):Fn(r));e[Kt](e.multiple?o?new Set(i):i:i[0]),e._assigning=!0,po(()=>{e._assigning=!1})}),e[Kt]=Ln(l)},mounted(e,{value:t}){Ls(e,t)},beforeUpdate(e,t,n){e[Kt]=Ln(n)},updated(e,{value:t}){e._assigning||Ls(e,t)}};function Ls(e,t){const n=e.multiple,l=W(t);if(!(n&&!l&&!Wn(t))){for(let o=0,i=e.options.length;oString(m)===String(d)):r.selected=sr(t,d)>-1}else r.selected=t.has(d);else if(hn(Fn(r),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Fn(e){return"_value"in e?e._value:e.value}const hu=Ee({patchProp:cu},Ja);let Fs;function vu(){return Fs||(Fs=xa(hu))}const gu=((...e)=>{const t=vu().createApp(...e),{mount:n}=t;return t.mount=l=>{const o=mu(l);if(!o)return;const i=t._component;!J(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,_u(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t});function _u(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function mu(e){return we(e)?document.querySelector(e):e}const yu="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",T={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,workflowBranches:e=>`workflows/${e}/branches`,workflowSwitchBranch:e=>`workflows/${e}/switch-branch`,workflowHistory:e=>`workflows/${e}/history`,node:e=>`nodes/${e}`,nodeGenerate:e=>`nodes/${e}/generate`,nodeRetry:e=>`nodes/${e}/retry`,nodeComplete:e=>`nodes/${e}/complete`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeReview:e=>`nodes/${e}/review`,nodeImages:e=>`nodes/${e}/images`,workflowReview:e=>`workflows/${e}/review`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,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",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",settingsImport:"settings/import",settingsSnapshots:"settings/snapshots",settingsRollback:"settings/rollback",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materialCategory:e=>`material-categories/${e}`,materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeProvider:"api-discovery/probe-provider",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class bu extends Error{constructor(n,l,o={}){super(l);ol(this,"code");ol(this,"details");this.name="ApiClientError",this.code=n,this.details=o}}async function se(e,t){return Qe(e,{method:"GET",query:t})}async function Y(e,t){return Qe(e,{method:"POST",body:t})}async function Qe(e,t={}){const l=await(await fetch(wu(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(!l.ok)throw new bu(l.error_code,l.message,l.details);return l.data}function wu(e,t){const n=e.replace(/^\/+/,""),l=new URL(`${yu}/${n}`,window.location.origin);for(const[o,i]of Object.entries(t??{}))i!==void 0&&l.searchParams.set(o,String(i));return`${l.pathname}${l.search}`}const ku={class:"web-shell"},Cu={class:"sidebar"},xu={class:"brand"},Su=["onClick"],Pu={class:"workspace"},Du={class:"topbar"},Eu={class:"actions"},Tu=["disabled"],Ou={key:0,class:"notice error"},Iu={key:1,class:"notice"},Au={key:0,class:"dashboard-grid"},Mu={key:1,class:"list-view"},$u={class:"form-grid"},Ru={class:"wide-field"},Bu=["disabled"],Uu=["disabled"],Vu={key:0},Lu={key:1,class:"form-grid"},Fu={class:"wide-field"},Nu={class:"wide-field"},ju={class:"wide-field"},Wu={class:"wide-field"},Hu={class:"wide-field"},Ku=["disabled"],qu=["disabled"],Ju={class:"inline-actions"},Gu={class:"badge"},zu=["disabled","onClick"],Yu=["disabled","onClick"],Qu={key:0,class:"empty"},Xu={key:2,class:"split-view"},Zu={class:"list-view"},ec={class:"form-grid"},tc=["disabled"],nc={class:"inline-actions"},lc={class:"badge"},sc=["disabled","onClick"],oc=["disabled","onClick"],ic=["disabled","onClick"],rc=["disabled","onClick"],ac={key:0,class:"empty"},uc={key:0,class:"editor-panel"},cc={class:"form-grid"},dc=["disabled"],fc=["disabled","onClick"],pc={class:"list-view"},hc={class:"inline-actions"},vc=["disabled"],gc={class:"form-grid"},_c={class:"wide-field"},mc={class:"wide-field"},yc={class:"wide-field"},bc=["disabled"],wc=["disabled"],kc={class:"form-grid"},Cc={class:"wide-field"},xc=["disabled"],Sc=["disabled"],Pc={class:"inline-actions"},Dc={class:"badge"},Ec=["disabled","onClick"],Tc=["disabled","onClick"],Oc=["disabled","onClick"],Ic=["disabled","onClick"],Ac={key:0,class:"empty"},Mc={class:"inline-actions"},$c={key:0,class:"badge"},Rc=["disabled","onClick"],Bc=["disabled","onClick"],Uc=["disabled","onClick"],Vc=["disabled","onClick"],Lc=["disabled","onClick"],Fc=["disabled","onClick"],Nc={key:0,class:"empty"},jc={key:0},Wc={key:1},Hc={class:"editor-panel"},Kc={key:0,class:"empty"},qc={key:2,class:"editor-panel"},Jc={key:3},Gc={key:3,class:"split-view"},zc={class:"list-view"},Yc={class:"form-grid"},Qc=["disabled"],Xc=["disabled"],Zc={class:"inline-actions"},ed=["disabled","onClick"],td=["disabled","onClick"],nd={key:0,class:"empty"},ld={class:"list-view"},sd={class:"inline-actions"},od=["disabled"],id={class:"form-grid"},rd={value:""},ad=["value"],ud=["disabled"],cd=["disabled"],dd={class:"inline-actions"},fd={class:"badge"},pd=["disabled","onClick"],hd=["disabled","onClick"],vd=["disabled","onClick"],gd=["disabled","onClick"],_d={key:0,class:"empty"},md={key:0},yd={key:4,class:"list-view"},bd=["disabled"],wd={class:"form-grid"},kd={value:""},Cd=["value"],xd=["disabled"],Sd={class:"inline-actions"},Pd=["disabled","onClick"],Dd={key:0,class:"empty"},Ed={key:0},Td={class:"form-grid"},Od=["disabled"],Id={key:1},Ad={key:5,class:"list-view"},Md={class:"inline-actions"},$d=["disabled"],Rd=["disabled"],Bd={class:"form-grid"},Ud={value:""},Vd=["value"],Ld={value:""},Fd=["value"],Nd={value:""},jd=["value"],Wd=["disabled"],Hd={class:"inline-actions"},Kd={class:"badge"},qd=["onClick"],Jd=["onClick"],Gd=["disabled","onClick"],zd={key:0,class:"empty"},Yd={key:0,class:"editor-panel"},Qd={key:6,class:"split-view"},Xd={class:"list-view"},Zd={class:"inline-actions"},ef=["disabled"],tf=["disabled"],nf={class:"form-grid"},lf=["disabled"],sf={key:0},of={class:"list-view"},rf={class:"inline-actions"},af={class:"badge"},uf=["disabled","onClick"],cf=["disabled","onClick"],df=["disabled","onClick"],ff={key:0,class:"empty"},pf={key:7,class:"logs-view"},hf={class:"split-view"},vf={class:"list-view"},gf={key:0,class:"empty"},_f={class:"list-view"},mf={class:"badge"},yf={key:0,class:"empty"},bf={class:"split-view"},wf={class:"list-view"},kf={key:0,class:"empty"},Cf={class:"list-view"},xf={class:"badge"},Sf={key:0,class:"empty"},Pf={class:"list-view"},Df={key:0,class:"empty"},Ef={key:8,class:"settings-view"},Tf={class:"toolbar"},Of=["disabled"],If=["disabled"],Af=["disabled"],Mf=["disabled"],$f=["disabled"],Rf=["disabled"],Bf=["disabled"],Uf={class:"settings-sections"},Vf={class:"editor-panel"},Lf={class:"editor-panel"},Ff=["disabled"],Nf={class:"editor-panel"},jf=["disabled","onClick"],Wf={class:"split-view"},Hf={class:"list-view"},Kf={class:"list-view"},qf={class:"inspector"},Jf=Hr({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",generate:"生成",adopt:"采纳",select:"选择",unselect:"取选",recognize:"识别",confirm:"确认",edit:"编辑",update:"更新",name:"名称",identity:"身份",personality:"性格",hairColor:"发色",hairstyle:"发型",eyeColor:"眼色",description:"描述",basePrompt:"基础提示词",appearancePrompt:"外观提示词",stylePrompt:"风格提示词",negativePrompt:"反向提示词",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialUpdated:"素材已更新",materialArchived:"素材已归档",importToWardrobe:"加入衣橱",delete:"删除",wardrobeCategory:"衣橱分类",season:"季节",style:"风格",selectMaterial:"选择素材",wardrobeImported:"衣橱条目已加入",wardrobeDeleted:"衣橱条目已删除",dailyOutfit:"每日穿搭",categories:"分类",mood:"心情",weather:"天气",keywords:"关键词",outfitGenerated:"每日穿搭已生成",dashboard:"运行概览",profiles:"角色",workflows:"工作流",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",profileCreated:"角色已创建",profileUpdated:"角色已更新",profileDeleted:"角色已删除",emptyProfiles:"暂无角色",workflowList:"工作流列表",workflowType:"工作流类型",workflowCreated:"工作流已创建",emptyWorkflows:"暂无工作流",nodes:"节点",nodeKey:"NodeKey",nodeTitle:"节点标题",nodeType:"节点类型",status:"状态",nodeCreated:"节点已创建",nodeUpdated:"节点已更新",nodeQueued:"节点已重新入队",nodeCompleted:"节点已完成",images:"图片",branches:"分支",branchName:"分支名",switchBranch:"切换分支",history:"历史",review:"评审",reviewResult:"评审结果",emptyImages:"暂无图片",emptyHistory:"暂无历史",modelRoute:"模型路由",prompt:"提示词",generationQueued:"生成已入队",branchCreated:"分支已创建",imageArchived:"图片已归档",imageDeleted:"图片已删除",currentBranch:"当前分支",materialCategories:"素材分类",categoryType:"分类类型",sortOrder:"排序",categoryCreated:"分类已创建",categoryUpdated:"分类已更新",categoryDeleted:"分类已删除",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",filter:"筛选",detail:"详情",jobDetail:"任务详情",allStatuses:"全部状态",allProfiles:"全部角色",allWorkflows:"全部工作流",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",probeProvider:"探测 Provider",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",importSettings:"导入设置",importDone:"设置已导入",importDraftInvalid:"导入 JSON 格式无效",snapshots:"配置快照",loadSnapshots:"加载快照",rollback:"回滚",rollbackDone:"配置已回滚",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},n=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"workflows",label:t.workflows},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],l=F("dashboard"),o=F(null),i=F(null),r=F(null),d=F([]),h=F(null),m=F([]),_=F([]),y=F(null),O=F(""),A=F([]),Z=F(null),N=F(null),he=F(null),de=F(null),H=F(null),re=F(null),U=F([]),fe=F(null),Ae=F([]),Me=F([]),Ne=F([]),ft=F(null),_e=F({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Ve=F(null),pt=F(""),nt=F(""),kt=F([]),Ct=F(null),ke=F(null),B=F({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),ee=F(null),Q=F({profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}),je=F({display_name:"",workflow_type:"single_image"}),Le=F({branch_name:""}),K=F({node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}),Ke=F({model_route:"",prompt:"",negative_prompt:""}),Ye=F({status:"",profile_id:"",workflow_id:""}),ue=F({material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}),ye=F({category_id:"",name:"",category_type:"material",sort_order:0}),me=F({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),Te=F({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),Tt=F(null),xe=F({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),Gt=F(null),c=F(""),g=F(!0),v=F(""),C=F(""),b=Pt(()=>{var p,f;return((f=(p=r.value)==null?void 0:p.items[0])==null?void 0:f.profile_id)??""}),w=Pt(()=>{var p,f;return((f=(p=r.value)==null?void 0:p.items[0])==null?void 0:f.name)??t.noProfile}),E=Pt(()=>{var f;const p=(f=i.value)==null?void 0:f.queue;return p?p.pending+p.running+p.failed+p.dead_letter:0}),D=Pt(()=>{var p;return((p=fe.value)==null?void 0:p.items.filter(f=>f.recognition_status!=="confirmed").length)??0}),P=Pt(()=>{var p;return(((p=fe.value)==null?void 0:p.items)??[]).filter(f=>f.recognition_status==="confirmed")}),k=Pt(()=>{var p;return((p=h.value)==null?void 0:p.nodes.find(f=>f.node_id===O.value))??null}),V=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],I=Pt(()=>({dashboard:t.dashboard,profiles:t.profiles,workflows:t.workflows,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[l.value]);Co(M);async function M(){var p,f;g.value=!0,C.value="";try{const[q,le,Pe,St,bn,zt,wn,kn,Cn,xn,Sn]=await Promise.all([se(T.uiBootstrap),se(T.dashboardSummary),se(T.profiles,{page:1,page_size:20}),se(T.jobs,{page:1,page_size:20}),se(T.settingsSchema),se(T.settingsCurrent),se(T.storageStatus),se(T.materialCategories),se(T.materials,{page:1,page_size:24}),se(T.apiDiscoveryDialects),se(T.apiDiscoveryCapabilities)]);o.value=q,i.value=le,r.value=Pe,N.value=St,de.value=bn,H.value=zt,Ut(zt.config),re.value=wn,U.value=kn,fe.value=Cn,Me.value=xn,Ne.value=Sn,await ne((p=Pe.items[0])==null?void 0:p.profile_id),await be((f=Pe.items[0])==null?void 0:f.profile_id),await j()}catch(q){C.value=q instanceof Error?q.message:t.loadFailed}finally{g.value=!1}}async function j(){const[p,f,q,le,Pe]=await Promise.allSettled([se(T.generationLogs,{limit:12}),se(T.workflowLogs,{limit:12}),se(T.errorLogs,{limit:12}),se(T.integrationLogs,{limit:12}),se(T.auditLogs,{limit:12})]);_e.value={generation:G(p),workflows:G(f),errors:G(q),integrations:G(le),audit:G(Pe)}}function G(p){return p.status==="fulfilled"?p.value:[]}async function ae(){N.value=await se(T.jobs,{status:Ye.value.status||void 0,profile_id:Ye.value.profile_id||void 0,workflow_id:Ye.value.workflow_id||void 0,page:1,page_size:20})}async function ne(p){if(!p){Ae.value=[];return}Ae.value=await se(T.wardrobe(p))}async function be(p){var le,Pe;if(!p){d.value=[],h.value=null,m.value=[],_.value=[],O.value="",A.value=[];return}d.value=await se(T.profileWorkflows(p));const f=(le=h.value)==null?void 0:le.workflow.workflow_id,q=d.value.some(St=>St.workflow_id===f)?f:(Pe=d.value[0])==null?void 0:Pe.workflow_id;q?await Ce(q):h.value=null}async function Ce(p){var Pe;const f=await se(T.workflow(p));h.value=f;const q=O.value,le=f.nodes.some(St=>St.node_id===q)?q:f.workflow.current_node_id||((Pe=f.nodes[0])==null?void 0:Pe.node_id);le?await We(le):(O.value="",A.value=[]),await qe(p)}async function We(p){O.value=p,A.value=await se(T.nodeImages(p))}async function qe(p){const[f,q]=await Promise.all([se(T.workflowBranches(p)),se(T.workflowHistory(p))]);m.value=f,_.value=q}async function Se(){var f;const p=(f=h.value)==null?void 0:f.workflow.workflow_id;p&&await Ce(p)}async function $(p,f,q=!0){v.value=p,C.value="";try{const le=await f();c.value=`${p}${t.complete}`,p===t.exportSettings&&(c.value=`${t.exportDone}: ${!!le.redacted}`),q&&await M()}catch(le){C.value=le instanceof Error?le.message:`${p}${t.failed}`}finally{v.value=""}}function $e(p){return $(t.retry,()=>Y(T.jobRetry(p)))}function Je(p){return $(t.cancel,()=>Y(T.jobCancel(p)))}function _n(p){return $(t.detail,async()=>(he.value=await se(T.job(p)),he.value),!1)}function mn(){B.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},ee.value=null}function Go(){return $(t.quickDraft,async()=>(ee.value=await Y(T.quickProfileDraft,{questionnaire:{name:B.value.name,identity:B.value.identity,personality:xt(B.value.personality),hair_color:B.value.hair_color,hairstyle:B.value.hairstyle,eye_color:B.value.eye_color,style:B.value.style,clothing_keywords:xt(B.value.clothing_keywords)}}),ee.value),!1)}function zo(){var f;const p=(f=ee.value)==null?void 0:f.profile_preview;return $(t.create,async()=>{const q=await Y(T.profiles,{name:(p==null?void 0:p.name)||B.value.name,description:B.value.description,base_prompt:p==null?void 0:p.base_prompt,appearance_prompt:p==null?void 0:p.appearance_prompt,style_prompt:p==null?void 0:p.style_prompt,negative_prompt:p==null?void 0:p.negative_prompt});return mn(),c.value=t.profileCreated,q})}function Yo(p){return $(t.delete,async()=>{const f=await Qe(T.profile(p),{method:"DELETE"});return c.value=t.profileDeleted,f})}function Kl(){Q.value={profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}}function Qo(p){Q.value={profile_id:p.profile_id,name:p.name,description:p.description??"",base_prompt:p.base_prompt??"",appearance_prompt:p.appearance_prompt??"",style_prompt:p.style_prompt??"",negative_prompt:p.negative_prompt??"",default_model_route:p.default_model_route??""}}function Xo(){return Q.value.profile_id?$(t.update,async()=>{const p=await Qe(T.profile(Q.value.profile_id),{method:"PUT",body:{name:Q.value.name,description:Q.value.description||void 0,base_prompt:Q.value.base_prompt||void 0,appearance_prompt:Q.value.appearance_prompt||void 0,style_prompt:Q.value.style_prompt||void 0,negative_prompt:Q.value.negative_prompt||void 0,default_model_route:Q.value.default_model_route||void 0}});return Kl(),c.value=t.profileUpdated,p}):Promise.resolve()}function Zo(){const p=b.value;return p?$(t.create,async()=>{const f=await Y(T.profileWorkflows(p),{display_name:je.value.display_name,workflow_type:je.value.workflow_type});return je.value.display_name="",h.value=f,c.value=t.workflowCreated,f}):Promise.resolve()}function ei(p){return $(t.start,()=>Y(T.workflowStart(p)))}function ti(p){return $(t.cancel,()=>Y(T.workflowCancel(p)))}function ni(p){return $(t.archive,()=>Y(T.workflowArchive(p)))}function li(){var f;const p=(f=h.value)==null?void 0:f.workflow;return!p||!Le.value.branch_name?Promise.resolve():$(t.branches,async()=>{const q=await Y(T.workflowBranches(p.workflow_id),{branch_name:Le.value.branch_name,base_branch_name:p.current_branch,base_node_id:O.value||p.current_node_id,copy_nodes:!0});return Le.value.branch_name="",await Se(),c.value=t.branchCreated,q},!1)}function si(p){var q;const f=(q=h.value)==null?void 0:q.workflow.workflow_id;return f?$(t.switchBranch,async()=>{const le=await Y(T.workflowSwitchBranch(f),{branch_name:p});return await Se(),le},!1):Promise.resolve()}function el(){K.value={node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}}function oi(p){K.value={node_id:p.node_id,node_key:p.node_key,title:p.title,description:p.description??"",node_type:p.node_type,status:p.status,prompt:p.prompt??"",negative_prompt:p.negative_prompt??"",model_route:p.model_route??""}}function ii(){var q;const p=(q=h.value)==null?void 0:q.workflow.workflow_id;if(!p||!K.value.node_key||!K.value.title)return Promise.resolve();const f={node_key:K.value.node_key,title:K.value.title,description:K.value.description||void 0,node_type:K.value.node_type||"generation",status:K.value.status||"pending",prompt:K.value.prompt||void 0,negative_prompt:K.value.negative_prompt||void 0,model_route:K.value.model_route||void 0};return K.value.node_id?$(t.update,async()=>{const le=await Qe(T.node(K.value.node_id),{method:"PUT",body:f});return el(),await Se(),c.value=t.nodeUpdated,le},!1):$(t.create,async()=>{const le=await Y(T.workflowNodes(p),f);return el(),await Se(),c.value=t.nodeCreated,le},!1)}function ri(){var f;const p=(f=h.value)==null?void 0:f.workflow.workflow_id;return p?$(t.review,async()=>(y.value=await se(T.workflowReview(p)),y.value),!1):Promise.resolve()}function ai(){const p=O.value;return p?$(t.review,async()=>(y.value=await se(T.nodeReview(p)),y.value),!1):Promise.resolve()}function ui(){const p=O.value;return p?$(t.generate,async()=>(Z.value=await Y(T.nodeGenerate(p),{model_route:Ke.value.model_route||void 0,prompt:Ke.value.prompt||void 0,negative_prompt:Ke.value.negative_prompt||void 0}),await Se(),c.value=t.generationQueued,Z.value),!1):Promise.resolve()}function ci(p){return $(t.retry,async()=>{const f=await Y(T.nodeRetry(p));return await Se(),c.value=t.nodeQueued,f},!1)}function di(p){return $(t.complete,async()=>{const f=await Y(T.nodeComplete(p));return await Se(),c.value=t.nodeCompleted,f},!1)}function fi(p){const f=O.value;return f?$(t.select,async()=>{const q=await Y(T.nodeSelectImage(f),{image_id:p});return await Se(),q},!1):Promise.resolve()}function pi(p){const f=O.value;return f?$(t.adopt,async()=>{var le;const q=await Y(T.nodeAdoptImage(f),{image_id:p,title:(le=k.value)==null?void 0:le.title});return await Se(),q},!1):Promise.resolve()}function hi(p){return $(t.unselect,async()=>{const f=await Y(T.imageUnselect(p));return await Se(),f},!1)}function vi(p){return $(t.archive,async()=>{const f=await Y(T.imageArchive(p));return await Se(),c.value=t.imageArchived,f},!1)}function gi(p){return $(t.delete,async()=>{const f=await Qe(T.image(p),{method:"DELETE"});return await Se(),c.value=t.imageDeleted,f},!1)}function _i(){return $(t.moveFailed,()=>Y(T.jobDeadLetterMoveFailed,{limit:20}))}function mi(){return $(t.retryDead,()=>Y(T.jobDeadLetterRetry,{limit:20}))}function yi(){var f;const p=((f=Me.value[0])==null?void 0:f.dialect)??"unknown";return $(t.safeProbe,()=>Y(T.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:p,capabilities:{supports:["text_to_image"]}}))}function bi(){var f;const p=((f=Me.value[0])==null?void 0:f.dialect)??"unknown";return $(t.probeProvider,()=>Y(T.apiDiscoveryProbeProvider,{provider_id:xe.value.provider_id||"local-preview",model_id:xe.value.model_id||"metadata-only",dialect:p,capabilities:{supports:xt(xe.value.required_capabilities)}}))}function wi(){return $(t.validatePlan,async()=>(Gt.value=await Y(T.apiDiscoveryValidateRenderPlan,{provider_id:xe.value.provider_id,model_id:xe.value.model_id,required_capabilities:xt(xe.value.required_capabilities)}),Gt.value),!1)}function tl(p,f){return $(t.discovery,()=>Y(T.apiDiscoveryManualOverride,{provider_id:p.provider_id,model_id:p.model_id,dialect:p.dialect,status:f,capabilities:p.capabilities}))}function ki(){const p=b.value;return p?$(t.matchWardrobe,async()=>(ft.value=await Y(T.wardrobeMatch(p),{tags:["daily"]}),ft.value),!1):Promise.resolve()}function Ci(){me.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function xi(){const p=b.value;return p?$(t.importToWardrobe,async()=>{const f=await Y(T.wardrobeImportMaterial(p),{material_id:me.value.material_id,wardrobe_category:me.value.wardrobe_category,tags:xt(me.value.tags),season:me.value.season||void 0,style:me.value.style||void 0});return Ci(),c.value=t.wardrobeImported,f}):Promise.resolve()}function Si(p){const f=b.value;return f?$(t.delete,async()=>{const q=await Qe(T.wardrobeItem(f,p),{method:"DELETE"});return c.value=t.wardrobeDeleted,q}):Promise.resolve()}function Pi(){const p=b.value;return p?$(t.dailyOutfit,async()=>(Tt.value=await Y(T.privateCompanionDailyOutfit,{profile_id:p,categories:xt(Te.value.categories),mood:Te.value.mood,weather:Te.value.weather,keywords:xt(Te.value.keywords),request_source:"astrbot_plugin_private_companion"}),c.value=t.outfitGenerated,Tt.value),!1):Promise.resolve()}function Di(){return $(t.reload,async()=>{var f;const p=await Y(T.settingsReload);return H.value={config_path:((f=H.value)==null?void 0:f.config_path)??"***PATH***",config:p.config},Ut(p.config),p},!1)}function Ei(){return $(t.exportSettings,()=>se(T.settingsExport),!1)}function Ut(p=(f=>(f=H.value)==null?void 0:f.config)()??{}){pt.value=JSON.stringify(p,null,2),Ct.value=null,ke.value=null}function nl(){try{const p=JSON.parse(pt.value);if(!p||Array.isArray(p)||typeof p!="object")throw new Error(t.settingsDraftInvalid);return p}catch(p){throw new Error(p instanceof Error?p.message:t.settingsDraftInvalid)}}function Ti(){try{const p=JSON.parse(nt.value);if(!p||Array.isArray(p)||typeof p!="object")throw new Error(t.importDraftInvalid);return p}catch(p){throw new Error(p instanceof Error?p.message:t.importDraftInvalid)}}function Oi(){return $(t.validate,async()=>(Ct.value=await Y(T.settingsValidate,{config:nl()}),Ct.value),!1)}function Ii(){return $(t.diff,async()=>(ke.value=await Y(T.settingsDiff,{config:nl()}),ke.value),!1)}function Ai(){return $(t.save,async()=>{var f;const p=await Y(T.settingsSave,{config:nl()});return H.value={config_path:((f=H.value)==null?void 0:f.config_path)??"***PATH***",config:p.config},Ut(p.config),c.value=t.settingsSaved,p},!1)}function Mi(){return $(t.importSettings,async()=>{var f;const p=await Y(T.settingsImport,{config:Ti()});return H.value={config_path:((f=H.value)==null?void 0:f.config_path)??"***PATH***",config:p.config},Ut(p.config),nt.value="",c.value=t.importDone,p},!1)}function ql(){return $(t.loadSnapshots,async()=>(kt.value=await se(T.settingsSnapshots,{limit:20}),kt.value),!1)}function $i(p){return $(t.rollback,async()=>{var q;const f=await Y(T.settingsRollback,{snapshot_id:p});return H.value={config_path:((q=H.value)==null?void 0:q.config_path)??"***PATH***",config:f.config},Ut(f.config),await ql(),c.value=t.rollbackDone,f},!1)}function Ri(){var f,q;const p=(q=(f=fe.value)==null?void 0:f.items.find(le=>{var Pe;return(Pe=le.image_uri)==null?void 0:Pe.startsWith("storage://")}))==null?void 0:q.image_uri;return p?$(t.signMaterial,async()=>(Ve.value=await se(T.mediaSign,{uri:p}),Ve.value),!1):(c.value=t.noSignableMaterial,Promise.resolve())}function Bi(p){return p!=null&&p.startsWith("storage://")?$(t.signMaterial,async()=>(Ve.value=await se(T.mediaSign,{uri:p}),Ve.value),!1):(c.value=t.noSignableMaterial,Promise.resolve())}function yn(){ye.value={category_id:"",name:"",category_type:"material",sort_order:0}}function Ui(p){ye.value={category_id:p.category_id,name:p.name,category_type:p.category_type,sort_order:p.sort_order}}function Vi(){const p={name:ye.value.name,category_type:ye.value.category_type,sort_order:Number(ye.value.sort_order)||0};return ye.value.category_id?$(t.update,async()=>{const f=await Qe(T.materialCategory(ye.value.category_id),{method:"PUT",body:p});return yn(),c.value=t.categoryUpdated,f}):$(t.create,async()=>{const f=await Y(T.materialCategories,p);return yn(),c.value=t.categoryCreated,f})}function Li(p){return $(t.delete,async()=>{const f=await Qe(T.materialCategory(p),{method:"DELETE"});return ye.value.category_id===p&&yn(),c.value=t.categoryDeleted,f})}function ll(){ue.value={material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}}function Fi(){const p={display_name:ue.value.display_name,image_uri:ue.value.image_uri||void 0,thumbnail_uri:ue.value.image_uri||void 0,category_id:ue.value.category_id||void 0,tags:xt(ue.value.tags),prompt:ue.value.prompt||void 0,negative_prompt:ue.value.negative_prompt||void 0,recognition_status:ue.value.image_uri?"pending_recognition":"pending_upload"};return ue.value.material_id?$(t.update,async()=>{const f=await Qe(T.material(ue.value.material_id),{method:"PUT",body:p});return ll(),c.value=t.materialUpdated,f}):$(t.create,async()=>{const f=await Y(T.materials,p);return ll(),c.value=t.materialCreated,f})}function Ni(p){ue.value={material_id:p.material_id,display_name:p.display_name,image_uri:p.image_uri??"",tags:p.tags.join(", "),category_id:p.category_id??"",prompt:p.prompt??"",negative_prompt:p.negative_prompt??""}}function ji(p){return $(t.recognize,()=>Y(T.materialRecognize(p)))}function Wi(p){return $(t.confirm,()=>Y(T.materialConfirm(p.material_id),{display_name:p.display_name,prompt:p.prompt,negative_prompt:p.negative_prompt,tags:p.tags}))}function Hi(p){return $(t.archive,async()=>{const f=await Qe(T.material(p),{method:"DELETE"});return c.value=t.materialArchived,f})}function xt(p){return p.split(",").map(f=>f.trim()).filter(Boolean)}function sl(p=0){return p<1024?`${p} B`:p<1024*1024?`${(p/1024).toFixed(1)} KB`:p<1024*1024*1024?`${(p/1024/1024).toFixed(1)} MB`:`${(p/1024/1024/1024).toFixed(1)} GB`}function Jl(p){var f,q;return((q=(f=re.value)==null?void 0:f.roots.find(le=>le.uri_prefix===p))==null?void 0:q.bytes)??0}return(p,f)=>{var q,le,Pe,St,bn,zt,wn,kn,Cn,xn,Sn,Gl,zl,Yl,Ql,Xl,Zl,es,ts,ns,ls,ss,os,is,rs,as;return x(),S("main",ku,[s("aside",Cu,[s("div",xu,[s("strong",null,a(((q=o.value)==null?void 0:q.display_name)??"ImageStudio"),1),s("span",null,a(((le=o.value)==null?void 0:le.dashboard_user)??"AstrBot"),1)]),s("nav",null,[(x(),S(X,null,ge(n,u=>s("button",{key:u.key,type:"button",class:Jn({active:l.value===u.key}),onClick:te=>l.value=u.key},a(u.label),11,Su)),64))])]),s("section",Pu,[s("header",Du,[s("div",null,[s("h1",null,a(I.value),1),s("p",null,a(((Pe=i.value)==null?void 0:Pe.plugin_status)??"loading")+" / "+a(c.value||t.waiting),1)]),s("div",Eu,[s("button",{type:"button",disabled:!!v.value,onClick:M},a(v.value||t.refresh),9,Tu)])]),C.value?(x(),S("section",Ou,a(C.value),1)):g.value?(x(),S("section",Iu,a(t.loading),1)):(x(),S(X,{key:2},[l.value==="dashboard"?(x(),S("section",Au,[s("article",null,[s("span",null,a(t.profiles),1),s("strong",null,a(((St=i.value)==null?void 0:St.active_profiles)??0),1)]),s("article",null,[s("span",null,a(t.jobs),1),s("strong",null,a(E.value),1)]),s("article",null,[s("span",null,a(t.materials),1),s("strong",null,a(((bn=fe.value)==null?void 0:bn.total)??0),1)]),s("article",null,[s("span",null,a(t.storage),1),s("strong",null,a(sl(((zt=re.value)==null?void 0:zt.total_bytes)??((wn=i.value)==null?void 0:wn.storage.total_bytes))),1)])])):z("",!0),l.value==="profiles"?(x(),S("section",Mu,[s("header",null,[s("h2",null,a(t.profileList),1),s("span",null,a(((kn=r.value)==null?void 0:kn.total)??0),1)]),s("div",$u,[s("label",null,[s("span",null,a(t.name),1),R(s("input",{"onUpdate:modelValue":f[0]||(f[0]=u=>B.value.name=u),type:"text"},null,512),[[L,B.value.name]])]),s("label",null,[s("span",null,a(t.identity),1),R(s("input",{"onUpdate:modelValue":f[1]||(f[1]=u=>B.value.identity=u),type:"text"},null,512),[[L,B.value.identity]])]),s("label",null,[s("span",null,a(t.personality),1),R(s("input",{"onUpdate:modelValue":f[2]||(f[2]=u=>B.value.personality=u),type:"text",placeholder:"calm, brave"},null,512),[[L,B.value.personality]])]),s("label",null,[s("span",null,a(t.hairColor),1),R(s("input",{"onUpdate:modelValue":f[3]||(f[3]=u=>B.value.hair_color=u),type:"text"},null,512),[[L,B.value.hair_color]])]),s("label",null,[s("span",null,a(t.hairstyle),1),R(s("input",{"onUpdate:modelValue":f[4]||(f[4]=u=>B.value.hairstyle=u),type:"text"},null,512),[[L,B.value.hairstyle]])]),s("label",null,[s("span",null,a(t.eyeColor),1),R(s("input",{"onUpdate:modelValue":f[5]||(f[5]=u=>B.value.eye_color=u),type:"text"},null,512),[[L,B.value.eye_color]])]),s("label",null,[s("span",null,a(t.stylePrompt),1),R(s("input",{"onUpdate:modelValue":f[6]||(f[6]=u=>B.value.style=u),type:"text"},null,512),[[L,B.value.style]])]),s("label",null,[s("span",null,a(t.tags),1),R(s("input",{"onUpdate:modelValue":f[7]||(f[7]=u=>B.value.clothing_keywords=u),type:"text",placeholder:"white blouse, ribbon"},null,512),[[L,B.value.clothing_keywords]])]),s("label",Ru,[s("span",null,a(t.description),1),R(s("input",{"onUpdate:modelValue":f[8]||(f[8]=u=>B.value.description=u),type:"text"},null,512),[[L,B.value.description]])]),s("button",{type:"button",disabled:!!v.value||!B.value.name,onClick:Go},a(t.quickDraft),9,Bu),s("button",{type:"button",disabled:!!v.value||!B.value.name,onClick:zo},a(t.create),9,Uu)]),ee.value?(x(),S("pre",Vu,a(JSON.stringify(ee.value,null,2)),1)):z("",!0),Q.value.profile_id?(x(),S("div",Lu,[s("label",null,[s("span",null,a(t.name),1),R(s("input",{"onUpdate:modelValue":f[9]||(f[9]=u=>Q.value.name=u),type:"text"},null,512),[[L,Q.value.name]])]),s("label",null,[s("span",null,a(t.provider),1),R(s("input",{"onUpdate:modelValue":f[10]||(f[10]=u=>Q.value.default_model_route=u),type:"text"},null,512),[[L,Q.value.default_model_route]])]),s("label",Fu,[s("span",null,a(t.description),1),R(s("input",{"onUpdate:modelValue":f[11]||(f[11]=u=>Q.value.description=u),type:"text"},null,512),[[L,Q.value.description]])]),s("label",Nu,[s("span",null,a(t.basePrompt),1),R(s("input",{"onUpdate:modelValue":f[12]||(f[12]=u=>Q.value.base_prompt=u),type:"text"},null,512),[[L,Q.value.base_prompt]])]),s("label",ju,[s("span",null,a(t.appearancePrompt),1),R(s("input",{"onUpdate:modelValue":f[13]||(f[13]=u=>Q.value.appearance_prompt=u),type:"text"},null,512),[[L,Q.value.appearance_prompt]])]),s("label",Wu,[s("span",null,a(t.stylePrompt),1),R(s("input",{"onUpdate:modelValue":f[14]||(f[14]=u=>Q.value.style_prompt=u),type:"text"},null,512),[[L,Q.value.style_prompt]])]),s("label",Hu,[s("span",null,a(t.negativePrompt),1),R(s("input",{"onUpdate:modelValue":f[15]||(f[15]=u=>Q.value.negative_prompt=u),type:"text"},null,512),[[L,Q.value.negative_prompt]])]),s("button",{type:"button",disabled:!!v.value||!Q.value.name,onClick:Xo},a(t.update),9,Ku),s("button",{type:"button",disabled:!!v.value,onClick:Kl},a(t.reset),9,qu)])):z("",!0),s("ul",null,[(x(!0),S(X,null,ge(((Cn=r.value)==null?void 0:Cn.items)??[],u=>(x(),S("li",{key:u.profile_id},[s("div",null,[s("strong",null,a(u.name),1),s("small",null,a(u.profile_id),1)]),s("div",Ju,[s("span",Gu,a(u.status),1),s("button",{type:"button",disabled:!!v.value,onClick:te=>Qo(u)},a(t.edit),9,zu),s("button",{type:"button",disabled:!!v.value,onClick:te=>Yo(u.profile_id)},a(t.delete),9,Yu)])]))),128)),(xn=r.value)!=null&&xn.items.length?z("",!0):(x(),S("li",Qu,a(t.emptyProfiles),1))])])):z("",!0),l.value==="workflows"?(x(),S("section",Xu,[s("div",Zu,[s("header",null,[s("h2",null,a(w.value),1),s("span",null,a(d.value.length),1)]),s("div",ec,[s("label",null,[s("span",null,a(t.name),1),R(s("input",{"onUpdate:modelValue":f[16]||(f[16]=u=>je.value.display_name=u),type:"text"},null,512),[[L,je.value.display_name]])]),s("label",null,[s("span",null,a(t.workflowType),1),R(s("select",{"onUpdate:modelValue":f[17]||(f[17]=u=>je.value.workflow_type=u)},[...f[57]||(f[57]=[s("option",{value:"single_image"},"single_image",-1),s("option",{value:"character_gradual"},"character_gradual",-1),s("option",{value:"character_fast"},"character_fast",-1),s("option",{value:"quick_profile"},"quick_profile",-1)])],512),[[Lt,je.value.workflow_type]])]),s("button",{type:"button",disabled:!!v.value||!b.value||!je.value.display_name,onClick:Zo},a(t.create),9,tc)]),s("ul",null,[(x(!0),S(X,null,ge(d.value,u=>(x(),S("li",{key:u.workflow_id},[s("div",null,[s("strong",null,a(u.display_name),1),s("small",null,a(u.workflow_type)+" / "+a(u.workflow_id),1)]),s("div",nc,[s("span",lc,a(u.status),1),s("button",{type:"button",disabled:!!v.value,onClick:te=>Ce(u.workflow_id)},a(t.nodes),9,sc),s("button",{type:"button",disabled:!!v.value,onClick:te=>ei(u.workflow_id)},a(t.start),9,oc),s("button",{type:"button",disabled:!!v.value,onClick:te=>ti(u.workflow_id)},a(t.cancel),9,ic),s("button",{type:"button",disabled:!!v.value,onClick:te=>ni(u.workflow_id)},a(t.archive),9,rc)])]))),128)),d.value.length?z("",!0):(x(),S("li",ac,a(t.emptyWorkflows),1))]),h.value?(x(),S("section",uc,[s("header",null,[s("h2",null,a(t.branches),1),s("span",null,a(m.value.length),1)]),s("div",cc,[s("label",null,[s("span",null,a(t.branchName),1),R(s("input",{"onUpdate:modelValue":f[18]||(f[18]=u=>Le.value.branch_name=u),type:"text",placeholder:"alt_pose"},null,512),[[L,Le.value.branch_name]])]),s("button",{type:"button",disabled:!!v.value||!Le.value.branch_name,onClick:li},a(t.create),9,dc)]),s("ul",null,[(x(!0),S(X,null,ge(m.value,u=>(x(),S("li",{key:u.branch_id},[s("div",null,[s("strong",null,a(u.branch_name),1),s("small",null,a(u.base_branch_name??"main")+" / "+a(u.status),1)]),s("button",{type:"button",disabled:!!v.value,onClick:te=>si(u.branch_name)},a(t.switchBranch),9,fc)]))),128))])])):z("",!0)]),s("div",pc,[s("header",null,[s("h2",null,a(t.nodes),1),s("div",hc,[s("span",null,a(((Sn=h.value)==null?void 0:Sn.workflow.current_branch)??"main"),1),s("button",{type:"button",disabled:!!v.value||!h.value,onClick:ri},a(t.review),9,vc)])]),s("div",gc,[s("label",null,[s("span",null,a(t.nodeKey),1),R(s("input",{"onUpdate:modelValue":f[19]||(f[19]=u=>K.value.node_key=u),type:"text"},null,512),[[L,K.value.node_key]])]),s("label",null,[s("span",null,a(t.nodeTitle),1),R(s("input",{"onUpdate:modelValue":f[20]||(f[20]=u=>K.value.title=u),type:"text"},null,512),[[L,K.value.title]])]),s("label",null,[s("span",null,a(t.nodeType),1),R(s("input",{"onUpdate:modelValue":f[21]||(f[21]=u=>K.value.node_type=u),type:"text"},null,512),[[L,K.value.node_type]])]),s("label",null,[s("span",null,a(t.status),1),R(s("input",{"onUpdate:modelValue":f[22]||(f[22]=u=>K.value.status=u),type:"text"},null,512),[[L,K.value.status]])]),s("label",_c,[s("span",null,a(t.description),1),R(s("input",{"onUpdate:modelValue":f[23]||(f[23]=u=>K.value.description=u),type:"text"},null,512),[[L,K.value.description]])]),s("label",mc,[s("span",null,a(t.prompt),1),R(s("input",{"onUpdate:modelValue":f[24]||(f[24]=u=>K.value.prompt=u),type:"text"},null,512),[[L,K.value.prompt]])]),s("label",yc,[s("span",null,a(t.negativePrompt),1),R(s("input",{"onUpdate:modelValue":f[25]||(f[25]=u=>K.value.negative_prompt=u),type:"text"},null,512),[[L,K.value.negative_prompt]])]),s("label",null,[s("span",null,a(t.modelRoute),1),R(s("input",{"onUpdate:modelValue":f[26]||(f[26]=u=>K.value.model_route=u),type:"text"},null,512),[[L,K.value.model_route]])]),s("button",{type:"button",disabled:!!v.value||!K.value.node_key||!K.value.title,onClick:ii},a(K.value.node_id?t.update:t.create),9,bc),s("button",{type:"button",disabled:!!v.value,onClick:el},a(t.reset),9,wc)]),s("div",kc,[s("label",null,[s("span",null,a(t.modelRoute),1),R(s("input",{"onUpdate:modelValue":f[27]||(f[27]=u=>Ke.value.model_route=u),type:"text",placeholder:"image_low"},null,512),[[L,Ke.value.model_route]])]),s("label",null,[s("span",null,a(t.prompt),1),R(s("input",{"onUpdate:modelValue":f[28]||(f[28]=u=>Ke.value.prompt=u),type:"text"},null,512),[[L,Ke.value.prompt]])]),s("label",Cc,[s("span",null,a(t.negativePrompt),1),R(s("input",{"onUpdate:modelValue":f[29]||(f[29]=u=>Ke.value.negative_prompt=u),type:"text"},null,512),[[L,Ke.value.negative_prompt]])]),s("button",{type:"button",disabled:!!v.value||!O.value,onClick:ui},a(t.generate),9,xc),s("button",{type:"button",disabled:!!v.value||!O.value,onClick:ai},a(t.review),9,Sc)]),s("ul",null,[(x(!0),S(X,null,ge(((Gl=h.value)==null?void 0:Gl.nodes)??[],u=>(x(),S("li",{key:u.node_id},[s("div",null,[s("strong",null,a(u.title),1),s("small",null,a(u.node_key)+" / "+a(u.node_id),1)]),s("div",Pc,[s("span",null,a(u.branch_name),1),s("span",Dc,a(u.status),1),s("button",{type:"button",disabled:!!v.value,onClick:te=>oi(u)},a(t.edit),9,Ec),s("button",{type:"button",disabled:!!v.value,onClick:te=>ci(u.node_id)},a(t.retry),9,Tc),s("button",{type:"button",disabled:!!v.value,onClick:te=>di(u.node_id)},a(t.complete),9,Oc),s("button",{type:"button",disabled:!!v.value,onClick:te=>We(u.node_id)},a(t.images),9,Ic)])]))),128)),(zl=h.value)!=null&&zl.nodes.length?z("",!0):(x(),S("li",Ac,a(t.emptyWorkflows),1))]),s("ul",null,[(x(!0),S(X,null,ge(A.value,u=>(x(),S("li",{key:u.image_id},[s("div",null,[s("strong",null,a(u.image_id),1),s("small",null,a(u.thumbnail_uri??u.image_uri),1)]),s("div",Mc,[u.is_selected?(x(),S("span",$c,a(t.select),1)):z("",!0),s("button",{type:"button",disabled:!!v.value||u.is_selected||u.is_archived,onClick:te=>fi(u.image_id)},a(t.select),9,Rc),s("button",{type:"button",disabled:!!v.value||u.is_archived,onClick:te=>pi(u.image_id)},a(t.adopt),9,Bc),s("button",{type:"button",disabled:!!v.value||!(u.thumbnail_uri??u.image_uri).startsWith("storage://"),onClick:te=>Bi(u.thumbnail_uri??u.image_uri)},a(t.signMaterial),9,Uc),s("button",{type:"button",disabled:!!v.value||!u.is_selected,onClick:te=>hi(u.image_id)},a(t.unselect),9,Vc),s("button",{type:"button",disabled:!!v.value||u.is_archived,onClick:te=>vi(u.image_id)},a(t.archive),9,Lc),s("button",{type:"button",disabled:!!v.value,onClick:te=>gi(u.image_id)},a(t.delete),9,Fc)])]))),128)),A.value.length?z("",!0):(x(),S("li",Nc,a(t.emptyImages),1))]),Ve.value?(x(),S("pre",jc,a(JSON.stringify(Ve.value,null,2)),1)):z("",!0),Z.value?(x(),S("pre",Wc,a(JSON.stringify(Z.value,null,2)),1)):z("",!0),s("section",Hc,[s("header",null,[s("h2",null,a(t.history),1),s("span",null,a(_.value.length),1)]),s("ul",null,[(x(!0),S(X,null,ge(_.value,u=>(x(),S("li",{key:u.history_id},[s("div",null,[s("strong",null,a(u.action),1),s("small",null,a(u.title??u.node_id??u.workflow_id),1)]),s("span",null,a(u.branch_name),1)]))),128)),_.value.length?z("",!0):(x(),S("li",Kc,a(t.emptyHistory),1))])]),y.value?(x(),S("section",qc,[s("header",null,[s("h2",null,a(t.reviewResult),1),s("span",null,a(y.value.passed?t.support:t.unsupported),1)]),s("pre",null,a(JSON.stringify(y.value,null,2)),1)])):z("",!0),h.value?(x(),S("pre",Jc,a(JSON.stringify(h.value.workflow,null,2)),1)):z("",!0)])])):z("",!0),l.value==="materials"?(x(),S("section",Gc,[s("div",zc,[s("header",null,[s("h2",null,a(t.materialCategories),1),s("span",null,a(U.value.length),1)]),s("div",Yc,[s("label",null,[s("span",null,a(t.name),1),R(s("input",{"onUpdate:modelValue":f[30]||(f[30]=u=>ye.value.name=u),type:"text"},null,512),[[L,ye.value.name]])]),s("label",null,[s("span",null,a(t.categoryType),1),R(s("input",{"onUpdate:modelValue":f[31]||(f[31]=u=>ye.value.category_type=u),type:"text"},null,512),[[L,ye.value.category_type]])]),s("label",null,[s("span",null,a(t.sortOrder),1),R(s("input",{"onUpdate:modelValue":f[32]||(f[32]=u=>ye.value.sort_order=u),type:"number"},null,512),[[L,ye.value.sort_order,void 0,{number:!0}]])]),s("button",{type:"button",disabled:!!v.value||!ye.value.name,onClick:Vi},a(ye.value.category_id?t.update:t.create),9,Qc),s("button",{type:"button",disabled:!!v.value,onClick:yn},a(t.reset),9,Xc)]),s("ul",null,[(x(!0),S(X,null,ge(U.value,u=>(x(),S("li",{key:u.category_id},[s("div",null,[s("strong",null,a(u.name),1),s("small",null,a(u.category_type),1)]),s("div",Zc,[s("span",null,a(u.sort_order),1),s("button",{type:"button",disabled:!!v.value,onClick:te=>Ui(u)},a(t.edit),9,ed),s("button",{type:"button",disabled:!!v.value,onClick:te=>Li(u.category_id)},a(t.delete),9,td)])]))),128)),U.value.length?z("",!0):(x(),S("li",nd,a(t.emptyCategories),1))])]),s("div",ld,[s("header",null,[s("h2",null,a(t.materialItems),1),s("div",sd,[s("span",null,a(D.value)+" "+a(t.pendingConfirm),1),s("button",{type:"button",disabled:!!v.value,onClick:Ri},a(t.signFirstImage),9,od)])]),s("div",id,[s("label",null,[s("span",null,a(t.name),1),R(s("input",{"onUpdate:modelValue":f[33]||(f[33]=u=>ue.value.display_name=u),type:"text"},null,512),[[L,ue.value.display_name]])]),s("label",null,[s("span",null,a(t.imageUri),1),R(s("input",{"onUpdate:modelValue":f[34]||(f[34]=u=>ue.value.image_uri=u),type:"text",placeholder:"storage://materials/example.png"},null,512),[[L,ue.value.image_uri]])]),s("label",null,[s("span",null,a(t.category),1),R(s("select",{"onUpdate:modelValue":f[35]||(f[35]=u=>ue.value.category_id=u)},[s("option",rd,a(t.allCategories),1),(x(!0),S(X,null,ge(U.value,u=>(x(),S("option",{key:u.category_id,value:u.category_id},a(u.name),9,ad))),128))],512),[[Lt,ue.value.category_id]])]),s("label",null,[s("span",null,a(t.tags),1),R(s("input",{"onUpdate:modelValue":f[36]||(f[36]=u=>ue.value.tags=u),type:"text",placeholder:"daily, top"},null,512),[[L,ue.value.tags]])]),s("label",null,[s("span",null,a(t.prompt),1),R(s("input",{"onUpdate:modelValue":f[37]||(f[37]=u=>ue.value.prompt=u),type:"text"},null,512),[[L,ue.value.prompt]])]),s("label",null,[s("span",null,a(t.negativePrompt),1),R(s("input",{"onUpdate:modelValue":f[38]||(f[38]=u=>ue.value.negative_prompt=u),type:"text"},null,512),[[L,ue.value.negative_prompt]])]),s("button",{type:"button",disabled:!!v.value||!ue.value.display_name,onClick:Fi},a(ue.value.material_id?t.update:t.create),9,ud),s("button",{type:"button",disabled:!!v.value,onClick:ll},a(t.reset),9,cd)]),s("ul",null,[(x(!0),S(X,null,ge(((Yl=fe.value)==null?void 0:Yl.items)??[],u=>(x(),S("li",{key:u.material_id},[s("div",null,[s("strong",null,a(u.display_name),1),s("small",null,a(u.image_uri??t.noImage),1)]),s("div",dd,[s("span",fd,a(u.recognition_status),1),s("button",{type:"button",disabled:!!v.value,onClick:te=>Ni(u)},a(t.edit),9,pd),s("button",{type:"button",disabled:!!v.value,onClick:te=>ji(u.material_id)},a(t.recognize),9,hd),s("button",{type:"button",disabled:!!v.value||u.recognition_status==="confirmed",onClick:te=>Wi(u)},a(t.confirm),9,vd),s("button",{type:"button",disabled:!!v.value,onClick:te=>Hi(u.material_id)},a(t.archive),9,gd)])]))),128)),(Ql=fe.value)!=null&&Ql.items.length?z("",!0):(x(),S("li",_d,a(t.emptyMaterials),1))]),Ve.value?(x(),S("pre",md,a(JSON.stringify(Ve.value,null,2)),1)):z("",!0)])])):z("",!0),l.value==="wardrobe"?(x(),S("section",yd,[s("header",null,[s("h2",null,a(w.value),1),s("button",{type:"button",disabled:!b.value||!!v.value,onClick:ki},a(t.match),9,bd)]),s("div",wd,[s("label",null,[s("span",null,a(t.selectMaterial),1),R(s("select",{"onUpdate:modelValue":f[39]||(f[39]=u=>me.value.material_id=u)},[s("option",kd,a(t.selectMaterial),1),(x(!0),S(X,null,ge(P.value,u=>(x(),S("option",{key:u.material_id,value:u.material_id},a(u.display_name),9,Cd))),128))],512),[[Lt,me.value.material_id]])]),s("label",null,[s("span",null,a(t.wardrobeCategory),1),R(s("input",{"onUpdate:modelValue":f[40]||(f[40]=u=>me.value.wardrobe_category=u),type:"text"},null,512),[[L,me.value.wardrobe_category]])]),s("label",null,[s("span",null,a(t.tags),1),R(s("input",{"onUpdate:modelValue":f[41]||(f[41]=u=>me.value.tags=u),type:"text",placeholder:"daily, top"},null,512),[[L,me.value.tags]])]),s("label",null,[s("span",null,a(t.season),1),R(s("input",{"onUpdate:modelValue":f[42]||(f[42]=u=>me.value.season=u),type:"text"},null,512),[[L,me.value.season]])]),s("label",null,[s("span",null,a(t.style),1),R(s("input",{"onUpdate:modelValue":f[43]||(f[43]=u=>me.value.style=u),type:"text"},null,512),[[L,me.value.style]])]),s("button",{type:"button",disabled:!!v.value||!b.value||!me.value.material_id||!me.value.wardrobe_category,onClick:xi},a(t.importToWardrobe),9,xd)]),s("ul",null,[(x(!0),S(X,null,ge(Ae.value,u=>(x(),S("li",{key:u.wardrobe_item_id},[s("div",null,[s("strong",null,a(u.wardrobe_category),1),s("small",null,a(u.material_id)+" / "+a(u.tags.join(", ")||t.noTags),1)]),s("div",Sd,[s("span",null,a(u.usage_count),1),s("button",{type:"button",disabled:!!v.value,onClick:te=>Si(u.wardrobe_item_id)},a(t.delete),9,Pd)])]))),128)),Ae.value.length?z("",!0):(x(),S("li",Dd,a(t.emptyWardrobe),1))]),ft.value?(x(),S("pre",Ed,a(JSON.stringify(ft.value,null,2)),1)):z("",!0),s("div",Td,[s("label",null,[s("span",null,a(t.categories),1),R(s("input",{"onUpdate:modelValue":f[44]||(f[44]=u=>Te.value.categories=u),type:"text"},null,512),[[L,Te.value.categories]])]),s("label",null,[s("span",null,a(t.mood),1),R(s("input",{"onUpdate:modelValue":f[45]||(f[45]=u=>Te.value.mood=u),type:"text"},null,512),[[L,Te.value.mood]])]),s("label",null,[s("span",null,a(t.weather),1),R(s("input",{"onUpdate:modelValue":f[46]||(f[46]=u=>Te.value.weather=u),type:"text"},null,512),[[L,Te.value.weather]])]),s("label",null,[s("span",null,a(t.keywords),1),R(s("input",{"onUpdate:modelValue":f[47]||(f[47]=u=>Te.value.keywords=u),type:"text"},null,512),[[L,Te.value.keywords]])]),s("button",{type:"button",disabled:!!v.value||!b.value,onClick:Pi},a(t.dailyOutfit),9,Od)]),Tt.value?(x(),S("pre",Id,a(JSON.stringify(Tt.value,null,2)),1)):z("",!0)])):z("",!0),l.value==="jobs"?(x(),S("section",Ad,[s("header",null,[s("h2",null,a(t.jobs),1),s("div",Md,[s("button",{type:"button",disabled:!!v.value,onClick:_i},a(t.moveFailed),9,$d),s("button",{type:"button",disabled:!!v.value,onClick:mi},a(t.retryDead),9,Rd)])]),s("div",Bd,[s("label",null,[f[58]||(f[58]=s("span",null,"Status",-1)),R(s("select",{"onUpdate:modelValue":f[48]||(f[48]=u=>Ye.value.status=u)},[s("option",Ud,a(t.allStatuses),1),(x(),S(X,null,ge(V,u=>s("option",{key:u,value:u},a(u),9,Vd)),64))],512),[[Lt,Ye.value.status]])]),s("label",null,[s("span",null,a(t.profiles),1),R(s("select",{"onUpdate:modelValue":f[49]||(f[49]=u=>Ye.value.profile_id=u)},[s("option",Ld,a(t.allProfiles),1),(x(!0),S(X,null,ge(((Xl=r.value)==null?void 0:Xl.items)??[],u=>(x(),S("option",{key:u.profile_id,value:u.profile_id},a(u.name),9,Fd))),128))],512),[[Lt,Ye.value.profile_id]])]),s("label",null,[s("span",null,a(t.workflows),1),R(s("select",{"onUpdate:modelValue":f[50]||(f[50]=u=>Ye.value.workflow_id=u)},[s("option",Nd,a(t.allWorkflows),1),(x(!0),S(X,null,ge(d.value,u=>(x(),S("option",{key:u.workflow_id,value:u.workflow_id},a(u.display_name),9,jd))),128))],512),[[Lt,Ye.value.workflow_id]])]),s("button",{type:"button",disabled:!!v.value,onClick:ae},a(t.filter),9,Wd)]),s("ul",null,[(x(!0),S(X,null,ge(((Zl=N.value)==null?void 0:Zl.items)??[],u=>(x(),S("li",{key:u.task_id},[s("div",null,[s("strong",null,a(u.task_id),1),s("small",null,a(u.task_type)+" / "+a(u.progress)+"%",1)]),s("div",Hd,[s("span",Kd,a(u.status),1),["failed","dead_letter","cancelled"].includes(u.status)?(x(),S("button",{key:0,type:"button",onClick:te=>$e(u.task_id)},a(t.retry),9,qd)):z("",!0),["completed","succeeded","cancelled"].includes(u.status)?z("",!0):(x(),S("button",{key:1,type:"button",onClick:te=>Je(u.task_id)},a(t.cancel),9,Jd)),s("button",{type:"button",disabled:!!v.value,onClick:te=>_n(u.task_id)},a(t.detail),9,Gd)])]))),128)),(es=N.value)!=null&&es.items.length?z("",!0):(x(),S("li",zd,a(t.emptyJobs),1))]),he.value?(x(),S("section",Yd,[s("header",null,[s("h2",null,a(t.jobDetail),1),s("span",null,a(he.value.status),1)]),s("pre",null,a(JSON.stringify(he.value,null,2)),1)])):z("",!0)])):z("",!0),l.value==="discovery"?(x(),S("section",Qd,[s("div",Xd,[s("header",null,[s("h2",null,a(t.dialects),1),s("div",Zd,[s("button",{type:"button",disabled:!!v.value,onClick:bi},a(t.probeProvider),9,ef),s("button",{type:"button",disabled:!!v.value,onClick:yi},a(t.safeProbe),9,tf)])]),s("ul",null,[(x(!0),S(X,null,ge(Me.value,u=>(x(),S("li",{key:u.dialect},[s("div",null,[s("strong",null,a(u.label),1),s("small",null,a(u.capabilities.join(", ")||t.unconfirmed),1)]),s("span",null,a(u.dialect),1)]))),128))]),s("div",nf,[s("label",null,[s("span",null,a(t.provider),1),R(s("input",{"onUpdate:modelValue":f[51]||(f[51]=u=>xe.value.provider_id=u),type:"text",placeholder:"local-preview"},null,512),[[L,xe.value.provider_id]])]),s("label",null,[s("span",null,a(t.model),1),R(s("input",{"onUpdate:modelValue":f[52]||(f[52]=u=>xe.value.model_id=u),type:"text",placeholder:"metadata-only"},null,512),[[L,xe.value.model_id]])]),s("label",null,[s("span",null,a(t.requiredCapabilities),1),R(s("input",{"onUpdate:modelValue":f[53]||(f[53]=u=>xe.value.required_capabilities=u),type:"text",placeholder:"text_to_image"},null,512),[[L,xe.value.required_capabilities]])]),s("button",{type:"button",disabled:!!v.value||!xe.value.provider_id||!xe.value.model_id,onClick:wi},a(t.validatePlan),9,lf)]),Gt.value?(x(),S("pre",sf,a(JSON.stringify(Gt.value,null,2)),1)):z("",!0)]),s("div",of,[s("header",null,[s("h2",null,a(t.capabilityProfiles),1),s("span",null,a(Ne.value.length),1)]),s("ul",null,[(x(!0),S(X,null,ge(Ne.value,u=>(x(),S("li",{key:u.capability_profile_id},[s("div",null,[s("strong",null,a(u.provider_id)+" / "+a(u.model_id),1),s("small",null,a(u.dialect),1)]),s("div",rf,[s("span",af,a(u.status),1),s("button",{type:"button",disabled:!!v.value,onClick:te=>tl(u,"confirmed_supported")},a(t.support),9,uf),s("button",{type:"button",disabled:!!v.value,onClick:te=>tl(u,"confirmed_unsupported")},a(t.unsupported),9,cf),s("button",{type:"button",disabled:!!v.value,onClick:te=>tl(u,"unconfirmed")},a(t.unconfirmed),9,df)])]))),128)),Ne.value.length?z("",!0):(x(),S("li",ff,a(t.emptyCapabilities),1))])])])):z("",!0),l.value==="logs"?(x(),S("section",pf,[s("div",hf,[s("div",vf,[s("header",null,[s("h2",null,a(t.generationLogs),1),s("span",null,a(_e.value.generation.length),1)]),s("ul",null,[(x(!0),S(X,null,ge(_e.value.generation,u=>(x(),S("li",{key:u.task_id},[s("div",null,[s("strong",null,a(u.task_id),1),s("small",null,a(u.status)+" / "+a(u.progress)+"%",1)]),s("span",null,a(u.created_at),1)]))),128)),_e.value.generation.length?z("",!0):(x(),S("li",gf,a(t.emptyGenerationLogs),1))])]),s("div",_f,[s("header",null,[s("h2",null,a(t.errorLogs),1),s("span",null,a(_e.value.errors.length),1)]),s("ul",null,[(x(!0),S(X,null,ge(_e.value.errors,u=>(x(),S("li",{key:`${u.source}-${u.id}`},[s("div",null,[s("strong",null,a(u.source),1),s("small",null,a(u.error_message??t.noErrorDetail),1)]),s("span",mf,a(u.status),1)]))),128)),_e.value.errors.length?z("",!0):(x(),S("li",yf,a(t.emptyErrors),1))])])]),s("div",bf,[s("div",wf,[s("header",null,[s("h2",null,a(t.workflowLogs),1),s("span",null,a(_e.value.workflows.length),1)]),s("ul",null,[(x(!0),S(X,null,ge(_e.value.workflows,u=>(x(),S("li",{key:u.history_id},[s("div",null,[s("strong",null,a(u.action),1),s("small",null,a(u.title??u.workflow_id),1)]),s("span",null,a(u.branch_name??"main"),1)]))),128)),_e.value.workflows.length?z("",!0):(x(),S("li",kf,a(t.emptyWorkflowLogs),1))])]),s("div",Cf,[s("header",null,[s("h2",null,a(t.integrationLogs),1),s("span",null,a(_e.value.integrations.length),1)]),s("ul",null,[(x(!0),S(X,null,ge(_e.value.integrations,u=>(x(),S("li",{key:u.integration_log_id},[s("div",null,[s("strong",null,a(u.integration_name),1),s("small",null,a(u.action),1)]),s("span",xf,a(u.status),1)]))),128)),_e.value.integrations.length?z("",!0):(x(),S("li",Sf,a(t.emptyIntegrationLogs),1))])])]),s("div",Pf,[s("header",null,[s("h2",null,a(t.auditLogs),1),s("span",null,a(_e.value.audit.length),1)]),s("ul",null,[(x(!0),S(X,null,ge(_e.value.audit,u=>(x(),S("li",{key:u.audit_id},[s("div",null,[s("strong",null,a(u.action),1),s("small",null,a(u.actor_type)+" / "+a(u.target_type)+" / "+a(u.target_id),1)]),s("span",null,a(u.created_at),1)]))),128)),_e.value.audit.length?z("",!0):(x(),S("li",Df,a(t.emptyAuditLogs),1))])])])):z("",!0),l.value==="settings"?(x(),S("section",Ef,[s("div",Tf,[s("button",{type:"button",disabled:!!v.value,onClick:Di},a(t.reload),9,Of),s("button",{type:"button",disabled:!!v.value,onClick:f[54]||(f[54]=u=>Ut())},a(t.reset),9,If),s("button",{type:"button",disabled:!!v.value,onClick:Oi},a(t.validate),9,Af),s("button",{type:"button",disabled:!!v.value,onClick:Ii},a(t.diff),9,Mf),s("button",{type:"button",disabled:!!v.value,onClick:Ai},a(t.save),9,$f),s("button",{type:"button",disabled:!!v.value,onClick:Ei},a(t.exportRedacted),9,Rf),s("button",{type:"button",disabled:!!v.value,onClick:ql},a(t.loadSnapshots),9,Bf)]),s("div",Uf,[(x(!0),S(X,null,ge(((ts=de.value)==null?void 0:ts.sections)??[],u=>(x(),S("article",{key:u.key},[s("h2",null,a(u.title),1),s("span",null,a(u.fields.length),1)]))),128))]),s("section",Vf,[s("header",null,[s("h2",null,a(t.settingsEditor),1),s("span",null,a(((ns=H.value)==null?void 0:ns.config_path)??"***PATH***"),1)]),R(s("textarea",{"onUpdate:modelValue":f[55]||(f[55]=u=>pt.value=u),spellcheck:"false"},null,512),[[L,pt.value]])]),s("section",Lf,[s("header",null,[s("h2",null,a(t.importSettings),1),s("button",{type:"button",disabled:!!v.value||!nt.value,onClick:Mi},a(t.importSettings),9,Ff)]),R(s("textarea",{"onUpdate:modelValue":f[56]||(f[56]=u=>nt.value=u),spellcheck:"false"},null,512),[[L,nt.value]])]),s("section",Nf,[s("header",null,[s("h2",null,a(t.snapshots),1),s("span",null,a(kt.value.length),1)]),s("ul",null,[(x(!0),S(X,null,ge(kt.value,u=>(x(),S("li",{key:u.snapshot_id},[s("div",null,[s("strong",null,a(u.reason),1),s("small",null,a(u.snapshot_id)+" / "+a(u.created_at),1)]),s("button",{type:"button",disabled:!!v.value,onClick:te=>$i(u.snapshot_id)},a(t.rollback),9,jf)]))),128))])]),s("div",Wf,[s("div",Hf,[s("header",null,[s("h2",null,a(t.validationResult),1),s("span",null,a(((ls=Ct.value)==null?void 0:ls.valid)??"-"),1)]),s("pre",null,a(JSON.stringify(Ct.value??{},null,2)),1)]),s("div",Kf,[s("header",null,[s("h2",null,a(t.diffResult),1),s("span",null,a(((ss=ke.value)==null?void 0:ss.changes.length)??0),1)]),s("pre",null,a(JSON.stringify(ke.value??{},null,2)),1)])])])):z("",!0)],64))]),s("aside",qf,[s("h2",null,a(t.running),1),s("dl",null,[s("div",null,[f[59]||(f[59]=s("dt",null,"Pending",-1)),s("dd",null,a(((os=i.value)==null?void 0:os.queue.pending)??0),1)]),s("div",null,[f[60]||(f[60]=s("dt",null,"Running",-1)),s("dd",null,a(((is=i.value)==null?void 0:is.queue.running)??0),1)]),s("div",null,[f[61]||(f[61]=s("dt",null,"Failed",-1)),s("dd",null,a(((rs=i.value)==null?void 0:rs.queue.failed)??0),1)]),s("div",null,[f[62]||(f[62]=s("dt",null,"Dead",-1)),s("dd",null,a(((as=i.value)==null?void 0:as.queue.dead_letter)??0),1)])]),s("h2",null,a(t.storage),1),s("dl",null,[s("div",null,[f[63]||(f[63]=s("dt",null,"Images",-1)),s("dd",null,a(sl(Jl("storage://images/"))),1)]),s("div",null,[f[64]||(f[64]=s("dt",null,"Materials",-1)),s("dd",null,a(sl(Jl("storage://materials/"))),1)])])])])}}}),Gf=(e,t)=>{const n=e.__vccOpts||e;for(const[l,o]of t)n[l]=o;return n},zf=Gf(Jf,[["__scopeId","data-v-17d37477"]]);gu(zf).mount("#app"); diff --git a/web/assets/index-Dp0aKiRk.css b/web/assets/index-Dp0aKiRk.css new file mode 100644 index 0000000..339ae2f --- /dev/null +++ b/web/assets/index-Dp0aKiRk.css @@ -0,0 +1 @@ +.web-shell[data-v-a37d195e]{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-a37d195e],.inspector[data-v-a37d195e]{background:#fff}.sidebar[data-v-a37d195e]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-a37d195e]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-a37d195e]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-a37d195e]{font-size:19px}.brand span[data-v-a37d195e],p[data-v-a37d195e],dt[data-v-a37d195e],.empty[data-v-a37d195e],small[data-v-a37d195e]{color:#667085}nav[data-v-a37d195e]{display:grid;gap:6px}button[data-v-a37d195e]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-a37d195e]:disabled{cursor:wait;opacity:.62}nav button[data-v-a37d195e]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-a37d195e]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-a37d195e]{min-width:0;padding:24px}.topbar[data-v-a37d195e],.list-view header[data-v-a37d195e],.toolbar[data-v-a37d195e],.inline-actions[data-v-a37d195e]{display:flex;gap:12px;align-items:center}.topbar[data-v-a37d195e],.list-view header[data-v-a37d195e]{justify-content:space-between}.actions[data-v-a37d195e],.inline-actions[data-v-a37d195e]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-a37d195e],.toolbar button[data-v-a37d195e],.list-view header button[data-v-a37d195e],.inline-actions button[data-v-a37d195e]{padding:0 14px}h1[data-v-a37d195e],h2[data-v-a37d195e],p[data-v-a37d195e],dl[data-v-a37d195e],dd[data-v-a37d195e]{margin:0}h1[data-v-a37d195e]{min-height:30px;font-size:26px}h2[data-v-a37d195e]{font-size:15px}.notice[data-v-a37d195e],article[data-v-a37d195e],.list-view[data-v-a37d195e],.editor-panel[data-v-a37d195e],pre[data-v-a37d195e]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-a37d195e]{margin-top:18px;padding:14px}.error[data-v-a37d195e]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-a37d195e],.split-view[data-v-a37d195e]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-a37d195e]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-a37d195e]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-a37d195e]{display:grid;gap:8px;padding:16px}article span[data-v-a37d195e]{color:#667085;font-size:13px}article strong[data-v-a37d195e]{font-size:24px}.list-view[data-v-a37d195e],.logs-view[data-v-a37d195e],.settings-view[data-v-a37d195e]{margin-top:18px}.split-view .list-view[data-v-a37d195e],.logs-view .list-view[data-v-a37d195e]{margin-top:0}.list-view[data-v-a37d195e]{padding:16px}.editor-panel[data-v-a37d195e]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-a37d195e]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-a37d195e]{box-sizing:border-box;width:100%;min-height:300px;resize:vertical;border:1px solid #c7d0da;border-radius:6px;padding:12px;color:#1b2430;background:#fbfcfd;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace}.form-grid[data-v-a37d195e]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;padding:12px;border:1px solid #eef1f5;border-radius:8px;background:#fbfcfd}label[data-v-a37d195e]{display:grid;gap:5px;min-width:0}label span[data-v-a37d195e]{color:#667085;font-size:12px}.wide-field[data-v-a37d195e]{grid-column:1 / -1}input[data-v-a37d195e],select[data-v-a37d195e]{box-sizing:border-box;width:100%;min-height:34px;border:1px solid #c7d0da;border-radius:6px;padding:0 10px;color:#1b2430;background:#fff;font:inherit}ul[data-v-a37d195e]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-a37d195e]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-a37d195e]:first-child{border-top:0}li>div[data-v-a37d195e]{display:grid;gap:3px;min-width:0}li strong[data-v-a37d195e],li span[data-v-a37d195e],li small[data-v-a37d195e]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-a37d195e]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-a37d195e]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-a37d195e]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-a37d195e]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-a37d195e]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-a37d195e]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-a37d195e]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-a37d195e]{display:none}}@media(max-width:820px){.web-shell[data-v-a37d195e]{grid-template-columns:1fr}.sidebar[data-v-a37d195e]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-a37d195e]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-a37d195e]{text-align:center}.dashboard-grid[data-v-a37d195e],.split-view[data-v-a37d195e],.settings-sections[data-v-a37d195e]{grid-template-columns:1fr}.topbar[data-v-a37d195e],.list-view header[data-v-a37d195e]{align-items:flex-start;flex-direction:column}} diff --git a/web/assets/index-_0xdAcps.css b/web/assets/index-_0xdAcps.css deleted file mode 100644 index b4b69e8..0000000 --- a/web/assets/index-_0xdAcps.css +++ /dev/null @@ -1 +0,0 @@ -.web-shell[data-v-17d37477]{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-17d37477],.inspector[data-v-17d37477]{background:#fff}.sidebar[data-v-17d37477]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-17d37477]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-17d37477]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-17d37477]{font-size:19px}.brand span[data-v-17d37477],p[data-v-17d37477],dt[data-v-17d37477],.empty[data-v-17d37477],small[data-v-17d37477]{color:#667085}nav[data-v-17d37477]{display:grid;gap:6px}button[data-v-17d37477]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-17d37477]:disabled{cursor:wait;opacity:.62}nav button[data-v-17d37477]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-17d37477]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-17d37477]{min-width:0;padding:24px}.topbar[data-v-17d37477],.list-view header[data-v-17d37477],.toolbar[data-v-17d37477],.inline-actions[data-v-17d37477]{display:flex;gap:12px;align-items:center}.topbar[data-v-17d37477],.list-view header[data-v-17d37477]{justify-content:space-between}.actions[data-v-17d37477],.inline-actions[data-v-17d37477]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-17d37477],.toolbar button[data-v-17d37477],.list-view header button[data-v-17d37477],.inline-actions button[data-v-17d37477]{padding:0 14px}h1[data-v-17d37477],h2[data-v-17d37477],p[data-v-17d37477],dl[data-v-17d37477],dd[data-v-17d37477]{margin:0}h1[data-v-17d37477]{min-height:30px;font-size:26px}h2[data-v-17d37477]{font-size:15px}.notice[data-v-17d37477],article[data-v-17d37477],.list-view[data-v-17d37477],.editor-panel[data-v-17d37477],pre[data-v-17d37477]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-17d37477]{margin-top:18px;padding:14px}.error[data-v-17d37477]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-17d37477],.split-view[data-v-17d37477]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-17d37477]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-17d37477]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-17d37477]{display:grid;gap:8px;padding:16px}article span[data-v-17d37477]{color:#667085;font-size:13px}article strong[data-v-17d37477]{font-size:24px}.list-view[data-v-17d37477],.logs-view[data-v-17d37477],.settings-view[data-v-17d37477]{margin-top:18px}.split-view .list-view[data-v-17d37477],.logs-view .list-view[data-v-17d37477]{margin-top:0}.list-view[data-v-17d37477]{padding:16px}.editor-panel[data-v-17d37477]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-17d37477]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-17d37477]{box-sizing:border-box;width:100%;min-height:300px;resize:vertical;border:1px solid #c7d0da;border-radius:6px;padding:12px;color:#1b2430;background:#fbfcfd;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace}.form-grid[data-v-17d37477]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;padding:12px;border:1px solid #eef1f5;border-radius:8px;background:#fbfcfd}label[data-v-17d37477]{display:grid;gap:5px;min-width:0}label span[data-v-17d37477]{color:#667085;font-size:12px}.wide-field[data-v-17d37477]{grid-column:1 / -1}input[data-v-17d37477],select[data-v-17d37477]{box-sizing:border-box;width:100%;min-height:34px;border:1px solid #c7d0da;border-radius:6px;padding:0 10px;color:#1b2430;background:#fff;font:inherit}ul[data-v-17d37477]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-17d37477]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-17d37477]:first-child{border-top:0}li>div[data-v-17d37477]{display:grid;gap:3px;min-width:0}li strong[data-v-17d37477],li span[data-v-17d37477],li small[data-v-17d37477]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-17d37477]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-17d37477]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-17d37477]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-17d37477]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-17d37477]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-17d37477]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-17d37477]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-17d37477]{display:none}}@media(max-width:820px){.web-shell[data-v-17d37477]{grid-template-columns:1fr}.sidebar[data-v-17d37477]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-17d37477]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-17d37477]{text-align:center}.dashboard-grid[data-v-17d37477],.split-view[data-v-17d37477],.settings-sections[data-v-17d37477]{grid-template-columns:1fr}.topbar[data-v-17d37477],.list-view header[data-v-17d37477]{align-items:flex-start;flex-direction:column}} diff --git a/web/index.html b/web/index.html index c5c89ea..a1db022 100644 --- a/web/index.html +++ b/web/index.html @@ -1,3 +1,3 @@ - - + +