From 92d056360e8783ab88c88e816bee54b6b7851ada Mon Sep 17 00:00:00 2001 From: YokiiroBW Date: Sun, 5 Jul 2026 14:19:47 +0800 Subject: [PATCH] feat: add material item editing controls --- frontend/standalone-web/src/App.vue | 66 +++++++++++++++++++++++++---- web/assets/index-BIieFzP4.css | 1 - web/assets/index-BL1Cf2kg.css | 1 + web/assets/index-CHyJF1hX.js | 17 -------- web/assets/index-CWrP2aiz.js | 17 ++++++++ web/index.html | 4 +- 6 files changed, 77 insertions(+), 29 deletions(-) delete mode 100644 web/assets/index-BIieFzP4.css create mode 100644 web/assets/index-BL1Cf2kg.css delete mode 100644 web/assets/index-CHyJF1hX.js create mode 100644 web/assets/index-CWrP2aiz.js diff --git a/frontend/standalone-web/src/App.vue b/frontend/standalone-web/src/App.vue index 224fdcf..995b0d2 100644 --- a/frontend/standalone-web/src/App.vue +++ b/frontend/standalone-web/src/App.vue @@ -75,6 +75,7 @@ const text = { category: "\u5206\u7c7b", allCategories: "\u5168\u90e8\u5206\u7c7b", materialCreated: "\u7d20\u6750\u5df2\u521b\u5efa", + materialUpdated: "\u7d20\u6750\u5df2\u66f4\u65b0", materialArchived: "\u7d20\u6750\u5df2\u5f52\u6863", importToWardrobe: "\u52a0\u5165\u8863\u6a71", delete: "\u5220\u9664", @@ -266,10 +267,13 @@ const jobFilters = ref({ workflow_id: "", }) const materialDraft = ref({ + material_id: "", display_name: "", image_uri: "", tags: "", category_id: "", + prompt: "", + negative_prompt: "", }) const categoryDraft = ref({ category_id: "", @@ -1082,25 +1086,45 @@ function deleteCategory(categoryId: string) { function resetMaterialDraft() { materialDraft.value = { + material_id: "", display_name: "", image_uri: "", tags: "", category_id: "", + prompt: "", + negative_prompt: "", } } function createMaterialDraft() { + const payload = { + display_name: materialDraft.value.display_name, + image_uri: materialDraft.value.image_uri || undefined, + thumbnail_uri: materialDraft.value.image_uri || undefined, + category_id: materialDraft.value.category_id || undefined, + tags: splitCsv(materialDraft.value.tags), + prompt: materialDraft.value.prompt || undefined, + negative_prompt: materialDraft.value.negative_prompt || undefined, + recognition_status: materialDraft.value.image_uri ? "pending_recognition" : "pending_upload", + } + if (materialDraft.value.material_id) { + return runOperation( + text.update, + async () => { + const material = await request(endpoints.material(materialDraft.value.material_id), { + method: "PUT", + body: payload, + }) + resetMaterialDraft() + lastOperation.value = text.materialUpdated + return material + }, + ) + } return runOperation( text.create, async () => { - const material = await postJson(endpoints.materials, { - display_name: materialDraft.value.display_name, - image_uri: materialDraft.value.image_uri || undefined, - thumbnail_uri: materialDraft.value.image_uri || undefined, - category_id: materialDraft.value.category_id || undefined, - tags: splitCsv(materialDraft.value.tags), - recognition_status: materialDraft.value.image_uri ? "pending_recognition" : "pending_upload", - }) + const material = await postJson(endpoints.materials, payload) resetMaterialDraft() lastOperation.value = text.materialCreated return material @@ -1108,6 +1132,18 @@ function createMaterialDraft() { ) } +function editMaterialDraft(material: Material) { + materialDraft.value = { + material_id: material.material_id, + display_name: material.display_name, + image_uri: material.image_uri ?? "", + tags: material.tags.join(", "), + category_id: material.category_id ?? "", + prompt: material.prompt ?? "", + negative_prompt: material.negative_prompt ?? "", + } +} + function recognizeMaterial(materialId: string) { return runOperation(text.recognize, () => postJson(endpoints.materialRecognize(materialId))) } @@ -1555,9 +1591,18 @@ function storageRootBytes(uriPrefix: string) { {{ text.tags }} + + +
  • @@ -1567,6 +1612,9 @@ function storageRootBytes(uriPrefix: string) {
    {{ material.recognition_status }} + diff --git a/web/assets/index-BIieFzP4.css b/web/assets/index-BIieFzP4.css deleted file mode 100644 index 76ffc6c..0000000 --- a/web/assets/index-BIieFzP4.css +++ /dev/null @@ -1 +0,0 @@ -.web-shell[data-v-5cb4da0d]{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-5cb4da0d],.inspector[data-v-5cb4da0d]{background:#fff}.sidebar[data-v-5cb4da0d]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-5cb4da0d]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-5cb4da0d]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-5cb4da0d]{font-size:19px}.brand span[data-v-5cb4da0d],p[data-v-5cb4da0d],dt[data-v-5cb4da0d],.empty[data-v-5cb4da0d],small[data-v-5cb4da0d]{color:#667085}nav[data-v-5cb4da0d]{display:grid;gap:6px}button[data-v-5cb4da0d]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-5cb4da0d]:disabled{cursor:wait;opacity:.62}nav button[data-v-5cb4da0d]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-5cb4da0d]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-5cb4da0d]{min-width:0;padding:24px}.topbar[data-v-5cb4da0d],.list-view header[data-v-5cb4da0d],.toolbar[data-v-5cb4da0d],.inline-actions[data-v-5cb4da0d]{display:flex;gap:12px;align-items:center}.topbar[data-v-5cb4da0d],.list-view header[data-v-5cb4da0d]{justify-content:space-between}.actions[data-v-5cb4da0d],.inline-actions[data-v-5cb4da0d]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-5cb4da0d],.toolbar button[data-v-5cb4da0d],.list-view header button[data-v-5cb4da0d],.inline-actions button[data-v-5cb4da0d]{padding:0 14px}h1[data-v-5cb4da0d],h2[data-v-5cb4da0d],p[data-v-5cb4da0d],dl[data-v-5cb4da0d],dd[data-v-5cb4da0d]{margin:0}h1[data-v-5cb4da0d]{min-height:30px;font-size:26px}h2[data-v-5cb4da0d]{font-size:15px}.notice[data-v-5cb4da0d],article[data-v-5cb4da0d],.list-view[data-v-5cb4da0d],.editor-panel[data-v-5cb4da0d],pre[data-v-5cb4da0d]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-5cb4da0d]{margin-top:18px;padding:14px}.error[data-v-5cb4da0d]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-5cb4da0d],.split-view[data-v-5cb4da0d]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-5cb4da0d]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-5cb4da0d]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-5cb4da0d]{display:grid;gap:8px;padding:16px}article span[data-v-5cb4da0d]{color:#667085;font-size:13px}article strong[data-v-5cb4da0d]{font-size:24px}.list-view[data-v-5cb4da0d],.logs-view[data-v-5cb4da0d],.settings-view[data-v-5cb4da0d]{margin-top:18px}.split-view .list-view[data-v-5cb4da0d],.logs-view .list-view[data-v-5cb4da0d]{margin-top:0}.list-view[data-v-5cb4da0d]{padding:16px}.editor-panel[data-v-5cb4da0d]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-5cb4da0d]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-5cb4da0d]{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-5cb4da0d]{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-5cb4da0d]{display:grid;gap:5px;min-width:0}label span[data-v-5cb4da0d]{color:#667085;font-size:12px}.wide-field[data-v-5cb4da0d]{grid-column:1 / -1}input[data-v-5cb4da0d],select[data-v-5cb4da0d]{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-5cb4da0d]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-5cb4da0d]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-5cb4da0d]:first-child{border-top:0}li>div[data-v-5cb4da0d]{display:grid;gap:3px;min-width:0}li strong[data-v-5cb4da0d],li span[data-v-5cb4da0d],li small[data-v-5cb4da0d]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-5cb4da0d]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-5cb4da0d]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-5cb4da0d]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-5cb4da0d]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-5cb4da0d]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-5cb4da0d]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-5cb4da0d]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-5cb4da0d]{display:none}}@media(max-width:820px){.web-shell[data-v-5cb4da0d]{grid-template-columns:1fr}.sidebar[data-v-5cb4da0d]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-5cb4da0d]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-5cb4da0d]{text-align:center}.dashboard-grid[data-v-5cb4da0d],.split-view[data-v-5cb4da0d],.settings-sections[data-v-5cb4da0d]{grid-template-columns:1fr}.topbar[data-v-5cb4da0d],.list-view header[data-v-5cb4da0d]{align-items:flex-start;flex-direction:column}} diff --git a/web/assets/index-BL1Cf2kg.css b/web/assets/index-BL1Cf2kg.css new file mode 100644 index 0000000..2794f73 --- /dev/null +++ b/web/assets/index-BL1Cf2kg.css @@ -0,0 +1 @@ +.web-shell[data-v-1cf95bf9]{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-1cf95bf9],.inspector[data-v-1cf95bf9]{background:#fff}.sidebar[data-v-1cf95bf9]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-1cf95bf9]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-1cf95bf9]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-1cf95bf9]{font-size:19px}.brand span[data-v-1cf95bf9],p[data-v-1cf95bf9],dt[data-v-1cf95bf9],.empty[data-v-1cf95bf9],small[data-v-1cf95bf9]{color:#667085}nav[data-v-1cf95bf9]{display:grid;gap:6px}button[data-v-1cf95bf9]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-1cf95bf9]:disabled{cursor:wait;opacity:.62}nav button[data-v-1cf95bf9]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-1cf95bf9]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-1cf95bf9]{min-width:0;padding:24px}.topbar[data-v-1cf95bf9],.list-view header[data-v-1cf95bf9],.toolbar[data-v-1cf95bf9],.inline-actions[data-v-1cf95bf9]{display:flex;gap:12px;align-items:center}.topbar[data-v-1cf95bf9],.list-view header[data-v-1cf95bf9]{justify-content:space-between}.actions[data-v-1cf95bf9],.inline-actions[data-v-1cf95bf9]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-1cf95bf9],.toolbar button[data-v-1cf95bf9],.list-view header button[data-v-1cf95bf9],.inline-actions button[data-v-1cf95bf9]{padding:0 14px}h1[data-v-1cf95bf9],h2[data-v-1cf95bf9],p[data-v-1cf95bf9],dl[data-v-1cf95bf9],dd[data-v-1cf95bf9]{margin:0}h1[data-v-1cf95bf9]{min-height:30px;font-size:26px}h2[data-v-1cf95bf9]{font-size:15px}.notice[data-v-1cf95bf9],article[data-v-1cf95bf9],.list-view[data-v-1cf95bf9],.editor-panel[data-v-1cf95bf9],pre[data-v-1cf95bf9]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-1cf95bf9]{margin-top:18px;padding:14px}.error[data-v-1cf95bf9]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-1cf95bf9],.split-view[data-v-1cf95bf9]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-1cf95bf9]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-1cf95bf9]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-1cf95bf9]{display:grid;gap:8px;padding:16px}article span[data-v-1cf95bf9]{color:#667085;font-size:13px}article strong[data-v-1cf95bf9]{font-size:24px}.list-view[data-v-1cf95bf9],.logs-view[data-v-1cf95bf9],.settings-view[data-v-1cf95bf9]{margin-top:18px}.split-view .list-view[data-v-1cf95bf9],.logs-view .list-view[data-v-1cf95bf9]{margin-top:0}.list-view[data-v-1cf95bf9]{padding:16px}.editor-panel[data-v-1cf95bf9]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-1cf95bf9]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-1cf95bf9]{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-1cf95bf9]{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-1cf95bf9]{display:grid;gap:5px;min-width:0}label span[data-v-1cf95bf9]{color:#667085;font-size:12px}.wide-field[data-v-1cf95bf9]{grid-column:1 / -1}input[data-v-1cf95bf9],select[data-v-1cf95bf9]{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-1cf95bf9]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-1cf95bf9]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-1cf95bf9]:first-child{border-top:0}li>div[data-v-1cf95bf9]{display:grid;gap:3px;min-width:0}li strong[data-v-1cf95bf9],li span[data-v-1cf95bf9],li small[data-v-1cf95bf9]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-1cf95bf9]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-1cf95bf9]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-1cf95bf9]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-1cf95bf9]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-1cf95bf9]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-1cf95bf9]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-1cf95bf9]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-1cf95bf9]{display:none}}@media(max-width:820px){.web-shell[data-v-1cf95bf9]{grid-template-columns:1fr}.sidebar[data-v-1cf95bf9]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-1cf95bf9]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-1cf95bf9]{text-align:center}.dashboard-grid[data-v-1cf95bf9],.split-view[data-v-1cf95bf9],.settings-sections[data-v-1cf95bf9]{grid-template-columns:1fr}.topbar[data-v-1cf95bf9],.list-view header[data-v-1cf95bf9]{align-items:flex-start;flex-direction:column}} diff --git a/web/assets/index-CHyJF1hX.js b/web/assets/index-CHyJF1hX.js deleted file mode 100644 index 5b3e075..0000000 --- a/web/assets/index-CHyJF1hX.js +++ /dev/null @@ -1,17 +0,0 @@ -var Ti=Object.defineProperty;var Oi=(e,t,n)=>t in e?Ti(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ll=(e,t,n)=>Oi(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&l(r)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function l(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();/** -* @vue/shared v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function El(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const de={},Nt=[],ot=()=>{},Ls=()=>!1,jn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Un=e=>e.startsWith("onUpdate:"),Ee=Object.assign,Dl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ii=Object.prototype.hasOwnProperty,se=(e,t)=>Ii.call(e,t),U=Array.isArray,jt=e=>fn(e)==="[object Map]",Hn=e=>fn(e)==="[object Set]",os=e=>fn(e)==="[object Date]",W=e=>typeof e=="function",we=e=>typeof e=="string",it=e=>typeof e=="symbol",re=e=>e!==null&&typeof e=="object",Fs=e=>(re(e)||W(e))&&W(e.then)&&W(e.catch),Vs=Object.prototype.toString,fn=e=>Vs.call(e),Ai=e=>fn(e).slice(8,-1),Ns=e=>fn(e)==="[object Object]",Tl=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zt=El(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Mi=/-\w/g,Je=Wn(e=>e.replace(Mi,t=>t.slice(1).toUpperCase())),Ri=/\B([A-Z])/g,Bt=Wn(e=>e.replace(Ri,"-$1").toLowerCase()),js=Wn(e=>e.charAt(0).toUpperCase()+e.slice(1)),sl=Wn(e=>e?`on${js(e)}`:""),st=(e,t)=>!Object.is(e,t),Tn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},Kn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let is;const qn=()=>is||(is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ol(e){if(U(e)){const t={};for(let n=0;n{if(n){const l=n.split(Bi);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function Jn(e){let t="";if(we(e))t=e;else if(U(e))for(let n=0;npn(n,t))}const Ws=e=>!!(e&&e.__v_isRef===!0),u=e=>we(e)?e:e==null?"":U(e)||re(e)&&(e.toString===Vs||!W(e.toString))?Ws(e)?u(e.value):JSON.stringify(e,Ks,2):String(e),Ks=(e,t)=>Ws(t)?Ks(e,t.value):jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,s],i)=>(n[ol(l,i)+" =>"]=s,n),{})}:Hn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ol(n))}:it(t)?ol(t):re(t)&&!U(t)&&!Ns(t)?String(t):t,ol=(e,t="")=>{var n;return it(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Pe;class Hi{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Pe&&(Pe.active?(this.parent=Pe,this.index=(Pe.scopes||(Pe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(Pe===this)Pe=this.prevScope;else{let t=Pe;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n0)return;if(tn){let t=tn;for(tn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;en;){let t=en;for(en=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function zs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ys(e){let t,n=e.depsTail,l=n;for(;l;){const s=l.prevDep;l.version===-1?(l===n&&(n=s),Ml(l),Ki(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=s}e.deps=t,e.depsTail=n}function vl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Qs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Qs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===rn)||(e.globalVersion=rn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!vl(e))))return;e.flags|=2;const t=e.dep,n=ge,l=Ge;ge=e,Ge=!0;try{zs(e);const s=e.fn(e._value);(t.version===0||st(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ge=n,Ge=l,Ys(e),e.flags&=-3}}function Ml(e,t=!1){const{dep:n,prevSub:l,nextSub:s}=e;if(l&&(l.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ml(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ki(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ge=!0;const Xs=[];function rt(){Xs.push(Ge),Ge=!1}function at(){const e=Xs.pop();Ge=e===void 0?!0:e}function rs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ge;ge=void 0;try{t()}finally{ge=n}}}let rn=0;class qi{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 Rl{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ge||!Ge||ge===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ge)n=this.activeLink=new qi(ge,this),ge.deps?(n.prevDep=ge.depsTail,ge.depsTail.nextDep=n,ge.depsTail=n):ge.deps=ge.depsTail=n,Zs(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=ge.depsTail,n.nextDep=void 0,ge.depsTail.nextDep=n,ge.depsTail=n,ge.deps===n&&(ge.deps=l)}return n}trigger(t){this.version++,rn++,this.notify(t)}notify(t){Il();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Al()}}}function Zs(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)Zs(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const _l=new WeakMap,Rt=Symbol(""),ml=Symbol(""),an=Symbol("");function Te(e,t,n){if(Ge&&ge){let l=_l.get(e);l||_l.set(e,l=new Map);let s=l.get(n);s||(l.set(n,s=new Rl),s.map=l,s.key=n),s.track()}}function vt(e,t,n,l,s,i){const r=_l.get(e);if(!r){rn++;return}const a=f=>{f&&f.trigger()};if(Il(),t==="clear")r.forEach(a);else{const f=U(e),_=f&&Tl(n);if(f&&n==="length"){const v=Number(l);r.forEach((y,T)=>{(T==="length"||T===an||!it(T)&&T>=v)&&a(y)})}else switch((n!==void 0||r.has(void 0))&&a(r.get(n)),_&&a(r.get(an)),t){case"add":f?_&&a(r.get("length")):(a(r.get(Rt)),jt(e)&&a(r.get(ml)));break;case"delete":f||(a(r.get(Rt)),jt(e)&&a(r.get(ml)));break;case"set":jt(e)&&a(r.get(Rt));break}}Al()}function Lt(e){const t=le(e);return t===e?t:(Te(t,"iterate",an),qe(e)?t:t.map(ze))}function Gn(e){return Te(e=le(e),"iterate",an),e}function nt(e,t){return yt(e)?Kt($t(e)?ze(t):t):ze(t)}const Ji={__proto__:null,[Symbol.iterator](){return rl(this,Symbol.iterator,e=>nt(this,e))},concat(...e){return Lt(this).concat(...e.map(t=>U(t)?Lt(t):t))},entries(){return rl(this,"entries",e=>(e[1]=nt(this,e[1]),e))},every(e,t){return pt(this,"every",e,t,void 0,arguments)},filter(e,t){return pt(this,"filter",e,t,n=>n.map(l=>nt(this,l)),arguments)},find(e,t){return pt(this,"find",e,t,n=>nt(this,n),arguments)},findIndex(e,t){return pt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return pt(this,"findLast",e,t,n=>nt(this,n),arguments)},findLastIndex(e,t){return pt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return pt(this,"forEach",e,t,void 0,arguments)},includes(...e){return al(this,"includes",e)},indexOf(...e){return al(this,"indexOf",e)},join(e){return Lt(this).join(e)},lastIndexOf(...e){return al(this,"lastIndexOf",e)},map(e,t){return pt(this,"map",e,t,void 0,arguments)},pop(){return zt(this,"pop")},push(...e){return zt(this,"push",e)},reduce(e,...t){return as(this,"reduce",e,t)},reduceRight(e,...t){return as(this,"reduceRight",e,t)},shift(){return zt(this,"shift")},some(e,t){return pt(this,"some",e,t,void 0,arguments)},splice(...e){return zt(this,"splice",e)},toReversed(){return Lt(this).toReversed()},toSorted(e){return Lt(this).toSorted(e)},toSpliced(...e){return Lt(this).toSpliced(...e)},unshift(...e){return zt(this,"unshift",e)},values(){return rl(this,"values",e=>nt(this,e))}};function rl(e,t,n){const l=Gn(e),s=l[t]();return l!==e&&!qe(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const Gi=Array.prototype;function pt(e,t,n,l,s,i){const r=Gn(e),a=r!==e&&!qe(e),f=r[t];if(f!==Gi[t]){const y=f.apply(e,i);return a?ze(y):y}let _=n;r!==e&&(a?_=function(y,T){return n.call(this,nt(e,y),T,e)}:n.length>2&&(_=function(y,T){return n.call(this,y,T,e)}));const v=f.call(r,_,l);return a&&s?s(v):v}function as(e,t,n,l){const s=Gn(e),i=s!==e&&!qe(e);let r=n,a=!1;s!==e&&(i?(a=l.length===0,r=function(_,v,y){return a&&(a=!1,_=nt(e,_)),n.call(this,_,nt(e,v),y,e)}):n.length>3&&(r=function(_,v,y){return n.call(this,_,v,y,e)}));const f=s[t](r,...l);return a?nt(e,f):f}function al(e,t,n){const l=le(e);Te(l,"iterate",an);const s=l[t](...n);return(s===-1||s===!1)&&Fl(n[0])?(n[0]=le(n[0]),l[t](...n)):s}function zt(e,t,n=[]){rt(),Il();const l=le(e)[t].apply(e,n);return Al(),at(),l}const zi=El("__proto__,__v_isRef,__isVue"),eo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(it));function Yi(e){it(e)||(e=String(e));const t=le(this);return Te(t,"has",e),t.hasOwnProperty(e)}class to{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return l===(s?i?ir:oo:i?so:lo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const r=U(t);if(!s){let f;if(r&&(f=Ji[n]))return f;if(n==="hasOwnProperty")return Yi}const a=Reflect.get(t,n,Oe(t)?t:l);if((it(n)?eo.has(n):zi(n))||(s||Te(t,"get",n),i))return a;if(Oe(a)){const f=r&&Tl(n)?a:a.value;return s&&re(f)?bl(f):f}return re(a)?s?bl(a):Bl(a):a}}class no extends to{constructor(t=!1){super(!1,t)}set(t,n,l,s){let i=t[n];const r=U(t)&&Tl(n);if(!this._isShallow){const _=yt(i);if(!qe(l)&&!yt(l)&&(i=le(i),l=le(l)),!r&&Oe(i)&&!Oe(l))return _||(i.value=l),!0}const a=r?Number(n)e,Pn=e=>Reflect.getPrototypeOf(e);function tr(e,t,n){return function(...l){const s=this.__v_raw,i=le(s),r=jt(i),a=e==="entries"||e===Symbol.iterator&&r,f=e==="keys"&&r,_=s[e](...l),v=n?yl:t?Kt:ze;return!t&&Te(i,"iterate",f?ml:Rt),Ee(Object.create(_),{next(){const{value:y,done:T}=_.next();return T?{value:y,done:T}:{value:a?[v(y[0]),v(y[1])]:v(y),done:T}}})}}function En(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function nr(e,t){const n={get(s){const i=this.__v_raw,r=le(i),a=le(s);e||(st(s,a)&&Te(r,"get",s),Te(r,"get",a));const{has:f}=Pn(r),_=t?yl:e?Kt:ze;if(f.call(r,s))return _(i.get(s));if(f.call(r,a))return _(i.get(a));i!==r&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Te(le(s),"iterate",Rt),s.size},has(s){const i=this.__v_raw,r=le(i),a=le(s);return e||(st(s,a)&&Te(r,"has",s),Te(r,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const r=this,a=r.__v_raw,f=le(a),_=t?yl:e?Kt:ze;return!e&&Te(f,"iterate",Rt),a.forEach((v,y)=>s.call(i,_(v),_(y),r))}};return Ee(n,e?{add:En("add"),set:En("set"),delete:En("delete"),clear:En("clear")}:{add(s){const i=le(this),r=Pn(i),a=le(s),f=!t&&!qe(s)&&!yt(s)?a:s;return r.has.call(i,f)||st(s,f)&&r.has.call(i,s)||st(a,f)&&r.has.call(i,a)||(i.add(f),vt(i,"add",f,f)),this},set(s,i){!t&&!qe(i)&&!yt(i)&&(i=le(i));const r=le(this),{has:a,get:f}=Pn(r);let _=a.call(r,s);_||(s=le(s),_=a.call(r,s));const v=f.call(r,s);return r.set(s,i),_?st(i,v)&&vt(r,"set",s,i):vt(r,"add",s,i),this},delete(s){const i=le(this),{has:r,get:a}=Pn(i);let f=r.call(i,s);f||(s=le(s),f=r.call(i,s)),a&&a.call(i,s);const _=i.delete(s);return f&&vt(i,"delete",s,void 0),_},clear(){const s=le(this),i=s.size!==0,r=s.clear();return i&&vt(s,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=tr(s,e,t)}),n}function $l(e,t){const n=nr(e,t);return(l,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?l:Reflect.get(se(n,s)&&s in l?n:l,s,i)}const lr={get:$l(!1,!1)},sr={get:$l(!1,!0)},or={get:$l(!0,!1)};const lo=new WeakMap,so=new WeakMap,oo=new WeakMap,ir=new WeakMap;function rr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bl(e){return yt(e)?e:Ll(e,!1,Xi,lr,lo)}function ar(e){return Ll(e,!1,er,sr,so)}function bl(e){return Ll(e,!0,Zi,or,oo)}function Ll(e,t,n,l,s){if(!re(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=s.get(e);if(i)return i;const r=rr(Ai(e));if(r===0)return e;const a=new Proxy(e,r===2?l:n);return s.set(e,a),a}function $t(e){return yt(e)?$t(e.__v_raw):!!(e&&e.__v_isReactive)}function yt(e){return!!(e&&e.__v_isReadonly)}function qe(e){return!!(e&&e.__v_isShallow)}function Fl(e){return e?!!e.__v_raw:!1}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function ur(e){return!se(e,"__v_skip")&&Object.isExtensible(e)&&Us(e,"__v_skip",!0),e}const ze=e=>re(e)?Bl(e):e,Kt=e=>re(e)?bl(e):e;function Oe(e){return e?e.__v_isRef===!0:!1}function j(e){return cr(e,!1)}function cr(e,t){return Oe(e)?e:new dr(e,t)}class dr{constructor(t,n){this.dep=new Rl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:le(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,l=this.__v_isShallow||qe(t)||yt(t);t=l?t:le(t),st(t,n)&&(this._rawValue=t,this._value=l?t:ze(t),this.dep.trigger())}}function fr(e){return Oe(e)?e.value:e}const pr={get:(e,t,n)=>t==="__v_raw"?e:fr(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const s=e[t];return Oe(s)&&!Oe(n)?(s.value=n,!0):Reflect.set(e,t,n,l)}};function io(e){return $t(e)?e:new Proxy(e,pr)}class hr{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Rl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=rn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&ge!==this)return Gs(this,!0),!0}get value(){const t=this.dep.track();return Qs(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function gr(e,t,n=!1){let l,s;return W(e)?l=e:(l=e.get,s=e.set),new hr(l,s,n)}const Dn={},An=new WeakMap;let At;function vr(e,t=!1,n=At){if(n){let l=An.get(n);l||An.set(n,l=[]),l.push(e)}}function _r(e,t,n=de){const{immediate:l,deep:s,once:i,scheduler:r,augmentJob:a,call:f}=n,_=B=>s?B:qe(B)||s===!1||s===0?_t(B,1):_t(B);let v,y,T,A,Q=!1,F=!1;if(Oe(e)?(y=()=>e.value,Q=qe(e)):$t(e)?(y=()=>_(e),Q=!0):U(e)?(F=!0,Q=e.some(B=>$t(B)||qe(B)),y=()=>e.map(B=>{if(Oe(B))return B.value;if($t(B))return _(B);if(W(B))return f?f(B,2):B()})):W(e)?t?y=f?()=>f(e,2):e:y=()=>{if(T){rt();try{T()}finally{at()}}const B=At;At=v;try{return f?f(e,3,[A]):e(A)}finally{At=B}}:y=ot,t&&s){const B=y,ue=s===!0?1/0:s;y=()=>_t(B(),ue)}const fe=Wi(),ae=()=>{v.stop(),fe&&fe.active&&Dl(fe.effects,v)};if(i&&t){const B=t;t=(...ue)=>{const Ie=B(...ue);return ae(),Ie}}let H=F?new Array(e.length).fill(Dn):Dn;const oe=B=>{if(!(!(v.flags&1)||!v.dirty&&!B))if(t){const ue=v.run();if(B||s||Q||(F?ue.some((Ie,Be)=>st(Ie,H[Be])):st(ue,H))){T&&T();const Ie=At;At=v;try{const Be=[ue,H===Dn?void 0:F&&H[0]===Dn?[]:H,A];H=ue,f?f(t,3,Be):t(...Be)}finally{At=Ie}}}else v.run()};return a&&a(oe),v=new qs(y),v.scheduler=r?()=>r(oe,!1):oe,A=B=>vr(B,!1,v),T=v.onStop=()=>{const B=An.get(v);if(B){if(f)f(B,4);else for(const ue of B)ue();An.delete(v)}},t?l?oe(!0):H=v.run():r?r(oe.bind(null,!0),!0):v.run(),ae.pause=v.pause.bind(v),ae.resume=v.resume.bind(v),ae.stop=ae,ae}function _t(e,t=1/0,n){if(t<=0||!re(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Oe(e))_t(e.value,t,n);else if(U(e))for(let l=0;l{_t(l,t,n)});else if(Ns(e)){for(const l in e)_t(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&_t(e[l],t,n)}return e}/** -* @vue/runtime-core v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function hn(e,t,n,l){try{return l?e(...l):e()}catch(s){zn(s,t,n)}}function Ye(e,t,n,l){if(W(e)){const s=hn(e,t,n,l);return s&&Fs(s)&&s.catch(i=>{zn(i,t,n)}),s}if(U(e)){const s=[];for(let i=0;i>>1,s=Re[l],i=un(s);i=un(n)?Re.push(e):Re.splice(yr(t),0,e),e.flags|=1,uo()}}function uo(){Mn||(Mn=ro.then(fo))}function br(e){U(e)?Ut.push(...e):St&&e.id===-1?St.splice(Vt+1,0,e):e.flags&1||(Ut.push(e),e.flags|=1),uo()}function us(e,t,n=tt+1){for(;nun(n)-un(l));if(Ut.length=0,St){St.push(...t);return}for(St=t,Vt=0;Vte.id==null?e.flags&2?-1:1/0:e.id;function fo(e){try{for(tt=0;tt{l._d&&bs(-1);const i=Rn(t);let r;try{r=e(...s)}finally{Rn(i),l._d&&bs(1)}return r};return l._n=!0,l._c=!0,l._d=!0,l}function K(e,t){if(Ke===null)return e;const n=Zn(Ke),l=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&W(t)?t.call(l&&l.proxy):t}}const xr=Symbol.for("v-scx"),Cr=()=>On(xr);function ul(e,t,n){return ho(e,t,n)}function ho(e,t,n=de){const{immediate:l,deep:s,flush:i,once:r}=n,a=Ee({},n),f=t&&l||!t&&i!=="post";let _;if(dn){if(i==="sync"){const A=Cr();_=A.__watcherHandles||(A.__watcherHandles=[])}else if(!f){const A=()=>{};return A.stop=ot,A.resume=ot,A.pause=ot,A}}const v=$e;a.call=(A,Q,F)=>Ye(A,v,Q,F);let y=!1;i==="post"?a.scheduler=A=>{Ne(A,v&&v.suspense)}:i!=="sync"&&(y=!0,a.scheduler=(A,Q)=>{Q?A():Vl(A)}),a.augmentJob=A=>{t&&(A.flags|=4),y&&(A.flags|=2,v&&(A.id=v.uid,A.i=v))};const T=_r(e,t,a);return dn&&(_?_.push(T):f&&T()),T}function Sr(e,t,n){const l=this.proxy,s=we(e)?e.includes(".")?go(l,e):()=>l[e]:e.bind(l,l);let i;W(t)?i=t:(i=t.handler,n=t);const r=gn(this),a=ho(s,i.bind(l),n);return r(),a}function go(e,t){const n=t.split(".");return()=>{let l=e;for(let s=0;se.__isTeleport,cl=Symbol("_leaveCb");function Nl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Nl(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 Dr(e,t){return W(e)?Ee({name:e.name},t,{setup:e}):e}function vo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function cs(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const $n=new WeakMap;function nn(e,t,n,l,s=!1){if(U(e)){e.forEach((F,fe)=>nn(F,t&&(U(t)?t[fe]:t),n,l,s));return}if(ln(l)&&!s){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&nn(e,t,n,l.component.subTree);return}const i=l.shapeFlag&4?Zn(l.component):l.el,r=s?null:i,{i:a,r:f}=e,_=t&&t.r,v=a.refs===de?a.refs={}:a.refs,y=a.setupState,T=le(y),A=y===de?Ls:F=>cs(v,F)?!1:se(T,F),Q=(F,fe)=>!(fe&&cs(v,fe));if(_!=null&&_!==f){if(ds(t),we(_))v[_]=null,A(_)&&(y[_]=null);else if(Oe(_)){const F=t;Q(_,F.k)&&(_.value=null),F.k&&(v[F.k]=null)}}if(W(f)){rt();try{hn(f,a,12,[r,v])}finally{at()}}else{const F=we(f),fe=Oe(f);if(F||fe){const ae=()=>{if(e.f){const H=F?A(f)?y[f]:v[f]:Q()||!e.k?f.value:v[e.k];if(s)U(H)&&Dl(H,i);else if(U(H))H.includes(i)||H.push(i);else if(F)v[f]=[i],A(f)&&(y[f]=v[f]);else{const oe=[i];Q(f,e.k)&&(f.value=oe),e.k&&(v[e.k]=oe)}}else F?(v[f]=r,A(f)&&(y[f]=r)):fe&&(Q(f,e.k)&&(f.value=r),e.k&&(v[e.k]=r))};if(r){const H=()=>{ae(),$n.delete(e)};H.id=-1,$n.set(e,H),Ne(H,n)}else ds(e),ae()}}}function ds(e){const t=$n.get(e);t&&(t.flags|=8,$n.delete(e))}qn().requestIdleCallback;qn().cancelIdleCallback;const ln=e=>!!e.type.__asyncLoader,_o=e=>e.type.__isKeepAlive;function Tr(e,t){mo(e,"a",t)}function Or(e,t){mo(e,"da",t)}function mo(e,t,n=$e){const l=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Yn(t,l,n),n){let s=n.parent;for(;s&&s.parent;)_o(s.parent.vnode)&&Ir(l,t,n,s),s=s.parent}}function Ir(e,t,n,l){const s=Yn(t,e,l,!0);bo(()=>{Dl(l[t],s)},n)}function Yn(e,t,n=$e,l=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{rt();const a=gn(n),f=Ye(t,n,e,r);return a(),at(),f});return l?s.unshift(i):s.push(i),i}}const bt=e=>(t,n=$e)=>{(!dn||e==="sp")&&Yn(e,(...l)=>t(...l),n)},Ar=bt("bm"),yo=bt("m"),Mr=bt("bu"),Rr=bt("u"),$r=bt("bum"),bo=bt("um"),Br=bt("sp"),Lr=bt("rtg"),Fr=bt("rtc");function Vr(e,t=$e){Yn("ec",e,t)}const Nr=Symbol.for("v-ndc");function ye(e,t,n,l){let s;const i=n,r=U(e);if(r||we(e)){const a=r&&$t(e);let f=!1,_=!1;a&&(f=!qe(e),_=yt(e),e=Gn(e)),s=new Array(e.length);for(let v=0,y=e.length;vt(a,f,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let f=0,_=a.length;f<_;f++){const v=a[f];s[f]=t(e[v],v,f,i)}}else s=[];return s}const wl=e=>e?jo(e)?Zn(e):wl(e.parent):null,sn=Ee(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>wl(e.parent),$root:e=>wl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ko(e),$forceUpdate:e=>e.f||(e.f=()=>{Vl(e.update)}),$nextTick:e=>e.n||(e.n=ao.bind(e.proxy)),$watch:e=>Sr.bind(e)}),dl=(e,t)=>e!==de&&!e.__isScriptSetup&&se(e,t),jr={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:s,props:i,accessCache:r,type:a,appContext:f}=e;if(t[0]!=="$"){const T=r[t];if(T!==void 0)switch(T){case 1:return l[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(dl(l,t))return r[t]=1,l[t];if(s!==de&&se(s,t))return r[t]=2,s[t];if(se(i,t))return r[t]=3,i[t];if(n!==de&&se(n,t))return r[t]=4,n[t];kl&&(r[t]=0)}}const _=sn[t];let v,y;if(_)return t==="$attrs"&&Te(e.attrs,"get",""),_(e);if((v=a.__cssModules)&&(v=v[t]))return v;if(n!==de&&se(n,t))return r[t]=4,n[t];if(y=f.config.globalProperties,se(y,t))return y[t]},set({_:e},t,n){const{data:l,setupState:s,ctx:i}=e;return dl(s,t)?(s[t]=n,!0):l!==de&&se(l,t)?(l[t]=n,!0):se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:s,props:i,type:r}},a){let f;return!!(n[a]||e!==de&&a[0]!=="$"&&se(e,a)||dl(t,a)||se(i,a)||se(l,a)||se(sn,a)||se(s.config.globalProperties,a)||(f=r.__cssModules)&&f[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:se(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function fs(e){return U(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let kl=!0;function Ur(e){const t=ko(e),n=e.proxy,l=e.ctx;kl=!1,t.beforeCreate&&ps(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:r,watch:a,provide:f,inject:_,created:v,beforeMount:y,mounted:T,beforeUpdate:A,updated:Q,activated:F,deactivated:fe,beforeDestroy:ae,beforeUnmount:H,destroyed:oe,unmounted:B,render:ue,renderTracked:Ie,renderTriggered:Be,errorCaptured:je,serverPrefetch:ut,expose:ve,inheritAttrs:Qe,components:ct,directives:Xe,filters:dt}=t;if(_&&Hr(_,l,null),r)for(const ne in r){const G=r[ne];W(G)&&(l[ne]=G.bind(n))}if(s){const ne=s.call(n,n);re(ne)&&(e.data=Bl(ne))}if(kl=!0,i)for(const ne in i){const G=i[ne],Le=W(G)?G.bind(n,n):W(G.get)?G.get.bind(n,n):ot,Fe=!W(G)&&W(G.set)?G.set.bind(n):ot,Ce=Ct({get:Le,set:Fe});Object.defineProperty(l,ne,{enumerable:!0,configurable:!0,get:()=>Ce.value,set:ce=>Ce.value=ce})}if(a)for(const ne in a)wo(a[ne],l,n,ne);if(f){const ne=W(f)?f.call(n):f;Reflect.ownKeys(ne).forEach(G=>{kr(G,ne[G])})}v&&ps(v,e,"c");function N(ne,G){U(G)?G.forEach(Le=>ne(Le.bind(n))):G&&ne(G.bind(n))}if(N(Ar,y),N(yo,T),N(Mr,A),N(Rr,Q),N(Tr,F),N(Or,fe),N(Vr,je),N(Fr,Ie),N(Lr,Be),N($r,H),N(bo,B),N(Br,ut),U(ve))if(ve.length){const ne=e.exposed||(e.exposed={});ve.forEach(G=>{Object.defineProperty(ne,G,{get:()=>n[G],set:Le=>n[G]=Le,enumerable:!0})})}else e.exposed||(e.exposed={});ue&&e.render===ot&&(e.render=ue),Qe!=null&&(e.inheritAttrs=Qe),ct&&(e.components=ct),Xe&&(e.directives=Xe),ut&&vo(e)}function Hr(e,t,n=ot){U(e)&&(e=xl(e));for(const l in e){const s=e[l];let i;re(s)?"default"in s?i=On(s.from||l,s.default,!0):i=On(s.from||l):i=On(s),Oe(i)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[l]=i}}function ps(e,t,n){Ye(U(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function wo(e,t,n,l){let s=l.includes(".")?go(n,l):()=>n[l];if(we(e)){const i=t[e];W(i)&&ul(s,i)}else if(W(e))ul(s,e.bind(n));else if(re(e))if(U(e))e.forEach(i=>wo(i,t,n,l));else{const i=W(e.handler)?e.handler.bind(n):t[e.handler];W(i)&&ul(s,i,e)}}function ko(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,a=i.get(t);let f;return a?f=a:!s.length&&!n&&!l?f=t:(f={},s.length&&s.forEach(_=>Bn(f,_,r,!0)),Bn(f,t,r)),re(t)&&i.set(t,f),f}function Bn(e,t,n,l=!1){const{mixins:s,extends:i}=t;i&&Bn(e,i,n,!0),s&&s.forEach(r=>Bn(e,r,n,!0));for(const r in t)if(!(l&&r==="expose")){const a=Wr[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const Wr={data:hs,props:gs,emits:gs,methods:Qt,computed:Qt,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:Qt,directives:Qt,watch:qr,provide:hs,inject:Kr};function hs(e,t){return t?e?function(){return Ee(W(e)?e.call(this,this):e,W(t)?t.call(this,this):t)}:t:e}function Kr(e,t){return Qt(xl(e),xl(t))}function xl(e){if(U(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Je(t)}Modifiers`]||e[`${Bt(t)}Modifiers`];function Yr(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||de;let s=n;const i=t.startsWith("update:"),r=i&&zr(l,t.slice(7));r&&(r.trim&&(s=n.map(v=>we(v)?v.trim():v)),r.number&&(s=n.map(Kn)));let a,f=l[a=sl(t)]||l[a=sl(Je(t))];!f&&i&&(f=l[a=sl(Bt(t))]),f&&Ye(f,e,6,s);const _=l[a+"Once"];if(_){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ye(_,e,6,s)}}const Qr=new WeakMap;function Co(e,t,n=!1){const l=n?Qr:t.emitsCache,s=l.get(e);if(s!==void 0)return s;const i=e.emits;let r={},a=!1;if(!W(e)){const f=_=>{const v=Co(_,t,!0);v&&(a=!0,Ee(r,v))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!a?(re(e)&&l.set(e,null),null):(U(i)?i.forEach(f=>r[f]=null):Ee(r,i),re(e)&&l.set(e,r),r)}function Qn(e,t){return!e||!jn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),se(e,t[0].toLowerCase()+t.slice(1))||se(e,Bt(t))||se(e,t))}function vs(e){const{type:t,vnode:n,proxy:l,withProxy:s,propsOptions:[i],slots:r,attrs:a,emit:f,render:_,renderCache:v,props:y,data:T,setupState:A,ctx:Q,inheritAttrs:F}=e,fe=Rn(e);let ae,H;try{if(n.shapeFlag&4){const B=s||l,ue=B;ae=lt(_.call(ue,B,v,y,A,T,Q)),H=a}else{const B=t;ae=lt(B.length>1?B(y,{attrs:a,slots:r,emit:f}):B(y,null)),H=t.props?a:Xr(a)}}catch(B){on.length=0,zn(B,e,1),ae=mt(Et)}let oe=ae;if(H&&F!==!1){const B=Object.keys(H),{shapeFlag:ue}=oe;B.length&&ue&7&&(i&&B.some(Un)&&(H=Zr(H,i)),oe=qt(oe,H,!1,!0))}return n.dirs&&(oe=qt(oe,null,!1,!0),oe.dirs=oe.dirs?oe.dirs.concat(n.dirs):n.dirs),n.transition&&Nl(oe,n.transition),ae=oe,Rn(fe),ae}const Xr=e=>{let t;for(const n in e)(n==="class"||n==="style"||jn(n))&&((t||(t={}))[n]=e[n]);return t},Zr=(e,t)=>{const n={};for(const l in e)(!Un(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function ea(e,t,n){const{props:l,children:s,component:i}=e,{props:r,children:a,patchFlag:f}=t,_=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return l?_s(l,r,_):!!r;if(f&8){const v=t.dynamicProps;for(let y=0;yObject.create(Po),Do=e=>Object.getPrototypeOf(e)===Po;function na(e,t,n,l=!1){const s={},i=Eo();e.propsDefaults=Object.create(null),To(e,t,s,i);for(const r in e.propsOptions[0])r in s||(s[r]=void 0);n?e.props=l?s:ar(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function la(e,t,n,l){const{props:s,attrs:i,vnode:{patchFlag:r}}=e,a=le(s),[f]=e.propsOptions;let _=!1;if((l||r>0)&&!(r&16)){if(r&8){const v=e.vnode.dynamicProps;for(let y=0;y{f=!0;const[T,A]=Oo(y,t,!0);Ee(r,T),A&&a.push(...A)};!n&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!i&&!f)return re(e)&&l.set(e,Nt),Nt;if(U(i))for(let v=0;ve==="_"||e==="_ctx"||e==="$stable",Ul=e=>U(e)?e.map(lt):[lt(e)],oa=(e,t,n)=>{if(t._n)return t;const l=wr((...s)=>Ul(t(...s)),n);return l._c=!1,l},Io=(e,t,n)=>{const l=e._ctx;for(const s in e){if(jl(s))continue;const i=e[s];if(W(i))t[s]=oa(s,i,l);else if(i!=null){const r=Ul(i);t[s]=()=>r}}},Ao=(e,t)=>{const n=Ul(t);e.slots.default=()=>n},Mo=(e,t,n)=>{for(const l in t)(n||!jl(l))&&(e[l]=t[l])},ia=(e,t,n)=>{const l=e.slots=Eo();if(e.vnode.shapeFlag&32){const s=t._;s?(Mo(l,t,n),n&&Us(l,"_",s,!0)):Io(t,l)}else t&&Ao(e,t)},ra=(e,t,n)=>{const{vnode:l,slots:s}=e;let i=!0,r=de;if(l.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:Mo(s,t,n):(i=!t.$stable,Io(t,s)),r=t}else t&&(Ao(e,t),r={default:1});if(i)for(const a in s)!jl(a)&&r[a]==null&&delete s[a]},Ne=fa;function aa(e){return ua(e)}function ua(e,t){const n=qn();n.__VUE__=!0;const{insert:l,remove:s,patchProp:i,createElement:r,createText:a,createComment:f,setText:_,setElementText:v,parentNode:y,nextSibling:T,setScopeId:A=ot,insertStaticContent:Q}=e,F=(d,g,m,x=null,k=null,w=null,D=void 0,E=null,P=!!g.dynamicChildren)=>{if(d===g)return;d&&!Yt(d,g)&&(x=De(d),ce(d,k,w,!0),d=null),g.patchFlag===-2&&(P=!1,g.dynamicChildren=null);const{type:b,ref:L,shapeFlag:O}=g;switch(b){case Xn:fe(d,g,m,x);break;case Et:ae(d,g,m,x);break;case pl:d==null&&H(g,m,x,D);break;case Y:ct(d,g,m,x,k,w,D,E,P);break;default:O&1?ue(d,g,m,x,k,w,D,E,P):O&6?Xe(d,g,m,x,k,w,D,E,P):(O&64||O&128)&&b.process(d,g,m,x,k,w,D,E,P,ft)}L!=null&&k?nn(L,d&&d.ref,w,g||d,!g):L==null&&d&&d.ref!=null&&nn(d.ref,null,w,d,!0)},fe=(d,g,m,x)=>{if(d==null)l(g.el=a(g.children),m,x);else{const k=g.el=d.el;g.children!==d.children&&_(k,g.children)}},ae=(d,g,m,x)=>{d==null?l(g.el=f(g.children||""),m,x):g.el=d.el},H=(d,g,m,x)=>{[d.el,d.anchor]=Q(d.children,g,m,x,d.el,d.anchor)},oe=({el:d,anchor:g},m,x)=>{let k;for(;d&&d!==g;)k=T(d),l(d,m,x),d=k;l(g,m,x)},B=({el:d,anchor:g})=>{let m;for(;d&&d!==g;)m=T(d),s(d),d=m;s(g)},ue=(d,g,m,x,k,w,D,E,P)=>{if(g.type==="svg"?D="svg":g.type==="math"&&(D="mathml"),d==null)Ie(g,m,x,k,w,D,E,P);else{const b=d.el&&d.el._isVueCE?d.el:null;try{b&&b._beginPatch(),ut(d,g,k,w,D,E,P)}finally{b&&b._endPatch()}}},Ie=(d,g,m,x,k,w,D,E)=>{let P,b;const{props:L,shapeFlag:O,transition:M,dirs:V}=d;if(P=d.el=r(d.type,w,L&&L.is,L),O&8?v(P,d.children):O&16&&je(d.children,P,null,x,k,fl(d,w),D,E),V&&Ot(d,null,x,"created"),Be(P,d,d.scopeId,D,x),L){for(const ee in L)ee!=="value"&&!Zt(ee)&&i(P,ee,null,L[ee],w,x);"value"in L&&i(P,"value",null,L.value,w),(b=L.onVnodeBeforeMount)&&et(b,x,d)}V&&Ot(d,null,x,"beforeMount");const z=ca(k,M);z&&M.beforeEnter(P),l(P,g,m),((b=L&&L.onVnodeMounted)||z||V)&&Ne(()=>{try{b&&et(b,x,d),z&&M.enter(P),V&&Ot(d,null,x,"mounted")}finally{}},k)},Be=(d,g,m,x,k)=>{if(m&&A(d,m),x)for(let w=0;w{for(let b=P;b{const E=g.el=d.el;let{patchFlag:P,dynamicChildren:b,dirs:L}=g;P|=d.patchFlag&16;const O=d.props||de,M=g.props||de;let V;if(m&&It(m,!1),(V=M.onVnodeBeforeUpdate)&&et(V,m,g,d),L&&Ot(g,d,m,"beforeUpdate"),m&&It(m,!0),b&&(!d.dynamicChildren||d.dynamicChildren.length!==b.length)&&(P=0,D=!1,b=null),(O.innerHTML&&M.innerHTML==null||O.textContent&&M.textContent==null)&&v(E,""),b?ve(d.dynamicChildren,b,E,m,x,fl(g,k),w):D||G(d,g,E,null,m,x,fl(g,k),w,!1),P>0){if(P&16)Qe(E,O,M,m,k);else if(P&2&&O.class!==M.class&&i(E,"class",null,M.class,k),P&4&&i(E,"style",O.style,M.style,k),P&8){const z=g.dynamicProps;for(let ee=0;ee{V&&et(V,m,g,d),L&&Ot(g,d,m,"updated")},x)},ve=(d,g,m,x,k,w,D)=>{for(let E=0;E{if(g!==m){if(g!==de)for(const w in g)!Zt(w)&&!(w in m)&&i(d,w,g[w],null,k,x);for(const w in m){if(Zt(w))continue;const D=m[w],E=g[w];D!==E&&w!=="value"&&i(d,w,E,D,k,x)}"value"in m&&i(d,"value",g.value,m.value,k)}},ct=(d,g,m,x,k,w,D,E,P)=>{const b=g.el=d?d.el:a(""),L=g.anchor=d?d.anchor:a("");let{patchFlag:O,dynamicChildren:M,slotScopeIds:V}=g;V&&(E=E?E.concat(V):V),d==null?(l(b,m,x),l(L,m,x),je(g.children||[],m,L,k,w,D,E,P)):O>0&&O&64&&M&&d.dynamicChildren&&d.dynamicChildren.length===M.length?(ve(d.dynamicChildren,M,m,k,w,D,E),(g.key!=null||k&&g===k.subTree)&&Ro(d,g,!0)):G(d,g,m,L,k,w,D,E,P)},Xe=(d,g,m,x,k,w,D,E,P)=>{g.slotScopeIds=E,d==null?g.shapeFlag&512?k.ctx.activate(g,m,x,D,P):dt(g,m,x,k,w,D,P):wt(d,g,P)},dt=(d,g,m,x,k,w,D)=>{const E=d.component=wa(d,x,k);if(_o(d)&&(E.ctx.renderer=ft),xa(E,!1,D),E.asyncDep){if(k&&k.registerDep(E,N,D),!d.el){const P=E.subTree=mt(Et);ae(null,P,g,m),d.placeholder=P.el}}else N(E,d,g,m,k,w,D)},wt=(d,g,m)=>{const x=g.component=d.component;if(ea(d,g,m))if(x.asyncDep&&!x.asyncResolved){ne(x,g,m);return}else x.next=g,x.update();else g.el=d.el,x.vnode=g},N=(d,g,m,x,k,w,D)=>{const E=()=>{if(d.isMounted){let{next:O,bu:M,u:V,parent:z,vnode:ee}=d;{const He=$o(d);if(He){O&&(O.el=ee.el,ne(d,O,D)),He.asyncDep.then(()=>{Ne(()=>{d.isUnmounted||b()},k)});return}}let te=O,be;It(d,!1),O?(O.el=ee.el,ne(d,O,D)):O=ee,M&&Tn(M),(be=O.props&&O.props.onVnodeBeforeUpdate)&&et(be,z,O,ee),It(d,!0);const pe=vs(d),R=d.subTree;d.subTree=pe,F(R,pe,y(R.el),De(R),d,k,w),O.el=pe.el,te===null&&ta(d,pe.el),V&&Ne(V,k),(be=O.props&&O.props.onVnodeUpdated)&&Ne(()=>et(be,z,O,ee),k)}else{let O;const{el:M,props:V}=g,{bm:z,m:ee,parent:te,root:be,type:pe}=d,R=ln(g);It(d,!1),z&&Tn(z),!R&&(O=V&&V.onVnodeBeforeMount)&&et(O,te,g),It(d,!0);{be.ce&&be.ce._hasShadowRoot()&&be.ce._injectChildStyle(pe,d.parent?d.parent.type:void 0);const He=d.subTree=vs(d);F(null,He,m,x,d,k,w),g.el=He.el}if(ee&&Ne(ee,k),!R&&(O=V&&V.onVnodeMounted)){const He=g;Ne(()=>et(O,te,He),k)}(g.shapeFlag&256||te&&ln(te.vnode)&&te.vnode.shapeFlag&256)&&d.a&&Ne(d.a,k),d.isMounted=!0,g=m=x=null}};d.scope.on();const P=d.effect=new qs(E);d.scope.off();const b=d.update=P.run.bind(P),L=d.job=P.runIfDirty.bind(P);L.i=d,L.id=d.uid,P.scheduler=()=>Vl(L),It(d,!0),b()},ne=(d,g,m)=>{g.component=d;const x=d.vnode.props;d.vnode=g,d.next=null,la(d,g.props,x,m),ra(d,g.children,m),rt(),us(d),at()},G=(d,g,m,x,k,w,D,E,P=!1)=>{const b=d&&d.children,L=d?d.shapeFlag:0,O=g.children,{patchFlag:M,shapeFlag:V}=g;if(M>0){if(M&128){Fe(b,O,m,x,k,w,D,E,P);return}else if(M&256){Le(b,O,m,x,k,w,D,E,P);return}}V&8?(L&16&&Ze(b,k,w),O!==b&&v(m,O)):L&16?V&16?Fe(b,O,m,x,k,w,D,E,P):Ze(b,k,w,!0):(L&8&&v(m,""),V&16&&je(O,m,x,k,w,D,E,P))},Le=(d,g,m,x,k,w,D,E,P)=>{d=d||Nt,g=g||Nt;const b=d.length,L=g.length,O=Math.min(b,L);let M;for(M=0;ML?Ze(d,k,w,!0,!1,O):je(g,m,x,k,w,D,E,P,O)},Fe=(d,g,m,x,k,w,D,E,P)=>{let b=0;const L=g.length;let O=d.length-1,M=L-1;for(;b<=O&&b<=M;){const V=d[b],z=g[b]=P?gt(g[b]):lt(g[b]);if(Yt(V,z))F(V,z,m,null,k,w,D,E,P);else break;b++}for(;b<=O&&b<=M;){const V=d[O],z=g[M]=P?gt(g[M]):lt(g[M]);if(Yt(V,z))F(V,z,m,null,k,w,D,E,P);else break;O--,M--}if(b>O){if(b<=M){const V=M+1,z=VM)for(;b<=O;)ce(d[b],k,w,!0),b++;else{const V=b,z=b,ee=new Map;for(b=z;b<=M;b++){const Ae=g[b]=P?gt(g[b]):lt(g[b]);Ae.key!=null&&ee.set(Ae.key,b)}let te,be=0;const pe=M-z+1;let R=!1,He=0;const Dt=new Array(pe);for(b=0;b=pe){ce(Ae,k,w,!0);continue}let We;if(Ae.key!=null)We=ee.get(Ae.key);else for(te=z;te<=M;te++)if(Dt[te-z]===0&&Yt(Ae,g[te])){We=te;break}We===void 0?ce(Ae,k,w,!0):(Dt[We-z]=b+1,We>=He?He=We:R=!0,F(Ae,g[We],m,null,k,w,D,E,P),be++)}const vn=R?da(Dt):Nt;for(te=vn.length-1,b=pe-1;b>=0;b--){const Ae=z+b,We=g[Ae],_n=g[Ae+1],mn=Ae+1{const{el:w,type:D,transition:E,children:P,shapeFlag:b}=d;if(b&6){Ce(d.component.subTree,g,m,x);return}if(b&128){d.suspense.move(g,m,x);return}if(b&64){D.move(d,g,m,ft);return}if(D===Y){l(w,g,m);for(let O=0;OE.enter(w),k));else{const{leave:O,delayLeave:M,afterLeave:V}=E,z=()=>{d.ctx.isUnmounted?s(w):l(w,g,m)},ee=()=>{const te=w._isLeaving||!!w[cl];w._isLeaving&&w[cl](!0),E.persisted&&!te?z():O(w,()=>{z(),V&&V()})};M?M(w,z,ee):ee()}else l(w,g,m)},ce=(d,g,m,x=!1,k=!1)=>{const{type:w,props:D,ref:E,children:P,dynamicChildren:b,shapeFlag:L,patchFlag:O,dirs:M,cacheIndex:V,memo:z}=d;if(O===-2&&(k=!1),E!=null&&(rt(),nn(E,null,m,d,!0),at()),V!=null&&(g.renderCache[V]=void 0),L&256){g.ctx.deactivate(d);return}const ee=L&1&&M,te=!ln(d);let be;if(te&&(be=D&&D.onVnodeBeforeUnmount)&&et(be,g,d),L&6)Ve(d.component,m,x);else{if(L&128){d.suspense.unmount(m,x);return}ee&&Ot(d,null,g,"beforeUnmount"),L&64?d.type.remove(d,g,m,ft,x):b&&!b.hasOnce&&(w!==Y||O>0&&O&64)?Ze(b,g,m,!1,!0):(w===Y&&O&384||!k&&L&16)&&Ze(P,g,m),x&&xe(d)}const pe=z!=null&&V==null;(te&&(be=D&&D.onVnodeUnmounted)||ee||pe)&&Ne(()=>{be&&et(be,g,d),ee&&Ot(d,null,g,"unmounted"),pe&&(d.el=null)},m)},xe=d=>{const{type:g,el:m,anchor:x,transition:k}=d;if(g===Y){ke(m,x);return}if(g===pl){B(d);return}const w=()=>{s(m),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(d.shapeFlag&1&&k&&!k.persisted){const{leave:D,delayLeave:E}=k,P=()=>D(m,w);E?E(d.el,w,P):P()}else w()},ke=(d,g)=>{let m;for(;d!==g;)m=T(d),s(d),d=m;s(g)},Ve=(d,g,m)=>{const{bum:x,scope:k,job:w,subTree:D,um:E,m:P,a:b}=d;ys(P),ys(b),x&&Tn(x),k.stop(),w&&(w.flags|=8,ce(D,d,g,m)),E&&Ne(E,g),Ne(()=>{d.isUnmounted=!0},g)},Ze=(d,g,m,x=!1,k=!1,w=0)=>{for(let D=w;D{if(d.shapeFlag&6)return De(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const g=T(d.anchor||d.el),m=g&&g[Pr];return m?T(m):g};let kt=!1;const _e=(d,g,m)=>{let x;d==null?g._vnode&&(ce(g._vnode,null,null,!0),x=g._vnode.component):F(g._vnode||null,d,g,null,null,null,m),g._vnode=d,kt||(kt=!0,us(x),co(),kt=!1)},ft={p:F,um:ce,m:Ce,r:xe,mt:dt,mc:je,pc:G,pbc:ve,n:De,o:e};return{render:_e,hydrate:void 0,createApp:Gr(_e)}}function fl({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function It({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ca(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ro(e,t,n=!1){const l=e.children,s=t.children;if(U(l)&&U(s))for(let i=0;i>1,e[n[a]]<_?i=a+1:r=a;_0&&(t[l]=n[i-1]),n[i]=l)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}function $o(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$o(t)}function ys(e){if(e)for(let t=0;te.__isSuspense;function fa(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):br(e)}const Y=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),pl=Symbol.for("v-stc"),on=[];let Ue=null;function C(e=!1){on.push(Ue=e?null:[])}function pa(){on.pop(),Ue=on[on.length-1]||null}let cn=1;function bs(e,t=!1){cn+=e,e<0&&Ue&&t&&(Ue.hasOnce=!0)}function Fo(e){return e.dynamicChildren=cn>0?Ue||Nt:null,pa(),cn>0&&Ue&&Ue.push(e),e}function S(e,t,n,l,s,i){return Fo(o(e,t,n,l,s,i,!0))}function ha(e,t,n,l,s){return Fo(mt(e,t,n,l,s,!0))}function Vo(e){return e?e.__v_isVNode===!0:!1}function Yt(e,t){return e.type===t.type&&e.key===t.key}const No=({key:e})=>e??null,In=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Oe(e)||W(e)?{i:Ke,r:e,k:t,f:!!n}:e:null);function o(e,t=null,n=null,l=0,s=null,i=e===Y?0:1,r=!1,a=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&No(t),ref:t&&In(t),scopeId:po,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:l,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ke};return a?(Ln(f,n),i&128&&e.normalize(f)):n&&(f.shapeFlag|=we(n)?8:16),cn>0&&!r&&Ue&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&Ue.push(f),f}const mt=ga;function ga(e,t=null,n=null,l=0,s=null,i=!1){if((!e||e===Nr)&&(e=Et),Vo(e)){const a=qt(e,t,!0);return n&&Ln(a,n),cn>0&&!i&&Ue&&(a.shapeFlag&6?Ue[Ue.indexOf(e)]=a:Ue.push(a)),a.patchFlag=-2,a}if(Ea(e)&&(e=e.__vccOpts),t){t=va(t);let{class:a,style:f}=t;a&&!we(a)&&(t.class=Jn(a)),re(f)&&(Fl(f)&&!U(f)&&(f=Ee({},f)),t.style=Ol(f))}const r=we(e)?1:Lo(e)?128:Er(e)?64:re(e)?4:W(e)?2:0;return o(e,t,n,l,s,r,i,!0)}function va(e){return e?Fl(e)||Do(e)?Ee({},e):e:null}function qt(e,t,n=!1,l=!1){const{props:s,ref:i,patchFlag:r,children:a,transition:f}=e,_=t?ma(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:_,key:_&&No(_),ref:t&&t.ref?n&&i?U(i)?i.concat(In(t)):[i,In(t)]:In(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Y?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qt(e.ssContent),ssFallback:e.ssFallback&&qt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&l&&Nl(v,f.clone(v)),v}function _a(e=" ",t=0){return mt(Xn,null,e,t)}function J(e="",t=!1){return t?(C(),ha(Et,null,e)):mt(Et,null,e)}function lt(e){return e==null||typeof e=="boolean"?mt(Et):U(e)?mt(Y,null,e.slice()):Vo(e)?gt(e):mt(Xn,null,String(e))}function gt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qt(e)}function Ln(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(U(t))n=16;else if(typeof t=="object")if(l&65){const s=t.default;s&&(s._c&&(s._d=!1),Ln(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Do(t)?t._ctx=Ke:s===3&&Ke&&(Ke.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(W(t)){if(l&65){Ln(e,{default:t});return}t={default:t,_ctx:Ke},n=32}else t=String(t),l&64?(n=16,t=[_a(t)]):n=8;e.children=t,e.shapeFlag|=n}function ma(...e){const t={};for(let n=0;n$e||Ke;let Fn,Sl;{const e=qn(),t=(n,l)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(l),i=>{s.length>1?s.forEach(r=>r(i)):s[0](i)}};Fn=t("__VUE_INSTANCE_SETTERS__",n=>$e=n),Sl=t("__VUE_SSR_SETTERS__",n=>dn=n)}const gn=e=>{const t=$e;return Fn(e),e.scope.on(),()=>{e.scope.off(),Fn(t)}},ws=()=>{$e&&$e.scope.off(),Fn(null)};function jo(e){return e.vnode.shapeFlag&4}let dn=!1;function xa(e,t=!1,n=!1){t&&Sl(t);const{props:l,children:s}=e.vnode,i=jo(e);na(e,l,i,t),ia(e,s,n||t);const r=i?Ca(e,t):void 0;return t&&Sl(!1),r}function Ca(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,jr);const{setup:l}=n;if(l){rt();const s=e.setupContext=l.length>1?Pa(e):null,i=gn(e),r=hn(l,e,0,[e.props,s]),a=Fs(r);if(at(),i(),(a||e.sp)&&!ln(e)&&vo(e),a){if(r.then(ws,ws),t)return r.then(f=>{ks(e,f)}).catch(f=>{zn(f,e,0)});e.asyncDep=r}else ks(e,r)}else Uo(e)}function ks(e,t,n){W(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:re(t)&&(e.setupState=io(t)),Uo(e)}function Uo(e,t,n){const l=e.type;e.render||(e.render=l.render||ot);{const s=gn(e);rt();try{Ur(e)}finally{at(),s()}}}const Sa={get(e,t){return Te(e,"get",""),e[t]}};function Pa(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Sa),slots:e.slots,emit:e.emit,expose:t}}function Zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(io(ur(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in sn)return sn[n](e)},has(t,n){return n in t||n in sn}})):e.proxy}function Ea(e){return W(e)&&"__vccOpts"in e}const Ct=(e,t)=>gr(e,t,dn),Da="3.5.39";/** -* @vue/runtime-dom v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Pl;const xs=typeof window<"u"&&window.trustedTypes;if(xs)try{Pl=xs.createPolicy("vue",{createHTML:e=>e})}catch{}const Ho=Pl?e=>Pl.createHTML(e):e=>e,Ta="http://www.w3.org/2000/svg",Oa="http://www.w3.org/1998/Math/MathML",ht=typeof document<"u"?document:null,Cs=ht&&ht.createElement("template"),Ia={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const s=t==="svg"?ht.createElementNS(Ta,e):t==="mathml"?ht.createElementNS(Oa,e):n?ht.createElement(e,{is:n}):ht.createElement(e);return e==="select"&&l&&l.multiple!=null&&s.setAttribute("multiple",l.multiple),s},createText:e=>ht.createTextNode(e),createComment:e=>ht.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ht.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,s,i){const r=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Cs.innerHTML=Ho(l==="svg"?`${e}`:l==="mathml"?`${e}`:e);const a=Cs.content;if(l==="svg"||l==="mathml"){const f=a.firstChild;for(;f.firstChild;)a.appendChild(f.firstChild);a.removeChild(f)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Aa=Symbol("_vtc");function Ma(e,t,n){const l=e[Aa];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ss=Symbol("_vod"),Ra=Symbol("_vsh"),$a=Symbol(""),Ba=/(?:^|;)\s*display\s*:/;function La(e,t,n){const l=e.style,s=we(n);let i=!1;if(n&&!s){if(t)if(we(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&Xt(l,a,"")}else for(const r in t)n[r]==null&&Xt(l,r,"");for(const r in n){r==="display"&&(i=!0);const a=n[r];a!=null?Va(e,r,!we(t)&&t?t[r]:void 0,a)||Xt(l,r,a):Xt(l,r,"")}}else if(s){if(t!==n){const r=l[$a];r&&(n+=";"+r),l.cssText=n,i=Ba.test(n)}}else t&&e.removeAttribute("style");Ss in e&&(e[Ss]=i?l.display:"",e[Ra]&&(l.display="none"))}const Ps=/\s*!important$/;function Xt(e,t,n){if(U(n))n.forEach(l=>Xt(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=Fa(e,t);Ps.test(n)?e.setProperty(Bt(l),n.replace(Ps,""),"important"):e[l]=n}}const Es=["Webkit","Moz","ms"],hl={};function Fa(e,t){const n=hl[t];if(n)return n;let l=Je(t);if(l!=="filter"&&l in e)return hl[t]=l;l=js(l);for(let s=0;sgl||(Ka.then(()=>gl=0),gl=Date.now());function Ja(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;const s=n.value;if(U(s)){const i=l.stopImmediatePropagation;l.stopImmediatePropagation=()=>{i.call(l),l._stopped=!0};const r=s.slice(),a=[l];for(let f=0;fe.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ga=(e,t,n,l,s,i)=>{const r=s==="svg";t==="class"?Ma(e,l,r):t==="style"?La(e,n,l):jn(t)?Un(t)||ja(e,t,n,l,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):za(e,t,l,r))?(Os(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ts(e,t,l,r,i,t!=="value")):e._isVueCE&&(Ya(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!we(l)))?Os(e,Je(t),l,i,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Ts(e,t,l,r))};function za(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&As(t)&&W(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 As(t)&&we(n)?!1:t in e}function Ya(e,t){const n=e._def.props;if(!n)return!1;const l=Je(t);return Array.isArray(n)?n.some(s=>Je(s)===l):Object.keys(n).some(s=>Je(s)===l)}const Vn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return U(t)?n=>Tn(t,n):t};function Qa(e){e.target.composing=!0}function Ms(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Wt=Symbol("_assign");function Rs(e,t,n){return t&&(e=e.trim()),n&&(e=Kn(e)),e}const X={created(e,{modifiers:{lazy:t,trim:n,number:l}},s){e[Wt]=Vn(s);const i=l||s.props&&s.props.type==="number";Mt(e,t?"change":"input",r=>{r.target.composing||e[Wt](Rs(e.value,n,i))}),(n||i)&&Mt(e,"change",()=>{e.value=Rs(e.value,n,i)}),t||(Mt(e,"compositionstart",Qa),Mt(e,"compositionend",Ms),Mt(e,"change",Ms))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:s,number:i}},r){if(e[Wt]=Vn(r),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Kn(e.value):e.value,f=t??"";if(a===f)return;const _=e.getRootNode();(_ instanceof Document||_ instanceof ShadowRoot)&&_.activeElement===e&&e.type!=="range"&&(l&&t===n||s&&e.value.trim()===f)||(e.value=f)}},Ft={deep:!0,created(e,{value:t,modifiers:{number:n}},l){const s=Hn(t);Mt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?Kn(Nn(r)):Nn(r));e[Wt](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,ao(()=>{e._assigning=!1})}),e[Wt]=Vn(l)},mounted(e,{value:t}){$s(e,t)},beforeUpdate(e,t,n){e[Wt]=Vn(n)},updated(e,{value:t}){e._assigning||$s(e,t)}};function $s(e,t){const n=e.multiple,l=U(t);if(!(n&&!l&&!Hn(t))){for(let s=0,i=e.options.length;sString(_)===String(a)):r.selected=Ui(t,a)>-1}else r.selected=t.has(a);else if(pn(Nn(r),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Nn(e){return"_value"in e?e._value:e.value}const Xa=Ee({patchProp:Ga},Ia);let Bs;function Za(){return Bs||(Bs=aa(Xa))}const eu=((...e)=>{const t=Za().createApp(...e),{mount:n}=t;return t.mount=l=>{const s=nu(l);if(!s)return;const i=t._component;!W(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const r=n(s,!1,tu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),r},t});function tu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function nu(e){return we(e)?document.querySelector(e):e}const lu="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",I={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,workflowBranches:e=>`workflows/${e}/branches`,workflowSwitchBranch:e=>`workflows/${e}/switch-branch`,workflowHistory:e=>`workflows/${e}/history`,nodeGenerate:e=>`nodes/${e}/generate`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeReview:e=>`nodes/${e}/review`,nodeImages:e=>`nodes/${e}/images`,workflowReview:e=>`workflows/${e}/review`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",settingsImport:"settings/import",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materialCategory:e=>`material-categories/${e}`,materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class su extends Error{constructor(n,l,s={}){super(l);ll(this,"code");ll(this,"details");this.name="ApiClientError",this.code=n,this.details=s}}async function ie(e,t){return Pt(e,{method:"GET",query:t})}async function Z(e,t){return Pt(e,{method:"POST",body:t})}async function Pt(e,t={}){const l=await(await fetch(ou(e,t.query),{method:t.method??"GET",headers:t.body===void 0?void 0:{"Content-Type":"application/json"},body:t.body===void 0?void 0:JSON.stringify(t.body)})).json();if(!l.ok)throw new su(l.error_code,l.message,l.details);return l.data}function ou(e,t){const n=e.replace(/^\/+/,""),l=new URL(`${lu}/${n}`,window.location.origin);for(const[s,i]of Object.entries(t??{}))i!==void 0&&l.searchParams.set(s,String(i));return`${l.pathname}${l.search}`}const iu={class:"web-shell"},ru={class:"sidebar"},au={class:"brand"},uu=["onClick"],cu={class:"workspace"},du={class:"topbar"},fu={class:"actions"},pu=["disabled"],hu={key:0,class:"notice error"},gu={key:1,class:"notice"},vu={key:0,class:"dashboard-grid"},_u={key:1,class:"list-view"},mu={class:"form-grid"},yu={class:"wide-field"},bu=["disabled"],wu=["disabled"],ku={key:0},xu={class:"inline-actions"},Cu={class:"badge"},Su=["disabled","onClick"],Pu={key:0,class:"empty"},Eu={key:2,class:"split-view"},Du={class:"list-view"},Tu={class:"form-grid"},Ou=["disabled"],Iu={class:"inline-actions"},Au={class:"badge"},Mu=["disabled","onClick"],Ru=["disabled","onClick"],$u=["disabled","onClick"],Bu=["disabled","onClick"],Lu={key:0,class:"empty"},Fu={key:0,class:"editor-panel"},Vu={class:"form-grid"},Nu=["disabled"],ju=["disabled","onClick"],Uu={class:"list-view"},Hu={class:"inline-actions"},Wu=["disabled"],Ku={class:"form-grid"},qu={class:"wide-field"},Ju=["disabled"],Gu=["disabled"],zu={class:"inline-actions"},Yu={class:"badge"},Qu=["disabled","onClick"],Xu={key:0,class:"empty"},Zu={class:"inline-actions"},ec={key:0,class:"badge"},tc=["disabled","onClick"],nc=["disabled","onClick"],lc=["disabled","onClick"],sc=["disabled","onClick"],oc=["disabled","onClick"],ic={key:0,class:"empty"},rc={key:0},ac={class:"editor-panel"},uc={key:0,class:"empty"},cc={key:1,class:"editor-panel"},dc={key:2},fc={key:3,class:"split-view"},pc={class:"list-view"},hc={class:"form-grid"},gc=["disabled"],vc=["disabled"],_c={class:"inline-actions"},mc=["disabled","onClick"],yc=["disabled","onClick"],bc={key:0,class:"empty"},wc={class:"list-view"},kc={class:"inline-actions"},xc=["disabled"],Cc={class:"form-grid"},Sc={value:""},Pc=["value"],Ec=["disabled"],Dc={class:"inline-actions"},Tc={class:"badge"},Oc=["disabled","onClick"],Ic=["disabled","onClick"],Ac=["disabled","onClick"],Mc={key:0,class:"empty"},Rc={key:0},$c={key:4,class:"list-view"},Bc=["disabled"],Lc={class:"form-grid"},Fc={value:""},Vc=["value"],Nc=["disabled"],jc={class:"inline-actions"},Uc=["disabled","onClick"],Hc={key:0,class:"empty"},Wc={key:0},Kc={class:"form-grid"},qc=["disabled"],Jc={key:1},Gc={key:5,class:"list-view"},zc={class:"inline-actions"},Yc=["disabled"],Qc=["disabled"],Xc={class:"form-grid"},Zc={value:""},ed=["value"],td={value:""},nd=["value"],ld={value:""},sd=["value"],od=["disabled"],id={class:"inline-actions"},rd={class:"badge"},ad=["onClick"],ud=["onClick"],cd=["disabled","onClick"],dd={key:0,class:"empty"},fd={key:0,class:"editor-panel"},pd={key:6,class:"split-view"},hd={class:"list-view"},gd=["disabled"],vd={class:"form-grid"},_d=["disabled"],md={key:0},yd={class:"list-view"},bd={class:"inline-actions"},wd={class:"badge"},kd=["disabled","onClick"],xd=["disabled","onClick"],Cd=["disabled","onClick"],Sd={key:0,class:"empty"},Pd={key:7,class:"logs-view"},Ed={class:"split-view"},Dd={class:"list-view"},Td={key:0,class:"empty"},Od={class:"list-view"},Id={class:"badge"},Ad={key:0,class:"empty"},Md={class:"split-view"},Rd={class:"list-view"},$d={key:0,class:"empty"},Bd={class:"list-view"},Ld={class:"badge"},Fd={key:0,class:"empty"},Vd={class:"list-view"},Nd={key:0,class:"empty"},jd={key:8,class:"settings-view"},Ud={class:"toolbar"},Hd=["disabled"],Wd=["disabled"],Kd=["disabled"],qd=["disabled"],Jd=["disabled"],Gd=["disabled"],zd={class:"settings-sections"},Yd={class:"editor-panel"},Qd={class:"editor-panel"},Xd=["disabled"],Zd={class:"split-view"},ef={class:"list-view"},tf={class:"list-view"},nf={class:"inspector"},lf=Dr({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",generate:"生成",adopt:"采纳",select:"选择",unselect:"取选",recognize:"识别",confirm:"确认",edit:"编辑",update:"更新",name:"名称",identity:"身份",personality:"性格",hairColor:"发色",hairstyle:"发型",eyeColor:"眼色",description:"描述",basePrompt:"基础提示词",appearancePrompt:"外观提示词",stylePrompt:"风格提示词",negativePrompt:"反向提示词",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialArchived:"素材已归档",importToWardrobe:"加入衣橱",delete:"删除",wardrobeCategory:"衣橱分类",season:"季节",style:"风格",selectMaterial:"选择素材",wardrobeImported:"衣橱条目已加入",wardrobeDeleted:"衣橱条目已删除",dailyOutfit:"每日穿搭",categories:"分类",mood:"心情",weather:"天气",keywords:"关键词",outfitGenerated:"每日穿搭已生成",dashboard:"运行概览",profiles:"角色",workflows:"工作流",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",profileCreated:"角色已创建",profileDeleted:"角色已删除",emptyProfiles:"暂无角色",workflowList:"工作流列表",workflowType:"工作流类型",workflowCreated:"工作流已创建",emptyWorkflows:"暂无工作流",nodes:"节点",images:"图片",branches:"分支",branchName:"分支名",switchBranch:"切换分支",history:"历史",review:"评审",reviewResult:"评审结果",emptyImages:"暂无图片",emptyHistory:"暂无历史",modelRoute:"模型路由",prompt:"提示词",generationQueued:"生成已入队",branchCreated:"分支已创建",imageArchived:"图片已归档",imageDeleted:"图片已删除",currentBranch:"当前分支",materialCategories:"素材分类",categoryType:"分类类型",sortOrder:"排序",categoryCreated:"分类已创建",categoryUpdated:"分类已更新",categoryDeleted:"分类已删除",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",filter:"筛选",detail:"详情",jobDetail:"任务详情",allStatuses:"全部状态",allProfiles:"全部角色",allWorkflows:"全部工作流",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",importSettings:"导入设置",importDone:"设置已导入",importDraftInvalid:"导入 JSON 格式无效",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},n=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"workflows",label:t.workflows},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],l=j("dashboard"),s=j(null),i=j(null),r=j(null),a=j([]),f=j(null),_=j([]),v=j([]),y=j(null),T=j(""),A=j([]),Q=j(null),F=j(null),fe=j(null),ae=j(null),H=j(null),oe=j(null),B=j([]),ue=j(null),Ie=j([]),Be=j([]),je=j([]),ut=j(null),ve=j({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Qe=j(null),ct=j(""),Xe=j(""),dt=j(null),wt=j(null),N=j({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),ne=j(null),G=j({display_name:"",workflow_type:"single_image"}),Le=j({branch_name:""}),Fe=j({model_route:"",prompt:"",negative_prompt:""}),Ce=j({status:"",profile_id:"",workflow_id:""}),ce=j({display_name:"",image_uri:"",tags:"",category_id:""}),xe=j({category_id:"",name:"",category_type:"material",sort_order:0}),ke=j({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),Ve=j({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),Ze=j(null),De=j({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),kt=j(null),_e=j(""),ft=j(!0),$=j(""),d=j(""),g=Ct(()=>{var p,h;return((h=(p=r.value)==null?void 0:p.items[0])==null?void 0:h.profile_id)??""}),m=Ct(()=>{var p,h;return((h=(p=r.value)==null?void 0:p.items[0])==null?void 0:h.name)??t.noProfile}),x=Ct(()=>{var h;const p=(h=i.value)==null?void 0:h.queue;return p?p.pending+p.running+p.failed+p.dead_letter:0}),k=Ct(()=>{var p;return((p=ue.value)==null?void 0:p.items.filter(h=>h.recognition_status!=="confirmed").length)??0}),w=Ct(()=>{var p;return(((p=ue.value)==null?void 0:p.items)??[]).filter(h=>h.recognition_status==="confirmed")}),D=Ct(()=>{var p;return((p=f.value)==null?void 0:p.nodes.find(h=>h.node_id===T.value))??null}),E=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],P=Ct(()=>({dashboard:t.dashboard,profiles:t.profiles,workflows:t.workflows,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[l.value]);yo(b);async function b(){var p,h;ft.value=!0,d.value="";try{const[q,he,Se,xt,bn,Gt,wn,kn,xn,Cn,Sn]=await Promise.all([ie(I.uiBootstrap),ie(I.dashboardSummary),ie(I.profiles,{page:1,page_size:20}),ie(I.jobs,{page:1,page_size:20}),ie(I.settingsSchema),ie(I.settingsCurrent),ie(I.storageStatus),ie(I.materialCategories),ie(I.materials,{page:1,page_size:24}),ie(I.apiDiscoveryDialects),ie(I.apiDiscoveryCapabilities)]);s.value=q,i.value=he,r.value=Se,F.value=xt,ae.value=bn,H.value=Gt,Jt(Gt.config),oe.value=wn,B.value=kn,ue.value=xn,Be.value=Cn,je.value=Sn,await V((p=Se.items[0])==null?void 0:p.profile_id),await z((h=Se.items[0])==null?void 0:h.profile_id),await L()}catch(q){d.value=q instanceof Error?q.message:t.loadFailed}finally{ft.value=!1}}async function L(){const[p,h,q,he,Se]=await Promise.allSettled([ie(I.generationLogs,{limit:12}),ie(I.workflowLogs,{limit:12}),ie(I.errorLogs,{limit:12}),ie(I.integrationLogs,{limit:12}),ie(I.auditLogs,{limit:12})]);ve.value={generation:O(p),workflows:O(h),errors:O(q),integrations:O(he),audit:O(Se)}}function O(p){return p.status==="fulfilled"?p.value:[]}async function M(){F.value=await ie(I.jobs,{status:Ce.value.status||void 0,profile_id:Ce.value.profile_id||void 0,workflow_id:Ce.value.workflow_id||void 0,page:1,page_size:20})}async function V(p){if(!p){Ie.value=[];return}Ie.value=await ie(I.wardrobe(p))}async function z(p){var he,Se;if(!p){a.value=[],f.value=null,_.value=[],v.value=[],T.value="",A.value=[];return}a.value=await ie(I.profileWorkflows(p));const h=(he=f.value)==null?void 0:he.workflow.workflow_id,q=a.value.some(xt=>xt.workflow_id===h)?h:(Se=a.value[0])==null?void 0:Se.workflow_id;q?await ee(q):f.value=null}async function ee(p){var Se;const h=await ie(I.workflow(p));f.value=h;const q=T.value,he=h.nodes.some(xt=>xt.node_id===q)?q:h.workflow.current_node_id||((Se=h.nodes[0])==null?void 0:Se.node_id);he?await te(he):(T.value="",A.value=[]),await be(p)}async function te(p){T.value=p,A.value=await ie(I.nodeImages(p))}async function be(p){const[h,q]=await Promise.all([ie(I.workflowBranches(p)),ie(I.workflowHistory(p))]);_.value=h,v.value=q}async function pe(){var h;const p=(h=f.value)==null?void 0:h.workflow.workflow_id;p&&await ee(p)}async function R(p,h,q=!0){$.value=p,d.value="";try{const he=await h();_e.value=`${p}${t.complete}`,p===t.exportSettings&&(_e.value=`${t.exportDone}: ${!!he.redacted}`),q&&await b()}catch(he){d.value=he instanceof Error?he.message:`${p}${t.failed}`}finally{$.value=""}}function He(p){return R(t.retry,()=>Z(I.jobRetry(p)))}function Dt(p){return R(t.cancel,()=>Z(I.jobCancel(p)))}function vn(p){return R(t.detail,async()=>(fe.value=await ie(I.job(p)),fe.value),!1)}function Ae(){N.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},ne.value=null}function We(){return R(t.quickDraft,async()=>(ne.value=await Z(I.quickProfileDraft,{questionnaire:{name:N.value.name,identity:N.value.identity,personality:Tt(N.value.personality),hair_color:N.value.hair_color,hairstyle:N.value.hairstyle,eye_color:N.value.eye_color,style:N.value.style,clothing_keywords:Tt(N.value.clothing_keywords)}}),ne.value),!1)}function _n(){var h;const p=(h=ne.value)==null?void 0:h.profile_preview;return R(t.create,async()=>{const q=await Z(I.profiles,{name:(p==null?void 0:p.name)||N.value.name,description:N.value.description,base_prompt:p==null?void 0:p.base_prompt,appearance_prompt:p==null?void 0:p.appearance_prompt,style_prompt:p==null?void 0:p.style_prompt,negative_prompt:p==null?void 0:p.negative_prompt});return Ae(),_e.value=t.profileCreated,q})}function mn(p){return R(t.delete,async()=>{const h=await Pt(I.profile(p),{method:"DELETE"});return _e.value=t.profileDeleted,h})}function Wo(){const p=g.value;return p?R(t.create,async()=>{const h=await Z(I.profileWorkflows(p),{display_name:G.value.display_name,workflow_type:G.value.workflow_type});return G.value.display_name="",f.value=h,_e.value=t.workflowCreated,h}):Promise.resolve()}function Ko(p){return R(t.start,()=>Z(I.workflowStart(p)))}function qo(p){return R(t.cancel,()=>Z(I.workflowCancel(p)))}function Jo(p){return R(t.archive,()=>Z(I.workflowArchive(p)))}function Go(){var h;const p=(h=f.value)==null?void 0:h.workflow;return!p||!Le.value.branch_name?Promise.resolve():R(t.branches,async()=>{const q=await Z(I.workflowBranches(p.workflow_id),{branch_name:Le.value.branch_name,base_branch_name:p.current_branch,base_node_id:T.value||p.current_node_id,copy_nodes:!0});return Le.value.branch_name="",await pe(),_e.value=t.branchCreated,q},!1)}function zo(p){var q;const h=(q=f.value)==null?void 0:q.workflow.workflow_id;return h?R(t.switchBranch,async()=>{const he=await Z(I.workflowSwitchBranch(h),{branch_name:p});return await pe(),he},!1):Promise.resolve()}function Yo(){var h;const p=(h=f.value)==null?void 0:h.workflow.workflow_id;return p?R(t.review,async()=>(y.value=await ie(I.workflowReview(p)),y.value),!1):Promise.resolve()}function Qo(){const p=T.value;return p?R(t.review,async()=>(y.value=await ie(I.nodeReview(p)),y.value),!1):Promise.resolve()}function Xo(){const p=T.value;return p?R(t.generate,async()=>(Q.value=await Z(I.nodeGenerate(p),{model_route:Fe.value.model_route||void 0,prompt:Fe.value.prompt||void 0,negative_prompt:Fe.value.negative_prompt||void 0}),await pe(),_e.value=t.generationQueued,Q.value),!1):Promise.resolve()}function Zo(p){const h=T.value;return h?R(t.select,async()=>{const q=await Z(I.nodeSelectImage(h),{image_id:p});return await pe(),q},!1):Promise.resolve()}function ei(p){const h=T.value;return h?R(t.adopt,async()=>{var he;const q=await Z(I.nodeAdoptImage(h),{image_id:p,title:(he=D.value)==null?void 0:he.title});return await pe(),q},!1):Promise.resolve()}function ti(p){return R(t.unselect,async()=>{const h=await Z(I.imageUnselect(p));return await pe(),h},!1)}function ni(p){return R(t.archive,async()=>{const h=await Z(I.imageArchive(p));return await pe(),_e.value=t.imageArchived,h},!1)}function li(p){return R(t.delete,async()=>{const h=await Pt(I.image(p),{method:"DELETE"});return await pe(),_e.value=t.imageDeleted,h},!1)}function si(){return R(t.moveFailed,()=>Z(I.jobDeadLetterMoveFailed,{limit:20}))}function oi(){return R(t.retryDead,()=>Z(I.jobDeadLetterRetry,{limit:20}))}function ii(){var h;const p=((h=Be.value[0])==null?void 0:h.dialect)??"unknown";return R(t.safeProbe,()=>Z(I.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:p,capabilities:{supports:["text_to_image"]}}))}function ri(){return R(t.validatePlan,async()=>(kt.value=await Z(I.apiDiscoveryValidateRenderPlan,{provider_id:De.value.provider_id,model_id:De.value.model_id,required_capabilities:Tt(De.value.required_capabilities)}),kt.value),!1)}function el(p,h){return R(t.discovery,()=>Z(I.apiDiscoveryManualOverride,{provider_id:p.provider_id,model_id:p.model_id,dialect:p.dialect,status:h,capabilities:p.capabilities}))}function ai(){const p=g.value;return p?R(t.matchWardrobe,async()=>(ut.value=await Z(I.wardrobeMatch(p),{tags:["daily"]}),ut.value),!1):Promise.resolve()}function ui(){ke.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function ci(){const p=g.value;return p?R(t.importToWardrobe,async()=>{const h=await Z(I.wardrobeImportMaterial(p),{material_id:ke.value.material_id,wardrobe_category:ke.value.wardrobe_category,tags:Tt(ke.value.tags),season:ke.value.season||void 0,style:ke.value.style||void 0});return ui(),_e.value=t.wardrobeImported,h}):Promise.resolve()}function di(p){const h=g.value;return h?R(t.delete,async()=>{const q=await Pt(I.wardrobeItem(h,p),{method:"DELETE"});return _e.value=t.wardrobeDeleted,q}):Promise.resolve()}function fi(){const p=g.value;return p?R(t.dailyOutfit,async()=>(Ze.value=await Z(I.privateCompanionDailyOutfit,{profile_id:p,categories:Tt(Ve.value.categories),mood:Ve.value.mood,weather:Ve.value.weather,keywords:Tt(Ve.value.keywords),request_source:"astrbot_plugin_private_companion"}),_e.value=t.outfitGenerated,Ze.value),!1):Promise.resolve()}function pi(){return R(t.reload,async()=>{var h;const p=await Z(I.settingsReload);return H.value={config_path:((h=H.value)==null?void 0:h.config_path)??"***PATH***",config:p.config},Jt(p.config),p},!1)}function hi(){return R(t.exportSettings,()=>ie(I.settingsExport),!1)}function Jt(p=(h=>(h=H.value)==null?void 0:h.config)()??{}){ct.value=JSON.stringify(p,null,2),dt.value=null,wt.value=null}function tl(){try{const p=JSON.parse(ct.value);if(!p||Array.isArray(p)||typeof p!="object")throw new Error(t.settingsDraftInvalid);return p}catch(p){throw new Error(p instanceof Error?p.message:t.settingsDraftInvalid)}}function gi(){try{const p=JSON.parse(Xe.value);if(!p||Array.isArray(p)||typeof p!="object")throw new Error(t.importDraftInvalid);return p}catch(p){throw new Error(p instanceof Error?p.message:t.importDraftInvalid)}}function vi(){return R(t.validate,async()=>(dt.value=await Z(I.settingsValidate,{config:tl()}),dt.value),!1)}function _i(){return R(t.diff,async()=>(wt.value=await Z(I.settingsDiff,{config:tl()}),wt.value),!1)}function mi(){return R(t.save,async()=>{var h;const p=await Z(I.settingsSave,{config:tl()});return H.value={config_path:((h=H.value)==null?void 0:h.config_path)??"***PATH***",config:p.config},Jt(p.config),_e.value=t.settingsSaved,p},!1)}function yi(){return R(t.importSettings,async()=>{var h;const p=await Z(I.settingsImport,{config:gi()});return H.value={config_path:((h=H.value)==null?void 0:h.config_path)??"***PATH***",config:p.config},Jt(p.config),Xe.value="",_e.value=t.importDone,p},!1)}function bi(){var h,q;const p=(q=(h=ue.value)==null?void 0:h.items.find(he=>{var Se;return(Se=he.image_uri)==null?void 0:Se.startsWith("storage://")}))==null?void 0:q.image_uri;return p?R(t.signMaterial,async()=>(Qe.value=await ie(I.mediaSign,{uri:p}),Qe.value),!1):(_e.value=t.noSignableMaterial,Promise.resolve())}function yn(){xe.value={category_id:"",name:"",category_type:"material",sort_order:0}}function wi(p){xe.value={category_id:p.category_id,name:p.name,category_type:p.category_type,sort_order:p.sort_order}}function ki(){const p={name:xe.value.name,category_type:xe.value.category_type,sort_order:Number(xe.value.sort_order)||0};return xe.value.category_id?R(t.update,async()=>{const h=await Pt(I.materialCategory(xe.value.category_id),{method:"PUT",body:p});return yn(),_e.value=t.categoryUpdated,h}):R(t.create,async()=>{const h=await Z(I.materialCategories,p);return yn(),_e.value=t.categoryCreated,h})}function xi(p){return R(t.delete,async()=>{const h=await Pt(I.materialCategory(p),{method:"DELETE"});return xe.value.category_id===p&&yn(),_e.value=t.categoryDeleted,h})}function Ci(){ce.value={display_name:"",image_uri:"",tags:"",category_id:""}}function Si(){return R(t.create,async()=>{const p=await Z(I.materials,{display_name:ce.value.display_name,image_uri:ce.value.image_uri||void 0,thumbnail_uri:ce.value.image_uri||void 0,category_id:ce.value.category_id||void 0,tags:Tt(ce.value.tags),recognition_status:ce.value.image_uri?"pending_recognition":"pending_upload"});return Ci(),_e.value=t.materialCreated,p})}function Pi(p){return R(t.recognize,()=>Z(I.materialRecognize(p)))}function Ei(p){return R(t.confirm,()=>Z(I.materialConfirm(p.material_id),{display_name:p.display_name,prompt:p.prompt,negative_prompt:p.negative_prompt,tags:p.tags}))}function Di(p){return R(t.archive,async()=>{const h=await Pt(I.material(p),{method:"DELETE"});return _e.value=t.materialArchived,h})}function Tt(p){return p.split(",").map(h=>h.trim()).filter(Boolean)}function nl(p=0){return p<1024?`${p} B`:p<1024*1024?`${(p/1024).toFixed(1)} KB`:p<1024*1024*1024?`${(p/1024/1024).toFixed(1)} MB`:`${(p/1024/1024/1024).toFixed(1)} GB`}function Hl(p){var h,q;return((q=(h=oe.value)==null?void 0:h.roots.find(he=>he.uri_prefix===p))==null?void 0:q.bytes)??0}return(p,h)=>{var q,he,Se,xt,bn,Gt,wn,kn,xn,Cn,Sn,Wl,Kl,ql,Jl,Gl,zl,Yl,Ql,Xl,Zl,es,ts,ns,ls,ss;return C(),S("main",iu,[o("aside",ru,[o("div",au,[o("strong",null,u(((q=s.value)==null?void 0:q.display_name)??"ImageStudio"),1),o("span",null,u(((he=s.value)==null?void 0:he.dashboard_user)??"AstrBot"),1)]),o("nav",null,[(C(),S(Y,null,ye(n,c=>o("button",{key:c.key,type:"button",class:Jn({active:l.value===c.key}),onClick:me=>l.value=c.key},u(c.label),11,uu)),64))])]),o("section",cu,[o("header",du,[o("div",null,[o("h1",null,u(P.value),1),o("p",null,u(((Se=i.value)==null?void 0:Se.plugin_status)??"loading")+" / "+u(_e.value||t.waiting),1)]),o("div",fu,[o("button",{type:"button",disabled:!!$.value,onClick:b},u($.value||t.refresh),9,pu)])]),d.value?(C(),S("section",hu,u(d.value),1)):ft.value?(C(),S("section",gu,u(t.loading),1)):(C(),S(Y,{key:2},[l.value==="dashboard"?(C(),S("section",vu,[o("article",null,[o("span",null,u(t.profiles),1),o("strong",null,u(((xt=i.value)==null?void 0:xt.active_profiles)??0),1)]),o("article",null,[o("span",null,u(t.jobs),1),o("strong",null,u(x.value),1)]),o("article",null,[o("span",null,u(t.materials),1),o("strong",null,u(((bn=ue.value)==null?void 0:bn.total)??0),1)]),o("article",null,[o("span",null,u(t.storage),1),o("strong",null,u(nl(((Gt=oe.value)==null?void 0:Gt.total_bytes)??((wn=i.value)==null?void 0:wn.storage.total_bytes))),1)])])):J("",!0),l.value==="profiles"?(C(),S("section",_u,[o("header",null,[o("h2",null,u(t.profileList),1),o("span",null,u(((kn=r.value)==null?void 0:kn.total)??0),1)]),o("div",mu,[o("label",null,[o("span",null,u(t.name),1),K(o("input",{"onUpdate:modelValue":h[0]||(h[0]=c=>N.value.name=c),type:"text"},null,512),[[X,N.value.name]])]),o("label",null,[o("span",null,u(t.identity),1),K(o("input",{"onUpdate:modelValue":h[1]||(h[1]=c=>N.value.identity=c),type:"text"},null,512),[[X,N.value.identity]])]),o("label",null,[o("span",null,u(t.personality),1),K(o("input",{"onUpdate:modelValue":h[2]||(h[2]=c=>N.value.personality=c),type:"text",placeholder:"calm, brave"},null,512),[[X,N.value.personality]])]),o("label",null,[o("span",null,u(t.hairColor),1),K(o("input",{"onUpdate:modelValue":h[3]||(h[3]=c=>N.value.hair_color=c),type:"text"},null,512),[[X,N.value.hair_color]])]),o("label",null,[o("span",null,u(t.hairstyle),1),K(o("input",{"onUpdate:modelValue":h[4]||(h[4]=c=>N.value.hairstyle=c),type:"text"},null,512),[[X,N.value.hairstyle]])]),o("label",null,[o("span",null,u(t.eyeColor),1),K(o("input",{"onUpdate:modelValue":h[5]||(h[5]=c=>N.value.eye_color=c),type:"text"},null,512),[[X,N.value.eye_color]])]),o("label",null,[o("span",null,u(t.stylePrompt),1),K(o("input",{"onUpdate:modelValue":h[6]||(h[6]=c=>N.value.style=c),type:"text"},null,512),[[X,N.value.style]])]),o("label",null,[o("span",null,u(t.tags),1),K(o("input",{"onUpdate:modelValue":h[7]||(h[7]=c=>N.value.clothing_keywords=c),type:"text",placeholder:"white blouse, ribbon"},null,512),[[X,N.value.clothing_keywords]])]),o("label",yu,[o("span",null,u(t.description),1),K(o("input",{"onUpdate:modelValue":h[8]||(h[8]=c=>N.value.description=c),type:"text"},null,512),[[X,N.value.description]])]),o("button",{type:"button",disabled:!!$.value||!N.value.name,onClick:We},u(t.quickDraft),9,bu),o("button",{type:"button",disabled:!!$.value||!N.value.name,onClick:_n},u(t.create),9,wu)]),ne.value?(C(),S("pre",ku,u(JSON.stringify(ne.value,null,2)),1)):J("",!0),o("ul",null,[(C(!0),S(Y,null,ye(((xn=r.value)==null?void 0:xn.items)??[],c=>(C(),S("li",{key:c.profile_id},[o("div",null,[o("strong",null,u(c.name),1),o("small",null,u(c.profile_id),1)]),o("div",xu,[o("span",Cu,u(c.status),1),o("button",{type:"button",disabled:!!$.value,onClick:me=>mn(c.profile_id)},u(t.delete),9,Su)])]))),128)),(Cn=r.value)!=null&&Cn.items.length?J("",!0):(C(),S("li",Pu,u(t.emptyProfiles),1))])])):J("",!0),l.value==="workflows"?(C(),S("section",Eu,[o("div",Du,[o("header",null,[o("h2",null,u(m.value),1),o("span",null,u(a.value.length),1)]),o("div",Tu,[o("label",null,[o("span",null,u(t.name),1),K(o("input",{"onUpdate:modelValue":h[9]||(h[9]=c=>G.value.display_name=c),type:"text"},null,512),[[X,G.value.display_name]])]),o("label",null,[o("span",null,u(t.workflowType),1),K(o("select",{"onUpdate:modelValue":h[10]||(h[10]=c=>G.value.workflow_type=c)},[...h[40]||(h[40]=[o("option",{value:"single_image"},"single_image",-1),o("option",{value:"character_gradual"},"character_gradual",-1),o("option",{value:"character_fast"},"character_fast",-1),o("option",{value:"quick_profile"},"quick_profile",-1)])],512),[[Ft,G.value.workflow_type]])]),o("button",{type:"button",disabled:!!$.value||!g.value||!G.value.display_name,onClick:Wo},u(t.create),9,Ou)]),o("ul",null,[(C(!0),S(Y,null,ye(a.value,c=>(C(),S("li",{key:c.workflow_id},[o("div",null,[o("strong",null,u(c.display_name),1),o("small",null,u(c.workflow_type)+" / "+u(c.workflow_id),1)]),o("div",Iu,[o("span",Au,u(c.status),1),o("button",{type:"button",disabled:!!$.value,onClick:me=>ee(c.workflow_id)},u(t.nodes),9,Mu),o("button",{type:"button",disabled:!!$.value,onClick:me=>Ko(c.workflow_id)},u(t.start),9,Ru),o("button",{type:"button",disabled:!!$.value,onClick:me=>qo(c.workflow_id)},u(t.cancel),9,$u),o("button",{type:"button",disabled:!!$.value,onClick:me=>Jo(c.workflow_id)},u(t.archive),9,Bu)])]))),128)),a.value.length?J("",!0):(C(),S("li",Lu,u(t.emptyWorkflows),1))]),f.value?(C(),S("section",Fu,[o("header",null,[o("h2",null,u(t.branches),1),o("span",null,u(_.value.length),1)]),o("div",Vu,[o("label",null,[o("span",null,u(t.branchName),1),K(o("input",{"onUpdate:modelValue":h[11]||(h[11]=c=>Le.value.branch_name=c),type:"text",placeholder:"alt_pose"},null,512),[[X,Le.value.branch_name]])]),o("button",{type:"button",disabled:!!$.value||!Le.value.branch_name,onClick:Go},u(t.create),9,Nu)]),o("ul",null,[(C(!0),S(Y,null,ye(_.value,c=>(C(),S("li",{key:c.branch_id},[o("div",null,[o("strong",null,u(c.branch_name),1),o("small",null,u(c.base_branch_name??"main")+" / "+u(c.status),1)]),o("button",{type:"button",disabled:!!$.value,onClick:me=>zo(c.branch_name)},u(t.switchBranch),9,ju)]))),128))])])):J("",!0)]),o("div",Uu,[o("header",null,[o("h2",null,u(t.nodes),1),o("div",Hu,[o("span",null,u(((Sn=f.value)==null?void 0:Sn.workflow.current_branch)??"main"),1),o("button",{type:"button",disabled:!!$.value||!f.value,onClick:Yo},u(t.review),9,Wu)])]),o("div",Ku,[o("label",null,[o("span",null,u(t.modelRoute),1),K(o("input",{"onUpdate:modelValue":h[12]||(h[12]=c=>Fe.value.model_route=c),type:"text",placeholder:"image_low"},null,512),[[X,Fe.value.model_route]])]),o("label",null,[o("span",null,u(t.prompt),1),K(o("input",{"onUpdate:modelValue":h[13]||(h[13]=c=>Fe.value.prompt=c),type:"text"},null,512),[[X,Fe.value.prompt]])]),o("label",qu,[o("span",null,u(t.negativePrompt),1),K(o("input",{"onUpdate:modelValue":h[14]||(h[14]=c=>Fe.value.negative_prompt=c),type:"text"},null,512),[[X,Fe.value.negative_prompt]])]),o("button",{type:"button",disabled:!!$.value||!T.value,onClick:Xo},u(t.generate),9,Ju),o("button",{type:"button",disabled:!!$.value||!T.value,onClick:Qo},u(t.review),9,Gu)]),o("ul",null,[(C(!0),S(Y,null,ye(((Wl=f.value)==null?void 0:Wl.nodes)??[],c=>(C(),S("li",{key:c.node_id},[o("div",null,[o("strong",null,u(c.title),1),o("small",null,u(c.node_key)+" / "+u(c.node_id),1)]),o("div",zu,[o("span",null,u(c.branch_name),1),o("span",Yu,u(c.status),1),o("button",{type:"button",disabled:!!$.value,onClick:me=>te(c.node_id)},u(t.images),9,Qu)])]))),128)),(Kl=f.value)!=null&&Kl.nodes.length?J("",!0):(C(),S("li",Xu,u(t.emptyWorkflows),1))]),o("ul",null,[(C(!0),S(Y,null,ye(A.value,c=>(C(),S("li",{key:c.image_id},[o("div",null,[o("strong",null,u(c.image_id),1),o("small",null,u(c.thumbnail_uri??c.image_uri),1)]),o("div",Zu,[c.is_selected?(C(),S("span",ec,u(t.select),1)):J("",!0),o("button",{type:"button",disabled:!!$.value||c.is_selected||c.is_archived,onClick:me=>Zo(c.image_id)},u(t.select),9,tc),o("button",{type:"button",disabled:!!$.value||c.is_archived,onClick:me=>ei(c.image_id)},u(t.adopt),9,nc),o("button",{type:"button",disabled:!!$.value||!c.is_selected,onClick:me=>ti(c.image_id)},u(t.unselect),9,lc),o("button",{type:"button",disabled:!!$.value||c.is_archived,onClick:me=>ni(c.image_id)},u(t.archive),9,sc),o("button",{type:"button",disabled:!!$.value,onClick:me=>li(c.image_id)},u(t.delete),9,oc)])]))),128)),A.value.length?J("",!0):(C(),S("li",ic,u(t.emptyImages),1))]),Q.value?(C(),S("pre",rc,u(JSON.stringify(Q.value,null,2)),1)):J("",!0),o("section",ac,[o("header",null,[o("h2",null,u(t.history),1),o("span",null,u(v.value.length),1)]),o("ul",null,[(C(!0),S(Y,null,ye(v.value,c=>(C(),S("li",{key:c.history_id},[o("div",null,[o("strong",null,u(c.action),1),o("small",null,u(c.title??c.node_id??c.workflow_id),1)]),o("span",null,u(c.branch_name),1)]))),128)),v.value.length?J("",!0):(C(),S("li",uc,u(t.emptyHistory),1))])]),y.value?(C(),S("section",cc,[o("header",null,[o("h2",null,u(t.reviewResult),1),o("span",null,u(y.value.passed?t.support:t.unsupported),1)]),o("pre",null,u(JSON.stringify(y.value,null,2)),1)])):J("",!0),f.value?(C(),S("pre",dc,u(JSON.stringify(f.value.workflow,null,2)),1)):J("",!0)])])):J("",!0),l.value==="materials"?(C(),S("section",fc,[o("div",pc,[o("header",null,[o("h2",null,u(t.materialCategories),1),o("span",null,u(B.value.length),1)]),o("div",hc,[o("label",null,[o("span",null,u(t.name),1),K(o("input",{"onUpdate:modelValue":h[15]||(h[15]=c=>xe.value.name=c),type:"text"},null,512),[[X,xe.value.name]])]),o("label",null,[o("span",null,u(t.categoryType),1),K(o("input",{"onUpdate:modelValue":h[16]||(h[16]=c=>xe.value.category_type=c),type:"text"},null,512),[[X,xe.value.category_type]])]),o("label",null,[o("span",null,u(t.sortOrder),1),K(o("input",{"onUpdate:modelValue":h[17]||(h[17]=c=>xe.value.sort_order=c),type:"number"},null,512),[[X,xe.value.sort_order,void 0,{number:!0}]])]),o("button",{type:"button",disabled:!!$.value||!xe.value.name,onClick:ki},u(xe.value.category_id?t.update:t.create),9,gc),o("button",{type:"button",disabled:!!$.value,onClick:yn},u(t.reset),9,vc)]),o("ul",null,[(C(!0),S(Y,null,ye(B.value,c=>(C(),S("li",{key:c.category_id},[o("div",null,[o("strong",null,u(c.name),1),o("small",null,u(c.category_type),1)]),o("div",_c,[o("span",null,u(c.sort_order),1),o("button",{type:"button",disabled:!!$.value,onClick:me=>wi(c)},u(t.edit),9,mc),o("button",{type:"button",disabled:!!$.value,onClick:me=>xi(c.category_id)},u(t.delete),9,yc)])]))),128)),B.value.length?J("",!0):(C(),S("li",bc,u(t.emptyCategories),1))])]),o("div",wc,[o("header",null,[o("h2",null,u(t.materialItems),1),o("div",kc,[o("span",null,u(k.value)+" "+u(t.pendingConfirm),1),o("button",{type:"button",disabled:!!$.value,onClick:bi},u(t.signFirstImage),9,xc)])]),o("div",Cc,[o("label",null,[o("span",null,u(t.name),1),K(o("input",{"onUpdate:modelValue":h[18]||(h[18]=c=>ce.value.display_name=c),type:"text"},null,512),[[X,ce.value.display_name]])]),o("label",null,[o("span",null,u(t.imageUri),1),K(o("input",{"onUpdate:modelValue":h[19]||(h[19]=c=>ce.value.image_uri=c),type:"text",placeholder:"storage://materials/example.png"},null,512),[[X,ce.value.image_uri]])]),o("label",null,[o("span",null,u(t.category),1),K(o("select",{"onUpdate:modelValue":h[20]||(h[20]=c=>ce.value.category_id=c)},[o("option",Sc,u(t.allCategories),1),(C(!0),S(Y,null,ye(B.value,c=>(C(),S("option",{key:c.category_id,value:c.category_id},u(c.name),9,Pc))),128))],512),[[Ft,ce.value.category_id]])]),o("label",null,[o("span",null,u(t.tags),1),K(o("input",{"onUpdate:modelValue":h[21]||(h[21]=c=>ce.value.tags=c),type:"text",placeholder:"daily, top"},null,512),[[X,ce.value.tags]])]),o("button",{type:"button",disabled:!!$.value||!ce.value.display_name,onClick:Si},u(t.create),9,Ec)]),o("ul",null,[(C(!0),S(Y,null,ye(((ql=ue.value)==null?void 0:ql.items)??[],c=>(C(),S("li",{key:c.material_id},[o("div",null,[o("strong",null,u(c.display_name),1),o("small",null,u(c.image_uri??t.noImage),1)]),o("div",Dc,[o("span",Tc,u(c.recognition_status),1),o("button",{type:"button",disabled:!!$.value,onClick:me=>Pi(c.material_id)},u(t.recognize),9,Oc),o("button",{type:"button",disabled:!!$.value||c.recognition_status==="confirmed",onClick:me=>Ei(c)},u(t.confirm),9,Ic),o("button",{type:"button",disabled:!!$.value,onClick:me=>Di(c.material_id)},u(t.archive),9,Ac)])]))),128)),(Jl=ue.value)!=null&&Jl.items.length?J("",!0):(C(),S("li",Mc,u(t.emptyMaterials),1))]),Qe.value?(C(),S("pre",Rc,u(JSON.stringify(Qe.value,null,2)),1)):J("",!0)])])):J("",!0),l.value==="wardrobe"?(C(),S("section",$c,[o("header",null,[o("h2",null,u(m.value),1),o("button",{type:"button",disabled:!g.value||!!$.value,onClick:ai},u(t.match),9,Bc)]),o("div",Lc,[o("label",null,[o("span",null,u(t.selectMaterial),1),K(o("select",{"onUpdate:modelValue":h[22]||(h[22]=c=>ke.value.material_id=c)},[o("option",Fc,u(t.selectMaterial),1),(C(!0),S(Y,null,ye(w.value,c=>(C(),S("option",{key:c.material_id,value:c.material_id},u(c.display_name),9,Vc))),128))],512),[[Ft,ke.value.material_id]])]),o("label",null,[o("span",null,u(t.wardrobeCategory),1),K(o("input",{"onUpdate:modelValue":h[23]||(h[23]=c=>ke.value.wardrobe_category=c),type:"text"},null,512),[[X,ke.value.wardrobe_category]])]),o("label",null,[o("span",null,u(t.tags),1),K(o("input",{"onUpdate:modelValue":h[24]||(h[24]=c=>ke.value.tags=c),type:"text",placeholder:"daily, top"},null,512),[[X,ke.value.tags]])]),o("label",null,[o("span",null,u(t.season),1),K(o("input",{"onUpdate:modelValue":h[25]||(h[25]=c=>ke.value.season=c),type:"text"},null,512),[[X,ke.value.season]])]),o("label",null,[o("span",null,u(t.style),1),K(o("input",{"onUpdate:modelValue":h[26]||(h[26]=c=>ke.value.style=c),type:"text"},null,512),[[X,ke.value.style]])]),o("button",{type:"button",disabled:!!$.value||!g.value||!ke.value.material_id||!ke.value.wardrobe_category,onClick:ci},u(t.importToWardrobe),9,Nc)]),o("ul",null,[(C(!0),S(Y,null,ye(Ie.value,c=>(C(),S("li",{key:c.wardrobe_item_id},[o("div",null,[o("strong",null,u(c.wardrobe_category),1),o("small",null,u(c.material_id)+" / "+u(c.tags.join(", ")||t.noTags),1)]),o("div",jc,[o("span",null,u(c.usage_count),1),o("button",{type:"button",disabled:!!$.value,onClick:me=>di(c.wardrobe_item_id)},u(t.delete),9,Uc)])]))),128)),Ie.value.length?J("",!0):(C(),S("li",Hc,u(t.emptyWardrobe),1))]),ut.value?(C(),S("pre",Wc,u(JSON.stringify(ut.value,null,2)),1)):J("",!0),o("div",Kc,[o("label",null,[o("span",null,u(t.categories),1),K(o("input",{"onUpdate:modelValue":h[27]||(h[27]=c=>Ve.value.categories=c),type:"text"},null,512),[[X,Ve.value.categories]])]),o("label",null,[o("span",null,u(t.mood),1),K(o("input",{"onUpdate:modelValue":h[28]||(h[28]=c=>Ve.value.mood=c),type:"text"},null,512),[[X,Ve.value.mood]])]),o("label",null,[o("span",null,u(t.weather),1),K(o("input",{"onUpdate:modelValue":h[29]||(h[29]=c=>Ve.value.weather=c),type:"text"},null,512),[[X,Ve.value.weather]])]),o("label",null,[o("span",null,u(t.keywords),1),K(o("input",{"onUpdate:modelValue":h[30]||(h[30]=c=>Ve.value.keywords=c),type:"text"},null,512),[[X,Ve.value.keywords]])]),o("button",{type:"button",disabled:!!$.value||!g.value,onClick:fi},u(t.dailyOutfit),9,qc)]),Ze.value?(C(),S("pre",Jc,u(JSON.stringify(Ze.value,null,2)),1)):J("",!0)])):J("",!0),l.value==="jobs"?(C(),S("section",Gc,[o("header",null,[o("h2",null,u(t.jobs),1),o("div",zc,[o("button",{type:"button",disabled:!!$.value,onClick:si},u(t.moveFailed),9,Yc),o("button",{type:"button",disabled:!!$.value,onClick:oi},u(t.retryDead),9,Qc)])]),o("div",Xc,[o("label",null,[h[41]||(h[41]=o("span",null,"Status",-1)),K(o("select",{"onUpdate:modelValue":h[31]||(h[31]=c=>Ce.value.status=c)},[o("option",Zc,u(t.allStatuses),1),(C(),S(Y,null,ye(E,c=>o("option",{key:c,value:c},u(c),9,ed)),64))],512),[[Ft,Ce.value.status]])]),o("label",null,[o("span",null,u(t.profiles),1),K(o("select",{"onUpdate:modelValue":h[32]||(h[32]=c=>Ce.value.profile_id=c)},[o("option",td,u(t.allProfiles),1),(C(!0),S(Y,null,ye(((Gl=r.value)==null?void 0:Gl.items)??[],c=>(C(),S("option",{key:c.profile_id,value:c.profile_id},u(c.name),9,nd))),128))],512),[[Ft,Ce.value.profile_id]])]),o("label",null,[o("span",null,u(t.workflows),1),K(o("select",{"onUpdate:modelValue":h[33]||(h[33]=c=>Ce.value.workflow_id=c)},[o("option",ld,u(t.allWorkflows),1),(C(!0),S(Y,null,ye(a.value,c=>(C(),S("option",{key:c.workflow_id,value:c.workflow_id},u(c.display_name),9,sd))),128))],512),[[Ft,Ce.value.workflow_id]])]),o("button",{type:"button",disabled:!!$.value,onClick:M},u(t.filter),9,od)]),o("ul",null,[(C(!0),S(Y,null,ye(((zl=F.value)==null?void 0:zl.items)??[],c=>(C(),S("li",{key:c.task_id},[o("div",null,[o("strong",null,u(c.task_id),1),o("small",null,u(c.task_type)+" / "+u(c.progress)+"%",1)]),o("div",id,[o("span",rd,u(c.status),1),["failed","dead_letter","cancelled"].includes(c.status)?(C(),S("button",{key:0,type:"button",onClick:me=>He(c.task_id)},u(t.retry),9,ad)):J("",!0),["completed","succeeded","cancelled"].includes(c.status)?J("",!0):(C(),S("button",{key:1,type:"button",onClick:me=>Dt(c.task_id)},u(t.cancel),9,ud)),o("button",{type:"button",disabled:!!$.value,onClick:me=>vn(c.task_id)},u(t.detail),9,cd)])]))),128)),(Yl=F.value)!=null&&Yl.items.length?J("",!0):(C(),S("li",dd,u(t.emptyJobs),1))]),fe.value?(C(),S("section",fd,[o("header",null,[o("h2",null,u(t.jobDetail),1),o("span",null,u(fe.value.status),1)]),o("pre",null,u(JSON.stringify(fe.value,null,2)),1)])):J("",!0)])):J("",!0),l.value==="discovery"?(C(),S("section",pd,[o("div",hd,[o("header",null,[o("h2",null,u(t.dialects),1),o("button",{type:"button",disabled:!!$.value,onClick:ii},u(t.safeProbe),9,gd)]),o("ul",null,[(C(!0),S(Y,null,ye(Be.value,c=>(C(),S("li",{key:c.dialect},[o("div",null,[o("strong",null,u(c.label),1),o("small",null,u(c.capabilities.join(", ")||t.unconfirmed),1)]),o("span",null,u(c.dialect),1)]))),128))]),o("div",vd,[o("label",null,[o("span",null,u(t.provider),1),K(o("input",{"onUpdate:modelValue":h[34]||(h[34]=c=>De.value.provider_id=c),type:"text",placeholder:"local-preview"},null,512),[[X,De.value.provider_id]])]),o("label",null,[o("span",null,u(t.model),1),K(o("input",{"onUpdate:modelValue":h[35]||(h[35]=c=>De.value.model_id=c),type:"text",placeholder:"metadata-only"},null,512),[[X,De.value.model_id]])]),o("label",null,[o("span",null,u(t.requiredCapabilities),1),K(o("input",{"onUpdate:modelValue":h[36]||(h[36]=c=>De.value.required_capabilities=c),type:"text",placeholder:"text_to_image"},null,512),[[X,De.value.required_capabilities]])]),o("button",{type:"button",disabled:!!$.value||!De.value.provider_id||!De.value.model_id,onClick:ri},u(t.validatePlan),9,_d)]),kt.value?(C(),S("pre",md,u(JSON.stringify(kt.value,null,2)),1)):J("",!0)]),o("div",yd,[o("header",null,[o("h2",null,u(t.capabilityProfiles),1),o("span",null,u(je.value.length),1)]),o("ul",null,[(C(!0),S(Y,null,ye(je.value,c=>(C(),S("li",{key:c.capability_profile_id},[o("div",null,[o("strong",null,u(c.provider_id)+" / "+u(c.model_id),1),o("small",null,u(c.dialect),1)]),o("div",bd,[o("span",wd,u(c.status),1),o("button",{type:"button",disabled:!!$.value,onClick:me=>el(c,"confirmed_supported")},u(t.support),9,kd),o("button",{type:"button",disabled:!!$.value,onClick:me=>el(c,"confirmed_unsupported")},u(t.unsupported),9,xd),o("button",{type:"button",disabled:!!$.value,onClick:me=>el(c,"unconfirmed")},u(t.unconfirmed),9,Cd)])]))),128)),je.value.length?J("",!0):(C(),S("li",Sd,u(t.emptyCapabilities),1))])])])):J("",!0),l.value==="logs"?(C(),S("section",Pd,[o("div",Ed,[o("div",Dd,[o("header",null,[o("h2",null,u(t.generationLogs),1),o("span",null,u(ve.value.generation.length),1)]),o("ul",null,[(C(!0),S(Y,null,ye(ve.value.generation,c=>(C(),S("li",{key:c.task_id},[o("div",null,[o("strong",null,u(c.task_id),1),o("small",null,u(c.status)+" / "+u(c.progress)+"%",1)]),o("span",null,u(c.created_at),1)]))),128)),ve.value.generation.length?J("",!0):(C(),S("li",Td,u(t.emptyGenerationLogs),1))])]),o("div",Od,[o("header",null,[o("h2",null,u(t.errorLogs),1),o("span",null,u(ve.value.errors.length),1)]),o("ul",null,[(C(!0),S(Y,null,ye(ve.value.errors,c=>(C(),S("li",{key:`${c.source}-${c.id}`},[o("div",null,[o("strong",null,u(c.source),1),o("small",null,u(c.error_message??t.noErrorDetail),1)]),o("span",Id,u(c.status),1)]))),128)),ve.value.errors.length?J("",!0):(C(),S("li",Ad,u(t.emptyErrors),1))])])]),o("div",Md,[o("div",Rd,[o("header",null,[o("h2",null,u(t.workflowLogs),1),o("span",null,u(ve.value.workflows.length),1)]),o("ul",null,[(C(!0),S(Y,null,ye(ve.value.workflows,c=>(C(),S("li",{key:c.history_id},[o("div",null,[o("strong",null,u(c.action),1),o("small",null,u(c.title??c.workflow_id),1)]),o("span",null,u(c.branch_name??"main"),1)]))),128)),ve.value.workflows.length?J("",!0):(C(),S("li",$d,u(t.emptyWorkflowLogs),1))])]),o("div",Bd,[o("header",null,[o("h2",null,u(t.integrationLogs),1),o("span",null,u(ve.value.integrations.length),1)]),o("ul",null,[(C(!0),S(Y,null,ye(ve.value.integrations,c=>(C(),S("li",{key:c.integration_log_id},[o("div",null,[o("strong",null,u(c.integration_name),1),o("small",null,u(c.action),1)]),o("span",Ld,u(c.status),1)]))),128)),ve.value.integrations.length?J("",!0):(C(),S("li",Fd,u(t.emptyIntegrationLogs),1))])])]),o("div",Vd,[o("header",null,[o("h2",null,u(t.auditLogs),1),o("span",null,u(ve.value.audit.length),1)]),o("ul",null,[(C(!0),S(Y,null,ye(ve.value.audit,c=>(C(),S("li",{key:c.audit_id},[o("div",null,[o("strong",null,u(c.action),1),o("small",null,u(c.actor_type)+" / "+u(c.target_type)+" / "+u(c.target_id),1)]),o("span",null,u(c.created_at),1)]))),128)),ve.value.audit.length?J("",!0):(C(),S("li",Nd,u(t.emptyAuditLogs),1))])])])):J("",!0),l.value==="settings"?(C(),S("section",jd,[o("div",Ud,[o("button",{type:"button",disabled:!!$.value,onClick:pi},u(t.reload),9,Hd),o("button",{type:"button",disabled:!!$.value,onClick:h[37]||(h[37]=c=>Jt())},u(t.reset),9,Wd),o("button",{type:"button",disabled:!!$.value,onClick:vi},u(t.validate),9,Kd),o("button",{type:"button",disabled:!!$.value,onClick:_i},u(t.diff),9,qd),o("button",{type:"button",disabled:!!$.value,onClick:mi},u(t.save),9,Jd),o("button",{type:"button",disabled:!!$.value,onClick:hi},u(t.exportRedacted),9,Gd)]),o("div",zd,[(C(!0),S(Y,null,ye(((Ql=ae.value)==null?void 0:Ql.sections)??[],c=>(C(),S("article",{key:c.key},[o("h2",null,u(c.title),1),o("span",null,u(c.fields.length),1)]))),128))]),o("section",Yd,[o("header",null,[o("h2",null,u(t.settingsEditor),1),o("span",null,u(((Xl=H.value)==null?void 0:Xl.config_path)??"***PATH***"),1)]),K(o("textarea",{"onUpdate:modelValue":h[38]||(h[38]=c=>ct.value=c),spellcheck:"false"},null,512),[[X,ct.value]])]),o("section",Qd,[o("header",null,[o("h2",null,u(t.importSettings),1),o("button",{type:"button",disabled:!!$.value||!Xe.value,onClick:yi},u(t.importSettings),9,Xd)]),K(o("textarea",{"onUpdate:modelValue":h[39]||(h[39]=c=>Xe.value=c),spellcheck:"false"},null,512),[[X,Xe.value]])]),o("div",Zd,[o("div",ef,[o("header",null,[o("h2",null,u(t.validationResult),1),o("span",null,u(((Zl=dt.value)==null?void 0:Zl.valid)??"-"),1)]),o("pre",null,u(JSON.stringify(dt.value??{},null,2)),1)]),o("div",tf,[o("header",null,[o("h2",null,u(t.diffResult),1),o("span",null,u(((es=wt.value)==null?void 0:es.changes.length)??0),1)]),o("pre",null,u(JSON.stringify(wt.value??{},null,2)),1)])])])):J("",!0)],64))]),o("aside",nf,[o("h2",null,u(t.running),1),o("dl",null,[o("div",null,[h[42]||(h[42]=o("dt",null,"Pending",-1)),o("dd",null,u(((ts=i.value)==null?void 0:ts.queue.pending)??0),1)]),o("div",null,[h[43]||(h[43]=o("dt",null,"Running",-1)),o("dd",null,u(((ns=i.value)==null?void 0:ns.queue.running)??0),1)]),o("div",null,[h[44]||(h[44]=o("dt",null,"Failed",-1)),o("dd",null,u(((ls=i.value)==null?void 0:ls.queue.failed)??0),1)]),o("div",null,[h[45]||(h[45]=o("dt",null,"Dead",-1)),o("dd",null,u(((ss=i.value)==null?void 0:ss.queue.dead_letter)??0),1)])]),o("h2",null,u(t.storage),1),o("dl",null,[o("div",null,[h[46]||(h[46]=o("dt",null,"Images",-1)),o("dd",null,u(nl(Hl("storage://images/"))),1)]),o("div",null,[h[47]||(h[47]=o("dt",null,"Materials",-1)),o("dd",null,u(nl(Hl("storage://materials/"))),1)])])])])}}}),sf=(e,t)=>{const n=e.__vccOpts||e;for(const[l,s]of t)n[l]=s;return n},of=sf(lf,[["__scopeId","data-v-5cb4da0d"]]);eu(of).mount("#app"); diff --git a/web/assets/index-CWrP2aiz.js b/web/assets/index-CWrP2aiz.js new file mode 100644 index 0000000..b46e9f2 --- /dev/null +++ b/web/assets/index-CWrP2aiz.js @@ -0,0 +1,17 @@ +var Oi=Object.defineProperty;var Ii=(e,t,n)=>t in e?Oi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var sl=(e,t,n)=>Ii(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&l(r)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function l(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();/** +* @vue/shared v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function El(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const de={},Ut=[],ot=()=>{},Fs=()=>!1,Nn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),jn=e=>e.startsWith("onUpdate:"),De=Object.assign,Tl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ai=Object.prototype.hasOwnProperty,oe=(e,t)=>Ai.call(e,t),j=Array.isArray,Nt=e=>fn(e)==="[object Map]",Hn=e=>fn(e)==="[object Set]",is=e=>fn(e)==="[object Date]",W=e=>typeof e=="function",we=e=>typeof e=="string",it=e=>typeof e=="symbol",ae=e=>e!==null&&typeof e=="object",Vs=e=>(ae(e)||W(e))&&W(e.then)&&W(e.catch),Us=Object.prototype.toString,fn=e=>Us.call(e),Mi=e=>fn(e).slice(8,-1),Ns=e=>fn(e)==="[object Object]",Ol=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zt=El(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Ri=/-\w/g,Je=Wn(e=>e.replace(Ri,t=>t.slice(1).toUpperCase())),$i=/\B([A-Z])/g,Bt=Wn(e=>e.replace($i,"-$1").toLowerCase()),js=Wn(e=>e.charAt(0).toUpperCase()+e.slice(1)),ol=Wn(e=>e?`on${js(e)}`:""),st=(e,t)=>!Object.is(e,t),Tn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},Kn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let rs;const qn=()=>rs||(rs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Il(e){if(j(e)){const t={};for(let n=0;n{if(n){const l=n.split(Li);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function Jn(e){let t="";if(we(e))t=e;else if(j(e))for(let n=0;npn(n,t))}const Ks=e=>!!(e&&e.__v_isRef===!0),u=e=>we(e)?e:e==null?"":j(e)||ae(e)&&(e.toString===Us||!W(e.toString))?Ks(e)?u(e.value):JSON.stringify(e,qs,2):String(e),qs=(e,t)=>Ks(t)?qs(e,t.value):Nt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,s],i)=>(n[il(l,i)+" =>"]=s,n),{})}:Hn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>il(n))}:it(t)?il(t):ae(t)&&!j(t)&&!Ns(t)?String(t):t,il=(e,t="")=>{var n;return it(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Pe;class Wi{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Pe&&(Pe.active?(this.parent=Pe,this.index=(Pe.scopes||(Pe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(Pe===this)Pe=this.prevScope;else{let t=Pe;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n0)return;if(tn){let t=tn;for(tn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;en;){let t=en;for(en=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function Ys(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Qs(e){let t,n=e.depsTail,l=n;for(;l;){const s=l.prevDep;l.version===-1?(l===n&&(n=s),Rl(l),qi(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=s}e.deps=t,e.depsTail=n}function _l(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Xs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Xs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===rn)||(e.globalVersion=rn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!_l(e))))return;e.flags|=2;const t=e.dep,n=ge,l=Ge;ge=e,Ge=!0;try{Ys(e);const s=e.fn(e._value);(t.version===0||st(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ge=n,Ge=l,Qs(e),e.flags&=-3}}function Rl(e,t=!1){const{dep:n,prevSub:l,nextSub:s}=e;if(l&&(l.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Rl(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function qi(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ge=!0;const Zs=[];function rt(){Zs.push(Ge),Ge=!1}function at(){const e=Zs.pop();Ge=e===void 0?!0:e}function as(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ge;ge=void 0;try{t()}finally{ge=n}}}let rn=0;class Ji{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 $l{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ge||!Ge||ge===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ge)n=this.activeLink=new Ji(ge,this),ge.deps?(n.prevDep=ge.depsTail,ge.depsTail.nextDep=n,ge.depsTail=n):ge.deps=ge.depsTail=n,eo(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=ge.depsTail,n.nextDep=void 0,ge.depsTail.nextDep=n,ge.depsTail=n,ge.deps===n&&(ge.deps=l)}return n}trigger(t){this.version++,rn++,this.notify(t)}notify(t){Al();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ml()}}}function eo(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)eo(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ml=new WeakMap,Rt=Symbol(""),yl=Symbol(""),an=Symbol("");function Te(e,t,n){if(Ge&&ge){let l=ml.get(e);l||ml.set(e,l=new Map);let s=l.get(n);s||(l.set(n,s=new $l),s.map=l,s.key=n),s.track()}}function _t(e,t,n,l,s,i){const r=ml.get(e);if(!r){rn++;return}const a=f=>{f&&f.trigger()};if(Al(),t==="clear")r.forEach(a);else{const f=j(e),_=f&&Ol(n);if(f&&n==="length"){const v=Number(l);r.forEach((y,T)=>{(T==="length"||T===an||!it(T)&&T>=v)&&a(y)})}else switch((n!==void 0||r.has(void 0))&&a(r.get(n)),_&&a(r.get(an)),t){case"add":f?_&&a(r.get("length")):(a(r.get(Rt)),Nt(e)&&a(r.get(yl)));break;case"delete":f||(a(r.get(Rt)),Nt(e)&&a(r.get(yl)));break;case"set":Nt(e)&&a(r.get(Rt));break}}Ml()}function Lt(e){const t=se(e);return t===e?t:(Te(t,"iterate",an),qe(e)?t:t.map(ze))}function Gn(e){return Te(e=se(e),"iterate",an),e}function nt(e,t){return bt(e)?Kt($t(e)?ze(t):t):ze(t)}const Gi={__proto__:null,[Symbol.iterator](){return al(this,Symbol.iterator,e=>nt(this,e))},concat(...e){return Lt(this).concat(...e.map(t=>j(t)?Lt(t):t))},entries(){return al(this,"entries",e=>(e[1]=nt(this,e[1]),e))},every(e,t){return pt(this,"every",e,t,void 0,arguments)},filter(e,t){return pt(this,"filter",e,t,n=>n.map(l=>nt(this,l)),arguments)},find(e,t){return pt(this,"find",e,t,n=>nt(this,n),arguments)},findIndex(e,t){return pt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return pt(this,"findLast",e,t,n=>nt(this,n),arguments)},findLastIndex(e,t){return pt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return pt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ul(this,"includes",e)},indexOf(...e){return ul(this,"indexOf",e)},join(e){return Lt(this).join(e)},lastIndexOf(...e){return ul(this,"lastIndexOf",e)},map(e,t){return pt(this,"map",e,t,void 0,arguments)},pop(){return zt(this,"pop")},push(...e){return zt(this,"push",e)},reduce(e,...t){return us(this,"reduce",e,t)},reduceRight(e,...t){return us(this,"reduceRight",e,t)},shift(){return zt(this,"shift")},some(e,t){return pt(this,"some",e,t,void 0,arguments)},splice(...e){return zt(this,"splice",e)},toReversed(){return Lt(this).toReversed()},toSorted(e){return Lt(this).toSorted(e)},toSpliced(...e){return Lt(this).toSpliced(...e)},unshift(...e){return zt(this,"unshift",e)},values(){return al(this,"values",e=>nt(this,e))}};function al(e,t,n){const l=Gn(e),s=l[t]();return l!==e&&!qe(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const zi=Array.prototype;function pt(e,t,n,l,s,i){const r=Gn(e),a=r!==e&&!qe(e),f=r[t];if(f!==zi[t]){const y=f.apply(e,i);return a?ze(y):y}let _=n;r!==e&&(a?_=function(y,T){return n.call(this,nt(e,y),T,e)}:n.length>2&&(_=function(y,T){return n.call(this,y,T,e)}));const v=f.call(r,_,l);return a&&s?s(v):v}function us(e,t,n,l){const s=Gn(e),i=s!==e&&!qe(e);let r=n,a=!1;s!==e&&(i?(a=l.length===0,r=function(_,v,y){return a&&(a=!1,_=nt(e,_)),n.call(this,_,nt(e,v),y,e)}):n.length>3&&(r=function(_,v,y){return n.call(this,_,v,y,e)}));const f=s[t](r,...l);return a?nt(e,f):f}function ul(e,t,n){const l=se(e);Te(l,"iterate",an);const s=l[t](...n);return(s===-1||s===!1)&&Vl(n[0])?(n[0]=se(n[0]),l[t](...n)):s}function zt(e,t,n=[]){rt(),Al();const l=se(e)[t].apply(e,n);return Ml(),at(),l}const Yi=El("__proto__,__v_isRef,__isVue"),to=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(it));function Qi(e){it(e)||(e=String(e));const t=se(this);return Te(t,"has",e),t.hasOwnProperty(e)}class no{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return l===(s?i?rr:io:i?oo:so).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const r=j(t);if(!s){let f;if(r&&(f=Gi[n]))return f;if(n==="hasOwnProperty")return Qi}const a=Reflect.get(t,n,Oe(t)?t:l);if((it(n)?to.has(n):Yi(n))||(s||Te(t,"get",n),i))return a;if(Oe(a)){const f=r&&Ol(n)?a:a.value;return s&&ae(f)?wl(f):f}return ae(a)?s?wl(a):Ll(a):a}}class lo extends no{constructor(t=!1){super(!1,t)}set(t,n,l,s){let i=t[n];const r=j(t)&&Ol(n);if(!this._isShallow){const _=bt(i);if(!qe(l)&&!bt(l)&&(i=se(i),l=se(l)),!r&&Oe(i)&&!Oe(l))return _||(i.value=l),!0}const a=r?Number(n)e,Pn=e=>Reflect.getPrototypeOf(e);function nr(e,t,n){return function(...l){const s=this.__v_raw,i=se(s),r=Nt(i),a=e==="entries"||e===Symbol.iterator&&r,f=e==="keys"&&r,_=s[e](...l),v=n?bl:t?Kt:ze;return!t&&Te(i,"iterate",f?yl:Rt),De(Object.create(_),{next(){const{value:y,done:T}=_.next();return T?{value:y,done:T}:{value:a?[v(y[0]),v(y[1])]:v(y),done:T}}})}}function Dn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function lr(e,t){const n={get(s){const i=this.__v_raw,r=se(i),a=se(s);e||(st(s,a)&&Te(r,"get",s),Te(r,"get",a));const{has:f}=Pn(r),_=t?bl:e?Kt:ze;if(f.call(r,s))return _(i.get(s));if(f.call(r,a))return _(i.get(a));i!==r&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Te(se(s),"iterate",Rt),s.size},has(s){const i=this.__v_raw,r=se(i),a=se(s);return e||(st(s,a)&&Te(r,"has",s),Te(r,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const r=this,a=r.__v_raw,f=se(a),_=t?bl:e?Kt:ze;return!e&&Te(f,"iterate",Rt),a.forEach((v,y)=>s.call(i,_(v),_(y),r))}};return De(n,e?{add:Dn("add"),set:Dn("set"),delete:Dn("delete"),clear:Dn("clear")}:{add(s){const i=se(this),r=Pn(i),a=se(s),f=!t&&!qe(s)&&!bt(s)?a:s;return r.has.call(i,f)||st(s,f)&&r.has.call(i,s)||st(a,f)&&r.has.call(i,a)||(i.add(f),_t(i,"add",f,f)),this},set(s,i){!t&&!qe(i)&&!bt(i)&&(i=se(i));const r=se(this),{has:a,get:f}=Pn(r);let _=a.call(r,s);_||(s=se(s),_=a.call(r,s));const v=f.call(r,s);return r.set(s,i),_?st(i,v)&&_t(r,"set",s,i):_t(r,"add",s,i),this},delete(s){const i=se(this),{has:r,get:a}=Pn(i);let f=r.call(i,s);f||(s=se(s),f=r.call(i,s)),a&&a.call(i,s);const _=i.delete(s);return f&&_t(i,"delete",s,void 0),_},clear(){const s=se(this),i=s.size!==0,r=s.clear();return i&&_t(s,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=nr(s,e,t)}),n}function Bl(e,t){const n=lr(e,t);return(l,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?l:Reflect.get(oe(n,s)&&s in l?n:l,s,i)}const sr={get:Bl(!1,!1)},or={get:Bl(!1,!0)},ir={get:Bl(!0,!1)};const so=new WeakMap,oo=new WeakMap,io=new WeakMap,rr=new WeakMap;function ar(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ll(e){return bt(e)?e:Fl(e,!1,Zi,sr,so)}function ur(e){return Fl(e,!1,tr,or,oo)}function wl(e){return Fl(e,!0,er,ir,io)}function Fl(e,t,n,l,s){if(!ae(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=s.get(e);if(i)return i;const r=ar(Mi(e));if(r===0)return e;const a=new Proxy(e,r===2?l:n);return s.set(e,a),a}function $t(e){return bt(e)?$t(e.__v_raw):!!(e&&e.__v_isReactive)}function bt(e){return!!(e&&e.__v_isReadonly)}function qe(e){return!!(e&&e.__v_isShallow)}function Vl(e){return e?!!e.__v_raw:!1}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function cr(e){return!oe(e,"__v_skip")&&Object.isExtensible(e)&&Hs(e,"__v_skip",!0),e}const ze=e=>ae(e)?Ll(e):e,Kt=e=>ae(e)?wl(e):e;function Oe(e){return e?e.__v_isRef===!0:!1}function N(e){return dr(e,!1)}function dr(e,t){return Oe(e)?e:new fr(e,t)}class fr{constructor(t,n){this.dep=new $l,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:se(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,l=this.__v_isShallow||qe(t)||bt(t);t=l?t:se(t),st(t,n)&&(this._rawValue=t,this._value=l?t:ze(t),this.dep.trigger())}}function pr(e){return Oe(e)?e.value:e}const hr={get:(e,t,n)=>t==="__v_raw"?e:pr(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const s=e[t];return Oe(s)&&!Oe(n)?(s.value=n,!0):Reflect.set(e,t,n,l)}};function ro(e){return $t(e)?e:new Proxy(e,hr)}class gr{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new $l(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=rn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&ge!==this)return zs(this,!0),!0}get value(){const t=this.dep.track();return Xs(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function vr(e,t,n=!1){let l,s;return W(e)?l=e:(l=e.get,s=e.set),new gr(l,s,n)}const En={},An=new WeakMap;let At;function _r(e,t=!1,n=At){if(n){let l=An.get(n);l||An.set(n,l=[]),l.push(e)}}function mr(e,t,n=de){const{immediate:l,deep:s,once:i,scheduler:r,augmentJob:a,call:f}=n,_=B=>s?B:qe(B)||s===!1||s===0?mt(B,1):mt(B);let v,y,T,A,Z=!1,F=!1;if(Oe(e)?(y=()=>e.value,Z=qe(e)):$t(e)?(y=()=>_(e),Z=!0):j(e)?(F=!0,Z=e.some(B=>$t(B)||qe(B)),y=()=>e.map(B=>{if(Oe(B))return B.value;if($t(B))return _(B);if(W(B))return f?f(B,2):B()})):W(e)?t?y=f?()=>f(e,2):e:y=()=>{if(T){rt();try{T()}finally{at()}}const B=At;At=v;try{return f?f(e,3,[A]):e(A)}finally{At=B}}:y=ot,t&&s){const B=y,ce=s===!0?1/0:s;y=()=>mt(B(),ce)}const fe=Ki(),ue=()=>{v.stop(),fe&&fe.active&&Tl(fe.effects,v)};if(i&&t){const B=t;t=(...ce)=>{const Ie=B(...ce);return ue(),Ie}}let H=F?new Array(e.length).fill(En):En;const ie=B=>{if(!(!(v.flags&1)||!v.dirty&&!B))if(t){const ce=v.run();if(B||s||Z||(F?ce.some((Ie,Be)=>st(Ie,H[Be])):st(ce,H))){T&&T();const Ie=At;At=v;try{const Be=[ce,H===En?void 0:F&&H[0]===En?[]:H,A];H=ce,f?f(t,3,Be):t(...Be)}finally{At=Ie}}}else v.run()};return a&&a(ie),v=new Js(y),v.scheduler=r?()=>r(ie,!1):ie,A=B=>_r(B,!1,v),T=v.onStop=()=>{const B=An.get(v);if(B){if(f)f(B,4);else for(const ce of B)ce();An.delete(v)}},t?l?ie(!0):H=v.run():r?r(ie.bind(null,!0),!0):v.run(),ue.pause=v.pause.bind(v),ue.resume=v.resume.bind(v),ue.stop=ue,ue}function mt(e,t=1/0,n){if(t<=0||!ae(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Oe(e))mt(e.value,t,n);else if(j(e))for(let l=0;l{mt(l,t,n)});else if(Ns(e)){for(const l in e)mt(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&mt(e[l],t,n)}return e}/** +* @vue/runtime-core v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function hn(e,t,n,l){try{return l?e(...l):e()}catch(s){zn(s,t,n)}}function Ye(e,t,n,l){if(W(e)){const s=hn(e,t,n,l);return s&&Vs(s)&&s.catch(i=>{zn(i,t,n)}),s}if(j(e)){const s=[];for(let i=0;i>>1,s=Re[l],i=un(s);i=un(n)?Re.push(e):Re.splice(br(t),0,e),e.flags|=1,co()}}function co(){Mn||(Mn=ao.then(po))}function wr(e){j(e)?jt.push(...e):Pt&&e.id===-1?Pt.splice(Vt+1,0,e):e.flags&1||(jt.push(e),e.flags|=1),co()}function cs(e,t,n=tt+1){for(;nun(n)-un(l));if(jt.length=0,Pt){Pt.push(...t);return}for(Pt=t,Vt=0;Vte.id==null?e.flags&2?-1:1/0:e.id;function po(e){try{for(tt=0;tt{l._d&&ws(-1);const i=Rn(t);let r;try{r=e(...s)}finally{Rn(i),l._d&&ws(1)}return r};return l._n=!0,l._c=!0,l._d=!0,l}function K(e,t){if(Ke===null)return e;const n=Zn(Ke),l=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&W(t)?t.call(l&&l.proxy):t}}const Cr=Symbol.for("v-scx"),Sr=()=>On(Cr);function cl(e,t,n){return go(e,t,n)}function go(e,t,n=de){const{immediate:l,deep:s,flush:i,once:r}=n,a=De({},n),f=t&&l||!t&&i!=="post";let _;if(dn){if(i==="sync"){const A=Sr();_=A.__watcherHandles||(A.__watcherHandles=[])}else if(!f){const A=()=>{};return A.stop=ot,A.resume=ot,A.pause=ot,A}}const v=$e;a.call=(A,Z,F)=>Ye(A,v,Z,F);let y=!1;i==="post"?a.scheduler=A=>{Ue(A,v&&v.suspense)}:i!=="sync"&&(y=!0,a.scheduler=(A,Z)=>{Z?A():Ul(A)}),a.augmentJob=A=>{t&&(A.flags|=4),y&&(A.flags|=2,v&&(A.id=v.uid,A.i=v))};const T=mr(e,t,a);return dn&&(_?_.push(T):f&&T()),T}function Pr(e,t,n){const l=this.proxy,s=we(e)?e.includes(".")?vo(l,e):()=>l[e]:e.bind(l,l);let i;W(t)?i=t:(i=t.handler,n=t);const r=gn(this),a=go(s,i.bind(l),n);return r(),a}function vo(e,t){const n=t.split(".");return()=>{let l=e;for(let s=0;se.__isTeleport,dl=Symbol("_leaveCb");function Nl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Nl(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 Tr(e,t){return W(e)?De({name:e.name},t,{setup:e}):e}function _o(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ds(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const $n=new WeakMap;function nn(e,t,n,l,s=!1){if(j(e)){e.forEach((F,fe)=>nn(F,t&&(j(t)?t[fe]:t),n,l,s));return}if(ln(l)&&!s){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&nn(e,t,n,l.component.subTree);return}const i=l.shapeFlag&4?Zn(l.component):l.el,r=s?null:i,{i:a,r:f}=e,_=t&&t.r,v=a.refs===de?a.refs={}:a.refs,y=a.setupState,T=se(y),A=y===de?Fs:F=>ds(v,F)?!1:oe(T,F),Z=(F,fe)=>!(fe&&ds(v,fe));if(_!=null&&_!==f){if(fs(t),we(_))v[_]=null,A(_)&&(y[_]=null);else if(Oe(_)){const F=t;Z(_,F.k)&&(_.value=null),F.k&&(v[F.k]=null)}}if(W(f)){rt();try{hn(f,a,12,[r,v])}finally{at()}}else{const F=we(f),fe=Oe(f);if(F||fe){const ue=()=>{if(e.f){const H=F?A(f)?y[f]:v[f]:Z()||!e.k?f.value:v[e.k];if(s)j(H)&&Tl(H,i);else if(j(H))H.includes(i)||H.push(i);else if(F)v[f]=[i],A(f)&&(y[f]=v[f]);else{const ie=[i];Z(f,e.k)&&(f.value=ie),e.k&&(v[e.k]=ie)}}else F?(v[f]=r,A(f)&&(y[f]=r)):fe&&(Z(f,e.k)&&(f.value=r),e.k&&(v[e.k]=r))};if(r){const H=()=>{ue(),$n.delete(e)};H.id=-1,$n.set(e,H),Ue(H,n)}else fs(e),ue()}}}function fs(e){const t=$n.get(e);t&&(t.flags|=8,$n.delete(e))}qn().requestIdleCallback;qn().cancelIdleCallback;const ln=e=>!!e.type.__asyncLoader,mo=e=>e.type.__isKeepAlive;function Or(e,t){yo(e,"a",t)}function Ir(e,t){yo(e,"da",t)}function yo(e,t,n=$e){const l=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Yn(t,l,n),n){let s=n.parent;for(;s&&s.parent;)mo(s.parent.vnode)&&Ar(l,t,n,s),s=s.parent}}function Ar(e,t,n,l){const s=Yn(t,e,l,!0);wo(()=>{Tl(l[t],s)},n)}function Yn(e,t,n=$e,l=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{rt();const a=gn(n),f=Ye(t,n,e,r);return a(),at(),f});return l?s.unshift(i):s.push(i),i}}const wt=e=>(t,n=$e)=>{(!dn||e==="sp")&&Yn(e,(...l)=>t(...l),n)},Mr=wt("bm"),bo=wt("m"),Rr=wt("bu"),$r=wt("u"),Br=wt("bum"),wo=wt("um"),Lr=wt("sp"),Fr=wt("rtg"),Vr=wt("rtc");function Ur(e,t=$e){Yn("ec",e,t)}const Nr=Symbol.for("v-ndc");function ye(e,t,n,l){let s;const i=n,r=j(e);if(r||we(e)){const a=r&&$t(e);let f=!1,_=!1;a&&(f=!qe(e),_=bt(e),e=Gn(e)),s=new Array(e.length);for(let v=0,y=e.length;vt(a,f,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let f=0,_=a.length;f<_;f++){const v=a[f];s[f]=t(e[v],v,f,i)}}else s=[];return s}const kl=e=>e?jo(e)?Zn(e):kl(e.parent):null,sn=De(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>kl(e.parent),$root:e=>kl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xo(e),$forceUpdate:e=>e.f||(e.f=()=>{Ul(e.update)}),$nextTick:e=>e.n||(e.n=uo.bind(e.proxy)),$watch:e=>Pr.bind(e)}),fl=(e,t)=>e!==de&&!e.__isScriptSetup&&oe(e,t),jr={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:s,props:i,accessCache:r,type:a,appContext:f}=e;if(t[0]!=="$"){const T=r[t];if(T!==void 0)switch(T){case 1:return l[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(fl(l,t))return r[t]=1,l[t];if(s!==de&&oe(s,t))return r[t]=2,s[t];if(oe(i,t))return r[t]=3,i[t];if(n!==de&&oe(n,t))return r[t]=4,n[t];xl&&(r[t]=0)}}const _=sn[t];let v,y;if(_)return t==="$attrs"&&Te(e.attrs,"get",""),_(e);if((v=a.__cssModules)&&(v=v[t]))return v;if(n!==de&&oe(n,t))return r[t]=4,n[t];if(y=f.config.globalProperties,oe(y,t))return y[t]},set({_:e},t,n){const{data:l,setupState:s,ctx:i}=e;return fl(s,t)?(s[t]=n,!0):l!==de&&oe(l,t)?(l[t]=n,!0):oe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:s,props:i,type:r}},a){let f;return!!(n[a]||e!==de&&a[0]!=="$"&&oe(e,a)||fl(t,a)||oe(i,a)||oe(l,a)||oe(sn,a)||oe(s.config.globalProperties,a)||(f=r.__cssModules)&&f[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:oe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ps(e){return j(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xl=!0;function Hr(e){const t=xo(e),n=e.proxy,l=e.ctx;xl=!1,t.beforeCreate&&hs(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:r,watch:a,provide:f,inject:_,created:v,beforeMount:y,mounted:T,beforeUpdate:A,updated:Z,activated:F,deactivated:fe,beforeDestroy:ue,beforeUnmount:H,destroyed:ie,unmounted:B,render:ce,renderTracked:Ie,renderTriggered:Be,errorCaptured:Ne,serverPrefetch:ut,expose:me,inheritAttrs:Qe,components:ct,directives:Xe,filters:dt}=t;if(_&&Wr(_,l,null),r)for(const le in r){const z=r[le];W(z)&&(l[le]=z.bind(n))}if(s){const le=s.call(n,n);ae(le)&&(e.data=Ll(le))}if(xl=!0,i)for(const le in i){const z=i[le],Le=W(z)?z.bind(n,n):W(z.get)?z.get.bind(n,n):ot,Fe=!W(z)&&W(z.set)?z.set.bind(n):ot,Ce=St({get:Le,set:Fe});Object.defineProperty(l,le,{enumerable:!0,configurable:!0,get:()=>Ce.value,set:J=>Ce.value=J})}if(a)for(const le in a)ko(a[le],l,n,le);if(f){const le=W(f)?f.call(n):f;Reflect.ownKeys(le).forEach(z=>{xr(z,le[z])})}v&&hs(v,e,"c");function U(le,z){j(z)?z.forEach(Le=>le(Le.bind(n))):z&&le(z.bind(n))}if(U(Mr,y),U(bo,T),U(Rr,A),U($r,Z),U(Or,F),U(Ir,fe),U(Ur,Ne),U(Vr,Ie),U(Fr,Be),U(Br,H),U(wo,B),U(Lr,ut),j(me))if(me.length){const le=e.exposed||(e.exposed={});me.forEach(z=>{Object.defineProperty(le,z,{get:()=>n[z],set:Le=>n[z]=Le,enumerable:!0})})}else e.exposed||(e.exposed={});ce&&e.render===ot&&(e.render=ce),Qe!=null&&(e.inheritAttrs=Qe),ct&&(e.components=ct),Xe&&(e.directives=Xe),ut&&_o(e)}function Wr(e,t,n=ot){j(e)&&(e=Cl(e));for(const l in e){const s=e[l];let i;ae(s)?"default"in s?i=On(s.from||l,s.default,!0):i=On(s.from||l):i=On(s),Oe(i)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[l]=i}}function hs(e,t,n){Ye(j(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function ko(e,t,n,l){let s=l.includes(".")?vo(n,l):()=>n[l];if(we(e)){const i=t[e];W(i)&&cl(s,i)}else if(W(e))cl(s,e.bind(n));else if(ae(e))if(j(e))e.forEach(i=>ko(i,t,n,l));else{const i=W(e.handler)?e.handler.bind(n):t[e.handler];W(i)&&cl(s,i,e)}}function xo(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,a=i.get(t);let f;return a?f=a:!s.length&&!n&&!l?f=t:(f={},s.length&&s.forEach(_=>Bn(f,_,r,!0)),Bn(f,t,r)),ae(t)&&i.set(t,f),f}function Bn(e,t,n,l=!1){const{mixins:s,extends:i}=t;i&&Bn(e,i,n,!0),s&&s.forEach(r=>Bn(e,r,n,!0));for(const r in t)if(!(l&&r==="expose")){const a=Kr[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const Kr={data:gs,props:vs,emits:vs,methods:Qt,computed:Qt,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:Qt,directives:Qt,watch:Jr,provide:gs,inject:qr};function gs(e,t){return t?e?function(){return De(W(e)?e.call(this,this):e,W(t)?t.call(this,this):t)}:t:e}function qr(e,t){return Qt(Cl(e),Cl(t))}function Cl(e){if(j(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Je(t)}Modifiers`]||e[`${Bt(t)}Modifiers`];function Qr(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||de;let s=n;const i=t.startsWith("update:"),r=i&&Yr(l,t.slice(7));r&&(r.trim&&(s=n.map(v=>we(v)?v.trim():v)),r.number&&(s=n.map(Kn)));let a,f=l[a=ol(t)]||l[a=ol(Je(t))];!f&&i&&(f=l[a=ol(Bt(t))]),f&&Ye(f,e,6,s);const _=l[a+"Once"];if(_){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ye(_,e,6,s)}}const Xr=new WeakMap;function So(e,t,n=!1){const l=n?Xr:t.emitsCache,s=l.get(e);if(s!==void 0)return s;const i=e.emits;let r={},a=!1;if(!W(e)){const f=_=>{const v=So(_,t,!0);v&&(a=!0,De(r,v))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!a?(ae(e)&&l.set(e,null),null):(j(i)?i.forEach(f=>r[f]=null):De(r,i),ae(e)&&l.set(e,r),r)}function Qn(e,t){return!e||!Nn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),oe(e,t[0].toLowerCase()+t.slice(1))||oe(e,Bt(t))||oe(e,t))}function _s(e){const{type:t,vnode:n,proxy:l,withProxy:s,propsOptions:[i],slots:r,attrs:a,emit:f,render:_,renderCache:v,props:y,data:T,setupState:A,ctx:Z,inheritAttrs:F}=e,fe=Rn(e);let ue,H;try{if(n.shapeFlag&4){const B=s||l,ce=B;ue=lt(_.call(ce,B,v,y,A,T,Z)),H=a}else{const B=t;ue=lt(B.length>1?B(y,{attrs:a,slots:r,emit:f}):B(y,null)),H=t.props?a:Zr(a)}}catch(B){on.length=0,zn(B,e,1),ue=yt(Dt)}let ie=ue;if(H&&F!==!1){const B=Object.keys(H),{shapeFlag:ce}=ie;B.length&&ce&7&&(i&&B.some(jn)&&(H=ea(H,i)),ie=qt(ie,H,!1,!0))}return n.dirs&&(ie=qt(ie,null,!1,!0),ie.dirs=ie.dirs?ie.dirs.concat(n.dirs):n.dirs),n.transition&&Nl(ie,n.transition),ue=ie,Rn(fe),ue}const Zr=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nn(n))&&((t||(t={}))[n]=e[n]);return t},ea=(e,t)=>{const n={};for(const l in e)(!jn(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function ta(e,t,n){const{props:l,children:s,component:i}=e,{props:r,children:a,patchFlag:f}=t,_=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return l?ms(l,r,_):!!r;if(f&8){const v=t.dynamicProps;for(let y=0;yObject.create(Do),To=e=>Object.getPrototypeOf(e)===Do;function la(e,t,n,l=!1){const s={},i=Eo();e.propsDefaults=Object.create(null),Oo(e,t,s,i);for(const r in e.propsOptions[0])r in s||(s[r]=void 0);n?e.props=l?s:ur(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function sa(e,t,n,l){const{props:s,attrs:i,vnode:{patchFlag:r}}=e,a=se(s),[f]=e.propsOptions;let _=!1;if((l||r>0)&&!(r&16)){if(r&8){const v=e.vnode.dynamicProps;for(let y=0;y{f=!0;const[T,A]=Io(y,t,!0);De(r,T),A&&a.push(...A)};!n&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!i&&!f)return ae(e)&&l.set(e,Ut),Ut;if(j(i))for(let v=0;ve==="_"||e==="_ctx"||e==="$stable",Hl=e=>j(e)?e.map(lt):[lt(e)],ia=(e,t,n)=>{if(t._n)return t;const l=kr((...s)=>Hl(t(...s)),n);return l._c=!1,l},Ao=(e,t,n)=>{const l=e._ctx;for(const s in e){if(jl(s))continue;const i=e[s];if(W(i))t[s]=ia(s,i,l);else if(i!=null){const r=Hl(i);t[s]=()=>r}}},Mo=(e,t)=>{const n=Hl(t);e.slots.default=()=>n},Ro=(e,t,n)=>{for(const l in t)(n||!jl(l))&&(e[l]=t[l])},ra=(e,t,n)=>{const l=e.slots=Eo();if(e.vnode.shapeFlag&32){const s=t._;s?(Ro(l,t,n),n&&Hs(l,"_",s,!0)):Ao(t,l)}else t&&Mo(e,t)},aa=(e,t,n)=>{const{vnode:l,slots:s}=e;let i=!0,r=de;if(l.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:Ro(s,t,n):(i=!t.$stable,Ao(t,s)),r=t}else t&&(Mo(e,t),r={default:1});if(i)for(const a in s)!jl(a)&&r[a]==null&&delete s[a]},Ue=pa;function ua(e){return ca(e)}function ca(e,t){const n=qn();n.__VUE__=!0;const{insert:l,remove:s,patchProp:i,createElement:r,createText:a,createComment:f,setText:_,setElementText:v,parentNode:y,nextSibling:T,setScopeId:A=ot,insertStaticContent:Z}=e,F=(d,g,m,x=null,k=null,w=null,E=void 0,D=null,P=!!g.dynamicChildren)=>{if(d===g)return;d&&!Yt(d,g)&&(x=Ee(d),J(d,k,w,!0),d=null),g.patchFlag===-2&&(P=!1,g.dynamicChildren=null);const{type:b,ref:L,shapeFlag:O}=g;switch(b){case Xn:fe(d,g,m,x);break;case Dt:ue(d,g,m,x);break;case hl:d==null&&H(g,m,x,E);break;case X:ct(d,g,m,x,k,w,E,D,P);break;default:O&1?ce(d,g,m,x,k,w,E,D,P):O&6?Xe(d,g,m,x,k,w,E,D,P):(O&64||O&128)&&b.process(d,g,m,x,k,w,E,D,P,ft)}L!=null&&k?nn(L,d&&d.ref,w,g||d,!g):L==null&&d&&d.ref!=null&&nn(d.ref,null,w,d,!0)},fe=(d,g,m,x)=>{if(d==null)l(g.el=a(g.children),m,x);else{const k=g.el=d.el;g.children!==d.children&&_(k,g.children)}},ue=(d,g,m,x)=>{d==null?l(g.el=f(g.children||""),m,x):g.el=d.el},H=(d,g,m,x)=>{[d.el,d.anchor]=Z(d.children,g,m,x,d.el,d.anchor)},ie=({el:d,anchor:g},m,x)=>{let k;for(;d&&d!==g;)k=T(d),l(d,m,x),d=k;l(g,m,x)},B=({el:d,anchor:g})=>{let m;for(;d&&d!==g;)m=T(d),s(d),d=m;s(g)},ce=(d,g,m,x,k,w,E,D,P)=>{if(g.type==="svg"?E="svg":g.type==="math"&&(E="mathml"),d==null)Ie(g,m,x,k,w,E,D,P);else{const b=d.el&&d.el._isVueCE?d.el:null;try{b&&b._beginPatch(),ut(d,g,k,w,E,D,P)}finally{b&&b._endPatch()}}},Ie=(d,g,m,x,k,w,E,D)=>{let P,b;const{props:L,shapeFlag:O,transition:R,dirs:V}=d;if(P=d.el=r(d.type,w,L&&L.is,L),O&8?v(P,d.children):O&16&&Ne(d.children,P,null,x,k,pl(d,w),E,D),V&&Ot(d,null,x,"created"),Be(P,d,d.scopeId,E,x),L){for(const te in L)te!=="value"&&!Zt(te)&&i(P,te,null,L[te],w,x);"value"in L&&i(P,"value",null,L.value,w),(b=L.onVnodeBeforeMount)&&et(b,x,d)}V&&Ot(d,null,x,"beforeMount");const Y=da(k,R);Y&&R.beforeEnter(P),l(P,g,m),((b=L&&L.onVnodeMounted)||Y||V)&&Ue(()=>{try{b&&et(b,x,d),Y&&R.enter(P),V&&Ot(d,null,x,"mounted")}finally{}},k)},Be=(d,g,m,x,k)=>{if(m&&A(d,m),x)for(let w=0;w{for(let b=P;b{const D=g.el=d.el;let{patchFlag:P,dynamicChildren:b,dirs:L}=g;P|=d.patchFlag&16;const O=d.props||de,R=g.props||de;let V;if(m&&It(m,!1),(V=R.onVnodeBeforeUpdate)&&et(V,m,g,d),L&&Ot(g,d,m,"beforeUpdate"),m&&It(m,!0),b&&(!d.dynamicChildren||d.dynamicChildren.length!==b.length)&&(P=0,E=!1,b=null),(O.innerHTML&&R.innerHTML==null||O.textContent&&R.textContent==null)&&v(D,""),b?me(d.dynamicChildren,b,D,m,x,pl(g,k),w):E||z(d,g,D,null,m,x,pl(g,k),w,!1),P>0){if(P&16)Qe(D,O,R,m,k);else if(P&2&&O.class!==R.class&&i(D,"class",null,R.class,k),P&4&&i(D,"style",O.style,R.style,k),P&8){const Y=g.dynamicProps;for(let te=0;te{V&&et(V,m,g,d),L&&Ot(g,d,m,"updated")},x)},me=(d,g,m,x,k,w,E)=>{for(let D=0;D{if(g!==m){if(g!==de)for(const w in g)!Zt(w)&&!(w in m)&&i(d,w,g[w],null,k,x);for(const w in m){if(Zt(w))continue;const E=m[w],D=g[w];E!==D&&w!=="value"&&i(d,w,D,E,k,x)}"value"in m&&i(d,"value",g.value,m.value,k)}},ct=(d,g,m,x,k,w,E,D,P)=>{const b=g.el=d?d.el:a(""),L=g.anchor=d?d.anchor:a("");let{patchFlag:O,dynamicChildren:R,slotScopeIds:V}=g;V&&(D=D?D.concat(V):V),d==null?(l(b,m,x),l(L,m,x),Ne(g.children||[],m,L,k,w,E,D,P)):O>0&&O&64&&R&&d.dynamicChildren&&d.dynamicChildren.length===R.length?(me(d.dynamicChildren,R,m,k,w,E,D),(g.key!=null||k&&g===k.subTree)&&$o(d,g,!0)):z(d,g,m,L,k,w,E,D,P)},Xe=(d,g,m,x,k,w,E,D,P)=>{g.slotScopeIds=D,d==null?g.shapeFlag&512?k.ctx.activate(g,m,x,E,P):dt(g,m,x,k,w,E,P):kt(d,g,P)},dt=(d,g,m,x,k,w,E)=>{const D=d.component=ka(d,x,k);if(mo(d)&&(D.ctx.renderer=ft),Ca(D,!1,E),D.asyncDep){if(k&&k.registerDep(D,U,E),!d.el){const P=D.subTree=yt(Dt);ue(null,P,g,m),d.placeholder=P.el}}else U(D,d,g,m,k,w,E)},kt=(d,g,m)=>{const x=g.component=d.component;if(ta(d,g,m))if(x.asyncDep&&!x.asyncResolved){le(x,g,m);return}else x.next=g,x.update();else g.el=d.el,x.vnode=g},U=(d,g,m,x,k,w,E)=>{const D=()=>{if(d.isMounted){let{next:O,bu:R,u:V,parent:Y,vnode:te}=d;{const He=Bo(d);if(He){O&&(O.el=te.el,le(d,O,E)),He.asyncDep.then(()=>{Ue(()=>{d.isUnmounted||b()},k)});return}}let ne=O,be;It(d,!1),O?(O.el=te.el,le(d,O,E)):O=te,R&&Tn(R),(be=O.props&&O.props.onVnodeBeforeUpdate)&&et(be,Y,O,te),It(d,!0);const pe=_s(d),$=d.subTree;d.subTree=pe,F($,pe,y($.el),Ee($),d,k,w),O.el=pe.el,ne===null&&na(d,pe.el),V&&Ue(V,k),(be=O.props&&O.props.onVnodeUpdated)&&Ue(()=>et(be,Y,O,te),k)}else{let O;const{el:R,props:V}=g,{bm:Y,m:te,parent:ne,root:be,type:pe}=d,$=ln(g);It(d,!1),Y&&Tn(Y),!$&&(O=V&&V.onVnodeBeforeMount)&&et(O,ne,g),It(d,!0);{be.ce&&be.ce._hasShadowRoot()&&be.ce._injectChildStyle(pe,d.parent?d.parent.type:void 0);const He=d.subTree=_s(d);F(null,He,m,x,d,k,w),g.el=He.el}if(te&&Ue(te,k),!$&&(O=V&&V.onVnodeMounted)){const He=g;Ue(()=>et(O,ne,He),k)}(g.shapeFlag&256||ne&&ln(ne.vnode)&&ne.vnode.shapeFlag&256)&&d.a&&Ue(d.a,k),d.isMounted=!0,g=m=x=null}};d.scope.on();const P=d.effect=new Js(D);d.scope.off();const b=d.update=P.run.bind(P),L=d.job=P.runIfDirty.bind(P);L.i=d,L.id=d.uid,P.scheduler=()=>Ul(L),It(d,!0),b()},le=(d,g,m)=>{g.component=d;const x=d.vnode.props;d.vnode=g,d.next=null,sa(d,g.props,x,m),aa(d,g.children,m),rt(),cs(d),at()},z=(d,g,m,x,k,w,E,D,P=!1)=>{const b=d&&d.children,L=d?d.shapeFlag:0,O=g.children,{patchFlag:R,shapeFlag:V}=g;if(R>0){if(R&128){Fe(b,O,m,x,k,w,E,D,P);return}else if(R&256){Le(b,O,m,x,k,w,E,D,P);return}}V&8?(L&16&&Ze(b,k,w),O!==b&&v(m,O)):L&16?V&16?Fe(b,O,m,x,k,w,E,D,P):Ze(b,k,w,!0):(L&8&&v(m,""),V&16&&Ne(O,m,x,k,w,E,D,P))},Le=(d,g,m,x,k,w,E,D,P)=>{d=d||Ut,g=g||Ut;const b=d.length,L=g.length,O=Math.min(b,L);let R;for(R=0;RL?Ze(d,k,w,!0,!1,O):Ne(g,m,x,k,w,E,D,P,O)},Fe=(d,g,m,x,k,w,E,D,P)=>{let b=0;const L=g.length;let O=d.length-1,R=L-1;for(;b<=O&&b<=R;){const V=d[b],Y=g[b]=P?vt(g[b]):lt(g[b]);if(Yt(V,Y))F(V,Y,m,null,k,w,E,D,P);else break;b++}for(;b<=O&&b<=R;){const V=d[O],Y=g[R]=P?vt(g[R]):lt(g[R]);if(Yt(V,Y))F(V,Y,m,null,k,w,E,D,P);else break;O--,R--}if(b>O){if(b<=R){const V=R+1,Y=VR)for(;b<=O;)J(d[b],k,w,!0),b++;else{const V=b,Y=b,te=new Map;for(b=Y;b<=R;b++){const Ae=g[b]=P?vt(g[b]):lt(g[b]);Ae.key!=null&&te.set(Ae.key,b)}let ne,be=0;const pe=R-Y+1;let $=!1,He=0;const Et=new Array(pe);for(b=0;b=pe){J(Ae,k,w,!0);continue}let We;if(Ae.key!=null)We=te.get(Ae.key);else for(ne=Y;ne<=R;ne++)if(Et[ne-Y]===0&&Yt(Ae,g[ne])){We=ne;break}We===void 0?J(Ae,k,w,!0):(Et[We-Y]=b+1,We>=He?He=We:$=!0,F(Ae,g[We],m,null,k,w,E,D,P),be++)}const vn=$?fa(Et):Ut;for(ne=vn.length-1,b=pe-1;b>=0;b--){const Ae=Y+b,We=g[Ae],_n=g[Ae+1],mn=Ae+1{const{el:w,type:E,transition:D,children:P,shapeFlag:b}=d;if(b&6){Ce(d.component.subTree,g,m,x);return}if(b&128){d.suspense.move(g,m,x);return}if(b&64){E.move(d,g,m,ft);return}if(E===X){l(w,g,m);for(let O=0;OD.enter(w),k));else{const{leave:O,delayLeave:R,afterLeave:V}=D,Y=()=>{d.ctx.isUnmounted?s(w):l(w,g,m)},te=()=>{const ne=w._isLeaving||!!w[dl];w._isLeaving&&w[dl](!0),D.persisted&&!ne?Y():O(w,()=>{Y(),V&&V()})};R?R(w,Y,te):te()}else l(w,g,m)},J=(d,g,m,x=!1,k=!1)=>{const{type:w,props:E,ref:D,children:P,dynamicChildren:b,shapeFlag:L,patchFlag:O,dirs:R,cacheIndex:V,memo:Y}=d;if(O===-2&&(k=!1),D!=null&&(rt(),nn(D,null,m,d,!0),at()),V!=null&&(g.renderCache[V]=void 0),L&256){g.ctx.deactivate(d);return}const te=L&1&&R,ne=!ln(d);let be;if(ne&&(be=E&&E.onVnodeBeforeUnmount)&&et(be,g,d),L&6)Ve(d.component,m,x);else{if(L&128){d.suspense.unmount(m,x);return}te&&Ot(d,null,g,"beforeUnmount"),L&64?d.type.remove(d,g,m,ft,x):b&&!b.hasOnce&&(w!==X||O>0&&O&64)?Ze(b,g,m,!1,!0):(w===X&&O&384||!k&&L&16)&&Ze(P,g,m),x&&xe(d)}const pe=Y!=null&&V==null;(ne&&(be=E&&E.onVnodeUnmounted)||te||pe)&&Ue(()=>{be&&et(be,g,d),te&&Ot(d,null,g,"unmounted"),pe&&(d.el=null)},m)},xe=d=>{const{type:g,el:m,anchor:x,transition:k}=d;if(g===X){ke(m,x);return}if(g===hl){B(d);return}const w=()=>{s(m),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(d.shapeFlag&1&&k&&!k.persisted){const{leave:E,delayLeave:D}=k,P=()=>E(m,w);D?D(d.el,w,P):P()}else w()},ke=(d,g)=>{let m;for(;d!==g;)m=T(d),s(d),d=m;s(g)},Ve=(d,g,m)=>{const{bum:x,scope:k,job:w,subTree:E,um:D,m:P,a:b}=d;bs(P),bs(b),x&&Tn(x),k.stop(),w&&(w.flags|=8,J(E,d,g,m)),D&&Ue(D,g),Ue(()=>{d.isUnmounted=!0},g)},Ze=(d,g,m,x=!1,k=!1,w=0)=>{for(let E=w;E{if(d.shapeFlag&6)return Ee(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const g=T(d.anchor||d.el),m=g&&g[Dr];return m?T(m):g};let xt=!1;const ve=(d,g,m)=>{let x;d==null?g._vnode&&(J(g._vnode,null,null,!0),x=g._vnode.component):F(g._vnode||null,d,g,null,null,null,m),g._vnode=d,xt||(xt=!0,cs(x),fo(),xt=!1)},ft={p:F,um:J,m:Ce,r:xe,mt:dt,mc:Ne,pc:z,pbc:me,n:Ee,o:e};return{render:ve,hydrate:void 0,createApp:zr(ve)}}function pl({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function It({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function da(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $o(e,t,n=!1){const l=e.children,s=t.children;if(j(l)&&j(s))for(let i=0;i>1,e[n[a]]<_?i=a+1:r=a;_0&&(t[l]=n[i-1]),n[i]=l)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}function Bo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bo(t)}function bs(e){if(e)for(let t=0;te.__isSuspense;function pa(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):wr(e)}const X=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),Dt=Symbol.for("v-cmt"),hl=Symbol.for("v-stc"),on=[];let je=null;function C(e=!1){on.push(je=e?null:[])}function ha(){on.pop(),je=on[on.length-1]||null}let cn=1;function ws(e,t=!1){cn+=e,e<0&&je&&t&&(je.hasOnce=!0)}function Vo(e){return e.dynamicChildren=cn>0?je||Ut:null,ha(),cn>0&&je&&je.push(e),e}function S(e,t,n,l,s,i){return Vo(o(e,t,n,l,s,i,!0))}function ga(e,t,n,l,s){return Vo(yt(e,t,n,l,s,!0))}function Uo(e){return e?e.__v_isVNode===!0:!1}function Yt(e,t){return e.type===t.type&&e.key===t.key}const No=({key:e})=>e??null,In=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Oe(e)||W(e)?{i:Ke,r:e,k:t,f:!!n}:e:null);function o(e,t=null,n=null,l=0,s=null,i=e===X?0:1,r=!1,a=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&No(t),ref:t&&In(t),scopeId:ho,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:l,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ke};return a?(Ln(f,n),i&128&&e.normalize(f)):n&&(f.shapeFlag|=we(n)?8:16),cn>0&&!r&&je&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&je.push(f),f}const yt=va;function va(e,t=null,n=null,l=0,s=null,i=!1){if((!e||e===Nr)&&(e=Dt),Uo(e)){const a=qt(e,t,!0);return n&&Ln(a,n),cn>0&&!i&&je&&(a.shapeFlag&6?je[je.indexOf(e)]=a:je.push(a)),a.patchFlag=-2,a}if(Ea(e)&&(e=e.__vccOpts),t){t=_a(t);let{class:a,style:f}=t;a&&!we(a)&&(t.class=Jn(a)),ae(f)&&(Vl(f)&&!j(f)&&(f=De({},f)),t.style=Il(f))}const r=we(e)?1:Fo(e)?128:Er(e)?64:ae(e)?4:W(e)?2:0;return o(e,t,n,l,s,r,i,!0)}function _a(e){return e?Vl(e)||To(e)?De({},e):e:null}function qt(e,t,n=!1,l=!1){const{props:s,ref:i,patchFlag:r,children:a,transition:f}=e,_=t?ya(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:_,key:_&&No(_),ref:t&&t.ref?n&&i?j(i)?i.concat(In(t)):[i,In(t)]:In(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==X?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qt(e.ssContent),ssFallback:e.ssFallback&&qt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&l&&Nl(v,f.clone(v)),v}function ma(e=" ",t=0){return yt(Xn,null,e,t)}function G(e="",t=!1){return t?(C(),ga(Dt,null,e)):yt(Dt,null,e)}function lt(e){return e==null||typeof e=="boolean"?yt(Dt):j(e)?yt(X,null,e.slice()):Uo(e)?vt(e):yt(Xn,null,String(e))}function vt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qt(e)}function Ln(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(j(t))n=16;else if(typeof t=="object")if(l&65){const s=t.default;s&&(s._c&&(s._d=!1),Ln(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!To(t)?t._ctx=Ke:s===3&&Ke&&(Ke.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(W(t)){if(l&65){Ln(e,{default:t});return}t={default:t,_ctx:Ke},n=32}else t=String(t),l&64?(n=16,t=[ma(t)]):n=8;e.children=t,e.shapeFlag|=n}function ya(...e){const t={};for(let n=0;n$e||Ke;let Fn,Pl;{const e=qn(),t=(n,l)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(l),i=>{s.length>1?s.forEach(r=>r(i)):s[0](i)}};Fn=t("__VUE_INSTANCE_SETTERS__",n=>$e=n),Pl=t("__VUE_SSR_SETTERS__",n=>dn=n)}const gn=e=>{const t=$e;return Fn(e),e.scope.on(),()=>{e.scope.off(),Fn(t)}},ks=()=>{$e&&$e.scope.off(),Fn(null)};function jo(e){return e.vnode.shapeFlag&4}let dn=!1;function Ca(e,t=!1,n=!1){t&&Pl(t);const{props:l,children:s}=e.vnode,i=jo(e);la(e,l,i,t),ra(e,s,n||t);const r=i?Sa(e,t):void 0;return t&&Pl(!1),r}function Sa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,jr);const{setup:l}=n;if(l){rt();const s=e.setupContext=l.length>1?Da(e):null,i=gn(e),r=hn(l,e,0,[e.props,s]),a=Vs(r);if(at(),i(),(a||e.sp)&&!ln(e)&&_o(e),a){if(r.then(ks,ks),t)return r.then(f=>{xs(e,f)}).catch(f=>{zn(f,e,0)});e.asyncDep=r}else xs(e,r)}else Ho(e)}function xs(e,t,n){W(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ae(t)&&(e.setupState=ro(t)),Ho(e)}function Ho(e,t,n){const l=e.type;e.render||(e.render=l.render||ot);{const s=gn(e);rt();try{Hr(e)}finally{at(),s()}}}const Pa={get(e,t){return Te(e,"get",""),e[t]}};function Da(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Pa),slots:e.slots,emit:e.emit,expose:t}}function Zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ro(cr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in sn)return sn[n](e)},has(t,n){return n in t||n in sn}})):e.proxy}function Ea(e){return W(e)&&"__vccOpts"in e}const St=(e,t)=>vr(e,t,dn),Ta="3.5.39";/** +* @vue/runtime-dom v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Dl;const Cs=typeof window<"u"&&window.trustedTypes;if(Cs)try{Dl=Cs.createPolicy("vue",{createHTML:e=>e})}catch{}const Wo=Dl?e=>Dl.createHTML(e):e=>e,Oa="http://www.w3.org/2000/svg",Ia="http://www.w3.org/1998/Math/MathML",ht=typeof document<"u"?document:null,Ss=ht&&ht.createElement("template"),Aa={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const s=t==="svg"?ht.createElementNS(Oa,e):t==="mathml"?ht.createElementNS(Ia,e):n?ht.createElement(e,{is:n}):ht.createElement(e);return e==="select"&&l&&l.multiple!=null&&s.setAttribute("multiple",l.multiple),s},createText:e=>ht.createTextNode(e),createComment:e=>ht.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ht.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,s,i){const r=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Ss.innerHTML=Wo(l==="svg"?`${e}`:l==="mathml"?`${e}`:e);const a=Ss.content;if(l==="svg"||l==="mathml"){const f=a.firstChild;for(;f.firstChild;)a.appendChild(f.firstChild);a.removeChild(f)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ma=Symbol("_vtc");function Ra(e,t,n){const l=e[Ma];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ps=Symbol("_vod"),$a=Symbol("_vsh"),Ba=Symbol(""),La=/(?:^|;)\s*display\s*:/;function Fa(e,t,n){const l=e.style,s=we(n);let i=!1;if(n&&!s){if(t)if(we(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&Xt(l,a,"")}else for(const r in t)n[r]==null&&Xt(l,r,"");for(const r in n){r==="display"&&(i=!0);const a=n[r];a!=null?Ua(e,r,!we(t)&&t?t[r]:void 0,a)||Xt(l,r,a):Xt(l,r,"")}}else if(s){if(t!==n){const r=l[Ba];r&&(n+=";"+r),l.cssText=n,i=La.test(n)}}else t&&e.removeAttribute("style");Ps in e&&(e[Ps]=i?l.display:"",e[$a]&&(l.display="none"))}const Ds=/\s*!important$/;function Xt(e,t,n){if(j(n))n.forEach(l=>Xt(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=Va(e,t);Ds.test(n)?e.setProperty(Bt(l),n.replace(Ds,""),"important"):e[l]=n}}const Es=["Webkit","Moz","ms"],gl={};function Va(e,t){const n=gl[t];if(n)return n;let l=Je(t);if(l!=="filter"&&l in e)return gl[t]=l;l=js(l);for(let s=0;svl||(qa.then(()=>vl=0),vl=Date.now());function Ga(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;const s=n.value;if(j(s)){const i=l.stopImmediatePropagation;l.stopImmediatePropagation=()=>{i.call(l),l._stopped=!0};const r=s.slice(),a=[l];for(let f=0;fe.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,za=(e,t,n,l,s,i)=>{const r=s==="svg";t==="class"?Ra(e,l,r):t==="style"?Fa(e,n,l):Nn(t)?jn(t)||ja(e,t,n,l,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ya(e,t,l,r))?(Is(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Os(e,t,l,r,i,t!=="value")):e._isVueCE&&(Qa(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!we(l)))?Is(e,Je(t),l,i,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Os(e,t,l,r))};function Ya(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ms(t)&&W(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 Ms(t)&&we(n)?!1:t in e}function Qa(e,t){const n=e._def.props;if(!n)return!1;const l=Je(t);return Array.isArray(n)?n.some(s=>Je(s)===l):Object.keys(n).some(s=>Je(s)===l)}const Vn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return j(t)?n=>Tn(t,n):t};function Xa(e){e.target.composing=!0}function Rs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Wt=Symbol("_assign");function $s(e,t,n){return t&&(e=e.trim()),n&&(e=Kn(e)),e}const Q={created(e,{modifiers:{lazy:t,trim:n,number:l}},s){e[Wt]=Vn(s);const i=l||s.props&&s.props.type==="number";Mt(e,t?"change":"input",r=>{r.target.composing||e[Wt]($s(e.value,n,i))}),(n||i)&&Mt(e,"change",()=>{e.value=$s(e.value,n,i)}),t||(Mt(e,"compositionstart",Xa),Mt(e,"compositionend",Rs),Mt(e,"change",Rs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:s,number:i}},r){if(e[Wt]=Vn(r),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Kn(e.value):e.value,f=t??"";if(a===f)return;const _=e.getRootNode();(_ instanceof Document||_ instanceof ShadowRoot)&&_.activeElement===e&&e.type!=="range"&&(l&&t===n||s&&e.value.trim()===f)||(e.value=f)}},Ft={deep:!0,created(e,{value:t,modifiers:{number:n}},l){const s=Hn(t);Mt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?Kn(Un(r)):Un(r));e[Wt](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,uo(()=>{e._assigning=!1})}),e[Wt]=Vn(l)},mounted(e,{value:t}){Bs(e,t)},beforeUpdate(e,t,n){e[Wt]=Vn(n)},updated(e,{value:t}){e._assigning||Bs(e,t)}};function Bs(e,t){const n=e.multiple,l=j(t);if(!(n&&!l&&!Hn(t))){for(let s=0,i=e.options.length;sString(_)===String(a)):r.selected=Hi(t,a)>-1}else r.selected=t.has(a);else if(pn(Un(r),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Un(e){return"_value"in e?e._value:e.value}const Za=De({patchProp:za},Aa);let Ls;function eu(){return Ls||(Ls=ua(Za))}const tu=((...e)=>{const t=eu().createApp(...e),{mount:n}=t;return t.mount=l=>{const s=lu(l);if(!s)return;const i=t._component;!W(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const r=n(s,!1,nu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),r},t});function nu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function lu(e){return we(e)?document.querySelector(e):e}const su="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",I={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,workflowBranches:e=>`workflows/${e}/branches`,workflowSwitchBranch:e=>`workflows/${e}/switch-branch`,workflowHistory:e=>`workflows/${e}/history`,nodeGenerate:e=>`nodes/${e}/generate`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeReview:e=>`nodes/${e}/review`,nodeImages:e=>`nodes/${e}/images`,workflowReview:e=>`workflows/${e}/review`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",settingsImport:"settings/import",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materialCategory:e=>`material-categories/${e}`,materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class ou extends Error{constructor(n,l,s={}){super(l);sl(this,"code");sl(this,"details");this.name="ApiClientError",this.code=n,this.details=s}}async function re(e,t){return gt(e,{method:"GET",query:t})}async function ee(e,t){return gt(e,{method:"POST",body:t})}async function gt(e,t={}){const l=await(await fetch(iu(e,t.query),{method:t.method??"GET",headers:t.body===void 0?void 0:{"Content-Type":"application/json"},body:t.body===void 0?void 0:JSON.stringify(t.body)})).json();if(!l.ok)throw new ou(l.error_code,l.message,l.details);return l.data}function iu(e,t){const n=e.replace(/^\/+/,""),l=new URL(`${su}/${n}`,window.location.origin);for(const[s,i]of Object.entries(t??{}))i!==void 0&&l.searchParams.set(s,String(i));return`${l.pathname}${l.search}`}const ru={class:"web-shell"},au={class:"sidebar"},uu={class:"brand"},cu=["onClick"],du={class:"workspace"},fu={class:"topbar"},pu={class:"actions"},hu=["disabled"],gu={key:0,class:"notice error"},vu={key:1,class:"notice"},_u={key:0,class:"dashboard-grid"},mu={key:1,class:"list-view"},yu={class:"form-grid"},bu={class:"wide-field"},wu=["disabled"],ku=["disabled"],xu={key:0},Cu={class:"inline-actions"},Su={class:"badge"},Pu=["disabled","onClick"],Du={key:0,class:"empty"},Eu={key:2,class:"split-view"},Tu={class:"list-view"},Ou={class:"form-grid"},Iu=["disabled"],Au={class:"inline-actions"},Mu={class:"badge"},Ru=["disabled","onClick"],$u=["disabled","onClick"],Bu=["disabled","onClick"],Lu=["disabled","onClick"],Fu={key:0,class:"empty"},Vu={key:0,class:"editor-panel"},Uu={class:"form-grid"},Nu=["disabled"],ju=["disabled","onClick"],Hu={class:"list-view"},Wu={class:"inline-actions"},Ku=["disabled"],qu={class:"form-grid"},Ju={class:"wide-field"},Gu=["disabled"],zu=["disabled"],Yu={class:"inline-actions"},Qu={class:"badge"},Xu=["disabled","onClick"],Zu={key:0,class:"empty"},ec={class:"inline-actions"},tc={key:0,class:"badge"},nc=["disabled","onClick"],lc=["disabled","onClick"],sc=["disabled","onClick"],oc=["disabled","onClick"],ic=["disabled","onClick"],rc={key:0,class:"empty"},ac={key:0},uc={class:"editor-panel"},cc={key:0,class:"empty"},dc={key:1,class:"editor-panel"},fc={key:2},pc={key:3,class:"split-view"},hc={class:"list-view"},gc={class:"form-grid"},vc=["disabled"],_c=["disabled"],mc={class:"inline-actions"},yc=["disabled","onClick"],bc=["disabled","onClick"],wc={key:0,class:"empty"},kc={class:"list-view"},xc={class:"inline-actions"},Cc=["disabled"],Sc={class:"form-grid"},Pc={value:""},Dc=["value"],Ec=["disabled"],Tc=["disabled"],Oc={class:"inline-actions"},Ic={class:"badge"},Ac=["disabled","onClick"],Mc=["disabled","onClick"],Rc=["disabled","onClick"],$c=["disabled","onClick"],Bc={key:0,class:"empty"},Lc={key:0},Fc={key:4,class:"list-view"},Vc=["disabled"],Uc={class:"form-grid"},Nc={value:""},jc=["value"],Hc=["disabled"],Wc={class:"inline-actions"},Kc=["disabled","onClick"],qc={key:0,class:"empty"},Jc={key:0},Gc={class:"form-grid"},zc=["disabled"],Yc={key:1},Qc={key:5,class:"list-view"},Xc={class:"inline-actions"},Zc=["disabled"],ed=["disabled"],td={class:"form-grid"},nd={value:""},ld=["value"],sd={value:""},od=["value"],id={value:""},rd=["value"],ad=["disabled"],ud={class:"inline-actions"},cd={class:"badge"},dd=["onClick"],fd=["onClick"],pd=["disabled","onClick"],hd={key:0,class:"empty"},gd={key:0,class:"editor-panel"},vd={key:6,class:"split-view"},_d={class:"list-view"},md=["disabled"],yd={class:"form-grid"},bd=["disabled"],wd={key:0},kd={class:"list-view"},xd={class:"inline-actions"},Cd={class:"badge"},Sd=["disabled","onClick"],Pd=["disabled","onClick"],Dd=["disabled","onClick"],Ed={key:0,class:"empty"},Td={key:7,class:"logs-view"},Od={class:"split-view"},Id={class:"list-view"},Ad={key:0,class:"empty"},Md={class:"list-view"},Rd={class:"badge"},$d={key:0,class:"empty"},Bd={class:"split-view"},Ld={class:"list-view"},Fd={key:0,class:"empty"},Vd={class:"list-view"},Ud={class:"badge"},Nd={key:0,class:"empty"},jd={class:"list-view"},Hd={key:0,class:"empty"},Wd={key:8,class:"settings-view"},Kd={class:"toolbar"},qd=["disabled"],Jd=["disabled"],Gd=["disabled"],zd=["disabled"],Yd=["disabled"],Qd=["disabled"],Xd={class:"settings-sections"},Zd={class:"editor-panel"},ef={class:"editor-panel"},tf=["disabled"],nf={class:"split-view"},lf={class:"list-view"},sf={class:"list-view"},of={class:"inspector"},rf=Tr({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",generate:"生成",adopt:"采纳",select:"选择",unselect:"取选",recognize:"识别",confirm:"确认",edit:"编辑",update:"更新",name:"名称",identity:"身份",personality:"性格",hairColor:"发色",hairstyle:"发型",eyeColor:"眼色",description:"描述",basePrompt:"基础提示词",appearancePrompt:"外观提示词",stylePrompt:"风格提示词",negativePrompt:"反向提示词",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialUpdated:"素材已更新",materialArchived:"素材已归档",importToWardrobe:"加入衣橱",delete:"删除",wardrobeCategory:"衣橱分类",season:"季节",style:"风格",selectMaterial:"选择素材",wardrobeImported:"衣橱条目已加入",wardrobeDeleted:"衣橱条目已删除",dailyOutfit:"每日穿搭",categories:"分类",mood:"心情",weather:"天气",keywords:"关键词",outfitGenerated:"每日穿搭已生成",dashboard:"运行概览",profiles:"角色",workflows:"工作流",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",profileCreated:"角色已创建",profileDeleted:"角色已删除",emptyProfiles:"暂无角色",workflowList:"工作流列表",workflowType:"工作流类型",workflowCreated:"工作流已创建",emptyWorkflows:"暂无工作流",nodes:"节点",images:"图片",branches:"分支",branchName:"分支名",switchBranch:"切换分支",history:"历史",review:"评审",reviewResult:"评审结果",emptyImages:"暂无图片",emptyHistory:"暂无历史",modelRoute:"模型路由",prompt:"提示词",generationQueued:"生成已入队",branchCreated:"分支已创建",imageArchived:"图片已归档",imageDeleted:"图片已删除",currentBranch:"当前分支",materialCategories:"素材分类",categoryType:"分类类型",sortOrder:"排序",categoryCreated:"分类已创建",categoryUpdated:"分类已更新",categoryDeleted:"分类已删除",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",filter:"筛选",detail:"详情",jobDetail:"任务详情",allStatuses:"全部状态",allProfiles:"全部角色",allWorkflows:"全部工作流",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",importSettings:"导入设置",importDone:"设置已导入",importDraftInvalid:"导入 JSON 格式无效",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},n=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"workflows",label:t.workflows},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],l=N("dashboard"),s=N(null),i=N(null),r=N(null),a=N([]),f=N(null),_=N([]),v=N([]),y=N(null),T=N(""),A=N([]),Z=N(null),F=N(null),fe=N(null),ue=N(null),H=N(null),ie=N(null),B=N([]),ce=N(null),Ie=N([]),Be=N([]),Ne=N([]),ut=N(null),me=N({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Qe=N(null),ct=N(""),Xe=N(""),dt=N(null),kt=N(null),U=N({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),le=N(null),z=N({display_name:"",workflow_type:"single_image"}),Le=N({branch_name:""}),Fe=N({model_route:"",prompt:"",negative_prompt:""}),Ce=N({status:"",profile_id:"",workflow_id:""}),J=N({material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}),xe=N({category_id:"",name:"",category_type:"material",sort_order:0}),ke=N({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),Ve=N({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),Ze=N(null),Ee=N({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),xt=N(null),ve=N(""),ft=N(!0),M=N(""),d=N(""),g=St(()=>{var p,h;return((h=(p=r.value)==null?void 0:p.items[0])==null?void 0:h.profile_id)??""}),m=St(()=>{var p,h;return((h=(p=r.value)==null?void 0:p.items[0])==null?void 0:h.name)??t.noProfile}),x=St(()=>{var h;const p=(h=i.value)==null?void 0:h.queue;return p?p.pending+p.running+p.failed+p.dead_letter:0}),k=St(()=>{var p;return((p=ce.value)==null?void 0:p.items.filter(h=>h.recognition_status!=="confirmed").length)??0}),w=St(()=>{var p;return(((p=ce.value)==null?void 0:p.items)??[]).filter(h=>h.recognition_status==="confirmed")}),E=St(()=>{var p;return((p=f.value)==null?void 0:p.nodes.find(h=>h.node_id===T.value))??null}),D=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],P=St(()=>({dashboard:t.dashboard,profiles:t.profiles,workflows:t.workflows,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[l.value]);bo(b);async function b(){var p,h;ft.value=!0,d.value="";try{const[q,he,Se,Ct,bn,Gt,wn,kn,xn,Cn,Sn]=await Promise.all([re(I.uiBootstrap),re(I.dashboardSummary),re(I.profiles,{page:1,page_size:20}),re(I.jobs,{page:1,page_size:20}),re(I.settingsSchema),re(I.settingsCurrent),re(I.storageStatus),re(I.materialCategories),re(I.materials,{page:1,page_size:24}),re(I.apiDiscoveryDialects),re(I.apiDiscoveryCapabilities)]);s.value=q,i.value=he,r.value=Se,F.value=Ct,ue.value=bn,H.value=Gt,Jt(Gt.config),ie.value=wn,B.value=kn,ce.value=xn,Be.value=Cn,Ne.value=Sn,await V((p=Se.items[0])==null?void 0:p.profile_id),await Y((h=Se.items[0])==null?void 0:h.profile_id),await L()}catch(q){d.value=q instanceof Error?q.message:t.loadFailed}finally{ft.value=!1}}async function L(){const[p,h,q,he,Se]=await Promise.allSettled([re(I.generationLogs,{limit:12}),re(I.workflowLogs,{limit:12}),re(I.errorLogs,{limit:12}),re(I.integrationLogs,{limit:12}),re(I.auditLogs,{limit:12})]);me.value={generation:O(p),workflows:O(h),errors:O(q),integrations:O(he),audit:O(Se)}}function O(p){return p.status==="fulfilled"?p.value:[]}async function R(){F.value=await re(I.jobs,{status:Ce.value.status||void 0,profile_id:Ce.value.profile_id||void 0,workflow_id:Ce.value.workflow_id||void 0,page:1,page_size:20})}async function V(p){if(!p){Ie.value=[];return}Ie.value=await re(I.wardrobe(p))}async function Y(p){var he,Se;if(!p){a.value=[],f.value=null,_.value=[],v.value=[],T.value="",A.value=[];return}a.value=await re(I.profileWorkflows(p));const h=(he=f.value)==null?void 0:he.workflow.workflow_id,q=a.value.some(Ct=>Ct.workflow_id===h)?h:(Se=a.value[0])==null?void 0:Se.workflow_id;q?await te(q):f.value=null}async function te(p){var Se;const h=await re(I.workflow(p));f.value=h;const q=T.value,he=h.nodes.some(Ct=>Ct.node_id===q)?q:h.workflow.current_node_id||((Se=h.nodes[0])==null?void 0:Se.node_id);he?await ne(he):(T.value="",A.value=[]),await be(p)}async function ne(p){T.value=p,A.value=await re(I.nodeImages(p))}async function be(p){const[h,q]=await Promise.all([re(I.workflowBranches(p)),re(I.workflowHistory(p))]);_.value=h,v.value=q}async function pe(){var h;const p=(h=f.value)==null?void 0:h.workflow.workflow_id;p&&await te(p)}async function $(p,h,q=!0){M.value=p,d.value="";try{const he=await h();ve.value=`${p}${t.complete}`,p===t.exportSettings&&(ve.value=`${t.exportDone}: ${!!he.redacted}`),q&&await b()}catch(he){d.value=he instanceof Error?he.message:`${p}${t.failed}`}finally{M.value=""}}function He(p){return $(t.retry,()=>ee(I.jobRetry(p)))}function Et(p){return $(t.cancel,()=>ee(I.jobCancel(p)))}function vn(p){return $(t.detail,async()=>(fe.value=await re(I.job(p)),fe.value),!1)}function Ae(){U.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},le.value=null}function We(){return $(t.quickDraft,async()=>(le.value=await ee(I.quickProfileDraft,{questionnaire:{name:U.value.name,identity:U.value.identity,personality:Tt(U.value.personality),hair_color:U.value.hair_color,hairstyle:U.value.hairstyle,eye_color:U.value.eye_color,style:U.value.style,clothing_keywords:Tt(U.value.clothing_keywords)}}),le.value),!1)}function _n(){var h;const p=(h=le.value)==null?void 0:h.profile_preview;return $(t.create,async()=>{const q=await ee(I.profiles,{name:(p==null?void 0:p.name)||U.value.name,description:U.value.description,base_prompt:p==null?void 0:p.base_prompt,appearance_prompt:p==null?void 0:p.appearance_prompt,style_prompt:p==null?void 0:p.style_prompt,negative_prompt:p==null?void 0:p.negative_prompt});return Ae(),ve.value=t.profileCreated,q})}function mn(p){return $(t.delete,async()=>{const h=await gt(I.profile(p),{method:"DELETE"});return ve.value=t.profileDeleted,h})}function Ko(){const p=g.value;return p?$(t.create,async()=>{const h=await ee(I.profileWorkflows(p),{display_name:z.value.display_name,workflow_type:z.value.workflow_type});return z.value.display_name="",f.value=h,ve.value=t.workflowCreated,h}):Promise.resolve()}function qo(p){return $(t.start,()=>ee(I.workflowStart(p)))}function Jo(p){return $(t.cancel,()=>ee(I.workflowCancel(p)))}function Go(p){return $(t.archive,()=>ee(I.workflowArchive(p)))}function zo(){var h;const p=(h=f.value)==null?void 0:h.workflow;return!p||!Le.value.branch_name?Promise.resolve():$(t.branches,async()=>{const q=await ee(I.workflowBranches(p.workflow_id),{branch_name:Le.value.branch_name,base_branch_name:p.current_branch,base_node_id:T.value||p.current_node_id,copy_nodes:!0});return Le.value.branch_name="",await pe(),ve.value=t.branchCreated,q},!1)}function Yo(p){var q;const h=(q=f.value)==null?void 0:q.workflow.workflow_id;return h?$(t.switchBranch,async()=>{const he=await ee(I.workflowSwitchBranch(h),{branch_name:p});return await pe(),he},!1):Promise.resolve()}function Qo(){var h;const p=(h=f.value)==null?void 0:h.workflow.workflow_id;return p?$(t.review,async()=>(y.value=await re(I.workflowReview(p)),y.value),!1):Promise.resolve()}function Xo(){const p=T.value;return p?$(t.review,async()=>(y.value=await re(I.nodeReview(p)),y.value),!1):Promise.resolve()}function Zo(){const p=T.value;return p?$(t.generate,async()=>(Z.value=await ee(I.nodeGenerate(p),{model_route:Fe.value.model_route||void 0,prompt:Fe.value.prompt||void 0,negative_prompt:Fe.value.negative_prompt||void 0}),await pe(),ve.value=t.generationQueued,Z.value),!1):Promise.resolve()}function ei(p){const h=T.value;return h?$(t.select,async()=>{const q=await ee(I.nodeSelectImage(h),{image_id:p});return await pe(),q},!1):Promise.resolve()}function ti(p){const h=T.value;return h?$(t.adopt,async()=>{var he;const q=await ee(I.nodeAdoptImage(h),{image_id:p,title:(he=E.value)==null?void 0:he.title});return await pe(),q},!1):Promise.resolve()}function ni(p){return $(t.unselect,async()=>{const h=await ee(I.imageUnselect(p));return await pe(),h},!1)}function li(p){return $(t.archive,async()=>{const h=await ee(I.imageArchive(p));return await pe(),ve.value=t.imageArchived,h},!1)}function si(p){return $(t.delete,async()=>{const h=await gt(I.image(p),{method:"DELETE"});return await pe(),ve.value=t.imageDeleted,h},!1)}function oi(){return $(t.moveFailed,()=>ee(I.jobDeadLetterMoveFailed,{limit:20}))}function ii(){return $(t.retryDead,()=>ee(I.jobDeadLetterRetry,{limit:20}))}function ri(){var h;const p=((h=Be.value[0])==null?void 0:h.dialect)??"unknown";return $(t.safeProbe,()=>ee(I.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:p,capabilities:{supports:["text_to_image"]}}))}function ai(){return $(t.validatePlan,async()=>(xt.value=await ee(I.apiDiscoveryValidateRenderPlan,{provider_id:Ee.value.provider_id,model_id:Ee.value.model_id,required_capabilities:Tt(Ee.value.required_capabilities)}),xt.value),!1)}function el(p,h){return $(t.discovery,()=>ee(I.apiDiscoveryManualOverride,{provider_id:p.provider_id,model_id:p.model_id,dialect:p.dialect,status:h,capabilities:p.capabilities}))}function ui(){const p=g.value;return p?$(t.matchWardrobe,async()=>(ut.value=await ee(I.wardrobeMatch(p),{tags:["daily"]}),ut.value),!1):Promise.resolve()}function ci(){ke.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function di(){const p=g.value;return p?$(t.importToWardrobe,async()=>{const h=await ee(I.wardrobeImportMaterial(p),{material_id:ke.value.material_id,wardrobe_category:ke.value.wardrobe_category,tags:Tt(ke.value.tags),season:ke.value.season||void 0,style:ke.value.style||void 0});return ci(),ve.value=t.wardrobeImported,h}):Promise.resolve()}function fi(p){const h=g.value;return h?$(t.delete,async()=>{const q=await gt(I.wardrobeItem(h,p),{method:"DELETE"});return ve.value=t.wardrobeDeleted,q}):Promise.resolve()}function pi(){const p=g.value;return p?$(t.dailyOutfit,async()=>(Ze.value=await ee(I.privateCompanionDailyOutfit,{profile_id:p,categories:Tt(Ve.value.categories),mood:Ve.value.mood,weather:Ve.value.weather,keywords:Tt(Ve.value.keywords),request_source:"astrbot_plugin_private_companion"}),ve.value=t.outfitGenerated,Ze.value),!1):Promise.resolve()}function hi(){return $(t.reload,async()=>{var h;const p=await ee(I.settingsReload);return H.value={config_path:((h=H.value)==null?void 0:h.config_path)??"***PATH***",config:p.config},Jt(p.config),p},!1)}function gi(){return $(t.exportSettings,()=>re(I.settingsExport),!1)}function Jt(p=(h=>(h=H.value)==null?void 0:h.config)()??{}){ct.value=JSON.stringify(p,null,2),dt.value=null,kt.value=null}function tl(){try{const p=JSON.parse(ct.value);if(!p||Array.isArray(p)||typeof p!="object")throw new Error(t.settingsDraftInvalid);return p}catch(p){throw new Error(p instanceof Error?p.message:t.settingsDraftInvalid)}}function vi(){try{const p=JSON.parse(Xe.value);if(!p||Array.isArray(p)||typeof p!="object")throw new Error(t.importDraftInvalid);return p}catch(p){throw new Error(p instanceof Error?p.message:t.importDraftInvalid)}}function _i(){return $(t.validate,async()=>(dt.value=await ee(I.settingsValidate,{config:tl()}),dt.value),!1)}function mi(){return $(t.diff,async()=>(kt.value=await ee(I.settingsDiff,{config:tl()}),kt.value),!1)}function yi(){return $(t.save,async()=>{var h;const p=await ee(I.settingsSave,{config:tl()});return H.value={config_path:((h=H.value)==null?void 0:h.config_path)??"***PATH***",config:p.config},Jt(p.config),ve.value=t.settingsSaved,p},!1)}function bi(){return $(t.importSettings,async()=>{var h;const p=await ee(I.settingsImport,{config:vi()});return H.value={config_path:((h=H.value)==null?void 0:h.config_path)??"***PATH***",config:p.config},Jt(p.config),Xe.value="",ve.value=t.importDone,p},!1)}function wi(){var h,q;const p=(q=(h=ce.value)==null?void 0:h.items.find(he=>{var Se;return(Se=he.image_uri)==null?void 0:Se.startsWith("storage://")}))==null?void 0:q.image_uri;return p?$(t.signMaterial,async()=>(Qe.value=await re(I.mediaSign,{uri:p}),Qe.value),!1):(ve.value=t.noSignableMaterial,Promise.resolve())}function yn(){xe.value={category_id:"",name:"",category_type:"material",sort_order:0}}function ki(p){xe.value={category_id:p.category_id,name:p.name,category_type:p.category_type,sort_order:p.sort_order}}function xi(){const p={name:xe.value.name,category_type:xe.value.category_type,sort_order:Number(xe.value.sort_order)||0};return xe.value.category_id?$(t.update,async()=>{const h=await gt(I.materialCategory(xe.value.category_id),{method:"PUT",body:p});return yn(),ve.value=t.categoryUpdated,h}):$(t.create,async()=>{const h=await ee(I.materialCategories,p);return yn(),ve.value=t.categoryCreated,h})}function Ci(p){return $(t.delete,async()=>{const h=await gt(I.materialCategory(p),{method:"DELETE"});return xe.value.category_id===p&&yn(),ve.value=t.categoryDeleted,h})}function nl(){J.value={material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}}function Si(){const p={display_name:J.value.display_name,image_uri:J.value.image_uri||void 0,thumbnail_uri:J.value.image_uri||void 0,category_id:J.value.category_id||void 0,tags:Tt(J.value.tags),prompt:J.value.prompt||void 0,negative_prompt:J.value.negative_prompt||void 0,recognition_status:J.value.image_uri?"pending_recognition":"pending_upload"};return J.value.material_id?$(t.update,async()=>{const h=await gt(I.material(J.value.material_id),{method:"PUT",body:p});return nl(),ve.value=t.materialUpdated,h}):$(t.create,async()=>{const h=await ee(I.materials,p);return nl(),ve.value=t.materialCreated,h})}function Pi(p){J.value={material_id:p.material_id,display_name:p.display_name,image_uri:p.image_uri??"",tags:p.tags.join(", "),category_id:p.category_id??"",prompt:p.prompt??"",negative_prompt:p.negative_prompt??""}}function Di(p){return $(t.recognize,()=>ee(I.materialRecognize(p)))}function Ei(p){return $(t.confirm,()=>ee(I.materialConfirm(p.material_id),{display_name:p.display_name,prompt:p.prompt,negative_prompt:p.negative_prompt,tags:p.tags}))}function Ti(p){return $(t.archive,async()=>{const h=await gt(I.material(p),{method:"DELETE"});return ve.value=t.materialArchived,h})}function Tt(p){return p.split(",").map(h=>h.trim()).filter(Boolean)}function ll(p=0){return p<1024?`${p} B`:p<1024*1024?`${(p/1024).toFixed(1)} KB`:p<1024*1024*1024?`${(p/1024/1024).toFixed(1)} MB`:`${(p/1024/1024/1024).toFixed(1)} GB`}function Wl(p){var h,q;return((q=(h=ie.value)==null?void 0:h.roots.find(he=>he.uri_prefix===p))==null?void 0:q.bytes)??0}return(p,h)=>{var q,he,Se,Ct,bn,Gt,wn,kn,xn,Cn,Sn,Kl,ql,Jl,Gl,zl,Yl,Ql,Xl,Zl,es,ts,ns,ls,ss,os;return C(),S("main",ru,[o("aside",au,[o("div",uu,[o("strong",null,u(((q=s.value)==null?void 0:q.display_name)??"ImageStudio"),1),o("span",null,u(((he=s.value)==null?void 0:he.dashboard_user)??"AstrBot"),1)]),o("nav",null,[(C(),S(X,null,ye(n,c=>o("button",{key:c.key,type:"button",class:Jn({active:l.value===c.key}),onClick:_e=>l.value=c.key},u(c.label),11,cu)),64))])]),o("section",du,[o("header",fu,[o("div",null,[o("h1",null,u(P.value),1),o("p",null,u(((Se=i.value)==null?void 0:Se.plugin_status)??"loading")+" / "+u(ve.value||t.waiting),1)]),o("div",pu,[o("button",{type:"button",disabled:!!M.value,onClick:b},u(M.value||t.refresh),9,hu)])]),d.value?(C(),S("section",gu,u(d.value),1)):ft.value?(C(),S("section",vu,u(t.loading),1)):(C(),S(X,{key:2},[l.value==="dashboard"?(C(),S("section",_u,[o("article",null,[o("span",null,u(t.profiles),1),o("strong",null,u(((Ct=i.value)==null?void 0:Ct.active_profiles)??0),1)]),o("article",null,[o("span",null,u(t.jobs),1),o("strong",null,u(x.value),1)]),o("article",null,[o("span",null,u(t.materials),1),o("strong",null,u(((bn=ce.value)==null?void 0:bn.total)??0),1)]),o("article",null,[o("span",null,u(t.storage),1),o("strong",null,u(ll(((Gt=ie.value)==null?void 0:Gt.total_bytes)??((wn=i.value)==null?void 0:wn.storage.total_bytes))),1)])])):G("",!0),l.value==="profiles"?(C(),S("section",mu,[o("header",null,[o("h2",null,u(t.profileList),1),o("span",null,u(((kn=r.value)==null?void 0:kn.total)??0),1)]),o("div",yu,[o("label",null,[o("span",null,u(t.name),1),K(o("input",{"onUpdate:modelValue":h[0]||(h[0]=c=>U.value.name=c),type:"text"},null,512),[[Q,U.value.name]])]),o("label",null,[o("span",null,u(t.identity),1),K(o("input",{"onUpdate:modelValue":h[1]||(h[1]=c=>U.value.identity=c),type:"text"},null,512),[[Q,U.value.identity]])]),o("label",null,[o("span",null,u(t.personality),1),K(o("input",{"onUpdate:modelValue":h[2]||(h[2]=c=>U.value.personality=c),type:"text",placeholder:"calm, brave"},null,512),[[Q,U.value.personality]])]),o("label",null,[o("span",null,u(t.hairColor),1),K(o("input",{"onUpdate:modelValue":h[3]||(h[3]=c=>U.value.hair_color=c),type:"text"},null,512),[[Q,U.value.hair_color]])]),o("label",null,[o("span",null,u(t.hairstyle),1),K(o("input",{"onUpdate:modelValue":h[4]||(h[4]=c=>U.value.hairstyle=c),type:"text"},null,512),[[Q,U.value.hairstyle]])]),o("label",null,[o("span",null,u(t.eyeColor),1),K(o("input",{"onUpdate:modelValue":h[5]||(h[5]=c=>U.value.eye_color=c),type:"text"},null,512),[[Q,U.value.eye_color]])]),o("label",null,[o("span",null,u(t.stylePrompt),1),K(o("input",{"onUpdate:modelValue":h[6]||(h[6]=c=>U.value.style=c),type:"text"},null,512),[[Q,U.value.style]])]),o("label",null,[o("span",null,u(t.tags),1),K(o("input",{"onUpdate:modelValue":h[7]||(h[7]=c=>U.value.clothing_keywords=c),type:"text",placeholder:"white blouse, ribbon"},null,512),[[Q,U.value.clothing_keywords]])]),o("label",bu,[o("span",null,u(t.description),1),K(o("input",{"onUpdate:modelValue":h[8]||(h[8]=c=>U.value.description=c),type:"text"},null,512),[[Q,U.value.description]])]),o("button",{type:"button",disabled:!!M.value||!U.value.name,onClick:We},u(t.quickDraft),9,wu),o("button",{type:"button",disabled:!!M.value||!U.value.name,onClick:_n},u(t.create),9,ku)]),le.value?(C(),S("pre",xu,u(JSON.stringify(le.value,null,2)),1)):G("",!0),o("ul",null,[(C(!0),S(X,null,ye(((xn=r.value)==null?void 0:xn.items)??[],c=>(C(),S("li",{key:c.profile_id},[o("div",null,[o("strong",null,u(c.name),1),o("small",null,u(c.profile_id),1)]),o("div",Cu,[o("span",Su,u(c.status),1),o("button",{type:"button",disabled:!!M.value,onClick:_e=>mn(c.profile_id)},u(t.delete),9,Pu)])]))),128)),(Cn=r.value)!=null&&Cn.items.length?G("",!0):(C(),S("li",Du,u(t.emptyProfiles),1))])])):G("",!0),l.value==="workflows"?(C(),S("section",Eu,[o("div",Tu,[o("header",null,[o("h2",null,u(m.value),1),o("span",null,u(a.value.length),1)]),o("div",Ou,[o("label",null,[o("span",null,u(t.name),1),K(o("input",{"onUpdate:modelValue":h[9]||(h[9]=c=>z.value.display_name=c),type:"text"},null,512),[[Q,z.value.display_name]])]),o("label",null,[o("span",null,u(t.workflowType),1),K(o("select",{"onUpdate:modelValue":h[10]||(h[10]=c=>z.value.workflow_type=c)},[...h[42]||(h[42]=[o("option",{value:"single_image"},"single_image",-1),o("option",{value:"character_gradual"},"character_gradual",-1),o("option",{value:"character_fast"},"character_fast",-1),o("option",{value:"quick_profile"},"quick_profile",-1)])],512),[[Ft,z.value.workflow_type]])]),o("button",{type:"button",disabled:!!M.value||!g.value||!z.value.display_name,onClick:Ko},u(t.create),9,Iu)]),o("ul",null,[(C(!0),S(X,null,ye(a.value,c=>(C(),S("li",{key:c.workflow_id},[o("div",null,[o("strong",null,u(c.display_name),1),o("small",null,u(c.workflow_type)+" / "+u(c.workflow_id),1)]),o("div",Au,[o("span",Mu,u(c.status),1),o("button",{type:"button",disabled:!!M.value,onClick:_e=>te(c.workflow_id)},u(t.nodes),9,Ru),o("button",{type:"button",disabled:!!M.value,onClick:_e=>qo(c.workflow_id)},u(t.start),9,$u),o("button",{type:"button",disabled:!!M.value,onClick:_e=>Jo(c.workflow_id)},u(t.cancel),9,Bu),o("button",{type:"button",disabled:!!M.value,onClick:_e=>Go(c.workflow_id)},u(t.archive),9,Lu)])]))),128)),a.value.length?G("",!0):(C(),S("li",Fu,u(t.emptyWorkflows),1))]),f.value?(C(),S("section",Vu,[o("header",null,[o("h2",null,u(t.branches),1),o("span",null,u(_.value.length),1)]),o("div",Uu,[o("label",null,[o("span",null,u(t.branchName),1),K(o("input",{"onUpdate:modelValue":h[11]||(h[11]=c=>Le.value.branch_name=c),type:"text",placeholder:"alt_pose"},null,512),[[Q,Le.value.branch_name]])]),o("button",{type:"button",disabled:!!M.value||!Le.value.branch_name,onClick:zo},u(t.create),9,Nu)]),o("ul",null,[(C(!0),S(X,null,ye(_.value,c=>(C(),S("li",{key:c.branch_id},[o("div",null,[o("strong",null,u(c.branch_name),1),o("small",null,u(c.base_branch_name??"main")+" / "+u(c.status),1)]),o("button",{type:"button",disabled:!!M.value,onClick:_e=>Yo(c.branch_name)},u(t.switchBranch),9,ju)]))),128))])])):G("",!0)]),o("div",Hu,[o("header",null,[o("h2",null,u(t.nodes),1),o("div",Wu,[o("span",null,u(((Sn=f.value)==null?void 0:Sn.workflow.current_branch)??"main"),1),o("button",{type:"button",disabled:!!M.value||!f.value,onClick:Qo},u(t.review),9,Ku)])]),o("div",qu,[o("label",null,[o("span",null,u(t.modelRoute),1),K(o("input",{"onUpdate:modelValue":h[12]||(h[12]=c=>Fe.value.model_route=c),type:"text",placeholder:"image_low"},null,512),[[Q,Fe.value.model_route]])]),o("label",null,[o("span",null,u(t.prompt),1),K(o("input",{"onUpdate:modelValue":h[13]||(h[13]=c=>Fe.value.prompt=c),type:"text"},null,512),[[Q,Fe.value.prompt]])]),o("label",Ju,[o("span",null,u(t.negativePrompt),1),K(o("input",{"onUpdate:modelValue":h[14]||(h[14]=c=>Fe.value.negative_prompt=c),type:"text"},null,512),[[Q,Fe.value.negative_prompt]])]),o("button",{type:"button",disabled:!!M.value||!T.value,onClick:Zo},u(t.generate),9,Gu),o("button",{type:"button",disabled:!!M.value||!T.value,onClick:Xo},u(t.review),9,zu)]),o("ul",null,[(C(!0),S(X,null,ye(((Kl=f.value)==null?void 0:Kl.nodes)??[],c=>(C(),S("li",{key:c.node_id},[o("div",null,[o("strong",null,u(c.title),1),o("small",null,u(c.node_key)+" / "+u(c.node_id),1)]),o("div",Yu,[o("span",null,u(c.branch_name),1),o("span",Qu,u(c.status),1),o("button",{type:"button",disabled:!!M.value,onClick:_e=>ne(c.node_id)},u(t.images),9,Xu)])]))),128)),(ql=f.value)!=null&&ql.nodes.length?G("",!0):(C(),S("li",Zu,u(t.emptyWorkflows),1))]),o("ul",null,[(C(!0),S(X,null,ye(A.value,c=>(C(),S("li",{key:c.image_id},[o("div",null,[o("strong",null,u(c.image_id),1),o("small",null,u(c.thumbnail_uri??c.image_uri),1)]),o("div",ec,[c.is_selected?(C(),S("span",tc,u(t.select),1)):G("",!0),o("button",{type:"button",disabled:!!M.value||c.is_selected||c.is_archived,onClick:_e=>ei(c.image_id)},u(t.select),9,nc),o("button",{type:"button",disabled:!!M.value||c.is_archived,onClick:_e=>ti(c.image_id)},u(t.adopt),9,lc),o("button",{type:"button",disabled:!!M.value||!c.is_selected,onClick:_e=>ni(c.image_id)},u(t.unselect),9,sc),o("button",{type:"button",disabled:!!M.value||c.is_archived,onClick:_e=>li(c.image_id)},u(t.archive),9,oc),o("button",{type:"button",disabled:!!M.value,onClick:_e=>si(c.image_id)},u(t.delete),9,ic)])]))),128)),A.value.length?G("",!0):(C(),S("li",rc,u(t.emptyImages),1))]),Z.value?(C(),S("pre",ac,u(JSON.stringify(Z.value,null,2)),1)):G("",!0),o("section",uc,[o("header",null,[o("h2",null,u(t.history),1),o("span",null,u(v.value.length),1)]),o("ul",null,[(C(!0),S(X,null,ye(v.value,c=>(C(),S("li",{key:c.history_id},[o("div",null,[o("strong",null,u(c.action),1),o("small",null,u(c.title??c.node_id??c.workflow_id),1)]),o("span",null,u(c.branch_name),1)]))),128)),v.value.length?G("",!0):(C(),S("li",cc,u(t.emptyHistory),1))])]),y.value?(C(),S("section",dc,[o("header",null,[o("h2",null,u(t.reviewResult),1),o("span",null,u(y.value.passed?t.support:t.unsupported),1)]),o("pre",null,u(JSON.stringify(y.value,null,2)),1)])):G("",!0),f.value?(C(),S("pre",fc,u(JSON.stringify(f.value.workflow,null,2)),1)):G("",!0)])])):G("",!0),l.value==="materials"?(C(),S("section",pc,[o("div",hc,[o("header",null,[o("h2",null,u(t.materialCategories),1),o("span",null,u(B.value.length),1)]),o("div",gc,[o("label",null,[o("span",null,u(t.name),1),K(o("input",{"onUpdate:modelValue":h[15]||(h[15]=c=>xe.value.name=c),type:"text"},null,512),[[Q,xe.value.name]])]),o("label",null,[o("span",null,u(t.categoryType),1),K(o("input",{"onUpdate:modelValue":h[16]||(h[16]=c=>xe.value.category_type=c),type:"text"},null,512),[[Q,xe.value.category_type]])]),o("label",null,[o("span",null,u(t.sortOrder),1),K(o("input",{"onUpdate:modelValue":h[17]||(h[17]=c=>xe.value.sort_order=c),type:"number"},null,512),[[Q,xe.value.sort_order,void 0,{number:!0}]])]),o("button",{type:"button",disabled:!!M.value||!xe.value.name,onClick:xi},u(xe.value.category_id?t.update:t.create),9,vc),o("button",{type:"button",disabled:!!M.value,onClick:yn},u(t.reset),9,_c)]),o("ul",null,[(C(!0),S(X,null,ye(B.value,c=>(C(),S("li",{key:c.category_id},[o("div",null,[o("strong",null,u(c.name),1),o("small",null,u(c.category_type),1)]),o("div",mc,[o("span",null,u(c.sort_order),1),o("button",{type:"button",disabled:!!M.value,onClick:_e=>ki(c)},u(t.edit),9,yc),o("button",{type:"button",disabled:!!M.value,onClick:_e=>Ci(c.category_id)},u(t.delete),9,bc)])]))),128)),B.value.length?G("",!0):(C(),S("li",wc,u(t.emptyCategories),1))])]),o("div",kc,[o("header",null,[o("h2",null,u(t.materialItems),1),o("div",xc,[o("span",null,u(k.value)+" "+u(t.pendingConfirm),1),o("button",{type:"button",disabled:!!M.value,onClick:wi},u(t.signFirstImage),9,Cc)])]),o("div",Sc,[o("label",null,[o("span",null,u(t.name),1),K(o("input",{"onUpdate:modelValue":h[18]||(h[18]=c=>J.value.display_name=c),type:"text"},null,512),[[Q,J.value.display_name]])]),o("label",null,[o("span",null,u(t.imageUri),1),K(o("input",{"onUpdate:modelValue":h[19]||(h[19]=c=>J.value.image_uri=c),type:"text",placeholder:"storage://materials/example.png"},null,512),[[Q,J.value.image_uri]])]),o("label",null,[o("span",null,u(t.category),1),K(o("select",{"onUpdate:modelValue":h[20]||(h[20]=c=>J.value.category_id=c)},[o("option",Pc,u(t.allCategories),1),(C(!0),S(X,null,ye(B.value,c=>(C(),S("option",{key:c.category_id,value:c.category_id},u(c.name),9,Dc))),128))],512),[[Ft,J.value.category_id]])]),o("label",null,[o("span",null,u(t.tags),1),K(o("input",{"onUpdate:modelValue":h[21]||(h[21]=c=>J.value.tags=c),type:"text",placeholder:"daily, top"},null,512),[[Q,J.value.tags]])]),o("label",null,[o("span",null,u(t.prompt),1),K(o("input",{"onUpdate:modelValue":h[22]||(h[22]=c=>J.value.prompt=c),type:"text"},null,512),[[Q,J.value.prompt]])]),o("label",null,[o("span",null,u(t.negativePrompt),1),K(o("input",{"onUpdate:modelValue":h[23]||(h[23]=c=>J.value.negative_prompt=c),type:"text"},null,512),[[Q,J.value.negative_prompt]])]),o("button",{type:"button",disabled:!!M.value||!J.value.display_name,onClick:Si},u(J.value.material_id?t.update:t.create),9,Ec),o("button",{type:"button",disabled:!!M.value,onClick:nl},u(t.reset),9,Tc)]),o("ul",null,[(C(!0),S(X,null,ye(((Jl=ce.value)==null?void 0:Jl.items)??[],c=>(C(),S("li",{key:c.material_id},[o("div",null,[o("strong",null,u(c.display_name),1),o("small",null,u(c.image_uri??t.noImage),1)]),o("div",Oc,[o("span",Ic,u(c.recognition_status),1),o("button",{type:"button",disabled:!!M.value,onClick:_e=>Pi(c)},u(t.edit),9,Ac),o("button",{type:"button",disabled:!!M.value,onClick:_e=>Di(c.material_id)},u(t.recognize),9,Mc),o("button",{type:"button",disabled:!!M.value||c.recognition_status==="confirmed",onClick:_e=>Ei(c)},u(t.confirm),9,Rc),o("button",{type:"button",disabled:!!M.value,onClick:_e=>Ti(c.material_id)},u(t.archive),9,$c)])]))),128)),(Gl=ce.value)!=null&&Gl.items.length?G("",!0):(C(),S("li",Bc,u(t.emptyMaterials),1))]),Qe.value?(C(),S("pre",Lc,u(JSON.stringify(Qe.value,null,2)),1)):G("",!0)])])):G("",!0),l.value==="wardrobe"?(C(),S("section",Fc,[o("header",null,[o("h2",null,u(m.value),1),o("button",{type:"button",disabled:!g.value||!!M.value,onClick:ui},u(t.match),9,Vc)]),o("div",Uc,[o("label",null,[o("span",null,u(t.selectMaterial),1),K(o("select",{"onUpdate:modelValue":h[24]||(h[24]=c=>ke.value.material_id=c)},[o("option",Nc,u(t.selectMaterial),1),(C(!0),S(X,null,ye(w.value,c=>(C(),S("option",{key:c.material_id,value:c.material_id},u(c.display_name),9,jc))),128))],512),[[Ft,ke.value.material_id]])]),o("label",null,[o("span",null,u(t.wardrobeCategory),1),K(o("input",{"onUpdate:modelValue":h[25]||(h[25]=c=>ke.value.wardrobe_category=c),type:"text"},null,512),[[Q,ke.value.wardrobe_category]])]),o("label",null,[o("span",null,u(t.tags),1),K(o("input",{"onUpdate:modelValue":h[26]||(h[26]=c=>ke.value.tags=c),type:"text",placeholder:"daily, top"},null,512),[[Q,ke.value.tags]])]),o("label",null,[o("span",null,u(t.season),1),K(o("input",{"onUpdate:modelValue":h[27]||(h[27]=c=>ke.value.season=c),type:"text"},null,512),[[Q,ke.value.season]])]),o("label",null,[o("span",null,u(t.style),1),K(o("input",{"onUpdate:modelValue":h[28]||(h[28]=c=>ke.value.style=c),type:"text"},null,512),[[Q,ke.value.style]])]),o("button",{type:"button",disabled:!!M.value||!g.value||!ke.value.material_id||!ke.value.wardrobe_category,onClick:di},u(t.importToWardrobe),9,Hc)]),o("ul",null,[(C(!0),S(X,null,ye(Ie.value,c=>(C(),S("li",{key:c.wardrobe_item_id},[o("div",null,[o("strong",null,u(c.wardrobe_category),1),o("small",null,u(c.material_id)+" / "+u(c.tags.join(", ")||t.noTags),1)]),o("div",Wc,[o("span",null,u(c.usage_count),1),o("button",{type:"button",disabled:!!M.value,onClick:_e=>fi(c.wardrobe_item_id)},u(t.delete),9,Kc)])]))),128)),Ie.value.length?G("",!0):(C(),S("li",qc,u(t.emptyWardrobe),1))]),ut.value?(C(),S("pre",Jc,u(JSON.stringify(ut.value,null,2)),1)):G("",!0),o("div",Gc,[o("label",null,[o("span",null,u(t.categories),1),K(o("input",{"onUpdate:modelValue":h[29]||(h[29]=c=>Ve.value.categories=c),type:"text"},null,512),[[Q,Ve.value.categories]])]),o("label",null,[o("span",null,u(t.mood),1),K(o("input",{"onUpdate:modelValue":h[30]||(h[30]=c=>Ve.value.mood=c),type:"text"},null,512),[[Q,Ve.value.mood]])]),o("label",null,[o("span",null,u(t.weather),1),K(o("input",{"onUpdate:modelValue":h[31]||(h[31]=c=>Ve.value.weather=c),type:"text"},null,512),[[Q,Ve.value.weather]])]),o("label",null,[o("span",null,u(t.keywords),1),K(o("input",{"onUpdate:modelValue":h[32]||(h[32]=c=>Ve.value.keywords=c),type:"text"},null,512),[[Q,Ve.value.keywords]])]),o("button",{type:"button",disabled:!!M.value||!g.value,onClick:pi},u(t.dailyOutfit),9,zc)]),Ze.value?(C(),S("pre",Yc,u(JSON.stringify(Ze.value,null,2)),1)):G("",!0)])):G("",!0),l.value==="jobs"?(C(),S("section",Qc,[o("header",null,[o("h2",null,u(t.jobs),1),o("div",Xc,[o("button",{type:"button",disabled:!!M.value,onClick:oi},u(t.moveFailed),9,Zc),o("button",{type:"button",disabled:!!M.value,onClick:ii},u(t.retryDead),9,ed)])]),o("div",td,[o("label",null,[h[43]||(h[43]=o("span",null,"Status",-1)),K(o("select",{"onUpdate:modelValue":h[33]||(h[33]=c=>Ce.value.status=c)},[o("option",nd,u(t.allStatuses),1),(C(),S(X,null,ye(D,c=>o("option",{key:c,value:c},u(c),9,ld)),64))],512),[[Ft,Ce.value.status]])]),o("label",null,[o("span",null,u(t.profiles),1),K(o("select",{"onUpdate:modelValue":h[34]||(h[34]=c=>Ce.value.profile_id=c)},[o("option",sd,u(t.allProfiles),1),(C(!0),S(X,null,ye(((zl=r.value)==null?void 0:zl.items)??[],c=>(C(),S("option",{key:c.profile_id,value:c.profile_id},u(c.name),9,od))),128))],512),[[Ft,Ce.value.profile_id]])]),o("label",null,[o("span",null,u(t.workflows),1),K(o("select",{"onUpdate:modelValue":h[35]||(h[35]=c=>Ce.value.workflow_id=c)},[o("option",id,u(t.allWorkflows),1),(C(!0),S(X,null,ye(a.value,c=>(C(),S("option",{key:c.workflow_id,value:c.workflow_id},u(c.display_name),9,rd))),128))],512),[[Ft,Ce.value.workflow_id]])]),o("button",{type:"button",disabled:!!M.value,onClick:R},u(t.filter),9,ad)]),o("ul",null,[(C(!0),S(X,null,ye(((Yl=F.value)==null?void 0:Yl.items)??[],c=>(C(),S("li",{key:c.task_id},[o("div",null,[o("strong",null,u(c.task_id),1),o("small",null,u(c.task_type)+" / "+u(c.progress)+"%",1)]),o("div",ud,[o("span",cd,u(c.status),1),["failed","dead_letter","cancelled"].includes(c.status)?(C(),S("button",{key:0,type:"button",onClick:_e=>He(c.task_id)},u(t.retry),9,dd)):G("",!0),["completed","succeeded","cancelled"].includes(c.status)?G("",!0):(C(),S("button",{key:1,type:"button",onClick:_e=>Et(c.task_id)},u(t.cancel),9,fd)),o("button",{type:"button",disabled:!!M.value,onClick:_e=>vn(c.task_id)},u(t.detail),9,pd)])]))),128)),(Ql=F.value)!=null&&Ql.items.length?G("",!0):(C(),S("li",hd,u(t.emptyJobs),1))]),fe.value?(C(),S("section",gd,[o("header",null,[o("h2",null,u(t.jobDetail),1),o("span",null,u(fe.value.status),1)]),o("pre",null,u(JSON.stringify(fe.value,null,2)),1)])):G("",!0)])):G("",!0),l.value==="discovery"?(C(),S("section",vd,[o("div",_d,[o("header",null,[o("h2",null,u(t.dialects),1),o("button",{type:"button",disabled:!!M.value,onClick:ri},u(t.safeProbe),9,md)]),o("ul",null,[(C(!0),S(X,null,ye(Be.value,c=>(C(),S("li",{key:c.dialect},[o("div",null,[o("strong",null,u(c.label),1),o("small",null,u(c.capabilities.join(", ")||t.unconfirmed),1)]),o("span",null,u(c.dialect),1)]))),128))]),o("div",yd,[o("label",null,[o("span",null,u(t.provider),1),K(o("input",{"onUpdate:modelValue":h[36]||(h[36]=c=>Ee.value.provider_id=c),type:"text",placeholder:"local-preview"},null,512),[[Q,Ee.value.provider_id]])]),o("label",null,[o("span",null,u(t.model),1),K(o("input",{"onUpdate:modelValue":h[37]||(h[37]=c=>Ee.value.model_id=c),type:"text",placeholder:"metadata-only"},null,512),[[Q,Ee.value.model_id]])]),o("label",null,[o("span",null,u(t.requiredCapabilities),1),K(o("input",{"onUpdate:modelValue":h[38]||(h[38]=c=>Ee.value.required_capabilities=c),type:"text",placeholder:"text_to_image"},null,512),[[Q,Ee.value.required_capabilities]])]),o("button",{type:"button",disabled:!!M.value||!Ee.value.provider_id||!Ee.value.model_id,onClick:ai},u(t.validatePlan),9,bd)]),xt.value?(C(),S("pre",wd,u(JSON.stringify(xt.value,null,2)),1)):G("",!0)]),o("div",kd,[o("header",null,[o("h2",null,u(t.capabilityProfiles),1),o("span",null,u(Ne.value.length),1)]),o("ul",null,[(C(!0),S(X,null,ye(Ne.value,c=>(C(),S("li",{key:c.capability_profile_id},[o("div",null,[o("strong",null,u(c.provider_id)+" / "+u(c.model_id),1),o("small",null,u(c.dialect),1)]),o("div",xd,[o("span",Cd,u(c.status),1),o("button",{type:"button",disabled:!!M.value,onClick:_e=>el(c,"confirmed_supported")},u(t.support),9,Sd),o("button",{type:"button",disabled:!!M.value,onClick:_e=>el(c,"confirmed_unsupported")},u(t.unsupported),9,Pd),o("button",{type:"button",disabled:!!M.value,onClick:_e=>el(c,"unconfirmed")},u(t.unconfirmed),9,Dd)])]))),128)),Ne.value.length?G("",!0):(C(),S("li",Ed,u(t.emptyCapabilities),1))])])])):G("",!0),l.value==="logs"?(C(),S("section",Td,[o("div",Od,[o("div",Id,[o("header",null,[o("h2",null,u(t.generationLogs),1),o("span",null,u(me.value.generation.length),1)]),o("ul",null,[(C(!0),S(X,null,ye(me.value.generation,c=>(C(),S("li",{key:c.task_id},[o("div",null,[o("strong",null,u(c.task_id),1),o("small",null,u(c.status)+" / "+u(c.progress)+"%",1)]),o("span",null,u(c.created_at),1)]))),128)),me.value.generation.length?G("",!0):(C(),S("li",Ad,u(t.emptyGenerationLogs),1))])]),o("div",Md,[o("header",null,[o("h2",null,u(t.errorLogs),1),o("span",null,u(me.value.errors.length),1)]),o("ul",null,[(C(!0),S(X,null,ye(me.value.errors,c=>(C(),S("li",{key:`${c.source}-${c.id}`},[o("div",null,[o("strong",null,u(c.source),1),o("small",null,u(c.error_message??t.noErrorDetail),1)]),o("span",Rd,u(c.status),1)]))),128)),me.value.errors.length?G("",!0):(C(),S("li",$d,u(t.emptyErrors),1))])])]),o("div",Bd,[o("div",Ld,[o("header",null,[o("h2",null,u(t.workflowLogs),1),o("span",null,u(me.value.workflows.length),1)]),o("ul",null,[(C(!0),S(X,null,ye(me.value.workflows,c=>(C(),S("li",{key:c.history_id},[o("div",null,[o("strong",null,u(c.action),1),o("small",null,u(c.title??c.workflow_id),1)]),o("span",null,u(c.branch_name??"main"),1)]))),128)),me.value.workflows.length?G("",!0):(C(),S("li",Fd,u(t.emptyWorkflowLogs),1))])]),o("div",Vd,[o("header",null,[o("h2",null,u(t.integrationLogs),1),o("span",null,u(me.value.integrations.length),1)]),o("ul",null,[(C(!0),S(X,null,ye(me.value.integrations,c=>(C(),S("li",{key:c.integration_log_id},[o("div",null,[o("strong",null,u(c.integration_name),1),o("small",null,u(c.action),1)]),o("span",Ud,u(c.status),1)]))),128)),me.value.integrations.length?G("",!0):(C(),S("li",Nd,u(t.emptyIntegrationLogs),1))])])]),o("div",jd,[o("header",null,[o("h2",null,u(t.auditLogs),1),o("span",null,u(me.value.audit.length),1)]),o("ul",null,[(C(!0),S(X,null,ye(me.value.audit,c=>(C(),S("li",{key:c.audit_id},[o("div",null,[o("strong",null,u(c.action),1),o("small",null,u(c.actor_type)+" / "+u(c.target_type)+" / "+u(c.target_id),1)]),o("span",null,u(c.created_at),1)]))),128)),me.value.audit.length?G("",!0):(C(),S("li",Hd,u(t.emptyAuditLogs),1))])])])):G("",!0),l.value==="settings"?(C(),S("section",Wd,[o("div",Kd,[o("button",{type:"button",disabled:!!M.value,onClick:hi},u(t.reload),9,qd),o("button",{type:"button",disabled:!!M.value,onClick:h[39]||(h[39]=c=>Jt())},u(t.reset),9,Jd),o("button",{type:"button",disabled:!!M.value,onClick:_i},u(t.validate),9,Gd),o("button",{type:"button",disabled:!!M.value,onClick:mi},u(t.diff),9,zd),o("button",{type:"button",disabled:!!M.value,onClick:yi},u(t.save),9,Yd),o("button",{type:"button",disabled:!!M.value,onClick:gi},u(t.exportRedacted),9,Qd)]),o("div",Xd,[(C(!0),S(X,null,ye(((Xl=ue.value)==null?void 0:Xl.sections)??[],c=>(C(),S("article",{key:c.key},[o("h2",null,u(c.title),1),o("span",null,u(c.fields.length),1)]))),128))]),o("section",Zd,[o("header",null,[o("h2",null,u(t.settingsEditor),1),o("span",null,u(((Zl=H.value)==null?void 0:Zl.config_path)??"***PATH***"),1)]),K(o("textarea",{"onUpdate:modelValue":h[40]||(h[40]=c=>ct.value=c),spellcheck:"false"},null,512),[[Q,ct.value]])]),o("section",ef,[o("header",null,[o("h2",null,u(t.importSettings),1),o("button",{type:"button",disabled:!!M.value||!Xe.value,onClick:bi},u(t.importSettings),9,tf)]),K(o("textarea",{"onUpdate:modelValue":h[41]||(h[41]=c=>Xe.value=c),spellcheck:"false"},null,512),[[Q,Xe.value]])]),o("div",nf,[o("div",lf,[o("header",null,[o("h2",null,u(t.validationResult),1),o("span",null,u(((es=dt.value)==null?void 0:es.valid)??"-"),1)]),o("pre",null,u(JSON.stringify(dt.value??{},null,2)),1)]),o("div",sf,[o("header",null,[o("h2",null,u(t.diffResult),1),o("span",null,u(((ts=kt.value)==null?void 0:ts.changes.length)??0),1)]),o("pre",null,u(JSON.stringify(kt.value??{},null,2)),1)])])])):G("",!0)],64))]),o("aside",of,[o("h2",null,u(t.running),1),o("dl",null,[o("div",null,[h[44]||(h[44]=o("dt",null,"Pending",-1)),o("dd",null,u(((ns=i.value)==null?void 0:ns.queue.pending)??0),1)]),o("div",null,[h[45]||(h[45]=o("dt",null,"Running",-1)),o("dd",null,u(((ls=i.value)==null?void 0:ls.queue.running)??0),1)]),o("div",null,[h[46]||(h[46]=o("dt",null,"Failed",-1)),o("dd",null,u(((ss=i.value)==null?void 0:ss.queue.failed)??0),1)]),o("div",null,[h[47]||(h[47]=o("dt",null,"Dead",-1)),o("dd",null,u(((os=i.value)==null?void 0:os.queue.dead_letter)??0),1)])]),o("h2",null,u(t.storage),1),o("dl",null,[o("div",null,[h[48]||(h[48]=o("dt",null,"Images",-1)),o("dd",null,u(ll(Wl("storage://images/"))),1)]),o("div",null,[h[49]||(h[49]=o("dt",null,"Materials",-1)),o("dd",null,u(ll(Wl("storage://materials/"))),1)])])])])}}}),af=(e,t)=>{const n=e.__vccOpts||e;for(const[l,s]of t)n[l]=s;return n},uf=af(rf,[["__scopeId","data-v-1cf95bf9"]]);tu(uf).mount("#app"); diff --git a/web/index.html b/web/index.html index 184353f..4585add 100644 --- a/web/index.html +++ b/web/index.html @@ -1,3 +1,3 @@ - - + +