diff --git a/frontend/shared/types/logs.ts b/frontend/shared/types/logs.ts index 2375e1e..15ef0de 100644 --- a/frontend/shared/types/logs.ts +++ b/frontend/shared/types/logs.ts @@ -35,6 +35,8 @@ export interface IntegrationLog { integration_name: string action: string status: string + request?: Record + response?: Record error_message?: string | null created_at: string } diff --git a/frontend/standalone-web/src/App.vue b/frontend/standalone-web/src/App.vue index abf46f7..533dd86 100644 --- a/frontend/standalone-web/src/App.vue +++ b/frontend/standalone-web/src/App.vue @@ -191,6 +191,7 @@ const text = { errorLogs: "\u9519\u8bef", workflowLogs: "\u5de5\u4f5c\u6d41", integrationLogs: "\u96c6\u6210", + integrationEvents: "\u96c6\u6210\u4e8b\u4ef6", auditLogs: "\u5ba1\u8ba1", targetType: "TargetType", actor: "\u64cd\u4f5c\u4eba", @@ -260,6 +261,7 @@ const dialects = ref([]) const capabilities = ref([]) const wardrobeMatch = ref(null) const logs = ref({ generation: [], workflows: [], errors: [], integrations: [], audit: [] }) +const integrationEventLogs = ref([]) const signedMedia = ref(null) const settingsDraft = ref("") const settingsImportDraft = ref("") @@ -451,11 +453,12 @@ async function load() { } async function loadLogs() { - const [generation, workflows, errors, integrations, audit] = await Promise.allSettled([ + const [generation, workflows, errors, integrations, integrationEvents, audit] = await Promise.allSettled([ getJson(endpoints.generationLogs, { limit: 12 }), getJson(endpoints.workflowLogs, { limit: 12 }), getJson(endpoints.errorLogs, { limit: 12 }), getJson(endpoints.integrationLogs, { limit: 12 }), + getJson(endpoints.integrationEventLogs), getJson(endpoints.auditLogs, { limit: 12 }), ]) logs.value = { @@ -465,6 +468,7 @@ async function loadLogs() { integrations: settledValue(integrations), audit: settledValue(audit), } + integrationEventLogs.value = settledValue(integrationEvents) } async function loadAuditLogs() { @@ -2349,6 +2353,24 @@ function storageRootBytes(uriPrefix: string) { +
+
+

{{ text.integrationEvents }}

+ {{ integrationEventLogs.length }} +
+
    +
  • +
    + {{ item.integration_name }} + {{ item.action }} / {{ item.created_at }} +
    + {{ item.status }} +
  • +
  • {{ text.emptyIntegrationLogs }}
  • +
+
{{ JSON.stringify(integrationEventLogs[0], null, 2) }}
+
+

{{ text.auditLogs }}

diff --git a/web/assets/index-BdP4se3A.css b/web/assets/index-BdP4se3A.css new file mode 100644 index 0000000..03f8681 --- /dev/null +++ b/web/assets/index-BdP4se3A.css @@ -0,0 +1 @@ +.web-shell[data-v-99119689]{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-99119689],.inspector[data-v-99119689]{background:#fff}.sidebar[data-v-99119689]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-99119689]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-99119689]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-99119689]{font-size:19px}.brand span[data-v-99119689],p[data-v-99119689],dt[data-v-99119689],.empty[data-v-99119689],small[data-v-99119689]{color:#667085}nav[data-v-99119689]{display:grid;gap:6px}button[data-v-99119689]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-99119689]:disabled{cursor:wait;opacity:.62}nav button[data-v-99119689]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-99119689]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-99119689]{min-width:0;padding:24px}.topbar[data-v-99119689],.list-view header[data-v-99119689],.toolbar[data-v-99119689],.inline-actions[data-v-99119689]{display:flex;gap:12px;align-items:center}.topbar[data-v-99119689],.list-view header[data-v-99119689]{justify-content:space-between}.actions[data-v-99119689],.inline-actions[data-v-99119689]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-99119689],.toolbar button[data-v-99119689],.list-view header button[data-v-99119689],.inline-actions button[data-v-99119689]{padding:0 14px}h1[data-v-99119689],h2[data-v-99119689],p[data-v-99119689],dl[data-v-99119689],dd[data-v-99119689]{margin:0}h1[data-v-99119689]{min-height:30px;font-size:26px}h2[data-v-99119689]{font-size:15px}.notice[data-v-99119689],article[data-v-99119689],.list-view[data-v-99119689],.editor-panel[data-v-99119689],pre[data-v-99119689]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-99119689]{margin-top:18px;padding:14px}.error[data-v-99119689]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-99119689],.split-view[data-v-99119689]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-99119689]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-99119689]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-99119689]{display:grid;gap:8px;padding:16px}article span[data-v-99119689]{color:#667085;font-size:13px}article strong[data-v-99119689]{font-size:24px}.list-view[data-v-99119689],.logs-view[data-v-99119689],.settings-view[data-v-99119689]{margin-top:18px}.split-view .list-view[data-v-99119689],.logs-view .list-view[data-v-99119689]{margin-top:0}.list-view[data-v-99119689]{padding:16px}.editor-panel[data-v-99119689]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-99119689]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-99119689]{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-99119689]{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-99119689]{display:grid;gap:5px;min-width:0}label span[data-v-99119689]{color:#667085;font-size:12px}.wide-field[data-v-99119689]{grid-column:1 / -1}input[data-v-99119689],select[data-v-99119689]{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-99119689]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-99119689]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-99119689]:first-child{border-top:0}li>div[data-v-99119689]{display:grid;gap:3px;min-width:0}li strong[data-v-99119689],li span[data-v-99119689],li small[data-v-99119689]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-99119689]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-99119689]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-99119689]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-99119689]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-99119689]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-99119689]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-99119689]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-99119689]{display:none}}@media(max-width:820px){.web-shell[data-v-99119689]{grid-template-columns:1fr}.sidebar[data-v-99119689]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-99119689]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-99119689]{text-align:center}.dashboard-grid[data-v-99119689],.split-view[data-v-99119689],.settings-sections[data-v-99119689]{grid-template-columns:1fr}.topbar[data-v-99119689],.list-view header[data-v-99119689]{align-items:flex-start;flex-direction:column}} diff --git a/web/assets/index-DvLE7l5o.js b/web/assets/index-DvLE7l5o.js deleted file mode 100644 index dcafc4b..0000000 --- a/web/assets/index-DvLE7l5o.js +++ /dev/null @@ -1,17 +0,0 @@ -var Yi=Object.defineProperty;var Qi=(e,t,n)=>t in e?Yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var sl=(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 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={},Nt=[],at=()=>{},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:"),Ee=Object.assign,Ol=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Xi=Object.prototype.hasOwnProperty,re=(e,t)=>Xi.call(e,t),W=Array.isArray,jt=e=>vn(e)==="[object Map]",Wn=e=>vn(e)==="[object Set]",co=e=>vn(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",Ho=e=>(ce(e)||J(e))&&J(e.then)&&J(e.catch),Ko=Object.prototype.toString,vn=e=>Ko.call(e),Zi=e=>vn(e).slice(8,-1),qo=e=>vn(e)==="[object Object]",Il=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,tn=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)))},er=/-\w/g,Xe=Hn(e=>e.replace(er,t=>t.slice(1).toUpperCase())),tr=/\B([A-Z])/g,Bt=Hn(e=>e.replace(tr,"-$1").toLowerCase()),Jo=Hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),il=Hn(e=>e?`on${Jo(e)}`:""),rt=(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(lr);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):jt(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))}:ut(t)?rl(t):ce(t)&&!W(t)&&!qo(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 Te;class cr{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&&Te&&(Te.active?(this.parent=Te,this.index=(Te.scopes||(Te.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(Te===this)Te=this.prevScope;else{let t=Te;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(ln){let t=ln;for(ln=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;nn;){let t=nn;for(nn=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),fr(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===un)||(e.globalVersion=un,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ml(e))))return;e.flags|=2;const t=e.dep,n=_e,l=Ze;_e=e,Ze=!0;try{ts(e);const s=e.fn(e._value);(t.version===0||rt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{_e=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 fr(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 ct(){os.push(Ze),Ze=!1}function dt(){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=_e;_e=void 0;try{t()}finally{_e=n}}}let un=0;class pr{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(!_e||!Ze||_e===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==_e)n=this.activeLink=new pr(_e,this),_e.deps?(n.prevDep=_e.depsTail,_e.depsTail.nextDep=n,_e.depsTail=n):_e.deps=_e.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=_e.depsTail,n.nextDep=void 0,_e.depsTail.nextDep=n,_e.depsTail=n,_e.deps===n&&(_e.deps=l)}return n}trigger(t){this.version++,un++,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,Rt=Symbol(""),bl=Symbol(""),cn=Symbol("");function Oe(e,t,n){if(Ze&&_e){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){un++;return}const d=v=>{v&&v.trigger()};if(Ml(),t==="clear")u.forEach(d);else{const v=W(e),y=v&&Il(n);if(v&&n==="length"){const _=Number(l);u.forEach((b,O)=>{(O==="length"||O===cn||!ut(O)&&O>=_)&&d(b)})}else switch((n!==void 0||u.has(void 0))&&d(u.get(n)),y&&d(u.get(cn)),t){case"add":v?y&&d(u.get("length")):(d(u.get(Rt)),jt(e)&&d(u.get(bl)));break;case"delete":v||(d(u.get(Rt)),jt(e)&&d(u.get(bl)));break;case"set":jt(e)&&d(u.get(Rt));break}}$l()}function Lt(e){const t=ie(e);return t===e?t:(Oe(t,"iterate",cn),Ge(e)?t:t.map(et))}function Gn(e){return Oe(e=ie(e),"iterate",cn),e}function st(e,t){return wt(e)?qt(Ut(e)?et(t):t):et(t)}const vr={__proto__:null,[Symbol.iterator](){return ul(this,Symbol.iterator,e=>st(this,e))},concat(...e){return Lt(this).concat(...e.map(t=>W(t)?Lt(t):t))},entries(){return ul(this,"entries",e=>(e[1]=st(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=>st(this,l)),arguments)},find(e,t){return ht(this,"find",e,t,n=>st(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=>st(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 Lt(this).join(e)},lastIndexOf(...e){return cl(this,"lastIndexOf",e)},map(e,t){return ht(this,"map",e,t,void 0,arguments)},pop(){return Qt(this,"pop")},push(...e){return Qt(this,"push",e)},reduce(e,...t){return vo(this,"reduce",e,t)},reduceRight(e,...t){return vo(this,"reduceRight",e,t)},shift(){return Qt(this,"shift")},some(e,t){return ht(this,"some",e,t,void 0,arguments)},splice(...e){return Qt(this,"splice",e)},toReversed(){return Lt(this).toReversed()},toSorted(e){return Lt(this).toSorted(e)},toSpliced(...e){return Lt(this).toSpliced(...e)},unshift(...e){return Qt(this,"unshift",e)},values(){return ul(this,"values",e=>st(this,e))}};function ul(e,t,n){const l=Gn(e),s=l[t]();return l!==e&&!Ge(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const hr=Array.prototype;function ht(e,t,n,l,s,i){const u=Gn(e),d=u!==e&&!Ge(e),v=u[t];if(v!==hr[t]){const b=v.apply(e,i);return d?et(b):b}let y=n;u!==e&&(d?y=function(b,O){return n.call(this,st(e,b),O,e)}:n.length>2&&(y=function(b,O){return n.call(this,b,O,e)}));const _=v.call(u,y,l);return d&&s?s(_):_}function vo(e,t,n,l){const s=Gn(e),i=s!==e&&!Ge(e);let u=n,d=!1;s!==e&&(i?(d=l.length===0,u=function(y,_,b){return d&&(d=!1,y=st(e,y)),n.call(this,y,st(e,_),b,e)}):n.length>3&&(u=function(y,_,b){return n.call(this,y,_,b,e)}));const v=s[t](u,...l);return d?st(e,v):v}function cl(e,t,n){const l=ie(e);Oe(l,"iterate",cn);const s=l[t](...n);return(s===-1||s===!1)&&Fl(n[0])?(n[0]=ie(n[0]),l[t](...n)):s}function Qt(e,t,n=[]){ct(),Ml();const l=ie(e)[t].apply(e,n);return $l(),dt(),l}const gr=El("__proto__,__v_isRef,__isVue"),is=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ut));function _r(e){ut(e)||(e=String(e));const t=ie(this);return Oe(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?Dr:ds:i?cs:us).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const u=W(t);if(!s){let v;if(u&&(v=vr[n]))return v;if(n==="hasOwnProperty")return _r}const d=Reflect.get(t,n,Ie(t)?t:l);if((ut(n)?is.has(n):gr(n))||(s||Oe(t,"get",n),i))return d;if(Ie(d)){const v=u&&Il(n)?d:d.value;return s&&ce(v)?kl(v):v}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 y=wt(i);if(!Ge(l)&&!wt(l)&&(i=ie(i),l=ie(l)),!u&&Ie(i)&&!Ie(l))return y||(i.value=l),!0}const d=u?Number(n)e,Pn=e=>Reflect.getPrototypeOf(e);function kr(e,t,n){return function(...l){const s=this.__v_raw,i=ie(s),u=jt(i),d=e==="entries"||e===Symbol.iterator&&u,v=e==="keys"&&u,y=s[e](...l),_=n?wl:t?qt:et;return!t&&Oe(i,"iterate",v?bl:Rt),Ee(Object.create(y),{next(){const{value:b,done:O}=y.next();return O?{value:b,done:O}:{value:d?[_(b[0]),_(b[1])]:_(b),done:O}}})}}function Dn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Cr(e,t){const n={get(s){const i=this.__v_raw,u=ie(i),d=ie(s);e||(rt(s,d)&&Oe(u,"get",s),Oe(u,"get",d));const{has:v}=Pn(u),y=t?wl:e?qt:et;if(v.call(u,s))return y(i.get(s));if(v.call(u,d))return y(i.get(d));i!==u&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Oe(ie(s),"iterate",Rt),s.size},has(s){const i=this.__v_raw,u=ie(i),d=ie(s);return e||(rt(s,d)&&Oe(u,"has",s),Oe(u,"has",d)),s===d?i.has(s):i.has(s)||i.has(d)},forEach(s,i){const u=this,d=u.__v_raw,v=ie(d),y=t?wl:e?qt:et;return!e&&Oe(v,"iterate",Rt),d.forEach((_,b)=>s.call(i,y(_),y(b),u))}};return Ee(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),v=!t&&!Ge(s)&&!wt(s)?d:s;return u.has.call(i,v)||rt(s,v)&&u.has.call(i,s)||rt(d,v)&&u.has.call(i,d)||(i.add(v),mt(i,"add",v,v)),this},set(s,i){!t&&!Ge(i)&&!wt(i)&&(i=ie(i));const u=ie(this),{has:d,get:v}=Pn(u);let y=d.call(u,s);y||(s=ie(s),y=d.call(u,s));const _=v.call(u,s);return u.set(s,i),y?rt(i,_)&&mt(u,"set",s,i):mt(u,"add",s,i),this},delete(s){const i=ie(this),{has:u,get:d}=Pn(i);let v=u.call(i,s);v||(s=ie(s),v=u.call(i,s)),d&&d.call(i,s);const y=i.delete(s);return v&&mt(i,"delete",s,void 0),y},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]=kr(s,e,t)}),n}function Bl(e,t){const n=Cr(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 xr={get:Bl(!1,!1)},Sr={get:Bl(!1,!0)},Pr={get:Bl(!0,!1)};const us=new WeakMap,cs=new WeakMap,ds=new WeakMap,Dr=new WeakMap;function Tr(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,yr,xr,us)}function Er(e){return Ll(e,!1,wr,Sr,cs)}function kl(e){return Ll(e,!0,br,Pr,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=Tr(Zi(e));if(u===0)return e;const d=new Proxy(e,u===2?l:n);return s.set(e,d),d}function Ut(e){return wt(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function wt(e){return!!(e&&e.__v_isReadonly)}function Ge(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 Or(e){return!re(e,"__v_skip")&&Object.isExtensible(e)&&Go(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 Ir(e,!1)}function Ir(e,t){return Ie(e)?e:new Ar(e,t)}class Ar{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||Ge(t)||wt(t);t=l?t:ie(t),rt(t,n)&&(this._rawValue=t,this._value=l?t:et(t),this.dep.trigger())}}function Mr(e){return Ie(e)?e.value:e}const $r={get:(e,t,n)=>t==="__v_raw"?e:Mr(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const s=e[t];return Ie(s)&&!Ie(n)?(s.value=n,!0):Reflect.set(e,t,n,l)}};function fs(e){return Ut(e)?e:new Proxy(e,$r)}class Rr{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=un-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&_e!==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 Ur(e,t,n=!1){let l,s;return J(e)?l=e:(l=e.get,s=e.set),new Rr(l,s,n)}const Tn={},An=new WeakMap;let Mt;function Br(e,t=!1,n=Mt){if(n){let l=An.get(n);l||An.set(n,l=[]),l.push(e)}}function Vr(e,t,n=pe){const{immediate:l,deep:s,once:i,scheduler:u,augmentJob:d,call:v}=n,y=V=>s?V:Ge(V)||s===!1||s===0?yt(V,1):yt(V);let _,b,O,M,Z=!1,N=!1;if(Ie(e)?(b=()=>e.value,Z=Ge(e)):Ut(e)?(b=()=>y(e),Z=!0):W(e)?(N=!0,Z=e.some(V=>Ut(V)||Ge(V)),b=()=>e.map(V=>{if(Ie(V))return V.value;if(Ut(V))return y(V);if(J(V))return v?v(V,2):V()})):J(e)?t?b=v?()=>v(e,2):e:b=()=>{if(O){ct();try{O()}finally{dt()}}const V=Mt;Mt=_;try{return v?v(e,3,[M]):e(M)}finally{Mt=V}}:b=at,t&&s){const V=b,fe=s===!0?1/0:s;b=()=>yt(V(),fe)}const ve=dr(),de=()=>{_.stop(),ve&&ve.active&&Ol(ve.effects,_)};if(i&&t){const V=t;t=(...fe)=>{const Ae=V(...fe);return de(),Ae}}let H=N?new Array(e.length).fill(Tn):Tn;const ae=V=>{if(!(!(_.flags&1)||!_.dirty&&!V))if(t){const fe=_.run();if(V||s||Z||(N?fe.some((Ae,Me)=>rt(Ae,H[Me])):rt(fe,H))){O&&O();const Ae=Mt;Mt=_;try{const Me=[fe,H===Tn?void 0:N&&H[0]===Tn?[]:H,M];H=fe,v?v(t,3,Me):t(...Me)}finally{Mt=Ae}}}else _.run()};return d&&d(ae),_=new Xo(b),_.scheduler=u?()=>u(ae,!1):ae,M=V=>Br(V,!1,_),O=_.onStop=()=>{const V=An.get(_);if(V){if(v)v(V,4);else for(const fe of V)fe();An.delete(_)}},t?l?ae(!0):H=_.run():u?u(ae.bind(null,!0),!0):_.run(),de.pause=_.pause.bind(_),de.resume=_.resume.bind(_),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--,Ie(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 gn(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=gn(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=dn(s);i=dn(n)?Ue.push(e):Ue.splice(Fr(t),0,e),e.flags|=1,hs()}}function hs(){Mn||(Mn=ps.then(_s))}function Nr(e){W(e)?Wt.push(...e):Tt&&e.id===-1?Tt.splice(Ft+1,0,e):e.flags&1||(Wt.push(e),e.flags|=1),hs()}function ho(e,t,n=ot+1){for(;ndn(n)-dn(l));if(Wt.length=0,Tt){Tt.push(...t);return}for(Tt=t,Ft=0;Fte.id==null?e.flags&2?-1:1/0:e.id;function _s(e){try{for(ot=0;ot{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 A(e,t){if(Je===null)return e;const n=Zn(Je),l=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&J(t)?t.call(l&&l.proxy):t}}const Hr=Symbol.for("v-scx"),Kr=()=>On(Hr);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=Ee({},n),v=t&&l||!t&&i!=="post";let y;if(pn){if(i==="sync"){const M=Kr();y=M.__watcherHandles||(M.__watcherHandles=[])}else if(!v){const M=()=>{};return M.stop=at,M.resume=at,M.pause=at,M}}const _=Be;d.call=(M,Z,N)=>tt(M,_,Z,N);let b=!1;i==="post"?d.scheduler=M=>{Fe(M,_&&_.suspense)}:i!=="sync"&&(b=!0,d.scheduler=(M,Z)=>{Z?M():Nl(M)}),d.augmentJob=M=>{t&&(M.flags|=4),b&&(M.flags|=2,_&&(M.id=_.uid,M.i=_))};const O=Vr(e,t,d);return pn&&(y?y.push(O):v&&O()),O}function qr(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=_n(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 zr(e,t){return J(e)?Ee({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 on(e,t,n,l,s=!1){if(W(e)){e.forEach((N,ve)=>on(N,t&&(W(t)?t[ve]:t),n,l,s));return}if(sn(l)&&!s){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&on(e,t,n,l.component.subTree);return}const i=l.shapeFlag&4?Zn(l.component):l.el,u=s?null:i,{i:d,r:v}=e,y=t&&t.r,_=d.refs===pe?d.refs={}:d.refs,b=d.setupState,O=ie(b),M=b===pe?Wo:N=>go(_,N)?!1:re(O,N),Z=(N,ve)=>!(ve&&go(_,ve));if(y!=null&&y!==v){if(_o(t),we(y))_[y]=null,M(y)&&(b[y]=null);else if(Ie(y)){const N=t;Z(y,N.k)&&(y.value=null),N.k&&(_[N.k]=null)}}if(J(v)){ct();try{gn(v,d,12,[u,_])}finally{dt()}}else{const N=we(v),ve=Ie(v);if(N||ve){const de=()=>{if(e.f){const H=N?M(v)?b[v]:_[v]:Z()||!e.k?v.value:_[e.k];if(s)W(H)&&Ol(H,i);else if(W(H))H.includes(i)||H.push(i);else if(N)_[v]=[i],M(v)&&(b[v]=_[v]);else{const ae=[i];Z(v,e.k)&&(v.value=ae),e.k&&(_[e.k]=ae)}}else N?(_[v]=u,M(v)&&(b[v]=u)):ve&&(Z(v,e.k)&&(v.value=u),e.k&&(_[e.k]=u))};if(u){const H=()=>{de(),Rn.delete(e)};H.id=-1,Rn.set(e,H),Fe(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 sn=e=>!!e.type.__asyncLoader,ks=e=>e.type.__isKeepAlive;function Yr(e,t){Cs(e,"a",t)}function Qr(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)&&Xr(l,t,n,s),s=s.parent}}function Xr(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)=>{ct();const d=_n(n),v=tt(t,n,e,u);return d(),dt(),v});return l?s.unshift(i):s.push(i),i}}const kt=e=>(t,n=Be)=>{(!pn||e==="sp")&&Yn(e,(...l)=>t(...l),n)},Zr=kt("bm"),xs=kt("m"),ea=kt("bu"),ta=kt("u"),na=kt("bum"),Ss=kt("um"),la=kt("sp"),oa=kt("rtg"),sa=kt("rtc");function ia(e,t=Be){Yn("ec",e,t)}const ra=Symbol.for("v-ndc");function ge(e,t,n,l){let s;const i=n,u=W(e);if(u||we(e)){const d=u&&Ut(e);let v=!1,y=!1;d&&(v=!Ge(e),y=wt(e),e=Gn(e)),s=new Array(e.length);for(let _=0,b=e.length;_t(d,v,void 0,i));else{const d=Object.keys(e);s=new Array(d.length);for(let v=0,y=d.length;ve?qs(e)?Zn(e):Cl(e.parent):null,rn=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=>Ds(e),$forceUpdate:e=>e.f||(e.f=()=>{Nl(e.update)}),$nextTick:e=>e.n||(e.n=vs.bind(e.proxy)),$watch:e=>qr.bind(e)}),pl=(e,t)=>e!==pe&&!e.__isScriptSetup&&re(e,t),aa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:s,props:i,accessCache:u,type:d,appContext:v}=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 y=rn[t];let _,b;if(y)return t==="$attrs"&&Oe(e.attrs,"get",""),y(e);if((_=d.__cssModules)&&(_=_[t]))return _;if(n!==pe&&re(n,t))return u[t]=4,n[t];if(b=v.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 v;return!!(n[d]||e!==pe&&d[0]!=="$"&&re(e,d)||pl(t,d)||re(i,d)||re(l,d)||re(rn,d)||re(s.config.globalProperties,d)||(v=u.__cssModules)&&v[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 ua(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:v,inject:y,created:_,beforeMount:b,mounted:O,beforeUpdate:M,updated:Z,activated:N,deactivated:ve,beforeDestroy:de,beforeUnmount:H,destroyed:ae,unmounted:V,render:fe,renderTracked:Ae,renderTriggered:Me,errorCaptured:Ne,serverPrefetch:ft,expose:me,inheritAttrs:Ve,components:pt,directives:nt,filters:Ct}=t;if(y&&ca(y,l,null),u)for(const U in u){const ee=u[U];J(ee)&&(l[U]=ee.bind(n))}if(s){const U=s.call(n,n);ce(U)&&(e.data=Vl(U))}if(xl=!0,i)for(const U in i){const ee=i[U],X=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=Dt({get:X,set:je});Object.defineProperty(l,U,{enumerable:!0,configurable:!0,get:()=>Le.value,set:K=>Le.value=K})}if(d)for(const U in d)Ps(d[U],l,n,U);if(v){const U=J(v)?v.call(n):v;Reflect.ownKeys(U).forEach(ee=>{Wr(ee,U[ee])})}_&&yo(_,e,"c");function ke(U,ee){W(ee)?ee.forEach(X=>U(X.bind(n))):ee&&U(ee.bind(n))}if(ke(Zr,b),ke(xs,O),ke(ea,M),ke(ta,Z),ke(Yr,N),ke(Qr,ve),ke(ia,Ne),ke(sa,Ae),ke(oa,Me),ke(na,H),ke(Ss,V),ke(la,ft),W(me))if(me.length){const U=e.exposed||(e.exposed={});me.forEach(ee=>{Object.defineProperty(U,ee,{get:()=>n[ee],set:X=>n[ee]=X,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&&ws(e)}function ca(e,t,n=at){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),Ie(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 v;return d?v=d:!s.length&&!n&&!l?v=t:(v={},s.length&&s.forEach(y=>Un(v,y,u,!0)),Un(v,t,u)),ce(t)&&i.set(t,v),v}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=da[u]||n&&n[u];e[u]=d?d(e[u],t[u]):t[u]}return e}const da={data:bo,props:wo,emits:wo,methods:Zt,computed:Zt,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:Zt,directives:Zt,watch:pa,provide:bo,inject:fa};function bo(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 fa(e,t){return Zt(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 _a(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||pe;let s=n;const i=t.startsWith("update:"),u=i&&ga(l,t.slice(7));u&&(u.trim&&(s=n.map(_=>we(_)?_.trim():_)),u.number&&(s=n.map(Kn)));let d,v=l[d=il(t)]||l[d=il(Xe(t))];!v&&i&&(v=l[d=il(Bt(t))]),v&&tt(v,e,6,s);const y=l[d+"Once"];if(y){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,tt(y,e,6,s)}}const ma=new WeakMap;function Es(e,t,n=!1){const l=n?ma:t.emitsCache,s=l.get(e);if(s!==void 0)return s;const i=e.emits;let u={},d=!1;if(!J(e)){const v=y=>{const _=Es(y,t,!0);_&&(d=!0,Ee(u,_))};!n&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}return!i&&!d?(ce(e)&&l.set(e,null),null):(W(i)?i.forEach(v=>u[v]=null):Ee(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,Bt(t))||re(e,t))}function ko(e){const{type:t,vnode:n,proxy:l,withProxy:s,propsOptions:[i],slots:u,attrs:d,emit:v,render:y,renderCache:_,props:b,data:O,setupState:M,ctx:Z,inheritAttrs:N}=e,ve=$n(e);let de,H;try{if(n.shapeFlag&4){const V=s||l,fe=V;de=it(y.call(fe,V,_,b,M,O,Z)),H=d}else{const V=t;de=it(V.length>1?V(b,{attrs:d,slots:u,emit:v}):V(b,null)),H=t.props?d:ya(d)}}catch(V){an.length=0,zn(V,e,1),de=bt(Et)}let ae=de;if(H&&N!==!1){const V=Object.keys(H),{shapeFlag:fe}=ae;V.length&&fe&7&&(i&&V.some(jn)&&(H=ba(H,i)),ae=Jt(ae,H,!1,!0))}return n.dirs&&(ae=Jt(ae,null,!1,!0),ae.dirs=ae.dirs?ae.dirs.concat(n.dirs):n.dirs),n.transition&&jl(ae,n.transition),de=ae,$n(ve),de}const ya=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nn(n))&&((t||(t={}))[n]=e[n]);return t},ba=(e,t)=>{const n={};for(const l in e)(!jn(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function wa(e,t,n){const{props:l,children:s,component:i}=e,{props:u,children:d,patchFlag:v}=t,y=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&v>=0){if(v&1024)return!0;if(v&16)return l?Co(l,u,y):!!u;if(v&8){const _=t.dynamicProps;for(let b=0;b<_.length;b++){const O=_[b];if(Os(u,l,O)&&!Qn(y,O))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:l===u?!1:l?u?Co(l,u,y):!0:!!u;return!1}function Co(e,t,n){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let s=0;sObject.create(Is),Ms=e=>Object.getPrototypeOf(e)===Is;function Ca(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:Er(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function xa(e,t,n,l){const{props:s,attrs:i,vnode:{patchFlag:u}}=e,d=ie(s),[v]=e.propsOptions;let y=!1;if((l||u>0)&&!(u&16)){if(u&8){const _=e.vnode.dynamicProps;for(let b=0;b<_.length;b++){let O=_[b];if(Qn(e.emitsOptions,O))continue;const M=t[O];if(v)if(re(i,O))M!==i[O]&&(i[O]=M,y=!0);else{const Z=Xe(O);s[Z]=Pl(v,d,Z,M,e,!1)}else M!==i[O]&&(i[O]=M,y=!0)}}}else{$s(e,t,s,i)&&(y=!0);let _;for(const b in d)(!t||!re(t,b)&&((_=Bt(b))===b||!re(t,_)))&&(v?n&&(n[b]!==void 0||n[_]!==void 0)&&(s[b]=Pl(v,d,b,void 0,e,!0)):delete s[b]);if(i!==d)for(const b in i)(!t||!re(t,b))&&(delete i[b],y=!0)}y&&mt(e.attrs,"set","")}function $s(e,t,n,l){const[s,i]=e.propsOptions;let u=!1,d;if(t)for(let v in t){if(tn(v))continue;const y=t[v];let _;s&&re(s,_=Xe(v))?!i||!i.includes(_)?n[_]=y:(d||(d={}))[_]=y:Qn(e.emitsOptions,v)||(!(v in l)||y!==l[v])&&(l[v]=y,u=!0)}if(i){const v=ie(n),y=d||pe;for(let _=0;_{v=!0;const[O,M]=Rs(b,t,!0);Ee(u,O),M&&d.push(...M)};!n&&t.mixins.length&&t.mixins.forEach(_),e.extends&&_(e.extends),e.mixins&&e.mixins.forEach(_)}if(!i&&!v)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)],Pa=(e,t,n)=>{if(t._n)return t;const l=jr((...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]=Pa(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])},Da=(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)},Ta=(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]},Fe=Ma;function Ea(e){return Oa(e)}function Oa(e,t){const n=qn();n.__VUE__=!0;const{insert:l,remove:s,patchProp:i,createElement:u,createText:d,createComment:v,setText:y,setElementText:_,parentNode:b,nextSibling:O,setScopeId:M=at,insertStaticContent:Z}=e,N=(p,h,m,C=null,g=null,w=null,P=void 0,T=null,D=!!h.dynamicChildren)=>{if(p===h)return;p&&!Xt(p,h)&&(C=be(p),K(p,g,w,!0),p=null),h.patchFlag===-2&&(D=!1,h.dynamicChildren=null);const{type:k,ref:L,shapeFlag:I}=h;switch(k){case Xn:ve(p,h,m,C);break;case Et:de(p,h,m,C);break;case hl:p==null&&H(h,m,C,P);break;case Q:pt(p,h,m,C,g,w,P,T,D);break;default:I&1?fe(p,h,m,C,g,w,P,T,D):I&6?nt(p,h,m,C,g,w,P,T,D):(I&64||I&128)&&k.process(p,h,m,C,g,w,P,T,D,Pe)}L!=null&&g?on(L,p&&p.ref,w,h||p,!h):L==null&&p&&p.ref!=null&&on(p.ref,null,w,p,!0)},ve=(p,h,m,C)=>{if(p==null)l(h.el=d(h.children),m,C);else{const g=h.el=p.el;h.children!==p.children&&y(g,h.children)}},de=(p,h,m,C)=>{p==null?l(h.el=v(h.children||""),m,C):h.el=p.el},H=(p,h,m,C)=>{[p.el,p.anchor]=Z(p.children,h,m,C,p.el,p.anchor)},ae=({el:p,anchor:h},m,C)=>{let g;for(;p&&p!==h;)g=O(p),l(p,m,C),p=g;l(h,m,C)},V=({el:p,anchor:h})=>{let m;for(;p&&p!==h;)m=O(p),s(p),p=m;s(h)},fe=(p,h,m,C,g,w,P,T,D)=>{if(h.type==="svg"?P="svg":h.type==="math"&&(P="mathml"),p==null)Ae(h,m,C,g,w,P,T,D);else{const k=p.el&&p.el._isVueCE?p.el:null;try{k&&k._beginPatch(),ft(p,h,g,w,P,T,D)}finally{k&&k._endPatch()}}},Ae=(p,h,m,C,g,w,P,T)=>{let D,k;const{props:L,shapeFlag:I,transition:B,dirs:j}=p;if(D=p.el=u(p.type,w,L&&L.is,L),I&8?_(D,p.children):I&16&&Ne(p.children,D,null,C,g,vl(p,w),P,T),j&&Ot(p,null,C,"created"),Me(D,p,p.scopeId,P,C),L){for(const ue in L)ue!=="value"&&!tn(ue)&&i(D,ue,null,L[ue],w,C);"value"in L&&i(D,"value",null,L.value,w),(k=L.onVnodeBeforeMount)&<(k,C,p)}j&&Ot(p,null,C,"beforeMount");const Y=Ia(g,B);Y&&B.beforeEnter(D),l(D,h,m),((k=L&&L.onVnodeMounted)||Y||j)&&Fe(()=>{try{k&<(k,C,p),Y&&B.enter(D),j&&Ot(p,null,C,"mounted")}finally{}},g)},Me=(p,h,m,C,g)=>{if(m&&M(p,m),C)for(let w=0;w{for(let k=D;k{const T=h.el=p.el;let{patchFlag:D,dynamicChildren:k,dirs:L}=h;D|=p.patchFlag&16;const I=p.props||pe,B=h.props||pe;let j;if(m&&It(m,!1),(j=B.onVnodeBeforeUpdate)&<(j,m,h,p),L&&Ot(h,p,m,"beforeUpdate"),m&&It(m,!0),k&&(!p.dynamicChildren||p.dynamicChildren.length!==k.length)&&(D=0,P=!1,k=null),(I.innerHTML&&B.innerHTML==null||I.textContent&&B.textContent==null)&&_(T,""),k?me(p.dynamicChildren,k,T,m,C,vl(h,g),w):P||ee(p,h,T,null,m,C,vl(h,g),w,!1),D>0){if(D&16)Ve(T,I,B,m,g);else if(D&2&&I.class!==B.class&&i(T,"class",null,B.class,g),D&4&&i(T,"style",I.style,B.style,g),D&8){const Y=h.dynamicProps;for(let ue=0;ue{j&<(j,m,h,p),L&&Ot(h,p,m,"updated")},C)},me=(p,h,m,C,g,w,P)=>{for(let T=0;T{if(h!==m){if(h!==pe)for(const w in h)!tn(w)&&!(w in m)&&i(p,w,h[w],null,g,C);for(const w in m){if(tn(w))continue;const P=m[w],T=h[w];P!==T&&w!=="value"&&i(p,w,T,P,g,C)}"value"in m&&i(p,"value",h.value,m.value,g)}},pt=(p,h,m,C,g,w,P,T,D)=>{const k=h.el=p?p.el:d(""),L=h.anchor=p?p.anchor:d("");let{patchFlag:I,dynamicChildren:B,slotScopeIds:j}=h;j&&(T=T?T.concat(j):j),p==null?(l(k,m,C),l(L,m,C),Ne(h.children||[],m,L,g,w,P,T,D)):I>0&&I&64&&B&&p.dynamicChildren&&p.dynamicChildren.length===B.length?(me(p.dynamicChildren,B,m,g,w,P,T),(h.key!=null||g&&h===g.subTree)&&Ls(p,h,!0)):ee(p,h,m,L,g,w,P,T,D)},nt=(p,h,m,C,g,w,P,T,D)=>{h.slotScopeIds=T,p==null?h.shapeFlag&512?g.ctx.activate(h,m,C,P,D):Ct(h,m,C,g,w,P,D):xt(p,h,D)},Ct=(p,h,m,C,g,w,P)=>{const T=p.component=ja(p,C,g);if(ks(p)&&(T.ctx.renderer=Pe),Ha(T,!1,P),T.asyncDep){if(g&&g.registerDep(T,ke,P),!p.el){const D=T.subTree=bt(Et);de(null,D,h,m),p.placeholder=D.el}}else ke(T,p,h,m,g,w,P)},xt=(p,h,m)=>{const C=h.component=p.component;if(wa(p,h,m))if(C.asyncDep&&!C.asyncResolved){U(C,h,m);return}else C.next=h,C.update();else h.el=p.el,C.vnode=h},ke=(p,h,m,C,g,w,P)=>{const T=()=>{if(p.isMounted){let{next:I,bu:B,u:j,parent:Y,vnode:ue}=p;{const qe=Fs(p);if(qe){I&&(I.el=ue.el,U(p,I,P)),qe.asyncDep.then(()=>{Fe(()=>{p.isUnmounted||k()},g)});return}}let oe=I,he;It(p,!1),I?(I.el=ue.el,U(p,I,P)):I=ue,B&&En(B),(he=I.props&&I.props.onVnodeBeforeUpdate)&<(he,Y,I,ue),It(p,!0);const Se=ko(p),Ke=p.subTree;p.subTree=Se,N(Ke,Se,b(Ke.el),be(Ke),p,g,w),I.el=Se.el,oe===null&&ka(p,Se.el),j&&Fe(j,g),(he=I.props&&I.props.onVnodeUpdated)&&Fe(()=>lt(he,Y,I,ue),g)}else{let I;const{el:B,props:j}=h,{bm:Y,m:ue,parent:oe,root:he,type:Se}=p,Ke=sn(h);It(p,!1),Y&&En(Y),!Ke&&(I=j&&j.onVnodeBeforeMount)&<(I,oe,h),It(p,!0);{he.ce&&he.ce._hasShadowRoot()&&he.ce._injectChildStyle(Se,p.parent?p.parent.type:void 0);const qe=p.subTree=ko(p);N(null,qe,m,C,p,g,w),h.el=qe.el}if(ue&&Fe(ue,g),!Ke&&(I=j&&j.onVnodeMounted)){const qe=h;Fe(()=>lt(I,oe,qe),g)}(h.shapeFlag&256||oe&&sn(oe.vnode)&&oe.vnode.shapeFlag&256)&&p.a&&Fe(p.a,g),p.isMounted=!0,h=m=C=null}};p.scope.on();const D=p.effect=new Xo(T);p.scope.off();const k=p.update=D.run.bind(D),L=p.job=D.runIfDirty.bind(D);L.i=p,L.id=p.uid,D.scheduler=()=>Nl(L),It(p,!0),k()},U=(p,h,m)=>{h.component=p;const C=p.vnode.props;p.vnode=h,p.next=null,xa(p,h.props,C,m),Ta(p,h.children,m),ct(),ho(p),dt()},ee=(p,h,m,C,g,w,P,T,D=!1)=>{const k=p&&p.children,L=p?p.shapeFlag:0,I=h.children,{patchFlag:B,shapeFlag:j}=h;if(B>0){if(B&128){je(k,I,m,C,g,w,P,T,D);return}else if(B&256){X(k,I,m,C,g,w,P,T,D);return}}j&8?(L&16&&te(k,g,w),I!==k&&_(m,I)):L&16?j&16?je(k,I,m,C,g,w,P,T,D):te(k,g,w,!0):(L&8&&_(m,""),j&16&&Ne(I,m,C,g,w,P,T,D))},X=(p,h,m,C,g,w,P,T,D)=>{p=p||Nt,h=h||Nt;const k=p.length,L=h.length,I=Math.min(k,L);let B;for(B=0;BL?te(p,g,w,!0,!1,I):Ne(h,m,C,g,w,P,T,D,I)},je=(p,h,m,C,g,w,P,T,D)=>{let k=0;const L=h.length;let I=p.length-1,B=L-1;for(;k<=I&&k<=B;){const j=p[k],Y=h[k]=D?_t(h[k]):it(h[k]);if(Xt(j,Y))N(j,Y,m,null,g,w,P,T,D);else break;k++}for(;k<=I&&k<=B;){const j=p[I],Y=h[B]=D?_t(h[B]):it(h[B]);if(Xt(j,Y))N(j,Y,m,null,g,w,P,T,D);else break;I--,B--}if(k>I){if(k<=B){const j=B+1,Y=jB)for(;k<=I;)K(p[k],g,w,!0),k++;else{const j=k,Y=k,ue=new Map;for(k=Y;k<=B;k++){const $e=h[k]=D?_t(h[k]):it(h[k]);$e.key!=null&&ue.set($e.key,k)}let oe,he=0;const Se=B-Y+1;let Ke=!1,qe=0;const vt=new Array(Se);for(k=0;k=Se){K($e,g,w,!0);continue}let ye;if($e.key!=null)ye=ue.get($e.key);else for(oe=Y;oe<=B;oe++)if(vt[oe-Y]===0&&Xt($e,h[oe])){ye=oe;break}ye===void 0?K($e,g,w,!0):(vt[ye-Y]=k+1,ye>=qe?qe=ye:Ke=!0,N($e,h[ye],m,null,g,w,P,T,D),he++)}const zt=Ke?Aa(vt):Nt;for(oe=zt.length-1,k=Se-1;k>=0;k--){const $e=Y+k,ye=h[$e],$=h[$e+1],mn=$e+1{const{el:w,type:P,transition:T,children:D,shapeFlag:k}=p;if(k&6){Le(p.component.subTree,h,m,C);return}if(k&128){p.suspense.move(h,m,C);return}if(k&64){P.move(p,h,m,Pe);return}if(P===Q){l(w,h,m);for(let I=0;IT.enter(w),g));else{const{leave:I,delayLeave:B,afterLeave:j}=T,Y=()=>{p.ctx.isUnmounted?s(w):l(w,h,m)},ue=()=>{const oe=w._isLeaving||!!w[fl];w._isLeaving&&w[fl](!0),T.persisted&&!oe?Y():I(w,()=>{Y(),j&&j()})};B?B(w,Y,ue):ue()}else l(w,h,m)},K=(p,h,m,C=!1,g=!1)=>{const{type:w,props:P,ref:T,children:D,dynamicChildren:k,shapeFlag:L,patchFlag:I,dirs:B,cacheIndex:j,memo:Y}=p;if(I===-2&&(g=!1),T!=null&&(ct(),on(T,null,m,p,!0),dt()),j!=null&&(h.renderCache[j]=void 0),L&256){h.ctx.deactivate(p);return}const ue=L&1&&B,oe=!sn(p);let he;if(oe&&(he=P&&P.onVnodeBeforeUnmount)&<(he,h,p),L&6)Ye(p.component,m,C);else{if(L&128){p.suspense.unmount(m,C);return}ue&&Ot(p,null,h,"beforeUnmount"),L&64?p.type.remove(p,h,m,Pe,C):k&&!k.hasOnce&&(w!==Q||I>0&&I&64)?te(k,h,m,!1,!0):(w===Q&&I&384||!g&&L&16)&&te(D,h,m),C&&He(p)}const Se=Y!=null&&j==null;(oe&&(he=P&&P.onVnodeUnmounted)||ue||Se)&&Fe(()=>{he&<(he,h,p),ue&&Ot(p,null,h,"unmounted"),Se&&(p.el=null)},m)},He=p=>{const{type:h,el:m,anchor:C,transition:g}=p;if(h===Q){ze(m,C);return}if(h===hl){V(p);return}const w=()=>{s(m),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(p.shapeFlag&1&&g&&!g.persisted){const{leave:P,delayLeave:T}=g,D=()=>P(m,w);T?T(p.el,w,D):D()}else w()},ze=(p,h)=>{let m;for(;p!==h;)m=O(p),s(p),p=m;s(h)},Ye=(p,h,m)=>{const{bum:C,scope:g,job:w,subTree:P,um:T,m:D,a:k}=p;So(D),So(k),C&&En(C),g.stop(),w&&(w.flags|=8,K(P,p,h,m)),T&&Fe(T,h),Fe(()=>{p.isUnmounted=!0},h)},te=(p,h,m,C=!1,g=!1,w=0)=>{for(let P=w;P{if(p.shapeFlag&6)return be(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const h=O(p.anchor||p.el),m=h&&h[Jr];return m?O(m):h};let xe=!1;const Ce=(p,h,m)=>{let C;p==null?h._vnode&&(K(h._vnode,null,null,!0),C=h._vnode.component):N(h._vnode||null,p,h,null,null,null,m),h._vnode=p,xe||(xe=!0,ho(C),gs(),xe=!1)},Pe={p:N,um:K,m:Le,r:He,mt:Ct,mc:Ne,pc:ee,pbc:me,n:be,o:e};return{render:Ce,hydrate:void 0,createApp:ha(Ce)}}function vl({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 Ia(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 Ma(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Nr(e)}const Q=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),hl=Symbol.for("v-stc"),an=[];let We=null;function x(e=!1){an.push(We=e?null:[])}function $a(){an.pop(),We=an[an.length-1]||null}let fn=1;function Po(e,t=!1){fn+=e,e<0&&We&&t&&(We.hasOnce=!0)}function Ws(e){return e.dynamicChildren=fn>0?We||Nt:null,$a(),fn>0&&We&&We.push(e),e}function S(e,t,n,l,s,i){return Ws(o(e,t,n,l,s,i,!0))}function Ra(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 Xt(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)||Ie(e)||J(e)?{i:Je,r:e,k:t,f:!!n}:e:null);function o(e,t=null,n=null,l=0,s=null,i=e===Q?0:1,u=!1,d=!1){const v={__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:Je};return d?(Bn(v,n),i&128&&e.normalize(v)):n&&(v.shapeFlag|=we(n)?8:16),fn>0&&!u&&We&&(v.patchFlag>0||i&6)&&v.patchFlag!==32&&We.push(v),v}const bt=Ua;function Ua(e,t=null,n=null,l=0,s=null,i=!1){if((!e||e===ra)&&(e=Et),Hs(e)){const d=Jt(e,t,!0);return n&&Bn(d,n),fn>0&&!i&&We&&(d.shapeFlag&6?We[We.indexOf(e)]=d:We.push(d)),d.patchFlag=-2,d}if(Ga(e)&&(e=e.__vccOpts),t){t=Ba(t);let{class:d,style:v}=t;d&&!we(d)&&(t.class=Jn(d)),ce(v)&&(Fl(v)&&!W(v)&&(v=Ee({},v)),t.style=Al(v))}const u=we(e)?1:js(e)?128:Gr(e)?64:ce(e)?4:J(e)?2:0;return o(e,t,n,l,s,u,i,!0)}function Ba(e){return e?Fl(e)||Ms(e)?Ee({},e):e:null}function Jt(e,t,n=!1,l=!1){const{props:s,ref:i,patchFlag:u,children:d,transition:v}=e,y=t?La(s||{},t):s,_={__v_isVNode:!0,__v_skip:!0,type:e.type,props:y,key:y&&Ks(y),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!==Q?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:v,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 v&&l&&jl(_,v.clone(_)),_}function Va(e=" ",t=0){return bt(Xn,null,e,t)}function G(e="",t=!1){return t?(x(),Ra(Et,null,e)):bt(Et,null,e)}function it(e){return e==null||typeof e=="boolean"?bt(Et):W(e)?bt(Q,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:Jt(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=Je:s===3&&Je&&(Je.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:Je},n=32}else t=String(t),l&64?(n=16,t=[Va(t)]):n=8;e.children=t,e.shapeFlag|=n}function La(...e){const t={};for(let n=0;nBe||Je;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=>pn=n)}const _n=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 pn=!1;function Ha(e,t=!1,n=!1){t&&Dl(t);const{props:l,children:s}=e.vnode,i=qs(e);Ca(e,l,i,t),Da(e,s,n||t);const u=i?Ka(e,t):void 0;return t&&Dl(!1),u}function Ka(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,aa);const{setup:l}=n;if(l){ct();const s=e.setupContext=l.length>1?Ja(e):null,i=_n(e),u=gn(l,e,0,[e.props,s]),d=Ho(u);if(dt(),i(),(d||e.sp)&&!sn(e)&&ws(e),d){if(u.then(Do,Do),t)return u.then(v=>{To(e,v)}).catch(v=>{zn(v,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||at);{const s=_n(e);ct();try{ua(e)}finally{dt(),s()}}}const qa={get(e,t){return Oe(e,"get",""),e[t]}};function Ja(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,qa),slots:e.slots,emit:e.emit,expose:t}}function Zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(fs(Or(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in rn)return rn[n](e)},has(t,n){return n in t||n in rn}})):e.proxy}function Ga(e){return J(e)&&"__vccOpts"in e}const Dt=(e,t)=>Ur(e,t,pn),za="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,Ya="http://www.w3.org/2000/svg",Qa="http://www.w3.org/1998/Math/MathML",gt=typeof document<"u"?document:null,Oo=gt&>.createElement("template"),Xa={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(Ya,e):t==="mathml"?gt.createElementNS(Qa,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 v=d.firstChild;for(;v.firstChild;)d.appendChild(v.firstChild);d.removeChild(v)}t.insertBefore(d,n)}return[u?u.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Za=Symbol("_vtc");function eu(e,t,n){const l=e[Za];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Io=Symbol("_vod"),tu=Symbol("_vsh"),nu=Symbol(""),lu=/(?:^|;)\s*display\s*:/;function ou(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&&en(l,d,"")}else for(const u in t)n[u]==null&&en(l,u,"");for(const u in n){u==="display"&&(i=!0);const d=n[u];d!=null?iu(e,u,!we(t)&&t?t[u]:void 0,d)||en(l,u,d):en(l,u,"")}}else if(s){if(t!==n){const u=l[nu];u&&(n+=";"+u),l.cssText=n,i=lu.test(n)}}else t&&e.removeAttribute("style");Io in e&&(e[Io]=i?l.display:"",e[tu]&&(l.display="none"))}const Ao=/\s*!important$/;function en(e,t,n){if(W(n))n.forEach(l=>en(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=su(e,t);Ao.test(n)?e.setProperty(Bt(l),n.replace(Ao,""),"important"):e[l]=n}}const Mo=["Webkit","Moz","ms"],gl={};function su(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||(fu.then(()=>_l=0),_l=Date.now());function vu(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 v=0;ve.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hu=(e,t,n,l,s,i)=>{const u=s==="svg";t==="class"?eu(e,l,u):t==="style"?ou(e,n,l):Nn(t)?jn(t)||au(e,t,n,l,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):gu(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&&(_u(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 gu(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 _u(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 mu(e){e.target.composing=!0}function Lo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Kt=Symbol("_assign");function Fo(e,t,n){return t&&(e=e.trim()),n&&(e=Kn(e)),e}const R={created(e,{modifiers:{lazy:t,trim:n,number:l}},s){e[Kt]=Ln(s);const i=l||s.props&&s.props.type==="number";$t(e,t?"change":"input",u=>{u.target.composing||e[Kt](Fo(e.value,n,i))}),(n||i)&&$t(e,"change",()=>{e.value=Fo(e.value,n,i)}),t||($t(e,"compositionstart",mu),$t(e,"compositionend",Lo),$t(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[Kt]=Ln(u),e.composing)return;const d=(i||e.type==="number")&&!/^0\d/.test(e.value)?Kn(e.value):e.value,v=t??"";if(d===v)return;const y=e.getRootNode();(y instanceof Document||y instanceof ShadowRoot)&&y.activeElement===e&&e.type!=="range"&&(l&&t===n||s&&e.value.trim()===v)||(e.value=v)}},At={deep:!0,created(e,{value:t,modifiers:{number:n}},l){const s=Wn(t);$t(e,"change",()=>{const i=Array.prototype.filter.call(e.options,u=>u.selected).map(u=>n?Kn(Fn(u)):Fn(u));e[Kt](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,vs(()=>{e._assigning=!1})}),e[Kt]=Ln(l)},mounted(e,{value:t}){No(e,t)},beforeUpdate(e,t,n){e[Kt]=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(y)===String(d)):u.selected=ur(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 yu=Ee({patchProp:hu},Xa);let jo;function bu(){return jo||(jo=Ea(yu))}const wu=((...e)=>{const t=bu().createApp(...e),{mount:n}=t;return t.mount=l=>{const s=Cu(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,ku(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),u},t});function ku(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Cu(e){return we(e)?document.querySelector(e):e}const xu="/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 Su 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 le(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(Pu(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 Su(l.error_code,l.message,l.details);return l.data}function Pu(e,t){const n=e.replace(/^\/+/,""),l=new URL(`${xu}/${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 Du={class:"web-shell"},Tu={class:"sidebar"},Eu={class:"brand"},Ou=["onClick"],Iu={class:"workspace"},Au={class:"topbar"},Mu={class:"actions"},$u=["disabled"],Ru={key:0,class:"notice error"},Uu={key:1,class:"notice"},Bu={key:0,class:"dashboard-grid"},Vu={key:1,class:"list-view"},Lu={class:"form-grid"},Fu={class:"wide-field"},Nu=["disabled"],ju=["disabled"],Wu={key:0},Hu={key:1,class:"form-grid"},Ku={class:"wide-field"},qu={class:"wide-field"},Ju={class:"wide-field"},Gu={class:"wide-field"},zu={class:"wide-field"},Yu=["disabled"],Qu=["disabled"],Xu={class:"inline-actions"},Zu={class:"badge"},ec=["disabled","onClick"],tc=["disabled","onClick"],nc={key:0,class:"empty"},lc={key:2,class:"split-view"},oc={class:"list-view"},sc={class:"form-grid"},ic=["disabled"],rc={class:"inline-actions"},ac={class:"badge"},uc=["disabled","onClick"],cc=["disabled","onClick"],dc=["disabled","onClick"],fc=["disabled","onClick"],pc={key:0,class:"empty"},vc={key:0,class:"editor-panel"},hc={class:"form-grid"},gc=["disabled"],_c=["disabled","onClick"],mc={class:"list-view"},yc={class:"inline-actions"},bc=["disabled"],wc={class:"form-grid"},kc={class:"wide-field"},Cc={class:"wide-field"},xc={class:"wide-field"},Sc=["disabled"],Pc=["disabled"],Dc={class:"form-grid"},Tc={class:"wide-field"},Ec=["disabled"],Oc=["disabled"],Ic={class:"inline-actions"},Ac={class:"badge"},Mc=["disabled","onClick"],$c=["disabled","onClick"],Rc=["disabled","onClick"],Uc=["disabled","onClick"],Bc={key:0,class:"empty"},Vc={class:"inline-actions"},Lc={key:0,class:"badge"},Fc=["disabled","onClick"],Nc=["disabled","onClick"],jc=["disabled","onClick"],Wc=["disabled","onClick"],Hc=["disabled","onClick"],Kc=["disabled","onClick"],qc={key:0,class:"empty"},Jc={key:0},Gc={key:1},zc={class:"editor-panel"},Yc={key:0,class:"empty"},Qc={key:2,class:"editor-panel"},Xc={key:3},Zc={key:3,class:"split-view"},ed={class:"list-view"},td={class:"form-grid"},nd=["disabled"],ld=["disabled"],od={class:"inline-actions"},sd=["disabled","onClick"],id=["disabled","onClick"],rd={key:0,class:"empty"},ad={class:"list-view"},ud={class:"inline-actions"},cd=["disabled"],dd={class:"form-grid"},fd={value:""},pd=["value"],vd=["disabled"],hd=["disabled"],gd={class:"inline-actions"},_d={class:"badge"},md=["disabled","onClick"],yd=["disabled","onClick"],bd=["disabled","onClick"],wd=["disabled","onClick"],kd={key:0,class:"empty"},Cd={class:"form-grid"},xd={value:""},Sd=["value"],Pd=["disabled"],Dd=["disabled"],Td={key:0},Ed={key:4,class:"list-view"},Od=["disabled"],Id={class:"form-grid"},Ad={value:""},Md=["value"],$d=["disabled"],Rd={class:"inline-actions"},Ud=["disabled","onClick"],Bd={key:0,class:"empty"},Vd={key:0},Ld={class:"form-grid"},Fd=["disabled"],Nd={key:1},jd={key:5,class:"list-view"},Wd={class:"inline-actions"},Hd=["disabled"],Kd=["disabled"],qd={class:"form-grid"},Jd={value:""},Gd=["value"],zd={value:""},Yd=["value"],Qd={value:""},Xd=["value"],Zd=["disabled"],ef={class:"inline-actions"},tf={class:"badge"},nf=["onClick"],lf=["onClick"],of=["disabled","onClick"],sf={key:0,class:"empty"},rf={key:0,class:"editor-panel"},af={key:6,class:"split-view"},uf={class:"list-view"},cf={class:"inline-actions"},df=["disabled"],ff=["disabled"],pf={class:"form-grid"},vf=["disabled"],hf={key:0},gf={class:"list-view"},_f={class:"inline-actions"},mf={class:"badge"},yf=["disabled","onClick"],bf=["disabled","onClick"],wf=["disabled","onClick"],kf={key:0,class:"empty"},Cf={key:7,class:"logs-view"},xf={class:"split-view"},Sf={class:"list-view"},Pf={key:0,class:"empty"},Df={class:"list-view"},Tf={class:"badge"},Ef={key:0,class:"empty"},Of={class:"split-view"},If={class:"list-view"},Af={key:0,class:"empty"},Mf={class:"list-view"},$f={class:"badge"},Rf={key:0,class:"empty"},Uf={class:"list-view"},Bf={class:"form-grid"},Vf=["disabled"],Lf={key:0,class:"empty"},Ff={key:8,class:"settings-view"},Nf={class:"toolbar"},jf=["disabled"],Wf=["disabled"],Hf=["disabled"],Kf=["disabled"],qf=["disabled"],Jf=["disabled"],Gf=["disabled"],zf={class:"settings-sections"},Yf={class:"editor-panel"},Qf={class:"editor-panel"},Xf=["disabled"],Zf={class:"editor-panel"},ep=["disabled","onClick"],tp={class:"split-view"},np={class:"list-view"},lp={class:"list-view"},op={class:"inspector"},sp=zr({__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:"审计",targetType:"TargetType",actor:"操作人",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"),s=F(null),i=F(null),u=F(null),d=F([]),v=F(null),y=F([]),_=F([]),b=F(null),O=F(""),M=F([]),Z=F(null),N=F(null),ve=F(null),de=F(null),H=F(null),ae=F(null),V=F([]),fe=F(null),Ae=F([]),Me=F([]),Ne=F([]),ft=F(null),me=F({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Ve=F(null),pt=F(""),nt=F(""),Ct=F([]),xt=F(null),ke=F(null),U=F({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),ee=F(null),X=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:""}),He=F({model_route:"",prompt:"",negative_prompt:""}),ze=F({status:"",profile_id:"",workflow_id:""}),Ye=F({action:"",target_type:"",actor_id:""}),te=F({material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}),be=F({display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}),xe=F({category_id:"",name:"",category_type:"material",sort_order:0}),Ce=F({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),Pe=F({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),Gt=F(null),p=F({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),h=F(null),m=F(""),C=F(!0),g=F(""),w=F(""),P=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}),k=Dt(()=>{var f;return((f=fe.value)==null?void 0:f.items.filter(c=>c.recognition_status!=="confirmed").length)??0}),L=Dt(()=>{var f;return(((f=fe.value)==null?void 0:f.items)??[]).filter(c=>c.recognition_status==="confirmed")}),I=Dt(()=>{var f;return((f=v.value)==null?void 0:f.nodes.find(c=>c.node_id===O.value))??null}),B=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],j=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(Y);async function Y(){var f,c;C.value=!0,w.value="";try{const[q,se,De,Pt,bn,Yt,wn,kn,Cn,xn,Sn]=await Promise.all([le(E.uiBootstrap),le(E.dashboardSummary),le(E.profiles,{page:1,page_size:20}),le(E.jobs,{page:1,page_size:20}),le(E.settingsSchema),le(E.settingsCurrent),le(E.storageStatus),le(E.materialCategories),le(E.materials,{page:1,page_size:24}),le(E.apiDiscoveryDialects),le(E.apiDiscoveryCapabilities)]);s.value=q,i.value=se,u.value=De,N.value=Pt,de.value=bn,H.value=Yt,Vt(Yt.config),ae.value=wn,V.value=kn,fe.value=Cn,Me.value=xn,Ne.value=Sn,await Ke((f=De.items[0])==null?void 0:f.profile_id),await qe((c=De.items[0])==null?void 0:c.profile_id),await ue()}catch(q){w.value=q instanceof Error?q.message:t.loadFailed}finally{C.value=!1}}async function ue(){const[f,c,q,se,De]=await Promise.allSettled([le(E.generationLogs,{limit:12}),le(E.workflowLogs,{limit:12}),le(E.errorLogs,{limit:12}),le(E.integrationLogs,{limit:12}),le(E.auditLogs,{limit:12})]);me.value={generation:he(f),workflows:he(c),errors:he(q),integrations:he(se),audit:he(De)}}async function oe(){me.value.audit=await le(E.auditLogs,{action:Ye.value.action||void 0,target_type:Ye.value.target_type||void 0,actor_id:Ye.value.actor_id||void 0,limit:20})}function he(f){return f.status==="fulfilled"?f.value:[]}async function Se(){N.value=await le(E.jobs,{status:ze.value.status||void 0,profile_id:ze.value.profile_id||void 0,workflow_id:ze.value.workflow_id||void 0,page:1,page_size:20})}async function Ke(f){if(!f){Ae.value=[];return}Ae.value=await le(E.wardrobe(f))}async function qe(f){var se,De;if(!f){d.value=[],v.value=null,y.value=[],_.value=[],O.value="",M.value=[];return}d.value=await le(E.profileWorkflows(f));const c=(se=v.value)==null?void 0:se.workflow.workflow_id,q=d.value.some(Pt=>Pt.workflow_id===c)?c:(De=d.value[0])==null?void 0:De.workflow_id;q?await vt(q):v.value=null}async function vt(f){var De;const c=await le(E.workflow(f));v.value=c;const q=O.value,se=c.nodes.some(Pt=>Pt.node_id===q)?q:c.workflow.current_node_id||((De=c.nodes[0])==null?void 0:De.node_id);se?await zt(se):(O.value="",M.value=[]),await $e(f)}async function zt(f){O.value=f,M.value=await le(E.nodeImages(f))}async function $e(f){const[c,q]=await Promise.all([le(E.workflowBranches(f)),le(E.workflowHistory(f))]);y.value=c,_.value=q}async function ye(){var c;const f=(c=v.value)==null?void 0:c.workflow.workflow_id;f&&await vt(f)}async function $(f,c,q=!0){g.value=f,w.value="";try{const se=await c();m.value=`${f}${t.complete}`,f===t.exportSettings&&(m.value=`${t.exportDone}: ${!!se.redacted}`),q&&await Y()}catch(se){w.value=se instanceof Error?se.message:`${f}${t.failed}`}finally{g.value=""}}function mn(f){return $(t.retry,()=>z(E.jobRetry(f)))}function zs(f){return $(t.cancel,()=>z(E.jobCancel(f)))}function Ys(f){return $(t.detail,async()=>(ve.value=await le(E.job(f)),ve.value),!1)}function Qs(){U.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},ee.value=null}function Xs(){return $(t.quickDraft,async()=>(ee.value=await z(E.quickProfileDraft,{questionnaire:{name:U.value.name,identity:U.value.identity,personality:St(U.value.personality),hair_color:U.value.hair_color,hairstyle:U.value.hairstyle,eye_color:U.value.eye_color,style:U.value.style,clothing_keywords:St(U.value.clothing_keywords)}}),ee.value),!1)}function Zs(){var c;const f=(c=ee.value)==null?void 0:c.profile_preview;return $(t.create,async()=>{const q=await z(E.profiles,{name:(f==null?void 0:f.name)||U.value.name,description:U.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 Qs(),m.value=t.profileCreated,q})}function ei(f){return $(t.delete,async()=>{const c=await Qe(E.profile(f),{method:"DELETE"});return m.value=t.profileDeleted,c})}function Kl(){X.value={profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}}function ti(f){X.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 ni(){return X.value.profile_id?$(t.update,async()=>{const f=await Qe(E.profile(X.value.profile_id),{method:"PUT",body:{name:X.value.name,description:X.value.description||void 0,base_prompt:X.value.base_prompt||void 0,appearance_prompt:X.value.appearance_prompt||void 0,style_prompt:X.value.style_prompt||void 0,negative_prompt:X.value.negative_prompt||void 0,default_model_route:X.value.default_model_route||void 0}});return Kl(),m.value=t.profileUpdated,f}):Promise.resolve()}function li(){const f=P.value;return f?$(t.create,async()=>{const c=await z(E.profileWorkflows(f),{display_name:je.value.display_name,workflow_type:je.value.workflow_type});return je.value.display_name="",v.value=c,m.value=t.workflowCreated,c}):Promise.resolve()}function oi(f){return $(t.start,()=>z(E.workflowStart(f)))}function si(f){return $(t.cancel,()=>z(E.workflowCancel(f)))}function ii(f){return $(t.archive,()=>z(E.workflowArchive(f)))}function ri(){var c;const f=(c=v.value)==null?void 0:c.workflow;return!f||!Le.value.branch_name?Promise.resolve():$(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 ye(),m.value=t.branchCreated,q},!1)}function ai(f){var q;const c=(q=v.value)==null?void 0:q.workflow.workflow_id;return c?$(t.switchBranch,async()=>{const se=await z(E.workflowSwitchBranch(c),{branch_name:f});return await ye(),se},!1):Promise.resolve()}function el(){K.value={node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}}function ui(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 ci(){var q;const f=(q=v.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?$(t.update,async()=>{const se=await Qe(E.node(K.value.node_id),{method:"PUT",body:c});return el(),await ye(),m.value=t.nodeUpdated,se},!1):$(t.create,async()=>{const se=await z(E.workflowNodes(f),c);return el(),await ye(),m.value=t.nodeCreated,se},!1)}function di(){var c;const f=(c=v.value)==null?void 0:c.workflow.workflow_id;return f?$(t.review,async()=>(b.value=await le(E.workflowReview(f)),b.value),!1):Promise.resolve()}function fi(){const f=O.value;return f?$(t.review,async()=>(b.value=await le(E.nodeReview(f)),b.value),!1):Promise.resolve()}function pi(){const f=O.value;return f?$(t.generate,async()=>(Z.value=await z(E.nodeGenerate(f),{model_route:He.value.model_route||void 0,prompt:He.value.prompt||void 0,negative_prompt:He.value.negative_prompt||void 0}),await ye(),m.value=t.generationQueued,Z.value),!1):Promise.resolve()}function vi(f){return $(t.retry,async()=>{const c=await z(E.nodeRetry(f));return await ye(),m.value=t.nodeQueued,c},!1)}function hi(f){return $(t.complete,async()=>{const c=await z(E.nodeComplete(f));return await ye(),m.value=t.nodeCompleted,c},!1)}function gi(f){const c=O.value;return c?$(t.select,async()=>{const q=await z(E.nodeSelectImage(c),{image_id:f});return await ye(),q},!1):Promise.resolve()}function _i(f){const c=O.value;return c?$(t.adopt,async()=>{var se;const q=await z(E.nodeAdoptImage(c),{image_id:f,title:(se=I.value)==null?void 0:se.title});return await ye(),q},!1):Promise.resolve()}function mi(f){return $(t.unselect,async()=>{const c=await z(E.imageUnselect(f));return await ye(),c},!1)}function yi(f){return $(t.archive,async()=>{const c=await z(E.imageArchive(f));return await ye(),m.value=t.imageArchived,c},!1)}function bi(f){return $(t.delete,async()=>{const c=await Qe(E.image(f),{method:"DELETE"});return await ye(),m.value=t.imageDeleted,c},!1)}function wi(){return $(t.moveFailed,()=>z(E.jobDeadLetterMoveFailed,{limit:20}))}function ki(){return $(t.retryDead,()=>z(E.jobDeadLetterRetry,{limit:20}))}function Ci(){var c;const f=((c=Me.value[0])==null?void 0:c.dialect)??"unknown";return $(t.safeProbe,()=>z(E.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:f,capabilities:{supports:["text_to_image"]}}))}function xi(){var c;const f=((c=Me.value[0])==null?void 0:c.dialect)??"unknown";return $(t.probeProvider,()=>z(E.apiDiscoveryProbeProvider,{provider_id:p.value.provider_id||"local-preview",model_id:p.value.model_id||"metadata-only",dialect:f,capabilities:{supports:St(p.value.required_capabilities)}}))}function Si(){return $(t.validatePlan,async()=>(h.value=await z(E.apiDiscoveryValidateRenderPlan,{provider_id:p.value.provider_id,model_id:p.value.model_id,required_capabilities:St(p.value.required_capabilities)}),h.value),!1)}function tl(f,c){return $(t.discovery,()=>z(E.apiDiscoveryManualOverride,{provider_id:f.provider_id,model_id:f.model_id,dialect:f.dialect,status:c,capabilities:f.capabilities}))}function Pi(){const f=P.value;return f?$(t.matchWardrobe,async()=>(ft.value=await z(E.wardrobeMatch(f),{tags:["daily"]}),ft.value),!1):Promise.resolve()}function Di(){Ce.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function Ti(){const f=P.value;return f?$(t.importToWardrobe,async()=>{const c=await z(E.wardrobeImportMaterial(f),{material_id:Ce.value.material_id,wardrobe_category:Ce.value.wardrobe_category,tags:St(Ce.value.tags),season:Ce.value.season||void 0,style:Ce.value.style||void 0});return Di(),m.value=t.wardrobeImported,c}):Promise.resolve()}function Ei(f){const c=P.value;return c?$(t.delete,async()=>{const q=await Qe(E.wardrobeItem(c,f),{method:"DELETE"});return m.value=t.wardrobeDeleted,q}):Promise.resolve()}function Oi(){const f=P.value;return f?$(t.dailyOutfit,async()=>(Gt.value=await z(E.privateCompanionDailyOutfit,{profile_id:f,categories:St(Pe.value.categories),mood:Pe.value.mood,weather:Pe.value.weather,keywords:St(Pe.value.keywords),request_source:"astrbot_plugin_private_companion"}),m.value=t.outfitGenerated,Gt.value),!1):Promise.resolve()}function Ii(){return $(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},Vt(f.config),f},!1)}function Ai(){return $(t.exportSettings,()=>le(E.settingsExport),!1)}function Vt(f=(c=>(c=H.value)==null?void 0:c.config)()??{}){pt.value=JSON.stringify(f,null,2),xt.value=null,ke.value=null}function nl(){try{const f=JSON.parse(pt.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 Mi(){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 $i(){return $(t.validate,async()=>(xt.value=await z(E.settingsValidate,{config:nl()}),xt.value),!1)}function Ri(){return $(t.diff,async()=>(ke.value=await z(E.settingsDiff,{config:nl()}),ke.value),!1)}function Ui(){return $(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},Vt(f.config),m.value=t.settingsSaved,f},!1)}function Bi(){return $(t.importSettings,async()=>{var c;const f=await z(E.settingsImport,{config:Mi()});return H.value={config_path:((c=H.value)==null?void 0:c.config_path)??"***PATH***",config:f.config},Vt(f.config),nt.value="",m.value=t.importDone,f},!1)}function ql(){return $(t.loadSnapshots,async()=>(Ct.value=await le(E.settingsSnapshots,{limit:20}),Ct.value),!1)}function Vi(f){return $(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},Vt(c.config),await ql(),m.value=t.rollbackDone,c},!1)}function Li(){var c,q;const f=(q=(c=fe.value)==null?void 0:c.items.find(se=>{var De;return(De=se.image_uri)==null?void 0:De.startsWith("storage://")}))==null?void 0:q.image_uri;return f?$(t.signMaterial,async()=>(Ve.value=await le(E.mediaSign,{uri:f}),Ve.value),!1):(m.value=t.noSignableMaterial,Promise.resolve())}function Fi(f){return f!=null&&f.startsWith("storage://")?$(t.signMaterial,async()=>(Ve.value=await le(E.mediaSign,{uri:f}),Ve.value),!1):(m.value=t.noSignableMaterial,Promise.resolve())}function yn(){xe.value={category_id:"",name:"",category_type:"material",sort_order:0}}function Ni(f){xe.value={category_id:f.category_id,name:f.name,category_type:f.category_type,sort_order:f.sort_order}}function ji(){const f={name:xe.value.name,category_type:xe.value.category_type,sort_order:Number(xe.value.sort_order)||0};return xe.value.category_id?$(t.update,async()=>{const c=await Qe(E.materialCategory(xe.value.category_id),{method:"PUT",body:f});return yn(),m.value=t.categoryUpdated,c}):$(t.create,async()=>{const c=await z(E.materialCategories,f);return yn(),m.value=t.categoryCreated,c})}function Wi(f){return $(t.delete,async()=>{const c=await Qe(E.materialCategory(f),{method:"DELETE"});return xe.value.category_id===f&&yn(),m.value=t.categoryDeleted,c})}function ll(){te.value={material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}}function Hi(){const f={display_name:te.value.display_name,image_uri:te.value.image_uri||void 0,thumbnail_uri:te.value.image_uri||void 0,category_id:te.value.category_id||void 0,tags:St(te.value.tags),prompt:te.value.prompt||void 0,negative_prompt:te.value.negative_prompt||void 0,recognition_status:te.value.image_uri?"pending_recognition":"pending_upload"};return te.value.material_id?$(t.update,async()=>{const c=await Qe(E.material(te.value.material_id),{method:"PUT",body:f});return ll(),m.value=t.materialUpdated,c}):$(t.create,async()=>{const c=await z(E.materials,f);return ll(),m.value=t.materialCreated,c})}function Ki(f){te.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(){be.value={display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}}function qi(){return $(t.upload,async()=>{const f=await z(E.materialUpload,{display_name:be.value.display_name||void 0,filename:be.value.filename||void 0,content_type:be.value.content_type||void 0,image_uri:be.value.image_uri,category_id:be.value.category_id||void 0});return Jl(),m.value=t.materialUploaded,f})}function Ji(f){return $(t.recognize,()=>z(E.materialRecognize(f)))}function Gi(f){return $(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 zi(f){return $(t.archive,async()=>{const c=await Qe(E.material(f),{method:"DELETE"});return m.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(se=>se.uri_prefix===f))==null?void 0:q.bytes)??0}return(f,c)=>{var q,se,De,Pt,bn,Yt,wn,kn,Cn,xn,Sn,zl,Yl,Ql,Xl,Zl,eo,to,no,lo,oo,so,io,ro,ao,uo;return x(),S("main",Du,[o("aside",Tu,[o("div",Eu,[o("strong",null,a(((q=s.value)==null?void 0:q.display_name)??"ImageStudio"),1),o("span",null,a(((se=s.value)==null?void 0:se.dashboard_user)??"AstrBot"),1)]),o("nav",null,[(x(),S(Q,null,ge(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,Ou)),64))])]),o("section",Iu,[o("header",Au,[o("div",null,[o("h1",null,a(j.value),1),o("p",null,a(((De=i.value)==null?void 0:De.plugin_status)??"loading")+" / "+a(m.value||t.waiting),1)]),o("div",Mu,[o("button",{type:"button",disabled:!!g.value,onClick:Y},a(g.value||t.refresh),9,$u)])]),w.value?(x(),S("section",Ru,a(w.value),1)):C.value?(x(),S("section",Uu,a(t.loading),1)):(x(),S(Q,{key:2},[l.value==="dashboard"?(x(),S("section",Bu,[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(((Yt=ae.value)==null?void 0:Yt.total_bytes)??((wn=i.value)==null?void 0:wn.storage.total_bytes))),1)])])):G("",!0),l.value==="profiles"?(x(),S("section",Vu,[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",Lu,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[0]||(c[0]=r=>U.value.name=r),type:"text"},null,512),[[R,U.value.name]])]),o("label",null,[o("span",null,a(t.identity),1),A(o("input",{"onUpdate:modelValue":c[1]||(c[1]=r=>U.value.identity=r),type:"text"},null,512),[[R,U.value.identity]])]),o("label",null,[o("span",null,a(t.personality),1),A(o("input",{"onUpdate:modelValue":c[2]||(c[2]=r=>U.value.personality=r),type:"text",placeholder:"calm, brave"},null,512),[[R,U.value.personality]])]),o("label",null,[o("span",null,a(t.hairColor),1),A(o("input",{"onUpdate:modelValue":c[3]||(c[3]=r=>U.value.hair_color=r),type:"text"},null,512),[[R,U.value.hair_color]])]),o("label",null,[o("span",null,a(t.hairstyle),1),A(o("input",{"onUpdate:modelValue":c[4]||(c[4]=r=>U.value.hairstyle=r),type:"text"},null,512),[[R,U.value.hairstyle]])]),o("label",null,[o("span",null,a(t.eyeColor),1),A(o("input",{"onUpdate:modelValue":c[5]||(c[5]=r=>U.value.eye_color=r),type:"text"},null,512),[[R,U.value.eye_color]])]),o("label",null,[o("span",null,a(t.stylePrompt),1),A(o("input",{"onUpdate:modelValue":c[6]||(c[6]=r=>U.value.style=r),type:"text"},null,512),[[R,U.value.style]])]),o("label",null,[o("span",null,a(t.tags),1),A(o("input",{"onUpdate:modelValue":c[7]||(c[7]=r=>U.value.clothing_keywords=r),type:"text",placeholder:"white blouse, ribbon"},null,512),[[R,U.value.clothing_keywords]])]),o("label",Fu,[o("span",null,a(t.description),1),A(o("input",{"onUpdate:modelValue":c[8]||(c[8]=r=>U.value.description=r),type:"text"},null,512),[[R,U.value.description]])]),o("button",{type:"button",disabled:!!g.value||!U.value.name,onClick:Xs},a(t.quickDraft),9,Nu),o("button",{type:"button",disabled:!!g.value||!U.value.name,onClick:Zs},a(t.create),9,ju)]),ee.value?(x(),S("pre",Wu,a(JSON.stringify(ee.value,null,2)),1)):G("",!0),X.value.profile_id?(x(),S("div",Hu,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[9]||(c[9]=r=>X.value.name=r),type:"text"},null,512),[[R,X.value.name]])]),o("label",null,[o("span",null,a(t.provider),1),A(o("input",{"onUpdate:modelValue":c[10]||(c[10]=r=>X.value.default_model_route=r),type:"text"},null,512),[[R,X.value.default_model_route]])]),o("label",Ku,[o("span",null,a(t.description),1),A(o("input",{"onUpdate:modelValue":c[11]||(c[11]=r=>X.value.description=r),type:"text"},null,512),[[R,X.value.description]])]),o("label",qu,[o("span",null,a(t.basePrompt),1),A(o("input",{"onUpdate:modelValue":c[12]||(c[12]=r=>X.value.base_prompt=r),type:"text"},null,512),[[R,X.value.base_prompt]])]),o("label",Ju,[o("span",null,a(t.appearancePrompt),1),A(o("input",{"onUpdate:modelValue":c[13]||(c[13]=r=>X.value.appearance_prompt=r),type:"text"},null,512),[[R,X.value.appearance_prompt]])]),o("label",Gu,[o("span",null,a(t.stylePrompt),1),A(o("input",{"onUpdate:modelValue":c[14]||(c[14]=r=>X.value.style_prompt=r),type:"text"},null,512),[[R,X.value.style_prompt]])]),o("label",zu,[o("span",null,a(t.negativePrompt),1),A(o("input",{"onUpdate:modelValue":c[15]||(c[15]=r=>X.value.negative_prompt=r),type:"text"},null,512),[[R,X.value.negative_prompt]])]),o("button",{type:"button",disabled:!!g.value||!X.value.name,onClick:ni},a(t.update),9,Yu),o("button",{type:"button",disabled:!!g.value,onClick:Kl},a(t.reset),9,Qu)])):G("",!0),o("ul",null,[(x(!0),S(Q,null,ge(((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",Xu,[o("span",Zu,a(r.status),1),o("button",{type:"button",disabled:!!g.value,onClick:ne=>ti(r)},a(t.edit),9,ec),o("button",{type:"button",disabled:!!g.value,onClick:ne=>ei(r.profile_id)},a(t.delete),9,tc)])]))),128)),(xn=u.value)!=null&&xn.items.length?G("",!0):(x(),S("li",nc,a(t.emptyProfiles),1))])])):G("",!0),l.value==="workflows"?(x(),S("section",lc,[o("div",oc,[o("header",null,[o("h2",null,a(T.value),1),o("span",null,a(d.value.length),1)]),o("div",sc,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[16]||(c[16]=r=>je.value.display_name=r),type:"text"},null,512),[[R,je.value.display_name]])]),o("label",null,[o("span",null,a(t.workflowType),1),A(o("select",{"onUpdate:modelValue":c[17]||(c[17]=r=>je.value.workflow_type=r)},[...c[65]||(c[65]=[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),[[At,je.value.workflow_type]])]),o("button",{type:"button",disabled:!!g.value||!P.value||!je.value.display_name,onClick:li},a(t.create),9,ic)]),o("ul",null,[(x(!0),S(Q,null,ge(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",rc,[o("span",ac,a(r.status),1),o("button",{type:"button",disabled:!!g.value,onClick:ne=>vt(r.workflow_id)},a(t.nodes),9,uc),o("button",{type:"button",disabled:!!g.value,onClick:ne=>oi(r.workflow_id)},a(t.start),9,cc),o("button",{type:"button",disabled:!!g.value,onClick:ne=>si(r.workflow_id)},a(t.cancel),9,dc),o("button",{type:"button",disabled:!!g.value,onClick:ne=>ii(r.workflow_id)},a(t.archive),9,fc)])]))),128)),d.value.length?G("",!0):(x(),S("li",pc,a(t.emptyWorkflows),1))]),v.value?(x(),S("section",vc,[o("header",null,[o("h2",null,a(t.branches),1),o("span",null,a(y.value.length),1)]),o("div",hc,[o("label",null,[o("span",null,a(t.branchName),1),A(o("input",{"onUpdate:modelValue":c[18]||(c[18]=r=>Le.value.branch_name=r),type:"text",placeholder:"alt_pose"},null,512),[[R,Le.value.branch_name]])]),o("button",{type:"button",disabled:!!g.value||!Le.value.branch_name,onClick:ri},a(t.create),9,gc)]),o("ul",null,[(x(!0),S(Q,null,ge(y.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:!!g.value,onClick:ne=>ai(r.branch_name)},a(t.switchBranch),9,_c)]))),128))])])):G("",!0)]),o("div",mc,[o("header",null,[o("h2",null,a(t.nodes),1),o("div",yc,[o("span",null,a(((Sn=v.value)==null?void 0:Sn.workflow.current_branch)??"main"),1),o("button",{type:"button",disabled:!!g.value||!v.value,onClick:di},a(t.review),9,bc)])]),o("div",wc,[o("label",null,[o("span",null,a(t.nodeKey),1),A(o("input",{"onUpdate:modelValue":c[19]||(c[19]=r=>K.value.node_key=r),type:"text"},null,512),[[R,K.value.node_key]])]),o("label",null,[o("span",null,a(t.nodeTitle),1),A(o("input",{"onUpdate:modelValue":c[20]||(c[20]=r=>K.value.title=r),type:"text"},null,512),[[R,K.value.title]])]),o("label",null,[o("span",null,a(t.nodeType),1),A(o("input",{"onUpdate:modelValue":c[21]||(c[21]=r=>K.value.node_type=r),type:"text"},null,512),[[R,K.value.node_type]])]),o("label",null,[o("span",null,a(t.status),1),A(o("input",{"onUpdate:modelValue":c[22]||(c[22]=r=>K.value.status=r),type:"text"},null,512),[[R,K.value.status]])]),o("label",kc,[o("span",null,a(t.description),1),A(o("input",{"onUpdate:modelValue":c[23]||(c[23]=r=>K.value.description=r),type:"text"},null,512),[[R,K.value.description]])]),o("label",Cc,[o("span",null,a(t.prompt),1),A(o("input",{"onUpdate:modelValue":c[24]||(c[24]=r=>K.value.prompt=r),type:"text"},null,512),[[R,K.value.prompt]])]),o("label",xc,[o("span",null,a(t.negativePrompt),1),A(o("input",{"onUpdate:modelValue":c[25]||(c[25]=r=>K.value.negative_prompt=r),type:"text"},null,512),[[R,K.value.negative_prompt]])]),o("label",null,[o("span",null,a(t.modelRoute),1),A(o("input",{"onUpdate:modelValue":c[26]||(c[26]=r=>K.value.model_route=r),type:"text"},null,512),[[R,K.value.model_route]])]),o("button",{type:"button",disabled:!!g.value||!K.value.node_key||!K.value.title,onClick:ci},a(K.value.node_id?t.update:t.create),9,Sc),o("button",{type:"button",disabled:!!g.value,onClick:el},a(t.reset),9,Pc)]),o("div",Dc,[o("label",null,[o("span",null,a(t.modelRoute),1),A(o("input",{"onUpdate:modelValue":c[27]||(c[27]=r=>He.value.model_route=r),type:"text",placeholder:"image_low"},null,512),[[R,He.value.model_route]])]),o("label",null,[o("span",null,a(t.prompt),1),A(o("input",{"onUpdate:modelValue":c[28]||(c[28]=r=>He.value.prompt=r),type:"text"},null,512),[[R,He.value.prompt]])]),o("label",Tc,[o("span",null,a(t.negativePrompt),1),A(o("input",{"onUpdate:modelValue":c[29]||(c[29]=r=>He.value.negative_prompt=r),type:"text"},null,512),[[R,He.value.negative_prompt]])]),o("button",{type:"button",disabled:!!g.value||!O.value,onClick:pi},a(t.generate),9,Ec),o("button",{type:"button",disabled:!!g.value||!O.value,onClick:fi},a(t.review),9,Oc)]),o("ul",null,[(x(!0),S(Q,null,ge(((zl=v.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",Ic,[o("span",null,a(r.branch_name),1),o("span",Ac,a(r.status),1),o("button",{type:"button",disabled:!!g.value,onClick:ne=>ui(r)},a(t.edit),9,Mc),o("button",{type:"button",disabled:!!g.value,onClick:ne=>vi(r.node_id)},a(t.retry),9,$c),o("button",{type:"button",disabled:!!g.value,onClick:ne=>hi(r.node_id)},a(t.complete),9,Rc),o("button",{type:"button",disabled:!!g.value,onClick:ne=>zt(r.node_id)},a(t.images),9,Uc)])]))),128)),(Yl=v.value)!=null&&Yl.nodes.length?G("",!0):(x(),S("li",Bc,a(t.emptyWorkflows),1))]),o("ul",null,[(x(!0),S(Q,null,ge(M.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",Vc,[r.is_selected?(x(),S("span",Lc,a(t.select),1)):G("",!0),o("button",{type:"button",disabled:!!g.value||r.is_selected||r.is_archived,onClick:ne=>gi(r.image_id)},a(t.select),9,Fc),o("button",{type:"button",disabled:!!g.value||r.is_archived,onClick:ne=>_i(r.image_id)},a(t.adopt),9,Nc),o("button",{type:"button",disabled:!!g.value||!(r.thumbnail_uri??r.image_uri).startsWith("storage://"),onClick:ne=>Fi(r.thumbnail_uri??r.image_uri)},a(t.signMaterial),9,jc),o("button",{type:"button",disabled:!!g.value||!r.is_selected,onClick:ne=>mi(r.image_id)},a(t.unselect),9,Wc),o("button",{type:"button",disabled:!!g.value||r.is_archived,onClick:ne=>yi(r.image_id)},a(t.archive),9,Hc),o("button",{type:"button",disabled:!!g.value,onClick:ne=>bi(r.image_id)},a(t.delete),9,Kc)])]))),128)),M.value.length?G("",!0):(x(),S("li",qc,a(t.emptyImages),1))]),Ve.value?(x(),S("pre",Jc,a(JSON.stringify(Ve.value,null,2)),1)):G("",!0),Z.value?(x(),S("pre",Gc,a(JSON.stringify(Z.value,null,2)),1)):G("",!0),o("section",zc,[o("header",null,[o("h2",null,a(t.history),1),o("span",null,a(_.value.length),1)]),o("ul",null,[(x(!0),S(Q,null,ge(_.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)),_.value.length?G("",!0):(x(),S("li",Yc,a(t.emptyHistory),1))])]),b.value?(x(),S("section",Qc,[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),v.value?(x(),S("pre",Xc,a(JSON.stringify(v.value.workflow,null,2)),1)):G("",!0)])])):G("",!0),l.value==="materials"?(x(),S("section",Zc,[o("div",ed,[o("header",null,[o("h2",null,a(t.materialCategories),1),o("span",null,a(V.value.length),1)]),o("div",td,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[30]||(c[30]=r=>xe.value.name=r),type:"text"},null,512),[[R,xe.value.name]])]),o("label",null,[o("span",null,a(t.categoryType),1),A(o("input",{"onUpdate:modelValue":c[31]||(c[31]=r=>xe.value.category_type=r),type:"text"},null,512),[[R,xe.value.category_type]])]),o("label",null,[o("span",null,a(t.sortOrder),1),A(o("input",{"onUpdate:modelValue":c[32]||(c[32]=r=>xe.value.sort_order=r),type:"number"},null,512),[[R,xe.value.sort_order,void 0,{number:!0}]])]),o("button",{type:"button",disabled:!!g.value||!xe.value.name,onClick:ji},a(xe.value.category_id?t.update:t.create),9,nd),o("button",{type:"button",disabled:!!g.value,onClick:yn},a(t.reset),9,ld)]),o("ul",null,[(x(!0),S(Q,null,ge(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",od,[o("span",null,a(r.sort_order),1),o("button",{type:"button",disabled:!!g.value,onClick:ne=>Ni(r)},a(t.edit),9,sd),o("button",{type:"button",disabled:!!g.value,onClick:ne=>Wi(r.category_id)},a(t.delete),9,id)])]))),128)),V.value.length?G("",!0):(x(),S("li",rd,a(t.emptyCategories),1))])]),o("div",ad,[o("header",null,[o("h2",null,a(t.materialItems),1),o("div",ud,[o("span",null,a(k.value)+" "+a(t.pendingConfirm),1),o("button",{type:"button",disabled:!!g.value,onClick:Li},a(t.signFirstImage),9,cd)])]),o("div",dd,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[33]||(c[33]=r=>te.value.display_name=r),type:"text"},null,512),[[R,te.value.display_name]])]),o("label",null,[o("span",null,a(t.imageUri),1),A(o("input",{"onUpdate:modelValue":c[34]||(c[34]=r=>te.value.image_uri=r),type:"text",placeholder:"storage://materials/example.png"},null,512),[[R,te.value.image_uri]])]),o("label",null,[o("span",null,a(t.category),1),A(o("select",{"onUpdate:modelValue":c[35]||(c[35]=r=>te.value.category_id=r)},[o("option",fd,a(t.allCategories),1),(x(!0),S(Q,null,ge(V.value,r=>(x(),S("option",{key:r.category_id,value:r.category_id},a(r.name),9,pd))),128))],512),[[At,te.value.category_id]])]),o("label",null,[o("span",null,a(t.tags),1),A(o("input",{"onUpdate:modelValue":c[36]||(c[36]=r=>te.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[R,te.value.tags]])]),o("label",null,[o("span",null,a(t.prompt),1),A(o("input",{"onUpdate:modelValue":c[37]||(c[37]=r=>te.value.prompt=r),type:"text"},null,512),[[R,te.value.prompt]])]),o("label",null,[o("span",null,a(t.negativePrompt),1),A(o("input",{"onUpdate:modelValue":c[38]||(c[38]=r=>te.value.negative_prompt=r),type:"text"},null,512),[[R,te.value.negative_prompt]])]),o("button",{type:"button",disabled:!!g.value||!te.value.display_name,onClick:Hi},a(te.value.material_id?t.update:t.create),9,vd),o("button",{type:"button",disabled:!!g.value,onClick:ll},a(t.reset),9,hd)]),o("ul",null,[(x(!0),S(Q,null,ge(((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",gd,[o("span",_d,a(r.recognition_status),1),o("button",{type:"button",disabled:!!g.value,onClick:ne=>Ki(r)},a(t.edit),9,md),o("button",{type:"button",disabled:!!g.value,onClick:ne=>Ji(r.material_id)},a(t.recognize),9,yd),o("button",{type:"button",disabled:!!g.value||r.recognition_status==="confirmed",onClick:ne=>Gi(r)},a(t.confirm),9,bd),o("button",{type:"button",disabled:!!g.value,onClick:ne=>zi(r.material_id)},a(t.archive),9,wd)])]))),128)),(Xl=fe.value)!=null&&Xl.items.length?G("",!0):(x(),S("li",kd,a(t.emptyMaterials),1))]),o("div",Cd,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[39]||(c[39]=r=>be.value.display_name=r),type:"text"},null,512),[[R,be.value.display_name]])]),o("label",null,[o("span",null,a(t.filename),1),A(o("input",{"onUpdate:modelValue":c[40]||(c[40]=r=>be.value.filename=r),type:"text"},null,512),[[R,be.value.filename]])]),o("label",null,[o("span",null,a(t.contentType),1),A(o("input",{"onUpdate:modelValue":c[41]||(c[41]=r=>be.value.content_type=r),type:"text"},null,512),[[R,be.value.content_type]])]),o("label",null,[o("span",null,a(t.imageUri),1),A(o("input",{"onUpdate:modelValue":c[42]||(c[42]=r=>be.value.image_uri=r),type:"text",placeholder:"storage://materials/upload.png"},null,512),[[R,be.value.image_uri]])]),o("label",null,[o("span",null,a(t.category),1),A(o("select",{"onUpdate:modelValue":c[43]||(c[43]=r=>be.value.category_id=r)},[o("option",xd,a(t.allCategories),1),(x(!0),S(Q,null,ge(V.value,r=>(x(),S("option",{key:r.category_id,value:r.category_id},a(r.name),9,Sd))),128))],512),[[At,be.value.category_id]])]),o("button",{type:"button",disabled:!!g.value||!be.value.image_uri,onClick:qi},a(t.upload),9,Pd),o("button",{type:"button",disabled:!!g.value,onClick:Jl},a(t.reset),9,Dd)]),Ve.value?(x(),S("pre",Td,a(JSON.stringify(Ve.value,null,2)),1)):G("",!0)])])):G("",!0),l.value==="wardrobe"?(x(),S("section",Ed,[o("header",null,[o("h2",null,a(T.value),1),o("button",{type:"button",disabled:!P.value||!!g.value,onClick:Pi},a(t.match),9,Od)]),o("div",Id,[o("label",null,[o("span",null,a(t.selectMaterial),1),A(o("select",{"onUpdate:modelValue":c[44]||(c[44]=r=>Ce.value.material_id=r)},[o("option",Ad,a(t.selectMaterial),1),(x(!0),S(Q,null,ge(L.value,r=>(x(),S("option",{key:r.material_id,value:r.material_id},a(r.display_name),9,Md))),128))],512),[[At,Ce.value.material_id]])]),o("label",null,[o("span",null,a(t.wardrobeCategory),1),A(o("input",{"onUpdate:modelValue":c[45]||(c[45]=r=>Ce.value.wardrobe_category=r),type:"text"},null,512),[[R,Ce.value.wardrobe_category]])]),o("label",null,[o("span",null,a(t.tags),1),A(o("input",{"onUpdate:modelValue":c[46]||(c[46]=r=>Ce.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[R,Ce.value.tags]])]),o("label",null,[o("span",null,a(t.season),1),A(o("input",{"onUpdate:modelValue":c[47]||(c[47]=r=>Ce.value.season=r),type:"text"},null,512),[[R,Ce.value.season]])]),o("label",null,[o("span",null,a(t.style),1),A(o("input",{"onUpdate:modelValue":c[48]||(c[48]=r=>Ce.value.style=r),type:"text"},null,512),[[R,Ce.value.style]])]),o("button",{type:"button",disabled:!!g.value||!P.value||!Ce.value.material_id||!Ce.value.wardrobe_category,onClick:Ti},a(t.importToWardrobe),9,$d)]),o("ul",null,[(x(!0),S(Q,null,ge(Ae.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",Rd,[o("span",null,a(r.usage_count),1),o("button",{type:"button",disabled:!!g.value,onClick:ne=>Ei(r.wardrobe_item_id)},a(t.delete),9,Ud)])]))),128)),Ae.value.length?G("",!0):(x(),S("li",Bd,a(t.emptyWardrobe),1))]),ft.value?(x(),S("pre",Vd,a(JSON.stringify(ft.value,null,2)),1)):G("",!0),o("div",Ld,[o("label",null,[o("span",null,a(t.categories),1),A(o("input",{"onUpdate:modelValue":c[49]||(c[49]=r=>Pe.value.categories=r),type:"text"},null,512),[[R,Pe.value.categories]])]),o("label",null,[o("span",null,a(t.mood),1),A(o("input",{"onUpdate:modelValue":c[50]||(c[50]=r=>Pe.value.mood=r),type:"text"},null,512),[[R,Pe.value.mood]])]),o("label",null,[o("span",null,a(t.weather),1),A(o("input",{"onUpdate:modelValue":c[51]||(c[51]=r=>Pe.value.weather=r),type:"text"},null,512),[[R,Pe.value.weather]])]),o("label",null,[o("span",null,a(t.keywords),1),A(o("input",{"onUpdate:modelValue":c[52]||(c[52]=r=>Pe.value.keywords=r),type:"text"},null,512),[[R,Pe.value.keywords]])]),o("button",{type:"button",disabled:!!g.value||!P.value,onClick:Oi},a(t.dailyOutfit),9,Fd)]),Gt.value?(x(),S("pre",Nd,a(JSON.stringify(Gt.value,null,2)),1)):G("",!0)])):G("",!0),l.value==="jobs"?(x(),S("section",jd,[o("header",null,[o("h2",null,a(t.jobs),1),o("div",Wd,[o("button",{type:"button",disabled:!!g.value,onClick:wi},a(t.moveFailed),9,Hd),o("button",{type:"button",disabled:!!g.value,onClick:ki},a(t.retryDead),9,Kd)])]),o("div",qd,[o("label",null,[c[66]||(c[66]=o("span",null,"Status",-1)),A(o("select",{"onUpdate:modelValue":c[53]||(c[53]=r=>ze.value.status=r)},[o("option",Jd,a(t.allStatuses),1),(x(),S(Q,null,ge(B,r=>o("option",{key:r,value:r},a(r),9,Gd)),64))],512),[[At,ze.value.status]])]),o("label",null,[o("span",null,a(t.profiles),1),A(o("select",{"onUpdate:modelValue":c[54]||(c[54]=r=>ze.value.profile_id=r)},[o("option",zd,a(t.allProfiles),1),(x(!0),S(Q,null,ge(((Zl=u.value)==null?void 0:Zl.items)??[],r=>(x(),S("option",{key:r.profile_id,value:r.profile_id},a(r.name),9,Yd))),128))],512),[[At,ze.value.profile_id]])]),o("label",null,[o("span",null,a(t.workflows),1),A(o("select",{"onUpdate:modelValue":c[55]||(c[55]=r=>ze.value.workflow_id=r)},[o("option",Qd,a(t.allWorkflows),1),(x(!0),S(Q,null,ge(d.value,r=>(x(),S("option",{key:r.workflow_id,value:r.workflow_id},a(r.display_name),9,Xd))),128))],512),[[At,ze.value.workflow_id]])]),o("button",{type:"button",disabled:!!g.value,onClick:Se},a(t.filter),9,Zd)]),o("ul",null,[(x(!0),S(Q,null,ge(((eo=N.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",ef,[o("span",tf,a(r.status),1),["failed","dead_letter","cancelled"].includes(r.status)?(x(),S("button",{key:0,type:"button",onClick:ne=>mn(r.task_id)},a(t.retry),9,nf)):G("",!0),["completed","succeeded","cancelled"].includes(r.status)?G("",!0):(x(),S("button",{key:1,type:"button",onClick:ne=>zs(r.task_id)},a(t.cancel),9,lf)),o("button",{type:"button",disabled:!!g.value,onClick:ne=>Ys(r.task_id)},a(t.detail),9,of)])]))),128)),(to=N.value)!=null&&to.items.length?G("",!0):(x(),S("li",sf,a(t.emptyJobs),1))]),ve.value?(x(),S("section",rf,[o("header",null,[o("h2",null,a(t.jobDetail),1),o("span",null,a(ve.value.status),1)]),o("pre",null,a(JSON.stringify(ve.value,null,2)),1)])):G("",!0)])):G("",!0),l.value==="discovery"?(x(),S("section",af,[o("div",uf,[o("header",null,[o("h2",null,a(t.dialects),1),o("div",cf,[o("button",{type:"button",disabled:!!g.value,onClick:xi},a(t.probeProvider),9,df),o("button",{type:"button",disabled:!!g.value,onClick:Ci},a(t.safeProbe),9,ff)])]),o("ul",null,[(x(!0),S(Q,null,ge(Me.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",pf,[o("label",null,[o("span",null,a(t.provider),1),A(o("input",{"onUpdate:modelValue":c[56]||(c[56]=r=>p.value.provider_id=r),type:"text",placeholder:"local-preview"},null,512),[[R,p.value.provider_id]])]),o("label",null,[o("span",null,a(t.model),1),A(o("input",{"onUpdate:modelValue":c[57]||(c[57]=r=>p.value.model_id=r),type:"text",placeholder:"metadata-only"},null,512),[[R,p.value.model_id]])]),o("label",null,[o("span",null,a(t.requiredCapabilities),1),A(o("input",{"onUpdate:modelValue":c[58]||(c[58]=r=>p.value.required_capabilities=r),type:"text",placeholder:"text_to_image"},null,512),[[R,p.value.required_capabilities]])]),o("button",{type:"button",disabled:!!g.value||!p.value.provider_id||!p.value.model_id,onClick:Si},a(t.validatePlan),9,vf)]),h.value?(x(),S("pre",hf,a(JSON.stringify(h.value,null,2)),1)):G("",!0)]),o("div",gf,[o("header",null,[o("h2",null,a(t.capabilityProfiles),1),o("span",null,a(Ne.value.length),1)]),o("ul",null,[(x(!0),S(Q,null,ge(Ne.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",_f,[o("span",mf,a(r.status),1),o("button",{type:"button",disabled:!!g.value,onClick:ne=>tl(r,"confirmed_supported")},a(t.support),9,yf),o("button",{type:"button",disabled:!!g.value,onClick:ne=>tl(r,"confirmed_unsupported")},a(t.unsupported),9,bf),o("button",{type:"button",disabled:!!g.value,onClick:ne=>tl(r,"unconfirmed")},a(t.unconfirmed),9,wf)])]))),128)),Ne.value.length?G("",!0):(x(),S("li",kf,a(t.emptyCapabilities),1))])])])):G("",!0),l.value==="logs"?(x(),S("section",Cf,[o("div",xf,[o("div",Sf,[o("header",null,[o("h2",null,a(t.generationLogs),1),o("span",null,a(me.value.generation.length),1)]),o("ul",null,[(x(!0),S(Q,null,ge(me.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)),me.value.generation.length?G("",!0):(x(),S("li",Pf,a(t.emptyGenerationLogs),1))])]),o("div",Df,[o("header",null,[o("h2",null,a(t.errorLogs),1),o("span",null,a(me.value.errors.length),1)]),o("ul",null,[(x(!0),S(Q,null,ge(me.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",Tf,a(r.status),1)]))),128)),me.value.errors.length?G("",!0):(x(),S("li",Ef,a(t.emptyErrors),1))])])]),o("div",Of,[o("div",If,[o("header",null,[o("h2",null,a(t.workflowLogs),1),o("span",null,a(me.value.workflows.length),1)]),o("ul",null,[(x(!0),S(Q,null,ge(me.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)),me.value.workflows.length?G("",!0):(x(),S("li",Af,a(t.emptyWorkflowLogs),1))])]),o("div",Mf,[o("header",null,[o("h2",null,a(t.integrationLogs),1),o("span",null,a(me.value.integrations.length),1)]),o("ul",null,[(x(!0),S(Q,null,ge(me.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",$f,a(r.status),1)]))),128)),me.value.integrations.length?G("",!0):(x(),S("li",Rf,a(t.emptyIntegrationLogs),1))])])]),o("div",Uf,[o("header",null,[o("h2",null,a(t.auditLogs),1),o("span",null,a(me.value.audit.length),1)]),o("div",Bf,[o("label",null,[c[67]||(c[67]=o("span",null,"Action",-1)),A(o("input",{"onUpdate:modelValue":c[59]||(c[59]=r=>Ye.value.action=r),type:"text"},null,512),[[R,Ye.value.action]])]),o("label",null,[o("span",null,a(t.targetType),1),A(o("input",{"onUpdate:modelValue":c[60]||(c[60]=r=>Ye.value.target_type=r),type:"text"},null,512),[[R,Ye.value.target_type]])]),o("label",null,[o("span",null,a(t.actor),1),A(o("input",{"onUpdate:modelValue":c[61]||(c[61]=r=>Ye.value.actor_id=r),type:"text"},null,512),[[R,Ye.value.actor_id]])]),o("button",{type:"button",disabled:!!g.value,onClick:oe},a(t.filter),9,Vf)]),o("ul",null,[(x(!0),S(Q,null,ge(me.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)),me.value.audit.length?G("",!0):(x(),S("li",Lf,a(t.emptyAuditLogs),1))])])])):G("",!0),l.value==="settings"?(x(),S("section",Ff,[o("div",Nf,[o("button",{type:"button",disabled:!!g.value,onClick:Ii},a(t.reload),9,jf),o("button",{type:"button",disabled:!!g.value,onClick:c[62]||(c[62]=r=>Vt())},a(t.reset),9,Wf),o("button",{type:"button",disabled:!!g.value,onClick:$i},a(t.validate),9,Hf),o("button",{type:"button",disabled:!!g.value,onClick:Ri},a(t.diff),9,Kf),o("button",{type:"button",disabled:!!g.value,onClick:Ui},a(t.save),9,qf),o("button",{type:"button",disabled:!!g.value,onClick:Ai},a(t.exportRedacted),9,Jf),o("button",{type:"button",disabled:!!g.value,onClick:ql},a(t.loadSnapshots),9,Gf)]),o("div",zf,[(x(!0),S(Q,null,ge(((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",Yf,[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)]),A(o("textarea",{"onUpdate:modelValue":c[63]||(c[63]=r=>pt.value=r),spellcheck:"false"},null,512),[[R,pt.value]])]),o("section",Qf,[o("header",null,[o("h2",null,a(t.importSettings),1),o("button",{type:"button",disabled:!!g.value||!nt.value,onClick:Bi},a(t.importSettings),9,Xf)]),A(o("textarea",{"onUpdate:modelValue":c[64]||(c[64]=r=>nt.value=r),spellcheck:"false"},null,512),[[R,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(Q,null,ge(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:!!g.value,onClick:ne=>Vi(r.snapshot_id)},a(t.rollback),9,ep)]))),128))])]),o("div",tp,[o("div",np,[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",lp,[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",op,[o("h2",null,a(t.running),1),o("dl",null,[o("div",null,[c[68]||(c[68]=o("dt",null,"Pending",-1)),o("dd",null,a(((io=i.value)==null?void 0:io.queue.pending)??0),1)]),o("div",null,[c[69]||(c[69]=o("dt",null,"Running",-1)),o("dd",null,a(((ro=i.value)==null?void 0:ro.queue.running)??0),1)]),o("div",null,[c[70]||(c[70]=o("dt",null,"Failed",-1)),o("dd",null,a(((ao=i.value)==null?void 0:ao.queue.failed)??0),1)]),o("div",null,[c[71]||(c[71]=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[72]||(c[72]=o("dt",null,"Images",-1)),o("dd",null,a(ol(Gl("storage://images/"))),1)]),o("div",null,[c[73]||(c[73]=o("dt",null,"Materials",-1)),o("dd",null,a(ol(Gl("storage://materials/"))),1)])])])])}}}),ip=(e,t)=>{const n=e.__vccOpts||e;for(const[l,s]of t)n[l]=s;return n},rp=ip(sp,[["__scopeId","data-v-0422d282"]]);wu(rp).mount("#app"); diff --git a/web/assets/index-tce9D-Z6.js b/web/assets/index-tce9D-Z6.js new file mode 100644 index 0000000..9649287 --- /dev/null +++ b/web/assets/index-tce9D-Z6.js @@ -0,0 +1,17 @@ +var Qi=Object.defineProperty;var Xi=(e,t,n)=>t in e?Qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var sl=(e,t,n)=>Xi(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 ve={},Ht=[],dt=()=>{},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:"),Te=Object.assign,Ol=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Zi=Object.prototype.hasOwnProperty,re=(e,t)=>Zi.call(e,t),W=Array.isArray,Kt=e=>hn(e)==="[object Map]",Wn=e=>hn(e)==="[object Set]",co=e=>hn(e)==="[object Date]",q=e=>typeof e=="function",we=e=>typeof e=="string",ft=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",Ho=e=>(ce(e)||q(e))&&q(e.then)&&q(e.catch),Ko=Object.prototype.toString,hn=e=>Ko.call(e),er=e=>hn(e).slice(8,-1),qo=e=>hn(e)==="[object Object]",Il=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,nn=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)))},tr=/-\w/g,tt=Hn(e=>e.replace(tr,t=>t.slice(1).toUpperCase())),nr=/\B([A-Z])/g,Lt=Hn(e=>e.replace(nr,"-$1").toLowerCase()),Jo=Hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),il=Hn(e=>e?`on${Jo(e)}`:""),ct=(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(or);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;ngn(n,t))}const Yo=e=>!!(e&&e.__v_isRef===!0),a=e=>we(e)?e:e==null?"":W(e)||ce(e)&&(e.toString===Ko||!q(e.toString))?Yo(e)?a(e.value):JSON.stringify(e,Qo,2):String(e),Qo=(e,t)=>Yo(t)?Qo(e,t.value):Kt(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))}:ft(t)?rl(t):ce(t)&&!W(t)&&!qo(t)?String(t):t,rl=(e,t="")=>{var n;return ft(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 dr{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(on){let t=on;for(on=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ln;){let t=ln;for(ln=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),pr(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===cn)||(e.globalVersion=cn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ml(e))))return;e.flags|=2;const t=e.dep,n=ge,l=nt;ge=e,nt=!0;try{ts(e);const s=e.fn(e._value);(t.version===0||ct(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ge=n,nt=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 pr(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let nt=!0;const os=[];function pt(){os.push(nt),nt=!1}function vt(){const e=os.pop();nt=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 cn=0;class vr{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||!nt||ge===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ge)n=this.activeLink=new vr(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++,cn++,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,Bt=Symbol(""),bl=Symbol(""),dn=Symbol("");function Ie(e,t,n){if(nt&&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 wt(e,t,n,l,s,i){const u=yl.get(e);if(!u){cn++;return}const d=v=>{v&&v.trigger()};if(Ml(),t==="clear")u.forEach(d);else{const v=W(e),m=v&&Il(n);if(v&&n==="length"){const _=Number(l);u.forEach((w,O)=>{(O==="length"||O===dn||!ft(O)&&O>=_)&&d(w)})}else switch((n!==void 0||u.has(void 0))&&d(u.get(n)),m&&d(u.get(dn)),t){case"add":v?m&&d(u.get("length")):(d(u.get(Bt)),Kt(e)&&d(u.get(bl)));break;case"delete":v||(d(u.get(Bt)),Kt(e)&&d(u.get(bl)));break;case"set":Kt(e)&&d(u.get(Bt));break}}$l()}function jt(e){const t=ie(e);return t===e?t:(Ie(t,"iterate",dn),Qe(e)?t:t.map(lt))}function Gn(e){return Ie(e=ie(e),"iterate",dn),e}function at(e,t){return xt(e)?zt(Vt(e)?lt(t):t):lt(t)}const hr={__proto__:null,[Symbol.iterator](){return ul(this,Symbol.iterator,e=>at(this,e))},concat(...e){return jt(this).concat(...e.map(t=>W(t)?jt(t):t))},entries(){return ul(this,"entries",e=>(e[1]=at(this,e[1]),e))},every(e,t){return mt(this,"every",e,t,void 0,arguments)},filter(e,t){return mt(this,"filter",e,t,n=>n.map(l=>at(this,l)),arguments)},find(e,t){return mt(this,"find",e,t,n=>at(this,n),arguments)},findIndex(e,t){return mt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return mt(this,"findLast",e,t,n=>at(this,n),arguments)},findLastIndex(e,t){return mt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return mt(this,"forEach",e,t,void 0,arguments)},includes(...e){return cl(this,"includes",e)},indexOf(...e){return cl(this,"indexOf",e)},join(e){return jt(this).join(e)},lastIndexOf(...e){return cl(this,"lastIndexOf",e)},map(e,t){return mt(this,"map",e,t,void 0,arguments)},pop(){return Xt(this,"pop")},push(...e){return Xt(this,"push",e)},reduce(e,...t){return vo(this,"reduce",e,t)},reduceRight(e,...t){return vo(this,"reduceRight",e,t)},shift(){return Xt(this,"shift")},some(e,t){return mt(this,"some",e,t,void 0,arguments)},splice(...e){return Xt(this,"splice",e)},toReversed(){return jt(this).toReversed()},toSorted(e){return jt(this).toSorted(e)},toSpliced(...e){return jt(this).toSpliced(...e)},unshift(...e){return Xt(this,"unshift",e)},values(){return ul(this,"values",e=>at(this,e))}};function ul(e,t,n){const l=Gn(e),s=l[t]();return l!==e&&!Qe(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const gr=Array.prototype;function mt(e,t,n,l,s,i){const u=Gn(e),d=u!==e&&!Qe(e),v=u[t];if(v!==gr[t]){const w=v.apply(e,i);return d?lt(w):w}let m=n;u!==e&&(d?m=function(w,O){return n.call(this,at(e,w),O,e)}:n.length>2&&(m=function(w,O){return n.call(this,w,O,e)}));const _=v.call(u,m,l);return d&&s?s(_):_}function vo(e,t,n,l){const s=Gn(e),i=s!==e&&!Qe(e);let u=n,d=!1;s!==e&&(i?(d=l.length===0,u=function(m,_,w){return d&&(d=!1,m=at(e,m)),n.call(this,m,at(e,_),w,e)}):n.length>3&&(u=function(m,_,w){return n.call(this,m,_,w,e)}));const v=s[t](u,...l);return d?at(e,v):v}function cl(e,t,n){const l=ie(e);Ie(l,"iterate",dn);const s=l[t](...n);return(s===-1||s===!1)&&Fl(n[0])?(n[0]=ie(n[0]),l[t](...n)):s}function Xt(e,t,n=[]){pt(),Ml();const l=ie(e)[t].apply(e,n);return $l(),vt(),l}const _r=El("__proto__,__v_isRef,__isVue"),is=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ft));function mr(e){ft(e)||(e=String(e));const t=ie(this);return Ie(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?Tr:ds:i?cs:us).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const u=W(t);if(!s){let v;if(u&&(v=hr[n]))return v;if(n==="hasOwnProperty")return mr}const d=Reflect.get(t,n,Ae(t)?t:l);if((ft(n)?is.has(n):_r(n))||(s||Ie(t,"get",n),i))return d;if(Ae(d)){const v=u&&Il(n)?d:d.value;return s&&ce(v)?kl(v):v}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=xt(i);if(!Qe(l)&&!xt(l)&&(i=ie(i),l=ie(l)),!u&&Ae(i)&&!Ae(l))return m||(i.value=l),!0}const d=u?Number(n)e,Pn=e=>Reflect.getPrototypeOf(e);function Cr(e,t,n){return function(...l){const s=this.__v_raw,i=ie(s),u=Kt(i),d=e==="entries"||e===Symbol.iterator&&u,v=e==="keys"&&u,m=s[e](...l),_=n?wl:t?zt:lt;return!t&&Ie(i,"iterate",v?bl:Bt),Te(Object.create(m),{next(){const{value:w,done:O}=m.next();return O?{value:w,done:O}:{value:d?[_(w[0]),_(w[1])]:_(w),done:O}}})}}function Dn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xr(e,t){const n={get(s){const i=this.__v_raw,u=ie(i),d=ie(s);e||(ct(s,d)&&Ie(u,"get",s),Ie(u,"get",d));const{has:v}=Pn(u),m=t?wl:e?zt:lt;if(v.call(u,s))return m(i.get(s));if(v.call(u,d))return m(i.get(d));i!==u&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Ie(ie(s),"iterate",Bt),s.size},has(s){const i=this.__v_raw,u=ie(i),d=ie(s);return e||(ct(s,d)&&Ie(u,"has",s),Ie(u,"has",d)),s===d?i.has(s):i.has(s)||i.has(d)},forEach(s,i){const u=this,d=u.__v_raw,v=ie(d),m=t?wl:e?zt:lt;return!e&&Ie(v,"iterate",Bt),d.forEach((_,w)=>s.call(i,m(_),m(w),u))}};return Te(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),v=!t&&!Qe(s)&&!xt(s)?d:s;return u.has.call(i,v)||ct(s,v)&&u.has.call(i,s)||ct(d,v)&&u.has.call(i,d)||(i.add(v),wt(i,"add",v,v)),this},set(s,i){!t&&!Qe(i)&&!xt(i)&&(i=ie(i));const u=ie(this),{has:d,get:v}=Pn(u);let m=d.call(u,s);m||(s=ie(s),m=d.call(u,s));const _=v.call(u,s);return u.set(s,i),m?ct(i,_)&&wt(u,"set",s,i):wt(u,"add",s,i),this},delete(s){const i=ie(this),{has:u,get:d}=Pn(i);let v=u.call(i,s);v||(s=ie(s),v=u.call(i,s)),d&&d.call(i,s);const m=i.delete(s);return v&&wt(i,"delete",s,void 0),m},clear(){const s=ie(this),i=s.size!==0,u=s.clear();return i&&wt(s,"clear",void 0,void 0),u}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Cr(s,e,t)}),n}function Bl(e,t){const n=xr(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 Sr={get:Bl(!1,!1)},Pr={get:Bl(!1,!0)},Dr={get:Bl(!0,!1)};const us=new WeakMap,cs=new WeakMap,ds=new WeakMap,Tr=new WeakMap;function Er(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 xt(e)?e:Ll(e,!1,br,Sr,us)}function Or(e){return Ll(e,!1,kr,Pr,cs)}function kl(e){return Ll(e,!0,wr,Dr,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=Er(er(e));if(u===0)return e;const d=new Proxy(e,u===2?l:n);return s.set(e,d),d}function Vt(e){return xt(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function xt(e){return!!(e&&e.__v_isReadonly)}function Qe(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 Ir(e){return!re(e,"__v_skip")&&Object.isExtensible(e)&&Go(e,"__v_skip",!0),e}const lt=e=>ce(e)?Vl(e):e,zt=e=>ce(e)?kl(e):e;function Ae(e){return e?e.__v_isRef===!0:!1}function F(e){return Ar(e,!1)}function Ar(e,t){return Ae(e)?e:new Mr(e,t)}class Mr{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:lt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||Qe(t)||xt(t);t=l?t:ie(t),ct(t,n)&&(this._rawValue=t,this._value=l?t:lt(t),this.dep.trigger())}}function $r(e){return Ae(e)?e.value:e}const Rr={get:(e,t,n)=>t==="__v_raw"?e:$r(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const s=e[t];return Ae(s)&&!Ae(n)?(s.value=n,!0):Reflect.set(e,t,n,l)}};function fs(e){return Vt(e)?e:new Proxy(e,Rr)}class Ur{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=cn-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 Br(e,t,n=!1){let l,s;return q(e)?l=e:(l=e.get,s=e.set),new Ur(l,s,n)}const Tn={},An=new WeakMap;let Rt;function Vr(e,t=!1,n=Rt){if(n){let l=An.get(n);l||An.set(n,l=[]),l.push(e)}}function Lr(e,t,n=ve){const{immediate:l,deep:s,once:i,scheduler:u,augmentJob:d,call:v}=n,m=V=>s?V:Qe(V)||s===!1||s===0?kt(V,1):kt(V);let _,w,O,M,X=!1,N=!1;if(Ae(e)?(w=()=>e.value,X=Qe(e)):Vt(e)?(w=()=>m(e),X=!0):W(e)?(N=!0,X=e.some(V=>Vt(V)||Qe(V)),w=()=>e.map(V=>{if(Ae(V))return V.value;if(Vt(V))return m(V);if(q(V))return v?v(V,2):V()})):q(e)?t?w=v?()=>v(e,2):e:w=()=>{if(O){pt();try{O()}finally{vt()}}const V=Rt;Rt=_;try{return v?v(e,3,[M]):e(M)}finally{Rt=V}}:w=dt,t&&s){const V=w,fe=s===!0?1/0:s;w=()=>kt(V(),fe)}const he=fr(),de=()=>{_.stop(),he&&he.active&&Ol(he.effects,_)};if(i&&t){const V=t;t=(...fe)=>{const Me=V(...fe);return de(),Me}}let H=N?new Array(e.length).fill(Tn):Tn;const ae=V=>{if(!(!(_.flags&1)||!_.dirty&&!V))if(t){const fe=_.run();if(V||s||X||(N?fe.some((Me,$e)=>ct(Me,H[$e])):ct(fe,H))){O&&O();const Me=Rt;Rt=_;try{const $e=[fe,H===Tn?void 0:N&&H[0]===Tn?[]:H,M];H=fe,v?v(t,3,$e):t(...$e)}finally{Rt=Me}}}else _.run()};return d&&d(ae),_=new Xo(w),_.scheduler=u?()=>u(ae,!1):ae,M=V=>Vr(V,!1,_),O=_.onStop=()=>{const V=An.get(_);if(V){if(v)v(V,4);else for(const fe of V)fe();An.delete(_)}},t?l?ae(!0):H=_.run():u?u(ae.bind(null,!0),!0):_.run(),de.pause=_.pause.bind(_),de.resume=_.resume.bind(_),de.stop=de,de}function kt(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--,Ae(e))kt(e.value,t,n);else if(W(e))for(let l=0;l{kt(l,t,n)});else if(qo(e)){for(const l in e)kt(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&kt(e[l],t,n)}return e}/** +* @vue/runtime-core v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function _n(e,t,n,l){try{return l?e(...l):e()}catch(s){zn(s,t,n)}}function ot(e,t,n,l){if(q(e)){const s=_n(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=Ve[l],i=fn(s);i=fn(n)?Ve.push(e):Ve.splice(Nr(t),0,e),e.flags|=1,hs()}}function hs(){Mn||(Mn=ps.then(_s))}function jr(e){W(e)?qt.push(...e):Tt&&e.id===-1?Tt.splice(Wt+1,0,e):e.flags&1||(qt.push(e),e.flags|=1),hs()}function ho(e,t,n=rt+1){for(;nfn(n)-fn(l));if(qt.length=0,Tt){Tt.push(...t);return}for(Tt=t,Wt=0;Wte.id==null?e.flags&2?-1:1/0:e.id;function _s(e){try{for(rt=0;rt{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 A(e,t){if(Ye===null)return e;const n=Zn(Ye),l=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&q(t)?t.call(l&&l.proxy):t}}const Kr=Symbol.for("v-scx"),qr=()=>On(Kr);function dl(e,t,n){return ys(e,t,n)}function ys(e,t,n=ve){const{immediate:l,deep:s,flush:i,once:u}=n,d=Te({},n),v=t&&l||!t&&i!=="post";let m;if(vn){if(i==="sync"){const M=qr();m=M.__watcherHandles||(M.__watcherHandles=[])}else if(!v){const M=()=>{};return M.stop=dt,M.resume=dt,M.pause=dt,M}}const _=Le;d.call=(M,X,N)=>ot(M,_,X,N);let w=!1;i==="post"?d.scheduler=M=>{Ne(M,_&&_.suspense)}:i!=="sync"&&(w=!0,d.scheduler=(M,X)=>{X?M():Nl(M)}),d.augmentJob=M=>{t&&(M.flags|=4),w&&(M.flags|=2,_&&(M.id=_.uid,M.i=_))};const O=Lr(e,t,d);return vn&&(m?m.push(O):v&&O()),O}function Jr(e,t,n){const l=this.proxy,s=we(e)?e.includes(".")?bs(l,e):()=>l[e]:e.bind(l,l);let i;q(t)?i=t:(i=t.handler,n=t);const u=mn(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 Yr(e,t){return q(e)?Te({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 sn(e,t,n,l,s=!1){if(W(e)){e.forEach((N,he)=>sn(N,t&&(W(t)?t[he]:t),n,l,s));return}if(rn(l)&&!s){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&sn(e,t,n,l.component.subTree);return}const i=l.shapeFlag&4?Zn(l.component):l.el,u=s?null:i,{i:d,r:v}=e,m=t&&t.r,_=d.refs===ve?d.refs={}:d.refs,w=d.setupState,O=ie(w),M=w===ve?Wo:N=>go(_,N)?!1:re(O,N),X=(N,he)=>!(he&&go(_,he));if(m!=null&&m!==v){if(_o(t),we(m))_[m]=null,M(m)&&(w[m]=null);else if(Ae(m)){const N=t;X(m,N.k)&&(m.value=null),N.k&&(_[N.k]=null)}}if(q(v)){pt();try{_n(v,d,12,[u,_])}finally{vt()}}else{const N=we(v),he=Ae(v);if(N||he){const de=()=>{if(e.f){const H=N?M(v)?w[v]:_[v]:X()||!e.k?v.value:_[e.k];if(s)W(H)&&Ol(H,i);else if(W(H))H.includes(i)||H.push(i);else if(N)_[v]=[i],M(v)&&(w[v]=_[v]);else{const ae=[i];X(v,e.k)&&(v.value=ae),e.k&&(_[e.k]=ae)}}else N?(_[v]=u,M(v)&&(w[v]=u)):he&&(X(v,e.k)&&(v.value=u),e.k&&(_[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 rn=e=>!!e.type.__asyncLoader,ks=e=>e.type.__isKeepAlive;function Qr(e,t){Cs(e,"a",t)}function Xr(e,t){Cs(e,"da",t)}function Cs(e,t,n=Le){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)&&Zr(l,t,n,s),s=s.parent}}function Zr(e,t,n,l){const s=Yn(t,e,l,!0);Ss(()=>{Ol(l[t],s)},n)}function Yn(e,t,n=Le,l=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...u)=>{pt();const d=mn(n),v=ot(t,n,e,u);return d(),vt(),v});return l?s.unshift(i):s.push(i),i}}const St=e=>(t,n=Le)=>{(!vn||e==="sp")&&Yn(e,(...l)=>t(...l),n)},ea=St("bm"),xs=St("m"),ta=St("bu"),na=St("u"),la=St("bum"),Ss=St("um"),oa=St("sp"),sa=St("rtg"),ia=St("rtc");function ra(e,t=Le){Yn("ec",e,t)}const aa=Symbol.for("v-ndc");function pe(e,t,n,l){let s;const i=n,u=W(e);if(u||we(e)){const d=u&&Vt(e);let v=!1,m=!1;d&&(v=!Qe(e),m=xt(e),e=Gn(e)),s=new Array(e.length);for(let _=0,w=e.length;_t(d,v,void 0,i));else{const d=Object.keys(e);s=new Array(d.length);for(let v=0,m=d.length;ve?qs(e)?Zn(e):Cl(e.parent):null,an=Te(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=vs.bind(e.proxy)),$watch:e=>Jr.bind(e)}),pl=(e,t)=>e!==ve&&!e.__isScriptSetup&&re(e,t),ua={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:s,props:i,accessCache:u,type:d,appContext:v}=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!==ve&&re(s,t))return u[t]=2,s[t];if(re(i,t))return u[t]=3,i[t];if(n!==ve&&re(n,t))return u[t]=4,n[t];xl&&(u[t]=0)}}const m=an[t];let _,w;if(m)return t==="$attrs"&&Ie(e.attrs,"get",""),m(e);if((_=d.__cssModules)&&(_=_[t]))return _;if(n!==ve&&re(n,t))return u[t]=4,n[t];if(w=v.config.globalProperties,re(w,t))return w[t]},set({_:e},t,n){const{data:l,setupState:s,ctx:i}=e;return pl(s,t)?(s[t]=n,!0):l!==ve&&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 v;return!!(n[d]||e!==ve&&d[0]!=="$"&&re(e,d)||pl(t,d)||re(i,d)||re(l,d)||re(an,d)||re(s.config.globalProperties,d)||(v=u.__cssModules)&&v[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 ca(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:v,inject:m,created:_,beforeMount:w,mounted:O,beforeUpdate:M,updated:X,activated:N,deactivated:he,beforeDestroy:de,beforeUnmount:H,destroyed:ae,unmounted:V,render:fe,renderTracked:Me,renderTriggered:$e,errorCaptured:je,serverPrefetch:ht,expose:_e,inheritAttrs:qe,components:We,directives:gt,filters:_t}=t;if(m&&da(m,l,null),u)for(const ue in u){const $=u[ue];q($)&&(l[ue]=$.bind(n))}if(s){const ue=s.call(n,n);ce(ue)&&(e.data=Vl(ue))}if(xl=!0,i)for(const ue in i){const $=i[ue],Fe=q($)?$.bind(n,n):q($.get)?$.get.bind(n,n):dt,Z=!q($)&&q($.set)?$.set.bind(n):dt,Ee=Dt({get:Fe,set:Z});Object.defineProperty(l,ue,{enumerable:!0,configurable:!0,get:()=>Ee.value,set:Se=>Ee.value=Se})}if(d)for(const ue in d)Ps(d[ue],l,n,ue);if(v){const ue=q(v)?v.call(n):v;Reflect.ownKeys(ue).forEach($=>{Hr($,ue[$])})}_&&yo(_,e,"c");function ke(ue,$){W($)?$.forEach(Fe=>ue(Fe.bind(n))):$&&ue($.bind(n))}if(ke(ea,w),ke(xs,O),ke(ta,M),ke(na,X),ke(Qr,N),ke(Xr,he),ke(ra,je),ke(ia,Me),ke(sa,$e),ke(la,H),ke(Ss,V),ke(oa,ht),W(_e))if(_e.length){const ue=e.exposed||(e.exposed={});_e.forEach($=>{Object.defineProperty(ue,$,{get:()=>n[$],set:Fe=>n[$]=Fe,enumerable:!0})})}else e.exposed||(e.exposed={});fe&&e.render===dt&&(e.render=fe),qe!=null&&(e.inheritAttrs=qe),We&&(e.components=We),gt&&(e.directives=gt),ht&&ws(e)}function da(e,t,n=dt){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),Ae(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){ot(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];q(i)&&dl(s,i)}else if(q(e))dl(s,e.bind(n));else if(ce(e))if(W(e))e.forEach(i=>Ps(i,t,n,l));else{const i=q(e.handler)?e.handler.bind(n):t[e.handler];q(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 v;return d?v=d:!s.length&&!n&&!l?v=t:(v={},s.length&&s.forEach(m=>Un(v,m,u,!0)),Un(v,t,u)),ce(t)&&i.set(t,v),v}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=fa[u]||n&&n[u];e[u]=d?d(e[u],t[u]):t[u]}return e}const fa={data:bo,props:wo,emits:wo,methods:en,computed:en,beforeCreate:Be,created:Be,beforeMount:Be,mounted:Be,beforeUpdate:Be,updated:Be,beforeDestroy:Be,beforeUnmount:Be,destroyed:Be,unmounted:Be,activated:Be,deactivated:Be,errorCaptured:Be,serverPrefetch:Be,components:en,directives:en,watch:va,provide:bo,inject:pa};function bo(e,t){return t?e?function(){return Te(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function pa(e,t){return en(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[`${tt(t)}Modifiers`]||e[`${Lt(t)}Modifiers`];function ma(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||ve;let s=n;const i=t.startsWith("update:"),u=i&&_a(l,t.slice(7));u&&(u.trim&&(s=n.map(_=>we(_)?_.trim():_)),u.number&&(s=n.map(Kn)));let d,v=l[d=il(t)]||l[d=il(tt(t))];!v&&i&&(v=l[d=il(Lt(t))]),v&&ot(v,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,ot(m,e,6,s)}}const ya=new WeakMap;function Es(e,t,n=!1){const l=n?ya:t.emitsCache,s=l.get(e);if(s!==void 0)return s;const i=e.emits;let u={},d=!1;if(!q(e)){const v=m=>{const _=Es(m,t,!0);_&&(d=!0,Te(u,_))};!n&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}return!i&&!d?(ce(e)&&l.set(e,null),null):(W(i)?i.forEach(v=>u[v]=null):Te(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,Lt(t))||re(e,t))}function ko(e){const{type:t,vnode:n,proxy:l,withProxy:s,propsOptions:[i],slots:u,attrs:d,emit:v,render:m,renderCache:_,props:w,data:O,setupState:M,ctx:X,inheritAttrs:N}=e,he=$n(e);let de,H;try{if(n.shapeFlag&4){const V=s||l,fe=V;de=ut(m.call(fe,V,_,w,M,O,X)),H=d}else{const V=t;de=ut(V.length>1?V(w,{attrs:d,slots:u,emit:v}):V(w,null)),H=t.props?d:ba(d)}}catch(V){un.length=0,zn(V,e,1),de=Ct(Et)}let ae=de;if(H&&N!==!1){const V=Object.keys(H),{shapeFlag:fe}=ae;V.length&&fe&7&&(i&&V.some(jn)&&(H=wa(H,i)),ae=Yt(ae,H,!1,!0))}return n.dirs&&(ae=Yt(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 ba=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nn(n))&&((t||(t={}))[n]=e[n]);return t},wa=(e,t)=>{const n={};for(const l in e)(!jn(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function ka(e,t,n){const{props:l,children:s,component:i}=e,{props:u,children:d,patchFlag:v}=t,m=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&v>=0){if(v&1024)return!0;if(v&16)return l?Co(l,u,m):!!u;if(v&8){const _=t.dynamicProps;for(let w=0;w<_.length;w++){const O=_[w];if(Os(u,l,O)&&!Qn(m,O))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:l===u?!1:l?u?Co(l,u,m):!0:!!u;return!1}function Co(e,t,n){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let s=0;sObject.create(Is),Ms=e=>Object.getPrototypeOf(e)===Is;function xa(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:Or(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Sa(e,t,n,l){const{props:s,attrs:i,vnode:{patchFlag:u}}=e,d=ie(s),[v]=e.propsOptions;let m=!1;if((l||u>0)&&!(u&16)){if(u&8){const _=e.vnode.dynamicProps;for(let w=0;w<_.length;w++){let O=_[w];if(Qn(e.emitsOptions,O))continue;const M=t[O];if(v)if(re(i,O))M!==i[O]&&(i[O]=M,m=!0);else{const X=tt(O);s[X]=Pl(v,d,X,M,e,!1)}else M!==i[O]&&(i[O]=M,m=!0)}}}else{$s(e,t,s,i)&&(m=!0);let _;for(const w in d)(!t||!re(t,w)&&((_=Lt(w))===w||!re(t,_)))&&(v?n&&(n[w]!==void 0||n[_]!==void 0)&&(s[w]=Pl(v,d,w,void 0,e,!0)):delete s[w]);if(i!==d)for(const w in i)(!t||!re(t,w))&&(delete i[w],m=!0)}m&&wt(e.attrs,"set","")}function $s(e,t,n,l){const[s,i]=e.propsOptions;let u=!1,d;if(t)for(let v in t){if(nn(v))continue;const m=t[v];let _;s&&re(s,_=tt(v))?!i||!i.includes(_)?n[_]=m:(d||(d={}))[_]=m:Qn(e.emitsOptions,v)||(!(v in l)||m!==l[v])&&(l[v]=m,u=!0)}if(i){const v=ie(n),m=d||ve;for(let _=0;_{v=!0;const[O,M]=Rs(w,t,!0);Te(u,O),M&&d.push(...M)};!n&&t.mixins.length&&t.mixins.forEach(_),e.extends&&_(e.extends),e.mixins&&e.mixins.forEach(_)}if(!i&&!v)return ce(e)&&l.set(e,Ht),Ht;if(W(i))for(let _=0;_e==="_"||e==="_ctx"||e==="$stable",Hl=e=>W(e)?e.map(ut):[ut(e)],Da=(e,t,n)=>{if(t._n)return t;const l=Wr((...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(q(i))t[s]=Da(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])},Ta=(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)},Ea=(e,t,n)=>{const{vnode:l,slots:s}=e;let i=!0,u=ve;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=$a;function Oa(e){return Ia(e)}function Ia(e,t){const n=qn();n.__VUE__=!0;const{insert:l,remove:s,patchProp:i,createElement:u,createText:d,createComment:v,setText:m,setElementText:_,parentNode:w,nextSibling:O,setScopeId:M=dt,insertStaticContent:X}=e,N=(p,h,y,b=null,k=null,g=null,T=void 0,P=null,D=!!h.dynamicChildren)=>{if(p===h)return;p&&!Zt(p,h)&&(b=te(p),Se(p,k,g,!0),p=null),h.patchFlag===-2&&(D=!1,h.dynamicChildren=null);const{type:C,ref:L,shapeFlag:I}=h;switch(C){case Xn:he(p,h,y,b);break;case Et:de(p,h,y,b);break;case hl:p==null&&H(h,y,b,T);break;case z:We(p,h,y,b,k,g,T,P,D);break;default:I&1?fe(p,h,y,b,k,g,T,P,D):I&6?gt(p,h,y,b,k,g,T,P,D):(I&64||I&128)&&C.process(p,h,y,b,k,g,T,P,D,me)}L!=null&&k?sn(L,p&&p.ref,g,h||p,!h):L==null&&p&&p.ref!=null&&sn(p.ref,null,g,p,!0)},he=(p,h,y,b)=>{if(p==null)l(h.el=d(h.children),y,b);else{const k=h.el=p.el;h.children!==p.children&&m(k,h.children)}},de=(p,h,y,b)=>{p==null?l(h.el=v(h.children||""),y,b):h.el=p.el},H=(p,h,y,b)=>{[p.el,p.anchor]=X(p.children,h,y,b,p.el,p.anchor)},ae=({el:p,anchor:h},y,b)=>{let k;for(;p&&p!==h;)k=O(p),l(p,y,b),p=k;l(h,y,b)},V=({el:p,anchor:h})=>{let y;for(;p&&p!==h;)y=O(p),s(p),p=y;s(h)},fe=(p,h,y,b,k,g,T,P,D)=>{if(h.type==="svg"?T="svg":h.type==="math"&&(T="mathml"),p==null)Me(h,y,b,k,g,T,P,D);else{const C=p.el&&p.el._isVueCE?p.el:null;try{C&&C._beginPatch(),ht(p,h,k,g,T,P,D)}finally{C&&C._endPatch()}}},Me=(p,h,y,b,k,g,T,P)=>{let D,C;const{props:L,shapeFlag:I,transition:B,dirs:j}=p;if(D=p.el=u(p.type,g,L&&L.is,L),I&8?_(D,p.children):I&16&&je(p.children,D,null,b,k,vl(p,g),T,P),j&&At(p,null,b,"created"),$e(D,p,p.scopeId,T,b),L){for(const ne in L)ne!=="value"&&!nn(ne)&&i(D,ne,null,L[ne],g,b);"value"in L&&i(D,"value",null,L.value,g),(C=L.onVnodeBeforeMount)&&it(C,b,p)}j&&At(p,null,b,"beforeMount");const Q=Aa(k,B);Q&&B.beforeEnter(D),l(D,h,y),((C=L&&L.onVnodeMounted)||Q||j)&&Ne(()=>{try{C&&it(C,b,p),Q&&B.enter(D),j&&At(p,null,b,"mounted")}finally{}},k)},$e=(p,h,y,b,k)=>{if(y&&M(p,y),b)for(let g=0;g{for(let C=D;C{const P=h.el=p.el;let{patchFlag:D,dynamicChildren:C,dirs:L}=h;D|=p.patchFlag&16;const I=p.props||ve,B=h.props||ve;let j;if(y&&Mt(y,!1),(j=B.onVnodeBeforeUpdate)&&it(j,y,h,p),L&&At(h,p,y,"beforeUpdate"),y&&Mt(y,!0),C&&(!p.dynamicChildren||p.dynamicChildren.length!==C.length)&&(D=0,T=!1,C=null),(I.innerHTML&&B.innerHTML==null||I.textContent&&B.textContent==null)&&_(P,""),C?_e(p.dynamicChildren,C,P,y,b,vl(h,k),g):T||$(p,h,P,null,y,b,vl(h,k),g,!1),D>0){if(D&16)qe(P,I,B,y,k);else if(D&2&&I.class!==B.class&&i(P,"class",null,B.class,k),D&4&&i(P,"style",I.style,B.style,k),D&8){const Q=h.dynamicProps;for(let ne=0;ne{j&&it(j,y,h,p),L&&At(h,p,y,"updated")},b)},_e=(p,h,y,b,k,g,T)=>{for(let P=0;P{if(h!==y){if(h!==ve)for(const g in h)!nn(g)&&!(g in y)&&i(p,g,h[g],null,k,b);for(const g in y){if(nn(g))continue;const T=y[g],P=h[g];T!==P&&g!=="value"&&i(p,g,P,T,k,b)}"value"in y&&i(p,"value",h.value,y.value,k)}},We=(p,h,y,b,k,g,T,P,D)=>{const C=h.el=p?p.el:d(""),L=h.anchor=p?p.anchor:d("");let{patchFlag:I,dynamicChildren:B,slotScopeIds:j}=h;j&&(P=P?P.concat(j):j),p==null?(l(C,y,b),l(L,y,b),je(h.children||[],y,L,k,g,T,P,D)):I>0&&I&64&&B&&p.dynamicChildren&&p.dynamicChildren.length===B.length?(_e(p.dynamicChildren,B,y,k,g,T,P),(h.key!=null||k&&h===k.subTree)&&Ls(p,h,!0)):$(p,h,y,L,k,g,T,P,D)},gt=(p,h,y,b,k,g,T,P,D)=>{h.slotScopeIds=P,p==null?h.shapeFlag&512?k.ctx.activate(h,y,b,T,D):_t(h,y,b,k,g,T,D):Ot(p,h,D)},_t=(p,h,y,b,k,g,T)=>{const P=p.component=Wa(p,b,k);if(ks(p)&&(P.ctx.renderer=me),Ka(P,!1,T),P.asyncDep){if(k&&k.registerDep(P,ke,T),!p.el){const D=P.subTree=Ct(Et);de(null,D,h,y),p.placeholder=D.el}}else ke(P,p,h,y,k,g,T)},Ot=(p,h,y)=>{const b=h.component=p.component;if(ka(p,h,y))if(b.asyncDep&&!b.asyncResolved){ue(b,h,y);return}else b.next=h,b.update();else h.el=p.el,b.vnode=h},ke=(p,h,y,b,k,g,T)=>{const P=()=>{if(p.isMounted){let{next:I,bu:B,u:j,parent:Q,vnode:ne}=p;{const Ge=Fs(p);if(Ge){I&&(I.el=ne.el,ue(p,I,T)),Ge.asyncDep.then(()=>{Ne(()=>{p.isUnmounted||C()},k)});return}}let oe=I,be;Mt(p,!1),I?(I.el=ne.el,ue(p,I,T)):I=ne,B&&En(B),(be=I.props&&I.props.onVnodeBeforeUpdate)&&it(be,Q,I,ne),Mt(p,!0);const ye=ko(p),Je=p.subTree;p.subTree=ye,N(Je,ye,w(Je.el),te(Je),p,k,g),I.el=ye.el,oe===null&&Ca(p,ye.el),j&&Ne(j,k),(be=I.props&&I.props.onVnodeUpdated)&&Ne(()=>it(be,Q,I,ne),k)}else{let I;const{el:B,props:j}=h,{bm:Q,m:ne,parent:oe,root:be,type:ye}=p,Je=rn(h);Mt(p,!1),Q&&En(Q),!Je&&(I=j&&j.onVnodeBeforeMount)&&it(I,oe,h),Mt(p,!0);{be.ce&&be.ce._hasShadowRoot()&&be.ce._injectChildStyle(ye,p.parent?p.parent.type:void 0);const Ge=p.subTree=ko(p);N(null,Ge,y,b,p,k,g),h.el=Ge.el}if(ne&&Ne(ne,k),!Je&&(I=j&&j.onVnodeMounted)){const Ge=h;Ne(()=>it(I,oe,Ge),k)}(h.shapeFlag&256||oe&&rn(oe.vnode)&&oe.vnode.shapeFlag&256)&&p.a&&Ne(p.a,k),p.isMounted=!0,h=y=b=null}};p.scope.on();const D=p.effect=new Xo(P);p.scope.off();const C=p.update=D.run.bind(D),L=p.job=D.runIfDirty.bind(D);L.i=p,L.id=p.uid,D.scheduler=()=>Nl(L),Mt(p,!0),C()},ue=(p,h,y)=>{h.component=p;const b=p.vnode.props;p.vnode=h,p.next=null,Sa(p,h.props,b,y),Ea(p,h.children,y),pt(),ho(p),vt()},$=(p,h,y,b,k,g,T,P,D=!1)=>{const C=p&&p.children,L=p?p.shapeFlag:0,I=h.children,{patchFlag:B,shapeFlag:j}=h;if(B>0){if(B&128){Z(C,I,y,b,k,g,T,P,D);return}else if(B&256){Fe(C,I,y,b,k,g,T,P,D);return}}j&8?(L&16&&Re(C,k,g),I!==C&&_(y,I)):L&16?j&16?Z(C,I,y,b,k,g,T,P,D):Re(C,k,g,!0):(L&8&&_(y,""),j&16&&je(I,y,b,k,g,T,P,D))},Fe=(p,h,y,b,k,g,T,P,D)=>{p=p||Ht,h=h||Ht;const C=p.length,L=h.length,I=Math.min(C,L);let B;for(B=0;BL?Re(p,k,g,!0,!1,I):je(h,y,b,k,g,T,P,D,I)},Z=(p,h,y,b,k,g,T,P,D)=>{let C=0;const L=h.length;let I=p.length-1,B=L-1;for(;C<=I&&C<=B;){const j=p[C],Q=h[C]=D?bt(h[C]):ut(h[C]);if(Zt(j,Q))N(j,Q,y,null,k,g,T,P,D);else break;C++}for(;C<=I&&C<=B;){const j=p[I],Q=h[B]=D?bt(h[B]):ut(h[B]);if(Zt(j,Q))N(j,Q,y,null,k,g,T,P,D);else break;I--,B--}if(C>I){if(C<=B){const j=B+1,Q=jB)for(;C<=I;)Se(p[C],k,g,!0),C++;else{const j=C,Q=C,ne=new Map;for(C=Q;C<=B;C++){const Oe=h[C]=D?bt(h[C]):ut(h[C]);Oe.key!=null&&ne.set(Oe.key,C)}let oe,be=0;const ye=B-Q+1;let Je=!1,Ge=0;const It=new Array(ye);for(C=0;C=ye){Se(Oe,k,g,!0);continue}let ze;if(Oe.key!=null)ze=ne.get(Oe.key);else for(oe=Q;oe<=B;oe++)if(It[oe-Q]===0&&Zt(Oe,h[oe])){ze=oe;break}ze===void 0?Se(Oe,k,g,!0):(It[ze-Q]=C+1,ze>=Ge?Ge=ze:Je=!0,N(Oe,h[ze],y,null,k,g,T,P,D),be++)}const Ft=Je?Ma(It):Ht;for(oe=Ft.length-1,C=ye-1;C>=0;C--){const Oe=Q+C,ze=h[Oe],Ue=h[Oe+1],R=Oe+1{const{el:g,type:T,transition:P,children:D,shapeFlag:C}=p;if(C&6){Ee(p.component.subTree,h,y,b);return}if(C&128){p.suspense.move(h,y,b);return}if(C&64){T.move(p,h,y,me);return}if(T===z){l(g,h,y);for(let I=0;IP.enter(g),k));else{const{leave:I,delayLeave:B,afterLeave:j}=P,Q=()=>{p.ctx.isUnmounted?s(g):l(g,h,y)},ne=()=>{const oe=g._isLeaving||!!g[fl];g._isLeaving&&g[fl](!0),P.persisted&&!oe?Q():I(g,()=>{Q(),j&&j()})};B?B(g,Q,ne):ne()}else l(g,h,y)},Se=(p,h,y,b=!1,k=!1)=>{const{type:g,props:T,ref:P,children:D,dynamicChildren:C,shapeFlag:L,patchFlag:I,dirs:B,cacheIndex:j,memo:Q}=p;if(I===-2&&(k=!1),P!=null&&(pt(),sn(P,null,y,p,!0),vt()),j!=null&&(h.renderCache[j]=void 0),L&256){h.ctx.deactivate(p);return}const ne=L&1&&B,oe=!rn(p);let be;if(oe&&(be=T&&T.onVnodeBeforeUnmount)&&it(be,h,p),L&6)Ze(p.component,y,b);else{if(L&128){p.suspense.unmount(y,b);return}ne&&At(p,null,h,"beforeUnmount"),L&64?p.type.remove(p,h,y,me,b):C&&!C.hasOnce&&(g!==z||I>0&&I&64)?Re(C,h,y,!1,!0):(g===z&&I&384||!k&&L&16)&&Re(D,h,y),b&&Y(p)}const ye=Q!=null&&j==null;(oe&&(be=T&&T.onVnodeUnmounted)||ne||ye)&&Ne(()=>{be&&it(be,h,p),ne&&At(p,null,h,"unmounted"),ye&&(p.el=null)},y)},Y=p=>{const{type:h,el:y,anchor:b,transition:k}=p;if(h===z){Xe(y,b);return}if(h===hl){V(p);return}const g=()=>{s(y),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(p.shapeFlag&1&&k&&!k.persisted){const{leave:T,delayLeave:P}=k,D=()=>T(y,g);P?P(p.el,g,D):D()}else g()},Xe=(p,h)=>{let y;for(;p!==h;)y=O(p),s(p),p=y;s(h)},Ze=(p,h,y)=>{const{bum:b,scope:k,job:g,subTree:T,um:P,m:D,a:C}=p;So(D),So(C),b&&En(b),k.stop(),g&&(g.flags|=8,Se(T,p,h,y)),P&&Ne(P,h),Ne(()=>{p.isUnmounted=!0},h)},Re=(p,h,y,b=!1,k=!1,g=0)=>{for(let T=g;T{if(p.shapeFlag&6)return te(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const h=O(p.anchor||p.el),y=h&&h[Gr];return y?O(y):h};let Ce=!1;const xe=(p,h,y)=>{let b;p==null?h._vnode&&(Se(h._vnode,null,null,!0),b=h._vnode.component):N(h._vnode||null,p,h,null,null,null,y),h._vnode=p,Ce||(Ce=!0,ho(b),gs(),Ce=!1)},me={p:N,um:Se,m:Ee,r:Y,mt:_t,mc:je,pc:$,pbc:_e,n:te,o:e};return{render:xe,hydrate:void 0,createApp:ga(xe)}}function vl({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 Mt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Aa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function 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 $a(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):jr(e)}const z=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),hl=Symbol.for("v-stc"),un=[];let Ke=null;function x(e=!1){un.push(Ke=e?null:[])}function Ra(){un.pop(),Ke=un[un.length-1]||null}let pn=1;function Po(e,t=!1){pn+=e,e<0&&Ke&&t&&(Ke.hasOnce=!0)}function Ws(e){return e.dynamicChildren=pn>0?Ke||Ht:null,Ra(),pn>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 Ua(e,t,n,l,s){return Ws(Ct(e,t,n,l,s,!0))}function Hs(e){return e?e.__v_isVNode===!0:!1}function Zt(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)||Ae(e)||q(e)?{i:Ye,r:e,k:t,f:!!n}:e:null);function o(e,t=null,n=null,l=0,s=null,i=e===z?0:1,u=!1,d=!1){const v={__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:Ye};return d?(Bn(v,n),i&128&&e.normalize(v)):n&&(v.shapeFlag|=we(n)?8:16),pn>0&&!u&&Ke&&(v.patchFlag>0||i&6)&&v.patchFlag!==32&&Ke.push(v),v}const Ct=Ba;function Ba(e,t=null,n=null,l=0,s=null,i=!1){if((!e||e===aa)&&(e=Et),Hs(e)){const d=Yt(e,t,!0);return n&&Bn(d,n),pn>0&&!i&&Ke&&(d.shapeFlag&6?Ke[Ke.indexOf(e)]=d:Ke.push(d)),d.patchFlag=-2,d}if(za(e)&&(e=e.__vccOpts),t){t=Va(t);let{class:d,style:v}=t;d&&!we(d)&&(t.class=Jn(d)),ce(v)&&(Fl(v)&&!W(v)&&(v=Te({},v)),t.style=Al(v))}const u=we(e)?1:js(e)?128:zr(e)?64:ce(e)?4:q(e)?2:0;return o(e,t,n,l,s,u,i,!0)}function Va(e){return e?Fl(e)||Ms(e)?Te({},e):e:null}function Yt(e,t,n=!1,l=!1){const{props:s,ref:i,patchFlag:u,children:d,transition:v}=e,m=t?Fa(s||{},t):s,_={__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!==z?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:v,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yt(e.ssContent),ssFallback:e.ssFallback&&Yt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return v&&l&&jl(_,v.clone(_)),_}function La(e=" ",t=0){return Ct(Xn,null,e,t)}function J(e="",t=!1){return t?(x(),Ua(Et,null,e)):Ct(Et,null,e)}function ut(e){return e==null||typeof e=="boolean"?Ct(Et):W(e)?Ct(z,null,e.slice()):Hs(e)?bt(e):Ct(Xn,null,String(e))}function bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yt(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=Ye:s===3&&Ye&&(Ye.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(q(t)){if(l&65){Bn(e,{default:t});return}t={default:t,_ctx:Ye},n=32}else t=String(t),l&64?(n=16,t=[La(t)]):n=8;e.children=t,e.shapeFlag|=n}function Fa(...e){const t={};for(let n=0;nLe||Ye;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=>Le=n),Dl=t("__VUE_SSR_SETTERS__",n=>vn=n)}const mn=e=>{const t=Le;return Vn(e),e.scope.on(),()=>{e.scope.off(),Vn(t)}},Do=()=>{Le&&Le.scope.off(),Vn(null)};function qs(e){return e.vnode.shapeFlag&4}let vn=!1;function Ka(e,t=!1,n=!1){t&&Dl(t);const{props:l,children:s}=e.vnode,i=qs(e);xa(e,l,i,t),Ta(e,s,n||t);const u=i?qa(e,t):void 0;return t&&Dl(!1),u}function qa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ua);const{setup:l}=n;if(l){pt();const s=e.setupContext=l.length>1?Ga(e):null,i=mn(e),u=_n(l,e,0,[e.props,s]),d=Ho(u);if(vt(),i(),(d||e.sp)&&!rn(e)&&ws(e),d){if(u.then(Do,Do),t)return u.then(v=>{To(e,v)}).catch(v=>{zn(v,e,0)});e.asyncDep=u}else To(e,u)}else Js(e)}function To(e,t,n){q(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||dt);{const s=mn(e);pt();try{ca(e)}finally{vt(),s()}}}const Ja={get(e,t){return Ie(e,"get",""),e[t]}};function Ga(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ja),slots:e.slots,emit:e.emit,expose:t}}function Zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(fs(Ir(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in an)return an[n](e)},has(t,n){return n in t||n in an}})):e.proxy}function za(e){return q(e)&&"__vccOpts"in e}const Dt=(e,t)=>Br(e,t,vn),Ya="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,Qa="http://www.w3.org/2000/svg",Xa="http://www.w3.org/1998/Math/MathML",yt=typeof document<"u"?document:null,Oo=yt&&yt.createElement("template"),Za={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"?yt.createElementNS(Qa,e):t==="mathml"?yt.createElementNS(Xa,e):n?yt.createElement(e,{is:n}):yt.createElement(e);return e==="select"&&l&&l.multiple!=null&&s.setAttribute("multiple",l.multiple),s},createText:e=>yt.createTextNode(e),createComment:e=>yt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yt.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 v=d.firstChild;for(;v.firstChild;)d.appendChild(v.firstChild);d.removeChild(v)}t.insertBefore(d,n)}return[u?u.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},eu=Symbol("_vtc");function tu(e,t,n){const l=e[eu];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Io=Symbol("_vod"),nu=Symbol("_vsh"),lu=Symbol(""),ou=/(?:^|;)\s*display\s*:/;function su(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&&tn(l,d,"")}else for(const u in t)n[u]==null&&tn(l,u,"");for(const u in n){u==="display"&&(i=!0);const d=n[u];d!=null?ru(e,u,!we(t)&&t?t[u]:void 0,d)||tn(l,u,d):tn(l,u,"")}}else if(s){if(t!==n){const u=l[lu];u&&(n+=";"+u),l.cssText=n,i=ou.test(n)}}else t&&e.removeAttribute("style");Io in e&&(e[Io]=i?l.display:"",e[nu]&&(l.display="none"))}const Ao=/\s*!important$/;function tn(e,t,n){if(W(n))n.forEach(l=>tn(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=iu(e,t);Ao.test(n)?e.setProperty(Lt(l),n.replace(Ao,""),"important"):e[l]=n}}const Mo=["Webkit","Moz","ms"],gl={};function iu(e,t){const n=gl[t];if(n)return n;let l=tt(t);if(l!=="filter"&&l in e)return gl[t]=l;l=Jo(l);for(let s=0;s_l||(pu.then(()=>_l=0),_l=Date.now());function hu(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 v=0;ve.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,gu=(e,t,n,l,s,i)=>{const u=s==="svg";t==="class"?tu(e,l,u):t==="style"?su(e,n,l):Nn(t)?jn(t)||uu(e,t,n,l,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_u(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&&(mu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!we(l)))?Uo(e,tt(t),l,i,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Ro(e,t,l,u))};function _u(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Vo(t)&&q(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 mu(e,t){const n=e._def.props;if(!n)return!1;const l=tt(t);return Array.isArray(n)?n.some(s=>tt(s)===l):Object.keys(n).some(s=>tt(s)===l)}const Ln=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>En(t,n):t};function yu(e){e.target.composing=!0}function Lo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Gt=Symbol("_assign");function Fo(e,t,n){return t&&(e=e.trim()),n&&(e=Kn(e)),e}const U={created(e,{modifiers:{lazy:t,trim:n,number:l}},s){e[Gt]=Ln(s);const i=l||s.props&&s.props.type==="number";Ut(e,t?"change":"input",u=>{u.target.composing||e[Gt](Fo(e.value,n,i))}),(n||i)&&Ut(e,"change",()=>{e.value=Fo(e.value,n,i)}),t||(Ut(e,"compositionstart",yu),Ut(e,"compositionend",Lo),Ut(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[Gt]=Ln(u),e.composing)return;const d=(i||e.type==="number")&&!/^0\d/.test(e.value)?Kn(e.value):e.value,v=t??"";if(d===v)return;const m=e.getRootNode();(m instanceof Document||m instanceof ShadowRoot)&&m.activeElement===e&&e.type!=="range"&&(l&&t===n||s&&e.value.trim()===v)||(e.value=v)}},$t={deep:!0,created(e,{value:t,modifiers:{number:n}},l){const s=Wn(t);Ut(e,"change",()=>{const i=Array.prototype.filter.call(e.options,u=>u.selected).map(u=>n?Kn(Fn(u)):Fn(u));e[Gt](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,vs(()=>{e._assigning=!1})}),e[Gt]=Ln(l)},mounted(e,{value:t}){No(e,t)},beforeUpdate(e,t,n){e[Gt]=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=cr(t,d)>-1}else u.selected=t.has(d);else if(gn(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 bu=Te({patchProp:gu},Za);let jo;function wu(){return jo||(jo=Oa(bu))}const ku=((...e)=>{const t=wu().createApp(...e),{mount:n}=t;return t.mount=l=>{const s=xu(l);if(!s)return;const i=t._component;!q(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const u=n(s,!1,Cu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),u},t});function Cu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function xu(e){return we(e)?document.querySelector(e):e}const Su="/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 Pu 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 ee(e,t){return et(e,{method:"GET",query:t})}async function G(e,t){return et(e,{method:"POST",body:t})}async function et(e,t={}){const l=await(await fetch(Du(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 Pu(l.error_code,l.message,l.details);return l.data}function Du(e,t){const n=e.replace(/^\/+/,""),l=new URL(`${Su}/${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 Tu={class:"web-shell"},Eu={class:"sidebar"},Ou={class:"brand"},Iu=["onClick"],Au={class:"workspace"},Mu={class:"topbar"},$u={class:"actions"},Ru=["disabled"],Uu={key:0,class:"notice error"},Bu={key:1,class:"notice"},Vu={key:0,class:"dashboard-grid"},Lu={key:1,class:"list-view"},Fu={class:"form-grid"},Nu={class:"wide-field"},ju=["disabled"],Wu=["disabled"],Hu={key:0},Ku={key:1,class:"form-grid"},qu={class:"wide-field"},Ju={class:"wide-field"},Gu={class:"wide-field"},zu={class:"wide-field"},Yu={class:"wide-field"},Qu=["disabled"],Xu=["disabled"],Zu={class:"inline-actions"},ec={class:"badge"},tc=["disabled","onClick"],nc=["disabled","onClick"],lc={key:0,class:"empty"},oc={key:2,class:"split-view"},sc={class:"list-view"},ic={class:"form-grid"},rc=["disabled"],ac={class:"inline-actions"},uc={class:"badge"},cc=["disabled","onClick"],dc=["disabled","onClick"],fc=["disabled","onClick"],pc=["disabled","onClick"],vc={key:0,class:"empty"},hc={key:0,class:"editor-panel"},gc={class:"form-grid"},_c=["disabled"],mc=["disabled","onClick"],yc={class:"list-view"},bc={class:"inline-actions"},wc=["disabled"],kc={class:"form-grid"},Cc={class:"wide-field"},xc={class:"wide-field"},Sc={class:"wide-field"},Pc=["disabled"],Dc=["disabled"],Tc={class:"form-grid"},Ec={class:"wide-field"},Oc=["disabled"],Ic=["disabled"],Ac={class:"inline-actions"},Mc={class:"badge"},$c=["disabled","onClick"],Rc=["disabled","onClick"],Uc=["disabled","onClick"],Bc=["disabled","onClick"],Vc={key:0,class:"empty"},Lc={class:"inline-actions"},Fc={key:0,class:"badge"},Nc=["disabled","onClick"],jc=["disabled","onClick"],Wc=["disabled","onClick"],Hc=["disabled","onClick"],Kc=["disabled","onClick"],qc=["disabled","onClick"],Jc={key:0,class:"empty"},Gc={key:0},zc={key:1},Yc={class:"editor-panel"},Qc={key:0,class:"empty"},Xc={key:2,class:"editor-panel"},Zc={key:3},ed={key:3,class:"split-view"},td={class:"list-view"},nd={class:"form-grid"},ld=["disabled"],od=["disabled"],sd={class:"inline-actions"},id=["disabled","onClick"],rd=["disabled","onClick"],ad={key:0,class:"empty"},ud={class:"list-view"},cd={class:"inline-actions"},dd=["disabled"],fd={class:"form-grid"},pd={value:""},vd=["value"],hd=["disabled"],gd=["disabled"],_d={class:"inline-actions"},md={class:"badge"},yd=["disabled","onClick"],bd=["disabled","onClick"],wd=["disabled","onClick"],kd=["disabled","onClick"],Cd={key:0,class:"empty"},xd={class:"form-grid"},Sd={value:""},Pd=["value"],Dd=["disabled"],Td=["disabled"],Ed={key:0},Od={key:4,class:"list-view"},Id=["disabled"],Ad={class:"form-grid"},Md={value:""},$d=["value"],Rd=["disabled"],Ud={class:"inline-actions"},Bd=["disabled","onClick"],Vd={key:0,class:"empty"},Ld={key:0},Fd={class:"form-grid"},Nd=["disabled"],jd={key:1},Wd={key:5,class:"list-view"},Hd={class:"inline-actions"},Kd=["disabled"],qd=["disabled"],Jd={class:"form-grid"},Gd={value:""},zd=["value"],Yd={value:""},Qd=["value"],Xd={value:""},Zd=["value"],ef=["disabled"],tf={class:"inline-actions"},nf={class:"badge"},lf=["onClick"],of=["onClick"],sf=["disabled","onClick"],rf={key:0,class:"empty"},af={key:0,class:"editor-panel"},uf={key:6,class:"split-view"},cf={class:"list-view"},df={class:"inline-actions"},ff=["disabled"],pf=["disabled"],vf={class:"form-grid"},hf=["disabled"],gf={key:0},_f={class:"list-view"},mf={class:"inline-actions"},yf={class:"badge"},bf=["disabled","onClick"],wf=["disabled","onClick"],kf=["disabled","onClick"],Cf={key:0,class:"empty"},xf={key:7,class:"logs-view"},Sf={class:"split-view"},Pf={class:"list-view"},Df={key:0,class:"empty"},Tf={class:"list-view"},Ef={class:"badge"},Of={key:0,class:"empty"},If={class:"split-view"},Af={class:"list-view"},Mf={key:0,class:"empty"},$f={class:"list-view"},Rf={class:"badge"},Uf={key:0,class:"empty"},Bf={class:"list-view"},Vf={class:"badge"},Lf={key:0,class:"empty"},Ff={key:0},Nf={class:"list-view"},jf={class:"form-grid"},Wf=["disabled"],Hf={key:0,class:"empty"},Kf={key:8,class:"settings-view"},qf={class:"toolbar"},Jf=["disabled"],Gf=["disabled"],zf=["disabled"],Yf=["disabled"],Qf=["disabled"],Xf=["disabled"],Zf=["disabled"],ep={class:"settings-sections"},tp={class:"editor-panel"},np={class:"editor-panel"},lp=["disabled"],op={class:"editor-panel"},sp=["disabled","onClick"],ip={class:"split-view"},rp={class:"list-view"},ap={class:"list-view"},up={class:"inspector"},cp=Yr({__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:"集成",integrationEvents:"集成事件",auditLogs:"审计",targetType:"TargetType",actor:"操作人",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"),s=F(null),i=F(null),u=F(null),d=F([]),v=F(null),m=F([]),_=F([]),w=F(null),O=F(""),M=F([]),X=F(null),N=F(null),he=F(null),de=F(null),H=F(null),ae=F(null),V=F([]),fe=F(null),Me=F([]),$e=F([]),je=F([]),ht=F(null),_e=F({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),qe=F([]),We=F(null),gt=F(""),_t=F(""),Ot=F([]),ke=F(null),ue=F(null),$=F({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),Fe=F(null),Z=F({profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}),Ee=F({display_name:"",workflow_type:"single_image"}),Se=F({branch_name:""}),Y=F({node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}),Xe=F({model_route:"",prompt:"",negative_prompt:""}),Ze=F({status:"",profile_id:"",workflow_id:""}),Re=F({action:"",target_type:"",actor_id:""}),te=F({material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}),Ce=F({display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}),xe=F({category_id:"",name:"",category_type:"material",sort_order:0}),me=F({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),He=F({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),p=F(null),h=F({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),y=F(null),b=F(""),k=F(!0),g=F(""),T=F(""),P=Dt(()=>{var f,c;return((c=(f=u.value)==null?void 0:f.items[0])==null?void 0:c.profile_id)??""}),D=Dt(()=>{var f,c;return((c=(f=u.value)==null?void 0:f.items[0])==null?void 0:c.name)??t.noProfile}),C=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}),L=Dt(()=>{var f;return((f=fe.value)==null?void 0:f.items.filter(c=>c.recognition_status!=="confirmed").length)??0}),I=Dt(()=>{var f;return(((f=fe.value)==null?void 0:f.items)??[]).filter(c=>c.recognition_status==="confirmed")}),B=Dt(()=>{var f;return((f=v.value)==null?void 0:f.nodes.find(c=>c.node_id===O.value))??null}),j=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],Q=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(ne);async function ne(){var f,c;k.value=!0,T.value="";try{const[K,se,Pe,st,bn,Qt,wn,kn,Cn,xn,Sn]=await Promise.all([ee(E.uiBootstrap),ee(E.dashboardSummary),ee(E.profiles,{page:1,page_size:20}),ee(E.jobs,{page:1,page_size:20}),ee(E.settingsSchema),ee(E.settingsCurrent),ee(E.storageStatus),ee(E.materialCategories),ee(E.materials,{page:1,page_size:24}),ee(E.apiDiscoveryDialects),ee(E.apiDiscoveryCapabilities)]);s.value=K,i.value=se,u.value=Pe,N.value=st,de.value=bn,H.value=Qt,Nt(Qt.config),ae.value=wn,V.value=kn,fe.value=Cn,$e.value=xn,je.value=Sn,await Ge((f=Pe.items[0])==null?void 0:f.profile_id),await It((c=Pe.items[0])==null?void 0:c.profile_id),await oe()}catch(K){T.value=K instanceof Error?K.message:t.loadFailed}finally{k.value=!1}}async function oe(){const[f,c,K,se,Pe,st]=await Promise.allSettled([ee(E.generationLogs,{limit:12}),ee(E.workflowLogs,{limit:12}),ee(E.errorLogs,{limit:12}),ee(E.integrationLogs,{limit:12}),ee(E.integrationEventLogs),ee(E.auditLogs,{limit:12})]);_e.value={generation:ye(f),workflows:ye(c),errors:ye(K),integrations:ye(se),audit:ye(st)},qe.value=ye(Pe)}async function be(){_e.value.audit=await ee(E.auditLogs,{action:Re.value.action||void 0,target_type:Re.value.target_type||void 0,actor_id:Re.value.actor_id||void 0,limit:20})}function ye(f){return f.status==="fulfilled"?f.value:[]}async function Je(){N.value=await ee(E.jobs,{status:Ze.value.status||void 0,profile_id:Ze.value.profile_id||void 0,workflow_id:Ze.value.workflow_id||void 0,page:1,page_size:20})}async function Ge(f){if(!f){Me.value=[];return}Me.value=await ee(E.wardrobe(f))}async function It(f){var se,Pe;if(!f){d.value=[],v.value=null,m.value=[],_.value=[],O.value="",M.value=[];return}d.value=await ee(E.profileWorkflows(f));const c=(se=v.value)==null?void 0:se.workflow.workflow_id,K=d.value.some(st=>st.workflow_id===c)?c:(Pe=d.value[0])==null?void 0:Pe.workflow_id;K?await Ft(K):v.value=null}async function Ft(f){var Pe;const c=await ee(E.workflow(f));v.value=c;const K=O.value,se=c.nodes.some(st=>st.node_id===K)?K:c.workflow.current_node_id||((Pe=c.nodes[0])==null?void 0:Pe.node_id);se?await Oe(se):(O.value="",M.value=[]),await ze(f)}async function Oe(f){O.value=f,M.value=await ee(E.nodeImages(f))}async function ze(f){const[c,K]=await Promise.all([ee(E.workflowBranches(f)),ee(E.workflowHistory(f))]);m.value=c,_.value=K}async function Ue(){var c;const f=(c=v.value)==null?void 0:c.workflow.workflow_id;f&&await Ft(f)}async function R(f,c,K=!0){g.value=f,T.value="";try{const se=await c();b.value=`${f}${t.complete}`,f===t.exportSettings&&(b.value=`${t.exportDone}: ${!!se.redacted}`),K&&await ne()}catch(se){T.value=se instanceof Error?se.message:`${f}${t.failed}`}finally{g.value=""}}function zs(f){return R(t.retry,()=>G(E.jobRetry(f)))}function Ys(f){return R(t.cancel,()=>G(E.jobCancel(f)))}function Qs(f){return R(t.detail,async()=>(he.value=await ee(E.job(f)),he.value),!1)}function Xs(){$.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},Fe.value=null}function Zs(){return R(t.quickDraft,async()=>(Fe.value=await G(E.quickProfileDraft,{questionnaire:{name:$.value.name,identity:$.value.identity,personality:Pt($.value.personality),hair_color:$.value.hair_color,hairstyle:$.value.hairstyle,eye_color:$.value.eye_color,style:$.value.style,clothing_keywords:Pt($.value.clothing_keywords)}}),Fe.value),!1)}function ei(){var c;const f=(c=Fe.value)==null?void 0:c.profile_preview;return R(t.create,async()=>{const K=await G(E.profiles,{name:(f==null?void 0:f.name)||$.value.name,description:$.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 Xs(),b.value=t.profileCreated,K})}function ti(f){return R(t.delete,async()=>{const c=await et(E.profile(f),{method:"DELETE"});return b.value=t.profileDeleted,c})}function Kl(){Z.value={profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}}function ni(f){Z.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 li(){return Z.value.profile_id?R(t.update,async()=>{const f=await et(E.profile(Z.value.profile_id),{method:"PUT",body:{name:Z.value.name,description:Z.value.description||void 0,base_prompt:Z.value.base_prompt||void 0,appearance_prompt:Z.value.appearance_prompt||void 0,style_prompt:Z.value.style_prompt||void 0,negative_prompt:Z.value.negative_prompt||void 0,default_model_route:Z.value.default_model_route||void 0}});return Kl(),b.value=t.profileUpdated,f}):Promise.resolve()}function oi(){const f=P.value;return f?R(t.create,async()=>{const c=await G(E.profileWorkflows(f),{display_name:Ee.value.display_name,workflow_type:Ee.value.workflow_type});return Ee.value.display_name="",v.value=c,b.value=t.workflowCreated,c}):Promise.resolve()}function si(f){return R(t.start,()=>G(E.workflowStart(f)))}function ii(f){return R(t.cancel,()=>G(E.workflowCancel(f)))}function ri(f){return R(t.archive,()=>G(E.workflowArchive(f)))}function ai(){var c;const f=(c=v.value)==null?void 0:c.workflow;return!f||!Se.value.branch_name?Promise.resolve():R(t.branches,async()=>{const K=await G(E.workflowBranches(f.workflow_id),{branch_name:Se.value.branch_name,base_branch_name:f.current_branch,base_node_id:O.value||f.current_node_id,copy_nodes:!0});return Se.value.branch_name="",await Ue(),b.value=t.branchCreated,K},!1)}function ui(f){var K;const c=(K=v.value)==null?void 0:K.workflow.workflow_id;return c?R(t.switchBranch,async()=>{const se=await G(E.workflowSwitchBranch(c),{branch_name:f});return await Ue(),se},!1):Promise.resolve()}function el(){Y.value={node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}}function ci(f){Y.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 di(){var K;const f=(K=v.value)==null?void 0:K.workflow.workflow_id;if(!f||!Y.value.node_key||!Y.value.title)return Promise.resolve();const c={node_key:Y.value.node_key,title:Y.value.title,description:Y.value.description||void 0,node_type:Y.value.node_type||"generation",status:Y.value.status||"pending",prompt:Y.value.prompt||void 0,negative_prompt:Y.value.negative_prompt||void 0,model_route:Y.value.model_route||void 0};return Y.value.node_id?R(t.update,async()=>{const se=await et(E.node(Y.value.node_id),{method:"PUT",body:c});return el(),await Ue(),b.value=t.nodeUpdated,se},!1):R(t.create,async()=>{const se=await G(E.workflowNodes(f),c);return el(),await Ue(),b.value=t.nodeCreated,se},!1)}function fi(){var c;const f=(c=v.value)==null?void 0:c.workflow.workflow_id;return f?R(t.review,async()=>(w.value=await ee(E.workflowReview(f)),w.value),!1):Promise.resolve()}function pi(){const f=O.value;return f?R(t.review,async()=>(w.value=await ee(E.nodeReview(f)),w.value),!1):Promise.resolve()}function vi(){const f=O.value;return f?R(t.generate,async()=>(X.value=await G(E.nodeGenerate(f),{model_route:Xe.value.model_route||void 0,prompt:Xe.value.prompt||void 0,negative_prompt:Xe.value.negative_prompt||void 0}),await Ue(),b.value=t.generationQueued,X.value),!1):Promise.resolve()}function hi(f){return R(t.retry,async()=>{const c=await G(E.nodeRetry(f));return await Ue(),b.value=t.nodeQueued,c},!1)}function gi(f){return R(t.complete,async()=>{const c=await G(E.nodeComplete(f));return await Ue(),b.value=t.nodeCompleted,c},!1)}function _i(f){const c=O.value;return c?R(t.select,async()=>{const K=await G(E.nodeSelectImage(c),{image_id:f});return await Ue(),K},!1):Promise.resolve()}function mi(f){const c=O.value;return c?R(t.adopt,async()=>{var se;const K=await G(E.nodeAdoptImage(c),{image_id:f,title:(se=B.value)==null?void 0:se.title});return await Ue(),K},!1):Promise.resolve()}function yi(f){return R(t.unselect,async()=>{const c=await G(E.imageUnselect(f));return await Ue(),c},!1)}function bi(f){return R(t.archive,async()=>{const c=await G(E.imageArchive(f));return await Ue(),b.value=t.imageArchived,c},!1)}function wi(f){return R(t.delete,async()=>{const c=await et(E.image(f),{method:"DELETE"});return await Ue(),b.value=t.imageDeleted,c},!1)}function ki(){return R(t.moveFailed,()=>G(E.jobDeadLetterMoveFailed,{limit:20}))}function Ci(){return R(t.retryDead,()=>G(E.jobDeadLetterRetry,{limit:20}))}function xi(){var c;const f=((c=$e.value[0])==null?void 0:c.dialect)??"unknown";return R(t.safeProbe,()=>G(E.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:f,capabilities:{supports:["text_to_image"]}}))}function Si(){var c;const f=((c=$e.value[0])==null?void 0:c.dialect)??"unknown";return R(t.probeProvider,()=>G(E.apiDiscoveryProbeProvider,{provider_id:h.value.provider_id||"local-preview",model_id:h.value.model_id||"metadata-only",dialect:f,capabilities:{supports:Pt(h.value.required_capabilities)}}))}function Pi(){return R(t.validatePlan,async()=>(y.value=await G(E.apiDiscoveryValidateRenderPlan,{provider_id:h.value.provider_id,model_id:h.value.model_id,required_capabilities:Pt(h.value.required_capabilities)}),y.value),!1)}function tl(f,c){return R(t.discovery,()=>G(E.apiDiscoveryManualOverride,{provider_id:f.provider_id,model_id:f.model_id,dialect:f.dialect,status:c,capabilities:f.capabilities}))}function Di(){const f=P.value;return f?R(t.matchWardrobe,async()=>(ht.value=await G(E.wardrobeMatch(f),{tags:["daily"]}),ht.value),!1):Promise.resolve()}function Ti(){me.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function Ei(){const f=P.value;return f?R(t.importToWardrobe,async()=>{const c=await G(E.wardrobeImportMaterial(f),{material_id:me.value.material_id,wardrobe_category:me.value.wardrobe_category,tags:Pt(me.value.tags),season:me.value.season||void 0,style:me.value.style||void 0});return Ti(),b.value=t.wardrobeImported,c}):Promise.resolve()}function Oi(f){const c=P.value;return c?R(t.delete,async()=>{const K=await et(E.wardrobeItem(c,f),{method:"DELETE"});return b.value=t.wardrobeDeleted,K}):Promise.resolve()}function Ii(){const f=P.value;return f?R(t.dailyOutfit,async()=>(p.value=await G(E.privateCompanionDailyOutfit,{profile_id:f,categories:Pt(He.value.categories),mood:He.value.mood,weather:He.value.weather,keywords:Pt(He.value.keywords),request_source:"astrbot_plugin_private_companion"}),b.value=t.outfitGenerated,p.value),!1):Promise.resolve()}function Ai(){return R(t.reload,async()=>{var c;const f=await G(E.settingsReload);return H.value={config_path:((c=H.value)==null?void 0:c.config_path)??"***PATH***",config:f.config},Nt(f.config),f},!1)}function Mi(){return R(t.exportSettings,()=>ee(E.settingsExport),!1)}function Nt(f=(c=>(c=H.value)==null?void 0:c.config)()??{}){gt.value=JSON.stringify(f,null,2),ke.value=null,ue.value=null}function nl(){try{const f=JSON.parse(gt.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 $i(){try{const f=JSON.parse(_t.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 Ri(){return R(t.validate,async()=>(ke.value=await G(E.settingsValidate,{config:nl()}),ke.value),!1)}function Ui(){return R(t.diff,async()=>(ue.value=await G(E.settingsDiff,{config:nl()}),ue.value),!1)}function Bi(){return R(t.save,async()=>{var c;const f=await G(E.settingsSave,{config:nl()});return H.value={config_path:((c=H.value)==null?void 0:c.config_path)??"***PATH***",config:f.config},Nt(f.config),b.value=t.settingsSaved,f},!1)}function Vi(){return R(t.importSettings,async()=>{var c;const f=await G(E.settingsImport,{config:$i()});return H.value={config_path:((c=H.value)==null?void 0:c.config_path)??"***PATH***",config:f.config},Nt(f.config),_t.value="",b.value=t.importDone,f},!1)}function ql(){return R(t.loadSnapshots,async()=>(Ot.value=await ee(E.settingsSnapshots,{limit:20}),Ot.value),!1)}function Li(f){return R(t.rollback,async()=>{var K;const c=await G(E.settingsRollback,{snapshot_id:f});return H.value={config_path:((K=H.value)==null?void 0:K.config_path)??"***PATH***",config:c.config},Nt(c.config),await ql(),b.value=t.rollbackDone,c},!1)}function Fi(){var c,K;const f=(K=(c=fe.value)==null?void 0:c.items.find(se=>{var Pe;return(Pe=se.image_uri)==null?void 0:Pe.startsWith("storage://")}))==null?void 0:K.image_uri;return f?R(t.signMaterial,async()=>(We.value=await ee(E.mediaSign,{uri:f}),We.value),!1):(b.value=t.noSignableMaterial,Promise.resolve())}function Ni(f){return f!=null&&f.startsWith("storage://")?R(t.signMaterial,async()=>(We.value=await ee(E.mediaSign,{uri:f}),We.value),!1):(b.value=t.noSignableMaterial,Promise.resolve())}function yn(){xe.value={category_id:"",name:"",category_type:"material",sort_order:0}}function ji(f){xe.value={category_id:f.category_id,name:f.name,category_type:f.category_type,sort_order:f.sort_order}}function Wi(){const f={name:xe.value.name,category_type:xe.value.category_type,sort_order:Number(xe.value.sort_order)||0};return xe.value.category_id?R(t.update,async()=>{const c=await et(E.materialCategory(xe.value.category_id),{method:"PUT",body:f});return yn(),b.value=t.categoryUpdated,c}):R(t.create,async()=>{const c=await G(E.materialCategories,f);return yn(),b.value=t.categoryCreated,c})}function Hi(f){return R(t.delete,async()=>{const c=await et(E.materialCategory(f),{method:"DELETE"});return xe.value.category_id===f&&yn(),b.value=t.categoryDeleted,c})}function ll(){te.value={material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}}function Ki(){const f={display_name:te.value.display_name,image_uri:te.value.image_uri||void 0,thumbnail_uri:te.value.image_uri||void 0,category_id:te.value.category_id||void 0,tags:Pt(te.value.tags),prompt:te.value.prompt||void 0,negative_prompt:te.value.negative_prompt||void 0,recognition_status:te.value.image_uri?"pending_recognition":"pending_upload"};return te.value.material_id?R(t.update,async()=>{const c=await et(E.material(te.value.material_id),{method:"PUT",body:f});return ll(),b.value=t.materialUpdated,c}):R(t.create,async()=>{const c=await G(E.materials,f);return ll(),b.value=t.materialCreated,c})}function qi(f){te.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(){Ce.value={display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}}function Ji(){return R(t.upload,async()=>{const f=await G(E.materialUpload,{display_name:Ce.value.display_name||void 0,filename:Ce.value.filename||void 0,content_type:Ce.value.content_type||void 0,image_uri:Ce.value.image_uri,category_id:Ce.value.category_id||void 0});return Jl(),b.value=t.materialUploaded,f})}function Gi(f){return R(t.recognize,()=>G(E.materialRecognize(f)))}function zi(f){return R(t.confirm,()=>G(E.materialConfirm(f.material_id),{display_name:f.display_name,prompt:f.prompt,negative_prompt:f.negative_prompt,tags:f.tags}))}function Yi(f){return R(t.archive,async()=>{const c=await et(E.material(f),{method:"DELETE"});return b.value=t.materialArchived,c})}function Pt(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,K;return((K=(c=ae.value)==null?void 0:c.roots.find(se=>se.uri_prefix===f))==null?void 0:K.bytes)??0}return(f,c)=>{var K,se,Pe,st,bn,Qt,wn,kn,Cn,xn,Sn,zl,Yl,Ql,Xl,Zl,eo,to,no,lo,oo,so,io,ro,ao,uo;return x(),S("main",Tu,[o("aside",Eu,[o("div",Ou,[o("strong",null,a(((K=s.value)==null?void 0:K.display_name)??"ImageStudio"),1),o("span",null,a(((se=s.value)==null?void 0:se.dashboard_user)??"AstrBot"),1)]),o("nav",null,[(x(),S(z,null,pe(n,r=>o("button",{key:r.key,type:"button",class:Jn({active:l.value===r.key}),onClick:le=>l.value=r.key},a(r.label),11,Iu)),64))])]),o("section",Au,[o("header",Mu,[o("div",null,[o("h1",null,a(Q.value),1),o("p",null,a(((Pe=i.value)==null?void 0:Pe.plugin_status)??"loading")+" / "+a(b.value||t.waiting),1)]),o("div",$u,[o("button",{type:"button",disabled:!!g.value,onClick:ne},a(g.value||t.refresh),9,Ru)])]),T.value?(x(),S("section",Uu,a(T.value),1)):k.value?(x(),S("section",Bu,a(t.loading),1)):(x(),S(z,{key:2},[l.value==="dashboard"?(x(),S("section",Vu,[o("article",null,[o("span",null,a(t.profiles),1),o("strong",null,a(((st=i.value)==null?void 0:st.active_profiles)??0),1)]),o("article",null,[o("span",null,a(t.jobs),1),o("strong",null,a(C.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(((Qt=ae.value)==null?void 0:Qt.total_bytes)??((wn=i.value)==null?void 0:wn.storage.total_bytes))),1)])])):J("",!0),l.value==="profiles"?(x(),S("section",Lu,[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",Fu,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[0]||(c[0]=r=>$.value.name=r),type:"text"},null,512),[[U,$.value.name]])]),o("label",null,[o("span",null,a(t.identity),1),A(o("input",{"onUpdate:modelValue":c[1]||(c[1]=r=>$.value.identity=r),type:"text"},null,512),[[U,$.value.identity]])]),o("label",null,[o("span",null,a(t.personality),1),A(o("input",{"onUpdate:modelValue":c[2]||(c[2]=r=>$.value.personality=r),type:"text",placeholder:"calm, brave"},null,512),[[U,$.value.personality]])]),o("label",null,[o("span",null,a(t.hairColor),1),A(o("input",{"onUpdate:modelValue":c[3]||(c[3]=r=>$.value.hair_color=r),type:"text"},null,512),[[U,$.value.hair_color]])]),o("label",null,[o("span",null,a(t.hairstyle),1),A(o("input",{"onUpdate:modelValue":c[4]||(c[4]=r=>$.value.hairstyle=r),type:"text"},null,512),[[U,$.value.hairstyle]])]),o("label",null,[o("span",null,a(t.eyeColor),1),A(o("input",{"onUpdate:modelValue":c[5]||(c[5]=r=>$.value.eye_color=r),type:"text"},null,512),[[U,$.value.eye_color]])]),o("label",null,[o("span",null,a(t.stylePrompt),1),A(o("input",{"onUpdate:modelValue":c[6]||(c[6]=r=>$.value.style=r),type:"text"},null,512),[[U,$.value.style]])]),o("label",null,[o("span",null,a(t.tags),1),A(o("input",{"onUpdate:modelValue":c[7]||(c[7]=r=>$.value.clothing_keywords=r),type:"text",placeholder:"white blouse, ribbon"},null,512),[[U,$.value.clothing_keywords]])]),o("label",Nu,[o("span",null,a(t.description),1),A(o("input",{"onUpdate:modelValue":c[8]||(c[8]=r=>$.value.description=r),type:"text"},null,512),[[U,$.value.description]])]),o("button",{type:"button",disabled:!!g.value||!$.value.name,onClick:Zs},a(t.quickDraft),9,ju),o("button",{type:"button",disabled:!!g.value||!$.value.name,onClick:ei},a(t.create),9,Wu)]),Fe.value?(x(),S("pre",Hu,a(JSON.stringify(Fe.value,null,2)),1)):J("",!0),Z.value.profile_id?(x(),S("div",Ku,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[9]||(c[9]=r=>Z.value.name=r),type:"text"},null,512),[[U,Z.value.name]])]),o("label",null,[o("span",null,a(t.provider),1),A(o("input",{"onUpdate:modelValue":c[10]||(c[10]=r=>Z.value.default_model_route=r),type:"text"},null,512),[[U,Z.value.default_model_route]])]),o("label",qu,[o("span",null,a(t.description),1),A(o("input",{"onUpdate:modelValue":c[11]||(c[11]=r=>Z.value.description=r),type:"text"},null,512),[[U,Z.value.description]])]),o("label",Ju,[o("span",null,a(t.basePrompt),1),A(o("input",{"onUpdate:modelValue":c[12]||(c[12]=r=>Z.value.base_prompt=r),type:"text"},null,512),[[U,Z.value.base_prompt]])]),o("label",Gu,[o("span",null,a(t.appearancePrompt),1),A(o("input",{"onUpdate:modelValue":c[13]||(c[13]=r=>Z.value.appearance_prompt=r),type:"text"},null,512),[[U,Z.value.appearance_prompt]])]),o("label",zu,[o("span",null,a(t.stylePrompt),1),A(o("input",{"onUpdate:modelValue":c[14]||(c[14]=r=>Z.value.style_prompt=r),type:"text"},null,512),[[U,Z.value.style_prompt]])]),o("label",Yu,[o("span",null,a(t.negativePrompt),1),A(o("input",{"onUpdate:modelValue":c[15]||(c[15]=r=>Z.value.negative_prompt=r),type:"text"},null,512),[[U,Z.value.negative_prompt]])]),o("button",{type:"button",disabled:!!g.value||!Z.value.name,onClick:li},a(t.update),9,Qu),o("button",{type:"button",disabled:!!g.value,onClick:Kl},a(t.reset),9,Xu)])):J("",!0),o("ul",null,[(x(!0),S(z,null,pe(((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",Zu,[o("span",ec,a(r.status),1),o("button",{type:"button",disabled:!!g.value,onClick:le=>ni(r)},a(t.edit),9,tc),o("button",{type:"button",disabled:!!g.value,onClick:le=>ti(r.profile_id)},a(t.delete),9,nc)])]))),128)),(xn=u.value)!=null&&xn.items.length?J("",!0):(x(),S("li",lc,a(t.emptyProfiles),1))])])):J("",!0),l.value==="workflows"?(x(),S("section",oc,[o("div",sc,[o("header",null,[o("h2",null,a(D.value),1),o("span",null,a(d.value.length),1)]),o("div",ic,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[16]||(c[16]=r=>Ee.value.display_name=r),type:"text"},null,512),[[U,Ee.value.display_name]])]),o("label",null,[o("span",null,a(t.workflowType),1),A(o("select",{"onUpdate:modelValue":c[17]||(c[17]=r=>Ee.value.workflow_type=r)},[...c[65]||(c[65]=[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),[[$t,Ee.value.workflow_type]])]),o("button",{type:"button",disabled:!!g.value||!P.value||!Ee.value.display_name,onClick:oi},a(t.create),9,rc)]),o("ul",null,[(x(!0),S(z,null,pe(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",ac,[o("span",uc,a(r.status),1),o("button",{type:"button",disabled:!!g.value,onClick:le=>Ft(r.workflow_id)},a(t.nodes),9,cc),o("button",{type:"button",disabled:!!g.value,onClick:le=>si(r.workflow_id)},a(t.start),9,dc),o("button",{type:"button",disabled:!!g.value,onClick:le=>ii(r.workflow_id)},a(t.cancel),9,fc),o("button",{type:"button",disabled:!!g.value,onClick:le=>ri(r.workflow_id)},a(t.archive),9,pc)])]))),128)),d.value.length?J("",!0):(x(),S("li",vc,a(t.emptyWorkflows),1))]),v.value?(x(),S("section",hc,[o("header",null,[o("h2",null,a(t.branches),1),o("span",null,a(m.value.length),1)]),o("div",gc,[o("label",null,[o("span",null,a(t.branchName),1),A(o("input",{"onUpdate:modelValue":c[18]||(c[18]=r=>Se.value.branch_name=r),type:"text",placeholder:"alt_pose"},null,512),[[U,Se.value.branch_name]])]),o("button",{type:"button",disabled:!!g.value||!Se.value.branch_name,onClick:ai},a(t.create),9,_c)]),o("ul",null,[(x(!0),S(z,null,pe(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:!!g.value,onClick:le=>ui(r.branch_name)},a(t.switchBranch),9,mc)]))),128))])])):J("",!0)]),o("div",yc,[o("header",null,[o("h2",null,a(t.nodes),1),o("div",bc,[o("span",null,a(((Sn=v.value)==null?void 0:Sn.workflow.current_branch)??"main"),1),o("button",{type:"button",disabled:!!g.value||!v.value,onClick:fi},a(t.review),9,wc)])]),o("div",kc,[o("label",null,[o("span",null,a(t.nodeKey),1),A(o("input",{"onUpdate:modelValue":c[19]||(c[19]=r=>Y.value.node_key=r),type:"text"},null,512),[[U,Y.value.node_key]])]),o("label",null,[o("span",null,a(t.nodeTitle),1),A(o("input",{"onUpdate:modelValue":c[20]||(c[20]=r=>Y.value.title=r),type:"text"},null,512),[[U,Y.value.title]])]),o("label",null,[o("span",null,a(t.nodeType),1),A(o("input",{"onUpdate:modelValue":c[21]||(c[21]=r=>Y.value.node_type=r),type:"text"},null,512),[[U,Y.value.node_type]])]),o("label",null,[o("span",null,a(t.status),1),A(o("input",{"onUpdate:modelValue":c[22]||(c[22]=r=>Y.value.status=r),type:"text"},null,512),[[U,Y.value.status]])]),o("label",Cc,[o("span",null,a(t.description),1),A(o("input",{"onUpdate:modelValue":c[23]||(c[23]=r=>Y.value.description=r),type:"text"},null,512),[[U,Y.value.description]])]),o("label",xc,[o("span",null,a(t.prompt),1),A(o("input",{"onUpdate:modelValue":c[24]||(c[24]=r=>Y.value.prompt=r),type:"text"},null,512),[[U,Y.value.prompt]])]),o("label",Sc,[o("span",null,a(t.negativePrompt),1),A(o("input",{"onUpdate:modelValue":c[25]||(c[25]=r=>Y.value.negative_prompt=r),type:"text"},null,512),[[U,Y.value.negative_prompt]])]),o("label",null,[o("span",null,a(t.modelRoute),1),A(o("input",{"onUpdate:modelValue":c[26]||(c[26]=r=>Y.value.model_route=r),type:"text"},null,512),[[U,Y.value.model_route]])]),o("button",{type:"button",disabled:!!g.value||!Y.value.node_key||!Y.value.title,onClick:di},a(Y.value.node_id?t.update:t.create),9,Pc),o("button",{type:"button",disabled:!!g.value,onClick:el},a(t.reset),9,Dc)]),o("div",Tc,[o("label",null,[o("span",null,a(t.modelRoute),1),A(o("input",{"onUpdate:modelValue":c[27]||(c[27]=r=>Xe.value.model_route=r),type:"text",placeholder:"image_low"},null,512),[[U,Xe.value.model_route]])]),o("label",null,[o("span",null,a(t.prompt),1),A(o("input",{"onUpdate:modelValue":c[28]||(c[28]=r=>Xe.value.prompt=r),type:"text"},null,512),[[U,Xe.value.prompt]])]),o("label",Ec,[o("span",null,a(t.negativePrompt),1),A(o("input",{"onUpdate:modelValue":c[29]||(c[29]=r=>Xe.value.negative_prompt=r),type:"text"},null,512),[[U,Xe.value.negative_prompt]])]),o("button",{type:"button",disabled:!!g.value||!O.value,onClick:vi},a(t.generate),9,Oc),o("button",{type:"button",disabled:!!g.value||!O.value,onClick:pi},a(t.review),9,Ic)]),o("ul",null,[(x(!0),S(z,null,pe(((zl=v.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",Ac,[o("span",null,a(r.branch_name),1),o("span",Mc,a(r.status),1),o("button",{type:"button",disabled:!!g.value,onClick:le=>ci(r)},a(t.edit),9,$c),o("button",{type:"button",disabled:!!g.value,onClick:le=>hi(r.node_id)},a(t.retry),9,Rc),o("button",{type:"button",disabled:!!g.value,onClick:le=>gi(r.node_id)},a(t.complete),9,Uc),o("button",{type:"button",disabled:!!g.value,onClick:le=>Oe(r.node_id)},a(t.images),9,Bc)])]))),128)),(Yl=v.value)!=null&&Yl.nodes.length?J("",!0):(x(),S("li",Vc,a(t.emptyWorkflows),1))]),o("ul",null,[(x(!0),S(z,null,pe(M.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",Lc,[r.is_selected?(x(),S("span",Fc,a(t.select),1)):J("",!0),o("button",{type:"button",disabled:!!g.value||r.is_selected||r.is_archived,onClick:le=>_i(r.image_id)},a(t.select),9,Nc),o("button",{type:"button",disabled:!!g.value||r.is_archived,onClick:le=>mi(r.image_id)},a(t.adopt),9,jc),o("button",{type:"button",disabled:!!g.value||!(r.thumbnail_uri??r.image_uri).startsWith("storage://"),onClick:le=>Ni(r.thumbnail_uri??r.image_uri)},a(t.signMaterial),9,Wc),o("button",{type:"button",disabled:!!g.value||!r.is_selected,onClick:le=>yi(r.image_id)},a(t.unselect),9,Hc),o("button",{type:"button",disabled:!!g.value||r.is_archived,onClick:le=>bi(r.image_id)},a(t.archive),9,Kc),o("button",{type:"button",disabled:!!g.value,onClick:le=>wi(r.image_id)},a(t.delete),9,qc)])]))),128)),M.value.length?J("",!0):(x(),S("li",Jc,a(t.emptyImages),1))]),We.value?(x(),S("pre",Gc,a(JSON.stringify(We.value,null,2)),1)):J("",!0),X.value?(x(),S("pre",zc,a(JSON.stringify(X.value,null,2)),1)):J("",!0),o("section",Yc,[o("header",null,[o("h2",null,a(t.history),1),o("span",null,a(_.value.length),1)]),o("ul",null,[(x(!0),S(z,null,pe(_.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)),_.value.length?J("",!0):(x(),S("li",Qc,a(t.emptyHistory),1))])]),w.value?(x(),S("section",Xc,[o("header",null,[o("h2",null,a(t.reviewResult),1),o("span",null,a(w.value.passed?t.support:t.unsupported),1)]),o("pre",null,a(JSON.stringify(w.value,null,2)),1)])):J("",!0),v.value?(x(),S("pre",Zc,a(JSON.stringify(v.value.workflow,null,2)),1)):J("",!0)])])):J("",!0),l.value==="materials"?(x(),S("section",ed,[o("div",td,[o("header",null,[o("h2",null,a(t.materialCategories),1),o("span",null,a(V.value.length),1)]),o("div",nd,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[30]||(c[30]=r=>xe.value.name=r),type:"text"},null,512),[[U,xe.value.name]])]),o("label",null,[o("span",null,a(t.categoryType),1),A(o("input",{"onUpdate:modelValue":c[31]||(c[31]=r=>xe.value.category_type=r),type:"text"},null,512),[[U,xe.value.category_type]])]),o("label",null,[o("span",null,a(t.sortOrder),1),A(o("input",{"onUpdate:modelValue":c[32]||(c[32]=r=>xe.value.sort_order=r),type:"number"},null,512),[[U,xe.value.sort_order,void 0,{number:!0}]])]),o("button",{type:"button",disabled:!!g.value||!xe.value.name,onClick:Wi},a(xe.value.category_id?t.update:t.create),9,ld),o("button",{type:"button",disabled:!!g.value,onClick:yn},a(t.reset),9,od)]),o("ul",null,[(x(!0),S(z,null,pe(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",sd,[o("span",null,a(r.sort_order),1),o("button",{type:"button",disabled:!!g.value,onClick:le=>ji(r)},a(t.edit),9,id),o("button",{type:"button",disabled:!!g.value,onClick:le=>Hi(r.category_id)},a(t.delete),9,rd)])]))),128)),V.value.length?J("",!0):(x(),S("li",ad,a(t.emptyCategories),1))])]),o("div",ud,[o("header",null,[o("h2",null,a(t.materialItems),1),o("div",cd,[o("span",null,a(L.value)+" "+a(t.pendingConfirm),1),o("button",{type:"button",disabled:!!g.value,onClick:Fi},a(t.signFirstImage),9,dd)])]),o("div",fd,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[33]||(c[33]=r=>te.value.display_name=r),type:"text"},null,512),[[U,te.value.display_name]])]),o("label",null,[o("span",null,a(t.imageUri),1),A(o("input",{"onUpdate:modelValue":c[34]||(c[34]=r=>te.value.image_uri=r),type:"text",placeholder:"storage://materials/example.png"},null,512),[[U,te.value.image_uri]])]),o("label",null,[o("span",null,a(t.category),1),A(o("select",{"onUpdate:modelValue":c[35]||(c[35]=r=>te.value.category_id=r)},[o("option",pd,a(t.allCategories),1),(x(!0),S(z,null,pe(V.value,r=>(x(),S("option",{key:r.category_id,value:r.category_id},a(r.name),9,vd))),128))],512),[[$t,te.value.category_id]])]),o("label",null,[o("span",null,a(t.tags),1),A(o("input",{"onUpdate:modelValue":c[36]||(c[36]=r=>te.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[U,te.value.tags]])]),o("label",null,[o("span",null,a(t.prompt),1),A(o("input",{"onUpdate:modelValue":c[37]||(c[37]=r=>te.value.prompt=r),type:"text"},null,512),[[U,te.value.prompt]])]),o("label",null,[o("span",null,a(t.negativePrompt),1),A(o("input",{"onUpdate:modelValue":c[38]||(c[38]=r=>te.value.negative_prompt=r),type:"text"},null,512),[[U,te.value.negative_prompt]])]),o("button",{type:"button",disabled:!!g.value||!te.value.display_name,onClick:Ki},a(te.value.material_id?t.update:t.create),9,hd),o("button",{type:"button",disabled:!!g.value,onClick:ll},a(t.reset),9,gd)]),o("ul",null,[(x(!0),S(z,null,pe(((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",_d,[o("span",md,a(r.recognition_status),1),o("button",{type:"button",disabled:!!g.value,onClick:le=>qi(r)},a(t.edit),9,yd),o("button",{type:"button",disabled:!!g.value,onClick:le=>Gi(r.material_id)},a(t.recognize),9,bd),o("button",{type:"button",disabled:!!g.value||r.recognition_status==="confirmed",onClick:le=>zi(r)},a(t.confirm),9,wd),o("button",{type:"button",disabled:!!g.value,onClick:le=>Yi(r.material_id)},a(t.archive),9,kd)])]))),128)),(Xl=fe.value)!=null&&Xl.items.length?J("",!0):(x(),S("li",Cd,a(t.emptyMaterials),1))]),o("div",xd,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[39]||(c[39]=r=>Ce.value.display_name=r),type:"text"},null,512),[[U,Ce.value.display_name]])]),o("label",null,[o("span",null,a(t.filename),1),A(o("input",{"onUpdate:modelValue":c[40]||(c[40]=r=>Ce.value.filename=r),type:"text"},null,512),[[U,Ce.value.filename]])]),o("label",null,[o("span",null,a(t.contentType),1),A(o("input",{"onUpdate:modelValue":c[41]||(c[41]=r=>Ce.value.content_type=r),type:"text"},null,512),[[U,Ce.value.content_type]])]),o("label",null,[o("span",null,a(t.imageUri),1),A(o("input",{"onUpdate:modelValue":c[42]||(c[42]=r=>Ce.value.image_uri=r),type:"text",placeholder:"storage://materials/upload.png"},null,512),[[U,Ce.value.image_uri]])]),o("label",null,[o("span",null,a(t.category),1),A(o("select",{"onUpdate:modelValue":c[43]||(c[43]=r=>Ce.value.category_id=r)},[o("option",Sd,a(t.allCategories),1),(x(!0),S(z,null,pe(V.value,r=>(x(),S("option",{key:r.category_id,value:r.category_id},a(r.name),9,Pd))),128))],512),[[$t,Ce.value.category_id]])]),o("button",{type:"button",disabled:!!g.value||!Ce.value.image_uri,onClick:Ji},a(t.upload),9,Dd),o("button",{type:"button",disabled:!!g.value,onClick:Jl},a(t.reset),9,Td)]),We.value?(x(),S("pre",Ed,a(JSON.stringify(We.value,null,2)),1)):J("",!0)])])):J("",!0),l.value==="wardrobe"?(x(),S("section",Od,[o("header",null,[o("h2",null,a(D.value),1),o("button",{type:"button",disabled:!P.value||!!g.value,onClick:Di},a(t.match),9,Id)]),o("div",Ad,[o("label",null,[o("span",null,a(t.selectMaterial),1),A(o("select",{"onUpdate:modelValue":c[44]||(c[44]=r=>me.value.material_id=r)},[o("option",Md,a(t.selectMaterial),1),(x(!0),S(z,null,pe(I.value,r=>(x(),S("option",{key:r.material_id,value:r.material_id},a(r.display_name),9,$d))),128))],512),[[$t,me.value.material_id]])]),o("label",null,[o("span",null,a(t.wardrobeCategory),1),A(o("input",{"onUpdate:modelValue":c[45]||(c[45]=r=>me.value.wardrobe_category=r),type:"text"},null,512),[[U,me.value.wardrobe_category]])]),o("label",null,[o("span",null,a(t.tags),1),A(o("input",{"onUpdate:modelValue":c[46]||(c[46]=r=>me.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[U,me.value.tags]])]),o("label",null,[o("span",null,a(t.season),1),A(o("input",{"onUpdate:modelValue":c[47]||(c[47]=r=>me.value.season=r),type:"text"},null,512),[[U,me.value.season]])]),o("label",null,[o("span",null,a(t.style),1),A(o("input",{"onUpdate:modelValue":c[48]||(c[48]=r=>me.value.style=r),type:"text"},null,512),[[U,me.value.style]])]),o("button",{type:"button",disabled:!!g.value||!P.value||!me.value.material_id||!me.value.wardrobe_category,onClick:Ei},a(t.importToWardrobe),9,Rd)]),o("ul",null,[(x(!0),S(z,null,pe(Me.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",Ud,[o("span",null,a(r.usage_count),1),o("button",{type:"button",disabled:!!g.value,onClick:le=>Oi(r.wardrobe_item_id)},a(t.delete),9,Bd)])]))),128)),Me.value.length?J("",!0):(x(),S("li",Vd,a(t.emptyWardrobe),1))]),ht.value?(x(),S("pre",Ld,a(JSON.stringify(ht.value,null,2)),1)):J("",!0),o("div",Fd,[o("label",null,[o("span",null,a(t.categories),1),A(o("input",{"onUpdate:modelValue":c[49]||(c[49]=r=>He.value.categories=r),type:"text"},null,512),[[U,He.value.categories]])]),o("label",null,[o("span",null,a(t.mood),1),A(o("input",{"onUpdate:modelValue":c[50]||(c[50]=r=>He.value.mood=r),type:"text"},null,512),[[U,He.value.mood]])]),o("label",null,[o("span",null,a(t.weather),1),A(o("input",{"onUpdate:modelValue":c[51]||(c[51]=r=>He.value.weather=r),type:"text"},null,512),[[U,He.value.weather]])]),o("label",null,[o("span",null,a(t.keywords),1),A(o("input",{"onUpdate:modelValue":c[52]||(c[52]=r=>He.value.keywords=r),type:"text"},null,512),[[U,He.value.keywords]])]),o("button",{type:"button",disabled:!!g.value||!P.value,onClick:Ii},a(t.dailyOutfit),9,Nd)]),p.value?(x(),S("pre",jd,a(JSON.stringify(p.value,null,2)),1)):J("",!0)])):J("",!0),l.value==="jobs"?(x(),S("section",Wd,[o("header",null,[o("h2",null,a(t.jobs),1),o("div",Hd,[o("button",{type:"button",disabled:!!g.value,onClick:ki},a(t.moveFailed),9,Kd),o("button",{type:"button",disabled:!!g.value,onClick:Ci},a(t.retryDead),9,qd)])]),o("div",Jd,[o("label",null,[c[66]||(c[66]=o("span",null,"Status",-1)),A(o("select",{"onUpdate:modelValue":c[53]||(c[53]=r=>Ze.value.status=r)},[o("option",Gd,a(t.allStatuses),1),(x(),S(z,null,pe(j,r=>o("option",{key:r,value:r},a(r),9,zd)),64))],512),[[$t,Ze.value.status]])]),o("label",null,[o("span",null,a(t.profiles),1),A(o("select",{"onUpdate:modelValue":c[54]||(c[54]=r=>Ze.value.profile_id=r)},[o("option",Yd,a(t.allProfiles),1),(x(!0),S(z,null,pe(((Zl=u.value)==null?void 0:Zl.items)??[],r=>(x(),S("option",{key:r.profile_id,value:r.profile_id},a(r.name),9,Qd))),128))],512),[[$t,Ze.value.profile_id]])]),o("label",null,[o("span",null,a(t.workflows),1),A(o("select",{"onUpdate:modelValue":c[55]||(c[55]=r=>Ze.value.workflow_id=r)},[o("option",Xd,a(t.allWorkflows),1),(x(!0),S(z,null,pe(d.value,r=>(x(),S("option",{key:r.workflow_id,value:r.workflow_id},a(r.display_name),9,Zd))),128))],512),[[$t,Ze.value.workflow_id]])]),o("button",{type:"button",disabled:!!g.value,onClick:Je},a(t.filter),9,ef)]),o("ul",null,[(x(!0),S(z,null,pe(((eo=N.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",tf,[o("span",nf,a(r.status),1),["failed","dead_letter","cancelled"].includes(r.status)?(x(),S("button",{key:0,type:"button",onClick:le=>zs(r.task_id)},a(t.retry),9,lf)):J("",!0),["completed","succeeded","cancelled"].includes(r.status)?J("",!0):(x(),S("button",{key:1,type:"button",onClick:le=>Ys(r.task_id)},a(t.cancel),9,of)),o("button",{type:"button",disabled:!!g.value,onClick:le=>Qs(r.task_id)},a(t.detail),9,sf)])]))),128)),(to=N.value)!=null&&to.items.length?J("",!0):(x(),S("li",rf,a(t.emptyJobs),1))]),he.value?(x(),S("section",af,[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)])):J("",!0)])):J("",!0),l.value==="discovery"?(x(),S("section",uf,[o("div",cf,[o("header",null,[o("h2",null,a(t.dialects),1),o("div",df,[o("button",{type:"button",disabled:!!g.value,onClick:Si},a(t.probeProvider),9,ff),o("button",{type:"button",disabled:!!g.value,onClick:xi},a(t.safeProbe),9,pf)])]),o("ul",null,[(x(!0),S(z,null,pe($e.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",vf,[o("label",null,[o("span",null,a(t.provider),1),A(o("input",{"onUpdate:modelValue":c[56]||(c[56]=r=>h.value.provider_id=r),type:"text",placeholder:"local-preview"},null,512),[[U,h.value.provider_id]])]),o("label",null,[o("span",null,a(t.model),1),A(o("input",{"onUpdate:modelValue":c[57]||(c[57]=r=>h.value.model_id=r),type:"text",placeholder:"metadata-only"},null,512),[[U,h.value.model_id]])]),o("label",null,[o("span",null,a(t.requiredCapabilities),1),A(o("input",{"onUpdate:modelValue":c[58]||(c[58]=r=>h.value.required_capabilities=r),type:"text",placeholder:"text_to_image"},null,512),[[U,h.value.required_capabilities]])]),o("button",{type:"button",disabled:!!g.value||!h.value.provider_id||!h.value.model_id,onClick:Pi},a(t.validatePlan),9,hf)]),y.value?(x(),S("pre",gf,a(JSON.stringify(y.value,null,2)),1)):J("",!0)]),o("div",_f,[o("header",null,[o("h2",null,a(t.capabilityProfiles),1),o("span",null,a(je.value.length),1)]),o("ul",null,[(x(!0),S(z,null,pe(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",mf,[o("span",yf,a(r.status),1),o("button",{type:"button",disabled:!!g.value,onClick:le=>tl(r,"confirmed_supported")},a(t.support),9,bf),o("button",{type:"button",disabled:!!g.value,onClick:le=>tl(r,"confirmed_unsupported")},a(t.unsupported),9,wf),o("button",{type:"button",disabled:!!g.value,onClick:le=>tl(r,"unconfirmed")},a(t.unconfirmed),9,kf)])]))),128)),je.value.length?J("",!0):(x(),S("li",Cf,a(t.emptyCapabilities),1))])])])):J("",!0),l.value==="logs"?(x(),S("section",xf,[o("div",Sf,[o("div",Pf,[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(z,null,pe(_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?J("",!0):(x(),S("li",Df,a(t.emptyGenerationLogs),1))])]),o("div",Tf,[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(z,null,pe(_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",Ef,a(r.status),1)]))),128)),_e.value.errors.length?J("",!0):(x(),S("li",Of,a(t.emptyErrors),1))])])]),o("div",If,[o("div",Af,[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(z,null,pe(_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?J("",!0):(x(),S("li",Mf,a(t.emptyWorkflowLogs),1))])]),o("div",$f,[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(z,null,pe(_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",Rf,a(r.status),1)]))),128)),_e.value.integrations.length?J("",!0):(x(),S("li",Uf,a(t.emptyIntegrationLogs),1))])])]),o("div",Bf,[o("header",null,[o("h2",null,a(t.integrationEvents),1),o("span",null,a(qe.value.length),1)]),o("ul",null,[(x(!0),S(z,null,pe(qe.value,r=>(x(),S("li",{key:`event-${r.integration_log_id}`},[o("div",null,[o("strong",null,a(r.integration_name),1),o("small",null,a(r.action)+" / "+a(r.created_at),1)]),o("span",Vf,a(r.status),1)]))),128)),qe.value.length?J("",!0):(x(),S("li",Lf,a(t.emptyIntegrationLogs),1))]),qe.value.length?(x(),S("pre",Ff,a(JSON.stringify(qe.value[0],null,2)),1)):J("",!0)]),o("div",Nf,[o("header",null,[o("h2",null,a(t.auditLogs),1),o("span",null,a(_e.value.audit.length),1)]),o("div",jf,[o("label",null,[c[67]||(c[67]=o("span",null,"Action",-1)),A(o("input",{"onUpdate:modelValue":c[59]||(c[59]=r=>Re.value.action=r),type:"text"},null,512),[[U,Re.value.action]])]),o("label",null,[o("span",null,a(t.targetType),1),A(o("input",{"onUpdate:modelValue":c[60]||(c[60]=r=>Re.value.target_type=r),type:"text"},null,512),[[U,Re.value.target_type]])]),o("label",null,[o("span",null,a(t.actor),1),A(o("input",{"onUpdate:modelValue":c[61]||(c[61]=r=>Re.value.actor_id=r),type:"text"},null,512),[[U,Re.value.actor_id]])]),o("button",{type:"button",disabled:!!g.value,onClick:be},a(t.filter),9,Wf)]),o("ul",null,[(x(!0),S(z,null,pe(_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?J("",!0):(x(),S("li",Hf,a(t.emptyAuditLogs),1))])])])):J("",!0),l.value==="settings"?(x(),S("section",Kf,[o("div",qf,[o("button",{type:"button",disabled:!!g.value,onClick:Ai},a(t.reload),9,Jf),o("button",{type:"button",disabled:!!g.value,onClick:c[62]||(c[62]=r=>Nt())},a(t.reset),9,Gf),o("button",{type:"button",disabled:!!g.value,onClick:Ri},a(t.validate),9,zf),o("button",{type:"button",disabled:!!g.value,onClick:Ui},a(t.diff),9,Yf),o("button",{type:"button",disabled:!!g.value,onClick:Bi},a(t.save),9,Qf),o("button",{type:"button",disabled:!!g.value,onClick:Mi},a(t.exportRedacted),9,Xf),o("button",{type:"button",disabled:!!g.value,onClick:ql},a(t.loadSnapshots),9,Zf)]),o("div",ep,[(x(!0),S(z,null,pe(((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",tp,[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)]),A(o("textarea",{"onUpdate:modelValue":c[63]||(c[63]=r=>gt.value=r),spellcheck:"false"},null,512),[[U,gt.value]])]),o("section",np,[o("header",null,[o("h2",null,a(t.importSettings),1),o("button",{type:"button",disabled:!!g.value||!_t.value,onClick:Vi},a(t.importSettings),9,lp)]),A(o("textarea",{"onUpdate:modelValue":c[64]||(c[64]=r=>_t.value=r),spellcheck:"false"},null,512),[[U,_t.value]])]),o("section",op,[o("header",null,[o("h2",null,a(t.snapshots),1),o("span",null,a(Ot.value.length),1)]),o("ul",null,[(x(!0),S(z,null,pe(Ot.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:!!g.value,onClick:le=>Li(r.snapshot_id)},a(t.rollback),9,sp)]))),128))])]),o("div",ip,[o("div",rp,[o("header",null,[o("h2",null,a(t.validationResult),1),o("span",null,a(((oo=ke.value)==null?void 0:oo.valid)??"-"),1)]),o("pre",null,a(JSON.stringify(ke.value??{},null,2)),1)]),o("div",ap,[o("header",null,[o("h2",null,a(t.diffResult),1),o("span",null,a(((so=ue.value)==null?void 0:so.changes.length)??0),1)]),o("pre",null,a(JSON.stringify(ue.value??{},null,2)),1)])])])):J("",!0)],64))]),o("aside",up,[o("h2",null,a(t.running),1),o("dl",null,[o("div",null,[c[68]||(c[68]=o("dt",null,"Pending",-1)),o("dd",null,a(((io=i.value)==null?void 0:io.queue.pending)??0),1)]),o("div",null,[c[69]||(c[69]=o("dt",null,"Running",-1)),o("dd",null,a(((ro=i.value)==null?void 0:ro.queue.running)??0),1)]),o("div",null,[c[70]||(c[70]=o("dt",null,"Failed",-1)),o("dd",null,a(((ao=i.value)==null?void 0:ao.queue.failed)??0),1)]),o("div",null,[c[71]||(c[71]=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[72]||(c[72]=o("dt",null,"Images",-1)),o("dd",null,a(ol(Gl("storage://images/"))),1)]),o("div",null,[c[73]||(c[73]=o("dt",null,"Materials",-1)),o("dd",null,a(ol(Gl("storage://materials/"))),1)])])])])}}}),dp=(e,t)=>{const n=e.__vccOpts||e;for(const[l,s]of t)n[l]=s;return n},fp=dp(cp,[["__scopeId","data-v-99119689"]]);ku(fp).mount("#app"); diff --git a/web/assets/index-xqawizKu.css b/web/assets/index-xqawizKu.css deleted file mode 100644 index 9692b00..0000000 --- a/web/assets/index-xqawizKu.css +++ /dev/null @@ -1 +0,0 @@ -.web-shell[data-v-0422d282]{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-0422d282],.inspector[data-v-0422d282]{background:#fff}.sidebar[data-v-0422d282]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-0422d282]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-0422d282]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-0422d282]{font-size:19px}.brand span[data-v-0422d282],p[data-v-0422d282],dt[data-v-0422d282],.empty[data-v-0422d282],small[data-v-0422d282]{color:#667085}nav[data-v-0422d282]{display:grid;gap:6px}button[data-v-0422d282]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-0422d282]:disabled{cursor:wait;opacity:.62}nav button[data-v-0422d282]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-0422d282]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-0422d282]{min-width:0;padding:24px}.topbar[data-v-0422d282],.list-view header[data-v-0422d282],.toolbar[data-v-0422d282],.inline-actions[data-v-0422d282]{display:flex;gap:12px;align-items:center}.topbar[data-v-0422d282],.list-view header[data-v-0422d282]{justify-content:space-between}.actions[data-v-0422d282],.inline-actions[data-v-0422d282]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-0422d282],.toolbar button[data-v-0422d282],.list-view header button[data-v-0422d282],.inline-actions button[data-v-0422d282]{padding:0 14px}h1[data-v-0422d282],h2[data-v-0422d282],p[data-v-0422d282],dl[data-v-0422d282],dd[data-v-0422d282]{margin:0}h1[data-v-0422d282]{min-height:30px;font-size:26px}h2[data-v-0422d282]{font-size:15px}.notice[data-v-0422d282],article[data-v-0422d282],.list-view[data-v-0422d282],.editor-panel[data-v-0422d282],pre[data-v-0422d282]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-0422d282]{margin-top:18px;padding:14px}.error[data-v-0422d282]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-0422d282],.split-view[data-v-0422d282]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-0422d282]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-0422d282]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-0422d282]{display:grid;gap:8px;padding:16px}article span[data-v-0422d282]{color:#667085;font-size:13px}article strong[data-v-0422d282]{font-size:24px}.list-view[data-v-0422d282],.logs-view[data-v-0422d282],.settings-view[data-v-0422d282]{margin-top:18px}.split-view .list-view[data-v-0422d282],.logs-view .list-view[data-v-0422d282]{margin-top:0}.list-view[data-v-0422d282]{padding:16px}.editor-panel[data-v-0422d282]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-0422d282]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-0422d282]{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-0422d282]{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-0422d282]{display:grid;gap:5px;min-width:0}label span[data-v-0422d282]{color:#667085;font-size:12px}.wide-field[data-v-0422d282]{grid-column:1 / -1}input[data-v-0422d282],select[data-v-0422d282]{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-0422d282]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-0422d282]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-0422d282]:first-child{border-top:0}li>div[data-v-0422d282]{display:grid;gap:3px;min-width:0}li strong[data-v-0422d282],li span[data-v-0422d282],li small[data-v-0422d282]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-0422d282]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-0422d282]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-0422d282]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-0422d282]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-0422d282]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-0422d282]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-0422d282]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-0422d282]{display:none}}@media(max-width:820px){.web-shell[data-v-0422d282]{grid-template-columns:1fr}.sidebar[data-v-0422d282]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-0422d282]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-0422d282]{text-align:center}.dashboard-grid[data-v-0422d282],.split-view[data-v-0422d282],.settings-sections[data-v-0422d282]{grid-template-columns:1fr}.topbar[data-v-0422d282],.list-view header[data-v-0422d282]{align-items:flex-start;flex-direction:column}} diff --git a/web/index.html b/web/index.html index 95cd252..bc50a64 100644 --- a/web/index.html +++ b/web/index.html @@ -1,3 +1,3 @@ - - + +