From 74604654e8399cab637683c670335e64bab54761 Mon Sep 17 00:00:00 2001 From: YokiiroBW Date: Sun, 5 Jul 2026 20:42:06 +0800 Subject: [PATCH] Show signed recent images on dashboard --- frontend/shared/types/dashboard.ts | 14 +++++++++++++- frontend/standalone-web/src/App.vue | 24 ++++++++++++++++++++++++ web/assets/index-BD2zkovs.css | 1 - web/assets/index-DX8Ei8SG.css | 1 + web/assets/index-ur_RQ_Aq.js | 17 +++++++++++++++++ web/assets/index-xlGwJRiI.js | 17 ----------------- web/index.html | 4 ++-- 7 files changed, 57 insertions(+), 21 deletions(-) delete mode 100644 web/assets/index-BD2zkovs.css create mode 100644 web/assets/index-DX8Ei8SG.css create mode 100644 web/assets/index-ur_RQ_Aq.js delete mode 100644 web/assets/index-xlGwJRiI.js diff --git a/frontend/shared/types/dashboard.ts b/frontend/shared/types/dashboard.ts index f5f2c70..21d3068 100644 --- a/frontend/shared/types/dashboard.ts +++ b/frontend/shared/types/dashboard.ts @@ -1,3 +1,15 @@ +export interface DashboardImage { + image_id: string + node_id?: string | null + workflow_id?: string | null + profile_id?: string | null + image_uri: string + thumbnail_uri?: string | null + image_url?: string | null + thumbnail_url?: string | null + created_at: string +} + export interface DashboardSummary { plugin_status: "running" | "degraded" | "stopped" today_generation_count: number @@ -15,5 +27,5 @@ export interface DashboardSummary { temp_bytes: number } recent_jobs: unknown[] - recent_images: unknown[] + recent_images: DashboardImage[] } diff --git a/frontend/standalone-web/src/App.vue b/frontend/standalone-web/src/App.vue index ec79b54..a461b55 100644 --- a/frontend/standalone-web/src/App.vue +++ b/frontend/standalone-web/src/App.vue @@ -235,6 +235,7 @@ const text = { validationResult: "\u6821\u9a8c\u7ed3\u679c", diffResult: "\u53d8\u66f4\u5bf9\u6bd4", storage: "\u5b58\u50a8", + recentImages: "\u6700\u8fd1\u56fe\u7247", storageMigrate: "\u8fc1\u79fb\u9884\u68c0", overwriteRisk: "\u8986\u76d6\u98ce\u9669", assetImportPack: "\u8d44\u4ea7\u5305\u9884\u68c0", @@ -1760,6 +1761,29 @@ function planAssetImportPack() { {{ formatBytes(storage?.total_bytes ?? dashboard?.storage.total_bytes) }} +
+
+

{{ text.recentImages }}

+ {{ dashboard?.recent_images.length ?? 0 }} +
+ +
diff --git a/web/assets/index-BD2zkovs.css b/web/assets/index-BD2zkovs.css deleted file mode 100644 index cc9ccb8..0000000 --- a/web/assets/index-BD2zkovs.css +++ /dev/null @@ -1 +0,0 @@ -.web-shell[data-v-42c07cbf]{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-42c07cbf],.inspector[data-v-42c07cbf]{background:#fff}.sidebar[data-v-42c07cbf]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-42c07cbf]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-42c07cbf]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-42c07cbf]{font-size:19px}.brand span[data-v-42c07cbf],p[data-v-42c07cbf],dt[data-v-42c07cbf],.empty[data-v-42c07cbf],small[data-v-42c07cbf]{color:#667085}nav[data-v-42c07cbf]{display:grid;gap:6px}button[data-v-42c07cbf]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-42c07cbf]:disabled{cursor:wait;opacity:.62}nav button[data-v-42c07cbf]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-42c07cbf]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-42c07cbf]{min-width:0;padding:24px}.topbar[data-v-42c07cbf],.list-view header[data-v-42c07cbf],.toolbar[data-v-42c07cbf],.inline-actions[data-v-42c07cbf]{display:flex;gap:12px;align-items:center}.topbar[data-v-42c07cbf],.list-view header[data-v-42c07cbf]{justify-content:space-between}.actions[data-v-42c07cbf],.inline-actions[data-v-42c07cbf]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-42c07cbf],.toolbar button[data-v-42c07cbf],.list-view header button[data-v-42c07cbf],.inline-actions button[data-v-42c07cbf]{padding:0 14px}h1[data-v-42c07cbf],h2[data-v-42c07cbf],p[data-v-42c07cbf],dl[data-v-42c07cbf],dd[data-v-42c07cbf]{margin:0}h1[data-v-42c07cbf]{min-height:30px;font-size:26px}h2[data-v-42c07cbf]{font-size:15px}.notice[data-v-42c07cbf],article[data-v-42c07cbf],.list-view[data-v-42c07cbf],.editor-panel[data-v-42c07cbf],pre[data-v-42c07cbf]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-42c07cbf]{margin-top:18px;padding:14px}.error[data-v-42c07cbf]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-42c07cbf],.split-view[data-v-42c07cbf]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-42c07cbf]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-42c07cbf]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-42c07cbf]{display:grid;gap:8px;padding:16px}article span[data-v-42c07cbf]{color:#667085;font-size:13px}article strong[data-v-42c07cbf]{font-size:24px}.list-view[data-v-42c07cbf],.logs-view[data-v-42c07cbf],.settings-view[data-v-42c07cbf]{margin-top:18px}.split-view .list-view[data-v-42c07cbf],.logs-view .list-view[data-v-42c07cbf]{margin-top:0}.list-view[data-v-42c07cbf]{padding:16px}.editor-panel[data-v-42c07cbf]{display:grid;gap:12px;margin-top:12px;padding:16px}.inspector-form[data-v-42c07cbf]{display:grid;gap:10px;margin:12px 0}.inspector-form button[data-v-42c07cbf]{padding:0 12px}.editor-panel header[data-v-42c07cbf]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-42c07cbf]{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-42c07cbf]{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-42c07cbf]{display:grid;gap:5px;min-width:0}label span[data-v-42c07cbf]{color:#667085;font-size:12px}.wide-field[data-v-42c07cbf]{grid-column:1 / -1}input[data-v-42c07cbf],select[data-v-42c07cbf]{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-42c07cbf]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-42c07cbf]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-42c07cbf]:first-child{border-top:0}li>div[data-v-42c07cbf]{display:grid;gap:3px;min-width:0}.image-preview[data-v-42c07cbf]{width:52px;height:52px;flex:0 0 52px;border:1px solid #d9e0e8;border-radius:6px;object-fit:cover;background:#f5f6f8}li strong[data-v-42c07cbf],li span[data-v-42c07cbf],li small[data-v-42c07cbf]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-42c07cbf]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-42c07cbf]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-42c07cbf]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-42c07cbf]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-42c07cbf]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-42c07cbf]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-42c07cbf]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-42c07cbf]{display:none}}@media(max-width:820px){.web-shell[data-v-42c07cbf]{grid-template-columns:1fr}.sidebar[data-v-42c07cbf]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-42c07cbf]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-42c07cbf]{text-align:center}.dashboard-grid[data-v-42c07cbf],.split-view[data-v-42c07cbf],.settings-sections[data-v-42c07cbf]{grid-template-columns:1fr}.topbar[data-v-42c07cbf],.list-view header[data-v-42c07cbf]{align-items:flex-start;flex-direction:column}} diff --git a/web/assets/index-DX8Ei8SG.css b/web/assets/index-DX8Ei8SG.css new file mode 100644 index 0000000..faaef04 --- /dev/null +++ b/web/assets/index-DX8Ei8SG.css @@ -0,0 +1 @@ +.web-shell[data-v-bb688a19]{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-bb688a19],.inspector[data-v-bb688a19]{background:#fff}.sidebar[data-v-bb688a19]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-bb688a19]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-bb688a19]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-bb688a19]{font-size:19px}.brand span[data-v-bb688a19],p[data-v-bb688a19],dt[data-v-bb688a19],.empty[data-v-bb688a19],small[data-v-bb688a19]{color:#667085}nav[data-v-bb688a19]{display:grid;gap:6px}button[data-v-bb688a19]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-bb688a19]:disabled{cursor:wait;opacity:.62}nav button[data-v-bb688a19]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-bb688a19]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-bb688a19]{min-width:0;padding:24px}.topbar[data-v-bb688a19],.list-view header[data-v-bb688a19],.toolbar[data-v-bb688a19],.inline-actions[data-v-bb688a19]{display:flex;gap:12px;align-items:center}.topbar[data-v-bb688a19],.list-view header[data-v-bb688a19]{justify-content:space-between}.actions[data-v-bb688a19],.inline-actions[data-v-bb688a19]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-bb688a19],.toolbar button[data-v-bb688a19],.list-view header button[data-v-bb688a19],.inline-actions button[data-v-bb688a19]{padding:0 14px}h1[data-v-bb688a19],h2[data-v-bb688a19],p[data-v-bb688a19],dl[data-v-bb688a19],dd[data-v-bb688a19]{margin:0}h1[data-v-bb688a19]{min-height:30px;font-size:26px}h2[data-v-bb688a19]{font-size:15px}.notice[data-v-bb688a19],article[data-v-bb688a19],.list-view[data-v-bb688a19],.editor-panel[data-v-bb688a19],pre[data-v-bb688a19]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-bb688a19]{margin-top:18px;padding:14px}.error[data-v-bb688a19]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-bb688a19],.split-view[data-v-bb688a19]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-bb688a19]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-bb688a19]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-bb688a19]{display:grid;gap:8px;padding:16px}article span[data-v-bb688a19]{color:#667085;font-size:13px}article strong[data-v-bb688a19]{font-size:24px}.list-view[data-v-bb688a19],.logs-view[data-v-bb688a19],.settings-view[data-v-bb688a19]{margin-top:18px}.split-view .list-view[data-v-bb688a19],.logs-view .list-view[data-v-bb688a19]{margin-top:0}.list-view[data-v-bb688a19]{padding:16px}.editor-panel[data-v-bb688a19]{display:grid;gap:12px;margin-top:12px;padding:16px}.inspector-form[data-v-bb688a19]{display:grid;gap:10px;margin:12px 0}.inspector-form button[data-v-bb688a19]{padding:0 12px}.editor-panel header[data-v-bb688a19]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-bb688a19]{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-bb688a19]{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-bb688a19]{display:grid;gap:5px;min-width:0}label span[data-v-bb688a19]{color:#667085;font-size:12px}.wide-field[data-v-bb688a19]{grid-column:1 / -1}input[data-v-bb688a19],select[data-v-bb688a19]{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-bb688a19]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-bb688a19]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-bb688a19]:first-child{border-top:0}li>div[data-v-bb688a19]{display:grid;gap:3px;min-width:0}.image-preview[data-v-bb688a19]{width:52px;height:52px;flex:0 0 52px;border:1px solid #d9e0e8;border-radius:6px;object-fit:cover;background:#f5f6f8}li strong[data-v-bb688a19],li span[data-v-bb688a19],li small[data-v-bb688a19]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-bb688a19]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-bb688a19]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-bb688a19]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-bb688a19]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-bb688a19]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-bb688a19]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-bb688a19]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-bb688a19]{display:none}}@media(max-width:820px){.web-shell[data-v-bb688a19]{grid-template-columns:1fr}.sidebar[data-v-bb688a19]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-bb688a19]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-bb688a19]{text-align:center}.dashboard-grid[data-v-bb688a19],.split-view[data-v-bb688a19],.settings-sections[data-v-bb688a19]{grid-template-columns:1fr}.topbar[data-v-bb688a19],.list-view header[data-v-bb688a19]{align-items:flex-start;flex-direction:column}} diff --git a/web/assets/index-ur_RQ_Aq.js b/web/assets/index-ur_RQ_Aq.js new file mode 100644 index 0000000..8870fc4 --- /dev/null +++ b/web/assets/index-ur_RQ_Aq.js @@ -0,0 +1,17 @@ +var $r=Object.defineProperty;var Vr=(e,t,n)=>t in e?$r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fn=(e,t,n)=>Vr(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 a of s)if(a.type==="childList")for(const d of a.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}})();/** +* @vue/shared v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function $n(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const _e={},qt=[],dt=()=>{},rs=()=>!1,ql=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Jl=e=>e.startsWith("onUpdate:"),Ie=Object.assign,Vn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Br=Object.prototype.hasOwnProperty,ve=(e,t)=>Br.call(e,t),J=Array.isArray,Jt=e=>ml(e)==="[object Map]",zl=e=>ml(e)==="[object Set]",Io=e=>ml(e)==="[object Date]",Y=e=>typeof e=="function",xe=e=>typeof e=="string",ct=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",as=e=>(ge(e)||Y(e))&&Y(e.then)&&Y(e.catch),us=Object.prototype.toString,ml=e=>us.call(e),Lr=e=>ml(e).slice(8,-1),ds=e=>ml(e)==="[object Object]",Bn=e=>xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,il=$n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gl=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Fr=/-\w/g,Qe=Gl(e=>e.replace(Fr,t=>t.slice(1).toUpperCase())),Nr=/\B([A-Z])/g,Nt=Gl(e=>e.replace(Nr,"-$1").toLowerCase()),cs=Gl(e=>e.charAt(0).toUpperCase()+e.slice(1)),pn=Gl(e=>e?`on${cs(e)}`:""),ut=(e,t)=>!Object.is(e,t),Rl=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},Yl=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let To;const Ql=()=>To||(To=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ln(e){if(J(e)){const t={};for(let n=0;n{if(n){const o=n.split(Wr);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Xl(e){let t="";if(xe(e))t=e;else if(J(e))for(let n=0;nyl(n,t))}const vs=e=>!!(e&&e.__v_isRef===!0),r=e=>xe(e)?e:e==null?"":J(e)||ge(e)&&(e.toString===us||!Y(e.toString))?vs(e)?r(e.value):JSON.stringify(e,gs,2):String(e),gs=(e,t)=>vs(t)?gs(e,t.value):Jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s],a)=>(n[vn(o,a)+" =>"]=s,n),{})}:zl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>vn(n))}:ct(t)?vn(t):ge(t)&&!J(t)&&!ds(t)?String(t):t,vn=(e,t="")=>{var n;return ct(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Ee;class Yr{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&&Ee&&(Ee.active?(this.parent=Ee,this.index=(Ee.scopes||(Ee.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(Ee===this)Ee=this.prevScope;else{let t=Ee;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(al){let t=al;for(al=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;rl;){let t=rl;for(rl=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 ys(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function bs(e){let t,n=e.depsTail,o=n;for(;o;){const s=o.prevDep;o.version===-1?(o===n&&(n=s),jn(o),Xr(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=n}function Sn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ws(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ws(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===pl)||(e.globalVersion=pl,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Sn(e))))return;e.flags|=2;const t=e.dep,n=he,o=Xe;he=e,Xe=!0;try{ys(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{he=n,Xe=o,bs(e),e.flags&=-3}}function jn(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 a=n.computed.deps;a;a=a.nextDep)jn(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Xr(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Xe=!0;const ks=[];function ft(){ks.push(Xe),Xe=!1}function pt(){const e=ks.pop();Xe=e===void 0?!0:e}function Oo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=he;he=void 0;try{t()}finally{he=n}}}let pl=0;class Zr{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 Wn{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(!he||!Xe||he===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==he)n=this.activeLink=new Zr(he,this),he.deps?(n.prevDep=he.depsTail,he.depsTail.nextDep=n,he.depsTail=n):he.deps=he.depsTail=n,xs(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=he.depsTail,n.nextDep=void 0,he.depsTail.nextDep=n,he.depsTail=n,he.deps===n&&(he.deps=o)}return n}trigger(t){this.version++,pl++,this.notify(t)}notify(t){Fn();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Nn()}}}function xs(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)xs(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Pn=new WeakMap,Lt=Symbol(""),Dn=Symbol(""),vl=Symbol("");function Oe(e,t,n){if(Xe&&he){let o=Pn.get(e);o||Pn.set(e,o=new Map);let s=o.get(n);s||(o.set(n,s=new Wn),s.map=o,s.key=n),s.track()}}function xt(e,t,n,o,s,a){const d=Pn.get(e);if(!d){pl++;return}const p=v=>{v&&v.trigger()};if(Fn(),t==="clear")d.forEach(p);else{const v=J(e),h=v&&Bn(n);if(v&&n==="length"){const _=Number(o);d.forEach((w,M)=>{(M==="length"||M===vl||!ct(M)&&M>=_)&&p(w)})}else switch((n!==void 0||d.has(void 0))&&p(d.get(n)),h&&p(d.get(vl)),t){case"add":v?h&&p(d.get("length")):(p(d.get(Lt)),Jt(e)&&p(d.get(Dn)));break;case"delete":v||(p(d.get(Lt)),Jt(e)&&p(d.get(Dn)));break;case"set":Jt(e)&&p(d.get(Lt));break}}Nn()}function Ht(e){const t=pe(e);return t===e?t:(Oe(t,"iterate",vl),ze(e)?t:t.map(Ze))}function Zl(e){return Oe(e=pe(e),"iterate",vl),e}function rt(e,t){return Pt(e)?Qt(Ft(e)?Ze(t):t):Ze(t)}const ea={__proto__:null,[Symbol.iterator](){return _n(this,Symbol.iterator,e=>rt(this,e))},concat(...e){return Ht(this).concat(...e.map(t=>J(t)?Ht(t):t))},entries(){return _n(this,"entries",e=>(e[1]=rt(this,e[1]),e))},every(e,t){return yt(this,"every",e,t,void 0,arguments)},filter(e,t){return yt(this,"filter",e,t,n=>n.map(o=>rt(this,o)),arguments)},find(e,t){return yt(this,"find",e,t,n=>rt(this,n),arguments)},findIndex(e,t){return yt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return yt(this,"findLast",e,t,n=>rt(this,n),arguments)},findLastIndex(e,t){return yt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return yt(this,"forEach",e,t,void 0,arguments)},includes(...e){return hn(this,"includes",e)},indexOf(...e){return hn(this,"indexOf",e)},join(e){return Ht(this).join(e)},lastIndexOf(...e){return hn(this,"lastIndexOf",e)},map(e,t){return yt(this,"map",e,t,void 0,arguments)},pop(){return ll(this,"pop")},push(...e){return ll(this,"push",e)},reduce(e,...t){return Uo(this,"reduce",e,t)},reduceRight(e,...t){return Uo(this,"reduceRight",e,t)},shift(){return ll(this,"shift")},some(e,t){return yt(this,"some",e,t,void 0,arguments)},splice(...e){return ll(this,"splice",e)},toReversed(){return Ht(this).toReversed()},toSorted(e){return Ht(this).toSorted(e)},toSpliced(...e){return Ht(this).toSpliced(...e)},unshift(...e){return ll(this,"unshift",e)},values(){return _n(this,"values",e=>rt(this,e))}};function _n(e,t,n){const o=Zl(e),s=o[t]();return o!==e&&!ze(e)&&(s._next=s.next,s.next=()=>{const a=s._next();return a.done||(a.value=n(a.value)),a}),s}const ta=Array.prototype;function yt(e,t,n,o,s,a){const d=Zl(e),p=d!==e&&!ze(e),v=d[t];if(v!==ta[t]){const w=v.apply(e,a);return p?Ze(w):w}let h=n;d!==e&&(p?h=function(w,M){return n.call(this,rt(e,w),M,e)}:n.length>2&&(h=function(w,M){return n.call(this,w,M,e)}));const _=v.call(d,h,o);return p&&s?s(_):_}function Uo(e,t,n,o){const s=Zl(e),a=s!==e&&!ze(e);let d=n,p=!1;s!==e&&(a?(p=o.length===0,d=function(h,_,w){return p&&(p=!1,h=rt(e,h)),n.call(this,h,rt(e,_),w,e)}):n.length>3&&(d=function(h,_,w){return n.call(this,h,_,w,e)}));const v=s[t](d,...o);return p?rt(e,v):v}function hn(e,t,n){const o=pe(e);Oe(o,"iterate",vl);const s=o[t](...n);return(s===-1||s===!1)&&Jn(n[0])?(n[0]=pe(n[0]),o[t](...n)):s}function ll(e,t,n=[]){ft(),Fn();const o=pe(e)[t].apply(e,n);return Nn(),pt(),o}const la=$n("__proto__,__v_isRef,__isVue"),Cs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ct));function na(e){ct(e)||(e=String(e));const t=pe(this);return Oe(t,"has",e),t.hasOwnProperty(e)}class Ss{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,a=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return a;if(n==="__v_raw")return o===(s?a?pa:Is:a?Es:Ds).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const d=J(t);if(!s){let v;if(d&&(v=ea[n]))return v;if(n==="hasOwnProperty")return na}const p=Reflect.get(t,n,Ue(t)?t:o);if((ct(n)?Cs.has(n):la(n))||(s||Oe(t,"get",n),a))return p;if(Ue(p)){const v=d&&Bn(n)?p:p.value;return s&&ge(v)?In(v):v}return ge(p)?s?In(p):Kn(p):p}}class Ps extends Ss{constructor(t=!1){super(!1,t)}set(t,n,o,s){let a=t[n];const d=J(t)&&Bn(n);if(!this._isShallow){const h=Pt(a);if(!ze(o)&&!Pt(o)&&(a=pe(a),o=pe(o)),!d&&Ue(a)&&!Ue(o))return h||(a.value=o),!0}const p=d?Number(n)e,Ol=e=>Reflect.getPrototypeOf(e);function aa(e,t,n){return function(...o){const s=this.__v_raw,a=pe(s),d=Jt(a),p=e==="entries"||e===Symbol.iterator&&d,v=e==="keys"&&d,h=s[e](...o),_=n?En:t?Qt:Ze;return!t&&Oe(a,"iterate",v?Dn:Lt),Ie(Object.create(h),{next(){const{value:w,done:M}=h.next();return M?{value:w,done:M}:{value:p?[_(w[0]),_(w[1])]:_(w),done:M}}})}}function Ul(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ua(e,t){const n={get(s){const a=this.__v_raw,d=pe(a),p=pe(s);e||(ut(s,p)&&Oe(d,"get",s),Oe(d,"get",p));const{has:v}=Ol(d),h=t?En:e?Qt:Ze;if(v.call(d,s))return h(a.get(s));if(v.call(d,p))return h(a.get(p));a!==d&&a.get(s)},get size(){const s=this.__v_raw;return!e&&Oe(pe(s),"iterate",Lt),s.size},has(s){const a=this.__v_raw,d=pe(a),p=pe(s);return e||(ut(s,p)&&Oe(d,"has",s),Oe(d,"has",p)),s===p?a.has(s):a.has(s)||a.has(p)},forEach(s,a){const d=this,p=d.__v_raw,v=pe(p),h=t?En:e?Qt:Ze;return!e&&Oe(v,"iterate",Lt),p.forEach((_,w)=>s.call(a,h(_),h(w),d))}};return Ie(n,e?{add:Ul("add"),set:Ul("set"),delete:Ul("delete"),clear:Ul("clear")}:{add(s){const a=pe(this),d=Ol(a),p=pe(s),v=!t&&!ze(s)&&!Pt(s)?p:s;return d.has.call(a,v)||ut(s,v)&&d.has.call(a,s)||ut(p,v)&&d.has.call(a,p)||(a.add(v),xt(a,"add",v,v)),this},set(s,a){!t&&!ze(a)&&!Pt(a)&&(a=pe(a));const d=pe(this),{has:p,get:v}=Ol(d);let h=p.call(d,s);h||(s=pe(s),h=p.call(d,s));const _=v.call(d,s);return d.set(s,a),h?ut(a,_)&&xt(d,"set",s,a):xt(d,"add",s,a),this},delete(s){const a=pe(this),{has:d,get:p}=Ol(a);let v=d.call(a,s);v||(s=pe(s),v=d.call(a,s)),p&&p.call(a,s);const h=a.delete(s);return v&&xt(a,"delete",s,void 0),h},clear(){const s=pe(this),a=s.size!==0,d=s.clear();return a&&xt(s,"clear",void 0,void 0),d}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=aa(s,e,t)}),n}function Hn(e,t){const n=ua(e,t);return(o,s,a)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(ve(n,s)&&s in o?n:o,s,a)}const da={get:Hn(!1,!1)},ca={get:Hn(!1,!0)},fa={get:Hn(!0,!1)};const Ds=new WeakMap,Es=new WeakMap,Is=new WeakMap,pa=new WeakMap;function va(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Kn(e){return Pt(e)?e:qn(e,!1,sa,da,Ds)}function ga(e){return qn(e,!1,ra,ca,Es)}function In(e){return qn(e,!0,ia,fa,Is)}function qn(e,t,n,o,s){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const a=s.get(e);if(a)return a;const d=va(Lr(e));if(d===0)return e;const p=new Proxy(e,d===2?o:n);return s.set(e,p),p}function Ft(e){return Pt(e)?Ft(e.__v_raw):!!(e&&e.__v_isReactive)}function Pt(e){return!!(e&&e.__v_isReadonly)}function ze(e){return!!(e&&e.__v_isShallow)}function Jn(e){return e?!!e.__v_raw:!1}function pe(e){const t=e&&e.__v_raw;return t?pe(t):e}function _a(e){return!ve(e,"__v_skip")&&Object.isExtensible(e)&&fs(e,"__v_skip",!0),e}const Ze=e=>ge(e)?Kn(e):e,Qt=e=>ge(e)?In(e):e;function Ue(e){return e?e.__v_isRef===!0:!1}function $(e){return ha(e,!1)}function ha(e,t){return Ue(e)?e:new ma(e,t)}class ma{constructor(t,n){this.dep=new Wn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:pe(t),this._value=n?t:Ze(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||ze(t)||Pt(t);t=o?t:pe(t),ut(t,n)&&(this._rawValue=t,this._value=o?t:Ze(t),this.dep.trigger())}}function ya(e){return Ue(e)?e.value:e}const ba={get:(e,t,n)=>t==="__v_raw"?e:ya(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return Ue(s)&&!Ue(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function Ts(e){return Ft(e)?e:new Proxy(e,ba)}class wa{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Wn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=pl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return ms(this,!0),!0}get value(){const t=this.dep.track();return ws(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ka(e,t,n=!1){let o,s;return Y(e)?o=e:(o=e.get,s=e.set),new wa(o,s,n)}const Al={},Vl=new WeakMap;let Vt;function xa(e,t=!1,n=Vt){if(n){let o=Vl.get(n);o||Vl.set(n,o=[]),o.push(e)}}function Ca(e,t,n=_e){const{immediate:o,deep:s,once:a,scheduler:d,augmentJob:p,call:v}=n,h=F=>s?F:ze(F)||s===!1||s===0?Ct(F,1):Ct(F);let _,w,M,L,ne=!1,H=!1;if(Ue(e)?(w=()=>e.value,ne=ze(e)):Ft(e)?(w=()=>h(e),ne=!0):J(e)?(H=!0,ne=e.some(F=>Ft(F)||ze(F)),w=()=>e.map(F=>{if(Ue(F))return F.value;if(Ft(F))return h(F);if(Y(F))return v?v(F,2):F()})):Y(e)?t?w=v?()=>v(e,2):e:w=()=>{if(M){ft();try{M()}finally{pt()}}const F=Vt;Vt=_;try{return v?v(e,3,[L]):e(L)}finally{Vt=F}}:w=dt,t&&s){const F=w,be=s===!0?1/0:s;w=()=>Ct(F(),be)}const oe=Qr(),ue=()=>{_.stop(),oe&&oe.active&&Vn(oe.effects,_)};if(a&&t){const F=t;t=(...be)=>{const we=F(...be);return ue(),we}}let ee=H?new Array(e.length).fill(Al):Al;const de=F=>{if(!(!(_.flags&1)||!_.dirty&&!F))if(t){const be=_.run();if(F||s||ne||(H?be.some((we,Be)=>ut(we,ee[Be])):ut(be,ee))){M&&M();const we=Vt;Vt=_;try{const Be=[be,ee===Al?void 0:H&&ee[0]===Al?[]:ee,L];ee=be,v?v(t,3,Be):t(...Be)}finally{Vt=we}}}else _.run()};return p&&p(de),_=new _s(w),_.scheduler=d?()=>d(de,!1):de,L=F=>xa(F,!1,_),M=_.onStop=()=>{const F=Vl.get(_);if(F){if(v)v(F,4);else for(const be of F)be();Vl.delete(_)}},t?o?de(!0):ee=_.run():d?d(de.bind(null,!0),!0):_.run(),ue.pause=_.pause.bind(_),ue.resume=_.resume.bind(_),ue.stop=ue,ue}function Ct(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ue(e))Ct(e.value,t,n);else if(J(e))for(let o=0;o{Ct(o,t,n)});else if(ds(e)){for(const o in e)Ct(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ct(e[o],t,n)}return e}/** +* @vue/runtime-core v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function bl(e,t,n,o){try{return o?e(...o):e()}catch(s){en(s,t,n)}}function et(e,t,n,o){if(Y(e)){const s=bl(e,t,n,o);return s&&as(s)&&s.catch(a=>{en(a,t,n)}),s}if(J(e)){const s=[];for(let a=0;a>>1,s=$e[o],a=gl(s);a=gl(n)?$e.push(e):$e.splice(Pa(t),0,e),e.flags|=1,As()}}function As(){Bl||(Bl=Os.then(Ms))}function Da(e){J(e)?zt.push(...e):Tt&&e.id===-1?Tt.splice(Kt+1,0,e):e.flags&1||(zt.push(e),e.flags|=1),As()}function Ao(e,t,n=st+1){for(;n<$e.length;n++){const o=$e[n];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;$e.splice(n,1),n--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function Rs(e){if(zt.length){const t=[...new Set(zt)].sort((n,o)=>gl(n)-gl(o));if(zt.length=0,Tt){Tt.push(...t);return}for(Tt=t,Kt=0;Kte.id==null?e.flags&2?-1:1/0:e.id;function Ms(e){try{for(st=0;st<$e.length;st++){const t=$e[st];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),bl(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;st<$e.length;st++){const t=$e[st];t&&(t.flags&=-2)}st=-1,$e.length=0,Rs(),Bl=null,($e.length||zt.length)&&Ms()}}let Je=null,$s=null;function Ll(e){const t=Je;return Je=e,$s=e&&e.type.__scopeId||null,t}function Ea(e,t=Je,n){if(!t||e._n)return e;const o=(...s)=>{o._d&&Ho(-1);const a=Ll(t);let d;try{d=e(...s)}finally{Ll(a),o._d&&Ho(1)}return d};return o._n=!0,o._c=!0,o._d=!0,o}function T(e,t){if(Je===null)return e;const n=on(Je),o=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&Y(t)?t.call(o&&o.proxy):t}}const Ta=Symbol.for("v-scx"),Oa=()=>Ml(Ta);function mn(e,t,n){return Vs(e,t,n)}function Vs(e,t,n=_e){const{immediate:o,deep:s,flush:a,once:d}=n,p=Ie({},n),v=t&&o||!t&&a!=="post";let h;if(hl){if(a==="sync"){const L=Oa();h=L.__watcherHandles||(L.__watcherHandles=[])}else if(!v){const L=()=>{};return L.stop=dt,L.resume=dt,L.pause=dt,L}}const _=Ve;p.call=(L,ne,H)=>et(L,_,ne,H);let w=!1;a==="post"?p.scheduler=L=>{Fe(L,_&&_.suspense)}:a!=="sync"&&(w=!0,p.scheduler=(L,ne)=>{ne?L():zn(L)}),p.augmentJob=L=>{t&&(L.flags|=4),w&&(L.flags|=2,_&&(L.id=_.uid,L.i=_))};const M=Ca(e,t,p);return hl&&(h?h.push(M):v&&M()),M}function Ua(e,t,n){const o=this.proxy,s=xe(e)?e.includes(".")?Bs(o,e):()=>o[e]:e.bind(o,o);let a;Y(t)?a=t:(a=t.handler,n=t);const d=wl(this),p=Vs(s,a.bind(o),n);return d(),p}function Bs(e,t){const n=t.split(".");return()=>{let o=e;for(let s=0;se.__isTeleport,yn=Symbol("_leaveCb");function Gn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Gn(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 Ma(e,t){return Y(e)?Ie({name:e.name},t,{setup:e}):e}function Ls(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ro(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Fl=new WeakMap;function ul(e,t,n,o,s=!1){if(J(e)){e.forEach((H,oe)=>ul(H,t&&(J(t)?t[oe]:t),n,o,s));return}if(dl(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&ul(e,t,n,o.component.subTree);return}const a=o.shapeFlag&4?on(o.component):o.el,d=s?null:a,{i:p,r:v}=e,h=t&&t.r,_=p.refs===_e?p.refs={}:p.refs,w=p.setupState,M=pe(w),L=w===_e?rs:H=>Ro(_,H)?!1:ve(M,H),ne=(H,oe)=>!(oe&&Ro(_,oe));if(h!=null&&h!==v){if(Mo(t),xe(h))_[h]=null,L(h)&&(w[h]=null);else if(Ue(h)){const H=t;ne(h,H.k)&&(h.value=null),H.k&&(_[H.k]=null)}}if(Y(v)){ft();try{bl(v,p,12,[d,_])}finally{pt()}}else{const H=xe(v),oe=Ue(v);if(H||oe){const ue=()=>{if(e.f){const ee=H?L(v)?w[v]:_[v]:ne()||!e.k?v.value:_[e.k];if(s)J(ee)&&Vn(ee,a);else if(J(ee))ee.includes(a)||ee.push(a);else if(H)_[v]=[a],L(v)&&(w[v]=_[v]);else{const de=[a];ne(v,e.k)&&(v.value=de),e.k&&(_[e.k]=de)}}else H?(_[v]=d,L(v)&&(w[v]=d)):oe&&(ne(v,e.k)&&(v.value=d),e.k&&(_[e.k]=d))};if(d){const ee=()=>{ue(),Fl.delete(e)};ee.id=-1,Fl.set(e,ee),Fe(ee,n)}else Mo(e),ue()}}}function Mo(e){const t=Fl.get(e);t&&(t.flags|=8,Fl.delete(e))}Ql().requestIdleCallback;Ql().cancelIdleCallback;const dl=e=>!!e.type.__asyncLoader,Fs=e=>e.type.__isKeepAlive;function $a(e,t){Ns(e,"a",t)}function Va(e,t){Ns(e,"da",t)}function Ns(e,t,n=Ve){const o=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(tn(t,o,n),n){let s=n.parent;for(;s&&s.parent;)Fs(s.parent.vnode)&&Ba(o,t,n,s),s=s.parent}}function Ba(e,t,n,o){const s=tn(t,e,o,!0);Ws(()=>{Vn(o[t],s)},n)}function tn(e,t,n=Ve,o=!1){if(n){const s=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...d)=>{ft();const p=wl(n),v=et(t,n,e,d);return p(),pt(),v});return o?s.unshift(a):s.push(a),a}}const Dt=e=>(t,n=Ve)=>{(!hl||e==="sp")&&tn(e,(...o)=>t(...o),n)},La=Dt("bm"),js=Dt("m"),Fa=Dt("bu"),Na=Dt("u"),ja=Dt("bum"),Ws=Dt("um"),Wa=Dt("sp"),Ha=Dt("rtg"),Ka=Dt("rtc");function qa(e,t=Ve){tn("ec",e,t)}const Ja=Symbol.for("v-ndc");function fe(e,t,n,o){let s;const a=n,d=J(e);if(d||xe(e)){const p=d&&Ft(e);let v=!1,h=!1;p&&(v=!ze(e),h=Pt(e),e=Zl(e)),s=new Array(e.length);for(let _=0,w=e.length;_t(p,v,void 0,a));else{const p=Object.keys(e);s=new Array(p.length);for(let v=0,h=p.length;ve?di(e)?on(e):Tn(e.parent):null,cl=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=>Tn(e.parent),$root:e=>Tn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ks(e),$forceUpdate:e=>e.f||(e.f=()=>{zn(e.update)}),$nextTick:e=>e.n||(e.n=Us.bind(e.proxy)),$watch:e=>Ua.bind(e)}),bn=(e,t)=>e!==_e&&!e.__isScriptSetup&&ve(e,t),za={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:s,props:a,accessCache:d,type:p,appContext:v}=e;if(t[0]!=="$"){const M=d[t];if(M!==void 0)switch(M){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return a[t]}else{if(bn(o,t))return d[t]=1,o[t];if(s!==_e&&ve(s,t))return d[t]=2,s[t];if(ve(a,t))return d[t]=3,a[t];if(n!==_e&&ve(n,t))return d[t]=4,n[t];On&&(d[t]=0)}}const h=cl[t];let _,w;if(h)return t==="$attrs"&&Oe(e.attrs,"get",""),h(e);if((_=p.__cssModules)&&(_=_[t]))return _;if(n!==_e&&ve(n,t))return d[t]=4,n[t];if(w=v.config.globalProperties,ve(w,t))return w[t]},set({_:e},t,n){const{data:o,setupState:s,ctx:a}=e;return bn(s,t)?(s[t]=n,!0):o!==_e&&ve(o,t)?(o[t]=n,!0):ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:s,props:a,type:d}},p){let v;return!!(n[p]||e!==_e&&p[0]!=="$"&&ve(e,p)||bn(t,p)||ve(a,p)||ve(o,p)||ve(cl,p)||ve(s.config.globalProperties,p)||(v=d.__cssModules)&&v[p])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ve(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function $o(e){return J(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let On=!0;function Ga(e){const t=Ks(e),n=e.proxy,o=e.ctx;On=!1,t.beforeCreate&&Vo(t.beforeCreate,e,"bc");const{data:s,computed:a,methods:d,watch:p,provide:v,inject:h,created:_,beforeMount:w,mounted:M,beforeUpdate:L,updated:ne,activated:H,deactivated:oe,beforeDestroy:ue,beforeUnmount:ee,destroyed:de,unmounted:F,render:be,renderTracked:we,renderTriggered:Be,errorCaptured:Ae,serverPrefetch:We,expose:He,inheritAttrs:tt,components:vt,directives:gt,filters:me}=t;if(h&&Ya(h,o,null),d)for(const se in d){const le=d[se];Y(le)&&(o[se]=le.bind(n))}if(s){const se=s.call(n,n);ge(se)&&(e.data=Kn(se))}if(On=!0,a)for(const se in a){const le=a[se],De=Y(le)?le.bind(n,n):Y(le.get)?le.get.bind(n,n):dt,_t=!Y(le)&&Y(le.set)?le.set.bind(n):dt,Ne=It({get:De,set:_t});Object.defineProperty(o,se,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:Te=>Ne.value=Te})}if(p)for(const se in p)Hs(p[se],o,n,se);if(v){const se=Y(v)?v.call(n):v;Reflect.ownKeys(se).forEach(le=>{Ia(le,se[le])})}_&&Vo(_,e,"c");function ke(se,le){J(le)?le.forEach(De=>se(De.bind(n))):le&&se(le.bind(n))}if(ke(La,w),ke(js,M),ke(Fa,L),ke(Na,ne),ke($a,H),ke(Va,oe),ke(qa,Ae),ke(Ka,we),ke(Ha,Be),ke(ja,ee),ke(Ws,F),ke(Wa,We),J(He))if(He.length){const se=e.exposed||(e.exposed={});He.forEach(le=>{Object.defineProperty(se,le,{get:()=>n[le],set:De=>n[le]=De,enumerable:!0})})}else e.exposed||(e.exposed={});be&&e.render===dt&&(e.render=be),tt!=null&&(e.inheritAttrs=tt),vt&&(e.components=vt),gt&&(e.directives=gt),We&&Ls(e)}function Ya(e,t,n=dt){J(e)&&(e=Un(e));for(const o in e){const s=e[o];let a;ge(s)?"default"in s?a=Ml(s.from||o,s.default,!0):a=Ml(s.from||o):a=Ml(s),Ue(a)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:d=>a.value=d}):t[o]=a}}function Vo(e,t,n){et(J(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Hs(e,t,n,o){let s=o.includes(".")?Bs(n,o):()=>n[o];if(xe(e)){const a=t[e];Y(a)&&mn(s,a)}else if(Y(e))mn(s,e.bind(n));else if(ge(e))if(J(e))e.forEach(a=>Hs(a,t,n,o));else{const a=Y(e.handler)?e.handler.bind(n):t[e.handler];Y(a)&&mn(s,a,e)}}function Ks(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:a,config:{optionMergeStrategies:d}}=e.appContext,p=a.get(t);let v;return p?v=p:!s.length&&!n&&!o?v=t:(v={},s.length&&s.forEach(h=>Nl(v,h,d,!0)),Nl(v,t,d)),ge(t)&&a.set(t,v),v}function Nl(e,t,n,o=!1){const{mixins:s,extends:a}=t;a&&Nl(e,a,n,!0),s&&s.forEach(d=>Nl(e,d,n,!0));for(const d in t)if(!(o&&d==="expose")){const p=Qa[d]||n&&n[d];e[d]=p?p(e[d],t[d]):t[d]}return e}const Qa={data:Bo,props:Lo,emits:Lo,methods:ol,computed:ol,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:ol,directives:ol,watch:Za,provide:Bo,inject:Xa};function Bo(e,t){return t?e?function(){return Ie(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:t:e}function Xa(e,t){return ol(Un(e),Un(t))}function Un(e){if(J(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Qe(t)}Modifiers`]||e[`${Nt(t)}Modifiers`];function nu(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||_e;let s=n;const a=t.startsWith("update:"),d=a&&lu(o,t.slice(7));d&&(d.trim&&(s=n.map(_=>xe(_)?_.trim():_)),d.number&&(s=n.map(Yl)));let p,v=o[p=pn(t)]||o[p=pn(Qe(t))];!v&&a&&(v=o[p=pn(Nt(t))]),v&&et(v,e,6,s);const h=o[p+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[p])return;e.emitted[p]=!0,et(h,e,6,s)}}const ou=new WeakMap;function Js(e,t,n=!1){const o=n?ou:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const a=e.emits;let d={},p=!1;if(!Y(e)){const v=h=>{const _=Js(h,t,!0);_&&(p=!0,Ie(d,_))};!n&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}return!a&&!p?(ge(e)&&o.set(e,null),null):(J(a)?a.forEach(v=>d[v]=null):Ie(d,a),ge(e)&&o.set(e,d),d)}function ln(e,t){return!e||!ql(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ve(e,t[0].toLowerCase()+t.slice(1))||ve(e,Nt(t))||ve(e,t))}function Fo(e){const{type:t,vnode:n,proxy:o,withProxy:s,propsOptions:[a],slots:d,attrs:p,emit:v,render:h,renderCache:_,props:w,data:M,setupState:L,ctx:ne,inheritAttrs:H}=e,oe=Ll(e);let ue,ee;try{if(n.shapeFlag&4){const F=s||o,be=F;ue=at(h.call(be,F,_,w,L,M,ne)),ee=p}else{const F=t;ue=at(F.length>1?F(w,{attrs:p,slots:d,emit:v}):F(w,null)),ee=t.props?p:su(p)}}catch(F){fl.length=0,en(F,e,1),ue=St(Ot)}let de=ue;if(ee&&H!==!1){const F=Object.keys(ee),{shapeFlag:be}=de;F.length&&be&7&&(a&&F.some(Jl)&&(ee=iu(ee,a)),de=Xt(de,ee,!1,!0))}return n.dirs&&(de=Xt(de,null,!1,!0),de.dirs=de.dirs?de.dirs.concat(n.dirs):n.dirs),n.transition&&Gn(de,n.transition),ue=de,Ll(oe),ue}const su=e=>{let t;for(const n in e)(n==="class"||n==="style"||ql(n))&&((t||(t={}))[n]=e[n]);return t},iu=(e,t)=>{const n={};for(const o in e)(!Jl(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function ru(e,t,n){const{props:o,children:s,component:a}=e,{props:d,children:p,patchFlag:v}=t,h=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&v>=0){if(v&1024)return!0;if(v&16)return o?No(o,d,h):!!d;if(v&8){const _=t.dynamicProps;for(let w=0;w<_.length;w++){const M=_[w];if(zs(d,o,M)&&!ln(h,M))return!0}}}else return(s||p)&&(!p||!p.$stable)?!0:o===d?!1:o?d?No(o,d,h):!0:!!d;return!1}function No(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;sObject.create(Gs),Qs=e=>Object.getPrototypeOf(e)===Gs;function uu(e,t,n,o=!1){const s={},a=Ys();e.propsDefaults=Object.create(null),Xs(e,t,s,a);for(const d in e.propsOptions[0])d in s||(s[d]=void 0);n?e.props=o?s:ga(s):e.type.props?e.props=s:e.props=a,e.attrs=a}function du(e,t,n,o){const{props:s,attrs:a,vnode:{patchFlag:d}}=e,p=pe(s),[v]=e.propsOptions;let h=!1;if((o||d>0)&&!(d&16)){if(d&8){const _=e.vnode.dynamicProps;for(let w=0;w<_.length;w++){let M=_[w];if(ln(e.emitsOptions,M))continue;const L=t[M];if(v)if(ve(a,M))L!==a[M]&&(a[M]=L,h=!0);else{const ne=Qe(M);s[ne]=An(v,p,ne,L,e,!1)}else L!==a[M]&&(a[M]=L,h=!0)}}}else{Xs(e,t,s,a)&&(h=!0);let _;for(const w in p)(!t||!ve(t,w)&&((_=Nt(w))===w||!ve(t,_)))&&(v?n&&(n[w]!==void 0||n[_]!==void 0)&&(s[w]=An(v,p,w,void 0,e,!0)):delete s[w]);if(a!==p)for(const w in a)(!t||!ve(t,w))&&(delete a[w],h=!0)}h&&xt(e.attrs,"set","")}function Xs(e,t,n,o){const[s,a]=e.propsOptions;let d=!1,p;if(t)for(let v in t){if(il(v))continue;const h=t[v];let _;s&&ve(s,_=Qe(v))?!a||!a.includes(_)?n[_]=h:(p||(p={}))[_]=h:ln(e.emitsOptions,v)||(!(v in o)||h!==o[v])&&(o[v]=h,d=!0)}if(a){const v=pe(n),h=p||_e;for(let _=0;_{v=!0;const[M,L]=Zs(w,t,!0);Ie(d,M),L&&p.push(...L)};!n&&t.mixins.length&&t.mixins.forEach(_),e.extends&&_(e.extends),e.mixins&&e.mixins.forEach(_)}if(!a&&!v)return ge(e)&&o.set(e,qt),qt;if(J(a))for(let _=0;_e==="_"||e==="_ctx"||e==="$stable",Qn=e=>J(e)?e.map(at):[at(e)],fu=(e,t,n)=>{if(t._n)return t;const o=Ea((...s)=>Qn(t(...s)),n);return o._c=!1,o},ei=(e,t,n)=>{const o=e._ctx;for(const s in e){if(Yn(s))continue;const a=e[s];if(Y(a))t[s]=fu(s,a,o);else if(a!=null){const d=Qn(a);t[s]=()=>d}}},ti=(e,t)=>{const n=Qn(t);e.slots.default=()=>n},li=(e,t,n)=>{for(const o in t)(n||!Yn(o))&&(e[o]=t[o])},pu=(e,t,n)=>{const o=e.slots=Ys();if(e.vnode.shapeFlag&32){const s=t._;s?(li(o,t,n),n&&fs(o,"_",s,!0)):ei(t,o)}else t&&ti(e,t)},vu=(e,t,n)=>{const{vnode:o,slots:s}=e;let a=!0,d=_e;if(o.shapeFlag&32){const p=t._;p?n&&p===1?a=!1:li(s,t,n):(a=!t.$stable,ei(t,s)),d=t}else t&&(ti(e,t),d={default:1});if(a)for(const p in s)!Yn(p)&&d[p]==null&&delete s[p]},Fe=yu;function gu(e){return _u(e)}function _u(e,t){const n=Ql();n.__VUE__=!0;const{insert:o,remove:s,patchProp:a,createElement:d,createText:p,createComment:v,setText:h,setElementText:_,parentNode:w,nextSibling:M,setScopeId:L=dt,insertStaticContent:ne}=e,H=(f,g,m,S=null,k=null,C=null,O=void 0,D=null,I=!!g.dynamicChildren)=>{if(f===g)return;f&&!nl(f,g)&&(S=te(f),Te(f,k,C,!0),f=null),g.patchFlag===-2&&(I=!1,g.dynamicChildren=null);const{type:x,ref:A,shapeFlag:E}=g;switch(x){case nn:oe(f,g,m,S);break;case Ot:ue(f,g,m,S);break;case kn:f==null&&ee(g,m,S,O);break;case Z:vt(f,g,m,S,k,C,O,D,I);break;default:E&1?be(f,g,m,S,k,C,O,D,I):E&6?gt(f,g,m,S,k,C,O,D,I):(E&64||E&128)&&x.process(f,g,m,S,k,C,O,D,I,Le)}A!=null&&k?ul(A,f&&f.ref,C,g||f,!g):A==null&&f&&f.ref!=null&&ul(f.ref,null,C,f,!0)},oe=(f,g,m,S)=>{if(f==null)o(g.el=p(g.children),m,S);else{const k=g.el=f.el;g.children!==f.children&&h(k,g.children)}},ue=(f,g,m,S)=>{f==null?o(g.el=v(g.children||""),m,S):g.el=f.el},ee=(f,g,m,S)=>{[f.el,f.anchor]=ne(f.children,g,m,S,f.el,f.anchor)},de=({el:f,anchor:g},m,S)=>{let k;for(;f&&f!==g;)k=M(f),o(f,m,S),f=k;o(g,m,S)},F=({el:f,anchor:g})=>{let m;for(;f&&f!==g;)m=M(f),s(f),f=m;s(g)},be=(f,g,m,S,k,C,O,D,I)=>{if(g.type==="svg"?O="svg":g.type==="math"&&(O="mathml"),f==null)we(g,m,S,k,C,O,D,I);else{const x=f.el&&f.el._isVueCE?f.el:null;try{x&&x._beginPatch(),We(f,g,k,C,O,D,I)}finally{x&&x._endPatch()}}},we=(f,g,m,S,k,C,O,D)=>{let I,x;const{props:A,shapeFlag:E,transition:V,dirs:j}=f;if(I=f.el=d(f.type,C,A&&A.is,A),E&8?_(I,f.children):E&16&&Ae(f.children,I,null,S,k,wn(f,C),O,D),j&&Mt(f,null,S,"created"),Be(I,f,f.scopeId,O,S),A){for(const q in A)q!=="value"&&!il(q)&&a(I,q,null,A[q],C,S);"value"in A&&a(I,"value",null,A.value,C),(x=A.onVnodeBeforeMount)&&ot(x,S,f)}j&&Mt(f,null,S,"beforeMount");const W=hu(k,V);W&&V.beforeEnter(I),o(I,g,m),((x=A&&A.onVnodeMounted)||W||j)&&Fe(()=>{try{x&&ot(x,S,f),W&&V.enter(I),j&&Mt(f,null,S,"mounted")}finally{}},k)},Be=(f,g,m,S,k)=>{if(m&&L(f,m),S)for(let C=0;C{for(let x=I;x{const D=g.el=f.el;let{patchFlag:I,dynamicChildren:x,dirs:A}=g;I|=f.patchFlag&16;const E=f.props||_e,V=g.props||_e;let j;if(m&&$t(m,!1),(j=V.onVnodeBeforeUpdate)&&ot(j,m,g,f),A&&Mt(g,f,m,"beforeUpdate"),m&&$t(m,!0),x&&(!f.dynamicChildren||f.dynamicChildren.length!==x.length)&&(I=0,O=!1,x=null),(E.innerHTML&&V.innerHTML==null||E.textContent&&V.textContent==null)&&_(D,""),x?He(f.dynamicChildren,x,D,m,S,wn(g,k),C):O||le(f,g,D,null,m,S,wn(g,k),C,!1),I>0){if(I&16)tt(D,E,V,m,k);else if(I&2&&E.class!==V.class&&a(D,"class",null,V.class,k),I&4&&a(D,"style",E.style,V.style,k),I&8){const W=g.dynamicProps;for(let q=0;q{j&&ot(j,m,g,f),A&&Mt(g,f,m,"updated")},S)},He=(f,g,m,S,k,C,O)=>{for(let D=0;D{if(g!==m){if(g!==_e)for(const C in g)!il(C)&&!(C in m)&&a(f,C,g[C],null,k,S);for(const C in m){if(il(C))continue;const O=m[C],D=g[C];O!==D&&C!=="value"&&a(f,C,D,O,k,S)}"value"in m&&a(f,"value",g.value,m.value,k)}},vt=(f,g,m,S,k,C,O,D,I)=>{const x=g.el=f?f.el:p(""),A=g.anchor=f?f.anchor:p("");let{patchFlag:E,dynamicChildren:V,slotScopeIds:j}=g;j&&(D=D?D.concat(j):j),f==null?(o(x,m,S),o(A,m,S),Ae(g.children||[],m,A,k,C,O,D,I)):E>0&&E&64&&V&&f.dynamicChildren&&f.dynamicChildren.length===V.length?(He(f.dynamicChildren,V,m,k,C,O,D),(g.key!=null||k&&g===k.subTree)&&ni(f,g,!0)):le(f,g,m,A,k,C,O,D,I)},gt=(f,g,m,S,k,C,O,D,I)=>{g.slotScopeIds=D,f==null?g.shapeFlag&512?k.ctx.activate(g,m,S,O,I):me(g,m,S,k,C,O,I):lt(f,g,I)},me=(f,g,m,S,k,C,O)=>{const D=f.component=Eu(f,S,k);if(Fs(f)&&(D.ctx.renderer=Le),Tu(D,!1,O),D.asyncDep){if(k&&k.registerDep(D,ke,O),!f.el){const I=D.subTree=St(Ot);ue(null,I,g,m),f.placeholder=I.el}}else ke(D,f,g,m,k,C,O)},lt=(f,g,m)=>{const S=g.component=f.component;if(ru(f,g,m))if(S.asyncDep&&!S.asyncResolved){se(S,g,m);return}else S.next=g,S.update();else g.el=f.el,S.vnode=g},ke=(f,g,m,S,k,C,O)=>{const D=()=>{if(f.isMounted){let{next:E,bu:V,u:j,parent:W,vnode:q}=f;{const z=oi(f);if(z){E&&(E.el=q.el,se(f,E,O)),z.asyncDep.then(()=>{Fe(()=>{f.isUnmounted||x()},k)});return}}let Q=E,ye;$t(f,!1),E?(E.el=q.el,se(f,E,O)):E=q,V&&Rl(V),(ye=E.props&&E.props.onVnodeBeforeUpdate)&&ot(ye,W,E,q),$t(f,!0);const ie=Fo(f),Re=f.subTree;f.subTree=ie,H(Re,ie,w(Re.el),te(Re),f,k,C),E.el=ie.el,Q===null&&au(f,ie.el),j&&Fe(j,k),(ye=E.props&&E.props.onVnodeUpdated)&&Fe(()=>ot(ye,W,E,q),k)}else{let E;const{el:V,props:j}=g,{bm:W,m:q,parent:Q,root:ye,type:ie}=f,Re=dl(g);$t(f,!1),W&&Rl(W),!Re&&(E=j&&j.onVnodeBeforeMount)&&ot(E,Q,g),$t(f,!0);{ye.ce&&ye.ce._hasShadowRoot()&&ye.ce._injectChildStyle(ie,f.parent?f.parent.type:void 0);const z=f.subTree=Fo(f);H(null,z,m,S,f,k,C),g.el=z.el}if(q&&Fe(q,k),!Re&&(E=j&&j.onVnodeMounted)){const z=g;Fe(()=>ot(E,Q,z),k)}(g.shapeFlag&256||Q&&dl(Q.vnode)&&Q.vnode.shapeFlag&256)&&f.a&&Fe(f.a,k),f.isMounted=!0,g=m=S=null}};f.scope.on();const I=f.effect=new _s(D);f.scope.off();const x=f.update=I.run.bind(I),A=f.job=I.runIfDirty.bind(I);A.i=f,A.id=f.uid,I.scheduler=()=>zn(A),$t(f,!0),x()},se=(f,g,m)=>{g.component=f;const S=f.vnode.props;f.vnode=g,f.next=null,du(f,g.props,S,m),vu(f,g.children,m),ft(),Ao(f),pt()},le=(f,g,m,S,k,C,O,D,I=!1)=>{const x=f&&f.children,A=f?f.shapeFlag:0,E=g.children,{patchFlag:V,shapeFlag:j}=g;if(V>0){if(V&128){_t(x,E,m,S,k,C,O,D,I);return}else if(V&256){De(x,E,m,S,k,C,O,D,I);return}}j&8?(A&16&&Ge(x,k,C),E!==x&&_(m,E)):A&16?j&16?_t(x,E,m,S,k,C,O,D,I):Ge(x,k,C,!0):(A&8&&_(m,""),j&16&&Ae(E,m,S,k,C,O,D,I))},De=(f,g,m,S,k,C,O,D,I)=>{f=f||qt,g=g||qt;const x=f.length,A=g.length,E=Math.min(x,A);let V;for(V=0;VA?Ge(f,k,C,!0,!1,E):Ae(g,m,S,k,C,O,D,I,E)},_t=(f,g,m,S,k,C,O,D,I)=>{let x=0;const A=g.length;let E=f.length-1,V=A-1;for(;x<=E&&x<=V;){const j=f[x],W=g[x]=I?kt(g[x]):at(g[x]);if(nl(j,W))H(j,W,m,null,k,C,O,D,I);else break;x++}for(;x<=E&&x<=V;){const j=f[E],W=g[V]=I?kt(g[V]):at(g[V]);if(nl(j,W))H(j,W,m,null,k,C,O,D,I);else break;E--,V--}if(x>E){if(x<=V){const j=V+1,W=jV)for(;x<=E;)Te(f[x],k,C,!0),x++;else{const j=x,W=x,q=new Map;for(x=W;x<=V;x++){const Ce=g[x]=I?kt(g[x]):at(g[x]);Ce.key!=null&&q.set(Ce.key,x)}let Q,ye=0;const ie=V-W+1;let Re=!1,z=0;const mt=new Array(ie);for(x=0;x=ie){Te(Ce,k,C,!0);continue}let Se;if(Ce.key!=null)Se=q.get(Ce.key);else for(Q=W;Q<=V;Q++)if(mt[Q-W]===0&&nl(Ce,g[Q])){Se=Q;break}Se===void 0?Te(Ce,k,C,!0):(mt[Se-W]=x+1,Se>=z?z=Se:Re=!0,H(Ce,g[Se],m,null,k,C,O,D,I),ye++)}const U=Re?mu(mt):qt;for(Q=U.length-1,x=ie-1;x>=0;x--){const Ce=W+x,Se=g[Ce],Zt=g[Ce+1],kl=Ce+1{const{el:C,type:O,transition:D,children:I,shapeFlag:x}=f;if(x&6){Ne(f.component.subTree,g,m,S);return}if(x&128){f.suspense.move(g,m,S);return}if(x&64){O.move(f,g,m,Le);return}if(O===Z){o(C,g,m);for(let E=0;ED.enter(C),k));else{const{leave:E,delayLeave:V,afterLeave:j}=D,W=()=>{f.ctx.isUnmounted?s(C):o(C,g,m)},q=()=>{const Q=C._isLeaving||!!C[yn];C._isLeaving&&C[yn](!0),D.persisted&&!Q?W():E(C,()=>{W(),j&&j()})};V?V(C,W,q):q()}else o(C,g,m)},Te=(f,g,m,S=!1,k=!1)=>{const{type:C,props:O,ref:D,children:I,dynamicChildren:x,shapeFlag:A,patchFlag:E,dirs:V,cacheIndex:j,memo:W}=f;if(E===-2&&(k=!1),D!=null&&(ft(),ul(D,null,m,f,!0),pt()),j!=null&&(g.renderCache[j]=void 0),A&256){g.ctx.deactivate(f);return}const q=A&1&&V,Q=!dl(f);let ye;if(Q&&(ye=O&&O.onVnodeBeforeUnmount)&&ot(ye,g,f),A&6)At(f.component,m,S);else{if(A&128){f.suspense.unmount(m,S);return}q&&Mt(f,null,g,"beforeUnmount"),A&64?f.type.remove(f,g,m,Le,S):x&&!x.hasOnce&&(C!==Z||E>0&&E&64)?Ge(x,g,m,!1,!0):(C===Z&&E&384||!k&&A&16)&&Ge(I,g,m),S&&ht(f)}const ie=W!=null&&j==null;(Q&&(ye=O&&O.onVnodeUnmounted)||q||ie)&&Fe(()=>{ye&&ot(ye,g,f),q&&Mt(f,null,g,"unmounted"),ie&&(f.el=null)},m)},ht=f=>{const{type:g,el:m,anchor:S,transition:k}=f;if(g===Z){Ut(m,S);return}if(g===kn){F(f);return}const C=()=>{s(m),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(f.shapeFlag&1&&k&&!k.persisted){const{leave:O,delayLeave:D}=k,I=()=>O(m,C);D?D(f.el,C,I):I()}else C()},Ut=(f,g)=>{let m;for(;f!==g;)m=M(f),s(f),f=m;s(g)},At=(f,g,m)=>{const{bum:S,scope:k,job:C,subTree:O,um:D,m:I,a:x}=f;Wo(I),Wo(x),S&&Rl(S),k.stop(),C&&(C.flags|=8,Te(O,f,g,m)),D&&Fe(D,g),Fe(()=>{f.isUnmounted=!0},g)},Ge=(f,g,m,S=!1,k=!1,C=0)=>{for(let O=C;O{if(f.shapeFlag&6)return te(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const g=M(f.anchor||f.el),m=g&&g[Aa];return m?M(m):g};let nt=!1;const ce=(f,g,m)=>{let S;f==null?g._vnode&&(Te(g._vnode,null,null,!0),S=g._vnode.component):H(g._vnode||null,f,g,null,null,null,m),g._vnode=f,nt||(nt=!0,Ao(S),Rs(),nt=!1)},Le={p:H,um:Te,m:Ne,r:ht,mt:me,mc:Ae,pc:le,pbc:He,n:te,o:e};return{render:ce,hydrate:void 0,createApp:tu(ce)}}function wn({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 $t({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function hu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ni(e,t,n=!1){const o=e.children,s=t.children;if(J(o)&&J(s))for(let a=0;a>1,e[n[p]]0&&(t[o]=n[a-1]),n[a]=o)}}for(a=n.length,d=n[a-1];a-- >0;)n[a]=d,d=t[d];return n}function oi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:oi(t)}function Wo(e){if(e)for(let t=0;te.__isSuspense;function yu(e,t){t&&t.pendingBranch?J(e)?t.effects.push(...e):t.effects.push(e):Da(e)}const Z=Symbol.for("v-fgt"),nn=Symbol.for("v-txt"),Ot=Symbol.for("v-cmt"),kn=Symbol.for("v-stc"),fl=[];let je=null;function y(e=!1){fl.push(je=e?null:[])}function bu(){fl.pop(),je=fl[fl.length-1]||null}let _l=1;function Ho(e,t=!1){_l+=e,e<0&&je&&t&&(je.hasOnce=!0)}function ri(e){return e.dynamicChildren=_l>0?je||qt:null,bu(),_l>0&&je&&je.push(e),e}function b(e,t,n,o,s,a){return ri(l(e,t,n,o,s,a,!0))}function wu(e,t,n,o,s){return ri(St(e,t,n,o,s,!0))}function ai(e){return e?e.__v_isVNode===!0:!1}function nl(e,t){return e.type===t.type&&e.key===t.key}const ui=({key:e})=>e??null,$l=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?xe(e)||Ue(e)||Y(e)?{i:Je,r:e,k:t,f:!!n}:e:null);function l(e,t=null,n=null,o=0,s=null,a=e===Z?0:1,d=!1,p=!1){const v={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ui(t),ref:t&&$l(t),scopeId:$s,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:a,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Je};return p?(jl(v,n),a&128&&e.normalize(v)):n&&(v.shapeFlag|=xe(n)?8:16),_l>0&&!d&&je&&(v.patchFlag>0||a&6)&&v.patchFlag!==32&&je.push(v),v}const St=ku;function ku(e,t=null,n=null,o=0,s=null,a=!1){if((!e||e===Ja)&&(e=Ot),ai(e)){const p=Xt(e,t,!0);return n&&jl(p,n),_l>0&&!a&&je&&(p.shapeFlag&6?je[je.indexOf(e)]=p:je.push(p)),p.patchFlag=-2,p}if(Ru(e)&&(e=e.__vccOpts),t){t=xu(t);let{class:p,style:v}=t;p&&!xe(p)&&(t.class=Xl(p)),ge(v)&&(Jn(v)&&!J(v)&&(v=Ie({},v)),t.style=Ln(v))}const d=xe(e)?1:ii(e)?128:Ra(e)?64:ge(e)?4:Y(e)?2:0;return l(e,t,n,o,s,d,a,!0)}function xu(e){return e?Jn(e)||Qs(e)?Ie({},e):e:null}function Xt(e,t,n=!1,o=!1){const{props:s,ref:a,patchFlag:d,children:p,transition:v}=e,h=t?Su(s||{},t):s,_={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&ui(h),ref:t&&t.ref?n&&a?J(a)?a.concat($l(t)):[a,$l(t)]:$l(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:p,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Z?d===-1?16:d|16:d,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:v,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Xt(e.ssContent),ssFallback:e.ssFallback&&Xt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return v&&o&&Gn(_,v.clone(_)),_}function Cu(e=" ",t=0){return St(nn,null,e,t)}function N(e="",t=!1){return t?(y(),wu(Ot,null,e)):St(Ot,null,e)}function at(e){return e==null||typeof e=="boolean"?St(Ot):J(e)?St(Z,null,e.slice()):ai(e)?kt(e):St(nn,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Xt(e)}function jl(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),jl(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Qs(t)?t._ctx=Je:s===3&&Je&&(Je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Y(t)){if(o&65){jl(e,{default:t});return}t={default:t,_ctx:Je},n=32}else t=String(t),o&64?(n=16,t=[Cu(t)]):n=8;e.children=t,e.shapeFlag|=n}function Su(...e){const t={};for(let n=0;nVe||Je;let Wl,Rn;{const e=Ql(),t=(n,o)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(o),a=>{s.length>1?s.forEach(d=>d(a)):s[0](a)}};Wl=t("__VUE_INSTANCE_SETTERS__",n=>Ve=n),Rn=t("__VUE_SSR_SETTERS__",n=>hl=n)}const wl=e=>{const t=Ve;return Wl(e),e.scope.on(),()=>{e.scope.off(),Wl(t)}},Ko=()=>{Ve&&Ve.scope.off(),Wl(null)};function di(e){return e.vnode.shapeFlag&4}let hl=!1;function Tu(e,t=!1,n=!1){t&&Rn(t);const{props:o,children:s}=e.vnode,a=di(e);uu(e,o,a,t),pu(e,s,n||t);const d=a?Ou(e,t):void 0;return t&&Rn(!1),d}function Ou(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,za);const{setup:o}=n;if(o){ft();const s=e.setupContext=o.length>1?Au(e):null,a=wl(e),d=bl(o,e,0,[e.props,s]),p=as(d);if(pt(),a(),(p||e.sp)&&!dl(e)&&Ls(e),p){if(d.then(Ko,Ko),t)return d.then(v=>{qo(e,v)}).catch(v=>{en(v,e,0)});e.asyncDep=d}else qo(e,d)}else ci(e)}function qo(e,t,n){Y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Ts(t)),ci(e)}function ci(e,t,n){const o=e.type;e.render||(e.render=o.render||dt);{const s=wl(e);ft();try{Ga(e)}finally{pt(),s()}}}const Uu={get(e,t){return Oe(e,"get",""),e[t]}};function Au(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Uu),slots:e.slots,emit:e.emit,expose:t}}function on(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ts(_a(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in cl)return cl[n](e)},has(t,n){return n in t||n in cl}})):e.proxy}function Ru(e){return Y(e)&&"__vccOpts"in e}const It=(e,t)=>ka(e,t,hl),Mu="3.5.39";/** +* @vue/runtime-dom v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Mn;const Jo=typeof window<"u"&&window.trustedTypes;if(Jo)try{Mn=Jo.createPolicy("vue",{createHTML:e=>e})}catch{}const fi=Mn?e=>Mn.createHTML(e):e=>e,$u="http://www.w3.org/2000/svg",Vu="http://www.w3.org/1998/Math/MathML",wt=typeof document<"u"?document:null,zo=wt&&wt.createElement("template"),Bu={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"?wt.createElementNS($u,e):t==="mathml"?wt.createElementNS(Vu,e):n?wt.createElement(e,{is:n}):wt.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>wt.createTextNode(e),createComment:e=>wt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,s,a){const d=n?n.previousSibling:t.lastChild;if(s&&(s===a||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===a||!(s=s.nextSibling)););else{zo.innerHTML=fi(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const p=zo.content;if(o==="svg"||o==="mathml"){const v=p.firstChild;for(;v.firstChild;)p.appendChild(v.firstChild);p.removeChild(v)}t.insertBefore(p,n)}return[d?d.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Lu=Symbol("_vtc");function Fu(e,t,n){const o=e[Lu];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Go=Symbol("_vod"),Nu=Symbol("_vsh"),ju=Symbol(""),Wu=/(?:^|;)\s*display\s*:/;function Hu(e,t,n){const o=e.style,s=xe(n);let a=!1;if(n&&!s){if(t)if(xe(t))for(const d of t.split(";")){const p=d.slice(0,d.indexOf(":")).trim();n[p]==null&&sl(o,p,"")}else for(const d in t)n[d]==null&&sl(o,d,"");for(const d in n){d==="display"&&(a=!0);const p=n[d];p!=null?qu(e,d,!xe(t)&&t?t[d]:void 0,p)||sl(o,d,p):sl(o,d,"")}}else if(s){if(t!==n){const d=o[ju];d&&(n+=";"+d),o.cssText=n,a=Wu.test(n)}}else t&&e.removeAttribute("style");Go in e&&(e[Go]=a?o.display:"",e[Nu]&&(o.display="none"))}const Yo=/\s*!important$/;function sl(e,t,n){if(J(n))n.forEach(o=>sl(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Ku(e,t);Yo.test(n)?e.setProperty(Nt(o),n.replace(Yo,""),"important"):e[o]=n}}const Qo=["Webkit","Moz","ms"],xn={};function Ku(e,t){const n=xn[t];if(n)return n;let o=Qe(t);if(o!=="filter"&&o in e)return xn[t]=o;o=cs(o);for(let s=0;sCn||(Xu.then(()=>Cn=0),Cn=Date.now());function ed(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 a=o.stopImmediatePropagation;o.stopImmediatePropagation=()=>{a.call(o),o._stopped=!0};const d=s.slice(),p=[o];for(let v=0;ve.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,td=(e,t,n,o,s,a)=>{const d=s==="svg";t==="class"?Fu(e,o,d):t==="style"?Hu(e,n,o):ql(t)?Jl(t)||zu(e,t,n,o,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ld(e,t,o,d))?(es(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Zo(e,t,o,d,a,t!=="value")):e._isVueCE&&(nd(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!xe(o)))?es(e,Qe(t),o,a,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Zo(e,t,o,d))};function ld(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&ls(t)&&Y(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 ls(t)&&xe(n)?!1:t in e}function nd(e,t){const n=e._def.props;if(!n)return!1;const o=Qe(t);return Array.isArray(n)?n.some(s=>Qe(s)===o):Object.keys(n).some(s=>Qe(s)===o)}const Hl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return J(t)?n=>Rl(t,n):t};function od(e){e.target.composing=!0}function ns(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Yt=Symbol("_assign");function os(e,t,n){return t&&(e=e.trim()),n&&(e=Yl(e)),e}const R={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e[Yt]=Hl(s);const a=o||s.props&&s.props.type==="number";Bt(e,t?"change":"input",d=>{d.target.composing||e[Yt](os(e.value,n,a))}),(n||a)&&Bt(e,"change",()=>{e.value=os(e.value,n,a)}),t||(Bt(e,"compositionstart",od),Bt(e,"compositionend",ns),Bt(e,"change",ns))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:s,number:a}},d){if(e[Yt]=Hl(d),e.composing)return;const p=(a||e.type==="number")&&!/^0\d/.test(e.value)?Yl(e.value):e.value,v=t??"";if(p===v)return;const h=e.getRootNode();(h instanceof Document||h instanceof ShadowRoot)&&h.activeElement===e&&e.type!=="range"&&(o&&t===n||s&&e.value.trim()===v)||(e.value=v)}},bt={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const s=zl(t);Bt(e,"change",()=>{const a=Array.prototype.filter.call(e.options,d=>d.selected).map(d=>n?Yl(Kl(d)):Kl(d));e[Yt](e.multiple?s?new Set(a):a:a[0]),e._assigning=!0,Us(()=>{e._assigning=!1})}),e[Yt]=Hl(o)},mounted(e,{value:t}){ss(e,t)},beforeUpdate(e,t,n){e[Yt]=Hl(n)},updated(e,{value:t}){e._assigning||ss(e,t)}};function ss(e,t){const n=e.multiple,o=J(t);if(!(n&&!o&&!zl(t))){for(let s=0,a=e.options.length;sString(h)===String(p)):d.selected=Gr(t,p)>-1}else d.selected=t.has(p);else if(yl(Kl(d),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Kl(e){return"_value"in e?e._value:e.value}const sd=Ie({patchProp:td},Bu);let is;function id(){return is||(is=gu(sd))}const rd=((...e)=>{const t=id().createApp(...e),{mount:n}=t;return t.mount=o=>{const s=ud(o);if(!s)return;const a=t._component;!Y(a)&&!a.render&&!a.template&&(a.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const d=n(s,!1,ad(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),d},t});function ad(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ud(e){return xe(e)?document.querySelector(e):e}const dd="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",P={uiBootstrap:"ui/bootstrap",uiActions:"ui/actions",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,profileArchive:e=>`profiles/${e}/archive`,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`,nodeMarkCompleted:e=>`nodes/${e}/mark-completed`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,reviewPolicy:"review/policy",reviewPolicyValidate:"review/policy/validate",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",settingsSnapshot:e=>`settings/snapshots/${e}`,settingsRollback:"settings/rollback",storageStatus:"storage/status",storageMigrate:"storage/migrate",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`,materialReRecognize:e=>`materials/${e}/re-recognize`,materialConfirm:e=>`materials/${e}/confirm`,assetImportPack:"assets/import-pack",wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItems:e=>`profiles/${e}/wardrobe/items`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/items/${t}`,wardrobeLegacyItem:(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",eventStream:"events/stream",webManifest:"web/manifest"};class cd extends Error{constructor(n,o,s={}){super(o);fn(this,"code");fn(this,"details");this.name="ApiClientError",this.code=n,this.details=s}}async function X(e,t){return it(e,{method:"GET",query:t})}async function G(e,t){return it(e,{method:"POST",body:t})}async function it(e,t={}){const o=await(await fetch(fd(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 cd(o.error_code,o.message,o.details);return o.data}function fd(e,t){const n=e.replace(/^\/+/,""),o=new URL(`${dd}/${n}`,window.location.origin);for(const[s,a]of Object.entries(t??{}))a!==void 0&&o.searchParams.set(s,String(a));return`${o.pathname}${o.search}`}const pd={class:"web-shell"},vd={class:"sidebar"},gd={class:"brand"},_d=["onClick"],hd={class:"workspace"},md={class:"topbar"},yd={class:"actions"},bd=["disabled"],wd={key:0,class:"notice error"},kd={key:1,class:"notice"},xd={key:0,class:"dashboard-grid"},Cd={key:1,class:"list-view"},Sd=["src","alt"],Pd={key:0,class:"empty"},Dd={key:2,class:"list-view"},Ed={class:"form-grid"},Id={class:"wide-field"},Td=["disabled"],Od=["disabled"],Ud={key:0},Ad={key:1,class:"form-grid"},Rd={class:"wide-field"},Md={class:"wide-field"},$d={class:"wide-field"},Vd={class:"wide-field"},Bd={class:"wide-field"},Ld=["disabled"],Fd=["disabled"],Nd={class:"inline-actions"},jd={class:"badge"},Wd=["disabled","onClick"],Hd=["disabled","onClick"],Kd={key:0,class:"empty"},qd={key:3,class:"split-view"},Jd={class:"list-view"},zd={class:"form-grid"},Gd=["disabled"],Yd={class:"inline-actions"},Qd={class:"badge"},Xd=["disabled","onClick"],Zd=["disabled","onClick"],ec=["disabled","onClick"],tc=["disabled","onClick"],lc={key:0,class:"empty"},nc={key:0,class:"editor-panel"},oc={class:"form-grid"},sc=["disabled"],ic=["disabled","onClick"],rc={class:"list-view"},ac={class:"inline-actions"},uc=["disabled"],dc={class:"form-grid"},cc={class:"wide-field"},fc={class:"wide-field"},pc={class:"wide-field"},vc=["disabled"],gc=["disabled"],_c={class:"form-grid"},hc={class:"wide-field"},mc=["disabled"],yc=["disabled"],bc={class:"inline-actions"},wc={class:"badge"},kc=["disabled","onClick"],xc=["disabled","onClick"],Cc=["disabled","onClick"],Sc=["disabled","onClick"],Pc={key:0,class:"empty"},Dc=["src","alt"],Ec={class:"inline-actions"},Ic={key:0,class:"badge"},Tc=["disabled","onClick"],Oc=["disabled","onClick"],Uc=["disabled","onClick"],Ac=["disabled","onClick"],Rc=["disabled","onClick"],Mc=["disabled","onClick"],$c={key:0,class:"empty"},Vc={key:0},Bc={key:1},Lc={class:"editor-panel"},Fc={key:0,class:"empty"},Nc={key:2,class:"editor-panel"},jc={class:"editor-panel"},Wc={class:"inline-actions"},Hc=["disabled"],Kc=["disabled"],qc={key:0},Jc={key:1},zc={key:3},Gc={key:4,class:"split-view"},Yc={class:"list-view"},Qc={class:"form-grid"},Xc=["disabled"],Zc=["disabled"],ef={class:"inline-actions"},tf=["disabled","onClick"],lf=["disabled","onClick"],nf={key:0,class:"empty"},of={class:"list-view"},sf={class:"inline-actions"},rf=["disabled"],af={class:"form-grid"},uf={value:""},df=["value"],cf=["disabled"],ff=["disabled"],pf={class:"inline-actions"},vf={class:"badge"},gf=["disabled","onClick"],_f=["disabled","onClick"],hf=["disabled","onClick"],mf=["disabled","onClick"],yf={key:0,class:"empty"},bf={class:"form-grid"},wf={value:""},kf=["value"],xf=["disabled"],Cf=["disabled"],Sf={key:0},Pf={key:5,class:"list-view"},Df=["disabled"],Ef={class:"form-grid"},If={value:""},Tf=["value"],Of=["disabled"],Uf={class:"inline-actions"},Af=["disabled","onClick"],Rf={key:0,class:"empty"},Mf={key:0},$f={class:"form-grid"},Vf=["disabled"],Bf={key:1},Lf={key:6,class:"list-view"},Ff={class:"inline-actions"},Nf=["disabled"],jf=["disabled"],Wf={class:"form-grid"},Hf={value:""},Kf=["value"],qf={value:""},Jf=["value"],zf={value:""},Gf=["value"],Yf=["disabled"],Qf={class:"inline-actions"},Xf={class:"badge"},Zf=["onClick"],ep=["onClick"],tp=["disabled","onClick"],lp={key:0,class:"empty"},np={key:0,class:"editor-panel"},op={key:7,class:"split-view"},sp={class:"list-view"},ip={class:"inline-actions"},rp=["disabled"],ap=["disabled"],up={class:"form-grid"},dp=["disabled"],cp={key:0},fp={class:"list-view"},pp={class:"inline-actions"},vp={class:"badge"},gp=["disabled","onClick"],_p=["disabled","onClick"],hp=["disabled","onClick"],mp={key:0,class:"empty"},yp={key:8,class:"logs-view"},bp={class:"split-view"},wp={class:"list-view"},kp={class:"form-grid"},xp={value:""},Cp=["value"],Sp=["disabled"],Pp={key:0,class:"empty"},Dp={class:"list-view"},Ep={class:"form-grid"},Ip=["disabled"],Tp={class:"badge"},Op={key:0,class:"empty"},Up={class:"split-view"},Ap={class:"list-view"},Rp={class:"form-grid"},Mp=["disabled"],$p={key:0,class:"empty"},Vp={class:"list-view"},Bp={class:"form-grid"},Lp=["disabled"],Fp={class:"badge"},Np={key:0,class:"empty"},jp={class:"list-view"},Wp={class:"form-grid"},Hp=["disabled"],Kp={class:"badge"},qp={key:0,class:"empty"},Jp={key:0},zp={class:"list-view"},Gp={class:"form-grid"},Yp=["disabled"],Qp={key:0,class:"empty"},Xp={key:0},Zp={class:"list-view"},ev={class:"form-grid"},tv=["disabled"],lv={key:0,class:"empty"},nv={key:9,class:"settings-view"},ov={class:"toolbar"},sv=["disabled"],iv=["disabled"],rv=["disabled"],av=["disabled"],uv=["disabled"],dv=["disabled"],cv=["disabled"],fv={class:"settings-sections"},pv={class:"editor-panel"},vv={class:"editor-panel"},gv=["disabled"],_v={class:"editor-panel"},hv={class:"inline-actions"},mv=["disabled","onClick"],yv=["disabled","onClick"],bv={key:0,class:"editor-panel"},wv={class:"split-view"},kv={class:"list-view"},xv={class:"list-view"},Cv={key:1,class:"editor-panel"},Sv={class:"inspector"},Pv={class:"inspector-form"},Dv=["disabled"],Ev={key:0},Iv={class:"inspector-form"},Tv=["disabled"],Ov={key:1},Uv=Ma({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",generate:"生成",adopt:"采纳",select:"选择",unselect:"取选",recognize:"识别",reRecognize:"重新识别",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:"角色已更新",profileArchived:"角色已归档",emptyProfiles:"暂无角色",workflowList:"工作流列表",workflowType:"工作流类型",workflowCreated:"工作流已创建",emptyWorkflows:"暂无工作流",nodes:"节点",nodeKey:"NodeKey",nodeTitle:"节点标题",nodeType:"节点类型",status:"状态",nodeCreated:"节点已创建",nodeUpdated:"节点已更新",nodeQueued:"节点已重新入队",nodeCompleted:"节点已完成",images:"图片",branches:"分支",branchName:"分支名",switchBranch:"切换分支",history:"历史",review:"评审",reviewResult:"评审结果",reviewPolicy:"评审策略",loadPolicy:"加载策略",validatePolicy:"校验策略",policyDraftInvalid:"策略 JSON 格式无效",emptyImages:"暂无图片",emptyHistory:"暂无历史",modelRoute:"模型路由",idempotencyKey:"幂等键",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:"筛选",applyFilters:"应用筛选",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:"集成事件",eventStream:"事件流",ssePreview:"SSE Preview",auditLogs:"审计",targetType:"TargetType",actor:"操作人",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyEvents:"暂无事件",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",importSettings:"导入设置",importDone:"设置已导入",importDraftInvalid:"导入 JSON 格式无效",snapshots:"配置快照",loadSnapshots:"加载快照",loadSnapshot:"查看快照",snapshotPreview:"快照预览",rollback:"回滚",rollbackDone:"配置已回滚",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",recentImages:"最近图片",storageMigrate:"迁移预检",overwriteRisk:"覆盖风险",assetImportPack:"资产包预检",manifest:"清单",manifestErrors:"清单错误",valid:"有效",invalid:"无效",packageUri:"包 URI",sourceUri:"源 URI",targetUri:"目标 URI",fileCount:"文件数",dryRun:"DryRun",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=n.map(c=>c.key),s=$(hi()),a=$(null),d=$(null),p=$(null),v=$([]),h=$(null),_=$([]),w=$([]),M=$(null),L=$(null),ne=$(null),H=$(""),oe=$(""),ue=$([]),ee=$(null),de=$(null),F=$(null),be=$(null),we=$(null),Be=$(null),Ae=$([]),We=$(null),He=$([]),tt=$([]),vt=$([]),gt=$(null),me=$({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),lt=$([]),ke=$(null),se=$(null),le=$(null),De=$(null),_t=$(""),Ne=$(""),Te=$([]),ht=$(null),Ut=$(null),At=$(null),Ge=$(null),te=$({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),nt=$(null),ce=$({profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}),Le=$({display_name:"",workflow_type:"single_image"}),Rt=$({branch_name:""}),f=$({node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}),g=$({model_route:"",prompt:"",negative_prompt:"",idempotency_key:""}),m=$({status:"",profile_id:"",workflow_id:""}),S=$({status:"",profile_id:"",workflow_id:"",node_id:""}),k=$({workflow_id:"",action:"",node_id:"",branch_name:""}),C=$({source:"",status:""}),O=$({integration_name:"",action:"",status:""}),D=$({integration_name:"",action:"",status:""}),I=$({event_type:""}),x=$({action:"",target_type:"",actor_id:""}),A=$({material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}),E=$({display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}),V=$({source_uri:"storage://images/sample.bin",target_uri:"storage://archives/sample.bin"}),j=$({package_uri:"storage://materials/pack"}),W=$({category_id:"",name:"",category_type:"material",sort_order:0}),q=$({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),Q=$({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),ye=$(null),ie=$({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),Re=$(null),z=$(""),mt=$(!0),U=$(""),Ce=$(""),Se=It(()=>{var c,u;return((u=(c=p.value)==null?void 0:c.items[0])==null?void 0:u.profile_id)??""}),Zt=It(()=>{var c,u;return((u=(c=p.value)==null?void 0:c.items[0])==null?void 0:u.name)??t.noProfile}),kl=It(()=>{var u;const c=(u=d.value)==null?void 0:u.queue;return c?c.pending+c.running+c.failed+c.dead_letter:0}),pi=It(()=>{var c;return((c=We.value)==null?void 0:c.items.filter(u=>u.recognition_status!=="confirmed").length)??0}),vi=It(()=>{var c;return(((c=We.value)==null?void 0:c.items)??[]).filter(u=>u.recognition_status==="confirmed")}),gi=It(()=>{var c;return((c=h.value)==null?void 0:c.nodes.find(u=>u.node_id===oe.value))??null}),Xn=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],_i=It(()=>({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})[s.value]);js(sn);function hi(){const c=new URLSearchParams(window.location.search).get("view");return o.includes(c)?c:"dashboard"}async function sn(){var c,u;mt.value=!0,Ce.value="";try{const[K,re,Pe,qe,Cl,tl,Sl,Pl,Dl,El,Il,Tl]=await Promise.all([X(P.uiBootstrap),X(P.dashboardSummary),X(P.profiles,{page:1,page_size:20}),X(P.jobs,{page:1,page_size:20}),X(P.settingsSchema),X(P.settingsCurrent),X(P.storageStatus),X(P.materialCategories),X(P.materials,{page:1,page_size:24}),X(P.apiDiscoveryDialects),X(P.apiDiscoveryCapabilities),X(P.reviewPolicy)]);a.value=K,d.value=re,p.value=Pe,de.value=qe,be.value=Cl,we.value=tl,Wt(tl.config),Be.value=Sl,Ae.value=Pl,We.value=Dl,tt.value=El,vt.value=Il,lo(Tl),await Pi((c=Pe.items[0])==null?void 0:c.profile_id),await Di((u=Pe.items[0])==null?void 0:u.profile_id),await mi(),await Zn()}catch(K){Ce.value=K instanceof Error?K.message:t.loadFailed}finally{mt.value=!1}}async function mi(){const[c,u,K,re,Pe,qe]=await Promise.allSettled([X(P.generationLogs,Ye(S.value,12)),X(P.workflowLogs,Ye(k.value,12)),X(P.errorLogs,Ye(C.value,12)),X(P.integrationLogs,Ye(O.value,12)),X(P.integrationEventLogs,Ye(D.value,20)),X(P.auditLogs,{limit:12})]);me.value={generation:jt(c),workflows:jt(u),errors:jt(K),integrations:jt(re),audit:jt(qe)},lt.value=jt(Pe)}async function yi(){me.value.generation=await X(P.generationLogs,Ye(S.value,20))}async function bi(){me.value.workflows=await X(P.workflowLogs,Ye(k.value,20))}async function wi(){me.value.errors=await X(P.errorLogs,Ye(C.value,20))}async function ki(){me.value.integrations=await X(P.integrationLogs,Ye(O.value,20))}async function xi(){lt.value=await X(P.integrationEventLogs,Ye(D.value,20))}async function Zn(){ke.value=await X(P.eventStream,Ye(I.value,20))}async function Ci(){me.value.audit=await X(P.auditLogs,{action:x.value.action||void 0,target_type:x.value.target_type||void 0,actor_id:x.value.actor_id||void 0,limit:20})}function jt(c){return c.status==="fulfilled"?c.value:[]}function Ye(c,u){const K={limit:u};for(const[re,Pe]of Object.entries(c)){const qe=Pe.trim();K[re]=qe||void 0}return K}async function Si(){de.value=await X(P.jobs,{status:m.value.status||void 0,profile_id:m.value.profile_id||void 0,workflow_id:m.value.workflow_id||void 0,page:1,page_size:20})}async function Pi(c){if(!c){He.value=[];return}He.value=await X(P.wardrobe(c))}async function Di(c){var re,Pe;if(!c){v.value=[],h.value=null,_.value=[],w.value=[],oe.value="",ue.value=[];return}v.value=await X(P.profileWorkflows(c));const u=(re=h.value)==null?void 0:re.workflow.workflow_id,K=v.value.some(qe=>qe.workflow_id===u)?u:(Pe=v.value[0])==null?void 0:Pe.workflow_id;K?await rn(K):h.value=null}async function rn(c){var Pe;const u=await X(P.workflow(c));h.value=u;const K=oe.value,re=u.nodes.some(qe=>qe.node_id===K)?K:u.workflow.current_node_id||((Pe=u.nodes[0])==null?void 0:Pe.node_id);re?await eo(re):(oe.value="",ue.value=[]),await Ei(c)}async function eo(c){oe.value=c,ue.value=await X(P.nodeImages(c))}async function Ei(c){const[u,K]=await Promise.all([X(P.workflowBranches(c)),X(P.workflowHistory(c))]);_.value=u,w.value=K}async function Ke(){var u;const c=(u=h.value)==null?void 0:u.workflow.workflow_id;c&&await rn(c)}async function B(c,u,K=!0){U.value=c,Ce.value="";try{const re=await u();z.value=`${c}${t.complete}`,c===t.exportSettings&&(z.value=`${t.exportDone}: ${!!re.redacted}`),K&&await sn()}catch(re){Ce.value=re instanceof Error?re.message:`${c}${t.failed}`}finally{U.value=""}}function Ii(c){return B(t.retry,()=>G(P.jobRetry(c)))}function Ti(c){return B(t.cancel,()=>G(P.jobCancel(c)))}function Oi(c){return B(t.detail,async()=>(F.value=await X(P.job(c)),F.value),!1)}function Ui(){te.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},nt.value=null}function Ai(){return B(t.quickDraft,async()=>(nt.value=await G(P.quickProfileDraft,{questionnaire:{name:te.value.name,identity:te.value.identity,personality:Et(te.value.personality),hair_color:te.value.hair_color,hairstyle:te.value.hairstyle,eye_color:te.value.eye_color,style:te.value.style,clothing_keywords:Et(te.value.clothing_keywords)}}),nt.value),!1)}function Ri(){var u;const c=(u=nt.value)==null?void 0:u.profile_preview;return B(t.create,async()=>{const K=await G(P.profiles,{name:(c==null?void 0:c.name)||te.value.name,description:te.value.description,base_prompt:c==null?void 0:c.base_prompt,appearance_prompt:c==null?void 0:c.appearance_prompt,style_prompt:c==null?void 0:c.style_prompt,negative_prompt:c==null?void 0:c.negative_prompt});return Ui(),z.value=t.profileCreated,K})}function Mi(c){return B(t.archive,async()=>{const u=await G(P.profileArchive(c));return z.value=t.profileArchived,u})}function to(){ce.value={profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}}function $i(c){ce.value={profile_id:c.profile_id,name:c.name,description:c.description??"",base_prompt:c.base_prompt??"",appearance_prompt:c.appearance_prompt??"",style_prompt:c.style_prompt??"",negative_prompt:c.negative_prompt??"",default_model_route:c.default_model_route??""}}function Vi(){return ce.value.profile_id?B(t.update,async()=>{const c=await it(P.profile(ce.value.profile_id),{method:"PUT",body:{name:ce.value.name,description:ce.value.description||void 0,base_prompt:ce.value.base_prompt||void 0,appearance_prompt:ce.value.appearance_prompt||void 0,style_prompt:ce.value.style_prompt||void 0,negative_prompt:ce.value.negative_prompt||void 0,default_model_route:ce.value.default_model_route||void 0}});return to(),z.value=t.profileUpdated,c}):Promise.resolve()}function Bi(){const c=Se.value;return c?B(t.create,async()=>{const u=await G(P.profileWorkflows(c),{display_name:Le.value.display_name,workflow_type:Le.value.workflow_type});return Le.value.display_name="",h.value=u,z.value=t.workflowCreated,u}):Promise.resolve()}function Li(c){return B(t.start,()=>G(P.workflowStart(c)))}function Fi(c){return B(t.cancel,()=>G(P.workflowCancel(c)))}function Ni(c){return B(t.archive,()=>G(P.workflowArchive(c)))}function ji(){var u;const c=(u=h.value)==null?void 0:u.workflow;return!c||!Rt.value.branch_name?Promise.resolve():B(t.branches,async()=>{const K=await G(P.workflowBranches(c.workflow_id),{branch_name:Rt.value.branch_name,base_branch_name:c.current_branch,base_node_id:oe.value||c.current_node_id,copy_nodes:!0});return Rt.value.branch_name="",await Ke(),z.value=t.branchCreated,K},!1)}function Wi(c){var K;const u=(K=h.value)==null?void 0:K.workflow.workflow_id;return u?B(t.switchBranch,async()=>{const re=await G(P.workflowSwitchBranch(u),{branch_name:c});return await Ke(),re},!1):Promise.resolve()}function an(){f.value={node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}}function Hi(c){f.value={node_id:c.node_id,node_key:c.node_key,title:c.title,description:c.description??"",node_type:c.node_type,status:c.status,prompt:c.prompt??"",negative_prompt:c.negative_prompt??"",model_route:c.model_route??""}}function Ki(){var K;const c=(K=h.value)==null?void 0:K.workflow.workflow_id;if(!c||!f.value.node_key||!f.value.title)return Promise.resolve();const u={node_key:f.value.node_key,title:f.value.title,description:f.value.description||void 0,node_type:f.value.node_type||"generation",status:f.value.status||"pending",prompt:f.value.prompt||void 0,negative_prompt:f.value.negative_prompt||void 0,model_route:f.value.model_route||void 0};return f.value.node_id?B(t.update,async()=>{const re=await it(P.node(f.value.node_id),{method:"PUT",body:u});return an(),await Ke(),z.value=t.nodeUpdated,re},!1):B(t.create,async()=>{const re=await G(P.workflowNodes(c),u);return an(),await Ke(),z.value=t.nodeCreated,re},!1)}function qi(){var u;const c=(u=h.value)==null?void 0:u.workflow.workflow_id;return c?B(t.review,async()=>(M.value=await X(P.workflowReview(c)),M.value),!1):Promise.resolve()}function Ji(){const c=oe.value;return c?B(t.review,async()=>(M.value=await X(P.nodeReview(c)),M.value),!1):Promise.resolve()}function lo(c){L.value=c,H.value=JSON.stringify(c,null,2)}function zi(){return B(t.loadPolicy,async()=>{const c=await X(P.reviewPolicy);return lo(c),c},!1)}function Gi(){let c;try{c=JSON.parse(H.value||"{}")}catch{return z.value=t.policyDraftInvalid,Promise.resolve()}return B(t.validatePolicy,async()=>(ne.value=await G(P.reviewPolicyValidate,c),ne.value),!1)}function Yi(){const c=oe.value;return c?B(t.generate,async()=>(ee.value=await G(P.nodeGenerate(c),{model_route:g.value.model_route||void 0,prompt:g.value.prompt||void 0,negative_prompt:g.value.negative_prompt||void 0,idempotency_key:g.value.idempotency_key||void 0}),await Ke(),z.value=t.generationQueued,ee.value),!1):Promise.resolve()}function Qi(c){return B(t.retry,async()=>{const u=await G(P.nodeRetry(c));return await Ke(),z.value=t.nodeQueued,u},!1)}function Xi(c){return B(t.complete,async()=>{const u=await G(P.nodeMarkCompleted(c));return await Ke(),z.value=t.nodeCompleted,u},!1)}function Zi(c){const u=oe.value;return u?B(t.select,async()=>{const K=await G(P.nodeSelectImage(u),{image_id:c});return await Ke(),K},!1):Promise.resolve()}function er(c){const u=oe.value;return u?B(t.adopt,async()=>{var re;const K=await G(P.nodeAdoptImage(u),{image_id:c,title:(re=gi.value)==null?void 0:re.title});return await Ke(),K},!1):Promise.resolve()}function tr(c){return B(t.unselect,async()=>{const u=await G(P.imageUnselect(c));return await Ke(),u},!1)}function lr(c){return B(t.archive,async()=>{const u=await G(P.imageArchive(c));return await Ke(),z.value=t.imageArchived,u},!1)}function nr(c){return B(t.delete,async()=>{const u=await it(P.image(c),{method:"DELETE"});return await Ke(),z.value=t.imageDeleted,u},!1)}function or(){return B(t.moveFailed,()=>G(P.jobDeadLetterMoveFailed,{limit:20}))}function sr(){return B(t.retryDead,()=>G(P.jobDeadLetterRetry,{limit:20}))}function ir(){var u;const c=((u=tt.value[0])==null?void 0:u.dialect)??"unknown";return B(t.safeProbe,()=>G(P.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:c,capabilities:{supports:["text_to_image"]}}))}function rr(){var u;const c=((u=tt.value[0])==null?void 0:u.dialect)??"unknown";return B(t.probeProvider,()=>G(P.apiDiscoveryProbeProvider,{provider_id:ie.value.provider_id||"local-preview",model_id:ie.value.model_id||"metadata-only",dialect:c,capabilities:{supports:Et(ie.value.required_capabilities)}}))}function ar(){return B(t.validatePlan,async()=>(Re.value=await G(P.apiDiscoveryValidateRenderPlan,{provider_id:ie.value.provider_id,model_id:ie.value.model_id,required_capabilities:Et(ie.value.required_capabilities)}),Re.value),!1)}function un(c,u){return B(t.discovery,()=>G(P.apiDiscoveryManualOverride,{provider_id:c.provider_id,model_id:c.model_id,dialect:c.dialect,status:u,capabilities:c.capabilities}))}function ur(){const c=Se.value;return c?B(t.matchWardrobe,async()=>(gt.value=await G(P.wardrobeMatch(c),{tags:["daily"]}),gt.value),!1):Promise.resolve()}function dr(){q.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function cr(){const c=Se.value;return c?B(t.importToWardrobe,async()=>{const u=await G(P.wardrobeItems(c),{material_id:q.value.material_id,wardrobe_category:q.value.wardrobe_category,tags:Et(q.value.tags),season:q.value.season||void 0,style:q.value.style||void 0});return dr(),z.value=t.wardrobeImported,u}):Promise.resolve()}function fr(c){const u=Se.value;return u?B(t.delete,async()=>{const K=await it(P.wardrobeItem(u,c),{method:"DELETE"});return z.value=t.wardrobeDeleted,K}):Promise.resolve()}function pr(){const c=Se.value;return c?B(t.dailyOutfit,async()=>(ye.value=await G(P.privateCompanionDailyOutfit,{profile_id:c,categories:Et(Q.value.categories),mood:Q.value.mood,weather:Q.value.weather,keywords:Et(Q.value.keywords),request_source:"astrbot_plugin_private_companion"}),z.value=t.outfitGenerated,ye.value),!1):Promise.resolve()}function vr(){return B(t.reload,async()=>{var u;const c=await G(P.settingsReload);return we.value={config_path:((u=we.value)==null?void 0:u.config_path)??"***PATH***",config:c.config},Wt(c.config),c},!1)}function gr(){return B(t.exportSettings,async()=>(Ut.value=await X(P.settingsExport),Ut.value),!1)}function Wt(c=(u=>(u=we.value)==null?void 0:u.config)()??{}){_t.value=JSON.stringify(c,null,2),At.value=null,Ge.value=null}function dn(){try{const c=JSON.parse(_t.value);if(!c||Array.isArray(c)||typeof c!="object")throw new Error(t.settingsDraftInvalid);return c}catch(c){throw new Error(c instanceof Error?c.message:t.settingsDraftInvalid)}}function _r(){try{const c=JSON.parse(Ne.value);if(!c||Array.isArray(c)||typeof c!="object")throw new Error(t.importDraftInvalid);return c}catch(c){throw new Error(c instanceof Error?c.message:t.importDraftInvalid)}}function hr(){return B(t.validate,async()=>(At.value=await G(P.settingsValidate,{config:dn()}),At.value),!1)}function mr(){return B(t.diff,async()=>(Ge.value=await G(P.settingsDiff,{config:dn()}),Ge.value),!1)}function yr(){return B(t.save,async()=>{var u;const c=await G(P.settingsSave,{config:dn()});return we.value={config_path:((u=we.value)==null?void 0:u.config_path)??"***PATH***",config:c.config},Wt(c.config),z.value=t.settingsSaved,c},!1)}function br(){return B(t.importSettings,async()=>{var u;const c=await G(P.settingsImport,{config:_r()});return we.value={config_path:((u=we.value)==null?void 0:u.config_path)??"***PATH***",config:c.config},Wt(c.config),Ne.value="",z.value=t.importDone,c},!1)}function no(){return B(t.loadSnapshots,async()=>(Te.value=await X(P.settingsSnapshots,{limit:20}),ht.value=Te.value[0]??null,Te.value),!1)}function wr(c){return B(t.loadSnapshot,async()=>(ht.value=await X(P.settingsSnapshot(c)),ht.value),!1)}function kr(c){return B(t.rollback,async()=>{var K;const u=await G(P.settingsRollback,{snapshot_id:c});return we.value={config_path:((K=we.value)==null?void 0:K.config_path)??"***PATH***",config:u.config},Wt(u.config),await no(),z.value=t.rollbackDone,u},!1)}function xr(){var u,K;const c=(K=(u=We.value)==null?void 0:u.items.find(re=>{var Pe;return(Pe=re.image_uri)==null?void 0:Pe.startsWith("storage://")}))==null?void 0:K.image_uri;return c?B(t.signMaterial,async()=>(se.value=await X(P.mediaSign,{uri:c}),se.value),!1):(z.value=t.noSignableMaterial,Promise.resolve())}function Cr(c){return c!=null&&c.startsWith("storage://")?B(t.signMaterial,async()=>(se.value=await X(P.mediaSign,{uri:c}),se.value),!1):(z.value=t.noSignableMaterial,Promise.resolve())}function xl(){W.value={category_id:"",name:"",category_type:"material",sort_order:0}}function Sr(c){W.value={category_id:c.category_id,name:c.name,category_type:c.category_type,sort_order:c.sort_order}}function Pr(){const c={name:W.value.name,category_type:W.value.category_type,sort_order:Number(W.value.sort_order)||0};return W.value.category_id?B(t.update,async()=>{const u=await it(P.materialCategory(W.value.category_id),{method:"PUT",body:c});return xl(),z.value=t.categoryUpdated,u}):B(t.create,async()=>{const u=await G(P.materialCategories,c);return xl(),z.value=t.categoryCreated,u})}function Dr(c){return B(t.delete,async()=>{const u=await it(P.materialCategory(c),{method:"DELETE"});return W.value.category_id===c&&xl(),z.value=t.categoryDeleted,u})}function cn(){A.value={material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}}function Er(){const c={display_name:A.value.display_name,image_uri:A.value.image_uri||void 0,thumbnail_uri:A.value.image_uri||void 0,category_id:A.value.category_id||void 0,tags:Et(A.value.tags),prompt:A.value.prompt||void 0,negative_prompt:A.value.negative_prompt||void 0,recognition_status:A.value.image_uri?"pending_recognition":"pending_upload"};return A.value.material_id?B(t.update,async()=>{const u=await it(P.material(A.value.material_id),{method:"PUT",body:c});return cn(),z.value=t.materialUpdated,u}):B(t.create,async()=>{const u=await G(P.materials,c);return cn(),z.value=t.materialCreated,u})}function Ir(c){A.value={material_id:c.material_id,display_name:c.display_name,image_uri:c.image_uri??"",tags:c.tags.join(", "),category_id:c.category_id??"",prompt:c.prompt??"",negative_prompt:c.negative_prompt??""}}function oo(){E.value={display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}}function Tr(){return B(t.upload,async()=>{const c=await G(P.materialUpload,{display_name:E.value.display_name||void 0,filename:E.value.filename||void 0,content_type:E.value.content_type||void 0,image_uri:E.value.image_uri,category_id:E.value.category_id||void 0});return oo(),z.value=t.materialUploaded,c})}function Or(c){const u=c.recognition_status==="confirmed"?P.materialReRecognize(c.material_id):P.materialRecognize(c.material_id),K=c.recognition_status==="confirmed"?t.reRecognize:t.recognize;return B(K,()=>G(u))}function Ur(c){return B(t.confirm,()=>G(P.materialConfirm(c.material_id),{display_name:c.display_name,prompt:c.prompt,negative_prompt:c.negative_prompt,tags:c.tags}))}function Ar(c){return B(t.archive,async()=>{const u=await it(P.material(c),{method:"DELETE"});return z.value=t.materialArchived,u})}function Et(c){return c.split(",").map(u=>u.trim()).filter(Boolean)}function el(c=0){return c<1024?`${c} B`:c<1024*1024?`${(c/1024).toFixed(1)} KB`:c<1024*1024*1024?`${(c/1024/1024).toFixed(1)} MB`:`${(c/1024/1024/1024).toFixed(1)} GB`}function so(c){var u,K;return((K=(u=Be.value)==null?void 0:u.roots.find(re=>re.uri_prefix===c))==null?void 0:K.bytes)??0}function Rr(){return B(t.storageMigrate,async()=>(le.value=await G(P.storageMigrate,{source_uri:V.value.source_uri,target_uri:V.value.target_uri,dry_run:!0}),le.value),!1)}function Mr(){return B(t.assetImportPack,async()=>(De.value=await G(P.assetImportPack,{package_uri:j.value.package_uri,dry_run:!0}),De.value),!1)}return(c,u)=>{var K,re,Pe,qe,Cl,tl,Sl,Pl,Dl,El,Il,Tl,io,ro,ao,uo,co,fo,po,vo,go,_o,ho,mo,yo,bo,wo,ko,xo,Co,So,Po,Do,Eo;return y(),b("main",pd,[l("aside",vd,[l("div",gd,[l("strong",null,r(((K=a.value)==null?void 0:K.display_name)??"ImageStudio"),1),l("span",null,r(((re=a.value)==null?void 0:re.dashboard_user)??"AstrBot"),1)]),l("nav",null,[(y(),b(Z,null,fe(n,i=>l("button",{key:i.key,type:"button",class:Xl({active:s.value===i.key}),onClick:ae=>s.value=i.key},r(i.label),11,_d)),64))])]),l("section",hd,[l("header",md,[l("div",null,[l("h1",null,r(_i.value),1),l("p",null,r(((Pe=d.value)==null?void 0:Pe.plugin_status)??"loading")+" / "+r(z.value||t.waiting),1)]),l("div",yd,[l("button",{type:"button",disabled:!!U.value,onClick:sn},r(U.value||t.refresh),9,bd)])]),Ce.value?(y(),b("section",wd,r(Ce.value),1)):mt.value?(y(),b("section",kd,r(t.loading),1)):(y(),b(Z,{key:2},[s.value==="dashboard"?(y(),b("section",xd,[l("article",null,[l("span",null,r(t.profiles),1),l("strong",null,r(((qe=d.value)==null?void 0:qe.active_profiles)??0),1)]),l("article",null,[l("span",null,r(t.jobs),1),l("strong",null,r(kl.value),1)]),l("article",null,[l("span",null,r(t.materials),1),l("strong",null,r(((Cl=We.value)==null?void 0:Cl.total)??0),1)]),l("article",null,[l("span",null,r(t.storage),1),l("strong",null,r(el(((tl=Be.value)==null?void 0:tl.total_bytes)??((Sl=d.value)==null?void 0:Sl.storage.total_bytes))),1)])])):N("",!0),s.value==="dashboard"?(y(),b("section",Cd,[l("header",null,[l("h2",null,r(t.recentImages),1),l("span",null,r(((Pl=d.value)==null?void 0:Pl.recent_images.length)??0),1)]),l("ul",null,[(y(!0),b(Z,null,fe(((Dl=d.value)==null?void 0:Dl.recent_images)??[],i=>(y(),b("li",{key:i.image_id},[i.thumbnail_url||i.image_url?(y(),b("img",{key:0,class:"image-preview",src:i.thumbnail_url??i.image_url??"",alt:i.image_id,loading:"lazy"},null,8,Sd)):N("",!0),l("div",null,[l("strong",null,r(i.image_id),1),l("small",null,r(i.thumbnail_uri??i.image_uri),1)]),l("span",null,r(i.created_at),1)]))),128)),(El=d.value)!=null&&El.recent_images.length?N("",!0):(y(),b("li",Pd,r(t.emptyImages),1))])])):N("",!0),s.value==="profiles"?(y(),b("section",Dd,[l("header",null,[l("h2",null,r(t.profileList),1),l("span",null,r(((Il=p.value)==null?void 0:Il.total)??0),1)]),l("div",Ed,[l("label",null,[l("span",null,r(t.name),1),T(l("input",{"onUpdate:modelValue":u[0]||(u[0]=i=>te.value.name=i),type:"text"},null,512),[[R,te.value.name]])]),l("label",null,[l("span",null,r(t.identity),1),T(l("input",{"onUpdate:modelValue":u[1]||(u[1]=i=>te.value.identity=i),type:"text"},null,512),[[R,te.value.identity]])]),l("label",null,[l("span",null,r(t.personality),1),T(l("input",{"onUpdate:modelValue":u[2]||(u[2]=i=>te.value.personality=i),type:"text",placeholder:"calm, brave"},null,512),[[R,te.value.personality]])]),l("label",null,[l("span",null,r(t.hairColor),1),T(l("input",{"onUpdate:modelValue":u[3]||(u[3]=i=>te.value.hair_color=i),type:"text"},null,512),[[R,te.value.hair_color]])]),l("label",null,[l("span",null,r(t.hairstyle),1),T(l("input",{"onUpdate:modelValue":u[4]||(u[4]=i=>te.value.hairstyle=i),type:"text"},null,512),[[R,te.value.hairstyle]])]),l("label",null,[l("span",null,r(t.eyeColor),1),T(l("input",{"onUpdate:modelValue":u[5]||(u[5]=i=>te.value.eye_color=i),type:"text"},null,512),[[R,te.value.eye_color]])]),l("label",null,[l("span",null,r(t.stylePrompt),1),T(l("input",{"onUpdate:modelValue":u[6]||(u[6]=i=>te.value.style=i),type:"text"},null,512),[[R,te.value.style]])]),l("label",null,[l("span",null,r(t.tags),1),T(l("input",{"onUpdate:modelValue":u[7]||(u[7]=i=>te.value.clothing_keywords=i),type:"text",placeholder:"white blouse, ribbon"},null,512),[[R,te.value.clothing_keywords]])]),l("label",Id,[l("span",null,r(t.description),1),T(l("input",{"onUpdate:modelValue":u[8]||(u[8]=i=>te.value.description=i),type:"text"},null,512),[[R,te.value.description]])]),l("button",{type:"button",disabled:!!U.value||!te.value.name,onClick:Ai},r(t.quickDraft),9,Td),l("button",{type:"button",disabled:!!U.value||!te.value.name,onClick:Ri},r(t.create),9,Od)]),nt.value?(y(),b("pre",Ud,r(JSON.stringify(nt.value,null,2)),1)):N("",!0),ce.value.profile_id?(y(),b("div",Ad,[l("label",null,[l("span",null,r(t.name),1),T(l("input",{"onUpdate:modelValue":u[9]||(u[9]=i=>ce.value.name=i),type:"text"},null,512),[[R,ce.value.name]])]),l("label",null,[l("span",null,r(t.provider),1),T(l("input",{"onUpdate:modelValue":u[10]||(u[10]=i=>ce.value.default_model_route=i),type:"text"},null,512),[[R,ce.value.default_model_route]])]),l("label",Rd,[l("span",null,r(t.description),1),T(l("input",{"onUpdate:modelValue":u[11]||(u[11]=i=>ce.value.description=i),type:"text"},null,512),[[R,ce.value.description]])]),l("label",Md,[l("span",null,r(t.basePrompt),1),T(l("input",{"onUpdate:modelValue":u[12]||(u[12]=i=>ce.value.base_prompt=i),type:"text"},null,512),[[R,ce.value.base_prompt]])]),l("label",$d,[l("span",null,r(t.appearancePrompt),1),T(l("input",{"onUpdate:modelValue":u[13]||(u[13]=i=>ce.value.appearance_prompt=i),type:"text"},null,512),[[R,ce.value.appearance_prompt]])]),l("label",Vd,[l("span",null,r(t.stylePrompt),1),T(l("input",{"onUpdate:modelValue":u[14]||(u[14]=i=>ce.value.style_prompt=i),type:"text"},null,512),[[R,ce.value.style_prompt]])]),l("label",Bd,[l("span",null,r(t.negativePrompt),1),T(l("input",{"onUpdate:modelValue":u[15]||(u[15]=i=>ce.value.negative_prompt=i),type:"text"},null,512),[[R,ce.value.negative_prompt]])]),l("button",{type:"button",disabled:!!U.value||!ce.value.name,onClick:Vi},r(t.update),9,Ld),l("button",{type:"button",disabled:!!U.value,onClick:to},r(t.reset),9,Fd)])):N("",!0),l("ul",null,[(y(!0),b(Z,null,fe(((Tl=p.value)==null?void 0:Tl.items)??[],i=>(y(),b("li",{key:i.profile_id},[l("div",null,[l("strong",null,r(i.name),1),l("small",null,r(i.profile_id),1)]),l("div",Nd,[l("span",jd,r(i.status),1),l("button",{type:"button",disabled:!!U.value,onClick:ae=>$i(i)},r(t.edit),9,Wd),l("button",{type:"button",disabled:!!U.value,onClick:ae=>Mi(i.profile_id)},r(t.archive),9,Hd)])]))),128)),(io=p.value)!=null&&io.items.length?N("",!0):(y(),b("li",Kd,r(t.emptyProfiles),1))])])):N("",!0),s.value==="workflows"?(y(),b("section",qd,[l("div",Jd,[l("header",null,[l("h2",null,r(Zt.value),1),l("span",null,r(v.value.length),1)]),l("div",zd,[l("label",null,[l("span",null,r(t.name),1),T(l("input",{"onUpdate:modelValue":u[16]||(u[16]=i=>Le.value.display_name=i),type:"text"},null,512),[[R,Le.value.display_name]])]),l("label",null,[l("span",null,r(t.workflowType),1),T(l("select",{"onUpdate:modelValue":u[17]||(u[17]=i=>Le.value.workflow_type=i)},[...u[87]||(u[87]=[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),[[bt,Le.value.workflow_type]])]),l("button",{type:"button",disabled:!!U.value||!Se.value||!Le.value.display_name,onClick:Bi},r(t.create),9,Gd)]),l("ul",null,[(y(!0),b(Z,null,fe(v.value,i=>(y(),b("li",{key:i.workflow_id},[l("div",null,[l("strong",null,r(i.display_name),1),l("small",null,r(i.workflow_type)+" / "+r(i.workflow_id),1)]),l("div",Yd,[l("span",Qd,r(i.status),1),l("button",{type:"button",disabled:!!U.value,onClick:ae=>rn(i.workflow_id)},r(t.nodes),9,Xd),l("button",{type:"button",disabled:!!U.value,onClick:ae=>Li(i.workflow_id)},r(t.start),9,Zd),l("button",{type:"button",disabled:!!U.value,onClick:ae=>Fi(i.workflow_id)},r(t.cancel),9,ec),l("button",{type:"button",disabled:!!U.value,onClick:ae=>Ni(i.workflow_id)},r(t.archive),9,tc)])]))),128)),v.value.length?N("",!0):(y(),b("li",lc,r(t.emptyWorkflows),1))]),h.value?(y(),b("section",nc,[l("header",null,[l("h2",null,r(t.branches),1),l("span",null,r(_.value.length),1)]),l("div",oc,[l("label",null,[l("span",null,r(t.branchName),1),T(l("input",{"onUpdate:modelValue":u[18]||(u[18]=i=>Rt.value.branch_name=i),type:"text",placeholder:"alt_pose"},null,512),[[R,Rt.value.branch_name]])]),l("button",{type:"button",disabled:!!U.value||!Rt.value.branch_name,onClick:ji},r(t.create),9,sc)]),l("ul",null,[(y(!0),b(Z,null,fe(_.value,i=>(y(),b("li",{key:i.branch_id},[l("div",null,[l("strong",null,r(i.branch_name),1),l("small",null,r(i.base_branch_name??"main")+" / "+r(i.status),1)]),l("button",{type:"button",disabled:!!U.value,onClick:ae=>Wi(i.branch_name)},r(t.switchBranch),9,ic)]))),128))])])):N("",!0)]),l("div",rc,[l("header",null,[l("h2",null,r(t.nodes),1),l("div",ac,[l("span",null,r(((ro=h.value)==null?void 0:ro.workflow.current_branch)??"main"),1),l("button",{type:"button",disabled:!!U.value||!h.value,onClick:qi},r(t.review),9,uc)])]),l("div",dc,[l("label",null,[l("span",null,r(t.nodeKey),1),T(l("input",{"onUpdate:modelValue":u[19]||(u[19]=i=>f.value.node_key=i),type:"text"},null,512),[[R,f.value.node_key]])]),l("label",null,[l("span",null,r(t.nodeTitle),1),T(l("input",{"onUpdate:modelValue":u[20]||(u[20]=i=>f.value.title=i),type:"text"},null,512),[[R,f.value.title]])]),l("label",null,[l("span",null,r(t.nodeType),1),T(l("input",{"onUpdate:modelValue":u[21]||(u[21]=i=>f.value.node_type=i),type:"text"},null,512),[[R,f.value.node_type]])]),l("label",null,[l("span",null,r(t.status),1),T(l("input",{"onUpdate:modelValue":u[22]||(u[22]=i=>f.value.status=i),type:"text"},null,512),[[R,f.value.status]])]),l("label",cc,[l("span",null,r(t.description),1),T(l("input",{"onUpdate:modelValue":u[23]||(u[23]=i=>f.value.description=i),type:"text"},null,512),[[R,f.value.description]])]),l("label",fc,[l("span",null,r(t.prompt),1),T(l("input",{"onUpdate:modelValue":u[24]||(u[24]=i=>f.value.prompt=i),type:"text"},null,512),[[R,f.value.prompt]])]),l("label",pc,[l("span",null,r(t.negativePrompt),1),T(l("input",{"onUpdate:modelValue":u[25]||(u[25]=i=>f.value.negative_prompt=i),type:"text"},null,512),[[R,f.value.negative_prompt]])]),l("label",null,[l("span",null,r(t.modelRoute),1),T(l("input",{"onUpdate:modelValue":u[26]||(u[26]=i=>f.value.model_route=i),type:"text"},null,512),[[R,f.value.model_route]])]),l("button",{type:"button",disabled:!!U.value||!f.value.node_key||!f.value.title,onClick:Ki},r(f.value.node_id?t.update:t.create),9,vc),l("button",{type:"button",disabled:!!U.value,onClick:an},r(t.reset),9,gc)]),l("div",_c,[l("label",null,[l("span",null,r(t.modelRoute),1),T(l("input",{"onUpdate:modelValue":u[27]||(u[27]=i=>g.value.model_route=i),type:"text",placeholder:"image_low"},null,512),[[R,g.value.model_route]])]),l("label",null,[l("span",null,r(t.idempotencyKey),1),T(l("input",{"onUpdate:modelValue":u[28]||(u[28]=i=>g.value.idempotency_key=i),type:"text",placeholder:"node-generate-001"},null,512),[[R,g.value.idempotency_key]])]),l("label",null,[l("span",null,r(t.prompt),1),T(l("input",{"onUpdate:modelValue":u[29]||(u[29]=i=>g.value.prompt=i),type:"text"},null,512),[[R,g.value.prompt]])]),l("label",hc,[l("span",null,r(t.negativePrompt),1),T(l("input",{"onUpdate:modelValue":u[30]||(u[30]=i=>g.value.negative_prompt=i),type:"text"},null,512),[[R,g.value.negative_prompt]])]),l("button",{type:"button",disabled:!!U.value||!oe.value,onClick:Yi},r(t.generate),9,mc),l("button",{type:"button",disabled:!!U.value||!oe.value,onClick:Ji},r(t.review),9,yc)]),l("ul",null,[(y(!0),b(Z,null,fe(((ao=h.value)==null?void 0:ao.nodes)??[],i=>(y(),b("li",{key:i.node_id},[l("div",null,[l("strong",null,r(i.title),1),l("small",null,r(i.node_key)+" / "+r(i.node_id),1)]),l("div",bc,[l("span",null,r(i.branch_name),1),l("span",wc,r(i.status),1),l("button",{type:"button",disabled:!!U.value,onClick:ae=>Hi(i)},r(t.edit),9,kc),l("button",{type:"button",disabled:!!U.value,onClick:ae=>Qi(i.node_id)},r(t.retry),9,xc),l("button",{type:"button",disabled:!!U.value,onClick:ae=>Xi(i.node_id)},r(t.complete),9,Cc),l("button",{type:"button",disabled:!!U.value,onClick:ae=>eo(i.node_id)},r(t.images),9,Sc)])]))),128)),(uo=h.value)!=null&&uo.nodes.length?N("",!0):(y(),b("li",Pc,r(t.emptyWorkflows),1))]),l("ul",null,[(y(!0),b(Z,null,fe(ue.value,i=>(y(),b("li",{key:i.image_id},[i.thumbnail_url||i.image_url?(y(),b("img",{key:0,class:"image-preview",src:i.thumbnail_url??i.image_url??"",alt:i.image_id,loading:"lazy"},null,8,Dc)):N("",!0),l("div",null,[l("strong",null,r(i.image_id),1),l("small",null,r(i.thumbnail_uri??i.image_uri),1)]),l("div",Ec,[i.is_selected?(y(),b("span",Ic,r(t.select),1)):N("",!0),l("button",{type:"button",disabled:!!U.value||i.is_selected||i.is_archived,onClick:ae=>Zi(i.image_id)},r(t.select),9,Tc),l("button",{type:"button",disabled:!!U.value||i.is_archived,onClick:ae=>er(i.image_id)},r(t.adopt),9,Oc),l("button",{type:"button",disabled:!!U.value||!!(i.thumbnail_url||i.image_url)||!(i.thumbnail_uri??i.image_uri).startsWith("storage://"),onClick:ae=>Cr(i.thumbnail_uri??i.image_uri)},r(t.signMaterial),9,Uc),l("button",{type:"button",disabled:!!U.value||!i.is_selected,onClick:ae=>tr(i.image_id)},r(t.unselect),9,Ac),l("button",{type:"button",disabled:!!U.value||i.is_archived,onClick:ae=>lr(i.image_id)},r(t.archive),9,Rc),l("button",{type:"button",disabled:!!U.value,onClick:ae=>nr(i.image_id)},r(t.delete),9,Mc)])]))),128)),ue.value.length?N("",!0):(y(),b("li",$c,r(t.emptyImages),1))]),se.value?(y(),b("pre",Vc,r(JSON.stringify(se.value,null,2)),1)):N("",!0),ee.value?(y(),b("pre",Bc,r(JSON.stringify(ee.value,null,2)),1)):N("",!0),l("section",Lc,[l("header",null,[l("h2",null,r(t.history),1),l("span",null,r(w.value.length),1)]),l("ul",null,[(y(!0),b(Z,null,fe(w.value,i=>(y(),b("li",{key:i.history_id},[l("div",null,[l("strong",null,r(i.action),1),l("small",null,r(i.title??i.node_id??i.workflow_id),1)]),l("span",null,r(i.branch_name),1)]))),128)),w.value.length?N("",!0):(y(),b("li",Fc,r(t.emptyHistory),1))])]),M.value?(y(),b("section",Nc,[l("header",null,[l("h2",null,r(t.reviewResult),1),l("span",null,r(M.value.passed?t.support:t.unsupported),1)]),l("pre",null,r(JSON.stringify(M.value,null,2)),1)])):N("",!0),l("section",jc,[l("header",null,[l("h2",null,r(t.reviewPolicy),1),l("div",Wc,[l("button",{type:"button",disabled:!!U.value,onClick:zi},r(t.loadPolicy),9,Hc),l("button",{type:"button",disabled:!!U.value||!H.value,onClick:Gi},r(t.validatePolicy),9,Kc)])]),T(l("textarea",{"onUpdate:modelValue":u[31]||(u[31]=i=>H.value=i),spellcheck:"false"},null,512),[[R,H.value]]),ne.value?(y(),b("pre",qc,r(JSON.stringify(ne.value,null,2)),1)):L.value?(y(),b("pre",Jc,r(JSON.stringify(L.value,null,2)),1)):N("",!0)]),h.value?(y(),b("pre",zc,r(JSON.stringify(h.value.workflow,null,2)),1)):N("",!0)])])):N("",!0),s.value==="materials"?(y(),b("section",Gc,[l("div",Yc,[l("header",null,[l("h2",null,r(t.materialCategories),1),l("span",null,r(Ae.value.length),1)]),l("div",Qc,[l("label",null,[l("span",null,r(t.name),1),T(l("input",{"onUpdate:modelValue":u[32]||(u[32]=i=>W.value.name=i),type:"text"},null,512),[[R,W.value.name]])]),l("label",null,[l("span",null,r(t.categoryType),1),T(l("input",{"onUpdate:modelValue":u[33]||(u[33]=i=>W.value.category_type=i),type:"text"},null,512),[[R,W.value.category_type]])]),l("label",null,[l("span",null,r(t.sortOrder),1),T(l("input",{"onUpdate:modelValue":u[34]||(u[34]=i=>W.value.sort_order=i),type:"number"},null,512),[[R,W.value.sort_order,void 0,{number:!0}]])]),l("button",{type:"button",disabled:!!U.value||!W.value.name,onClick:Pr},r(W.value.category_id?t.update:t.create),9,Xc),l("button",{type:"button",disabled:!!U.value,onClick:xl},r(t.reset),9,Zc)]),l("ul",null,[(y(!0),b(Z,null,fe(Ae.value,i=>(y(),b("li",{key:i.category_id},[l("div",null,[l("strong",null,r(i.name),1),l("small",null,r(i.category_type),1)]),l("div",ef,[l("span",null,r(i.sort_order),1),l("button",{type:"button",disabled:!!U.value,onClick:ae=>Sr(i)},r(t.edit),9,tf),l("button",{type:"button",disabled:!!U.value,onClick:ae=>Dr(i.category_id)},r(t.delete),9,lf)])]))),128)),Ae.value.length?N("",!0):(y(),b("li",nf,r(t.emptyCategories),1))])]),l("div",of,[l("header",null,[l("h2",null,r(t.materialItems),1),l("div",sf,[l("span",null,r(pi.value)+" "+r(t.pendingConfirm),1),l("button",{type:"button",disabled:!!U.value,onClick:xr},r(t.signFirstImage),9,rf)])]),l("div",af,[l("label",null,[l("span",null,r(t.name),1),T(l("input",{"onUpdate:modelValue":u[35]||(u[35]=i=>A.value.display_name=i),type:"text"},null,512),[[R,A.value.display_name]])]),l("label",null,[l("span",null,r(t.imageUri),1),T(l("input",{"onUpdate:modelValue":u[36]||(u[36]=i=>A.value.image_uri=i),type:"text",placeholder:"storage://materials/example.png"},null,512),[[R,A.value.image_uri]])]),l("label",null,[l("span",null,r(t.category),1),T(l("select",{"onUpdate:modelValue":u[37]||(u[37]=i=>A.value.category_id=i)},[l("option",uf,r(t.allCategories),1),(y(!0),b(Z,null,fe(Ae.value,i=>(y(),b("option",{key:i.category_id,value:i.category_id},r(i.name),9,df))),128))],512),[[bt,A.value.category_id]])]),l("label",null,[l("span",null,r(t.tags),1),T(l("input",{"onUpdate:modelValue":u[38]||(u[38]=i=>A.value.tags=i),type:"text",placeholder:"daily, top"},null,512),[[R,A.value.tags]])]),l("label",null,[l("span",null,r(t.prompt),1),T(l("input",{"onUpdate:modelValue":u[39]||(u[39]=i=>A.value.prompt=i),type:"text"},null,512),[[R,A.value.prompt]])]),l("label",null,[l("span",null,r(t.negativePrompt),1),T(l("input",{"onUpdate:modelValue":u[40]||(u[40]=i=>A.value.negative_prompt=i),type:"text"},null,512),[[R,A.value.negative_prompt]])]),l("button",{type:"button",disabled:!!U.value||!A.value.display_name,onClick:Er},r(A.value.material_id?t.update:t.create),9,cf),l("button",{type:"button",disabled:!!U.value,onClick:cn},r(t.reset),9,ff)]),l("ul",null,[(y(!0),b(Z,null,fe(((co=We.value)==null?void 0:co.items)??[],i=>(y(),b("li",{key:i.material_id},[l("div",null,[l("strong",null,r(i.display_name),1),l("small",null,r(i.image_uri??t.noImage),1)]),l("div",pf,[l("span",vf,r(i.recognition_status),1),l("button",{type:"button",disabled:!!U.value,onClick:ae=>Ir(i)},r(t.edit),9,gf),l("button",{type:"button",disabled:!!U.value,onClick:ae=>Or(i)},r(i.recognition_status==="confirmed"?t.reRecognize:t.recognize),9,_f),l("button",{type:"button",disabled:!!U.value||i.recognition_status==="confirmed",onClick:ae=>Ur(i)},r(t.confirm),9,hf),l("button",{type:"button",disabled:!!U.value,onClick:ae=>Ar(i.material_id)},r(t.archive),9,mf)])]))),128)),(fo=We.value)!=null&&fo.items.length?N("",!0):(y(),b("li",yf,r(t.emptyMaterials),1))]),l("div",bf,[l("label",null,[l("span",null,r(t.name),1),T(l("input",{"onUpdate:modelValue":u[41]||(u[41]=i=>E.value.display_name=i),type:"text"},null,512),[[R,E.value.display_name]])]),l("label",null,[l("span",null,r(t.filename),1),T(l("input",{"onUpdate:modelValue":u[42]||(u[42]=i=>E.value.filename=i),type:"text"},null,512),[[R,E.value.filename]])]),l("label",null,[l("span",null,r(t.contentType),1),T(l("input",{"onUpdate:modelValue":u[43]||(u[43]=i=>E.value.content_type=i),type:"text"},null,512),[[R,E.value.content_type]])]),l("label",null,[l("span",null,r(t.imageUri),1),T(l("input",{"onUpdate:modelValue":u[44]||(u[44]=i=>E.value.image_uri=i),type:"text",placeholder:"storage://materials/upload.png"},null,512),[[R,E.value.image_uri]])]),l("label",null,[l("span",null,r(t.category),1),T(l("select",{"onUpdate:modelValue":u[45]||(u[45]=i=>E.value.category_id=i)},[l("option",wf,r(t.allCategories),1),(y(!0),b(Z,null,fe(Ae.value,i=>(y(),b("option",{key:i.category_id,value:i.category_id},r(i.name),9,kf))),128))],512),[[bt,E.value.category_id]])]),l("button",{type:"button",disabled:!!U.value||!E.value.image_uri,onClick:Tr},r(t.upload),9,xf),l("button",{type:"button",disabled:!!U.value,onClick:oo},r(t.reset),9,Cf)]),se.value?(y(),b("pre",Sf,r(JSON.stringify(se.value,null,2)),1)):N("",!0)])])):N("",!0),s.value==="wardrobe"?(y(),b("section",Pf,[l("header",null,[l("h2",null,r(Zt.value),1),l("button",{type:"button",disabled:!Se.value||!!U.value,onClick:ur},r(t.match),9,Df)]),l("div",Ef,[l("label",null,[l("span",null,r(t.selectMaterial),1),T(l("select",{"onUpdate:modelValue":u[46]||(u[46]=i=>q.value.material_id=i)},[l("option",If,r(t.selectMaterial),1),(y(!0),b(Z,null,fe(vi.value,i=>(y(),b("option",{key:i.material_id,value:i.material_id},r(i.display_name),9,Tf))),128))],512),[[bt,q.value.material_id]])]),l("label",null,[l("span",null,r(t.wardrobeCategory),1),T(l("input",{"onUpdate:modelValue":u[47]||(u[47]=i=>q.value.wardrobe_category=i),type:"text"},null,512),[[R,q.value.wardrobe_category]])]),l("label",null,[l("span",null,r(t.tags),1),T(l("input",{"onUpdate:modelValue":u[48]||(u[48]=i=>q.value.tags=i),type:"text",placeholder:"daily, top"},null,512),[[R,q.value.tags]])]),l("label",null,[l("span",null,r(t.season),1),T(l("input",{"onUpdate:modelValue":u[49]||(u[49]=i=>q.value.season=i),type:"text"},null,512),[[R,q.value.season]])]),l("label",null,[l("span",null,r(t.style),1),T(l("input",{"onUpdate:modelValue":u[50]||(u[50]=i=>q.value.style=i),type:"text"},null,512),[[R,q.value.style]])]),l("button",{type:"button",disabled:!!U.value||!Se.value||!q.value.material_id||!q.value.wardrobe_category,onClick:cr},r(t.importToWardrobe),9,Of)]),l("ul",null,[(y(!0),b(Z,null,fe(He.value,i=>(y(),b("li",{key:i.wardrobe_item_id},[l("div",null,[l("strong",null,r(i.wardrobe_category),1),l("small",null,r(i.material_id)+" / "+r(i.tags.join(", ")||t.noTags),1)]),l("div",Uf,[l("span",null,r(i.usage_count),1),l("button",{type:"button",disabled:!!U.value,onClick:ae=>fr(i.wardrobe_item_id)},r(t.delete),9,Af)])]))),128)),He.value.length?N("",!0):(y(),b("li",Rf,r(t.emptyWardrobe),1))]),gt.value?(y(),b("pre",Mf,r(JSON.stringify(gt.value,null,2)),1)):N("",!0),l("div",$f,[l("label",null,[l("span",null,r(t.categories),1),T(l("input",{"onUpdate:modelValue":u[51]||(u[51]=i=>Q.value.categories=i),type:"text"},null,512),[[R,Q.value.categories]])]),l("label",null,[l("span",null,r(t.mood),1),T(l("input",{"onUpdate:modelValue":u[52]||(u[52]=i=>Q.value.mood=i),type:"text"},null,512),[[R,Q.value.mood]])]),l("label",null,[l("span",null,r(t.weather),1),T(l("input",{"onUpdate:modelValue":u[53]||(u[53]=i=>Q.value.weather=i),type:"text"},null,512),[[R,Q.value.weather]])]),l("label",null,[l("span",null,r(t.keywords),1),T(l("input",{"onUpdate:modelValue":u[54]||(u[54]=i=>Q.value.keywords=i),type:"text"},null,512),[[R,Q.value.keywords]])]),l("button",{type:"button",disabled:!!U.value||!Se.value,onClick:pr},r(t.dailyOutfit),9,Vf)]),ye.value?(y(),b("pre",Bf,r(JSON.stringify(ye.value,null,2)),1)):N("",!0)])):N("",!0),s.value==="jobs"?(y(),b("section",Lf,[l("header",null,[l("h2",null,r(t.jobs),1),l("div",Ff,[l("button",{type:"button",disabled:!!U.value,onClick:or},r(t.moveFailed),9,Nf),l("button",{type:"button",disabled:!!U.value,onClick:sr},r(t.retryDead),9,jf)])]),l("div",Wf,[l("label",null,[u[88]||(u[88]=l("span",null,"Status",-1)),T(l("select",{"onUpdate:modelValue":u[55]||(u[55]=i=>m.value.status=i)},[l("option",Hf,r(t.allStatuses),1),(y(),b(Z,null,fe(Xn,i=>l("option",{key:i,value:i},r(i),9,Kf)),64))],512),[[bt,m.value.status]])]),l("label",null,[l("span",null,r(t.profiles),1),T(l("select",{"onUpdate:modelValue":u[56]||(u[56]=i=>m.value.profile_id=i)},[l("option",qf,r(t.allProfiles),1),(y(!0),b(Z,null,fe(((po=p.value)==null?void 0:po.items)??[],i=>(y(),b("option",{key:i.profile_id,value:i.profile_id},r(i.name),9,Jf))),128))],512),[[bt,m.value.profile_id]])]),l("label",null,[l("span",null,r(t.workflows),1),T(l("select",{"onUpdate:modelValue":u[57]||(u[57]=i=>m.value.workflow_id=i)},[l("option",zf,r(t.allWorkflows),1),(y(!0),b(Z,null,fe(v.value,i=>(y(),b("option",{key:i.workflow_id,value:i.workflow_id},r(i.display_name),9,Gf))),128))],512),[[bt,m.value.workflow_id]])]),l("button",{type:"button",disabled:!!U.value,onClick:Si},r(t.filter),9,Yf)]),l("ul",null,[(y(!0),b(Z,null,fe(((vo=de.value)==null?void 0:vo.items)??[],i=>(y(),b("li",{key:i.task_id},[l("div",null,[l("strong",null,r(i.task_id),1),l("small",null,r(i.task_type)+" / "+r(i.progress)+"%",1)]),l("div",Qf,[l("span",Xf,r(i.status),1),["failed","dead_letter","cancelled"].includes(i.status)?(y(),b("button",{key:0,type:"button",onClick:ae=>Ii(i.task_id)},r(t.retry),9,Zf)):N("",!0),["completed","succeeded","cancelled"].includes(i.status)?N("",!0):(y(),b("button",{key:1,type:"button",onClick:ae=>Ti(i.task_id)},r(t.cancel),9,ep)),l("button",{type:"button",disabled:!!U.value,onClick:ae=>Oi(i.task_id)},r(t.detail),9,tp)])]))),128)),(go=de.value)!=null&&go.items.length?N("",!0):(y(),b("li",lp,r(t.emptyJobs),1))]),F.value?(y(),b("section",np,[l("header",null,[l("h2",null,r(t.jobDetail),1),l("span",null,r(F.value.status),1)]),l("pre",null,r(JSON.stringify(F.value,null,2)),1)])):N("",!0)])):N("",!0),s.value==="discovery"?(y(),b("section",op,[l("div",sp,[l("header",null,[l("h2",null,r(t.dialects),1),l("div",ip,[l("button",{type:"button",disabled:!!U.value,onClick:rr},r(t.probeProvider),9,rp),l("button",{type:"button",disabled:!!U.value,onClick:ir},r(t.safeProbe),9,ap)])]),l("ul",null,[(y(!0),b(Z,null,fe(tt.value,i=>(y(),b("li",{key:i.dialect},[l("div",null,[l("strong",null,r(i.label),1),l("small",null,r(i.capabilities.join(", ")||t.unconfirmed),1)]),l("span",null,r(i.dialect),1)]))),128))]),l("div",up,[l("label",null,[l("span",null,r(t.provider),1),T(l("input",{"onUpdate:modelValue":u[58]||(u[58]=i=>ie.value.provider_id=i),type:"text",placeholder:"local-preview"},null,512),[[R,ie.value.provider_id]])]),l("label",null,[l("span",null,r(t.model),1),T(l("input",{"onUpdate:modelValue":u[59]||(u[59]=i=>ie.value.model_id=i),type:"text",placeholder:"metadata-only"},null,512),[[R,ie.value.model_id]])]),l("label",null,[l("span",null,r(t.requiredCapabilities),1),T(l("input",{"onUpdate:modelValue":u[60]||(u[60]=i=>ie.value.required_capabilities=i),type:"text",placeholder:"text_to_image"},null,512),[[R,ie.value.required_capabilities]])]),l("button",{type:"button",disabled:!!U.value||!ie.value.provider_id||!ie.value.model_id,onClick:ar},r(t.validatePlan),9,dp)]),Re.value?(y(),b("pre",cp,r(JSON.stringify(Re.value,null,2)),1)):N("",!0)]),l("div",fp,[l("header",null,[l("h2",null,r(t.capabilityProfiles),1),l("span",null,r(vt.value.length),1)]),l("ul",null,[(y(!0),b(Z,null,fe(vt.value,i=>(y(),b("li",{key:i.capability_profile_id},[l("div",null,[l("strong",null,r(i.provider_id)+" / "+r(i.model_id),1),l("small",null,r(i.dialect),1)]),l("div",pp,[l("span",vp,r(i.status),1),l("button",{type:"button",disabled:!!U.value,onClick:ae=>un(i,"confirmed_supported")},r(t.support),9,gp),l("button",{type:"button",disabled:!!U.value,onClick:ae=>un(i,"confirmed_unsupported")},r(t.unsupported),9,_p),l("button",{type:"button",disabled:!!U.value,onClick:ae=>un(i,"unconfirmed")},r(t.unconfirmed),9,hp)])]))),128)),vt.value.length?N("",!0):(y(),b("li",mp,r(t.emptyCapabilities),1))])])])):N("",!0),s.value==="logs"?(y(),b("section",yp,[l("div",bp,[l("div",wp,[l("header",null,[l("h2",null,r(t.generationLogs),1),l("span",null,r(me.value.generation.length),1)]),l("div",kp,[l("label",null,[l("span",null,r(t.status),1),T(l("select",{"onUpdate:modelValue":u[61]||(u[61]=i=>S.value.status=i)},[l("option",xp,r(t.allStatuses),1),(y(),b(Z,null,fe(Xn,i=>l("option",{key:`gen-${i}`,value:i},r(i),9,Cp)),64))],512),[[bt,S.value.status]])]),l("label",null,[u[89]||(u[89]=l("span",null,"ProfileId",-1)),T(l("input",{"onUpdate:modelValue":u[62]||(u[62]=i=>S.value.profile_id=i),type:"text"},null,512),[[R,S.value.profile_id]])]),l("label",null,[u[90]||(u[90]=l("span",null,"WorkflowId",-1)),T(l("input",{"onUpdate:modelValue":u[63]||(u[63]=i=>S.value.workflow_id=i),type:"text"},null,512),[[R,S.value.workflow_id]])]),l("label",null,[u[91]||(u[91]=l("span",null,"NodeId",-1)),T(l("input",{"onUpdate:modelValue":u[64]||(u[64]=i=>S.value.node_id=i),type:"text"},null,512),[[R,S.value.node_id]])]),l("button",{type:"button",disabled:!!U.value,onClick:yi},r(t.applyFilters),9,Sp)]),l("ul",null,[(y(!0),b(Z,null,fe(me.value.generation,i=>(y(),b("li",{key:i.task_id},[l("div",null,[l("strong",null,r(i.task_id),1),l("small",null,r(i.status)+" / "+r(i.progress)+"%",1)]),l("span",null,r(i.created_at),1)]))),128)),me.value.generation.length?N("",!0):(y(),b("li",Pp,r(t.emptyGenerationLogs),1))])]),l("div",Dp,[l("header",null,[l("h2",null,r(t.errorLogs),1),l("span",null,r(me.value.errors.length),1)]),l("div",Ep,[l("label",null,[u[93]||(u[93]=l("span",null,"Source",-1)),T(l("select",{"onUpdate:modelValue":u[65]||(u[65]=i=>C.value.source=i)},[...u[92]||(u[92]=[l("option",{value:""},"All",-1),l("option",{value:"generation_task"},"generation_task",-1),l("option",{value:"integration"},"integration",-1)])],512),[[bt,C.value.source]])]),l("label",null,[l("span",null,r(t.status),1),T(l("input",{"onUpdate:modelValue":u[66]||(u[66]=i=>C.value.status=i),type:"text"},null,512),[[R,C.value.status]])]),l("button",{type:"button",disabled:!!U.value,onClick:wi},r(t.applyFilters),9,Ip)]),l("ul",null,[(y(!0),b(Z,null,fe(me.value.errors,i=>(y(),b("li",{key:`${i.source}-${i.id}`},[l("div",null,[l("strong",null,r(i.source),1),l("small",null,r(i.error_message??t.noErrorDetail),1)]),l("span",Tp,r(i.status),1)]))),128)),me.value.errors.length?N("",!0):(y(),b("li",Op,r(t.emptyErrors),1))])])]),l("div",Up,[l("div",Ap,[l("header",null,[l("h2",null,r(t.workflowLogs),1),l("span",null,r(me.value.workflows.length),1)]),l("div",Rp,[l("label",null,[u[94]||(u[94]=l("span",null,"WorkflowId",-1)),T(l("input",{"onUpdate:modelValue":u[67]||(u[67]=i=>k.value.workflow_id=i),type:"text"},null,512),[[R,k.value.workflow_id]])]),l("label",null,[u[95]||(u[95]=l("span",null,"Action",-1)),T(l("input",{"onUpdate:modelValue":u[68]||(u[68]=i=>k.value.action=i),type:"text"},null,512),[[R,k.value.action]])]),l("label",null,[u[96]||(u[96]=l("span",null,"NodeId",-1)),T(l("input",{"onUpdate:modelValue":u[69]||(u[69]=i=>k.value.node_id=i),type:"text"},null,512),[[R,k.value.node_id]])]),l("label",null,[l("span",null,r(t.currentBranch),1),T(l("input",{"onUpdate:modelValue":u[70]||(u[70]=i=>k.value.branch_name=i),type:"text"},null,512),[[R,k.value.branch_name]])]),l("button",{type:"button",disabled:!!U.value,onClick:bi},r(t.applyFilters),9,Mp)]),l("ul",null,[(y(!0),b(Z,null,fe(me.value.workflows,i=>(y(),b("li",{key:i.history_id},[l("div",null,[l("strong",null,r(i.action),1),l("small",null,r(i.title??i.workflow_id),1)]),l("span",null,r(i.branch_name??"main"),1)]))),128)),me.value.workflows.length?N("",!0):(y(),b("li",$p,r(t.emptyWorkflowLogs),1))])]),l("div",Vp,[l("header",null,[l("h2",null,r(t.integrationLogs),1),l("span",null,r(me.value.integrations.length),1)]),l("div",Bp,[l("label",null,[u[97]||(u[97]=l("span",null,"Integration",-1)),T(l("input",{"onUpdate:modelValue":u[71]||(u[71]=i=>O.value.integration_name=i),type:"text"},null,512),[[R,O.value.integration_name]])]),l("label",null,[u[98]||(u[98]=l("span",null,"Action",-1)),T(l("input",{"onUpdate:modelValue":u[72]||(u[72]=i=>O.value.action=i),type:"text"},null,512),[[R,O.value.action]])]),l("label",null,[l("span",null,r(t.status),1),T(l("input",{"onUpdate:modelValue":u[73]||(u[73]=i=>O.value.status=i),type:"text"},null,512),[[R,O.value.status]])]),l("button",{type:"button",disabled:!!U.value,onClick:ki},r(t.applyFilters),9,Lp)]),l("ul",null,[(y(!0),b(Z,null,fe(me.value.integrations,i=>(y(),b("li",{key:i.integration_log_id},[l("div",null,[l("strong",null,r(i.integration_name),1),l("small",null,r(i.action),1)]),l("span",Fp,r(i.status),1)]))),128)),me.value.integrations.length?N("",!0):(y(),b("li",Np,r(t.emptyIntegrationLogs),1))])])]),l("div",jp,[l("header",null,[l("h2",null,r(t.integrationEvents),1),l("span",null,r(lt.value.length),1)]),l("div",Wp,[l("label",null,[u[99]||(u[99]=l("span",null,"Integration",-1)),T(l("input",{"onUpdate:modelValue":u[74]||(u[74]=i=>D.value.integration_name=i),type:"text"},null,512),[[R,D.value.integration_name]])]),l("label",null,[u[100]||(u[100]=l("span",null,"Action",-1)),T(l("input",{"onUpdate:modelValue":u[75]||(u[75]=i=>D.value.action=i),type:"text"},null,512),[[R,D.value.action]])]),l("label",null,[l("span",null,r(t.status),1),T(l("input",{"onUpdate:modelValue":u[76]||(u[76]=i=>D.value.status=i),type:"text"},null,512),[[R,D.value.status]])]),l("button",{type:"button",disabled:!!U.value,onClick:xi},r(t.applyFilters),9,Hp)]),l("ul",null,[(y(!0),b(Z,null,fe(lt.value,i=>(y(),b("li",{key:`event-${i.integration_log_id}`},[l("div",null,[l("strong",null,r(i.integration_name),1),l("small",null,r(i.action)+" / "+r(i.created_at),1)]),l("span",Kp,r(i.status),1)]))),128)),lt.value.length?N("",!0):(y(),b("li",qp,r(t.emptyIntegrationLogs),1))]),lt.value.length?(y(),b("pre",Jp,r(JSON.stringify(lt.value[0],null,2)),1)):N("",!0)]),l("div",zp,[l("header",null,[l("h2",null,r(t.eventStream),1),l("span",null,r(((_o=ke.value)==null?void 0:_o.count)??0),1)]),l("div",Gp,[l("label",null,[u[101]||(u[101]=l("span",null,"EventType",-1)),T(l("input",{"onUpdate:modelValue":u[77]||(u[77]=i=>I.value.event_type=i),type:"text"},null,512),[[R,I.value.event_type]])]),l("button",{type:"button",disabled:!!U.value,onClick:Zn},r(t.applyFilters),9,Yp)]),l("ul",null,[(y(!0),b(Z,null,fe(((ho=ke.value)==null?void 0:ho.events)??[],i=>(y(),b("li",{key:i.event_id},[l("div",null,[l("strong",null,r(i.event_type),1),l("small",null,r(i.event_id)+" / "+r(i.created_at),1)]),l("span",null,r(Object.keys(i.data).length),1)]))),128)),(mo=ke.value)!=null&&mo.events.length?N("",!0):(y(),b("li",Qp,r(t.emptyEvents),1))]),(yo=ke.value)!=null&&yo.body?(y(),b("pre",Xp,r(ke.value.body),1)):N("",!0)]),l("div",Zp,[l("header",null,[l("h2",null,r(t.auditLogs),1),l("span",null,r(me.value.audit.length),1)]),l("div",ev,[l("label",null,[u[102]||(u[102]=l("span",null,"Action",-1)),T(l("input",{"onUpdate:modelValue":u[78]||(u[78]=i=>x.value.action=i),type:"text"},null,512),[[R,x.value.action]])]),l("label",null,[l("span",null,r(t.targetType),1),T(l("input",{"onUpdate:modelValue":u[79]||(u[79]=i=>x.value.target_type=i),type:"text"},null,512),[[R,x.value.target_type]])]),l("label",null,[l("span",null,r(t.actor),1),T(l("input",{"onUpdate:modelValue":u[80]||(u[80]=i=>x.value.actor_id=i),type:"text"},null,512),[[R,x.value.actor_id]])]),l("button",{type:"button",disabled:!!U.value,onClick:Ci},r(t.filter),9,tv)]),l("ul",null,[(y(!0),b(Z,null,fe(me.value.audit,i=>(y(),b("li",{key:i.audit_id},[l("div",null,[l("strong",null,r(i.action),1),l("small",null,r(i.actor_type)+" / "+r(i.target_type)+" / "+r(i.target_id),1)]),l("span",null,r(i.created_at),1)]))),128)),me.value.audit.length?N("",!0):(y(),b("li",lv,r(t.emptyAuditLogs),1))])])])):N("",!0),s.value==="settings"?(y(),b("section",nv,[l("div",ov,[l("button",{type:"button",disabled:!!U.value,onClick:vr},r(t.reload),9,sv),l("button",{type:"button",disabled:!!U.value,onClick:u[81]||(u[81]=i=>Wt())},r(t.reset),9,iv),l("button",{type:"button",disabled:!!U.value,onClick:hr},r(t.validate),9,rv),l("button",{type:"button",disabled:!!U.value,onClick:mr},r(t.diff),9,av),l("button",{type:"button",disabled:!!U.value,onClick:yr},r(t.save),9,uv),l("button",{type:"button",disabled:!!U.value,onClick:gr},r(t.exportRedacted),9,dv),l("button",{type:"button",disabled:!!U.value,onClick:no},r(t.loadSnapshots),9,cv)]),l("div",fv,[(y(!0),b(Z,null,fe(((bo=be.value)==null?void 0:bo.sections)??[],i=>(y(),b("article",{key:i.key},[l("h2",null,r(i.title),1),l("span",null,r(i.fields.length),1)]))),128))]),l("section",pv,[l("header",null,[l("h2",null,r(t.settingsEditor),1),l("span",null,r(((wo=we.value)==null?void 0:wo.config_path)??"***PATH***"),1)]),T(l("textarea",{"onUpdate:modelValue":u[82]||(u[82]=i=>_t.value=i),spellcheck:"false"},null,512),[[R,_t.value]])]),l("section",vv,[l("header",null,[l("h2",null,r(t.importSettings),1),l("button",{type:"button",disabled:!!U.value||!Ne.value,onClick:br},r(t.importSettings),9,gv)]),T(l("textarea",{"onUpdate:modelValue":u[83]||(u[83]=i=>Ne.value=i),spellcheck:"false"},null,512),[[R,Ne.value]])]),l("section",_v,[l("header",null,[l("h2",null,r(t.snapshots),1),l("span",null,r(Te.value.length),1)]),l("ul",null,[(y(!0),b(Z,null,fe(Te.value,i=>(y(),b("li",{key:i.snapshot_id},[l("div",null,[l("strong",null,r(i.reason),1),l("small",null,r(i.snapshot_id)+" / "+r(i.created_at),1)]),l("div",hv,[l("button",{type:"button",disabled:!!U.value,onClick:ae=>wr(i.snapshot_id)},r(t.loadSnapshot),9,mv),l("button",{type:"button",disabled:!!U.value,onClick:ae=>kr(i.snapshot_id)},r(t.rollback),9,yv)])]))),128))])]),ht.value?(y(),b("section",bv,[l("header",null,[l("h2",null,r(t.snapshotPreview),1),l("span",null,r(ht.value.snapshot_id),1)]),l("pre",null,r(JSON.stringify(ht.value.config,null,2)),1)])):N("",!0),l("div",wv,[l("div",kv,[l("header",null,[l("h2",null,r(t.validationResult),1),l("span",null,r(((ko=At.value)==null?void 0:ko.valid)??"-"),1)]),l("pre",null,r(JSON.stringify(At.value??{},null,2)),1)]),l("div",xv,[l("header",null,[l("h2",null,r(t.diffResult),1),l("span",null,r(((xo=Ge.value)==null?void 0:xo.changes.length)??0),1)]),l("pre",null,r(JSON.stringify(Ge.value??{},null,2)),1)])]),Ut.value?(y(),b("section",Cv,[l("header",null,[l("h2",null,r(t.exportSettings),1),l("span",null,r(Ut.value.redacted),1)]),l("pre",null,r(JSON.stringify(Ut.value.config,null,2)),1)])):N("",!0)])):N("",!0)],64))]),l("aside",Sv,[l("h2",null,r(t.running),1),l("dl",null,[l("div",null,[u[103]||(u[103]=l("dt",null,"Pending",-1)),l("dd",null,r(((Co=d.value)==null?void 0:Co.queue.pending)??0),1)]),l("div",null,[u[104]||(u[104]=l("dt",null,"Running",-1)),l("dd",null,r(((So=d.value)==null?void 0:So.queue.running)??0),1)]),l("div",null,[u[105]||(u[105]=l("dt",null,"Failed",-1)),l("dd",null,r(((Po=d.value)==null?void 0:Po.queue.failed)??0),1)]),l("div",null,[u[106]||(u[106]=l("dt",null,"Dead",-1)),l("dd",null,r(((Do=d.value)==null?void 0:Do.queue.dead_letter)??0),1)])]),l("h2",null,r(t.storage),1),l("dl",null,[l("div",null,[u[107]||(u[107]=l("dt",null,"Images",-1)),l("dd",null,r(el(so("storage://images/"))),1)]),l("div",null,[u[108]||(u[108]=l("dt",null,"Materials",-1)),l("dd",null,r(el(so("storage://materials/"))),1)])]),l("h2",null,r(t.storageMigrate),1),l("div",Pv,[l("label",null,[l("span",null,r(t.sourceUri),1),T(l("input",{"onUpdate:modelValue":u[84]||(u[84]=i=>V.value.source_uri=i),type:"text"},null,512),[[R,V.value.source_uri]])]),l("label",null,[l("span",null,r(t.targetUri),1),T(l("input",{"onUpdate:modelValue":u[85]||(u[85]=i=>V.value.target_uri=i),type:"text"},null,512),[[R,V.value.target_uri]])]),l("button",{type:"button",disabled:!!U.value||!V.value.source_uri||!V.value.target_uri,onClick:Rr},r(t.storageMigrate),9,Dv)]),le.value?(y(),b("dl",Ev,[l("div",null,[l("dt",null,r(t.fileCount),1),l("dd",null,r(le.value.files),1)]),l("div",null,[l("dt",null,r(t.storage),1),l("dd",null,r(el(le.value.bytes)),1)]),l("div",null,[l("dt",null,r(t.dryRun),1),l("dd",null,r(le.value.dry_run),1)]),l("div",null,[l("dt",null,r(t.overwriteRisk),1),l("dd",null,r(le.value.will_overwrite?t.support:t.unsupported),1)])])):N("",!0),l("h2",null,r(t.assetImportPack),1),l("div",Iv,[l("label",null,[l("span",null,r(t.packageUri),1),T(l("input",{"onUpdate:modelValue":u[86]||(u[86]=i=>j.value.package_uri=i),type:"text"},null,512),[[R,j.value.package_uri]])]),l("button",{type:"button",disabled:!!U.value||!j.value.package_uri,onClick:Mr},r(t.assetImportPack),9,Tv)]),De.value?(y(),b("dl",Ov,[l("div",null,[l("dt",null,r(t.fileCount),1),l("dd",null,r(De.value.files),1)]),l("div",null,[l("dt",null,r(t.storage),1),l("dd",null,r(el(De.value.bytes)),1)]),l("div",null,[u[109]||(u[109]=l("dt",null,"Manifest",-1)),l("dd",null,r(De.value.manifest.valid?t.valid:t.invalid),1)]),l("div",null,[l("dt",null,r(t.name),1),l("dd",null,r(De.value.manifest.name??"-"),1)]),l("div",null,[l("dt",null,r(t.materials),1),l("dd",null,r(De.value.manifest.materials),1)]),l("div",null,[l("dt",null,r(t.style),1),l("dd",null,r(De.value.manifest.styles),1)]),l("div",null,[l("dt",null,r(t.manifestErrors),1),l("dd",null,r(((Eo=De.value.manifest.errors[0])==null?void 0:Eo.code)??"0"),1)])])):N("",!0)])])}}}),Av=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},Rv=Av(Uv,[["__scopeId","data-v-bb688a19"]]);rd(Rv).mount("#app"); diff --git a/web/assets/index-xlGwJRiI.js b/web/assets/index-xlGwJRiI.js deleted file mode 100644 index dd82c27..0000000 --- a/web/assets/index-xlGwJRiI.js +++ /dev/null @@ -1,17 +0,0 @@ -var Ar=Object.defineProperty;var Rr=(e,t,l)=>t in e?Ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l;var fn=(e,t,l)=>Rr(e,typeof t!="symbol"?t+"":t,l);(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 a of s)if(a.type==="childList")for(const d of a.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(s){if(s.ep)return;s.ep=!0;const a=l(s);fetch(s.href,a)}})();/** -* @vue/shared v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function $n(e){const t=Object.create(null);for(const l of e.split(","))t[l]=1;return l=>l in t}const _e={},qt=[],dt=()=>{},os=()=>!1,ql=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Jl=e=>e.startsWith("onUpdate:"),Ie=Object.assign,Vn=(e,t)=>{const l=e.indexOf(t);l>-1&&e.splice(l,1)},Mr=Object.prototype.hasOwnProperty,pe=(e,t)=>Mr.call(e,t),J=Array.isArray,Jt=e=>ml(e)==="[object Map]",Gl=e=>ml(e)==="[object Set]",Po=e=>ml(e)==="[object Date]",Y=e=>typeof e=="function",xe=e=>typeof e=="string",ct=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",ss=e=>(ge(e)||Y(e))&&Y(e.then)&&Y(e.catch),is=Object.prototype.toString,ml=e=>is.call(e),$r=e=>ml(e).slice(8,-1),rs=e=>ml(e)==="[object Object]",Bn=e=>xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,il=$n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zl=e=>{const t=Object.create(null);return(l=>t[l]||(t[l]=e(l)))},Vr=/-\w/g,Qe=zl(e=>e.replace(Vr,t=>t.slice(1).toUpperCase())),Br=/\B([A-Z])/g,Nt=zl(e=>e.replace(Br,"-$1").toLowerCase()),as=zl(e=>e.charAt(0).toUpperCase()+e.slice(1)),pn=zl(e=>e?`on${as(e)}`:""),ut=(e,t)=>!Object.is(e,t),Rl=(e,...t)=>{for(let l=0;l{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:l})},Yl=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Do;const Ql=()=>Do||(Do=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ln(e){if(J(e)){const t={};for(let l=0;l{if(l){const o=l.split(Fr);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Xl(e){let t="";if(xe(e))t=e;else if(J(e))for(let l=0;lyl(l,t))}const cs=e=>!!(e&&e.__v_isRef===!0),r=e=>xe(e)?e:e==null?"":J(e)||ge(e)&&(e.toString===is||!Y(e.toString))?cs(e)?r(e.value):JSON.stringify(e,fs,2):String(e),fs=(e,t)=>cs(t)?fs(e,t.value):Jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((l,[o,s],a)=>(l[vn(o,a)+" =>"]=s,l),{})}:Gl(t)?{[`Set(${t.size})`]:[...t.values()].map(l=>vn(l))}:ct(t)?vn(t):ge(t)&&!J(t)&&!rs(t)?String(t):t,vn=(e,t="")=>{var l;return ct(e)?`Symbol(${(l=e.description)!=null?l:t})`:e};/** -* @vue/reactivity v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Ee;class Jr{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&&Ee&&(Ee.active?(this.parent=Ee,this.index=(Ee.scopes||(Ee.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,l;if(this.scopes)for(t=0,l=this.scopes.length;t0&&--this._on===0){if(Ee===this)Ee=this.prevScope;else{let t=Ee;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 l,o;for(l=0,o=this.effects.length;l0)return;if(al){let t=al;for(al=void 0;t;){const l=t.next;t.next=void 0,t.flags&=-9,t=l}}let e;for(;rl;){let t=rl;for(rl=void 0;t;){const l=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=l}}if(e)throw e}function _s(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function hs(e){let t,l=e.depsTail,o=l;for(;o;){const s=o.prevDep;o.version===-1?(o===l&&(l=s),jn(o),zr(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=l}function Sn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ms(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ms(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===pl)||(e.globalVersion=pl,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Sn(e))))return;e.flags|=2;const t=e.dep,l=he,o=Xe;he=e,Xe=!0;try{_s(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{he=l,Xe=o,hs(e),e.flags&=-3}}function jn(e,t=!1){const{dep:l,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),l.subs===e&&(l.subs=o,!o&&l.computed)){l.computed.flags&=-5;for(let a=l.computed.deps;a;a=a.nextDep)jn(a,!0)}!t&&!--l.sc&&l.map&&l.map.delete(l.key)}function zr(e){const{prevDep:t,nextDep:l}=e;t&&(t.nextDep=l,e.prevDep=void 0),l&&(l.prevDep=t,e.nextDep=void 0)}let Xe=!0;const ys=[];function ft(){ys.push(Xe),Xe=!1}function pt(){const e=ys.pop();Xe=e===void 0?!0:e}function Eo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const l=he;he=void 0;try{t()}finally{he=l}}}let pl=0;class Yr{constructor(t,l){this.sub=t,this.dep=l,this.version=l.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Wn{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(!he||!Xe||he===this.computed)return;let l=this.activeLink;if(l===void 0||l.sub!==he)l=this.activeLink=new Yr(he,this),he.deps?(l.prevDep=he.depsTail,he.depsTail.nextDep=l,he.depsTail=l):he.deps=he.depsTail=l,bs(l);else if(l.version===-1&&(l.version=this.version,l.nextDep)){const o=l.nextDep;o.prevDep=l.prevDep,l.prevDep&&(l.prevDep.nextDep=o),l.prevDep=he.depsTail,l.nextDep=void 0,he.depsTail.nextDep=l,he.depsTail=l,he.deps===l&&(he.deps=o)}return l}trigger(t){this.version++,pl++,this.notify(t)}notify(t){Fn();try{for(let l=this.subs;l;l=l.prevSub)l.sub.notify()&&l.sub.dep.notify()}finally{Nn()}}}function bs(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)bs(o)}const l=e.dep.subs;l!==e&&(e.prevSub=l,l&&(l.nextSub=e)),e.dep.subs=e}}const Pn=new WeakMap,Lt=Symbol(""),Dn=Symbol(""),vl=Symbol("");function Oe(e,t,l){if(Xe&&he){let o=Pn.get(e);o||Pn.set(e,o=new Map);let s=o.get(l);s||(o.set(l,s=new Wn),s.map=o,s.key=l),s.track()}}function xt(e,t,l,o,s,a){const d=Pn.get(e);if(!d){pl++;return}const p=v=>{v&&v.trigger()};if(Fn(),t==="clear")d.forEach(p);else{const v=J(e),h=v&&Bn(l);if(v&&l==="length"){const _=Number(o);d.forEach((y,M)=>{(M==="length"||M===vl||!ct(M)&&M>=_)&&p(y)})}else switch((l!==void 0||d.has(void 0))&&p(d.get(l)),h&&p(d.get(vl)),t){case"add":v?h&&p(d.get("length")):(p(d.get(Lt)),Jt(e)&&p(d.get(Dn)));break;case"delete":v||(p(d.get(Lt)),Jt(e)&&p(d.get(Dn)));break;case"set":Jt(e)&&p(d.get(Lt));break}}Nn()}function Ht(e){const t=fe(e);return t===e?t:(Oe(t,"iterate",vl),Ge(e)?t:t.map(Ze))}function Zl(e){return Oe(e=fe(e),"iterate",vl),e}function rt(e,t){return Pt(e)?Qt(Ft(e)?Ze(t):t):Ze(t)}const Qr={__proto__:null,[Symbol.iterator](){return _n(this,Symbol.iterator,e=>rt(this,e))},concat(...e){return Ht(this).concat(...e.map(t=>J(t)?Ht(t):t))},entries(){return _n(this,"entries",e=>(e[1]=rt(this,e[1]),e))},every(e,t){return yt(this,"every",e,t,void 0,arguments)},filter(e,t){return yt(this,"filter",e,t,l=>l.map(o=>rt(this,o)),arguments)},find(e,t){return yt(this,"find",e,t,l=>rt(this,l),arguments)},findIndex(e,t){return yt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return yt(this,"findLast",e,t,l=>rt(this,l),arguments)},findLastIndex(e,t){return yt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return yt(this,"forEach",e,t,void 0,arguments)},includes(...e){return hn(this,"includes",e)},indexOf(...e){return hn(this,"indexOf",e)},join(e){return Ht(this).join(e)},lastIndexOf(...e){return hn(this,"lastIndexOf",e)},map(e,t){return yt(this,"map",e,t,void 0,arguments)},pop(){return ll(this,"pop")},push(...e){return ll(this,"push",e)},reduce(e,...t){return Io(this,"reduce",e,t)},reduceRight(e,...t){return Io(this,"reduceRight",e,t)},shift(){return ll(this,"shift")},some(e,t){return yt(this,"some",e,t,void 0,arguments)},splice(...e){return ll(this,"splice",e)},toReversed(){return Ht(this).toReversed()},toSorted(e){return Ht(this).toSorted(e)},toSpliced(...e){return Ht(this).toSpliced(...e)},unshift(...e){return ll(this,"unshift",e)},values(){return _n(this,"values",e=>rt(this,e))}};function _n(e,t,l){const o=Zl(e),s=o[t]();return o!==e&&!Ge(e)&&(s._next=s.next,s.next=()=>{const a=s._next();return a.done||(a.value=l(a.value)),a}),s}const Xr=Array.prototype;function yt(e,t,l,o,s,a){const d=Zl(e),p=d!==e&&!Ge(e),v=d[t];if(v!==Xr[t]){const y=v.apply(e,a);return p?Ze(y):y}let h=l;d!==e&&(p?h=function(y,M){return l.call(this,rt(e,y),M,e)}:l.length>2&&(h=function(y,M){return l.call(this,y,M,e)}));const _=v.call(d,h,o);return p&&s?s(_):_}function Io(e,t,l,o){const s=Zl(e),a=s!==e&&!Ge(e);let d=l,p=!1;s!==e&&(a?(p=o.length===0,d=function(h,_,y){return p&&(p=!1,h=rt(e,h)),l.call(this,h,rt(e,_),y,e)}):l.length>3&&(d=function(h,_,y){return l.call(this,h,_,y,e)}));const v=s[t](d,...o);return p?rt(e,v):v}function hn(e,t,l){const o=fe(e);Oe(o,"iterate",vl);const s=o[t](...l);return(s===-1||s===!1)&&Jn(l[0])?(l[0]=fe(l[0]),o[t](...l)):s}function ll(e,t,l=[]){ft(),Fn();const o=fe(e)[t].apply(e,l);return Nn(),pt(),o}const Zr=$n("__proto__,__v_isRef,__isVue"),ws=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ct));function ea(e){ct(e)||(e=String(e));const t=fe(this);return Oe(t,"has",e),t.hasOwnProperty(e)}class ks{constructor(t=!1,l=!1){this._isReadonly=t,this._isShallow=l}get(t,l,o){if(l==="__v_skip")return t.__v_skip;const s=this._isReadonly,a=this._isShallow;if(l==="__v_isReactive")return!s;if(l==="__v_isReadonly")return s;if(l==="__v_isShallow")return a;if(l==="__v_raw")return o===(s?a?da:Ps:a?Ss:Cs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const d=J(t);if(!s){let v;if(d&&(v=Qr[l]))return v;if(l==="hasOwnProperty")return ea}const p=Reflect.get(t,l,Ue(t)?t:o);if((ct(l)?ws.has(l):Zr(l))||(s||Oe(t,"get",l),a))return p;if(Ue(p)){const v=d&&Bn(l)?p:p.value;return s&&ge(v)?In(v):v}return ge(p)?s?In(p):Kn(p):p}}class xs extends ks{constructor(t=!1){super(!1,t)}set(t,l,o,s){let a=t[l];const d=J(t)&&Bn(l);if(!this._isShallow){const h=Pt(a);if(!Ge(o)&&!Pt(o)&&(a=fe(a),o=fe(o)),!d&&Ue(a)&&!Ue(o))return h||(a.value=o),!0}const p=d?Number(l)e,Ol=e=>Reflect.getPrototypeOf(e);function sa(e,t,l){return function(...o){const s=this.__v_raw,a=fe(s),d=Jt(a),p=e==="entries"||e===Symbol.iterator&&d,v=e==="keys"&&d,h=s[e](...o),_=l?En:t?Qt:Ze;return!t&&Oe(a,"iterate",v?Dn:Lt),Ie(Object.create(h),{next(){const{value:y,done:M}=h.next();return M?{value:y,done:M}:{value:p?[_(y[0]),_(y[1])]:_(y),done:M}}})}}function Ul(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ia(e,t){const l={get(s){const a=this.__v_raw,d=fe(a),p=fe(s);e||(ut(s,p)&&Oe(d,"get",s),Oe(d,"get",p));const{has:v}=Ol(d),h=t?En:e?Qt:Ze;if(v.call(d,s))return h(a.get(s));if(v.call(d,p))return h(a.get(p));a!==d&&a.get(s)},get size(){const s=this.__v_raw;return!e&&Oe(fe(s),"iterate",Lt),s.size},has(s){const a=this.__v_raw,d=fe(a),p=fe(s);return e||(ut(s,p)&&Oe(d,"has",s),Oe(d,"has",p)),s===p?a.has(s):a.has(s)||a.has(p)},forEach(s,a){const d=this,p=d.__v_raw,v=fe(p),h=t?En:e?Qt:Ze;return!e&&Oe(v,"iterate",Lt),p.forEach((_,y)=>s.call(a,h(_),h(y),d))}};return Ie(l,e?{add:Ul("add"),set:Ul("set"),delete:Ul("delete"),clear:Ul("clear")}:{add(s){const a=fe(this),d=Ol(a),p=fe(s),v=!t&&!Ge(s)&&!Pt(s)?p:s;return d.has.call(a,v)||ut(s,v)&&d.has.call(a,s)||ut(p,v)&&d.has.call(a,p)||(a.add(v),xt(a,"add",v,v)),this},set(s,a){!t&&!Ge(a)&&!Pt(a)&&(a=fe(a));const d=fe(this),{has:p,get:v}=Ol(d);let h=p.call(d,s);h||(s=fe(s),h=p.call(d,s));const _=v.call(d,s);return d.set(s,a),h?ut(a,_)&&xt(d,"set",s,a):xt(d,"add",s,a),this},delete(s){const a=fe(this),{has:d,get:p}=Ol(a);let v=d.call(a,s);v||(s=fe(s),v=d.call(a,s)),p&&p.call(a,s);const h=a.delete(s);return v&&xt(a,"delete",s,void 0),h},clear(){const s=fe(this),a=s.size!==0,d=s.clear();return a&&xt(s,"clear",void 0,void 0),d}}),["keys","values","entries",Symbol.iterator].forEach(s=>{l[s]=sa(s,e,t)}),l}function Hn(e,t){const l=ia(e,t);return(o,s,a)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(pe(l,s)&&s in o?l:o,s,a)}const ra={get:Hn(!1,!1)},aa={get:Hn(!1,!0)},ua={get:Hn(!0,!1)};const Cs=new WeakMap,Ss=new WeakMap,Ps=new WeakMap,da=new WeakMap;function ca(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Kn(e){return Pt(e)?e:qn(e,!1,la,ra,Cs)}function fa(e){return qn(e,!1,oa,aa,Ss)}function In(e){return qn(e,!0,na,ua,Ps)}function qn(e,t,l,o,s){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const a=s.get(e);if(a)return a;const d=ca($r(e));if(d===0)return e;const p=new Proxy(e,d===2?o:l);return s.set(e,p),p}function Ft(e){return Pt(e)?Ft(e.__v_raw):!!(e&&e.__v_isReactive)}function Pt(e){return!!(e&&e.__v_isReadonly)}function Ge(e){return!!(e&&e.__v_isShallow)}function Jn(e){return e?!!e.__v_raw:!1}function fe(e){const t=e&&e.__v_raw;return t?fe(t):e}function pa(e){return!pe(e,"__v_skip")&&Object.isExtensible(e)&&us(e,"__v_skip",!0),e}const Ze=e=>ge(e)?Kn(e):e,Qt=e=>ge(e)?In(e):e;function Ue(e){return e?e.__v_isRef===!0:!1}function $(e){return va(e,!1)}function va(e,t){return Ue(e)?e:new ga(e,t)}class ga{constructor(t,l){this.dep=new Wn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=l?t:fe(t),this._value=l?t:Ze(t),this.__v_isShallow=l}get value(){return this.dep.track(),this._value}set value(t){const l=this._rawValue,o=this.__v_isShallow||Ge(t)||Pt(t);t=o?t:fe(t),ut(t,l)&&(this._rawValue=t,this._value=o?t:Ze(t),this.dep.trigger())}}function _a(e){return Ue(e)?e.value:e}const ha={get:(e,t,l)=>t==="__v_raw"?e:_a(Reflect.get(e,t,l)),set:(e,t,l,o)=>{const s=e[t];return Ue(s)&&!Ue(l)?(s.value=l,!0):Reflect.set(e,t,l,o)}};function Ds(e){return Ft(e)?e:new Proxy(e,ha)}class ma{constructor(t,l,o){this.fn=t,this.setter=l,this._value=void 0,this.dep=new Wn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=pl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!l,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return gs(this,!0),!0}get value(){const t=this.dep.track();return ms(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ya(e,t,l=!1){let o,s;return Y(e)?o=e:(o=e.get,s=e.set),new ma(o,s,l)}const Al={},Vl=new WeakMap;let Vt;function ba(e,t=!1,l=Vt){if(l){let o=Vl.get(l);o||Vl.set(l,o=[]),o.push(e)}}function wa(e,t,l=_e){const{immediate:o,deep:s,once:a,scheduler:d,augmentJob:p,call:v}=l,h=F=>s?F:Ge(F)||s===!1||s===0?Ct(F,1):Ct(F);let _,y,M,L,ne=!1,W=!1;if(Ue(e)?(y=()=>e.value,ne=Ge(e)):Ft(e)?(y=()=>h(e),ne=!0):J(e)?(W=!0,ne=e.some(F=>Ft(F)||Ge(F)),y=()=>e.map(F=>{if(Ue(F))return F.value;if(Ft(F))return h(F);if(Y(F))return v?v(F,2):F()})):Y(e)?t?y=v?()=>v(e,2):e:y=()=>{if(M){ft();try{M()}finally{pt()}}const F=Vt;Vt=_;try{return v?v(e,3,[L]):e(L)}finally{Vt=F}}:y=dt,t&&s){const F=y,be=s===!0?1/0:s;y=()=>Ct(F(),be)}const oe=Gr(),ue=()=>{_.stop(),oe&&oe.active&&Vn(oe.effects,_)};if(a&&t){const F=t;t=(...be)=>{const we=F(...be);return ue(),we}}let ee=W?new Array(e.length).fill(Al):Al;const de=F=>{if(!(!(_.flags&1)||!_.dirty&&!F))if(t){const be=_.run();if(F||s||ne||(W?be.some((we,Be)=>ut(we,ee[Be])):ut(be,ee))){M&&M();const we=Vt;Vt=_;try{const Be=[be,ee===Al?void 0:W&&ee[0]===Al?[]:ee,L];ee=be,v?v(t,3,Be):t(...Be)}finally{Vt=we}}}else _.run()};return p&&p(de),_=new ps(y),_.scheduler=d?()=>d(de,!1):de,L=F=>ba(F,!1,_),M=_.onStop=()=>{const F=Vl.get(_);if(F){if(v)v(F,4);else for(const be of F)be();Vl.delete(_)}},t?o?de(!0):ee=_.run():d?d(de.bind(null,!0),!0):_.run(),ue.pause=_.pause.bind(_),ue.resume=_.resume.bind(_),ue.stop=ue,ue}function Ct(e,t=1/0,l){if(t<=0||!ge(e)||e.__v_skip||(l=l||new Map,(l.get(e)||0)>=t))return e;if(l.set(e,t),t--,Ue(e))Ct(e.value,t,l);else if(J(e))for(let o=0;o{Ct(o,t,l)});else if(rs(e)){for(const o in e)Ct(e[o],t,l);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ct(e[o],t,l)}return e}/** -* @vue/runtime-core v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function bl(e,t,l,o){try{return o?e(...o):e()}catch(s){en(s,t,l)}}function et(e,t,l,o){if(Y(e)){const s=bl(e,t,l,o);return s&&ss(s)&&s.catch(a=>{en(a,t,l)}),s}if(J(e)){const s=[];for(let a=0;a>>1,s=$e[o],a=gl(s);a=gl(l)?$e.push(e):$e.splice(xa(t),0,e),e.flags|=1,Ts()}}function Ts(){Bl||(Bl=Es.then(Us))}function Ca(e){J(e)?Gt.push(...e):Tt&&e.id===-1?Tt.splice(Kt+1,0,e):e.flags&1||(Gt.push(e),e.flags|=1),Ts()}function To(e,t,l=st+1){for(;l<$e.length;l++){const o=$e[l];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;$e.splice(l,1),l--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function Os(e){if(Gt.length){const t=[...new Set(Gt)].sort((l,o)=>gl(l)-gl(o));if(Gt.length=0,Tt){Tt.push(...t);return}for(Tt=t,Kt=0;Kte.id==null?e.flags&2?-1:1/0:e.id;function Us(e){try{for(st=0;st<$e.length;st++){const t=$e[st];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),bl(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;st<$e.length;st++){const t=$e[st];t&&(t.flags&=-2)}st=-1,$e.length=0,Os(),Bl=null,($e.length||Gt.length)&&Us()}}let Je=null,As=null;function Ll(e){const t=Je;return Je=e,As=e&&e.type.__scopeId||null,t}function Sa(e,t=Je,l){if(!t||e._n)return e;const o=(...s)=>{o._d&&No(-1);const a=Ll(t);let d;try{d=e(...s)}finally{Ll(a),o._d&&No(1)}return d};return o._n=!0,o._c=!0,o._d=!0,o}function T(e,t){if(Je===null)return e;const l=on(Je),o=e.dirs||(e.dirs=[]);for(let s=0;s1)return l&&Y(t)?t.call(o&&o.proxy):t}}const Da=Symbol.for("v-scx"),Ea=()=>Ml(Da);function mn(e,t,l){return Rs(e,t,l)}function Rs(e,t,l=_e){const{immediate:o,deep:s,flush:a,once:d}=l,p=Ie({},l),v=t&&o||!t&&a!=="post";let h;if(hl){if(a==="sync"){const L=Ea();h=L.__watcherHandles||(L.__watcherHandles=[])}else if(!v){const L=()=>{};return L.stop=dt,L.resume=dt,L.pause=dt,L}}const _=Ve;p.call=(L,ne,W)=>et(L,_,ne,W);let y=!1;a==="post"?p.scheduler=L=>{Fe(L,_&&_.suspense)}:a!=="sync"&&(y=!0,p.scheduler=(L,ne)=>{ne?L():Gn(L)}),p.augmentJob=L=>{t&&(L.flags|=4),y&&(L.flags|=2,_&&(L.id=_.uid,L.i=_))};const M=wa(e,t,p);return hl&&(h?h.push(M):v&&M()),M}function Ia(e,t,l){const o=this.proxy,s=xe(e)?e.includes(".")?Ms(o,e):()=>o[e]:e.bind(o,o);let a;Y(t)?a=t:(a=t.handler,l=t);const d=wl(this),p=Rs(s,a.bind(o),l);return d(),p}function Ms(e,t){const l=t.split(".");return()=>{let o=e;for(let s=0;se.__isTeleport,yn=Symbol("_leaveCb");function zn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,zn(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 Ua(e,t){return Y(e)?Ie({name:e.name},t,{setup:e}):e}function $s(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Oo(e,t){let l;return!!((l=Object.getOwnPropertyDescriptor(e,t))&&!l.configurable)}const Fl=new WeakMap;function ul(e,t,l,o,s=!1){if(J(e)){e.forEach((W,oe)=>ul(W,t&&(J(t)?t[oe]:t),l,o,s));return}if(dl(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&ul(e,t,l,o.component.subTree);return}const a=o.shapeFlag&4?on(o.component):o.el,d=s?null:a,{i:p,r:v}=e,h=t&&t.r,_=p.refs===_e?p.refs={}:p.refs,y=p.setupState,M=fe(y),L=y===_e?os:W=>Oo(_,W)?!1:pe(M,W),ne=(W,oe)=>!(oe&&Oo(_,oe));if(h!=null&&h!==v){if(Uo(t),xe(h))_[h]=null,L(h)&&(y[h]=null);else if(Ue(h)){const W=t;ne(h,W.k)&&(h.value=null),W.k&&(_[W.k]=null)}}if(Y(v)){ft();try{bl(v,p,12,[d,_])}finally{pt()}}else{const W=xe(v),oe=Ue(v);if(W||oe){const ue=()=>{if(e.f){const ee=W?L(v)?y[v]:_[v]:ne()||!e.k?v.value:_[e.k];if(s)J(ee)&&Vn(ee,a);else if(J(ee))ee.includes(a)||ee.push(a);else if(W)_[v]=[a],L(v)&&(y[v]=_[v]);else{const de=[a];ne(v,e.k)&&(v.value=de),e.k&&(_[e.k]=de)}}else W?(_[v]=d,L(v)&&(y[v]=d)):oe&&(ne(v,e.k)&&(v.value=d),e.k&&(_[e.k]=d))};if(d){const ee=()=>{ue(),Fl.delete(e)};ee.id=-1,Fl.set(e,ee),Fe(ee,l)}else Uo(e),ue()}}}function Uo(e){const t=Fl.get(e);t&&(t.flags|=8,Fl.delete(e))}Ql().requestIdleCallback;Ql().cancelIdleCallback;const dl=e=>!!e.type.__asyncLoader,Vs=e=>e.type.__isKeepAlive;function Aa(e,t){Bs(e,"a",t)}function Ra(e,t){Bs(e,"da",t)}function Bs(e,t,l=Ve){const o=e.__wdc||(e.__wdc=()=>{let s=l;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(tn(t,o,l),l){let s=l.parent;for(;s&&s.parent;)Vs(s.parent.vnode)&&Ma(o,t,l,s),s=s.parent}}function Ma(e,t,l,o){const s=tn(t,e,o,!0);Fs(()=>{Vn(o[t],s)},l)}function tn(e,t,l=Ve,o=!1){if(l){const s=l[e]||(l[e]=[]),a=t.__weh||(t.__weh=(...d)=>{ft();const p=wl(l),v=et(t,l,e,d);return p(),pt(),v});return o?s.unshift(a):s.push(a),a}}const Dt=e=>(t,l=Ve)=>{(!hl||e==="sp")&&tn(e,(...o)=>t(...o),l)},$a=Dt("bm"),Ls=Dt("m"),Va=Dt("bu"),Ba=Dt("u"),La=Dt("bum"),Fs=Dt("um"),Fa=Dt("sp"),Na=Dt("rtg"),ja=Dt("rtc");function Wa(e,t=Ve){tn("ec",e,t)}const Ha=Symbol.for("v-ndc");function ve(e,t,l,o){let s;const a=l,d=J(e);if(d||xe(e)){const p=d&&Ft(e);let v=!1,h=!1;p&&(v=!Ge(e),h=Pt(e),e=Zl(e)),s=new Array(e.length);for(let _=0,y=e.length;_t(p,v,void 0,a));else{const p=Object.keys(e);s=new Array(p.length);for(let v=0,h=p.length;ve?ri(e)?on(e):Tn(e.parent):null,cl=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=>Tn(e.parent),$root:e=>Tn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>js(e),$forceUpdate:e=>e.f||(e.f=()=>{Gn(e.update)}),$nextTick:e=>e.n||(e.n=Is.bind(e.proxy)),$watch:e=>Ia.bind(e)}),bn=(e,t)=>e!==_e&&!e.__isScriptSetup&&pe(e,t),Ka={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:l,setupState:o,data:s,props:a,accessCache:d,type:p,appContext:v}=e;if(t[0]!=="$"){const M=d[t];if(M!==void 0)switch(M){case 1:return o[t];case 2:return s[t];case 4:return l[t];case 3:return a[t]}else{if(bn(o,t))return d[t]=1,o[t];if(s!==_e&&pe(s,t))return d[t]=2,s[t];if(pe(a,t))return d[t]=3,a[t];if(l!==_e&&pe(l,t))return d[t]=4,l[t];On&&(d[t]=0)}}const h=cl[t];let _,y;if(h)return t==="$attrs"&&Oe(e.attrs,"get",""),h(e);if((_=p.__cssModules)&&(_=_[t]))return _;if(l!==_e&&pe(l,t))return d[t]=4,l[t];if(y=v.config.globalProperties,pe(y,t))return y[t]},set({_:e},t,l){const{data:o,setupState:s,ctx:a}=e;return bn(s,t)?(s[t]=l,!0):o!==_e&&pe(o,t)?(o[t]=l,!0):pe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=l,!0)},has({_:{data:e,setupState:t,accessCache:l,ctx:o,appContext:s,props:a,type:d}},p){let v;return!!(l[p]||e!==_e&&p[0]!=="$"&&pe(e,p)||bn(t,p)||pe(a,p)||pe(o,p)||pe(cl,p)||pe(s.config.globalProperties,p)||(v=d.__cssModules)&&v[p])},defineProperty(e,t,l){return l.get!=null?e._.accessCache[t]=0:pe(l,"value")&&this.set(e,t,l.value,null),Reflect.defineProperty(e,t,l)}};function Ao(e){return J(e)?e.reduce((t,l)=>(t[l]=null,t),{}):e}let On=!0;function qa(e){const t=js(e),l=e.proxy,o=e.ctx;On=!1,t.beforeCreate&&Ro(t.beforeCreate,e,"bc");const{data:s,computed:a,methods:d,watch:p,provide:v,inject:h,created:_,beforeMount:y,mounted:M,beforeUpdate:L,updated:ne,activated:W,deactivated:oe,beforeDestroy:ue,beforeUnmount:ee,destroyed:de,unmounted:F,render:be,renderTracked:we,renderTriggered:Be,errorCaptured:Ae,serverPrefetch:We,expose:He,inheritAttrs:tt,components:vt,directives:gt,filters:me}=t;if(h&&Ja(h,o,null),d)for(const se in d){const le=d[se];Y(le)&&(o[se]=le.bind(l))}if(s){const se=s.call(l,l);ge(se)&&(e.data=Kn(se))}if(On=!0,a)for(const se in a){const le=a[se],De=Y(le)?le.bind(l,l):Y(le.get)?le.get.bind(l,l):dt,_t=!Y(le)&&Y(le.set)?le.set.bind(l):dt,Ne=It({get:De,set:_t});Object.defineProperty(o,se,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:Te=>Ne.value=Te})}if(p)for(const se in p)Ns(p[se],o,l,se);if(v){const se=Y(v)?v.call(l):v;Reflect.ownKeys(se).forEach(le=>{Pa(le,se[le])})}_&&Ro(_,e,"c");function ke(se,le){J(le)?le.forEach(De=>se(De.bind(l))):le&&se(le.bind(l))}if(ke($a,y),ke(Ls,M),ke(Va,L),ke(Ba,ne),ke(Aa,W),ke(Ra,oe),ke(Wa,Ae),ke(ja,we),ke(Na,Be),ke(La,ee),ke(Fs,F),ke(Fa,We),J(He))if(He.length){const se=e.exposed||(e.exposed={});He.forEach(le=>{Object.defineProperty(se,le,{get:()=>l[le],set:De=>l[le]=De,enumerable:!0})})}else e.exposed||(e.exposed={});be&&e.render===dt&&(e.render=be),tt!=null&&(e.inheritAttrs=tt),vt&&(e.components=vt),gt&&(e.directives=gt),We&&$s(e)}function Ja(e,t,l=dt){J(e)&&(e=Un(e));for(const o in e){const s=e[o];let a;ge(s)?"default"in s?a=Ml(s.from||o,s.default,!0):a=Ml(s.from||o):a=Ml(s),Ue(a)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:d=>a.value=d}):t[o]=a}}function Ro(e,t,l){et(J(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,l)}function Ns(e,t,l,o){let s=o.includes(".")?Ms(l,o):()=>l[o];if(xe(e)){const a=t[e];Y(a)&&mn(s,a)}else if(Y(e))mn(s,e.bind(l));else if(ge(e))if(J(e))e.forEach(a=>Ns(a,t,l,o));else{const a=Y(e.handler)?e.handler.bind(l):t[e.handler];Y(a)&&mn(s,a,e)}}function js(e){const t=e.type,{mixins:l,extends:o}=t,{mixins:s,optionsCache:a,config:{optionMergeStrategies:d}}=e.appContext,p=a.get(t);let v;return p?v=p:!s.length&&!l&&!o?v=t:(v={},s.length&&s.forEach(h=>Nl(v,h,d,!0)),Nl(v,t,d)),ge(t)&&a.set(t,v),v}function Nl(e,t,l,o=!1){const{mixins:s,extends:a}=t;a&&Nl(e,a,l,!0),s&&s.forEach(d=>Nl(e,d,l,!0));for(const d in t)if(!(o&&d==="expose")){const p=Ga[d]||l&&l[d];e[d]=p?p(e[d],t[d]):t[d]}return e}const Ga={data:Mo,props:$o,emits:$o,methods:ol,computed:ol,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:ol,directives:ol,watch:Ya,provide:Mo,inject:za};function Mo(e,t){return t?e?function(){return Ie(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:t:e}function za(e,t){return ol(Un(e),Un(t))}function Un(e){if(J(e)){const t={};for(let l=0;lt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Qe(t)}Modifiers`]||e[`${Nt(t)}Modifiers`];function eu(e,t,...l){if(e.isUnmounted)return;const o=e.vnode.props||_e;let s=l;const a=t.startsWith("update:"),d=a&&Za(o,t.slice(7));d&&(d.trim&&(s=l.map(_=>xe(_)?_.trim():_)),d.number&&(s=l.map(Yl)));let p,v=o[p=pn(t)]||o[p=pn(Qe(t))];!v&&a&&(v=o[p=pn(Nt(t))]),v&&et(v,e,6,s);const h=o[p+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[p])return;e.emitted[p]=!0,et(h,e,6,s)}}const tu=new WeakMap;function Hs(e,t,l=!1){const o=l?tu:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const a=e.emits;let d={},p=!1;if(!Y(e)){const v=h=>{const _=Hs(h,t,!0);_&&(p=!0,Ie(d,_))};!l&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}return!a&&!p?(ge(e)&&o.set(e,null),null):(J(a)?a.forEach(v=>d[v]=null):Ie(d,a),ge(e)&&o.set(e,d),d)}function ln(e,t){return!e||!ql(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),pe(e,t[0].toLowerCase()+t.slice(1))||pe(e,Nt(t))||pe(e,t))}function Vo(e){const{type:t,vnode:l,proxy:o,withProxy:s,propsOptions:[a],slots:d,attrs:p,emit:v,render:h,renderCache:_,props:y,data:M,setupState:L,ctx:ne,inheritAttrs:W}=e,oe=Ll(e);let ue,ee;try{if(l.shapeFlag&4){const F=s||o,be=F;ue=at(h.call(be,F,_,y,L,M,ne)),ee=p}else{const F=t;ue=at(F.length>1?F(y,{attrs:p,slots:d,emit:v}):F(y,null)),ee=t.props?p:lu(p)}}catch(F){fl.length=0,en(F,e,1),ue=St(Ot)}let de=ue;if(ee&&W!==!1){const F=Object.keys(ee),{shapeFlag:be}=de;F.length&&be&7&&(a&&F.some(Jl)&&(ee=nu(ee,a)),de=Xt(de,ee,!1,!0))}return l.dirs&&(de=Xt(de,null,!1,!0),de.dirs=de.dirs?de.dirs.concat(l.dirs):l.dirs),l.transition&&zn(de,l.transition),ue=de,Ll(oe),ue}const lu=e=>{let t;for(const l in e)(l==="class"||l==="style"||ql(l))&&((t||(t={}))[l]=e[l]);return t},nu=(e,t)=>{const l={};for(const o in e)(!Jl(o)||!(o.slice(9)in t))&&(l[o]=e[o]);return l};function ou(e,t,l){const{props:o,children:s,component:a}=e,{props:d,children:p,patchFlag:v}=t,h=a.emitsOptions;if(t.dirs||t.transition)return!0;if(l&&v>=0){if(v&1024)return!0;if(v&16)return o?Bo(o,d,h):!!d;if(v&8){const _=t.dynamicProps;for(let y=0;y<_.length;y++){const M=_[y];if(Ks(d,o,M)&&!ln(h,M))return!0}}}else return(s||p)&&(!p||!p.$stable)?!0:o===d?!1:o?d?Bo(o,d,h):!0:!!d;return!1}function Bo(e,t,l){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;sObject.create(qs),Gs=e=>Object.getPrototypeOf(e)===qs;function iu(e,t,l,o=!1){const s={},a=Js();e.propsDefaults=Object.create(null),zs(e,t,s,a);for(const d in e.propsOptions[0])d in s||(s[d]=void 0);l?e.props=o?s:fa(s):e.type.props?e.props=s:e.props=a,e.attrs=a}function ru(e,t,l,o){const{props:s,attrs:a,vnode:{patchFlag:d}}=e,p=fe(s),[v]=e.propsOptions;let h=!1;if((o||d>0)&&!(d&16)){if(d&8){const _=e.vnode.dynamicProps;for(let y=0;y<_.length;y++){let M=_[y];if(ln(e.emitsOptions,M))continue;const L=t[M];if(v)if(pe(a,M))L!==a[M]&&(a[M]=L,h=!0);else{const ne=Qe(M);s[ne]=An(v,p,ne,L,e,!1)}else L!==a[M]&&(a[M]=L,h=!0)}}}else{zs(e,t,s,a)&&(h=!0);let _;for(const y in p)(!t||!pe(t,y)&&((_=Nt(y))===y||!pe(t,_)))&&(v?l&&(l[y]!==void 0||l[_]!==void 0)&&(s[y]=An(v,p,y,void 0,e,!0)):delete s[y]);if(a!==p)for(const y in a)(!t||!pe(t,y))&&(delete a[y],h=!0)}h&&xt(e.attrs,"set","")}function zs(e,t,l,o){const[s,a]=e.propsOptions;let d=!1,p;if(t)for(let v in t){if(il(v))continue;const h=t[v];let _;s&&pe(s,_=Qe(v))?!a||!a.includes(_)?l[_]=h:(p||(p={}))[_]=h:ln(e.emitsOptions,v)||(!(v in o)||h!==o[v])&&(o[v]=h,d=!0)}if(a){const v=fe(l),h=p||_e;for(let _=0;_{v=!0;const[M,L]=Ys(y,t,!0);Ie(d,M),L&&p.push(...L)};!l&&t.mixins.length&&t.mixins.forEach(_),e.extends&&_(e.extends),e.mixins&&e.mixins.forEach(_)}if(!a&&!v)return ge(e)&&o.set(e,qt),qt;if(J(a))for(let _=0;_e==="_"||e==="_ctx"||e==="$stable",Qn=e=>J(e)?e.map(at):[at(e)],uu=(e,t,l)=>{if(t._n)return t;const o=Sa((...s)=>Qn(t(...s)),l);return o._c=!1,o},Qs=(e,t,l)=>{const o=e._ctx;for(const s in e){if(Yn(s))continue;const a=e[s];if(Y(a))t[s]=uu(s,a,o);else if(a!=null){const d=Qn(a);t[s]=()=>d}}},Xs=(e,t)=>{const l=Qn(t);e.slots.default=()=>l},Zs=(e,t,l)=>{for(const o in t)(l||!Yn(o))&&(e[o]=t[o])},du=(e,t,l)=>{const o=e.slots=Js();if(e.vnode.shapeFlag&32){const s=t._;s?(Zs(o,t,l),l&&us(o,"_",s,!0)):Qs(t,o)}else t&&Xs(e,t)},cu=(e,t,l)=>{const{vnode:o,slots:s}=e;let a=!0,d=_e;if(o.shapeFlag&32){const p=t._;p?l&&p===1?a=!1:Zs(s,t,l):(a=!t.$stable,Qs(t,s)),d=t}else t&&(Xs(e,t),d={default:1});if(a)for(const p in s)!Yn(p)&&d[p]==null&&delete s[p]},Fe=_u;function fu(e){return pu(e)}function pu(e,t){const l=Ql();l.__VUE__=!0;const{insert:o,remove:s,patchProp:a,createElement:d,createText:p,createComment:v,setText:h,setElementText:_,parentNode:y,nextSibling:M,setScopeId:L=dt,insertStaticContent:ne}=e,W=(f,g,m,S=null,b=null,x=null,O=void 0,D=null,I=!!g.dynamicChildren)=>{if(f===g)return;f&&!nl(f,g)&&(S=te(f),Te(f,b,x,!0),f=null),g.patchFlag===-2&&(I=!1,g.dynamicChildren=null);const{type:w,ref:A,shapeFlag:E}=g;switch(w){case nn:oe(f,g,m,S);break;case Ot:ue(f,g,m,S);break;case kn:f==null&&ee(g,m,S,O);break;case Z:vt(f,g,m,S,b,x,O,D,I);break;default:E&1?be(f,g,m,S,b,x,O,D,I):E&6?gt(f,g,m,S,b,x,O,D,I):(E&64||E&128)&&w.process(f,g,m,S,b,x,O,D,I,Le)}A!=null&&b?ul(A,f&&f.ref,x,g||f,!g):A==null&&f&&f.ref!=null&&ul(f.ref,null,x,f,!0)},oe=(f,g,m,S)=>{if(f==null)o(g.el=p(g.children),m,S);else{const b=g.el=f.el;g.children!==f.children&&h(b,g.children)}},ue=(f,g,m,S)=>{f==null?o(g.el=v(g.children||""),m,S):g.el=f.el},ee=(f,g,m,S)=>{[f.el,f.anchor]=ne(f.children,g,m,S,f.el,f.anchor)},de=({el:f,anchor:g},m,S)=>{let b;for(;f&&f!==g;)b=M(f),o(f,m,S),f=b;o(g,m,S)},F=({el:f,anchor:g})=>{let m;for(;f&&f!==g;)m=M(f),s(f),f=m;s(g)},be=(f,g,m,S,b,x,O,D,I)=>{if(g.type==="svg"?O="svg":g.type==="math"&&(O="mathml"),f==null)we(g,m,S,b,x,O,D,I);else{const w=f.el&&f.el._isVueCE?f.el:null;try{w&&w._beginPatch(),We(f,g,b,x,O,D,I)}finally{w&&w._endPatch()}}},we=(f,g,m,S,b,x,O,D)=>{let I,w;const{props:A,shapeFlag:E,transition:V,dirs:N}=f;if(I=f.el=d(f.type,x,A&&A.is,A),E&8?_(I,f.children):E&16&&Ae(f.children,I,null,S,b,wn(f,x),O,D),N&&Mt(f,null,S,"created"),Be(I,f,f.scopeId,O,S),A){for(const q in A)q!=="value"&&!il(q)&&a(I,q,null,A[q],x,S);"value"in A&&a(I,"value",null,A.value,x),(w=A.onVnodeBeforeMount)&&ot(w,S,f)}N&&Mt(f,null,S,"beforeMount");const j=vu(b,V);j&&V.beforeEnter(I),o(I,g,m),((w=A&&A.onVnodeMounted)||j||N)&&Fe(()=>{try{w&&ot(w,S,f),j&&V.enter(I),N&&Mt(f,null,S,"mounted")}finally{}},b)},Be=(f,g,m,S,b)=>{if(m&&L(f,m),S)for(let x=0;x{for(let w=I;w{const D=g.el=f.el;let{patchFlag:I,dynamicChildren:w,dirs:A}=g;I|=f.patchFlag&16;const E=f.props||_e,V=g.props||_e;let N;if(m&&$t(m,!1),(N=V.onVnodeBeforeUpdate)&&ot(N,m,g,f),A&&Mt(g,f,m,"beforeUpdate"),m&&$t(m,!0),w&&(!f.dynamicChildren||f.dynamicChildren.length!==w.length)&&(I=0,O=!1,w=null),(E.innerHTML&&V.innerHTML==null||E.textContent&&V.textContent==null)&&_(D,""),w?He(f.dynamicChildren,w,D,m,S,wn(g,b),x):O||le(f,g,D,null,m,S,wn(g,b),x,!1),I>0){if(I&16)tt(D,E,V,m,b);else if(I&2&&E.class!==V.class&&a(D,"class",null,V.class,b),I&4&&a(D,"style",E.style,V.style,b),I&8){const j=g.dynamicProps;for(let q=0;q{N&&ot(N,m,g,f),A&&Mt(g,f,m,"updated")},S)},He=(f,g,m,S,b,x,O)=>{for(let D=0;D{if(g!==m){if(g!==_e)for(const x in g)!il(x)&&!(x in m)&&a(f,x,g[x],null,b,S);for(const x in m){if(il(x))continue;const O=m[x],D=g[x];O!==D&&x!=="value"&&a(f,x,D,O,b,S)}"value"in m&&a(f,"value",g.value,m.value,b)}},vt=(f,g,m,S,b,x,O,D,I)=>{const w=g.el=f?f.el:p(""),A=g.anchor=f?f.anchor:p("");let{patchFlag:E,dynamicChildren:V,slotScopeIds:N}=g;N&&(D=D?D.concat(N):N),f==null?(o(w,m,S),o(A,m,S),Ae(g.children||[],m,A,b,x,O,D,I)):E>0&&E&64&&V&&f.dynamicChildren&&f.dynamicChildren.length===V.length?(He(f.dynamicChildren,V,m,b,x,O,D),(g.key!=null||b&&g===b.subTree)&&ei(f,g,!0)):le(f,g,m,A,b,x,O,D,I)},gt=(f,g,m,S,b,x,O,D,I)=>{g.slotScopeIds=D,f==null?g.shapeFlag&512?b.ctx.activate(g,m,S,O,I):me(g,m,S,b,x,O,I):lt(f,g,I)},me=(f,g,m,S,b,x,O)=>{const D=f.component=Su(f,S,b);if(Vs(f)&&(D.ctx.renderer=Le),Du(D,!1,O),D.asyncDep){if(b&&b.registerDep(D,ke,O),!f.el){const I=D.subTree=St(Ot);ue(null,I,g,m),f.placeholder=I.el}}else ke(D,f,g,m,b,x,O)},lt=(f,g,m)=>{const S=g.component=f.component;if(ou(f,g,m))if(S.asyncDep&&!S.asyncResolved){se(S,g,m);return}else S.next=g,S.update();else g.el=f.el,S.vnode=g},ke=(f,g,m,S,b,x,O)=>{const D=()=>{if(f.isMounted){let{next:E,bu:V,u:N,parent:j,vnode:q}=f;{const G=ti(f);if(G){E&&(E.el=q.el,se(f,E,O)),G.asyncDep.then(()=>{Fe(()=>{f.isUnmounted||w()},b)});return}}let Q=E,ye;$t(f,!1),E?(E.el=q.el,se(f,E,O)):E=q,V&&Rl(V),(ye=E.props&&E.props.onVnodeBeforeUpdate)&&ot(ye,j,E,q),$t(f,!0);const ie=Vo(f),Re=f.subTree;f.subTree=ie,W(Re,ie,y(Re.el),te(Re),f,b,x),E.el=ie.el,Q===null&&su(f,ie.el),N&&Fe(N,b),(ye=E.props&&E.props.onVnodeUpdated)&&Fe(()=>ot(ye,j,E,q),b)}else{let E;const{el:V,props:N}=g,{bm:j,m:q,parent:Q,root:ye,type:ie}=f,Re=dl(g);$t(f,!1),j&&Rl(j),!Re&&(E=N&&N.onVnodeBeforeMount)&&ot(E,Q,g),$t(f,!0);{ye.ce&&ye.ce._hasShadowRoot()&&ye.ce._injectChildStyle(ie,f.parent?f.parent.type:void 0);const G=f.subTree=Vo(f);W(null,G,m,S,f,b,x),g.el=G.el}if(q&&Fe(q,b),!Re&&(E=N&&N.onVnodeMounted)){const G=g;Fe(()=>ot(E,Q,G),b)}(g.shapeFlag&256||Q&&dl(Q.vnode)&&Q.vnode.shapeFlag&256)&&f.a&&Fe(f.a,b),f.isMounted=!0,g=m=S=null}};f.scope.on();const I=f.effect=new ps(D);f.scope.off();const w=f.update=I.run.bind(I),A=f.job=I.runIfDirty.bind(I);A.i=f,A.id=f.uid,I.scheduler=()=>Gn(A),$t(f,!0),w()},se=(f,g,m)=>{g.component=f;const S=f.vnode.props;f.vnode=g,f.next=null,ru(f,g.props,S,m),cu(f,g.children,m),ft(),To(f),pt()},le=(f,g,m,S,b,x,O,D,I=!1)=>{const w=f&&f.children,A=f?f.shapeFlag:0,E=g.children,{patchFlag:V,shapeFlag:N}=g;if(V>0){if(V&128){_t(w,E,m,S,b,x,O,D,I);return}else if(V&256){De(w,E,m,S,b,x,O,D,I);return}}N&8?(A&16&&ze(w,b,x),E!==w&&_(m,E)):A&16?N&16?_t(w,E,m,S,b,x,O,D,I):ze(w,b,x,!0):(A&8&&_(m,""),N&16&&Ae(E,m,S,b,x,O,D,I))},De=(f,g,m,S,b,x,O,D,I)=>{f=f||qt,g=g||qt;const w=f.length,A=g.length,E=Math.min(w,A);let V;for(V=0;VA?ze(f,b,x,!0,!1,E):Ae(g,m,S,b,x,O,D,I,E)},_t=(f,g,m,S,b,x,O,D,I)=>{let w=0;const A=g.length;let E=f.length-1,V=A-1;for(;w<=E&&w<=V;){const N=f[w],j=g[w]=I?kt(g[w]):at(g[w]);if(nl(N,j))W(N,j,m,null,b,x,O,D,I);else break;w++}for(;w<=E&&w<=V;){const N=f[E],j=g[V]=I?kt(g[V]):at(g[V]);if(nl(N,j))W(N,j,m,null,b,x,O,D,I);else break;E--,V--}if(w>E){if(w<=V){const N=V+1,j=NV)for(;w<=E;)Te(f[w],b,x,!0),w++;else{const N=w,j=w,q=new Map;for(w=j;w<=V;w++){const Ce=g[w]=I?kt(g[w]):at(g[w]);Ce.key!=null&&q.set(Ce.key,w)}let Q,ye=0;const ie=V-j+1;let Re=!1,G=0;const mt=new Array(ie);for(w=0;w=ie){Te(Ce,b,x,!0);continue}let Se;if(Ce.key!=null)Se=q.get(Ce.key);else for(Q=j;Q<=V;Q++)if(mt[Q-j]===0&&nl(Ce,g[Q])){Se=Q;break}Se===void 0?Te(Ce,b,x,!0):(mt[Se-j]=w+1,Se>=G?G=Se:Re=!0,W(Ce,g[Se],m,null,b,x,O,D,I),ye++)}const U=Re?gu(mt):qt;for(Q=U.length-1,w=ie-1;w>=0;w--){const Ce=j+w,Se=g[Ce],Zt=g[Ce+1],kl=Ce+1{const{el:x,type:O,transition:D,children:I,shapeFlag:w}=f;if(w&6){Ne(f.component.subTree,g,m,S);return}if(w&128){f.suspense.move(g,m,S);return}if(w&64){O.move(f,g,m,Le);return}if(O===Z){o(x,g,m);for(let E=0;ED.enter(x),b));else{const{leave:E,delayLeave:V,afterLeave:N}=D,j=()=>{f.ctx.isUnmounted?s(x):o(x,g,m)},q=()=>{const Q=x._isLeaving||!!x[yn];x._isLeaving&&x[yn](!0),D.persisted&&!Q?j():E(x,()=>{j(),N&&N()})};V?V(x,j,q):q()}else o(x,g,m)},Te=(f,g,m,S=!1,b=!1)=>{const{type:x,props:O,ref:D,children:I,dynamicChildren:w,shapeFlag:A,patchFlag:E,dirs:V,cacheIndex:N,memo:j}=f;if(E===-2&&(b=!1),D!=null&&(ft(),ul(D,null,m,f,!0),pt()),N!=null&&(g.renderCache[N]=void 0),A&256){g.ctx.deactivate(f);return}const q=A&1&&V,Q=!dl(f);let ye;if(Q&&(ye=O&&O.onVnodeBeforeUnmount)&&ot(ye,g,f),A&6)At(f.component,m,S);else{if(A&128){f.suspense.unmount(m,S);return}q&&Mt(f,null,g,"beforeUnmount"),A&64?f.type.remove(f,g,m,Le,S):w&&!w.hasOnce&&(x!==Z||E>0&&E&64)?ze(w,g,m,!1,!0):(x===Z&&E&384||!b&&A&16)&&ze(I,g,m),S&&ht(f)}const ie=j!=null&&N==null;(Q&&(ye=O&&O.onVnodeUnmounted)||q||ie)&&Fe(()=>{ye&&ot(ye,g,f),q&&Mt(f,null,g,"unmounted"),ie&&(f.el=null)},m)},ht=f=>{const{type:g,el:m,anchor:S,transition:b}=f;if(g===Z){Ut(m,S);return}if(g===kn){F(f);return}const x=()=>{s(m),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(f.shapeFlag&1&&b&&!b.persisted){const{leave:O,delayLeave:D}=b,I=()=>O(m,x);D?D(f.el,x,I):I()}else x()},Ut=(f,g)=>{let m;for(;f!==g;)m=M(f),s(f),f=m;s(g)},At=(f,g,m)=>{const{bum:S,scope:b,job:x,subTree:O,um:D,m:I,a:w}=f;Fo(I),Fo(w),S&&Rl(S),b.stop(),x&&(x.flags|=8,Te(O,f,g,m)),D&&Fe(D,g),Fe(()=>{f.isUnmounted=!0},g)},ze=(f,g,m,S=!1,b=!1,x=0)=>{for(let O=x;O{if(f.shapeFlag&6)return te(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const g=M(f.anchor||f.el),m=g&&g[Ta];return m?M(m):g};let nt=!1;const ce=(f,g,m)=>{let S;f==null?g._vnode&&(Te(g._vnode,null,null,!0),S=g._vnode.component):W(g._vnode||null,f,g,null,null,null,m),g._vnode=f,nt||(nt=!0,To(S),Os(),nt=!1)},Le={p:W,um:Te,m:Ne,r:ht,mt:me,mc:Ae,pc:le,pbc:He,n:te,o:e};return{render:ce,hydrate:void 0,createApp:Xa(ce)}}function wn({type:e,props:t},l){return l==="svg"&&e==="foreignObject"||l==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:l}function $t({effect:e,job:t},l){l?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function vu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ei(e,t,l=!1){const o=e.children,s=t.children;if(J(o)&&J(s))for(let a=0;a>1,e[l[p]]0&&(t[o]=l[a-1]),l[a]=o)}}for(a=l.length,d=l[a-1];a-- >0;)l[a]=d,d=t[d];return l}function ti(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ti(t)}function Fo(e){if(e)for(let t=0;te.__isSuspense;function _u(e,t){t&&t.pendingBranch?J(e)?t.effects.push(...e):t.effects.push(e):Ca(e)}const Z=Symbol.for("v-fgt"),nn=Symbol.for("v-txt"),Ot=Symbol.for("v-cmt"),kn=Symbol.for("v-stc"),fl=[];let je=null;function k(e=!1){fl.push(je=e?null:[])}function hu(){fl.pop(),je=fl[fl.length-1]||null}let _l=1;function No(e,t=!1){_l+=e,e<0&&je&&t&&(je.hasOnce=!0)}function oi(e){return e.dynamicChildren=_l>0?je||qt:null,hu(),_l>0&&je&&je.push(e),e}function C(e,t,l,o,s,a){return oi(n(e,t,l,o,s,a,!0))}function mu(e,t,l,o,s){return oi(St(e,t,l,o,s,!0))}function si(e){return e?e.__v_isVNode===!0:!1}function nl(e,t){return e.type===t.type&&e.key===t.key}const ii=({key:e})=>e??null,$l=({ref:e,ref_key:t,ref_for:l})=>(typeof e=="number"&&(e=""+e),e!=null?xe(e)||Ue(e)||Y(e)?{i:Je,r:e,k:t,f:!!l}:e:null);function n(e,t=null,l=null,o=0,s=null,a=e===Z?0:1,d=!1,p=!1){const v={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ii(t),ref:t&&$l(t),scopeId:As,slotScopeIds:null,children:l,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:a,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Je};return p?(jl(v,l),a&128&&e.normalize(v)):l&&(v.shapeFlag|=xe(l)?8:16),_l>0&&!d&&je&&(v.patchFlag>0||a&6)&&v.patchFlag!==32&&je.push(v),v}const St=yu;function yu(e,t=null,l=null,o=0,s=null,a=!1){if((!e||e===Ha)&&(e=Ot),si(e)){const p=Xt(e,t,!0);return l&&jl(p,l),_l>0&&!a&&je&&(p.shapeFlag&6?je[je.indexOf(e)]=p:je.push(p)),p.patchFlag=-2,p}if(Ou(e)&&(e=e.__vccOpts),t){t=bu(t);let{class:p,style:v}=t;p&&!xe(p)&&(t.class=Xl(p)),ge(v)&&(Jn(v)&&!J(v)&&(v=Ie({},v)),t.style=Ln(v))}const d=xe(e)?1:ni(e)?128:Oa(e)?64:ge(e)?4:Y(e)?2:0;return n(e,t,l,o,s,d,a,!0)}function bu(e){return e?Jn(e)||Gs(e)?Ie({},e):e:null}function Xt(e,t,l=!1,o=!1){const{props:s,ref:a,patchFlag:d,children:p,transition:v}=e,h=t?ku(s||{},t):s,_={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&ii(h),ref:t&&t.ref?l&&a?J(a)?a.concat($l(t)):[a,$l(t)]:$l(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:p,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Z?d===-1?16:d|16:d,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:v,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Xt(e.ssContent),ssFallback:e.ssFallback&&Xt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return v&&o&&zn(_,v.clone(_)),_}function wu(e=" ",t=0){return St(nn,null,e,t)}function K(e="",t=!1){return t?(k(),mu(Ot,null,e)):St(Ot,null,e)}function at(e){return e==null||typeof e=="boolean"?St(Ot):J(e)?St(Z,null,e.slice()):si(e)?kt(e):St(nn,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Xt(e)}function jl(e,t){let l=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(J(t))l=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),jl(e,s()),s._c&&(s._d=!0));return}else{l=32;const s=t._;!s&&!Gs(t)?t._ctx=Je:s===3&&Je&&(Je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Y(t)){if(o&65){jl(e,{default:t});return}t={default:t,_ctx:Je},l=32}else t=String(t),o&64?(l=16,t=[wu(t)]):l=8;e.children=t,e.shapeFlag|=l}function ku(...e){const t={};for(let l=0;lVe||Je;let Wl,Rn;{const e=Ql(),t=(l,o)=>{let s;return(s=e[l])||(s=e[l]=[]),s.push(o),a=>{s.length>1?s.forEach(d=>d(a)):s[0](a)}};Wl=t("__VUE_INSTANCE_SETTERS__",l=>Ve=l),Rn=t("__VUE_SSR_SETTERS__",l=>hl=l)}const wl=e=>{const t=Ve;return Wl(e),e.scope.on(),()=>{e.scope.off(),Wl(t)}},jo=()=>{Ve&&Ve.scope.off(),Wl(null)};function ri(e){return e.vnode.shapeFlag&4}let hl=!1;function Du(e,t=!1,l=!1){t&&Rn(t);const{props:o,children:s}=e.vnode,a=ri(e);iu(e,o,a,t),du(e,s,l||t);const d=a?Eu(e,t):void 0;return t&&Rn(!1),d}function Eu(e,t){const l=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ka);const{setup:o}=l;if(o){ft();const s=e.setupContext=o.length>1?Tu(e):null,a=wl(e),d=bl(o,e,0,[e.props,s]),p=ss(d);if(pt(),a(),(p||e.sp)&&!dl(e)&&$s(e),p){if(d.then(jo,jo),t)return d.then(v=>{Wo(e,v)}).catch(v=>{en(v,e,0)});e.asyncDep=d}else Wo(e,d)}else ai(e)}function Wo(e,t,l){Y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Ds(t)),ai(e)}function ai(e,t,l){const o=e.type;e.render||(e.render=o.render||dt);{const s=wl(e);ft();try{qa(e)}finally{pt(),s()}}}const Iu={get(e,t){return Oe(e,"get",""),e[t]}};function Tu(e){const t=l=>{e.exposed=l||{}};return{attrs:new Proxy(e.attrs,Iu),slots:e.slots,emit:e.emit,expose:t}}function on(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ds(pa(e.exposed)),{get(t,l){if(l in t)return t[l];if(l in cl)return cl[l](e)},has(t,l){return l in t||l in cl}})):e.proxy}function Ou(e){return Y(e)&&"__vccOpts"in e}const It=(e,t)=>ya(e,t,hl),Uu="3.5.39";/** -* @vue/runtime-dom v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Mn;const Ho=typeof window<"u"&&window.trustedTypes;if(Ho)try{Mn=Ho.createPolicy("vue",{createHTML:e=>e})}catch{}const ui=Mn?e=>Mn.createHTML(e):e=>e,Au="http://www.w3.org/2000/svg",Ru="http://www.w3.org/1998/Math/MathML",wt=typeof document<"u"?document:null,Ko=wt&&wt.createElement("template"),Mu={insert:(e,t,l)=>{t.insertBefore(e,l||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,l,o)=>{const s=t==="svg"?wt.createElementNS(Au,e):t==="mathml"?wt.createElementNS(Ru,e):l?wt.createElement(e,{is:l}):wt.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>wt.createTextNode(e),createComment:e=>wt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,l,o,s,a){const d=l?l.previousSibling:t.lastChild;if(s&&(s===a||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),l),!(s===a||!(s=s.nextSibling)););else{Ko.innerHTML=ui(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const p=Ko.content;if(o==="svg"||o==="mathml"){const v=p.firstChild;for(;v.firstChild;)p.appendChild(v.firstChild);p.removeChild(v)}t.insertBefore(p,l)}return[d?d.nextSibling:t.firstChild,l?l.previousSibling:t.lastChild]}},$u=Symbol("_vtc");function Vu(e,t,l){const o=e[$u];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):l?e.setAttribute("class",t):e.className=t}const qo=Symbol("_vod"),Bu=Symbol("_vsh"),Lu=Symbol(""),Fu=/(?:^|;)\s*display\s*:/;function Nu(e,t,l){const o=e.style,s=xe(l);let a=!1;if(l&&!s){if(t)if(xe(t))for(const d of t.split(";")){const p=d.slice(0,d.indexOf(":")).trim();l[p]==null&&sl(o,p,"")}else for(const d in t)l[d]==null&&sl(o,d,"");for(const d in l){d==="display"&&(a=!0);const p=l[d];p!=null?Wu(e,d,!xe(t)&&t?t[d]:void 0,p)||sl(o,d,p):sl(o,d,"")}}else if(s){if(t!==l){const d=o[Lu];d&&(l+=";"+d),o.cssText=l,a=Fu.test(l)}}else t&&e.removeAttribute("style");qo in e&&(e[qo]=a?o.display:"",e[Bu]&&(o.display="none"))}const Jo=/\s*!important$/;function sl(e,t,l){if(J(l))l.forEach(o=>sl(e,t,o));else if(l==null&&(l=""),t.startsWith("--"))e.setProperty(t,l);else{const o=ju(e,t);Jo.test(l)?e.setProperty(Nt(o),l.replace(Jo,""),"important"):e[o]=l}}const Go=["Webkit","Moz","ms"],xn={};function ju(e,t){const l=xn[t];if(l)return l;let o=Qe(t);if(o!=="filter"&&o in e)return xn[t]=o;o=as(o);for(let s=0;sCn||(zu.then(()=>Cn=0),Cn=Date.now());function Qu(e,t){const l=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=l.attached)return;const s=l.value;if(J(s)){const a=o.stopImmediatePropagation;o.stopImmediatePropagation=()=>{a.call(o),o._stopped=!0};const d=s.slice(),p=[o];for(let v=0;ve.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Xu=(e,t,l,o,s,a)=>{const d=s==="svg";t==="class"?Vu(e,o,d):t==="style"?Nu(e,l,o):ql(t)?Jl(t)||Ku(e,t,l,o,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zu(e,t,o,d))?(Qo(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Yo(e,t,o,d,a,t!=="value")):e._isVueCE&&(ed(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!xe(o)))?Qo(e,Qe(t),o,a,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Yo(e,t,o,d))};function Zu(e,t,l,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Zo(t)&&Y(l));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 Zo(t)&&xe(l)?!1:t in e}function ed(e,t){const l=e._def.props;if(!l)return!1;const o=Qe(t);return Array.isArray(l)?l.some(s=>Qe(s)===o):Object.keys(l).some(s=>Qe(s)===o)}const Hl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return J(t)?l=>Rl(t,l):t};function td(e){e.target.composing=!0}function es(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Yt=Symbol("_assign");function ts(e,t,l){return t&&(e=e.trim()),l&&(e=Yl(e)),e}const R={created(e,{modifiers:{lazy:t,trim:l,number:o}},s){e[Yt]=Hl(s);const a=o||s.props&&s.props.type==="number";Bt(e,t?"change":"input",d=>{d.target.composing||e[Yt](ts(e.value,l,a))}),(l||a)&&Bt(e,"change",()=>{e.value=ts(e.value,l,a)}),t||(Bt(e,"compositionstart",td),Bt(e,"compositionend",es),Bt(e,"change",es))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:l,modifiers:{lazy:o,trim:s,number:a}},d){if(e[Yt]=Hl(d),e.composing)return;const p=(a||e.type==="number")&&!/^0\d/.test(e.value)?Yl(e.value):e.value,v=t??"";if(p===v)return;const h=e.getRootNode();(h instanceof Document||h instanceof ShadowRoot)&&h.activeElement===e&&e.type!=="range"&&(o&&t===l||s&&e.value.trim()===v)||(e.value=v)}},bt={deep:!0,created(e,{value:t,modifiers:{number:l}},o){const s=Gl(t);Bt(e,"change",()=>{const a=Array.prototype.filter.call(e.options,d=>d.selected).map(d=>l?Yl(Kl(d)):Kl(d));e[Yt](e.multiple?s?new Set(a):a:a[0]),e._assigning=!0,Is(()=>{e._assigning=!1})}),e[Yt]=Hl(o)},mounted(e,{value:t}){ls(e,t)},beforeUpdate(e,t,l){e[Yt]=Hl(l)},updated(e,{value:t}){e._assigning||ls(e,t)}};function ls(e,t){const l=e.multiple,o=J(t);if(!(l&&!o&&!Gl(t))){for(let s=0,a=e.options.length;sString(h)===String(p)):d.selected=qr(t,p)>-1}else d.selected=t.has(p);else if(yl(Kl(d),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!l&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Kl(e){return"_value"in e?e._value:e.value}const ld=Ie({patchProp:Xu},Mu);let ns;function nd(){return ns||(ns=fu(ld))}const od=((...e)=>{const t=nd().createApp(...e),{mount:l}=t;return t.mount=o=>{const s=id(o);if(!s)return;const a=t._component;!Y(a)&&!a.render&&!a.template&&(a.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const d=l(s,!1,sd(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),d},t});function sd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function id(e){return xe(e)?document.querySelector(e):e}const rd="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",P={uiBootstrap:"ui/bootstrap",uiActions:"ui/actions",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,profileArchive:e=>`profiles/${e}/archive`,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`,nodeMarkCompleted:e=>`nodes/${e}/mark-completed`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,reviewPolicy:"review/policy",reviewPolicyValidate:"review/policy/validate",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",settingsSnapshot:e=>`settings/snapshots/${e}`,settingsRollback:"settings/rollback",storageStatus:"storage/status",storageMigrate:"storage/migrate",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`,materialReRecognize:e=>`materials/${e}/re-recognize`,materialConfirm:e=>`materials/${e}/confirm`,assetImportPack:"assets/import-pack",wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItems:e=>`profiles/${e}/wardrobe/items`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/items/${t}`,wardrobeLegacyItem:(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",eventStream:"events/stream",webManifest:"web/manifest"};class ad extends Error{constructor(l,o,s={}){super(o);fn(this,"code");fn(this,"details");this.name="ApiClientError",this.code=l,this.details=s}}async function X(e,t){return it(e,{method:"GET",query:t})}async function z(e,t){return it(e,{method:"POST",body:t})}async function it(e,t={}){const o=await(await fetch(ud(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 ad(o.error_code,o.message,o.details);return o.data}function ud(e,t){const l=e.replace(/^\/+/,""),o=new URL(`${rd}/${l}`,window.location.origin);for(const[s,a]of Object.entries(t??{}))a!==void 0&&o.searchParams.set(s,String(a));return`${o.pathname}${o.search}`}const dd={class:"web-shell"},cd={class:"sidebar"},fd={class:"brand"},pd=["onClick"],vd={class:"workspace"},gd={class:"topbar"},_d={class:"actions"},hd=["disabled"],md={key:0,class:"notice error"},yd={key:1,class:"notice"},bd={key:0,class:"dashboard-grid"},wd={key:1,class:"list-view"},kd={class:"form-grid"},xd={class:"wide-field"},Cd=["disabled"],Sd=["disabled"],Pd={key:0},Dd={key:1,class:"form-grid"},Ed={class:"wide-field"},Id={class:"wide-field"},Td={class:"wide-field"},Od={class:"wide-field"},Ud={class:"wide-field"},Ad=["disabled"],Rd=["disabled"],Md={class:"inline-actions"},$d={class:"badge"},Vd=["disabled","onClick"],Bd=["disabled","onClick"],Ld={key:0,class:"empty"},Fd={key:2,class:"split-view"},Nd={class:"list-view"},jd={class:"form-grid"},Wd=["disabled"],Hd={class:"inline-actions"},Kd={class:"badge"},qd=["disabled","onClick"],Jd=["disabled","onClick"],Gd=["disabled","onClick"],zd=["disabled","onClick"],Yd={key:0,class:"empty"},Qd={key:0,class:"editor-panel"},Xd={class:"form-grid"},Zd=["disabled"],ec=["disabled","onClick"],tc={class:"list-view"},lc={class:"inline-actions"},nc=["disabled"],oc={class:"form-grid"},sc={class:"wide-field"},ic={class:"wide-field"},rc={class:"wide-field"},ac=["disabled"],uc=["disabled"],dc={class:"form-grid"},cc={class:"wide-field"},fc=["disabled"],pc=["disabled"],vc={class:"inline-actions"},gc={class:"badge"},_c=["disabled","onClick"],hc=["disabled","onClick"],mc=["disabled","onClick"],yc=["disabled","onClick"],bc={key:0,class:"empty"},wc=["src","alt"],kc={class:"inline-actions"},xc={key:0,class:"badge"},Cc=["disabled","onClick"],Sc=["disabled","onClick"],Pc=["disabled","onClick"],Dc=["disabled","onClick"],Ec=["disabled","onClick"],Ic=["disabled","onClick"],Tc={key:0,class:"empty"},Oc={key:0},Uc={key:1},Ac={class:"editor-panel"},Rc={key:0,class:"empty"},Mc={key:2,class:"editor-panel"},$c={class:"editor-panel"},Vc={class:"inline-actions"},Bc=["disabled"],Lc=["disabled"],Fc={key:0},Nc={key:1},jc={key:3},Wc={key:3,class:"split-view"},Hc={class:"list-view"},Kc={class:"form-grid"},qc=["disabled"],Jc=["disabled"],Gc={class:"inline-actions"},zc=["disabled","onClick"],Yc=["disabled","onClick"],Qc={key:0,class:"empty"},Xc={class:"list-view"},Zc={class:"inline-actions"},ef=["disabled"],tf={class:"form-grid"},lf={value:""},nf=["value"],of=["disabled"],sf=["disabled"],rf={class:"inline-actions"},af={class:"badge"},uf=["disabled","onClick"],df=["disabled","onClick"],cf=["disabled","onClick"],ff=["disabled","onClick"],pf={key:0,class:"empty"},vf={class:"form-grid"},gf={value:""},_f=["value"],hf=["disabled"],mf=["disabled"],yf={key:0},bf={key:4,class:"list-view"},wf=["disabled"],kf={class:"form-grid"},xf={value:""},Cf=["value"],Sf=["disabled"],Pf={class:"inline-actions"},Df=["disabled","onClick"],Ef={key:0,class:"empty"},If={key:0},Tf={class:"form-grid"},Of=["disabled"],Uf={key:1},Af={key:5,class:"list-view"},Rf={class:"inline-actions"},Mf=["disabled"],$f=["disabled"],Vf={class:"form-grid"},Bf={value:""},Lf=["value"],Ff={value:""},Nf=["value"],jf={value:""},Wf=["value"],Hf=["disabled"],Kf={class:"inline-actions"},qf={class:"badge"},Jf=["onClick"],Gf=["onClick"],zf=["disabled","onClick"],Yf={key:0,class:"empty"},Qf={key:0,class:"editor-panel"},Xf={key:6,class:"split-view"},Zf={class:"list-view"},ep={class:"inline-actions"},tp=["disabled"],lp=["disabled"],np={class:"form-grid"},op=["disabled"],sp={key:0},ip={class:"list-view"},rp={class:"inline-actions"},ap={class:"badge"},up=["disabled","onClick"],dp=["disabled","onClick"],cp=["disabled","onClick"],fp={key:0,class:"empty"},pp={key:7,class:"logs-view"},vp={class:"split-view"},gp={class:"list-view"},_p={class:"form-grid"},hp={value:""},mp=["value"],yp=["disabled"],bp={key:0,class:"empty"},wp={class:"list-view"},kp={class:"form-grid"},xp=["disabled"],Cp={class:"badge"},Sp={key:0,class:"empty"},Pp={class:"split-view"},Dp={class:"list-view"},Ep={class:"form-grid"},Ip=["disabled"],Tp={key:0,class:"empty"},Op={class:"list-view"},Up={class:"form-grid"},Ap=["disabled"],Rp={class:"badge"},Mp={key:0,class:"empty"},$p={class:"list-view"},Vp={class:"form-grid"},Bp=["disabled"],Lp={class:"badge"},Fp={key:0,class:"empty"},Np={key:0},jp={class:"list-view"},Wp={class:"form-grid"},Hp=["disabled"],Kp={key:0,class:"empty"},qp={key:0},Jp={class:"list-view"},Gp={class:"form-grid"},zp=["disabled"],Yp={key:0,class:"empty"},Qp={key:8,class:"settings-view"},Xp={class:"toolbar"},Zp=["disabled"],ev=["disabled"],tv=["disabled"],lv=["disabled"],nv=["disabled"],ov=["disabled"],sv=["disabled"],iv={class:"settings-sections"},rv={class:"editor-panel"},av={class:"editor-panel"},uv=["disabled"],dv={class:"editor-panel"},cv={class:"inline-actions"},fv=["disabled","onClick"],pv=["disabled","onClick"],vv={key:0,class:"editor-panel"},gv={class:"split-view"},_v={class:"list-view"},hv={class:"list-view"},mv={key:1,class:"editor-panel"},yv={class:"inspector"},bv={class:"inspector-form"},wv=["disabled"],kv={key:0},xv={class:"inspector-form"},Cv=["disabled"],Sv={key:1},Pv=Ua({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",generate:"生成",adopt:"采纳",select:"选择",unselect:"取选",recognize:"识别",reRecognize:"重新识别",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:"角色已更新",profileArchived:"角色已归档",emptyProfiles:"暂无角色",workflowList:"工作流列表",workflowType:"工作流类型",workflowCreated:"工作流已创建",emptyWorkflows:"暂无工作流",nodes:"节点",nodeKey:"NodeKey",nodeTitle:"节点标题",nodeType:"节点类型",status:"状态",nodeCreated:"节点已创建",nodeUpdated:"节点已更新",nodeQueued:"节点已重新入队",nodeCompleted:"节点已完成",images:"图片",branches:"分支",branchName:"分支名",switchBranch:"切换分支",history:"历史",review:"评审",reviewResult:"评审结果",reviewPolicy:"评审策略",loadPolicy:"加载策略",validatePolicy:"校验策略",policyDraftInvalid:"策略 JSON 格式无效",emptyImages:"暂无图片",emptyHistory:"暂无历史",modelRoute:"模型路由",idempotencyKey:"幂等键",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:"筛选",applyFilters:"应用筛选",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:"集成事件",eventStream:"事件流",ssePreview:"SSE Preview",auditLogs:"审计",targetType:"TargetType",actor:"操作人",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyEvents:"暂无事件",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",importSettings:"导入设置",importDone:"设置已导入",importDraftInvalid:"导入 JSON 格式无效",snapshots:"配置快照",loadSnapshots:"加载快照",loadSnapshot:"查看快照",snapshotPreview:"快照预览",rollback:"回滚",rollbackDone:"配置已回滚",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",storageMigrate:"迁移预检",overwriteRisk:"覆盖风险",assetImportPack:"资产包预检",manifest:"清单",manifestErrors:"清单错误",valid:"有效",invalid:"无效",packageUri:"包 URI",sourceUri:"源 URI",targetUri:"目标 URI",fileCount:"文件数",dryRun:"DryRun",running:"运行"},l=[{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=l.map(c=>c.key),s=$(vi()),a=$(null),d=$(null),p=$(null),v=$([]),h=$(null),_=$([]),y=$([]),M=$(null),L=$(null),ne=$(null),W=$(""),oe=$(""),ue=$([]),ee=$(null),de=$(null),F=$(null),be=$(null),we=$(null),Be=$(null),Ae=$([]),We=$(null),He=$([]),tt=$([]),vt=$([]),gt=$(null),me=$({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),lt=$([]),ke=$(null),se=$(null),le=$(null),De=$(null),_t=$(""),Ne=$(""),Te=$([]),ht=$(null),Ut=$(null),At=$(null),ze=$(null),te=$({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),nt=$(null),ce=$({profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}),Le=$({display_name:"",workflow_type:"single_image"}),Rt=$({branch_name:""}),f=$({node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}),g=$({model_route:"",prompt:"",negative_prompt:"",idempotency_key:""}),m=$({status:"",profile_id:"",workflow_id:""}),S=$({status:"",profile_id:"",workflow_id:"",node_id:""}),b=$({workflow_id:"",action:"",node_id:"",branch_name:""}),x=$({source:"",status:""}),O=$({integration_name:"",action:"",status:""}),D=$({integration_name:"",action:"",status:""}),I=$({event_type:""}),w=$({action:"",target_type:"",actor_id:""}),A=$({material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}),E=$({display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}),V=$({source_uri:"storage://images/sample.bin",target_uri:"storage://archives/sample.bin"}),N=$({package_uri:"storage://materials/pack"}),j=$({category_id:"",name:"",category_type:"material",sort_order:0}),q=$({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),Q=$({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),ye=$(null),ie=$({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),Re=$(null),G=$(""),mt=$(!0),U=$(""),Ce=$(""),Se=It(()=>{var c,u;return((u=(c=p.value)==null?void 0:c.items[0])==null?void 0:u.profile_id)??""}),Zt=It(()=>{var c,u;return((u=(c=p.value)==null?void 0:c.items[0])==null?void 0:u.name)??t.noProfile}),kl=It(()=>{var u;const c=(u=d.value)==null?void 0:u.queue;return c?c.pending+c.running+c.failed+c.dead_letter:0}),di=It(()=>{var c;return((c=We.value)==null?void 0:c.items.filter(u=>u.recognition_status!=="confirmed").length)??0}),ci=It(()=>{var c;return(((c=We.value)==null?void 0:c.items)??[]).filter(u=>u.recognition_status==="confirmed")}),fi=It(()=>{var c;return((c=h.value)==null?void 0:c.nodes.find(u=>u.node_id===oe.value))??null}),Xn=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],pi=It(()=>({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})[s.value]);Ls(sn);function vi(){const c=new URLSearchParams(window.location.search).get("view");return o.includes(c)?c:"dashboard"}async function sn(){var c,u;mt.value=!0,Ce.value="";try{const[H,re,Pe,qe,Cl,tl,Sl,Pl,Dl,El,Il,Tl]=await Promise.all([X(P.uiBootstrap),X(P.dashboardSummary),X(P.profiles,{page:1,page_size:20}),X(P.jobs,{page:1,page_size:20}),X(P.settingsSchema),X(P.settingsCurrent),X(P.storageStatus),X(P.materialCategories),X(P.materials,{page:1,page_size:24}),X(P.apiDiscoveryDialects),X(P.apiDiscoveryCapabilities),X(P.reviewPolicy)]);a.value=H,d.value=re,p.value=Pe,de.value=qe,be.value=Cl,we.value=tl,Wt(tl.config),Be.value=Sl,Ae.value=Pl,We.value=Dl,tt.value=El,vt.value=Il,lo(Tl),await xi((c=Pe.items[0])==null?void 0:c.profile_id),await Ci((u=Pe.items[0])==null?void 0:u.profile_id),await gi(),await Zn()}catch(H){Ce.value=H instanceof Error?H.message:t.loadFailed}finally{mt.value=!1}}async function gi(){const[c,u,H,re,Pe,qe]=await Promise.allSettled([X(P.generationLogs,Ye(S.value,12)),X(P.workflowLogs,Ye(b.value,12)),X(P.errorLogs,Ye(x.value,12)),X(P.integrationLogs,Ye(O.value,12)),X(P.integrationEventLogs,Ye(D.value,20)),X(P.auditLogs,{limit:12})]);me.value={generation:jt(c),workflows:jt(u),errors:jt(H),integrations:jt(re),audit:jt(qe)},lt.value=jt(Pe)}async function _i(){me.value.generation=await X(P.generationLogs,Ye(S.value,20))}async function hi(){me.value.workflows=await X(P.workflowLogs,Ye(b.value,20))}async function mi(){me.value.errors=await X(P.errorLogs,Ye(x.value,20))}async function yi(){me.value.integrations=await X(P.integrationLogs,Ye(O.value,20))}async function bi(){lt.value=await X(P.integrationEventLogs,Ye(D.value,20))}async function Zn(){ke.value=await X(P.eventStream,Ye(I.value,20))}async function wi(){me.value.audit=await X(P.auditLogs,{action:w.value.action||void 0,target_type:w.value.target_type||void 0,actor_id:w.value.actor_id||void 0,limit:20})}function jt(c){return c.status==="fulfilled"?c.value:[]}function Ye(c,u){const H={limit:u};for(const[re,Pe]of Object.entries(c)){const qe=Pe.trim();H[re]=qe||void 0}return H}async function ki(){de.value=await X(P.jobs,{status:m.value.status||void 0,profile_id:m.value.profile_id||void 0,workflow_id:m.value.workflow_id||void 0,page:1,page_size:20})}async function xi(c){if(!c){He.value=[];return}He.value=await X(P.wardrobe(c))}async function Ci(c){var re,Pe;if(!c){v.value=[],h.value=null,_.value=[],y.value=[],oe.value="",ue.value=[];return}v.value=await X(P.profileWorkflows(c));const u=(re=h.value)==null?void 0:re.workflow.workflow_id,H=v.value.some(qe=>qe.workflow_id===u)?u:(Pe=v.value[0])==null?void 0:Pe.workflow_id;H?await rn(H):h.value=null}async function rn(c){var Pe;const u=await X(P.workflow(c));h.value=u;const H=oe.value,re=u.nodes.some(qe=>qe.node_id===H)?H:u.workflow.current_node_id||((Pe=u.nodes[0])==null?void 0:Pe.node_id);re?await eo(re):(oe.value="",ue.value=[]),await Si(c)}async function eo(c){oe.value=c,ue.value=await X(P.nodeImages(c))}async function Si(c){const[u,H]=await Promise.all([X(P.workflowBranches(c)),X(P.workflowHistory(c))]);_.value=u,y.value=H}async function Ke(){var u;const c=(u=h.value)==null?void 0:u.workflow.workflow_id;c&&await rn(c)}async function B(c,u,H=!0){U.value=c,Ce.value="";try{const re=await u();G.value=`${c}${t.complete}`,c===t.exportSettings&&(G.value=`${t.exportDone}: ${!!re.redacted}`),H&&await sn()}catch(re){Ce.value=re instanceof Error?re.message:`${c}${t.failed}`}finally{U.value=""}}function Pi(c){return B(t.retry,()=>z(P.jobRetry(c)))}function Di(c){return B(t.cancel,()=>z(P.jobCancel(c)))}function Ei(c){return B(t.detail,async()=>(F.value=await X(P.job(c)),F.value),!1)}function Ii(){te.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},nt.value=null}function Ti(){return B(t.quickDraft,async()=>(nt.value=await z(P.quickProfileDraft,{questionnaire:{name:te.value.name,identity:te.value.identity,personality:Et(te.value.personality),hair_color:te.value.hair_color,hairstyle:te.value.hairstyle,eye_color:te.value.eye_color,style:te.value.style,clothing_keywords:Et(te.value.clothing_keywords)}}),nt.value),!1)}function Oi(){var u;const c=(u=nt.value)==null?void 0:u.profile_preview;return B(t.create,async()=>{const H=await z(P.profiles,{name:(c==null?void 0:c.name)||te.value.name,description:te.value.description,base_prompt:c==null?void 0:c.base_prompt,appearance_prompt:c==null?void 0:c.appearance_prompt,style_prompt:c==null?void 0:c.style_prompt,negative_prompt:c==null?void 0:c.negative_prompt});return Ii(),G.value=t.profileCreated,H})}function Ui(c){return B(t.archive,async()=>{const u=await z(P.profileArchive(c));return G.value=t.profileArchived,u})}function to(){ce.value={profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}}function Ai(c){ce.value={profile_id:c.profile_id,name:c.name,description:c.description??"",base_prompt:c.base_prompt??"",appearance_prompt:c.appearance_prompt??"",style_prompt:c.style_prompt??"",negative_prompt:c.negative_prompt??"",default_model_route:c.default_model_route??""}}function Ri(){return ce.value.profile_id?B(t.update,async()=>{const c=await it(P.profile(ce.value.profile_id),{method:"PUT",body:{name:ce.value.name,description:ce.value.description||void 0,base_prompt:ce.value.base_prompt||void 0,appearance_prompt:ce.value.appearance_prompt||void 0,style_prompt:ce.value.style_prompt||void 0,negative_prompt:ce.value.negative_prompt||void 0,default_model_route:ce.value.default_model_route||void 0}});return to(),G.value=t.profileUpdated,c}):Promise.resolve()}function Mi(){const c=Se.value;return c?B(t.create,async()=>{const u=await z(P.profileWorkflows(c),{display_name:Le.value.display_name,workflow_type:Le.value.workflow_type});return Le.value.display_name="",h.value=u,G.value=t.workflowCreated,u}):Promise.resolve()}function $i(c){return B(t.start,()=>z(P.workflowStart(c)))}function Vi(c){return B(t.cancel,()=>z(P.workflowCancel(c)))}function Bi(c){return B(t.archive,()=>z(P.workflowArchive(c)))}function Li(){var u;const c=(u=h.value)==null?void 0:u.workflow;return!c||!Rt.value.branch_name?Promise.resolve():B(t.branches,async()=>{const H=await z(P.workflowBranches(c.workflow_id),{branch_name:Rt.value.branch_name,base_branch_name:c.current_branch,base_node_id:oe.value||c.current_node_id,copy_nodes:!0});return Rt.value.branch_name="",await Ke(),G.value=t.branchCreated,H},!1)}function Fi(c){var H;const u=(H=h.value)==null?void 0:H.workflow.workflow_id;return u?B(t.switchBranch,async()=>{const re=await z(P.workflowSwitchBranch(u),{branch_name:c});return await Ke(),re},!1):Promise.resolve()}function an(){f.value={node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}}function Ni(c){f.value={node_id:c.node_id,node_key:c.node_key,title:c.title,description:c.description??"",node_type:c.node_type,status:c.status,prompt:c.prompt??"",negative_prompt:c.negative_prompt??"",model_route:c.model_route??""}}function ji(){var H;const c=(H=h.value)==null?void 0:H.workflow.workflow_id;if(!c||!f.value.node_key||!f.value.title)return Promise.resolve();const u={node_key:f.value.node_key,title:f.value.title,description:f.value.description||void 0,node_type:f.value.node_type||"generation",status:f.value.status||"pending",prompt:f.value.prompt||void 0,negative_prompt:f.value.negative_prompt||void 0,model_route:f.value.model_route||void 0};return f.value.node_id?B(t.update,async()=>{const re=await it(P.node(f.value.node_id),{method:"PUT",body:u});return an(),await Ke(),G.value=t.nodeUpdated,re},!1):B(t.create,async()=>{const re=await z(P.workflowNodes(c),u);return an(),await Ke(),G.value=t.nodeCreated,re},!1)}function Wi(){var u;const c=(u=h.value)==null?void 0:u.workflow.workflow_id;return c?B(t.review,async()=>(M.value=await X(P.workflowReview(c)),M.value),!1):Promise.resolve()}function Hi(){const c=oe.value;return c?B(t.review,async()=>(M.value=await X(P.nodeReview(c)),M.value),!1):Promise.resolve()}function lo(c){L.value=c,W.value=JSON.stringify(c,null,2)}function Ki(){return B(t.loadPolicy,async()=>{const c=await X(P.reviewPolicy);return lo(c),c},!1)}function qi(){let c;try{c=JSON.parse(W.value||"{}")}catch{return G.value=t.policyDraftInvalid,Promise.resolve()}return B(t.validatePolicy,async()=>(ne.value=await z(P.reviewPolicyValidate,c),ne.value),!1)}function Ji(){const c=oe.value;return c?B(t.generate,async()=>(ee.value=await z(P.nodeGenerate(c),{model_route:g.value.model_route||void 0,prompt:g.value.prompt||void 0,negative_prompt:g.value.negative_prompt||void 0,idempotency_key:g.value.idempotency_key||void 0}),await Ke(),G.value=t.generationQueued,ee.value),!1):Promise.resolve()}function Gi(c){return B(t.retry,async()=>{const u=await z(P.nodeRetry(c));return await Ke(),G.value=t.nodeQueued,u},!1)}function zi(c){return B(t.complete,async()=>{const u=await z(P.nodeMarkCompleted(c));return await Ke(),G.value=t.nodeCompleted,u},!1)}function Yi(c){const u=oe.value;return u?B(t.select,async()=>{const H=await z(P.nodeSelectImage(u),{image_id:c});return await Ke(),H},!1):Promise.resolve()}function Qi(c){const u=oe.value;return u?B(t.adopt,async()=>{var re;const H=await z(P.nodeAdoptImage(u),{image_id:c,title:(re=fi.value)==null?void 0:re.title});return await Ke(),H},!1):Promise.resolve()}function Xi(c){return B(t.unselect,async()=>{const u=await z(P.imageUnselect(c));return await Ke(),u},!1)}function Zi(c){return B(t.archive,async()=>{const u=await z(P.imageArchive(c));return await Ke(),G.value=t.imageArchived,u},!1)}function er(c){return B(t.delete,async()=>{const u=await it(P.image(c),{method:"DELETE"});return await Ke(),G.value=t.imageDeleted,u},!1)}function tr(){return B(t.moveFailed,()=>z(P.jobDeadLetterMoveFailed,{limit:20}))}function lr(){return B(t.retryDead,()=>z(P.jobDeadLetterRetry,{limit:20}))}function nr(){var u;const c=((u=tt.value[0])==null?void 0:u.dialect)??"unknown";return B(t.safeProbe,()=>z(P.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:c,capabilities:{supports:["text_to_image"]}}))}function or(){var u;const c=((u=tt.value[0])==null?void 0:u.dialect)??"unknown";return B(t.probeProvider,()=>z(P.apiDiscoveryProbeProvider,{provider_id:ie.value.provider_id||"local-preview",model_id:ie.value.model_id||"metadata-only",dialect:c,capabilities:{supports:Et(ie.value.required_capabilities)}}))}function sr(){return B(t.validatePlan,async()=>(Re.value=await z(P.apiDiscoveryValidateRenderPlan,{provider_id:ie.value.provider_id,model_id:ie.value.model_id,required_capabilities:Et(ie.value.required_capabilities)}),Re.value),!1)}function un(c,u){return B(t.discovery,()=>z(P.apiDiscoveryManualOverride,{provider_id:c.provider_id,model_id:c.model_id,dialect:c.dialect,status:u,capabilities:c.capabilities}))}function ir(){const c=Se.value;return c?B(t.matchWardrobe,async()=>(gt.value=await z(P.wardrobeMatch(c),{tags:["daily"]}),gt.value),!1):Promise.resolve()}function rr(){q.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function ar(){const c=Se.value;return c?B(t.importToWardrobe,async()=>{const u=await z(P.wardrobeItems(c),{material_id:q.value.material_id,wardrobe_category:q.value.wardrobe_category,tags:Et(q.value.tags),season:q.value.season||void 0,style:q.value.style||void 0});return rr(),G.value=t.wardrobeImported,u}):Promise.resolve()}function ur(c){const u=Se.value;return u?B(t.delete,async()=>{const H=await it(P.wardrobeItem(u,c),{method:"DELETE"});return G.value=t.wardrobeDeleted,H}):Promise.resolve()}function dr(){const c=Se.value;return c?B(t.dailyOutfit,async()=>(ye.value=await z(P.privateCompanionDailyOutfit,{profile_id:c,categories:Et(Q.value.categories),mood:Q.value.mood,weather:Q.value.weather,keywords:Et(Q.value.keywords),request_source:"astrbot_plugin_private_companion"}),G.value=t.outfitGenerated,ye.value),!1):Promise.resolve()}function cr(){return B(t.reload,async()=>{var u;const c=await z(P.settingsReload);return we.value={config_path:((u=we.value)==null?void 0:u.config_path)??"***PATH***",config:c.config},Wt(c.config),c},!1)}function fr(){return B(t.exportSettings,async()=>(Ut.value=await X(P.settingsExport),Ut.value),!1)}function Wt(c=(u=>(u=we.value)==null?void 0:u.config)()??{}){_t.value=JSON.stringify(c,null,2),At.value=null,ze.value=null}function dn(){try{const c=JSON.parse(_t.value);if(!c||Array.isArray(c)||typeof c!="object")throw new Error(t.settingsDraftInvalid);return c}catch(c){throw new Error(c instanceof Error?c.message:t.settingsDraftInvalid)}}function pr(){try{const c=JSON.parse(Ne.value);if(!c||Array.isArray(c)||typeof c!="object")throw new Error(t.importDraftInvalid);return c}catch(c){throw new Error(c instanceof Error?c.message:t.importDraftInvalid)}}function vr(){return B(t.validate,async()=>(At.value=await z(P.settingsValidate,{config:dn()}),At.value),!1)}function gr(){return B(t.diff,async()=>(ze.value=await z(P.settingsDiff,{config:dn()}),ze.value),!1)}function _r(){return B(t.save,async()=>{var u;const c=await z(P.settingsSave,{config:dn()});return we.value={config_path:((u=we.value)==null?void 0:u.config_path)??"***PATH***",config:c.config},Wt(c.config),G.value=t.settingsSaved,c},!1)}function hr(){return B(t.importSettings,async()=>{var u;const c=await z(P.settingsImport,{config:pr()});return we.value={config_path:((u=we.value)==null?void 0:u.config_path)??"***PATH***",config:c.config},Wt(c.config),Ne.value="",G.value=t.importDone,c},!1)}function no(){return B(t.loadSnapshots,async()=>(Te.value=await X(P.settingsSnapshots,{limit:20}),ht.value=Te.value[0]??null,Te.value),!1)}function mr(c){return B(t.loadSnapshot,async()=>(ht.value=await X(P.settingsSnapshot(c)),ht.value),!1)}function yr(c){return B(t.rollback,async()=>{var H;const u=await z(P.settingsRollback,{snapshot_id:c});return we.value={config_path:((H=we.value)==null?void 0:H.config_path)??"***PATH***",config:u.config},Wt(u.config),await no(),G.value=t.rollbackDone,u},!1)}function br(){var u,H;const c=(H=(u=We.value)==null?void 0:u.items.find(re=>{var Pe;return(Pe=re.image_uri)==null?void 0:Pe.startsWith("storage://")}))==null?void 0:H.image_uri;return c?B(t.signMaterial,async()=>(se.value=await X(P.mediaSign,{uri:c}),se.value),!1):(G.value=t.noSignableMaterial,Promise.resolve())}function wr(c){return c!=null&&c.startsWith("storage://")?B(t.signMaterial,async()=>(se.value=await X(P.mediaSign,{uri:c}),se.value),!1):(G.value=t.noSignableMaterial,Promise.resolve())}function xl(){j.value={category_id:"",name:"",category_type:"material",sort_order:0}}function kr(c){j.value={category_id:c.category_id,name:c.name,category_type:c.category_type,sort_order:c.sort_order}}function xr(){const c={name:j.value.name,category_type:j.value.category_type,sort_order:Number(j.value.sort_order)||0};return j.value.category_id?B(t.update,async()=>{const u=await it(P.materialCategory(j.value.category_id),{method:"PUT",body:c});return xl(),G.value=t.categoryUpdated,u}):B(t.create,async()=>{const u=await z(P.materialCategories,c);return xl(),G.value=t.categoryCreated,u})}function Cr(c){return B(t.delete,async()=>{const u=await it(P.materialCategory(c),{method:"DELETE"});return j.value.category_id===c&&xl(),G.value=t.categoryDeleted,u})}function cn(){A.value={material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}}function Sr(){const c={display_name:A.value.display_name,image_uri:A.value.image_uri||void 0,thumbnail_uri:A.value.image_uri||void 0,category_id:A.value.category_id||void 0,tags:Et(A.value.tags),prompt:A.value.prompt||void 0,negative_prompt:A.value.negative_prompt||void 0,recognition_status:A.value.image_uri?"pending_recognition":"pending_upload"};return A.value.material_id?B(t.update,async()=>{const u=await it(P.material(A.value.material_id),{method:"PUT",body:c});return cn(),G.value=t.materialUpdated,u}):B(t.create,async()=>{const u=await z(P.materials,c);return cn(),G.value=t.materialCreated,u})}function Pr(c){A.value={material_id:c.material_id,display_name:c.display_name,image_uri:c.image_uri??"",tags:c.tags.join(", "),category_id:c.category_id??"",prompt:c.prompt??"",negative_prompt:c.negative_prompt??""}}function oo(){E.value={display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}}function Dr(){return B(t.upload,async()=>{const c=await z(P.materialUpload,{display_name:E.value.display_name||void 0,filename:E.value.filename||void 0,content_type:E.value.content_type||void 0,image_uri:E.value.image_uri,category_id:E.value.category_id||void 0});return oo(),G.value=t.materialUploaded,c})}function Er(c){const u=c.recognition_status==="confirmed"?P.materialReRecognize(c.material_id):P.materialRecognize(c.material_id),H=c.recognition_status==="confirmed"?t.reRecognize:t.recognize;return B(H,()=>z(u))}function Ir(c){return B(t.confirm,()=>z(P.materialConfirm(c.material_id),{display_name:c.display_name,prompt:c.prompt,negative_prompt:c.negative_prompt,tags:c.tags}))}function Tr(c){return B(t.archive,async()=>{const u=await it(P.material(c),{method:"DELETE"});return G.value=t.materialArchived,u})}function Et(c){return c.split(",").map(u=>u.trim()).filter(Boolean)}function el(c=0){return c<1024?`${c} B`:c<1024*1024?`${(c/1024).toFixed(1)} KB`:c<1024*1024*1024?`${(c/1024/1024).toFixed(1)} MB`:`${(c/1024/1024/1024).toFixed(1)} GB`}function so(c){var u,H;return((H=(u=Be.value)==null?void 0:u.roots.find(re=>re.uri_prefix===c))==null?void 0:H.bytes)??0}function Or(){return B(t.storageMigrate,async()=>(le.value=await z(P.storageMigrate,{source_uri:V.value.source_uri,target_uri:V.value.target_uri,dry_run:!0}),le.value),!1)}function Ur(){return B(t.assetImportPack,async()=>(De.value=await z(P.assetImportPack,{package_uri:N.value.package_uri,dry_run:!0}),De.value),!1)}return(c,u)=>{var H,re,Pe,qe,Cl,tl,Sl,Pl,Dl,El,Il,Tl,io,ro,ao,uo,co,fo,po,vo,go,_o,ho,mo,yo,bo,wo,ko,xo,Co,So;return k(),C("main",dd,[n("aside",cd,[n("div",fd,[n("strong",null,r(((H=a.value)==null?void 0:H.display_name)??"ImageStudio"),1),n("span",null,r(((re=a.value)==null?void 0:re.dashboard_user)??"AstrBot"),1)]),n("nav",null,[(k(),C(Z,null,ve(l,i=>n("button",{key:i.key,type:"button",class:Xl({active:s.value===i.key}),onClick:ae=>s.value=i.key},r(i.label),11,pd)),64))])]),n("section",vd,[n("header",gd,[n("div",null,[n("h1",null,r(pi.value),1),n("p",null,r(((Pe=d.value)==null?void 0:Pe.plugin_status)??"loading")+" / "+r(G.value||t.waiting),1)]),n("div",_d,[n("button",{type:"button",disabled:!!U.value,onClick:sn},r(U.value||t.refresh),9,hd)])]),Ce.value?(k(),C("section",md,r(Ce.value),1)):mt.value?(k(),C("section",yd,r(t.loading),1)):(k(),C(Z,{key:2},[s.value==="dashboard"?(k(),C("section",bd,[n("article",null,[n("span",null,r(t.profiles),1),n("strong",null,r(((qe=d.value)==null?void 0:qe.active_profiles)??0),1)]),n("article",null,[n("span",null,r(t.jobs),1),n("strong",null,r(kl.value),1)]),n("article",null,[n("span",null,r(t.materials),1),n("strong",null,r(((Cl=We.value)==null?void 0:Cl.total)??0),1)]),n("article",null,[n("span",null,r(t.storage),1),n("strong",null,r(el(((tl=Be.value)==null?void 0:tl.total_bytes)??((Sl=d.value)==null?void 0:Sl.storage.total_bytes))),1)])])):K("",!0),s.value==="profiles"?(k(),C("section",wd,[n("header",null,[n("h2",null,r(t.profileList),1),n("span",null,r(((Pl=p.value)==null?void 0:Pl.total)??0),1)]),n("div",kd,[n("label",null,[n("span",null,r(t.name),1),T(n("input",{"onUpdate:modelValue":u[0]||(u[0]=i=>te.value.name=i),type:"text"},null,512),[[R,te.value.name]])]),n("label",null,[n("span",null,r(t.identity),1),T(n("input",{"onUpdate:modelValue":u[1]||(u[1]=i=>te.value.identity=i),type:"text"},null,512),[[R,te.value.identity]])]),n("label",null,[n("span",null,r(t.personality),1),T(n("input",{"onUpdate:modelValue":u[2]||(u[2]=i=>te.value.personality=i),type:"text",placeholder:"calm, brave"},null,512),[[R,te.value.personality]])]),n("label",null,[n("span",null,r(t.hairColor),1),T(n("input",{"onUpdate:modelValue":u[3]||(u[3]=i=>te.value.hair_color=i),type:"text"},null,512),[[R,te.value.hair_color]])]),n("label",null,[n("span",null,r(t.hairstyle),1),T(n("input",{"onUpdate:modelValue":u[4]||(u[4]=i=>te.value.hairstyle=i),type:"text"},null,512),[[R,te.value.hairstyle]])]),n("label",null,[n("span",null,r(t.eyeColor),1),T(n("input",{"onUpdate:modelValue":u[5]||(u[5]=i=>te.value.eye_color=i),type:"text"},null,512),[[R,te.value.eye_color]])]),n("label",null,[n("span",null,r(t.stylePrompt),1),T(n("input",{"onUpdate:modelValue":u[6]||(u[6]=i=>te.value.style=i),type:"text"},null,512),[[R,te.value.style]])]),n("label",null,[n("span",null,r(t.tags),1),T(n("input",{"onUpdate:modelValue":u[7]||(u[7]=i=>te.value.clothing_keywords=i),type:"text",placeholder:"white blouse, ribbon"},null,512),[[R,te.value.clothing_keywords]])]),n("label",xd,[n("span",null,r(t.description),1),T(n("input",{"onUpdate:modelValue":u[8]||(u[8]=i=>te.value.description=i),type:"text"},null,512),[[R,te.value.description]])]),n("button",{type:"button",disabled:!!U.value||!te.value.name,onClick:Ti},r(t.quickDraft),9,Cd),n("button",{type:"button",disabled:!!U.value||!te.value.name,onClick:Oi},r(t.create),9,Sd)]),nt.value?(k(),C("pre",Pd,r(JSON.stringify(nt.value,null,2)),1)):K("",!0),ce.value.profile_id?(k(),C("div",Dd,[n("label",null,[n("span",null,r(t.name),1),T(n("input",{"onUpdate:modelValue":u[9]||(u[9]=i=>ce.value.name=i),type:"text"},null,512),[[R,ce.value.name]])]),n("label",null,[n("span",null,r(t.provider),1),T(n("input",{"onUpdate:modelValue":u[10]||(u[10]=i=>ce.value.default_model_route=i),type:"text"},null,512),[[R,ce.value.default_model_route]])]),n("label",Ed,[n("span",null,r(t.description),1),T(n("input",{"onUpdate:modelValue":u[11]||(u[11]=i=>ce.value.description=i),type:"text"},null,512),[[R,ce.value.description]])]),n("label",Id,[n("span",null,r(t.basePrompt),1),T(n("input",{"onUpdate:modelValue":u[12]||(u[12]=i=>ce.value.base_prompt=i),type:"text"},null,512),[[R,ce.value.base_prompt]])]),n("label",Td,[n("span",null,r(t.appearancePrompt),1),T(n("input",{"onUpdate:modelValue":u[13]||(u[13]=i=>ce.value.appearance_prompt=i),type:"text"},null,512),[[R,ce.value.appearance_prompt]])]),n("label",Od,[n("span",null,r(t.stylePrompt),1),T(n("input",{"onUpdate:modelValue":u[14]||(u[14]=i=>ce.value.style_prompt=i),type:"text"},null,512),[[R,ce.value.style_prompt]])]),n("label",Ud,[n("span",null,r(t.negativePrompt),1),T(n("input",{"onUpdate:modelValue":u[15]||(u[15]=i=>ce.value.negative_prompt=i),type:"text"},null,512),[[R,ce.value.negative_prompt]])]),n("button",{type:"button",disabled:!!U.value||!ce.value.name,onClick:Ri},r(t.update),9,Ad),n("button",{type:"button",disabled:!!U.value,onClick:to},r(t.reset),9,Rd)])):K("",!0),n("ul",null,[(k(!0),C(Z,null,ve(((Dl=p.value)==null?void 0:Dl.items)??[],i=>(k(),C("li",{key:i.profile_id},[n("div",null,[n("strong",null,r(i.name),1),n("small",null,r(i.profile_id),1)]),n("div",Md,[n("span",$d,r(i.status),1),n("button",{type:"button",disabled:!!U.value,onClick:ae=>Ai(i)},r(t.edit),9,Vd),n("button",{type:"button",disabled:!!U.value,onClick:ae=>Ui(i.profile_id)},r(t.archive),9,Bd)])]))),128)),(El=p.value)!=null&&El.items.length?K("",!0):(k(),C("li",Ld,r(t.emptyProfiles),1))])])):K("",!0),s.value==="workflows"?(k(),C("section",Fd,[n("div",Nd,[n("header",null,[n("h2",null,r(Zt.value),1),n("span",null,r(v.value.length),1)]),n("div",jd,[n("label",null,[n("span",null,r(t.name),1),T(n("input",{"onUpdate:modelValue":u[16]||(u[16]=i=>Le.value.display_name=i),type:"text"},null,512),[[R,Le.value.display_name]])]),n("label",null,[n("span",null,r(t.workflowType),1),T(n("select",{"onUpdate:modelValue":u[17]||(u[17]=i=>Le.value.workflow_type=i)},[...u[87]||(u[87]=[n("option",{value:"single_image"},"single_image",-1),n("option",{value:"character_gradual"},"character_gradual",-1),n("option",{value:"character_fast"},"character_fast",-1),n("option",{value:"quick_profile"},"quick_profile",-1)])],512),[[bt,Le.value.workflow_type]])]),n("button",{type:"button",disabled:!!U.value||!Se.value||!Le.value.display_name,onClick:Mi},r(t.create),9,Wd)]),n("ul",null,[(k(!0),C(Z,null,ve(v.value,i=>(k(),C("li",{key:i.workflow_id},[n("div",null,[n("strong",null,r(i.display_name),1),n("small",null,r(i.workflow_type)+" / "+r(i.workflow_id),1)]),n("div",Hd,[n("span",Kd,r(i.status),1),n("button",{type:"button",disabled:!!U.value,onClick:ae=>rn(i.workflow_id)},r(t.nodes),9,qd),n("button",{type:"button",disabled:!!U.value,onClick:ae=>$i(i.workflow_id)},r(t.start),9,Jd),n("button",{type:"button",disabled:!!U.value,onClick:ae=>Vi(i.workflow_id)},r(t.cancel),9,Gd),n("button",{type:"button",disabled:!!U.value,onClick:ae=>Bi(i.workflow_id)},r(t.archive),9,zd)])]))),128)),v.value.length?K("",!0):(k(),C("li",Yd,r(t.emptyWorkflows),1))]),h.value?(k(),C("section",Qd,[n("header",null,[n("h2",null,r(t.branches),1),n("span",null,r(_.value.length),1)]),n("div",Xd,[n("label",null,[n("span",null,r(t.branchName),1),T(n("input",{"onUpdate:modelValue":u[18]||(u[18]=i=>Rt.value.branch_name=i),type:"text",placeholder:"alt_pose"},null,512),[[R,Rt.value.branch_name]])]),n("button",{type:"button",disabled:!!U.value||!Rt.value.branch_name,onClick:Li},r(t.create),9,Zd)]),n("ul",null,[(k(!0),C(Z,null,ve(_.value,i=>(k(),C("li",{key:i.branch_id},[n("div",null,[n("strong",null,r(i.branch_name),1),n("small",null,r(i.base_branch_name??"main")+" / "+r(i.status),1)]),n("button",{type:"button",disabled:!!U.value,onClick:ae=>Fi(i.branch_name)},r(t.switchBranch),9,ec)]))),128))])])):K("",!0)]),n("div",tc,[n("header",null,[n("h2",null,r(t.nodes),1),n("div",lc,[n("span",null,r(((Il=h.value)==null?void 0:Il.workflow.current_branch)??"main"),1),n("button",{type:"button",disabled:!!U.value||!h.value,onClick:Wi},r(t.review),9,nc)])]),n("div",oc,[n("label",null,[n("span",null,r(t.nodeKey),1),T(n("input",{"onUpdate:modelValue":u[19]||(u[19]=i=>f.value.node_key=i),type:"text"},null,512),[[R,f.value.node_key]])]),n("label",null,[n("span",null,r(t.nodeTitle),1),T(n("input",{"onUpdate:modelValue":u[20]||(u[20]=i=>f.value.title=i),type:"text"},null,512),[[R,f.value.title]])]),n("label",null,[n("span",null,r(t.nodeType),1),T(n("input",{"onUpdate:modelValue":u[21]||(u[21]=i=>f.value.node_type=i),type:"text"},null,512),[[R,f.value.node_type]])]),n("label",null,[n("span",null,r(t.status),1),T(n("input",{"onUpdate:modelValue":u[22]||(u[22]=i=>f.value.status=i),type:"text"},null,512),[[R,f.value.status]])]),n("label",sc,[n("span",null,r(t.description),1),T(n("input",{"onUpdate:modelValue":u[23]||(u[23]=i=>f.value.description=i),type:"text"},null,512),[[R,f.value.description]])]),n("label",ic,[n("span",null,r(t.prompt),1),T(n("input",{"onUpdate:modelValue":u[24]||(u[24]=i=>f.value.prompt=i),type:"text"},null,512),[[R,f.value.prompt]])]),n("label",rc,[n("span",null,r(t.negativePrompt),1),T(n("input",{"onUpdate:modelValue":u[25]||(u[25]=i=>f.value.negative_prompt=i),type:"text"},null,512),[[R,f.value.negative_prompt]])]),n("label",null,[n("span",null,r(t.modelRoute),1),T(n("input",{"onUpdate:modelValue":u[26]||(u[26]=i=>f.value.model_route=i),type:"text"},null,512),[[R,f.value.model_route]])]),n("button",{type:"button",disabled:!!U.value||!f.value.node_key||!f.value.title,onClick:ji},r(f.value.node_id?t.update:t.create),9,ac),n("button",{type:"button",disabled:!!U.value,onClick:an},r(t.reset),9,uc)]),n("div",dc,[n("label",null,[n("span",null,r(t.modelRoute),1),T(n("input",{"onUpdate:modelValue":u[27]||(u[27]=i=>g.value.model_route=i),type:"text",placeholder:"image_low"},null,512),[[R,g.value.model_route]])]),n("label",null,[n("span",null,r(t.idempotencyKey),1),T(n("input",{"onUpdate:modelValue":u[28]||(u[28]=i=>g.value.idempotency_key=i),type:"text",placeholder:"node-generate-001"},null,512),[[R,g.value.idempotency_key]])]),n("label",null,[n("span",null,r(t.prompt),1),T(n("input",{"onUpdate:modelValue":u[29]||(u[29]=i=>g.value.prompt=i),type:"text"},null,512),[[R,g.value.prompt]])]),n("label",cc,[n("span",null,r(t.negativePrompt),1),T(n("input",{"onUpdate:modelValue":u[30]||(u[30]=i=>g.value.negative_prompt=i),type:"text"},null,512),[[R,g.value.negative_prompt]])]),n("button",{type:"button",disabled:!!U.value||!oe.value,onClick:Ji},r(t.generate),9,fc),n("button",{type:"button",disabled:!!U.value||!oe.value,onClick:Hi},r(t.review),9,pc)]),n("ul",null,[(k(!0),C(Z,null,ve(((Tl=h.value)==null?void 0:Tl.nodes)??[],i=>(k(),C("li",{key:i.node_id},[n("div",null,[n("strong",null,r(i.title),1),n("small",null,r(i.node_key)+" / "+r(i.node_id),1)]),n("div",vc,[n("span",null,r(i.branch_name),1),n("span",gc,r(i.status),1),n("button",{type:"button",disabled:!!U.value,onClick:ae=>Ni(i)},r(t.edit),9,_c),n("button",{type:"button",disabled:!!U.value,onClick:ae=>Gi(i.node_id)},r(t.retry),9,hc),n("button",{type:"button",disabled:!!U.value,onClick:ae=>zi(i.node_id)},r(t.complete),9,mc),n("button",{type:"button",disabled:!!U.value,onClick:ae=>eo(i.node_id)},r(t.images),9,yc)])]))),128)),(io=h.value)!=null&&io.nodes.length?K("",!0):(k(),C("li",bc,r(t.emptyWorkflows),1))]),n("ul",null,[(k(!0),C(Z,null,ve(ue.value,i=>(k(),C("li",{key:i.image_id},[i.thumbnail_url||i.image_url?(k(),C("img",{key:0,class:"image-preview",src:i.thumbnail_url??i.image_url??"",alt:i.image_id,loading:"lazy"},null,8,wc)):K("",!0),n("div",null,[n("strong",null,r(i.image_id),1),n("small",null,r(i.thumbnail_uri??i.image_uri),1)]),n("div",kc,[i.is_selected?(k(),C("span",xc,r(t.select),1)):K("",!0),n("button",{type:"button",disabled:!!U.value||i.is_selected||i.is_archived,onClick:ae=>Yi(i.image_id)},r(t.select),9,Cc),n("button",{type:"button",disabled:!!U.value||i.is_archived,onClick:ae=>Qi(i.image_id)},r(t.adopt),9,Sc),n("button",{type:"button",disabled:!!U.value||!!(i.thumbnail_url||i.image_url)||!(i.thumbnail_uri??i.image_uri).startsWith("storage://"),onClick:ae=>wr(i.thumbnail_uri??i.image_uri)},r(t.signMaterial),9,Pc),n("button",{type:"button",disabled:!!U.value||!i.is_selected,onClick:ae=>Xi(i.image_id)},r(t.unselect),9,Dc),n("button",{type:"button",disabled:!!U.value||i.is_archived,onClick:ae=>Zi(i.image_id)},r(t.archive),9,Ec),n("button",{type:"button",disabled:!!U.value,onClick:ae=>er(i.image_id)},r(t.delete),9,Ic)])]))),128)),ue.value.length?K("",!0):(k(),C("li",Tc,r(t.emptyImages),1))]),se.value?(k(),C("pre",Oc,r(JSON.stringify(se.value,null,2)),1)):K("",!0),ee.value?(k(),C("pre",Uc,r(JSON.stringify(ee.value,null,2)),1)):K("",!0),n("section",Ac,[n("header",null,[n("h2",null,r(t.history),1),n("span",null,r(y.value.length),1)]),n("ul",null,[(k(!0),C(Z,null,ve(y.value,i=>(k(),C("li",{key:i.history_id},[n("div",null,[n("strong",null,r(i.action),1),n("small",null,r(i.title??i.node_id??i.workflow_id),1)]),n("span",null,r(i.branch_name),1)]))),128)),y.value.length?K("",!0):(k(),C("li",Rc,r(t.emptyHistory),1))])]),M.value?(k(),C("section",Mc,[n("header",null,[n("h2",null,r(t.reviewResult),1),n("span",null,r(M.value.passed?t.support:t.unsupported),1)]),n("pre",null,r(JSON.stringify(M.value,null,2)),1)])):K("",!0),n("section",$c,[n("header",null,[n("h2",null,r(t.reviewPolicy),1),n("div",Vc,[n("button",{type:"button",disabled:!!U.value,onClick:Ki},r(t.loadPolicy),9,Bc),n("button",{type:"button",disabled:!!U.value||!W.value,onClick:qi},r(t.validatePolicy),9,Lc)])]),T(n("textarea",{"onUpdate:modelValue":u[31]||(u[31]=i=>W.value=i),spellcheck:"false"},null,512),[[R,W.value]]),ne.value?(k(),C("pre",Fc,r(JSON.stringify(ne.value,null,2)),1)):L.value?(k(),C("pre",Nc,r(JSON.stringify(L.value,null,2)),1)):K("",!0)]),h.value?(k(),C("pre",jc,r(JSON.stringify(h.value.workflow,null,2)),1)):K("",!0)])])):K("",!0),s.value==="materials"?(k(),C("section",Wc,[n("div",Hc,[n("header",null,[n("h2",null,r(t.materialCategories),1),n("span",null,r(Ae.value.length),1)]),n("div",Kc,[n("label",null,[n("span",null,r(t.name),1),T(n("input",{"onUpdate:modelValue":u[32]||(u[32]=i=>j.value.name=i),type:"text"},null,512),[[R,j.value.name]])]),n("label",null,[n("span",null,r(t.categoryType),1),T(n("input",{"onUpdate:modelValue":u[33]||(u[33]=i=>j.value.category_type=i),type:"text"},null,512),[[R,j.value.category_type]])]),n("label",null,[n("span",null,r(t.sortOrder),1),T(n("input",{"onUpdate:modelValue":u[34]||(u[34]=i=>j.value.sort_order=i),type:"number"},null,512),[[R,j.value.sort_order,void 0,{number:!0}]])]),n("button",{type:"button",disabled:!!U.value||!j.value.name,onClick:xr},r(j.value.category_id?t.update:t.create),9,qc),n("button",{type:"button",disabled:!!U.value,onClick:xl},r(t.reset),9,Jc)]),n("ul",null,[(k(!0),C(Z,null,ve(Ae.value,i=>(k(),C("li",{key:i.category_id},[n("div",null,[n("strong",null,r(i.name),1),n("small",null,r(i.category_type),1)]),n("div",Gc,[n("span",null,r(i.sort_order),1),n("button",{type:"button",disabled:!!U.value,onClick:ae=>kr(i)},r(t.edit),9,zc),n("button",{type:"button",disabled:!!U.value,onClick:ae=>Cr(i.category_id)},r(t.delete),9,Yc)])]))),128)),Ae.value.length?K("",!0):(k(),C("li",Qc,r(t.emptyCategories),1))])]),n("div",Xc,[n("header",null,[n("h2",null,r(t.materialItems),1),n("div",Zc,[n("span",null,r(di.value)+" "+r(t.pendingConfirm),1),n("button",{type:"button",disabled:!!U.value,onClick:br},r(t.signFirstImage),9,ef)])]),n("div",tf,[n("label",null,[n("span",null,r(t.name),1),T(n("input",{"onUpdate:modelValue":u[35]||(u[35]=i=>A.value.display_name=i),type:"text"},null,512),[[R,A.value.display_name]])]),n("label",null,[n("span",null,r(t.imageUri),1),T(n("input",{"onUpdate:modelValue":u[36]||(u[36]=i=>A.value.image_uri=i),type:"text",placeholder:"storage://materials/example.png"},null,512),[[R,A.value.image_uri]])]),n("label",null,[n("span",null,r(t.category),1),T(n("select",{"onUpdate:modelValue":u[37]||(u[37]=i=>A.value.category_id=i)},[n("option",lf,r(t.allCategories),1),(k(!0),C(Z,null,ve(Ae.value,i=>(k(),C("option",{key:i.category_id,value:i.category_id},r(i.name),9,nf))),128))],512),[[bt,A.value.category_id]])]),n("label",null,[n("span",null,r(t.tags),1),T(n("input",{"onUpdate:modelValue":u[38]||(u[38]=i=>A.value.tags=i),type:"text",placeholder:"daily, top"},null,512),[[R,A.value.tags]])]),n("label",null,[n("span",null,r(t.prompt),1),T(n("input",{"onUpdate:modelValue":u[39]||(u[39]=i=>A.value.prompt=i),type:"text"},null,512),[[R,A.value.prompt]])]),n("label",null,[n("span",null,r(t.negativePrompt),1),T(n("input",{"onUpdate:modelValue":u[40]||(u[40]=i=>A.value.negative_prompt=i),type:"text"},null,512),[[R,A.value.negative_prompt]])]),n("button",{type:"button",disabled:!!U.value||!A.value.display_name,onClick:Sr},r(A.value.material_id?t.update:t.create),9,of),n("button",{type:"button",disabled:!!U.value,onClick:cn},r(t.reset),9,sf)]),n("ul",null,[(k(!0),C(Z,null,ve(((ro=We.value)==null?void 0:ro.items)??[],i=>(k(),C("li",{key:i.material_id},[n("div",null,[n("strong",null,r(i.display_name),1),n("small",null,r(i.image_uri??t.noImage),1)]),n("div",rf,[n("span",af,r(i.recognition_status),1),n("button",{type:"button",disabled:!!U.value,onClick:ae=>Pr(i)},r(t.edit),9,uf),n("button",{type:"button",disabled:!!U.value,onClick:ae=>Er(i)},r(i.recognition_status==="confirmed"?t.reRecognize:t.recognize),9,df),n("button",{type:"button",disabled:!!U.value||i.recognition_status==="confirmed",onClick:ae=>Ir(i)},r(t.confirm),9,cf),n("button",{type:"button",disabled:!!U.value,onClick:ae=>Tr(i.material_id)},r(t.archive),9,ff)])]))),128)),(ao=We.value)!=null&&ao.items.length?K("",!0):(k(),C("li",pf,r(t.emptyMaterials),1))]),n("div",vf,[n("label",null,[n("span",null,r(t.name),1),T(n("input",{"onUpdate:modelValue":u[41]||(u[41]=i=>E.value.display_name=i),type:"text"},null,512),[[R,E.value.display_name]])]),n("label",null,[n("span",null,r(t.filename),1),T(n("input",{"onUpdate:modelValue":u[42]||(u[42]=i=>E.value.filename=i),type:"text"},null,512),[[R,E.value.filename]])]),n("label",null,[n("span",null,r(t.contentType),1),T(n("input",{"onUpdate:modelValue":u[43]||(u[43]=i=>E.value.content_type=i),type:"text"},null,512),[[R,E.value.content_type]])]),n("label",null,[n("span",null,r(t.imageUri),1),T(n("input",{"onUpdate:modelValue":u[44]||(u[44]=i=>E.value.image_uri=i),type:"text",placeholder:"storage://materials/upload.png"},null,512),[[R,E.value.image_uri]])]),n("label",null,[n("span",null,r(t.category),1),T(n("select",{"onUpdate:modelValue":u[45]||(u[45]=i=>E.value.category_id=i)},[n("option",gf,r(t.allCategories),1),(k(!0),C(Z,null,ve(Ae.value,i=>(k(),C("option",{key:i.category_id,value:i.category_id},r(i.name),9,_f))),128))],512),[[bt,E.value.category_id]])]),n("button",{type:"button",disabled:!!U.value||!E.value.image_uri,onClick:Dr},r(t.upload),9,hf),n("button",{type:"button",disabled:!!U.value,onClick:oo},r(t.reset),9,mf)]),se.value?(k(),C("pre",yf,r(JSON.stringify(se.value,null,2)),1)):K("",!0)])])):K("",!0),s.value==="wardrobe"?(k(),C("section",bf,[n("header",null,[n("h2",null,r(Zt.value),1),n("button",{type:"button",disabled:!Se.value||!!U.value,onClick:ir},r(t.match),9,wf)]),n("div",kf,[n("label",null,[n("span",null,r(t.selectMaterial),1),T(n("select",{"onUpdate:modelValue":u[46]||(u[46]=i=>q.value.material_id=i)},[n("option",xf,r(t.selectMaterial),1),(k(!0),C(Z,null,ve(ci.value,i=>(k(),C("option",{key:i.material_id,value:i.material_id},r(i.display_name),9,Cf))),128))],512),[[bt,q.value.material_id]])]),n("label",null,[n("span",null,r(t.wardrobeCategory),1),T(n("input",{"onUpdate:modelValue":u[47]||(u[47]=i=>q.value.wardrobe_category=i),type:"text"},null,512),[[R,q.value.wardrobe_category]])]),n("label",null,[n("span",null,r(t.tags),1),T(n("input",{"onUpdate:modelValue":u[48]||(u[48]=i=>q.value.tags=i),type:"text",placeholder:"daily, top"},null,512),[[R,q.value.tags]])]),n("label",null,[n("span",null,r(t.season),1),T(n("input",{"onUpdate:modelValue":u[49]||(u[49]=i=>q.value.season=i),type:"text"},null,512),[[R,q.value.season]])]),n("label",null,[n("span",null,r(t.style),1),T(n("input",{"onUpdate:modelValue":u[50]||(u[50]=i=>q.value.style=i),type:"text"},null,512),[[R,q.value.style]])]),n("button",{type:"button",disabled:!!U.value||!Se.value||!q.value.material_id||!q.value.wardrobe_category,onClick:ar},r(t.importToWardrobe),9,Sf)]),n("ul",null,[(k(!0),C(Z,null,ve(He.value,i=>(k(),C("li",{key:i.wardrobe_item_id},[n("div",null,[n("strong",null,r(i.wardrobe_category),1),n("small",null,r(i.material_id)+" / "+r(i.tags.join(", ")||t.noTags),1)]),n("div",Pf,[n("span",null,r(i.usage_count),1),n("button",{type:"button",disabled:!!U.value,onClick:ae=>ur(i.wardrobe_item_id)},r(t.delete),9,Df)])]))),128)),He.value.length?K("",!0):(k(),C("li",Ef,r(t.emptyWardrobe),1))]),gt.value?(k(),C("pre",If,r(JSON.stringify(gt.value,null,2)),1)):K("",!0),n("div",Tf,[n("label",null,[n("span",null,r(t.categories),1),T(n("input",{"onUpdate:modelValue":u[51]||(u[51]=i=>Q.value.categories=i),type:"text"},null,512),[[R,Q.value.categories]])]),n("label",null,[n("span",null,r(t.mood),1),T(n("input",{"onUpdate:modelValue":u[52]||(u[52]=i=>Q.value.mood=i),type:"text"},null,512),[[R,Q.value.mood]])]),n("label",null,[n("span",null,r(t.weather),1),T(n("input",{"onUpdate:modelValue":u[53]||(u[53]=i=>Q.value.weather=i),type:"text"},null,512),[[R,Q.value.weather]])]),n("label",null,[n("span",null,r(t.keywords),1),T(n("input",{"onUpdate:modelValue":u[54]||(u[54]=i=>Q.value.keywords=i),type:"text"},null,512),[[R,Q.value.keywords]])]),n("button",{type:"button",disabled:!!U.value||!Se.value,onClick:dr},r(t.dailyOutfit),9,Of)]),ye.value?(k(),C("pre",Uf,r(JSON.stringify(ye.value,null,2)),1)):K("",!0)])):K("",!0),s.value==="jobs"?(k(),C("section",Af,[n("header",null,[n("h2",null,r(t.jobs),1),n("div",Rf,[n("button",{type:"button",disabled:!!U.value,onClick:tr},r(t.moveFailed),9,Mf),n("button",{type:"button",disabled:!!U.value,onClick:lr},r(t.retryDead),9,$f)])]),n("div",Vf,[n("label",null,[u[88]||(u[88]=n("span",null,"Status",-1)),T(n("select",{"onUpdate:modelValue":u[55]||(u[55]=i=>m.value.status=i)},[n("option",Bf,r(t.allStatuses),1),(k(),C(Z,null,ve(Xn,i=>n("option",{key:i,value:i},r(i),9,Lf)),64))],512),[[bt,m.value.status]])]),n("label",null,[n("span",null,r(t.profiles),1),T(n("select",{"onUpdate:modelValue":u[56]||(u[56]=i=>m.value.profile_id=i)},[n("option",Ff,r(t.allProfiles),1),(k(!0),C(Z,null,ve(((uo=p.value)==null?void 0:uo.items)??[],i=>(k(),C("option",{key:i.profile_id,value:i.profile_id},r(i.name),9,Nf))),128))],512),[[bt,m.value.profile_id]])]),n("label",null,[n("span",null,r(t.workflows),1),T(n("select",{"onUpdate:modelValue":u[57]||(u[57]=i=>m.value.workflow_id=i)},[n("option",jf,r(t.allWorkflows),1),(k(!0),C(Z,null,ve(v.value,i=>(k(),C("option",{key:i.workflow_id,value:i.workflow_id},r(i.display_name),9,Wf))),128))],512),[[bt,m.value.workflow_id]])]),n("button",{type:"button",disabled:!!U.value,onClick:ki},r(t.filter),9,Hf)]),n("ul",null,[(k(!0),C(Z,null,ve(((co=de.value)==null?void 0:co.items)??[],i=>(k(),C("li",{key:i.task_id},[n("div",null,[n("strong",null,r(i.task_id),1),n("small",null,r(i.task_type)+" / "+r(i.progress)+"%",1)]),n("div",Kf,[n("span",qf,r(i.status),1),["failed","dead_letter","cancelled"].includes(i.status)?(k(),C("button",{key:0,type:"button",onClick:ae=>Pi(i.task_id)},r(t.retry),9,Jf)):K("",!0),["completed","succeeded","cancelled"].includes(i.status)?K("",!0):(k(),C("button",{key:1,type:"button",onClick:ae=>Di(i.task_id)},r(t.cancel),9,Gf)),n("button",{type:"button",disabled:!!U.value,onClick:ae=>Ei(i.task_id)},r(t.detail),9,zf)])]))),128)),(fo=de.value)!=null&&fo.items.length?K("",!0):(k(),C("li",Yf,r(t.emptyJobs),1))]),F.value?(k(),C("section",Qf,[n("header",null,[n("h2",null,r(t.jobDetail),1),n("span",null,r(F.value.status),1)]),n("pre",null,r(JSON.stringify(F.value,null,2)),1)])):K("",!0)])):K("",!0),s.value==="discovery"?(k(),C("section",Xf,[n("div",Zf,[n("header",null,[n("h2",null,r(t.dialects),1),n("div",ep,[n("button",{type:"button",disabled:!!U.value,onClick:or},r(t.probeProvider),9,tp),n("button",{type:"button",disabled:!!U.value,onClick:nr},r(t.safeProbe),9,lp)])]),n("ul",null,[(k(!0),C(Z,null,ve(tt.value,i=>(k(),C("li",{key:i.dialect},[n("div",null,[n("strong",null,r(i.label),1),n("small",null,r(i.capabilities.join(", ")||t.unconfirmed),1)]),n("span",null,r(i.dialect),1)]))),128))]),n("div",np,[n("label",null,[n("span",null,r(t.provider),1),T(n("input",{"onUpdate:modelValue":u[58]||(u[58]=i=>ie.value.provider_id=i),type:"text",placeholder:"local-preview"},null,512),[[R,ie.value.provider_id]])]),n("label",null,[n("span",null,r(t.model),1),T(n("input",{"onUpdate:modelValue":u[59]||(u[59]=i=>ie.value.model_id=i),type:"text",placeholder:"metadata-only"},null,512),[[R,ie.value.model_id]])]),n("label",null,[n("span",null,r(t.requiredCapabilities),1),T(n("input",{"onUpdate:modelValue":u[60]||(u[60]=i=>ie.value.required_capabilities=i),type:"text",placeholder:"text_to_image"},null,512),[[R,ie.value.required_capabilities]])]),n("button",{type:"button",disabled:!!U.value||!ie.value.provider_id||!ie.value.model_id,onClick:sr},r(t.validatePlan),9,op)]),Re.value?(k(),C("pre",sp,r(JSON.stringify(Re.value,null,2)),1)):K("",!0)]),n("div",ip,[n("header",null,[n("h2",null,r(t.capabilityProfiles),1),n("span",null,r(vt.value.length),1)]),n("ul",null,[(k(!0),C(Z,null,ve(vt.value,i=>(k(),C("li",{key:i.capability_profile_id},[n("div",null,[n("strong",null,r(i.provider_id)+" / "+r(i.model_id),1),n("small",null,r(i.dialect),1)]),n("div",rp,[n("span",ap,r(i.status),1),n("button",{type:"button",disabled:!!U.value,onClick:ae=>un(i,"confirmed_supported")},r(t.support),9,up),n("button",{type:"button",disabled:!!U.value,onClick:ae=>un(i,"confirmed_unsupported")},r(t.unsupported),9,dp),n("button",{type:"button",disabled:!!U.value,onClick:ae=>un(i,"unconfirmed")},r(t.unconfirmed),9,cp)])]))),128)),vt.value.length?K("",!0):(k(),C("li",fp,r(t.emptyCapabilities),1))])])])):K("",!0),s.value==="logs"?(k(),C("section",pp,[n("div",vp,[n("div",gp,[n("header",null,[n("h2",null,r(t.generationLogs),1),n("span",null,r(me.value.generation.length),1)]),n("div",_p,[n("label",null,[n("span",null,r(t.status),1),T(n("select",{"onUpdate:modelValue":u[61]||(u[61]=i=>S.value.status=i)},[n("option",hp,r(t.allStatuses),1),(k(),C(Z,null,ve(Xn,i=>n("option",{key:`gen-${i}`,value:i},r(i),9,mp)),64))],512),[[bt,S.value.status]])]),n("label",null,[u[89]||(u[89]=n("span",null,"ProfileId",-1)),T(n("input",{"onUpdate:modelValue":u[62]||(u[62]=i=>S.value.profile_id=i),type:"text"},null,512),[[R,S.value.profile_id]])]),n("label",null,[u[90]||(u[90]=n("span",null,"WorkflowId",-1)),T(n("input",{"onUpdate:modelValue":u[63]||(u[63]=i=>S.value.workflow_id=i),type:"text"},null,512),[[R,S.value.workflow_id]])]),n("label",null,[u[91]||(u[91]=n("span",null,"NodeId",-1)),T(n("input",{"onUpdate:modelValue":u[64]||(u[64]=i=>S.value.node_id=i),type:"text"},null,512),[[R,S.value.node_id]])]),n("button",{type:"button",disabled:!!U.value,onClick:_i},r(t.applyFilters),9,yp)]),n("ul",null,[(k(!0),C(Z,null,ve(me.value.generation,i=>(k(),C("li",{key:i.task_id},[n("div",null,[n("strong",null,r(i.task_id),1),n("small",null,r(i.status)+" / "+r(i.progress)+"%",1)]),n("span",null,r(i.created_at),1)]))),128)),me.value.generation.length?K("",!0):(k(),C("li",bp,r(t.emptyGenerationLogs),1))])]),n("div",wp,[n("header",null,[n("h2",null,r(t.errorLogs),1),n("span",null,r(me.value.errors.length),1)]),n("div",kp,[n("label",null,[u[93]||(u[93]=n("span",null,"Source",-1)),T(n("select",{"onUpdate:modelValue":u[65]||(u[65]=i=>x.value.source=i)},[...u[92]||(u[92]=[n("option",{value:""},"All",-1),n("option",{value:"generation_task"},"generation_task",-1),n("option",{value:"integration"},"integration",-1)])],512),[[bt,x.value.source]])]),n("label",null,[n("span",null,r(t.status),1),T(n("input",{"onUpdate:modelValue":u[66]||(u[66]=i=>x.value.status=i),type:"text"},null,512),[[R,x.value.status]])]),n("button",{type:"button",disabled:!!U.value,onClick:mi},r(t.applyFilters),9,xp)]),n("ul",null,[(k(!0),C(Z,null,ve(me.value.errors,i=>(k(),C("li",{key:`${i.source}-${i.id}`},[n("div",null,[n("strong",null,r(i.source),1),n("small",null,r(i.error_message??t.noErrorDetail),1)]),n("span",Cp,r(i.status),1)]))),128)),me.value.errors.length?K("",!0):(k(),C("li",Sp,r(t.emptyErrors),1))])])]),n("div",Pp,[n("div",Dp,[n("header",null,[n("h2",null,r(t.workflowLogs),1),n("span",null,r(me.value.workflows.length),1)]),n("div",Ep,[n("label",null,[u[94]||(u[94]=n("span",null,"WorkflowId",-1)),T(n("input",{"onUpdate:modelValue":u[67]||(u[67]=i=>b.value.workflow_id=i),type:"text"},null,512),[[R,b.value.workflow_id]])]),n("label",null,[u[95]||(u[95]=n("span",null,"Action",-1)),T(n("input",{"onUpdate:modelValue":u[68]||(u[68]=i=>b.value.action=i),type:"text"},null,512),[[R,b.value.action]])]),n("label",null,[u[96]||(u[96]=n("span",null,"NodeId",-1)),T(n("input",{"onUpdate:modelValue":u[69]||(u[69]=i=>b.value.node_id=i),type:"text"},null,512),[[R,b.value.node_id]])]),n("label",null,[n("span",null,r(t.currentBranch),1),T(n("input",{"onUpdate:modelValue":u[70]||(u[70]=i=>b.value.branch_name=i),type:"text"},null,512),[[R,b.value.branch_name]])]),n("button",{type:"button",disabled:!!U.value,onClick:hi},r(t.applyFilters),9,Ip)]),n("ul",null,[(k(!0),C(Z,null,ve(me.value.workflows,i=>(k(),C("li",{key:i.history_id},[n("div",null,[n("strong",null,r(i.action),1),n("small",null,r(i.title??i.workflow_id),1)]),n("span",null,r(i.branch_name??"main"),1)]))),128)),me.value.workflows.length?K("",!0):(k(),C("li",Tp,r(t.emptyWorkflowLogs),1))])]),n("div",Op,[n("header",null,[n("h2",null,r(t.integrationLogs),1),n("span",null,r(me.value.integrations.length),1)]),n("div",Up,[n("label",null,[u[97]||(u[97]=n("span",null,"Integration",-1)),T(n("input",{"onUpdate:modelValue":u[71]||(u[71]=i=>O.value.integration_name=i),type:"text"},null,512),[[R,O.value.integration_name]])]),n("label",null,[u[98]||(u[98]=n("span",null,"Action",-1)),T(n("input",{"onUpdate:modelValue":u[72]||(u[72]=i=>O.value.action=i),type:"text"},null,512),[[R,O.value.action]])]),n("label",null,[n("span",null,r(t.status),1),T(n("input",{"onUpdate:modelValue":u[73]||(u[73]=i=>O.value.status=i),type:"text"},null,512),[[R,O.value.status]])]),n("button",{type:"button",disabled:!!U.value,onClick:yi},r(t.applyFilters),9,Ap)]),n("ul",null,[(k(!0),C(Z,null,ve(me.value.integrations,i=>(k(),C("li",{key:i.integration_log_id},[n("div",null,[n("strong",null,r(i.integration_name),1),n("small",null,r(i.action),1)]),n("span",Rp,r(i.status),1)]))),128)),me.value.integrations.length?K("",!0):(k(),C("li",Mp,r(t.emptyIntegrationLogs),1))])])]),n("div",$p,[n("header",null,[n("h2",null,r(t.integrationEvents),1),n("span",null,r(lt.value.length),1)]),n("div",Vp,[n("label",null,[u[99]||(u[99]=n("span",null,"Integration",-1)),T(n("input",{"onUpdate:modelValue":u[74]||(u[74]=i=>D.value.integration_name=i),type:"text"},null,512),[[R,D.value.integration_name]])]),n("label",null,[u[100]||(u[100]=n("span",null,"Action",-1)),T(n("input",{"onUpdate:modelValue":u[75]||(u[75]=i=>D.value.action=i),type:"text"},null,512),[[R,D.value.action]])]),n("label",null,[n("span",null,r(t.status),1),T(n("input",{"onUpdate:modelValue":u[76]||(u[76]=i=>D.value.status=i),type:"text"},null,512),[[R,D.value.status]])]),n("button",{type:"button",disabled:!!U.value,onClick:bi},r(t.applyFilters),9,Bp)]),n("ul",null,[(k(!0),C(Z,null,ve(lt.value,i=>(k(),C("li",{key:`event-${i.integration_log_id}`},[n("div",null,[n("strong",null,r(i.integration_name),1),n("small",null,r(i.action)+" / "+r(i.created_at),1)]),n("span",Lp,r(i.status),1)]))),128)),lt.value.length?K("",!0):(k(),C("li",Fp,r(t.emptyIntegrationLogs),1))]),lt.value.length?(k(),C("pre",Np,r(JSON.stringify(lt.value[0],null,2)),1)):K("",!0)]),n("div",jp,[n("header",null,[n("h2",null,r(t.eventStream),1),n("span",null,r(((po=ke.value)==null?void 0:po.count)??0),1)]),n("div",Wp,[n("label",null,[u[101]||(u[101]=n("span",null,"EventType",-1)),T(n("input",{"onUpdate:modelValue":u[77]||(u[77]=i=>I.value.event_type=i),type:"text"},null,512),[[R,I.value.event_type]])]),n("button",{type:"button",disabled:!!U.value,onClick:Zn},r(t.applyFilters),9,Hp)]),n("ul",null,[(k(!0),C(Z,null,ve(((vo=ke.value)==null?void 0:vo.events)??[],i=>(k(),C("li",{key:i.event_id},[n("div",null,[n("strong",null,r(i.event_type),1),n("small",null,r(i.event_id)+" / "+r(i.created_at),1)]),n("span",null,r(Object.keys(i.data).length),1)]))),128)),(go=ke.value)!=null&&go.events.length?K("",!0):(k(),C("li",Kp,r(t.emptyEvents),1))]),(_o=ke.value)!=null&&_o.body?(k(),C("pre",qp,r(ke.value.body),1)):K("",!0)]),n("div",Jp,[n("header",null,[n("h2",null,r(t.auditLogs),1),n("span",null,r(me.value.audit.length),1)]),n("div",Gp,[n("label",null,[u[102]||(u[102]=n("span",null,"Action",-1)),T(n("input",{"onUpdate:modelValue":u[78]||(u[78]=i=>w.value.action=i),type:"text"},null,512),[[R,w.value.action]])]),n("label",null,[n("span",null,r(t.targetType),1),T(n("input",{"onUpdate:modelValue":u[79]||(u[79]=i=>w.value.target_type=i),type:"text"},null,512),[[R,w.value.target_type]])]),n("label",null,[n("span",null,r(t.actor),1),T(n("input",{"onUpdate:modelValue":u[80]||(u[80]=i=>w.value.actor_id=i),type:"text"},null,512),[[R,w.value.actor_id]])]),n("button",{type:"button",disabled:!!U.value,onClick:wi},r(t.filter),9,zp)]),n("ul",null,[(k(!0),C(Z,null,ve(me.value.audit,i=>(k(),C("li",{key:i.audit_id},[n("div",null,[n("strong",null,r(i.action),1),n("small",null,r(i.actor_type)+" / "+r(i.target_type)+" / "+r(i.target_id),1)]),n("span",null,r(i.created_at),1)]))),128)),me.value.audit.length?K("",!0):(k(),C("li",Yp,r(t.emptyAuditLogs),1))])])])):K("",!0),s.value==="settings"?(k(),C("section",Qp,[n("div",Xp,[n("button",{type:"button",disabled:!!U.value,onClick:cr},r(t.reload),9,Zp),n("button",{type:"button",disabled:!!U.value,onClick:u[81]||(u[81]=i=>Wt())},r(t.reset),9,ev),n("button",{type:"button",disabled:!!U.value,onClick:vr},r(t.validate),9,tv),n("button",{type:"button",disabled:!!U.value,onClick:gr},r(t.diff),9,lv),n("button",{type:"button",disabled:!!U.value,onClick:_r},r(t.save),9,nv),n("button",{type:"button",disabled:!!U.value,onClick:fr},r(t.exportRedacted),9,ov),n("button",{type:"button",disabled:!!U.value,onClick:no},r(t.loadSnapshots),9,sv)]),n("div",iv,[(k(!0),C(Z,null,ve(((ho=be.value)==null?void 0:ho.sections)??[],i=>(k(),C("article",{key:i.key},[n("h2",null,r(i.title),1),n("span",null,r(i.fields.length),1)]))),128))]),n("section",rv,[n("header",null,[n("h2",null,r(t.settingsEditor),1),n("span",null,r(((mo=we.value)==null?void 0:mo.config_path)??"***PATH***"),1)]),T(n("textarea",{"onUpdate:modelValue":u[82]||(u[82]=i=>_t.value=i),spellcheck:"false"},null,512),[[R,_t.value]])]),n("section",av,[n("header",null,[n("h2",null,r(t.importSettings),1),n("button",{type:"button",disabled:!!U.value||!Ne.value,onClick:hr},r(t.importSettings),9,uv)]),T(n("textarea",{"onUpdate:modelValue":u[83]||(u[83]=i=>Ne.value=i),spellcheck:"false"},null,512),[[R,Ne.value]])]),n("section",dv,[n("header",null,[n("h2",null,r(t.snapshots),1),n("span",null,r(Te.value.length),1)]),n("ul",null,[(k(!0),C(Z,null,ve(Te.value,i=>(k(),C("li",{key:i.snapshot_id},[n("div",null,[n("strong",null,r(i.reason),1),n("small",null,r(i.snapshot_id)+" / "+r(i.created_at),1)]),n("div",cv,[n("button",{type:"button",disabled:!!U.value,onClick:ae=>mr(i.snapshot_id)},r(t.loadSnapshot),9,fv),n("button",{type:"button",disabled:!!U.value,onClick:ae=>yr(i.snapshot_id)},r(t.rollback),9,pv)])]))),128))])]),ht.value?(k(),C("section",vv,[n("header",null,[n("h2",null,r(t.snapshotPreview),1),n("span",null,r(ht.value.snapshot_id),1)]),n("pre",null,r(JSON.stringify(ht.value.config,null,2)),1)])):K("",!0),n("div",gv,[n("div",_v,[n("header",null,[n("h2",null,r(t.validationResult),1),n("span",null,r(((yo=At.value)==null?void 0:yo.valid)??"-"),1)]),n("pre",null,r(JSON.stringify(At.value??{},null,2)),1)]),n("div",hv,[n("header",null,[n("h2",null,r(t.diffResult),1),n("span",null,r(((bo=ze.value)==null?void 0:bo.changes.length)??0),1)]),n("pre",null,r(JSON.stringify(ze.value??{},null,2)),1)])]),Ut.value?(k(),C("section",mv,[n("header",null,[n("h2",null,r(t.exportSettings),1),n("span",null,r(Ut.value.redacted),1)]),n("pre",null,r(JSON.stringify(Ut.value.config,null,2)),1)])):K("",!0)])):K("",!0)],64))]),n("aside",yv,[n("h2",null,r(t.running),1),n("dl",null,[n("div",null,[u[103]||(u[103]=n("dt",null,"Pending",-1)),n("dd",null,r(((wo=d.value)==null?void 0:wo.queue.pending)??0),1)]),n("div",null,[u[104]||(u[104]=n("dt",null,"Running",-1)),n("dd",null,r(((ko=d.value)==null?void 0:ko.queue.running)??0),1)]),n("div",null,[u[105]||(u[105]=n("dt",null,"Failed",-1)),n("dd",null,r(((xo=d.value)==null?void 0:xo.queue.failed)??0),1)]),n("div",null,[u[106]||(u[106]=n("dt",null,"Dead",-1)),n("dd",null,r(((Co=d.value)==null?void 0:Co.queue.dead_letter)??0),1)])]),n("h2",null,r(t.storage),1),n("dl",null,[n("div",null,[u[107]||(u[107]=n("dt",null,"Images",-1)),n("dd",null,r(el(so("storage://images/"))),1)]),n("div",null,[u[108]||(u[108]=n("dt",null,"Materials",-1)),n("dd",null,r(el(so("storage://materials/"))),1)])]),n("h2",null,r(t.storageMigrate),1),n("div",bv,[n("label",null,[n("span",null,r(t.sourceUri),1),T(n("input",{"onUpdate:modelValue":u[84]||(u[84]=i=>V.value.source_uri=i),type:"text"},null,512),[[R,V.value.source_uri]])]),n("label",null,[n("span",null,r(t.targetUri),1),T(n("input",{"onUpdate:modelValue":u[85]||(u[85]=i=>V.value.target_uri=i),type:"text"},null,512),[[R,V.value.target_uri]])]),n("button",{type:"button",disabled:!!U.value||!V.value.source_uri||!V.value.target_uri,onClick:Or},r(t.storageMigrate),9,wv)]),le.value?(k(),C("dl",kv,[n("div",null,[n("dt",null,r(t.fileCount),1),n("dd",null,r(le.value.files),1)]),n("div",null,[n("dt",null,r(t.storage),1),n("dd",null,r(el(le.value.bytes)),1)]),n("div",null,[n("dt",null,r(t.dryRun),1),n("dd",null,r(le.value.dry_run),1)]),n("div",null,[n("dt",null,r(t.overwriteRisk),1),n("dd",null,r(le.value.will_overwrite?t.support:t.unsupported),1)])])):K("",!0),n("h2",null,r(t.assetImportPack),1),n("div",xv,[n("label",null,[n("span",null,r(t.packageUri),1),T(n("input",{"onUpdate:modelValue":u[86]||(u[86]=i=>N.value.package_uri=i),type:"text"},null,512),[[R,N.value.package_uri]])]),n("button",{type:"button",disabled:!!U.value||!N.value.package_uri,onClick:Ur},r(t.assetImportPack),9,Cv)]),De.value?(k(),C("dl",Sv,[n("div",null,[n("dt",null,r(t.fileCount),1),n("dd",null,r(De.value.files),1)]),n("div",null,[n("dt",null,r(t.storage),1),n("dd",null,r(el(De.value.bytes)),1)]),n("div",null,[u[109]||(u[109]=n("dt",null,"Manifest",-1)),n("dd",null,r(De.value.manifest.valid?t.valid:t.invalid),1)]),n("div",null,[n("dt",null,r(t.name),1),n("dd",null,r(De.value.manifest.name??"-"),1)]),n("div",null,[n("dt",null,r(t.materials),1),n("dd",null,r(De.value.manifest.materials),1)]),n("div",null,[n("dt",null,r(t.style),1),n("dd",null,r(De.value.manifest.styles),1)]),n("div",null,[n("dt",null,r(t.manifestErrors),1),n("dd",null,r(((So=De.value.manifest.errors[0])==null?void 0:So.code)??"0"),1)])])):K("",!0)])])}}}),Dv=(e,t)=>{const l=e.__vccOpts||e;for(const[o,s]of t)l[o]=s;return l},Ev=Dv(Pv,[["__scopeId","data-v-42c07cbf"]]);od(Ev).mount("#app"); diff --git a/web/index.html b/web/index.html index f4f04c7..3f1c19d 100644 --- a/web/index.html +++ b/web/index.html @@ -1,3 +1,3 @@ - - + +