diff --git a/frontend/shared/api/endpoints.ts b/frontend/shared/api/endpoints.ts index 9634e99..251bf6b 100644 --- a/frontend/shared/api/endpoints.ts +++ b/frontend/shared/api/endpoints.ts @@ -42,6 +42,7 @@ export const endpoints = { storageStatus: "storage/status", mediaSign: "media/sign", materialCategories: "material-categories", + materialCategory: (categoryId: string) => `material-categories/${categoryId}`, materials: "materials", material: (materialId: string) => `materials/${materialId}`, materialRecognize: (materialId: string) => `materials/${materialId}/recognize`, diff --git a/frontend/standalone-web/src/App.vue b/frontend/standalone-web/src/App.vue index c708b3b..224fdcf 100644 --- a/frontend/standalone-web/src/App.vue +++ b/frontend/standalone-web/src/App.vue @@ -57,6 +57,8 @@ const text = { unselect: "\u53d6\u9009", recognize: "\u8bc6\u522b", confirm: "\u786e\u8ba4", + edit: "\u7f16\u8f91", + update: "\u66f4\u65b0", name: "\u540d\u79f0", identity: "\u8eab\u4efd", personality: "\u6027\u683c", @@ -123,6 +125,11 @@ const text = { imageDeleted: "\u56fe\u7247\u5df2\u5220\u9664", currentBranch: "\u5f53\u524d\u5206\u652f", materialCategories: "\u7d20\u6750\u5206\u7c7b", + categoryType: "\u5206\u7c7b\u7c7b\u578b", + sortOrder: "\u6392\u5e8f", + categoryCreated: "\u5206\u7c7b\u5df2\u521b\u5efa", + categoryUpdated: "\u5206\u7c7b\u5df2\u66f4\u65b0", + categoryDeleted: "\u5206\u7c7b\u5df2\u5220\u9664", materialItems: "\u7d20\u6750\u6761\u76ee", emptyCategories: "\u6682\u65e0\u5206\u7c7b", emptyMaterials: "\u6682\u65e0\u7d20\u6750", @@ -264,6 +271,12 @@ const materialDraft = ref({ tags: "", category_id: "", }) +const categoryDraft = ref({ + category_id: "", + name: "", + category_type: "material", + sort_order: 0, +}) const wardrobeDraft = ref({ material_id: "", wardrobe_category: "top", @@ -1004,6 +1017,69 @@ function signFirstMaterial() { ) } +function resetCategoryDraft() { + categoryDraft.value = { + category_id: "", + name: "", + category_type: "material", + sort_order: 0, + } +} + +function editCategoryDraft(category: MaterialCategory) { + categoryDraft.value = { + category_id: category.category_id, + name: category.name, + category_type: category.category_type, + sort_order: category.sort_order, + } +} + +function saveCategoryDraft() { + const payload = { + name: categoryDraft.value.name, + category_type: categoryDraft.value.category_type, + sort_order: Number(categoryDraft.value.sort_order) || 0, + } + if (categoryDraft.value.category_id) { + return runOperation( + text.update, + async () => { + const category = await request(endpoints.materialCategory(categoryDraft.value.category_id), { + method: "PUT", + body: payload, + }) + resetCategoryDraft() + lastOperation.value = text.categoryUpdated + return category + }, + ) + } + return runOperation( + text.create, + async () => { + const category = await postJson(endpoints.materialCategories, payload) + resetCategoryDraft() + lastOperation.value = text.categoryCreated + return category + }, + ) +} + +function deleteCategory(categoryId: string) { + return runOperation( + text.delete, + async () => { + const category = await request(endpoints.materialCategory(categoryId), { method: "DELETE" }) + if (categoryDraft.value.category_id === categoryId) { + resetCategoryDraft() + } + lastOperation.value = text.categoryDeleted + return category + }, + ) +} + function resetMaterialDraft() { materialDraft.value = { display_name: "", @@ -1406,13 +1482,39 @@ function storageRootBytes(uriPrefix: string) {

{{ text.materialCategories }}

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