From ff4678a9fe1ad55c26874dce0d3455d430e05b2d Mon Sep 17 00:00:00 2001 From: YokiiroBW Date: Sun, 5 Jul 2026 15:22:31 +0800 Subject: [PATCH] feat: add settings export preview --- frontend/standalone-web/src/App.vue | 17 ++++++++++++++++- web/assets/index-BdP4se3A.css | 1 - web/assets/index-DQQWiMdf.css | 1 + web/assets/index-DaDSiDJ9.js | 17 +++++++++++++++++ web/assets/index-tce9D-Z6.js | 17 ----------------- web/index.html | 4 ++-- 6 files changed, 36 insertions(+), 21 deletions(-) delete mode 100644 web/assets/index-BdP4se3A.css create mode 100644 web/assets/index-DQQWiMdf.css create mode 100644 web/assets/index-DaDSiDJ9.js delete mode 100644 web/assets/index-tce9D-Z6.js diff --git a/frontend/standalone-web/src/App.vue b/frontend/standalone-web/src/App.vue index 533dd86..0aa924e 100644 --- a/frontend/standalone-web/src/App.vue +++ b/frontend/standalone-web/src/App.vue @@ -266,6 +266,7 @@ const signedMedia = ref(null) const settingsDraft = ref("") const settingsImportDraft = ref("") const settingsSnapshots = ref([]) +const settingsExportResult = ref(null) const settingsValidation = ref(null) const settingsDiff = ref(null) const profileDraft = ref({ @@ -1146,7 +1147,14 @@ function reloadSettings() { } function exportSettings() { - return runOperation(text.exportSettings, () => getJson(endpoints.settingsExport), false) + return runOperation( + text.exportSettings, + async () => { + settingsExportResult.value = await getJson(endpoints.settingsExport) + return settingsExportResult.value + }, + false, + ) } function resetSettingsDraft(config = currentSettings.value?.config ?? {}) { @@ -2469,6 +2477,13 @@ function storageRootBytes(uriPrefix: string) {
{{ JSON.stringify(settingsDiff ?? {}, null, 2) }}
+
+
+

{{ text.exportSettings }}

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