From bbc2663568d32b6d431b9e69fc3d7a24fdd7e327 Mon Sep 17 00:00:00 2001 From: YokiiroBW Date: Sun, 5 Jul 2026 15:03:05 +0800 Subject: [PATCH] feat: add node retry and completion actions --- backend/route_registry.py | 2 ++ frontend/shared/api/endpoints.ts | 2 ++ frontend/standalone-web/src/App.vue | 34 +++++++++++++++++++ .../{index-BTVLk-aV.js => index-OyFsqfnI.js} | 2 +- pages/imagestudio/index.html | 2 +- tests/test_route_registry.py | 2 ++ web/assets/index-B4u_EVSo.css | 1 - web/assets/index-CE_7apqM.js | 17 ++++++++++ web/assets/index-D8LANsZc.js | 17 ---------- web/assets/index-_0xdAcps.css | 1 + web/index.html | 4 +-- 11 files changed, 62 insertions(+), 22 deletions(-) rename pages/imagestudio/assets/{index-BTVLk-aV.js => index-OyFsqfnI.js} (91%) delete mode 100644 web/assets/index-B4u_EVSo.css create mode 100644 web/assets/index-CE_7apqM.js delete mode 100644 web/assets/index-D8LANsZc.js create mode 100644 web/assets/index-_0xdAcps.css diff --git a/backend/route_registry.py b/backend/route_registry.py index b34d30a..8f2623e 100644 --- a/backend/route_registry.py +++ b/backend/route_registry.py @@ -47,6 +47,8 @@ ROUTES: tuple[RouteSpec, ...] = ( RouteSpec("GET", "nodes/{node_id}", "backend.routes.node_routes.get_node", "read"), RouteSpec("PUT", "nodes/{node_id}", "backend.routes.node_routes.update_node", "write"), RouteSpec("POST", "nodes/{node_id}/generate", "backend.routes.node_routes.generate_node", "write"), + RouteSpec("POST", "nodes/{node_id}/retry", "backend.routes.node_routes.retry_node", "write"), + RouteSpec("POST", "nodes/{node_id}/complete", "backend.routes.node_routes.mark_node_completed", "write"), RouteSpec("POST", "nodes/{node_id}/select-image", "backend.routes.node_routes.select_node_image", "write"), RouteSpec("POST", "nodes/{node_id}/adopt-image", "backend.routes.history_routes.adopt_node_image", "write"), RouteSpec("GET", "nodes/{node_id}/review", "backend.routes.review_routes.review_node", "read"), diff --git a/frontend/shared/api/endpoints.ts b/frontend/shared/api/endpoints.ts index 56b48f1..542bca3 100644 --- a/frontend/shared/api/endpoints.ts +++ b/frontend/shared/api/endpoints.ts @@ -17,6 +17,8 @@ export const endpoints = { workflowHistory: (workflowId: string) => `workflows/${workflowId}/history`, node: (nodeId: string) => `nodes/${nodeId}`, nodeGenerate: (nodeId: string) => `nodes/${nodeId}/generate`, + nodeRetry: (nodeId: string) => `nodes/${nodeId}/retry`, + nodeComplete: (nodeId: string) => `nodes/${nodeId}/complete`, nodeSelectImage: (nodeId: string) => `nodes/${nodeId}/select-image`, nodeAdoptImage: (nodeId: string) => `nodes/${nodeId}/adopt-image`, nodeReview: (nodeId: string) => `nodes/${nodeId}/review`, diff --git a/frontend/standalone-web/src/App.vue b/frontend/standalone-web/src/App.vue index ba4cf78..de34f24 100644 --- a/frontend/standalone-web/src/App.vue +++ b/frontend/standalone-web/src/App.vue @@ -124,6 +124,8 @@ const text = { status: "\u72b6\u6001", nodeCreated: "\u8282\u70b9\u5df2\u521b\u5efa", nodeUpdated: "\u8282\u70b9\u5df2\u66f4\u65b0", + nodeQueued: "\u8282\u70b9\u5df2\u91cd\u65b0\u5165\u961f", + nodeCompleted: "\u8282\u70b9\u5df2\u5b8c\u6210", images: "\u56fe\u7247", branches: "\u5206\u652f", branchName: "\u5206\u652f\u540d", @@ -866,6 +868,32 @@ function generateSelectedNode() { ) } +function retryNode(nodeId: string) { + return runOperation( + text.retry, + async () => { + const result = await postJson>(endpoints.nodeRetry(nodeId)) + await refreshSelectedWorkflow() + lastOperation.value = text.nodeQueued + return result + }, + false, + ) +} + +function completeNode(nodeId: string) { + return runOperation( + text.complete, + async () => { + const node = await postJson(endpoints.nodeComplete(nodeId)) + await refreshSelectedWorkflow() + lastOperation.value = text.nodeCompleted + return node + }, + false, + ) +} + function selectNodeImage(imageId: string) { const nodeId = selectedNodeId.value if (!nodeId) return Promise.resolve() @@ -1727,6 +1755,12 @@ function storageRootBytes(uriPrefix: string) { + + diff --git a/pages/imagestudio/assets/index-BTVLk-aV.js b/pages/imagestudio/assets/index-OyFsqfnI.js similarity index 91% rename from pages/imagestudio/assets/index-BTVLk-aV.js rename to pages/imagestudio/assets/index-OyFsqfnI.js index 2a079bd..b15595a 100644 --- a/pages/imagestudio/assets/index-BTVLk-aV.js +++ b/pages/imagestudio/assets/index-OyFsqfnI.js @@ -14,4 +14,4 @@ var kr=Object.defineProperty;var qr=(e,t,s)=>t in e?kr(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`,node:e=>`nodes/${e}`,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",settingsSnapshots:"settings/snapshots",settingsRollback:"settings/rollback",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",apiDiscoveryProbeProvider:"api-discovery/probe-provider",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class 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=ki({__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,q,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(((q=s.value)==null?void 0:q.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`,node:e=>`nodes/${e}`,nodeGenerate:e=>`nodes/${e}/generate`,nodeRetry:e=>`nodes/${e}/retry`,nodeComplete:e=>`nodes/${e}/complete`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeReview:e=>`nodes/${e}/review`,nodeImages:e=>`nodes/${e}/images`,workflowReview:e=>`workflows/${e}/review`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",settingsImport:"settings/import",settingsSnapshots:"settings/snapshots",settingsRollback:"settings/rollback",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materialCategory:e=>`material-categories/${e}`,materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeProvider:"api-discovery/probe-provider",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class 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=ki({__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,q,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(((q=s.value)==null?void 0:q.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 d24dff1..d14605f 100644 --- a/pages/imagestudio/index.html +++ b/pages/imagestudio/index.html @@ -1,3 +1,3 @@ - +
diff --git a/tests/test_route_registry.py b/tests/test_route_registry.py index 635ebe3..8cc32d0 100644 --- a/tests/test_route_registry.py +++ b/tests/test_route_registry.py @@ -25,6 +25,8 @@ class RouteRegistryTests(unittest.TestCase): self.assertIn(("POST", "workflows/{workflow_id}/archive"), keys) self.assertIn(("GET", "nodes/{node_id}/review"), keys) self.assertIn(("GET", "workflows/{workflow_id}/review"), keys) + self.assertIn(("POST", "nodes/{node_id}/retry"), keys) + self.assertIn(("POST", "nodes/{node_id}/complete"), keys) self.assertIn(("GET", "settings/snapshots"), keys) self.assertIn(("POST", "settings/rollback"), keys) self.assertEqual(len(routes), len(ROUTES)) diff --git a/web/assets/index-B4u_EVSo.css b/web/assets/index-B4u_EVSo.css deleted file mode 100644 index fc40d39..0000000 --- a/web/assets/index-B4u_EVSo.css +++ /dev/null @@ -1 +0,0 @@ -.web-shell[data-v-c9c1e191]{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-c9c1e191],.inspector[data-v-c9c1e191]{background:#fff}.sidebar[data-v-c9c1e191]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-c9c1e191]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-c9c1e191]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-c9c1e191]{font-size:19px}.brand span[data-v-c9c1e191],p[data-v-c9c1e191],dt[data-v-c9c1e191],.empty[data-v-c9c1e191],small[data-v-c9c1e191]{color:#667085}nav[data-v-c9c1e191]{display:grid;gap:6px}button[data-v-c9c1e191]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-c9c1e191]:disabled{cursor:wait;opacity:.62}nav button[data-v-c9c1e191]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-c9c1e191]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-c9c1e191]{min-width:0;padding:24px}.topbar[data-v-c9c1e191],.list-view header[data-v-c9c1e191],.toolbar[data-v-c9c1e191],.inline-actions[data-v-c9c1e191]{display:flex;gap:12px;align-items:center}.topbar[data-v-c9c1e191],.list-view header[data-v-c9c1e191]{justify-content:space-between}.actions[data-v-c9c1e191],.inline-actions[data-v-c9c1e191]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-c9c1e191],.toolbar button[data-v-c9c1e191],.list-view header button[data-v-c9c1e191],.inline-actions button[data-v-c9c1e191]{padding:0 14px}h1[data-v-c9c1e191],h2[data-v-c9c1e191],p[data-v-c9c1e191],dl[data-v-c9c1e191],dd[data-v-c9c1e191]{margin:0}h1[data-v-c9c1e191]{min-height:30px;font-size:26px}h2[data-v-c9c1e191]{font-size:15px}.notice[data-v-c9c1e191],article[data-v-c9c1e191],.list-view[data-v-c9c1e191],.editor-panel[data-v-c9c1e191],pre[data-v-c9c1e191]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-c9c1e191]{margin-top:18px;padding:14px}.error[data-v-c9c1e191]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-c9c1e191],.split-view[data-v-c9c1e191]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-c9c1e191]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-c9c1e191]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-c9c1e191]{display:grid;gap:8px;padding:16px}article span[data-v-c9c1e191]{color:#667085;font-size:13px}article strong[data-v-c9c1e191]{font-size:24px}.list-view[data-v-c9c1e191],.logs-view[data-v-c9c1e191],.settings-view[data-v-c9c1e191]{margin-top:18px}.split-view .list-view[data-v-c9c1e191],.logs-view .list-view[data-v-c9c1e191]{margin-top:0}.list-view[data-v-c9c1e191]{padding:16px}.editor-panel[data-v-c9c1e191]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-c9c1e191]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-c9c1e191]{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-c9c1e191]{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-c9c1e191]{display:grid;gap:5px;min-width:0}label span[data-v-c9c1e191]{color:#667085;font-size:12px}.wide-field[data-v-c9c1e191]{grid-column:1 / -1}input[data-v-c9c1e191],select[data-v-c9c1e191]{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-c9c1e191]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-c9c1e191]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-c9c1e191]:first-child{border-top:0}li>div[data-v-c9c1e191]{display:grid;gap:3px;min-width:0}li strong[data-v-c9c1e191],li span[data-v-c9c1e191],li small[data-v-c9c1e191]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-c9c1e191]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-c9c1e191]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-c9c1e191]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-c9c1e191]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-c9c1e191]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-c9c1e191]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-c9c1e191]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-c9c1e191]{display:none}}@media(max-width:820px){.web-shell[data-v-c9c1e191]{grid-template-columns:1fr}.sidebar[data-v-c9c1e191]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-c9c1e191]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-c9c1e191]{text-align:center}.dashboard-grid[data-v-c9c1e191],.split-view[data-v-c9c1e191],.settings-sections[data-v-c9c1e191]{grid-template-columns:1fr}.topbar[data-v-c9c1e191],.list-view header[data-v-c9c1e191]{align-items:flex-start;flex-direction:column}} diff --git a/web/assets/index-CE_7apqM.js b/web/assets/index-CE_7apqM.js new file mode 100644 index 0000000..fe73184 --- /dev/null +++ b/web/assets/index-CE_7apqM.js @@ -0,0 +1,17 @@ +var Ki=Object.defineProperty;var qi=(e,t,n)=>t in e?Ki(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ol=(e,t,n)=>qi(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const i of o)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(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function l(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();/** +* @vue/shared v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Tl(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const pe={},Nt=[],at=()=>{},Ns=()=>!1,Nn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),jn=e=>e.startsWith("onUpdate:"),Ee=Object.assign,Ol=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ji=Object.prototype.hasOwnProperty,ie=(e,t)=>Ji.call(e,t),W=Array.isArray,jt=e=>pn(e)==="[object Map]",Wn=e=>pn(e)==="[object Set]",us=e=>pn(e)==="[object Date]",J=e=>typeof e=="function",we=e=>typeof e=="string",ut=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",js=e=>(ce(e)||J(e))&&J(e.then)&&J(e.catch),Ws=Object.prototype.toString,pn=e=>Ws.call(e),Gi=e=>pn(e).slice(8,-1),Hs=e=>pn(e)==="[object Object]",Il=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,en=Tl(",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)))},zi=/-\w/g,Xe=Hn(e=>e.replace(zi,t=>t.slice(1).toUpperCase())),Yi=/\B([A-Z])/g,Bt=Hn(e=>e.replace(Yi,"-$1").toLowerCase()),Ks=Hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),il=Hn(e=>e?`on${Ks(e)}`:""),rt=(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 cs;const qn=()=>cs||(cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Al(e){if(W(e)){const t={};for(let n=0;n{if(n){const l=n.split(Xi);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function Jn(e){let t="";if(we(e))t=e;else if(W(e))for(let n=0;nhn(n,t))}const Gs=e=>!!(e&&e.__v_isRef===!0),a=e=>we(e)?e:e==null?"":W(e)||ce(e)&&(e.toString===Ws||!J(e.toString))?Gs(e)?a(e.value):JSON.stringify(e,zs,2):String(e),zs=(e,t)=>Gs(t)?zs(e,t.value):jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,o],i)=>(n[rl(l,i)+" =>"]=o,n),{})}:Wn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>rl(n))}:ut(t)?rl(t):ce(t)&&!W(t)&&!Hs(t)?String(t):t,rl=(e,t="")=>{var n;return ut(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let De;class or{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&De&&(De.active?(this.parent=De,this.index=(De.scopes||(De.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(De===this)De=this.prevScope;else{let t=De;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n0)return;if(nn){let t=nn;for(nn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;tn;){let t=tn;for(tn=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 eo(e){let t,n=e.depsTail,l=n;for(;l;){const o=l.prevDep;l.version===-1?(l===n&&(n=o),Rl(l),rr(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=o}e.deps=t,e.depsTail=n}function ml(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(to(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function to(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===an)||(e.globalVersion=an,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ml(e))))return;e.flags|=2;const t=e.dep,n=ve,l=Ze;ve=e,Ze=!0;try{Zs(e);const o=e.fn(e._value);(t.version===0||rt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ve=n,Ze=l,eo(e),e.flags&=-3}}function Rl(e,t=!1){const{dep:n,prevSub:l,nextSub:o}=e;if(l&&(l.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Rl(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function rr(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ze=!0;const no=[];function ct(){no.push(Ze),Ze=!1}function dt(){const e=no.pop();Ze=e===void 0?!0:e}function ds(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ve;ve=void 0;try{t()}finally{ve=n}}}let an=0;class ar{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Bl{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ve||!Ze||ve===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ve)n=this.activeLink=new ar(ve,this),ve.deps?(n.prevDep=ve.depsTail,ve.depsTail.nextDep=n,ve.depsTail=n):ve.deps=ve.depsTail=n,lo(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=ve.depsTail,n.nextDep=void 0,ve.depsTail.nextDep=n,ve.depsTail=n,ve.deps===n&&(ve.deps=l)}return n}trigger(t){this.version++,an++,this.notify(t)}notify(t){Ml();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{$l()}}}function lo(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)lo(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const yl=new WeakMap,$t=Symbol(""),bl=Symbol(""),un=Symbol("");function Oe(e,t,n){if(Ze&&ve){let l=yl.get(e);l||yl.set(e,l=new Map);let o=l.get(n);o||(l.set(n,o=new Bl),o.map=l,o.key=n),o.track()}}function _t(e,t,n,l,o,i){const r=yl.get(e);if(!r){an++;return}const d=h=>{h&&h.trigger()};if(Ml(),t==="clear")r.forEach(d);else{const h=W(e),m=h&&Il(n);if(h&&n==="length"){const _=Number(l);r.forEach((y,O)=>{(O==="length"||O===un||!ut(O)&&O>=_)&&d(y)})}else switch((n!==void 0||r.has(void 0))&&d(r.get(n)),m&&d(r.get(un)),t){case"add":h?m&&d(r.get("length")):(d(r.get($t)),jt(e)&&d(r.get(bl)));break;case"delete":h||(d(r.get($t)),jt(e)&&d(r.get(bl)));break;case"set":jt(e)&&d(r.get($t));break}}$l()}function Vt(e){const t=oe(e);return t===e?t:(Oe(t,"iterate",un),ze(e)?t:t.map(et))}function Gn(e){return Oe(e=oe(e),"iterate",un),e}function ot(e,t){return bt(e)?qt(Rt(e)?et(t):t):et(t)}const ur={__proto__:null,[Symbol.iterator](){return ul(this,Symbol.iterator,e=>ot(this,e))},concat(...e){return Vt(this).concat(...e.map(t=>W(t)?Vt(t):t))},entries(){return ul(this,"entries",e=>(e[1]=ot(this,e[1]),e))},every(e,t){return ht(this,"every",e,t,void 0,arguments)},filter(e,t){return ht(this,"filter",e,t,n=>n.map(l=>ot(this,l)),arguments)},find(e,t){return ht(this,"find",e,t,n=>ot(this,n),arguments)},findIndex(e,t){return ht(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ht(this,"findLast",e,t,n=>ot(this,n),arguments)},findLastIndex(e,t){return ht(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ht(this,"forEach",e,t,void 0,arguments)},includes(...e){return cl(this,"includes",e)},indexOf(...e){return cl(this,"indexOf",e)},join(e){return Vt(this).join(e)},lastIndexOf(...e){return cl(this,"lastIndexOf",e)},map(e,t){return ht(this,"map",e,t,void 0,arguments)},pop(){return Yt(this,"pop")},push(...e){return Yt(this,"push",e)},reduce(e,...t){return fs(this,"reduce",e,t)},reduceRight(e,...t){return fs(this,"reduceRight",e,t)},shift(){return Yt(this,"shift")},some(e,t){return ht(this,"some",e,t,void 0,arguments)},splice(...e){return Yt(this,"splice",e)},toReversed(){return Vt(this).toReversed()},toSorted(e){return Vt(this).toSorted(e)},toSpliced(...e){return Vt(this).toSpliced(...e)},unshift(...e){return Yt(this,"unshift",e)},values(){return ul(this,"values",e=>ot(this,e))}};function ul(e,t,n){const l=Gn(e),o=l[t]();return l!==e&&!ze(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.done||(i.value=n(i.value)),i}),o}const cr=Array.prototype;function ht(e,t,n,l,o,i){const r=Gn(e),d=r!==e&&!ze(e),h=r[t];if(h!==cr[t]){const y=h.apply(e,i);return d?et(y):y}let m=n;r!==e&&(d?m=function(y,O){return n.call(this,ot(e,y),O,e)}:n.length>2&&(m=function(y,O){return n.call(this,y,O,e)}));const _=h.call(r,m,l);return d&&o?o(_):_}function fs(e,t,n,l){const o=Gn(e),i=o!==e&&!ze(e);let r=n,d=!1;o!==e&&(i?(d=l.length===0,r=function(m,_,y){return d&&(d=!1,m=ot(e,m)),n.call(this,m,ot(e,_),y,e)}):n.length>3&&(r=function(m,_,y){return n.call(this,m,_,y,e)}));const h=o[t](r,...l);return d?ot(e,h):h}function cl(e,t,n){const l=oe(e);Oe(l,"iterate",un);const o=l[t](...n);return(o===-1||o===!1)&&Fl(n[0])?(n[0]=oe(n[0]),l[t](...n)):o}function Yt(e,t,n=[]){ct(),Ml();const l=oe(e)[t].apply(e,n);return $l(),dt(),l}const dr=Tl("__proto__,__v_isRef,__isVue"),so=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ut));function fr(e){ut(e)||(e=String(e));const t=oe(this);return Oe(t,"has",e),t.hasOwnProperty(e)}class oo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return l===(o?i?kr:uo:i?ao:ro).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const r=W(t);if(!o){let h;if(r&&(h=ur[n]))return h;if(n==="hasOwnProperty")return fr}const d=Reflect.get(t,n,Ie(t)?t:l);if((ut(n)?so.has(n):dr(n))||(o||Oe(t,"get",n),i))return d;if(Ie(d)){const h=r&&Il(n)?d:d.value;return o&&ce(h)?kl(h):h}return ce(d)?o?kl(d):Vl(d):d}}class io extends oo{constructor(t=!1){super(!1,t)}set(t,n,l,o){let i=t[n];const r=W(t)&&Il(n);if(!this._isShallow){const m=bt(i);if(!ze(l)&&!bt(l)&&(i=oe(i),l=oe(l)),!r&&Ie(i)&&!Ie(l))return m||(i.value=l),!0}const d=r?Number(n)e,Pn=e=>Reflect.getPrototypeOf(e);function _r(e,t,n){return function(...l){const o=this.__v_raw,i=oe(o),r=jt(i),d=e==="entries"||e===Symbol.iterator&&r,h=e==="keys"&&r,m=o[e](...l),_=n?wl:t?qt:et;return!t&&Oe(i,"iterate",h?bl:$t),Ee(Object.create(m),{next(){const{value:y,done:O}=m.next();return O?{value:y,done:O}:{value:d?[_(y[0]),_(y[1])]:_(y),done:O}}})}}function Dn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function mr(e,t){const n={get(o){const i=this.__v_raw,r=oe(i),d=oe(o);e||(rt(o,d)&&Oe(r,"get",o),Oe(r,"get",d));const{has:h}=Pn(r),m=t?wl:e?qt:et;if(h.call(r,o))return m(i.get(o));if(h.call(r,d))return m(i.get(d));i!==r&&i.get(o)},get size(){const o=this.__v_raw;return!e&&Oe(oe(o),"iterate",$t),o.size},has(o){const i=this.__v_raw,r=oe(i),d=oe(o);return e||(rt(o,d)&&Oe(r,"has",o),Oe(r,"has",d)),o===d?i.has(o):i.has(o)||i.has(d)},forEach(o,i){const r=this,d=r.__v_raw,h=oe(d),m=t?wl:e?qt:et;return!e&&Oe(h,"iterate",$t),d.forEach((_,y)=>o.call(i,m(_),m(y),r))}};return Ee(n,e?{add:Dn("add"),set:Dn("set"),delete:Dn("delete"),clear:Dn("clear")}:{add(o){const i=oe(this),r=Pn(i),d=oe(o),h=!t&&!ze(o)&&!bt(o)?d:o;return r.has.call(i,h)||rt(o,h)&&r.has.call(i,o)||rt(d,h)&&r.has.call(i,d)||(i.add(h),_t(i,"add",h,h)),this},set(o,i){!t&&!ze(i)&&!bt(i)&&(i=oe(i));const r=oe(this),{has:d,get:h}=Pn(r);let m=d.call(r,o);m||(o=oe(o),m=d.call(r,o));const _=h.call(r,o);return r.set(o,i),m?rt(i,_)&&_t(r,"set",o,i):_t(r,"add",o,i),this},delete(o){const i=oe(this),{has:r,get:d}=Pn(i);let h=r.call(i,o);h||(o=oe(o),h=r.call(i,o)),d&&d.call(i,o);const m=i.delete(o);return h&&_t(i,"delete",o,void 0),m},clear(){const o=oe(this),i=o.size!==0,r=o.clear();return i&&_t(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=_r(o,e,t)}),n}function Ul(e,t){const n=mr(e,t);return(l,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?l:Reflect.get(ie(n,o)&&o in l?n:l,o,i)}const yr={get:Ul(!1,!1)},br={get:Ul(!1,!0)},wr={get:Ul(!0,!1)};const ro=new WeakMap,ao=new WeakMap,uo=new WeakMap,kr=new WeakMap;function Cr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Vl(e){return bt(e)?e:Ll(e,!1,hr,yr,ro)}function xr(e){return Ll(e,!1,gr,br,ao)}function kl(e){return Ll(e,!0,vr,wr,uo)}function Ll(e,t,n,l,o){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=o.get(e);if(i)return i;const r=Cr(Gi(e));if(r===0)return e;const d=new Proxy(e,r===2?l:n);return o.set(e,d),d}function Rt(e){return bt(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function bt(e){return!!(e&&e.__v_isReadonly)}function ze(e){return!!(e&&e.__v_isShallow)}function Fl(e){return e?!!e.__v_raw:!1}function oe(e){const t=e&&e.__v_raw;return t?oe(t):e}function Sr(e){return!ie(e,"__v_skip")&&Object.isExtensible(e)&&qs(e,"__v_skip",!0),e}const et=e=>ce(e)?Vl(e):e,qt=e=>ce(e)?kl(e):e;function Ie(e){return e?e.__v_isRef===!0:!1}function F(e){return Pr(e,!1)}function Pr(e,t){return Ie(e)?e:new Dr(e,t)}class Dr{constructor(t,n){this.dep=new Bl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:oe(t),this._value=n?t:et(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||ze(t)||bt(t);t=l?t:oe(t),rt(t,n)&&(this._rawValue=t,this._value=l?t:et(t),this.dep.trigger())}}function Er(e){return Ie(e)?e.value:e}const Tr={get:(e,t,n)=>t==="__v_raw"?e:Er(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const o=e[t];return Ie(o)&&!Ie(n)?(o.value=n,!0):Reflect.set(e,t,n,l)}};function co(e){return Rt(e)?e:new Proxy(e,Tr)}class Or{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Bl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=an-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&ve!==this)return Xs(this,!0),!0}get value(){const t=this.dep.track();return to(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ir(e,t,n=!1){let l,o;return J(e)?l=e:(l=e.get,o=e.set),new Or(l,o,n)}const En={},An=new WeakMap;let At;function Ar(e,t=!1,n=At){if(n){let l=An.get(n);l||An.set(n,l=[]),l.push(e)}}function Mr(e,t,n=pe){const{immediate:l,deep:o,once:i,scheduler:r,augmentJob:d,call:h}=n,m=U=>o?U:ze(U)||o===!1||o===0?mt(U,1):mt(U);let _,y,O,A,Z=!1,N=!1;if(Ie(e)?(y=()=>e.value,Z=ze(e)):Rt(e)?(y=()=>m(e),Z=!0):W(e)?(N=!0,Z=e.some(U=>Rt(U)||ze(U)),y=()=>e.map(U=>{if(Ie(U))return U.value;if(Rt(U))return m(U);if(J(U))return h?h(U,2):U()})):J(e)?t?y=h?()=>h(e,2):e:y=()=>{if(O){ct();try{O()}finally{dt()}}const U=At;At=_;try{return h?h(e,3,[A]):e(A)}finally{At=U}}:y=at,t&&o){const U=y,fe=o===!0?1/0:o;y=()=>mt(U(),fe)}const he=ir(),de=()=>{_.stop(),he&&he.active&&Ol(he.effects,_)};if(i&&t){const U=t;t=(...fe)=>{const Ae=U(...fe);return de(),Ae}}let H=N?new Array(e.length).fill(En):En;const re=U=>{if(!(!(_.flags&1)||!_.dirty&&!U))if(t){const fe=_.run();if(U||o||Z||(N?fe.some((Ae,Me)=>rt(Ae,H[Me])):rt(fe,H))){O&&O();const Ae=At;At=_;try{const Me=[fe,H===En?void 0:N&&H[0]===En?[]:H,A];H=fe,h?h(t,3,Me):t(...Me)}finally{At=Ae}}}else _.run()};return d&&d(re),_=new Ys(y),_.scheduler=r?()=>r(re,!1):re,A=U=>Ar(U,!1,_),O=_.onStop=()=>{const U=An.get(_);if(U){if(h)h(U,4);else for(const fe of U)fe();An.delete(_)}},t?l?re(!0):H=_.run():r?r(re.bind(null,!0),!0):_.run(),de.pause=_.pause.bind(_),de.resume=_.resume.bind(_),de.stop=de,de}function mt(e,t=1/0,n){if(t<=0||!ce(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ie(e))mt(e.value,t,n);else if(W(e))for(let l=0;l{mt(l,t,n)});else if(Hs(e)){for(const l in e)mt(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&mt(e[l],t,n)}return e}/** +* @vue/runtime-core v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function vn(e,t,n,l){try{return l?e(...l):e()}catch(o){zn(o,t,n)}}function tt(e,t,n,l){if(J(e)){const o=vn(e,t,n,l);return o&&js(o)&&o.catch(i=>{zn(i,t,n)}),o}if(W(e)){const o=[];for(let i=0;i>>1,o=Be[l],i=cn(o);i=cn(n)?Be.push(e):Be.splice(Rr(t),0,e),e.flags|=1,ho()}}function ho(){Mn||(Mn=fo.then(go))}function Br(e){W(e)?Wt.push(...e):Dt&&e.id===-1?Dt.splice(Ft+1,0,e):e.flags&1||(Wt.push(e),e.flags|=1),ho()}function ps(e,t,n=st+1){for(;ncn(n)-cn(l));if(Wt.length=0,Dt){Dt.push(...t);return}for(Dt=t,Ft=0;Fte.id==null?e.flags&2?-1:1/0:e.id;function go(e){try{for(st=0;st{l._d&&xs(-1);const i=$n(t);let r;try{r=e(...o)}finally{$n(i),l._d&&xs(1)}return r};return l._n=!0,l._c=!0,l._d=!0,l}function R(e,t){if(Ge===null)return e;const n=Zn(Ge),l=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&J(t)?t.call(l&&l.proxy):t}}const Lr=Symbol.for("v-scx"),Fr=()=>On(Lr);function dl(e,t,n){return mo(e,t,n)}function mo(e,t,n=pe){const{immediate:l,deep:o,flush:i,once:r}=n,d=Ee({},n),h=t&&l||!t&&i!=="post";let m;if(fn){if(i==="sync"){const A=Fr();m=A.__watcherHandles||(A.__watcherHandles=[])}else if(!h){const A=()=>{};return A.stop=at,A.resume=at,A.pause=at,A}}const _=Ue;d.call=(A,Z,N)=>tt(A,_,Z,N);let y=!1;i==="post"?d.scheduler=A=>{Fe(A,_&&_.suspense)}:i!=="sync"&&(y=!0,d.scheduler=(A,Z)=>{Z?A():Nl(A)}),d.augmentJob=A=>{t&&(A.flags|=4),y&&(A.flags|=2,_&&(A.id=_.uid,A.i=_))};const O=Mr(e,t,d);return fn&&(m?m.push(O):h&&O()),O}function Nr(e,t,n){const l=this.proxy,o=we(e)?e.includes(".")?yo(l,e):()=>l[e]:e.bind(l,l);let i;J(t)?i=t:(i=t.handler,n=t);const r=gn(this),d=mo(o,i.bind(l),n);return r(),d}function yo(e,t){const n=t.split(".");return()=>{let l=e;for(let o=0;oe.__isTeleport,fl=Symbol("_leaveCb");function jl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,jl(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Hr(e,t){return J(e)?Ee({name:e.name},t,{setup:e}):e}function bo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function hs(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Rn=new WeakMap;function ln(e,t,n,l,o=!1){if(W(e)){e.forEach((N,he)=>ln(N,t&&(W(t)?t[he]:t),n,l,o));return}if(sn(l)&&!o){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&ln(e,t,n,l.component.subTree);return}const i=l.shapeFlag&4?Zn(l.component):l.el,r=o?null:i,{i:d,r:h}=e,m=t&&t.r,_=d.refs===pe?d.refs={}:d.refs,y=d.setupState,O=oe(y),A=y===pe?Ns:N=>hs(_,N)?!1:ie(O,N),Z=(N,he)=>!(he&&hs(_,he));if(m!=null&&m!==h){if(vs(t),we(m))_[m]=null,A(m)&&(y[m]=null);else if(Ie(m)){const N=t;Z(m,N.k)&&(m.value=null),N.k&&(_[N.k]=null)}}if(J(h)){ct();try{vn(h,d,12,[r,_])}finally{dt()}}else{const N=we(h),he=Ie(h);if(N||he){const de=()=>{if(e.f){const H=N?A(h)?y[h]:_[h]:Z()||!e.k?h.value:_[e.k];if(o)W(H)&&Ol(H,i);else if(W(H))H.includes(i)||H.push(i);else if(N)_[h]=[i],A(h)&&(y[h]=_[h]);else{const re=[i];Z(h,e.k)&&(h.value=re),e.k&&(_[e.k]=re)}}else N?(_[h]=r,A(h)&&(y[h]=r)):he&&(Z(h,e.k)&&(h.value=r),e.k&&(_[e.k]=r))};if(r){const H=()=>{de(),Rn.delete(e)};H.id=-1,Rn.set(e,H),Fe(H,n)}else vs(e),de()}}}function vs(e){const t=Rn.get(e);t&&(t.flags|=8,Rn.delete(e))}qn().requestIdleCallback;qn().cancelIdleCallback;const sn=e=>!!e.type.__asyncLoader,wo=e=>e.type.__isKeepAlive;function Kr(e,t){ko(e,"a",t)}function qr(e,t){ko(e,"da",t)}function ko(e,t,n=Ue){const l=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Yn(t,l,n),n){let o=n.parent;for(;o&&o.parent;)wo(o.parent.vnode)&&Jr(l,t,n,o),o=o.parent}}function Jr(e,t,n,l){const o=Yn(t,e,l,!0);xo(()=>{Ol(l[t],o)},n)}function Yn(e,t,n=Ue,l=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{ct();const d=gn(n),h=tt(t,n,e,r);return d(),dt(),h});return l?o.unshift(i):o.push(i),i}}const wt=e=>(t,n=Ue)=>{(!fn||e==="sp")&&Yn(e,(...l)=>t(...l),n)},Gr=wt("bm"),Co=wt("m"),zr=wt("bu"),Yr=wt("u"),Qr=wt("bum"),xo=wt("um"),Xr=wt("sp"),Zr=wt("rtg"),ea=wt("rtc");function ta(e,t=Ue){Yn("ec",e,t)}const na=Symbol.for("v-ndc");function ge(e,t,n,l){let o;const i=n,r=W(e);if(r||we(e)){const d=r&&Rt(e);let h=!1,m=!1;d&&(h=!ze(e),m=bt(e),e=Gn(e)),o=new Array(e.length);for(let _=0,y=e.length;_t(d,h,void 0,i));else{const d=Object.keys(e);o=new Array(d.length);for(let h=0,m=d.length;he?Ko(e)?Zn(e):Cl(e.parent):null,on=Ee(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Cl(e.parent),$root:e=>Cl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Po(e),$forceUpdate:e=>e.f||(e.f=()=>{Nl(e.update)}),$nextTick:e=>e.n||(e.n=po.bind(e.proxy)),$watch:e=>Nr.bind(e)}),pl=(e,t)=>e!==pe&&!e.__isScriptSetup&&ie(e,t),la={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:o,props:i,accessCache:r,type:d,appContext:h}=e;if(t[0]!=="$"){const O=r[t];if(O!==void 0)switch(O){case 1:return l[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(pl(l,t))return r[t]=1,l[t];if(o!==pe&&ie(o,t))return r[t]=2,o[t];if(ie(i,t))return r[t]=3,i[t];if(n!==pe&&ie(n,t))return r[t]=4,n[t];xl&&(r[t]=0)}}const m=on[t];let _,y;if(m)return t==="$attrs"&&Oe(e.attrs,"get",""),m(e);if((_=d.__cssModules)&&(_=_[t]))return _;if(n!==pe&&ie(n,t))return r[t]=4,n[t];if(y=h.config.globalProperties,ie(y,t))return y[t]},set({_:e},t,n){const{data:l,setupState:o,ctx:i}=e;return pl(o,t)?(o[t]=n,!0):l!==pe&&ie(l,t)?(l[t]=n,!0):ie(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:o,props:i,type:r}},d){let h;return!!(n[d]||e!==pe&&d[0]!=="$"&&ie(e,d)||pl(t,d)||ie(i,d)||ie(l,d)||ie(on,d)||ie(o.config.globalProperties,d)||(h=r.__cssModules)&&h[d])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function gs(e){return W(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xl=!0;function sa(e){const t=Po(e),n=e.proxy,l=e.ctx;xl=!1,t.beforeCreate&&_s(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:r,watch:d,provide:h,inject:m,created:_,beforeMount:y,mounted:O,beforeUpdate:A,updated:Z,activated:N,deactivated:he,beforeDestroy:de,beforeUnmount:H,destroyed:re,unmounted:U,render:fe,renderTracked:Ae,renderTriggered:Me,errorCaptured:Ne,serverPrefetch:ft,expose:_e,inheritAttrs:Ve,components:pt,directives:nt,filters:kt}=t;if(m&&oa(m,l,null),r)for(const B in r){const ee=r[B];J(ee)&&(l[B]=ee.bind(n))}if(o){const B=o.call(n,n);ce(B)&&(e.data=Vl(B))}if(xl=!0,i)for(const B in i){const ee=i[B],Q=J(ee)?ee.bind(n,n):J(ee.get)?ee.get.bind(n,n):at,je=!J(ee)&&J(ee.set)?ee.set.bind(n):at,Le=Pt({get:Q,set:je});Object.defineProperty(l,B,{enumerable:!0,configurable:!0,get:()=>Le.value,set:K=>Le.value=K})}if(d)for(const B in d)So(d[B],l,n,B);if(h){const B=J(h)?h.call(n):h;Reflect.ownKeys(B).forEach(ee=>{Vr(ee,B[ee])})}_&&_s(_,e,"c");function ke(B,ee){W(ee)?ee.forEach(Q=>B(Q.bind(n))):ee&&B(ee.bind(n))}if(ke(Gr,y),ke(Co,O),ke(zr,A),ke(Yr,Z),ke(Kr,N),ke(qr,he),ke(ta,Ne),ke(ea,Ae),ke(Zr,Me),ke(Qr,H),ke(xo,U),ke(Xr,ft),W(_e))if(_e.length){const B=e.exposed||(e.exposed={});_e.forEach(ee=>{Object.defineProperty(B,ee,{get:()=>n[ee],set:Q=>n[ee]=Q,enumerable:!0})})}else e.exposed||(e.exposed={});fe&&e.render===at&&(e.render=fe),Ve!=null&&(e.inheritAttrs=Ve),pt&&(e.components=pt),nt&&(e.directives=nt),ft&&bo(e)}function oa(e,t,n=at){W(e)&&(e=Sl(e));for(const l in e){const o=e[l];let i;ce(o)?"default"in o?i=On(o.from||l,o.default,!0):i=On(o.from||l):i=On(o),Ie(i)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[l]=i}}function _s(e,t,n){tt(W(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function So(e,t,n,l){let o=l.includes(".")?yo(n,l):()=>n[l];if(we(e)){const i=t[e];J(i)&&dl(o,i)}else if(J(e))dl(o,e.bind(n));else if(ce(e))if(W(e))e.forEach(i=>So(i,t,n,l));else{const i=J(e.handler)?e.handler.bind(n):t[e.handler];J(i)&&dl(o,i,e)}}function Po(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,d=i.get(t);let h;return d?h=d:!o.length&&!n&&!l?h=t:(h={},o.length&&o.forEach(m=>Bn(h,m,r,!0)),Bn(h,t,r)),ce(t)&&i.set(t,h),h}function Bn(e,t,n,l=!1){const{mixins:o,extends:i}=t;i&&Bn(e,i,n,!0),o&&o.forEach(r=>Bn(e,r,n,!0));for(const r in t)if(!(l&&r==="expose")){const d=ia[r]||n&&n[r];e[r]=d?d(e[r],t[r]):t[r]}return e}const ia={data:ms,props:ys,emits:ys,methods:Xt,computed:Xt,beforeCreate:Re,created:Re,beforeMount:Re,mounted:Re,beforeUpdate:Re,updated:Re,beforeDestroy:Re,beforeUnmount:Re,destroyed:Re,unmounted:Re,activated:Re,deactivated:Re,errorCaptured:Re,serverPrefetch:Re,components:Xt,directives:Xt,watch:aa,provide:ms,inject:ra};function ms(e,t){return t?e?function(){return Ee(J(e)?e.call(this,this):e,J(t)?t.call(this,this):t)}:t:e}function ra(e,t){return Xt(Sl(e),Sl(t))}function Sl(e){if(W(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Xe(t)}Modifiers`]||e[`${Bt(t)}Modifiers`];function fa(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||pe;let o=n;const i=t.startsWith("update:"),r=i&&da(l,t.slice(7));r&&(r.trim&&(o=n.map(_=>we(_)?_.trim():_)),r.number&&(o=n.map(Kn)));let d,h=l[d=il(t)]||l[d=il(Xe(t))];!h&&i&&(h=l[d=il(Bt(t))]),h&&tt(h,e,6,o);const m=l[d+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,tt(m,e,6,o)}}const pa=new WeakMap;function Eo(e,t,n=!1){const l=n?pa:t.emitsCache,o=l.get(e);if(o!==void 0)return o;const i=e.emits;let r={},d=!1;if(!J(e)){const h=m=>{const _=Eo(m,t,!0);_&&(d=!0,Ee(r,_))};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!i&&!d?(ce(e)&&l.set(e,null),null):(W(i)?i.forEach(h=>r[h]=null):Ee(r,i),ce(e)&&l.set(e,r),r)}function Qn(e,t){return!e||!Nn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,Bt(t))||ie(e,t))}function bs(e){const{type:t,vnode:n,proxy:l,withProxy:o,propsOptions:[i],slots:r,attrs:d,emit:h,render:m,renderCache:_,props:y,data:O,setupState:A,ctx:Z,inheritAttrs:N}=e,he=$n(e);let de,H;try{if(n.shapeFlag&4){const U=o||l,fe=U;de=it(m.call(fe,U,_,y,A,O,Z)),H=d}else{const U=t;de=it(U.length>1?U(y,{attrs:d,slots:r,emit:h}):U(y,null)),H=t.props?d:ha(d)}}catch(U){rn.length=0,zn(U,e,1),de=yt(Et)}let re=de;if(H&&N!==!1){const U=Object.keys(H),{shapeFlag:fe}=re;U.length&&fe&7&&(i&&U.some(jn)&&(H=va(H,i)),re=Jt(re,H,!1,!0))}return n.dirs&&(re=Jt(re,null,!1,!0),re.dirs=re.dirs?re.dirs.concat(n.dirs):n.dirs),n.transition&&jl(re,n.transition),de=re,$n(he),de}const ha=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nn(n))&&((t||(t={}))[n]=e[n]);return t},va=(e,t)=>{const n={};for(const l in e)(!jn(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function ga(e,t,n){const{props:l,children:o,component:i}=e,{props:r,children:d,patchFlag:h}=t,m=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&h>=0){if(h&1024)return!0;if(h&16)return l?ws(l,r,m):!!r;if(h&8){const _=t.dynamicProps;for(let y=0;y<_.length;y++){const O=_[y];if(To(r,l,O)&&!Qn(m,O))return!0}}}else return(o||d)&&(!d||!d.$stable)?!0:l===r?!1:l?r?ws(l,r,m):!0:!!r;return!1}function ws(e,t,n){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let o=0;oObject.create(Oo),Ao=e=>Object.getPrototypeOf(e)===Oo;function ma(e,t,n,l=!1){const o={},i=Io();e.propsDefaults=Object.create(null),Mo(e,t,o,i);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=l?o:xr(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function ya(e,t,n,l){const{props:o,attrs:i,vnode:{patchFlag:r}}=e,d=oe(o),[h]=e.propsOptions;let m=!1;if((l||r>0)&&!(r&16)){if(r&8){const _=e.vnode.dynamicProps;for(let y=0;y<_.length;y++){let O=_[y];if(Qn(e.emitsOptions,O))continue;const A=t[O];if(h)if(ie(i,O))A!==i[O]&&(i[O]=A,m=!0);else{const Z=Xe(O);o[Z]=Pl(h,d,Z,A,e,!1)}else A!==i[O]&&(i[O]=A,m=!0)}}}else{Mo(e,t,o,i)&&(m=!0);let _;for(const y in d)(!t||!ie(t,y)&&((_=Bt(y))===y||!ie(t,_)))&&(h?n&&(n[y]!==void 0||n[_]!==void 0)&&(o[y]=Pl(h,d,y,void 0,e,!0)):delete o[y]);if(i!==d)for(const y in i)(!t||!ie(t,y))&&(delete i[y],m=!0)}m&&_t(e.attrs,"set","")}function Mo(e,t,n,l){const[o,i]=e.propsOptions;let r=!1,d;if(t)for(let h in t){if(en(h))continue;const m=t[h];let _;o&&ie(o,_=Xe(h))?!i||!i.includes(_)?n[_]=m:(d||(d={}))[_]=m:Qn(e.emitsOptions,h)||(!(h in l)||m!==l[h])&&(l[h]=m,r=!0)}if(i){const h=oe(n),m=d||pe;for(let _=0;_{h=!0;const[O,A]=$o(y,t,!0);Ee(r,O),A&&d.push(...A)};!n&&t.mixins.length&&t.mixins.forEach(_),e.extends&&_(e.extends),e.mixins&&e.mixins.forEach(_)}if(!i&&!h)return ce(e)&&l.set(e,Nt),Nt;if(W(i))for(let _=0;_e==="_"||e==="_ctx"||e==="$stable",Hl=e=>W(e)?e.map(it):[it(e)],wa=(e,t,n)=>{if(t._n)return t;const l=Ur((...o)=>Hl(t(...o)),n);return l._c=!1,l},Ro=(e,t,n)=>{const l=e._ctx;for(const o in e){if(Wl(o))continue;const i=e[o];if(J(i))t[o]=wa(o,i,l);else if(i!=null){const r=Hl(i);t[o]=()=>r}}},Bo=(e,t)=>{const n=Hl(t);e.slots.default=()=>n},Uo=(e,t,n)=>{for(const l in t)(n||!Wl(l))&&(e[l]=t[l])},ka=(e,t,n)=>{const l=e.slots=Io();if(e.vnode.shapeFlag&32){const o=t._;o?(Uo(l,t,n),n&&qs(l,"_",o,!0)):Ro(t,l)}else t&&Bo(e,t)},Ca=(e,t,n)=>{const{vnode:l,slots:o}=e;let i=!0,r=pe;if(l.shapeFlag&32){const d=t._;d?n&&d===1?i=!1:Uo(o,t,n):(i=!t.$stable,Ro(t,o)),r=t}else t&&(Bo(e,t),r={default:1});if(i)for(const d in o)!Wl(d)&&r[d]==null&&delete o[d]},Fe=Ea;function xa(e){return Sa(e)}function Sa(e,t){const n=qn();n.__VUE__=!0;const{insert:l,remove:o,patchProp:i,createElement:r,createText:d,createComment:h,setText:m,setElementText:_,parentNode:y,nextSibling:O,setScopeId:A=at,insertStaticContent:Z}=e,N=(c,g,v,C=null,b=null,w=null,E=void 0,D=null,P=!!g.dynamicChildren)=>{if(c===g)return;c&&!Qt(c,g)&&(C=me(c),K(c,b,w,!0),c=null),g.patchFlag===-2&&(P=!1,g.dynamicChildren=null);const{type:k,ref:V,shapeFlag:I}=g;switch(k){case Xn:he(c,g,v,C);break;case Et:de(c,g,v,C);break;case vl:c==null&&H(g,v,C,E);break;case X:pt(c,g,v,C,b,w,E,D,P);break;default:I&1?fe(c,g,v,C,b,w,E,D,P):I&6?nt(c,g,v,C,b,w,E,D,P):(I&64||I&128)&&k.process(c,g,v,C,b,w,E,D,P,xe)}V!=null&&b?ln(V,c&&c.ref,w,g||c,!g):V==null&&c&&c.ref!=null&&ln(c.ref,null,w,c,!0)},he=(c,g,v,C)=>{if(c==null)l(g.el=d(g.children),v,C);else{const b=g.el=c.el;g.children!==c.children&&m(b,g.children)}},de=(c,g,v,C)=>{c==null?l(g.el=h(g.children||""),v,C):g.el=c.el},H=(c,g,v,C)=>{[c.el,c.anchor]=Z(c.children,g,v,C,c.el,c.anchor)},re=({el:c,anchor:g},v,C)=>{let b;for(;c&&c!==g;)b=O(c),l(c,v,C),c=b;l(g,v,C)},U=({el:c,anchor:g})=>{let v;for(;c&&c!==g;)v=O(c),o(c),c=v;o(g)},fe=(c,g,v,C,b,w,E,D,P)=>{if(g.type==="svg"?E="svg":g.type==="math"&&(E="mathml"),c==null)Ae(g,v,C,b,w,E,D,P);else{const k=c.el&&c.el._isVueCE?c.el:null;try{k&&k._beginPatch(),ft(c,g,b,w,E,D,P)}finally{k&&k._endPatch()}}},Ae=(c,g,v,C,b,w,E,D)=>{let P,k;const{props:V,shapeFlag:I,transition:M,dirs:j}=c;if(P=c.el=r(c.type,w,V&&V.is,V),I&8?_(P,c.children):I&16&&Ne(c.children,P,null,C,b,hl(c,w),E,D),j&&Ot(c,null,C,"created"),Me(P,c,c.scopeId,E,C),V){for(const ae in V)ae!=="value"&&!en(ae)&&i(P,ae,null,V[ae],w,C);"value"in V&&i(P,"value",null,V.value,w),(k=V.onVnodeBeforeMount)&<(k,C,c)}j&&Ot(c,null,C,"beforeMount");const G=Pa(b,M);G&&M.beforeEnter(P),l(P,g,v),((k=V&&V.onVnodeMounted)||G||j)&&Fe(()=>{try{k&<(k,C,c),G&&M.enter(P),j&&Ot(c,null,C,"mounted")}finally{}},b)},Me=(c,g,v,C,b)=>{if(v&&A(c,v),C)for(let w=0;w{for(let k=P;k{const D=g.el=c.el;let{patchFlag:P,dynamicChildren:k,dirs:V}=g;P|=c.patchFlag&16;const I=c.props||pe,M=g.props||pe;let j;if(v&&It(v,!1),(j=M.onVnodeBeforeUpdate)&<(j,v,g,c),V&&Ot(g,c,v,"beforeUpdate"),v&&It(v,!0),k&&(!c.dynamicChildren||c.dynamicChildren.length!==k.length)&&(P=0,E=!1,k=null),(I.innerHTML&&M.innerHTML==null||I.textContent&&M.textContent==null)&&_(D,""),k?_e(c.dynamicChildren,k,D,v,C,hl(g,b),w):E||ee(c,g,D,null,v,C,hl(g,b),w,!1),P>0){if(P&16)Ve(D,I,M,v,b);else if(P&2&&I.class!==M.class&&i(D,"class",null,M.class,b),P&4&&i(D,"style",I.style,M.style,b),P&8){const G=g.dynamicProps;for(let ae=0;ae{j&<(j,v,g,c),V&&Ot(g,c,v,"updated")},C)},_e=(c,g,v,C,b,w,E)=>{for(let D=0;D{if(g!==v){if(g!==pe)for(const w in g)!en(w)&&!(w in v)&&i(c,w,g[w],null,b,C);for(const w in v){if(en(w))continue;const E=v[w],D=g[w];E!==D&&w!=="value"&&i(c,w,D,E,b,C)}"value"in v&&i(c,"value",g.value,v.value,b)}},pt=(c,g,v,C,b,w,E,D,P)=>{const k=g.el=c?c.el:d(""),V=g.anchor=c?c.anchor:d("");let{patchFlag:I,dynamicChildren:M,slotScopeIds:j}=g;j&&(D=D?D.concat(j):j),c==null?(l(k,v,C),l(V,v,C),Ne(g.children||[],v,V,b,w,E,D,P)):I>0&&I&64&&M&&c.dynamicChildren&&c.dynamicChildren.length===M.length?(_e(c.dynamicChildren,M,v,b,w,E,D),(g.key!=null||b&&g===b.subTree)&&Vo(c,g,!0)):ee(c,g,v,V,b,w,E,D,P)},nt=(c,g,v,C,b,w,E,D,P)=>{g.slotScopeIds=D,c==null?g.shapeFlag&512?b.ctx.activate(g,v,C,E,P):kt(g,v,C,b,w,E,P):Ct(c,g,P)},kt=(c,g,v,C,b,w,E)=>{const D=c.component=Ua(c,C,b);if(wo(c)&&(D.ctx.renderer=xe),La(D,!1,E),D.asyncDep){if(b&&b.registerDep(D,ke,E),!c.el){const P=D.subTree=yt(Et);de(null,P,g,v),c.placeholder=P.el}}else ke(D,c,g,v,b,w,E)},Ct=(c,g,v)=>{const C=g.component=c.component;if(ga(c,g,v))if(C.asyncDep&&!C.asyncResolved){B(C,g,v);return}else C.next=g,C.update();else g.el=c.el,C.vnode=g},ke=(c,g,v,C,b,w,E)=>{const D=()=>{if(c.isMounted){let{next:I,bu:M,u:j,parent:G,vnode:ae}=c;{const qe=Lo(c);if(qe){I&&(I.el=ae.el,B(c,I,E)),qe.asyncDep.then(()=>{Fe(()=>{c.isUnmounted||k()},b)});return}}let ne=I,be;It(c,!1),I?(I.el=ae.el,B(c,I,E)):I=ae,M&&Tn(M),(be=I.props&&I.props.onVnodeBeforeUpdate)&<(be,G,I,ae),It(c,!0);const Ce=bs(c),We=c.subTree;c.subTree=Ce,N(We,Ce,y(We.el),me(We),c,b,w),I.el=Ce.el,ne===null&&_a(c,Ce.el),j&&Fe(j,b),(be=I.props&&I.props.onVnodeUpdated)&&Fe(()=>lt(be,G,I,ae),b)}else{let I;const{el:M,props:j}=g,{bm:G,m:ae,parent:ne,root:be,type:Ce}=c,We=sn(g);It(c,!1),G&&Tn(G),!We&&(I=j&&j.onVnodeBeforeMount)&<(I,ne,g),It(c,!0);{be.ce&&be.ce._hasShadowRoot()&&be.ce._injectChildStyle(Ce,c.parent?c.parent.type:void 0);const qe=c.subTree=bs(c);N(null,qe,v,C,c,b,w),g.el=qe.el}if(ae&&Fe(ae,b),!We&&(I=j&&j.onVnodeMounted)){const qe=g;Fe(()=>lt(I,ne,qe),b)}(g.shapeFlag&256||ne&&sn(ne.vnode)&&ne.vnode.shapeFlag&256)&&c.a&&Fe(c.a,b),c.isMounted=!0,g=v=C=null}};c.scope.on();const P=c.effect=new Ys(D);c.scope.off();const k=c.update=P.run.bind(P),V=c.job=P.runIfDirty.bind(P);V.i=c,V.id=c.uid,P.scheduler=()=>Nl(V),It(c,!0),k()},B=(c,g,v)=>{g.component=c;const C=c.vnode.props;c.vnode=g,c.next=null,ya(c,g.props,C,v),Ca(c,g.children,v),ct(),ps(c),dt()},ee=(c,g,v,C,b,w,E,D,P=!1)=>{const k=c&&c.children,V=c?c.shapeFlag:0,I=g.children,{patchFlag:M,shapeFlag:j}=g;if(M>0){if(M&128){je(k,I,v,C,b,w,E,D,P);return}else if(M&256){Q(k,I,v,C,b,w,E,D,P);return}}j&8?(V&16&&ye(k,b,w),I!==k&&_(v,I)):V&16?j&16?je(k,I,v,C,b,w,E,D,P):ye(k,b,w,!0):(V&8&&_(v,""),j&16&&Ne(I,v,C,b,w,E,D,P))},Q=(c,g,v,C,b,w,E,D,P)=>{c=c||Nt,g=g||Nt;const k=c.length,V=g.length,I=Math.min(k,V);let M;for(M=0;MV?ye(c,b,w,!0,!1,I):Ne(g,v,C,b,w,E,D,P,I)},je=(c,g,v,C,b,w,E,D,P)=>{let k=0;const V=g.length;let I=c.length-1,M=V-1;for(;k<=I&&k<=M;){const j=c[k],G=g[k]=P?gt(g[k]):it(g[k]);if(Qt(j,G))N(j,G,v,null,b,w,E,D,P);else break;k++}for(;k<=I&&k<=M;){const j=c[I],G=g[M]=P?gt(g[M]):it(g[M]);if(Qt(j,G))N(j,G,v,null,b,w,E,D,P);else break;I--,M--}if(k>I){if(k<=M){const j=M+1,G=jM)for(;k<=I;)K(c[k],b,w,!0),k++;else{const j=k,G=k,ae=new Map;for(k=G;k<=M;k++){const $e=g[k]=P?gt(g[k]):it(g[k]);$e.key!=null&&ae.set($e.key,k)}let ne,be=0;const Ce=M-G+1;let We=!1,qe=0;const Se=new Array(Ce);for(k=0;k=Ce){K($e,b,w,!0);continue}let Je;if($e.key!=null)Je=ae.get($e.key);else for(ne=G;ne<=M;ne++)if(Se[ne-G]===0&&Qt($e,g[ne])){Je=ne;break}Je===void 0?K($e,b,w,!0):(Se[Je-G]=k+1,Je>=qe?qe=Je:We=!0,N($e,g[Je],v,null,b,w,E,D,P),be++)}const $=We?Da(Se):Nt;for(ne=$.length-1,k=Ce-1;k>=0;k--){const $e=G+k,Je=g[$e],_n=g[$e+1],mn=$e+1{const{el:w,type:E,transition:D,children:P,shapeFlag:k}=c;if(k&6){Le(c.component.subTree,g,v,C);return}if(k&128){c.suspense.move(g,v,C);return}if(k&64){E.move(c,g,v,xe);return}if(E===X){l(w,g,v);for(let I=0;ID.enter(w),b));else{const{leave:I,delayLeave:M,afterLeave:j}=D,G=()=>{c.ctx.isUnmounted?o(w):l(w,g,v)},ae=()=>{const ne=w._isLeaving||!!w[fl];w._isLeaving&&w[fl](!0),D.persisted&&!ne?G():I(w,()=>{G(),j&&j()})};M?M(w,G,ae):ae()}else l(w,g,v)},K=(c,g,v,C=!1,b=!1)=>{const{type:w,props:E,ref:D,children:P,dynamicChildren:k,shapeFlag:V,patchFlag:I,dirs:M,cacheIndex:j,memo:G}=c;if(I===-2&&(b=!1),D!=null&&(ct(),ln(D,null,v,c,!0),dt()),j!=null&&(g.renderCache[j]=void 0),V&256){g.ctx.deactivate(c);return}const ae=V&1&&M,ne=!sn(c);let be;if(ne&&(be=E&&E.onVnodeBeforeUnmount)&<(be,g,c),V&6)ue(c.component,v,C);else{if(V&128){c.suspense.unmount(v,C);return}ae&&Ot(c,null,g,"beforeUnmount"),V&64?c.type.remove(c,g,v,xe,C):k&&!k.hasOnce&&(w!==X||I>0&&I&64)?ye(k,g,v,!1,!0):(w===X&&I&384||!b&&V&16)&&ye(P,g,v),C&&Ke(c)}const Ce=G!=null&&j==null;(ne&&(be=E&&E.onVnodeUnmounted)||ae||Ce)&&Fe(()=>{be&<(be,g,c),ae&&Ot(c,null,g,"unmounted"),Ce&&(c.el=null)},v)},Ke=c=>{const{type:g,el:v,anchor:C,transition:b}=c;if(g===X){Ye(v,C);return}if(g===vl){U(c);return}const w=()=>{o(v),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(c.shapeFlag&1&&b&&!b.persisted){const{leave:E,delayLeave:D}=b,P=()=>E(v,w);D?D(c.el,w,P):P()}else w()},Ye=(c,g)=>{let v;for(;c!==g;)v=O(c),o(c),c=v;o(g)},ue=(c,g,v)=>{const{bum:C,scope:b,job:w,subTree:E,um:D,m:P,a:k}=c;Cs(P),Cs(k),C&&Tn(C),b.stop(),w&&(w.flags|=8,K(E,c,g,v)),D&&Fe(D,g),Fe(()=>{c.isUnmounted=!0},g)},ye=(c,g,v,C=!1,b=!1,w=0)=>{for(let E=w;E{if(c.shapeFlag&6)return me(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const g=O(c.anchor||c.el),v=g&&g[jr];return v?O(v):g};let Te=!1;const Tt=(c,g,v)=>{let C;c==null?g._vnode&&(K(g._vnode,null,null,!0),C=g._vnode.component):N(g._vnode||null,c,g,null,null,null,v),g._vnode=c,Te||(Te=!0,ps(C),vo(),Te=!1)},xe={p:N,um:K,m:Le,r:Ke,mt:kt,mc:Ne,pc:ee,pbc:_e,n:me,o:e};return{render:Tt,hydrate:void 0,createApp:ca(Tt)}}function hl({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function It({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Pa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vo(e,t,n=!1){const l=e.children,o=t.children;if(W(l)&&W(o))for(let i=0;i>1,e[n[d]]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 Lo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Lo(t)}function Cs(e){if(e)for(let t=0;te.__isSuspense;function Ea(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Br(e)}const X=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),vl=Symbol.for("v-stc"),rn=[];let He=null;function x(e=!1){rn.push(He=e?null:[])}function Ta(){rn.pop(),He=rn[rn.length-1]||null}let dn=1;function xs(e,t=!1){dn+=e,e<0&&He&&t&&(He.hasOnce=!0)}function jo(e){return e.dynamicChildren=dn>0?He||Nt:null,Ta(),dn>0&&He&&He.push(e),e}function S(e,t,n,l,o,i){return jo(s(e,t,n,l,o,i,!0))}function Oa(e,t,n,l,o){return jo(yt(e,t,n,l,o,!0))}function Wo(e){return e?e.__v_isVNode===!0:!1}function Qt(e,t){return e.type===t.type&&e.key===t.key}const Ho=({key:e})=>e??null,In=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Ie(e)||J(e)?{i:Ge,r:e,k:t,f:!!n}:e:null);function s(e,t=null,n=null,l=0,o=null,i=e===X?0:1,r=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ho(t),ref:t&&In(t),scopeId:_o,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:o,dynamicChildren:null,appContext:null,ctx:Ge};return d?(Un(h,n),i&128&&e.normalize(h)):n&&(h.shapeFlag|=we(n)?8:16),dn>0&&!r&&He&&(h.patchFlag>0||i&6)&&h.patchFlag!==32&&He.push(h),h}const yt=Ia;function Ia(e,t=null,n=null,l=0,o=null,i=!1){if((!e||e===na)&&(e=Et),Wo(e)){const d=Jt(e,t,!0);return n&&Un(d,n),dn>0&&!i&&He&&(d.shapeFlag&6?He[He.indexOf(e)]=d:He.push(d)),d.patchFlag=-2,d}if(Wa(e)&&(e=e.__vccOpts),t){t=Aa(t);let{class:d,style:h}=t;d&&!we(d)&&(t.class=Jn(d)),ce(h)&&(Fl(h)&&!W(h)&&(h=Ee({},h)),t.style=Al(h))}const r=we(e)?1:No(e)?128:Wr(e)?64:ce(e)?4:J(e)?2:0;return s(e,t,n,l,o,r,i,!0)}function Aa(e){return e?Fl(e)||Ao(e)?Ee({},e):e:null}function Jt(e,t,n=!1,l=!1){const{props:o,ref:i,patchFlag:r,children:d,transition:h}=e,m=t?$a(o||{},t):o,_={__v_isVNode:!0,__v_skip:!0,type:e.type,props:m,key:m&&Ho(m),ref:t&&t.ref?n&&i?W(i)?i.concat(In(t)):[i,In(t)]:In(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==X?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Jt(e.ssContent),ssFallback:e.ssFallback&&Jt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&l&&jl(_,h.clone(_)),_}function Ma(e=" ",t=0){return yt(Xn,null,e,t)}function z(e="",t=!1){return t?(x(),Oa(Et,null,e)):yt(Et,null,e)}function it(e){return e==null||typeof e=="boolean"?yt(Et):W(e)?yt(X,null,e.slice()):Wo(e)?gt(e):yt(Xn,null,String(e))}function gt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Jt(e)}function Un(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(l&65){const o=t.default;o&&(o._c&&(o._d=!1),Un(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Ao(t)?t._ctx=Ge:o===3&&Ge&&(Ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(J(t)){if(l&65){Un(e,{default:t});return}t={default:t,_ctx:Ge},n=32}else t=String(t),l&64?(n=16,t=[Ma(t)]):n=8;e.children=t,e.shapeFlag|=n}function $a(...e){const t={};for(let n=0;nUe||Ge;let Vn,Dl;{const e=qn(),t=(n,l)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(l),i=>{o.length>1?o.forEach(r=>r(i)):o[0](i)}};Vn=t("__VUE_INSTANCE_SETTERS__",n=>Ue=n),Dl=t("__VUE_SSR_SETTERS__",n=>fn=n)}const gn=e=>{const t=Ue;return Vn(e),e.scope.on(),()=>{e.scope.off(),Vn(t)}},Ss=()=>{Ue&&Ue.scope.off(),Vn(null)};function Ko(e){return e.vnode.shapeFlag&4}let fn=!1;function La(e,t=!1,n=!1){t&&Dl(t);const{props:l,children:o}=e.vnode,i=Ko(e);ma(e,l,i,t),ka(e,o,n||t);const r=i?Fa(e,t):void 0;return t&&Dl(!1),r}function Fa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,la);const{setup:l}=n;if(l){ct();const o=e.setupContext=l.length>1?ja(e):null,i=gn(e),r=vn(l,e,0,[e.props,o]),d=js(r);if(dt(),i(),(d||e.sp)&&!sn(e)&&bo(e),d){if(r.then(Ss,Ss),t)return r.then(h=>{Ps(e,h)}).catch(h=>{zn(h,e,0)});e.asyncDep=r}else Ps(e,r)}else qo(e)}function Ps(e,t,n){J(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=co(t)),qo(e)}function qo(e,t,n){const l=e.type;e.render||(e.render=l.render||at);{const o=gn(e);ct();try{sa(e)}finally{dt(),o()}}}const Na={get(e,t){return Oe(e,"get",""),e[t]}};function ja(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Na),slots:e.slots,emit:e.emit,expose:t}}function Zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(co(Sr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in on)return on[n](e)},has(t,n){return n in t||n in on}})):e.proxy}function Wa(e){return J(e)&&"__vccOpts"in e}const Pt=(e,t)=>Ir(e,t,fn),Ha="3.5.39";/** +* @vue/runtime-dom v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let El;const Ds=typeof window<"u"&&window.trustedTypes;if(Ds)try{El=Ds.createPolicy("vue",{createHTML:e=>e})}catch{}const Jo=El?e=>El.createHTML(e):e=>e,Ka="http://www.w3.org/2000/svg",qa="http://www.w3.org/1998/Math/MathML",vt=typeof document<"u"?document:null,Es=vt&&vt.createElement("template"),Ja={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 o=t==="svg"?vt.createElementNS(Ka,e):t==="mathml"?vt.createElementNS(qa,e):n?vt.createElement(e,{is:n}):vt.createElement(e);return e==="select"&&l&&l.multiple!=null&&o.setAttribute("multiple",l.multiple),o},createText:e=>vt.createTextNode(e),createComment:e=>vt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>vt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,o,i){const r=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Es.innerHTML=Jo(l==="svg"?`${e}`:l==="mathml"?`${e}`:e);const d=Es.content;if(l==="svg"||l==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ga=Symbol("_vtc");function za(e,t,n){const l=e[Ga];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ts=Symbol("_vod"),Ya=Symbol("_vsh"),Qa=Symbol(""),Xa=/(?:^|;)\s*display\s*:/;function Za(e,t,n){const l=e.style,o=we(n);let i=!1;if(n&&!o){if(t)if(we(t))for(const r of t.split(";")){const d=r.slice(0,r.indexOf(":")).trim();n[d]==null&&Zt(l,d,"")}else for(const r in t)n[r]==null&&Zt(l,r,"");for(const r in n){r==="display"&&(i=!0);const d=n[r];d!=null?tu(e,r,!we(t)&&t?t[r]:void 0,d)||Zt(l,r,d):Zt(l,r,"")}}else if(o){if(t!==n){const r=l[Qa];r&&(n+=";"+r),l.cssText=n,i=Xa.test(n)}}else t&&e.removeAttribute("style");Ts in e&&(e[Ts]=i?l.display:"",e[Ya]&&(l.display="none"))}const Os=/\s*!important$/;function Zt(e,t,n){if(W(n))n.forEach(l=>Zt(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=eu(e,t);Os.test(n)?e.setProperty(Bt(l),n.replace(Os,""),"important"):e[l]=n}}const Is=["Webkit","Moz","ms"],gl={};function eu(e,t){const n=gl[t];if(n)return n;let l=Xe(t);if(l!=="filter"&&l in e)return gl[t]=l;l=Ks(l);for(let o=0;o_l||(ru.then(()=>_l=0),_l=Date.now());function uu(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;const o=n.value;if(W(o)){const i=l.stopImmediatePropagation;l.stopImmediatePropagation=()=>{i.call(l),l._stopped=!0};const r=o.slice(),d=[l];for(let h=0;he.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,cu=(e,t,n,l,o,i)=>{const r=o==="svg";t==="class"?za(e,l,r):t==="style"?Za(e,n,l):Nn(t)?jn(t)||lu(e,t,n,l,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):du(e,t,l,r))?($s(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ms(e,t,l,r,i,t!=="value")):e._isVueCE&&(fu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!we(l)))?$s(e,Xe(t),l,i,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Ms(e,t,l,r))};function du(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Bs(t)&&J(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Bs(t)&&we(n)?!1:t in e}function fu(e,t){const n=e._def.props;if(!n)return!1;const l=Xe(t);return Array.isArray(n)?n.some(o=>Xe(o)===l):Object.keys(n).some(o=>Xe(o)===l)}const Ln=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>Tn(t,n):t};function pu(e){e.target.composing=!0}function Us(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Kt=Symbol("_assign");function Vs(e,t,n){return t&&(e=e.trim()),n&&(e=Kn(e)),e}const L={created(e,{modifiers:{lazy:t,trim:n,number:l}},o){e[Kt]=Ln(o);const i=l||o.props&&o.props.type==="number";Mt(e,t?"change":"input",r=>{r.target.composing||e[Kt](Vs(e.value,n,i))}),(n||i)&&Mt(e,"change",()=>{e.value=Vs(e.value,n,i)}),t||(Mt(e,"compositionstart",pu),Mt(e,"compositionend",Us),Mt(e,"change",Us))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:o,number:i}},r){if(e[Kt]=Ln(r),e.composing)return;const d=(i||e.type==="number")&&!/^0\d/.test(e.value)?Kn(e.value):e.value,h=t??"";if(d===h)return;const m=e.getRootNode();(m instanceof Document||m instanceof ShadowRoot)&&m.activeElement===e&&e.type!=="range"&&(l&&t===n||o&&e.value.trim()===h)||(e.value=h)}},Lt={deep:!0,created(e,{value:t,modifiers:{number:n}},l){const o=Wn(t);Mt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?Kn(Fn(r)):Fn(r));e[Kt](e.multiple?o?new Set(i):i:i[0]),e._assigning=!0,po(()=>{e._assigning=!1})}),e[Kt]=Ln(l)},mounted(e,{value:t}){Ls(e,t)},beforeUpdate(e,t,n){e[Kt]=Ln(n)},updated(e,{value:t}){e._assigning||Ls(e,t)}};function Ls(e,t){const n=e.multiple,l=W(t);if(!(n&&!l&&!Wn(t))){for(let o=0,i=e.options.length;oString(m)===String(d)):r.selected=sr(t,d)>-1}else r.selected=t.has(d);else if(hn(Fn(r),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Fn(e){return"_value"in e?e._value:e.value}const hu=Ee({patchProp:cu},Ja);let Fs;function vu(){return Fs||(Fs=xa(hu))}const gu=((...e)=>{const t=vu().createApp(...e),{mount:n}=t;return t.mount=l=>{const o=mu(l);if(!o)return;const i=t._component;!J(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,_u(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t});function _u(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function mu(e){return we(e)?document.querySelector(e):e}const yu="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",T={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,workflowBranches:e=>`workflows/${e}/branches`,workflowSwitchBranch:e=>`workflows/${e}/switch-branch`,workflowHistory:e=>`workflows/${e}/history`,node:e=>`nodes/${e}`,nodeGenerate:e=>`nodes/${e}/generate`,nodeRetry:e=>`nodes/${e}/retry`,nodeComplete:e=>`nodes/${e}/complete`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeReview:e=>`nodes/${e}/review`,nodeImages:e=>`nodes/${e}/images`,workflowReview:e=>`workflows/${e}/review`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",settingsImport:"settings/import",settingsSnapshots:"settings/snapshots",settingsRollback:"settings/rollback",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materialCategory:e=>`material-categories/${e}`,materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeProvider:"api-discovery/probe-provider",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class bu extends Error{constructor(n,l,o={}){super(l);ol(this,"code");ol(this,"details");this.name="ApiClientError",this.code=n,this.details=o}}async function se(e,t){return Qe(e,{method:"GET",query:t})}async function Y(e,t){return Qe(e,{method:"POST",body:t})}async function Qe(e,t={}){const l=await(await fetch(wu(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 bu(l.error_code,l.message,l.details);return l.data}function wu(e,t){const n=e.replace(/^\/+/,""),l=new URL(`${yu}/${n}`,window.location.origin);for(const[o,i]of Object.entries(t??{}))i!==void 0&&l.searchParams.set(o,String(i));return`${l.pathname}${l.search}`}const ku={class:"web-shell"},Cu={class:"sidebar"},xu={class:"brand"},Su=["onClick"],Pu={class:"workspace"},Du={class:"topbar"},Eu={class:"actions"},Tu=["disabled"],Ou={key:0,class:"notice error"},Iu={key:1,class:"notice"},Au={key:0,class:"dashboard-grid"},Mu={key:1,class:"list-view"},$u={class:"form-grid"},Ru={class:"wide-field"},Bu=["disabled"],Uu=["disabled"],Vu={key:0},Lu={key:1,class:"form-grid"},Fu={class:"wide-field"},Nu={class:"wide-field"},ju={class:"wide-field"},Wu={class:"wide-field"},Hu={class:"wide-field"},Ku=["disabled"],qu=["disabled"],Ju={class:"inline-actions"},Gu={class:"badge"},zu=["disabled","onClick"],Yu=["disabled","onClick"],Qu={key:0,class:"empty"},Xu={key:2,class:"split-view"},Zu={class:"list-view"},ec={class:"form-grid"},tc=["disabled"],nc={class:"inline-actions"},lc={class:"badge"},sc=["disabled","onClick"],oc=["disabled","onClick"],ic=["disabled","onClick"],rc=["disabled","onClick"],ac={key:0,class:"empty"},uc={key:0,class:"editor-panel"},cc={class:"form-grid"},dc=["disabled"],fc=["disabled","onClick"],pc={class:"list-view"},hc={class:"inline-actions"},vc=["disabled"],gc={class:"form-grid"},_c={class:"wide-field"},mc={class:"wide-field"},yc={class:"wide-field"},bc=["disabled"],wc=["disabled"],kc={class:"form-grid"},Cc={class:"wide-field"},xc=["disabled"],Sc=["disabled"],Pc={class:"inline-actions"},Dc={class:"badge"},Ec=["disabled","onClick"],Tc=["disabled","onClick"],Oc=["disabled","onClick"],Ic=["disabled","onClick"],Ac={key:0,class:"empty"},Mc={class:"inline-actions"},$c={key:0,class:"badge"},Rc=["disabled","onClick"],Bc=["disabled","onClick"],Uc=["disabled","onClick"],Vc=["disabled","onClick"],Lc=["disabled","onClick"],Fc=["disabled","onClick"],Nc={key:0,class:"empty"},jc={key:0},Wc={key:1},Hc={class:"editor-panel"},Kc={key:0,class:"empty"},qc={key:2,class:"editor-panel"},Jc={key:3},Gc={key:3,class:"split-view"},zc={class:"list-view"},Yc={class:"form-grid"},Qc=["disabled"],Xc=["disabled"],Zc={class:"inline-actions"},ed=["disabled","onClick"],td=["disabled","onClick"],nd={key:0,class:"empty"},ld={class:"list-view"},sd={class:"inline-actions"},od=["disabled"],id={class:"form-grid"},rd={value:""},ad=["value"],ud=["disabled"],cd=["disabled"],dd={class:"inline-actions"},fd={class:"badge"},pd=["disabled","onClick"],hd=["disabled","onClick"],vd=["disabled","onClick"],gd=["disabled","onClick"],_d={key:0,class:"empty"},md={key:0},yd={key:4,class:"list-view"},bd=["disabled"],wd={class:"form-grid"},kd={value:""},Cd=["value"],xd=["disabled"],Sd={class:"inline-actions"},Pd=["disabled","onClick"],Dd={key:0,class:"empty"},Ed={key:0},Td={class:"form-grid"},Od=["disabled"],Id={key:1},Ad={key:5,class:"list-view"},Md={class:"inline-actions"},$d=["disabled"],Rd=["disabled"],Bd={class:"form-grid"},Ud={value:""},Vd=["value"],Ld={value:""},Fd=["value"],Nd={value:""},jd=["value"],Wd=["disabled"],Hd={class:"inline-actions"},Kd={class:"badge"},qd=["onClick"],Jd=["onClick"],Gd=["disabled","onClick"],zd={key:0,class:"empty"},Yd={key:0,class:"editor-panel"},Qd={key:6,class:"split-view"},Xd={class:"list-view"},Zd={class:"inline-actions"},ef=["disabled"],tf=["disabled"],nf={class:"form-grid"},lf=["disabled"],sf={key:0},of={class:"list-view"},rf={class:"inline-actions"},af={class:"badge"},uf=["disabled","onClick"],cf=["disabled","onClick"],df=["disabled","onClick"],ff={key:0,class:"empty"},pf={key:7,class:"logs-view"},hf={class:"split-view"},vf={class:"list-view"},gf={key:0,class:"empty"},_f={class:"list-view"},mf={class:"badge"},yf={key:0,class:"empty"},bf={class:"split-view"},wf={class:"list-view"},kf={key:0,class:"empty"},Cf={class:"list-view"},xf={class:"badge"},Sf={key:0,class:"empty"},Pf={class:"list-view"},Df={key:0,class:"empty"},Ef={key:8,class:"settings-view"},Tf={class:"toolbar"},Of=["disabled"],If=["disabled"],Af=["disabled"],Mf=["disabled"],$f=["disabled"],Rf=["disabled"],Bf=["disabled"],Uf={class:"settings-sections"},Vf={class:"editor-panel"},Lf={class:"editor-panel"},Ff=["disabled"],Nf={class:"editor-panel"},jf=["disabled","onClick"],Wf={class:"split-view"},Hf={class:"list-view"},Kf={class:"list-view"},qf={class:"inspector"},Jf=Hr({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",generate:"生成",adopt:"采纳",select:"选择",unselect:"取选",recognize:"识别",confirm:"确认",edit:"编辑",update:"更新",name:"名称",identity:"身份",personality:"性格",hairColor:"发色",hairstyle:"发型",eyeColor:"眼色",description:"描述",basePrompt:"基础提示词",appearancePrompt:"外观提示词",stylePrompt:"风格提示词",negativePrompt:"反向提示词",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialUpdated:"素材已更新",materialArchived:"素材已归档",importToWardrobe:"加入衣橱",delete:"删除",wardrobeCategory:"衣橱分类",season:"季节",style:"风格",selectMaterial:"选择素材",wardrobeImported:"衣橱条目已加入",wardrobeDeleted:"衣橱条目已删除",dailyOutfit:"每日穿搭",categories:"分类",mood:"心情",weather:"天气",keywords:"关键词",outfitGenerated:"每日穿搭已生成",dashboard:"运行概览",profiles:"角色",workflows:"工作流",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",profileCreated:"角色已创建",profileUpdated:"角色已更新",profileDeleted:"角色已删除",emptyProfiles:"暂无角色",workflowList:"工作流列表",workflowType:"工作流类型",workflowCreated:"工作流已创建",emptyWorkflows:"暂无工作流",nodes:"节点",nodeKey:"NodeKey",nodeTitle:"节点标题",nodeType:"节点类型",status:"状态",nodeCreated:"节点已创建",nodeUpdated:"节点已更新",nodeQueued:"节点已重新入队",nodeCompleted:"节点已完成",images:"图片",branches:"分支",branchName:"分支名",switchBranch:"切换分支",history:"历史",review:"评审",reviewResult:"评审结果",emptyImages:"暂无图片",emptyHistory:"暂无历史",modelRoute:"模型路由",prompt:"提示词",generationQueued:"生成已入队",branchCreated:"分支已创建",imageArchived:"图片已归档",imageDeleted:"图片已删除",currentBranch:"当前分支",materialCategories:"素材分类",categoryType:"分类类型",sortOrder:"排序",categoryCreated:"分类已创建",categoryUpdated:"分类已更新",categoryDeleted:"分类已删除",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",filter:"筛选",detail:"详情",jobDetail:"任务详情",allStatuses:"全部状态",allProfiles:"全部角色",allWorkflows:"全部工作流",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",probeProvider:"探测 Provider",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",importSettings:"导入设置",importDone:"设置已导入",importDraftInvalid:"导入 JSON 格式无效",snapshots:"配置快照",loadSnapshots:"加载快照",rollback:"回滚",rollbackDone:"配置已回滚",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},n=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"workflows",label:t.workflows},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],l=F("dashboard"),o=F(null),i=F(null),r=F(null),d=F([]),h=F(null),m=F([]),_=F([]),y=F(null),O=F(""),A=F([]),Z=F(null),N=F(null),he=F(null),de=F(null),H=F(null),re=F(null),U=F([]),fe=F(null),Ae=F([]),Me=F([]),Ne=F([]),ft=F(null),_e=F({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Ve=F(null),pt=F(""),nt=F(""),kt=F([]),Ct=F(null),ke=F(null),B=F({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),ee=F(null),Q=F({profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}),je=F({display_name:"",workflow_type:"single_image"}),Le=F({branch_name:""}),K=F({node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}),Ke=F({model_route:"",prompt:"",negative_prompt:""}),Ye=F({status:"",profile_id:"",workflow_id:""}),ue=F({material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}),ye=F({category_id:"",name:"",category_type:"material",sort_order:0}),me=F({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),Te=F({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),Tt=F(null),xe=F({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),Gt=F(null),c=F(""),g=F(!0),v=F(""),C=F(""),b=Pt(()=>{var p,f;return((f=(p=r.value)==null?void 0:p.items[0])==null?void 0:f.profile_id)??""}),w=Pt(()=>{var p,f;return((f=(p=r.value)==null?void 0:p.items[0])==null?void 0:f.name)??t.noProfile}),E=Pt(()=>{var f;const p=(f=i.value)==null?void 0:f.queue;return p?p.pending+p.running+p.failed+p.dead_letter:0}),D=Pt(()=>{var p;return((p=fe.value)==null?void 0:p.items.filter(f=>f.recognition_status!=="confirmed").length)??0}),P=Pt(()=>{var p;return(((p=fe.value)==null?void 0:p.items)??[]).filter(f=>f.recognition_status==="confirmed")}),k=Pt(()=>{var p;return((p=h.value)==null?void 0:p.nodes.find(f=>f.node_id===O.value))??null}),V=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],I=Pt(()=>({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]);Co(M);async function M(){var p,f;g.value=!0,C.value="";try{const[q,le,Pe,St,bn,zt,wn,kn,Cn,xn,Sn]=await Promise.all([se(T.uiBootstrap),se(T.dashboardSummary),se(T.profiles,{page:1,page_size:20}),se(T.jobs,{page:1,page_size:20}),se(T.settingsSchema),se(T.settingsCurrent),se(T.storageStatus),se(T.materialCategories),se(T.materials,{page:1,page_size:24}),se(T.apiDiscoveryDialects),se(T.apiDiscoveryCapabilities)]);o.value=q,i.value=le,r.value=Pe,N.value=St,de.value=bn,H.value=zt,Ut(zt.config),re.value=wn,U.value=kn,fe.value=Cn,Me.value=xn,Ne.value=Sn,await ne((p=Pe.items[0])==null?void 0:p.profile_id),await be((f=Pe.items[0])==null?void 0:f.profile_id),await j()}catch(q){C.value=q instanceof Error?q.message:t.loadFailed}finally{g.value=!1}}async function j(){const[p,f,q,le,Pe]=await Promise.allSettled([se(T.generationLogs,{limit:12}),se(T.workflowLogs,{limit:12}),se(T.errorLogs,{limit:12}),se(T.integrationLogs,{limit:12}),se(T.auditLogs,{limit:12})]);_e.value={generation:G(p),workflows:G(f),errors:G(q),integrations:G(le),audit:G(Pe)}}function G(p){return p.status==="fulfilled"?p.value:[]}async function ae(){N.value=await se(T.jobs,{status:Ye.value.status||void 0,profile_id:Ye.value.profile_id||void 0,workflow_id:Ye.value.workflow_id||void 0,page:1,page_size:20})}async function ne(p){if(!p){Ae.value=[];return}Ae.value=await se(T.wardrobe(p))}async function be(p){var le,Pe;if(!p){d.value=[],h.value=null,m.value=[],_.value=[],O.value="",A.value=[];return}d.value=await se(T.profileWorkflows(p));const f=(le=h.value)==null?void 0:le.workflow.workflow_id,q=d.value.some(St=>St.workflow_id===f)?f:(Pe=d.value[0])==null?void 0:Pe.workflow_id;q?await Ce(q):h.value=null}async function Ce(p){var Pe;const f=await se(T.workflow(p));h.value=f;const q=O.value,le=f.nodes.some(St=>St.node_id===q)?q:f.workflow.current_node_id||((Pe=f.nodes[0])==null?void 0:Pe.node_id);le?await We(le):(O.value="",A.value=[]),await qe(p)}async function We(p){O.value=p,A.value=await se(T.nodeImages(p))}async function qe(p){const[f,q]=await Promise.all([se(T.workflowBranches(p)),se(T.workflowHistory(p))]);m.value=f,_.value=q}async function Se(){var f;const p=(f=h.value)==null?void 0:f.workflow.workflow_id;p&&await Ce(p)}async function $(p,f,q=!0){v.value=p,C.value="";try{const le=await f();c.value=`${p}${t.complete}`,p===t.exportSettings&&(c.value=`${t.exportDone}: ${!!le.redacted}`),q&&await M()}catch(le){C.value=le instanceof Error?le.message:`${p}${t.failed}`}finally{v.value=""}}function $e(p){return $(t.retry,()=>Y(T.jobRetry(p)))}function Je(p){return $(t.cancel,()=>Y(T.jobCancel(p)))}function _n(p){return $(t.detail,async()=>(he.value=await se(T.job(p)),he.value),!1)}function mn(){B.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},ee.value=null}function Go(){return $(t.quickDraft,async()=>(ee.value=await Y(T.quickProfileDraft,{questionnaire:{name:B.value.name,identity:B.value.identity,personality:xt(B.value.personality),hair_color:B.value.hair_color,hairstyle:B.value.hairstyle,eye_color:B.value.eye_color,style:B.value.style,clothing_keywords:xt(B.value.clothing_keywords)}}),ee.value),!1)}function zo(){var f;const p=(f=ee.value)==null?void 0:f.profile_preview;return $(t.create,async()=>{const q=await Y(T.profiles,{name:(p==null?void 0:p.name)||B.value.name,description:B.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 mn(),c.value=t.profileCreated,q})}function Yo(p){return $(t.delete,async()=>{const f=await Qe(T.profile(p),{method:"DELETE"});return c.value=t.profileDeleted,f})}function Kl(){Q.value={profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}}function Qo(p){Q.value={profile_id:p.profile_id,name:p.name,description:p.description??"",base_prompt:p.base_prompt??"",appearance_prompt:p.appearance_prompt??"",style_prompt:p.style_prompt??"",negative_prompt:p.negative_prompt??"",default_model_route:p.default_model_route??""}}function Xo(){return Q.value.profile_id?$(t.update,async()=>{const p=await Qe(T.profile(Q.value.profile_id),{method:"PUT",body:{name:Q.value.name,description:Q.value.description||void 0,base_prompt:Q.value.base_prompt||void 0,appearance_prompt:Q.value.appearance_prompt||void 0,style_prompt:Q.value.style_prompt||void 0,negative_prompt:Q.value.negative_prompt||void 0,default_model_route:Q.value.default_model_route||void 0}});return Kl(),c.value=t.profileUpdated,p}):Promise.resolve()}function Zo(){const p=b.value;return p?$(t.create,async()=>{const f=await Y(T.profileWorkflows(p),{display_name:je.value.display_name,workflow_type:je.value.workflow_type});return je.value.display_name="",h.value=f,c.value=t.workflowCreated,f}):Promise.resolve()}function ei(p){return $(t.start,()=>Y(T.workflowStart(p)))}function ti(p){return $(t.cancel,()=>Y(T.workflowCancel(p)))}function ni(p){return $(t.archive,()=>Y(T.workflowArchive(p)))}function li(){var f;const p=(f=h.value)==null?void 0:f.workflow;return!p||!Le.value.branch_name?Promise.resolve():$(t.branches,async()=>{const q=await Y(T.workflowBranches(p.workflow_id),{branch_name:Le.value.branch_name,base_branch_name:p.current_branch,base_node_id:O.value||p.current_node_id,copy_nodes:!0});return Le.value.branch_name="",await Se(),c.value=t.branchCreated,q},!1)}function si(p){var q;const f=(q=h.value)==null?void 0:q.workflow.workflow_id;return f?$(t.switchBranch,async()=>{const le=await Y(T.workflowSwitchBranch(f),{branch_name:p});return await Se(),le},!1):Promise.resolve()}function el(){K.value={node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}}function oi(p){K.value={node_id:p.node_id,node_key:p.node_key,title:p.title,description:p.description??"",node_type:p.node_type,status:p.status,prompt:p.prompt??"",negative_prompt:p.negative_prompt??"",model_route:p.model_route??""}}function ii(){var q;const p=(q=h.value)==null?void 0:q.workflow.workflow_id;if(!p||!K.value.node_key||!K.value.title)return Promise.resolve();const f={node_key:K.value.node_key,title:K.value.title,description:K.value.description||void 0,node_type:K.value.node_type||"generation",status:K.value.status||"pending",prompt:K.value.prompt||void 0,negative_prompt:K.value.negative_prompt||void 0,model_route:K.value.model_route||void 0};return K.value.node_id?$(t.update,async()=>{const le=await Qe(T.node(K.value.node_id),{method:"PUT",body:f});return el(),await Se(),c.value=t.nodeUpdated,le},!1):$(t.create,async()=>{const le=await Y(T.workflowNodes(p),f);return el(),await Se(),c.value=t.nodeCreated,le},!1)}function ri(){var f;const p=(f=h.value)==null?void 0:f.workflow.workflow_id;return p?$(t.review,async()=>(y.value=await se(T.workflowReview(p)),y.value),!1):Promise.resolve()}function ai(){const p=O.value;return p?$(t.review,async()=>(y.value=await se(T.nodeReview(p)),y.value),!1):Promise.resolve()}function ui(){const p=O.value;return p?$(t.generate,async()=>(Z.value=await Y(T.nodeGenerate(p),{model_route:Ke.value.model_route||void 0,prompt:Ke.value.prompt||void 0,negative_prompt:Ke.value.negative_prompt||void 0}),await Se(),c.value=t.generationQueued,Z.value),!1):Promise.resolve()}function ci(p){return $(t.retry,async()=>{const f=await Y(T.nodeRetry(p));return await Se(),c.value=t.nodeQueued,f},!1)}function di(p){return $(t.complete,async()=>{const f=await Y(T.nodeComplete(p));return await Se(),c.value=t.nodeCompleted,f},!1)}function fi(p){const f=O.value;return f?$(t.select,async()=>{const q=await Y(T.nodeSelectImage(f),{image_id:p});return await Se(),q},!1):Promise.resolve()}function pi(p){const f=O.value;return f?$(t.adopt,async()=>{var le;const q=await Y(T.nodeAdoptImage(f),{image_id:p,title:(le=k.value)==null?void 0:le.title});return await Se(),q},!1):Promise.resolve()}function hi(p){return $(t.unselect,async()=>{const f=await Y(T.imageUnselect(p));return await Se(),f},!1)}function vi(p){return $(t.archive,async()=>{const f=await Y(T.imageArchive(p));return await Se(),c.value=t.imageArchived,f},!1)}function gi(p){return $(t.delete,async()=>{const f=await Qe(T.image(p),{method:"DELETE"});return await Se(),c.value=t.imageDeleted,f},!1)}function _i(){return $(t.moveFailed,()=>Y(T.jobDeadLetterMoveFailed,{limit:20}))}function mi(){return $(t.retryDead,()=>Y(T.jobDeadLetterRetry,{limit:20}))}function yi(){var f;const p=((f=Me.value[0])==null?void 0:f.dialect)??"unknown";return $(t.safeProbe,()=>Y(T.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:p,capabilities:{supports:["text_to_image"]}}))}function bi(){var f;const p=((f=Me.value[0])==null?void 0:f.dialect)??"unknown";return $(t.probeProvider,()=>Y(T.apiDiscoveryProbeProvider,{provider_id:xe.value.provider_id||"local-preview",model_id:xe.value.model_id||"metadata-only",dialect:p,capabilities:{supports:xt(xe.value.required_capabilities)}}))}function wi(){return $(t.validatePlan,async()=>(Gt.value=await Y(T.apiDiscoveryValidateRenderPlan,{provider_id:xe.value.provider_id,model_id:xe.value.model_id,required_capabilities:xt(xe.value.required_capabilities)}),Gt.value),!1)}function tl(p,f){return $(t.discovery,()=>Y(T.apiDiscoveryManualOverride,{provider_id:p.provider_id,model_id:p.model_id,dialect:p.dialect,status:f,capabilities:p.capabilities}))}function ki(){const p=b.value;return p?$(t.matchWardrobe,async()=>(ft.value=await Y(T.wardrobeMatch(p),{tags:["daily"]}),ft.value),!1):Promise.resolve()}function Ci(){me.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function xi(){const p=b.value;return p?$(t.importToWardrobe,async()=>{const f=await Y(T.wardrobeImportMaterial(p),{material_id:me.value.material_id,wardrobe_category:me.value.wardrobe_category,tags:xt(me.value.tags),season:me.value.season||void 0,style:me.value.style||void 0});return Ci(),c.value=t.wardrobeImported,f}):Promise.resolve()}function Si(p){const f=b.value;return f?$(t.delete,async()=>{const q=await Qe(T.wardrobeItem(f,p),{method:"DELETE"});return c.value=t.wardrobeDeleted,q}):Promise.resolve()}function Pi(){const p=b.value;return p?$(t.dailyOutfit,async()=>(Tt.value=await Y(T.privateCompanionDailyOutfit,{profile_id:p,categories:xt(Te.value.categories),mood:Te.value.mood,weather:Te.value.weather,keywords:xt(Te.value.keywords),request_source:"astrbot_plugin_private_companion"}),c.value=t.outfitGenerated,Tt.value),!1):Promise.resolve()}function Di(){return $(t.reload,async()=>{var f;const p=await Y(T.settingsReload);return H.value={config_path:((f=H.value)==null?void 0:f.config_path)??"***PATH***",config:p.config},Ut(p.config),p},!1)}function Ei(){return $(t.exportSettings,()=>se(T.settingsExport),!1)}function Ut(p=(f=>(f=H.value)==null?void 0:f.config)()??{}){pt.value=JSON.stringify(p,null,2),Ct.value=null,ke.value=null}function nl(){try{const p=JSON.parse(pt.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 Ti(){try{const p=JSON.parse(nt.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 Oi(){return $(t.validate,async()=>(Ct.value=await Y(T.settingsValidate,{config:nl()}),Ct.value),!1)}function Ii(){return $(t.diff,async()=>(ke.value=await Y(T.settingsDiff,{config:nl()}),ke.value),!1)}function Ai(){return $(t.save,async()=>{var f;const p=await Y(T.settingsSave,{config:nl()});return H.value={config_path:((f=H.value)==null?void 0:f.config_path)??"***PATH***",config:p.config},Ut(p.config),c.value=t.settingsSaved,p},!1)}function Mi(){return $(t.importSettings,async()=>{var f;const p=await Y(T.settingsImport,{config:Ti()});return H.value={config_path:((f=H.value)==null?void 0:f.config_path)??"***PATH***",config:p.config},Ut(p.config),nt.value="",c.value=t.importDone,p},!1)}function ql(){return $(t.loadSnapshots,async()=>(kt.value=await se(T.settingsSnapshots,{limit:20}),kt.value),!1)}function $i(p){return $(t.rollback,async()=>{var q;const f=await Y(T.settingsRollback,{snapshot_id:p});return H.value={config_path:((q=H.value)==null?void 0:q.config_path)??"***PATH***",config:f.config},Ut(f.config),await ql(),c.value=t.rollbackDone,f},!1)}function Ri(){var f,q;const p=(q=(f=fe.value)==null?void 0:f.items.find(le=>{var Pe;return(Pe=le.image_uri)==null?void 0:Pe.startsWith("storage://")}))==null?void 0:q.image_uri;return p?$(t.signMaterial,async()=>(Ve.value=await se(T.mediaSign,{uri:p}),Ve.value),!1):(c.value=t.noSignableMaterial,Promise.resolve())}function Bi(p){return p!=null&&p.startsWith("storage://")?$(t.signMaterial,async()=>(Ve.value=await se(T.mediaSign,{uri:p}),Ve.value),!1):(c.value=t.noSignableMaterial,Promise.resolve())}function yn(){ye.value={category_id:"",name:"",category_type:"material",sort_order:0}}function Ui(p){ye.value={category_id:p.category_id,name:p.name,category_type:p.category_type,sort_order:p.sort_order}}function Vi(){const p={name:ye.value.name,category_type:ye.value.category_type,sort_order:Number(ye.value.sort_order)||0};return ye.value.category_id?$(t.update,async()=>{const f=await Qe(T.materialCategory(ye.value.category_id),{method:"PUT",body:p});return yn(),c.value=t.categoryUpdated,f}):$(t.create,async()=>{const f=await Y(T.materialCategories,p);return yn(),c.value=t.categoryCreated,f})}function Li(p){return $(t.delete,async()=>{const f=await Qe(T.materialCategory(p),{method:"DELETE"});return ye.value.category_id===p&&yn(),c.value=t.categoryDeleted,f})}function ll(){ue.value={material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}}function Fi(){const p={display_name:ue.value.display_name,image_uri:ue.value.image_uri||void 0,thumbnail_uri:ue.value.image_uri||void 0,category_id:ue.value.category_id||void 0,tags:xt(ue.value.tags),prompt:ue.value.prompt||void 0,negative_prompt:ue.value.negative_prompt||void 0,recognition_status:ue.value.image_uri?"pending_recognition":"pending_upload"};return ue.value.material_id?$(t.update,async()=>{const f=await Qe(T.material(ue.value.material_id),{method:"PUT",body:p});return ll(),c.value=t.materialUpdated,f}):$(t.create,async()=>{const f=await Y(T.materials,p);return ll(),c.value=t.materialCreated,f})}function Ni(p){ue.value={material_id:p.material_id,display_name:p.display_name,image_uri:p.image_uri??"",tags:p.tags.join(", "),category_id:p.category_id??"",prompt:p.prompt??"",negative_prompt:p.negative_prompt??""}}function ji(p){return $(t.recognize,()=>Y(T.materialRecognize(p)))}function Wi(p){return $(t.confirm,()=>Y(T.materialConfirm(p.material_id),{display_name:p.display_name,prompt:p.prompt,negative_prompt:p.negative_prompt,tags:p.tags}))}function Hi(p){return $(t.archive,async()=>{const f=await Qe(T.material(p),{method:"DELETE"});return c.value=t.materialArchived,f})}function xt(p){return p.split(",").map(f=>f.trim()).filter(Boolean)}function sl(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 Jl(p){var f,q;return((q=(f=re.value)==null?void 0:f.roots.find(le=>le.uri_prefix===p))==null?void 0:q.bytes)??0}return(p,f)=>{var q,le,Pe,St,bn,zt,wn,kn,Cn,xn,Sn,Gl,zl,Yl,Ql,Xl,Zl,es,ts,ns,ls,ss,os,is,rs,as;return x(),S("main",ku,[s("aside",Cu,[s("div",xu,[s("strong",null,a(((q=o.value)==null?void 0:q.display_name)??"ImageStudio"),1),s("span",null,a(((le=o.value)==null?void 0:le.dashboard_user)??"AstrBot"),1)]),s("nav",null,[(x(),S(X,null,ge(n,u=>s("button",{key:u.key,type:"button",class:Jn({active:l.value===u.key}),onClick:te=>l.value=u.key},a(u.label),11,Su)),64))])]),s("section",Pu,[s("header",Du,[s("div",null,[s("h1",null,a(I.value),1),s("p",null,a(((Pe=i.value)==null?void 0:Pe.plugin_status)??"loading")+" / "+a(c.value||t.waiting),1)]),s("div",Eu,[s("button",{type:"button",disabled:!!v.value,onClick:M},a(v.value||t.refresh),9,Tu)])]),C.value?(x(),S("section",Ou,a(C.value),1)):g.value?(x(),S("section",Iu,a(t.loading),1)):(x(),S(X,{key:2},[l.value==="dashboard"?(x(),S("section",Au,[s("article",null,[s("span",null,a(t.profiles),1),s("strong",null,a(((St=i.value)==null?void 0:St.active_profiles)??0),1)]),s("article",null,[s("span",null,a(t.jobs),1),s("strong",null,a(E.value),1)]),s("article",null,[s("span",null,a(t.materials),1),s("strong",null,a(((bn=fe.value)==null?void 0:bn.total)??0),1)]),s("article",null,[s("span",null,a(t.storage),1),s("strong",null,a(sl(((zt=re.value)==null?void 0:zt.total_bytes)??((wn=i.value)==null?void 0:wn.storage.total_bytes))),1)])])):z("",!0),l.value==="profiles"?(x(),S("section",Mu,[s("header",null,[s("h2",null,a(t.profileList),1),s("span",null,a(((kn=r.value)==null?void 0:kn.total)??0),1)]),s("div",$u,[s("label",null,[s("span",null,a(t.name),1),R(s("input",{"onUpdate:modelValue":f[0]||(f[0]=u=>B.value.name=u),type:"text"},null,512),[[L,B.value.name]])]),s("label",null,[s("span",null,a(t.identity),1),R(s("input",{"onUpdate:modelValue":f[1]||(f[1]=u=>B.value.identity=u),type:"text"},null,512),[[L,B.value.identity]])]),s("label",null,[s("span",null,a(t.personality),1),R(s("input",{"onUpdate:modelValue":f[2]||(f[2]=u=>B.value.personality=u),type:"text",placeholder:"calm, brave"},null,512),[[L,B.value.personality]])]),s("label",null,[s("span",null,a(t.hairColor),1),R(s("input",{"onUpdate:modelValue":f[3]||(f[3]=u=>B.value.hair_color=u),type:"text"},null,512),[[L,B.value.hair_color]])]),s("label",null,[s("span",null,a(t.hairstyle),1),R(s("input",{"onUpdate:modelValue":f[4]||(f[4]=u=>B.value.hairstyle=u),type:"text"},null,512),[[L,B.value.hairstyle]])]),s("label",null,[s("span",null,a(t.eyeColor),1),R(s("input",{"onUpdate:modelValue":f[5]||(f[5]=u=>B.value.eye_color=u),type:"text"},null,512),[[L,B.value.eye_color]])]),s("label",null,[s("span",null,a(t.stylePrompt),1),R(s("input",{"onUpdate:modelValue":f[6]||(f[6]=u=>B.value.style=u),type:"text"},null,512),[[L,B.value.style]])]),s("label",null,[s("span",null,a(t.tags),1),R(s("input",{"onUpdate:modelValue":f[7]||(f[7]=u=>B.value.clothing_keywords=u),type:"text",placeholder:"white blouse, ribbon"},null,512),[[L,B.value.clothing_keywords]])]),s("label",Ru,[s("span",null,a(t.description),1),R(s("input",{"onUpdate:modelValue":f[8]||(f[8]=u=>B.value.description=u),type:"text"},null,512),[[L,B.value.description]])]),s("button",{type:"button",disabled:!!v.value||!B.value.name,onClick:Go},a(t.quickDraft),9,Bu),s("button",{type:"button",disabled:!!v.value||!B.value.name,onClick:zo},a(t.create),9,Uu)]),ee.value?(x(),S("pre",Vu,a(JSON.stringify(ee.value,null,2)),1)):z("",!0),Q.value.profile_id?(x(),S("div",Lu,[s("label",null,[s("span",null,a(t.name),1),R(s("input",{"onUpdate:modelValue":f[9]||(f[9]=u=>Q.value.name=u),type:"text"},null,512),[[L,Q.value.name]])]),s("label",null,[s("span",null,a(t.provider),1),R(s("input",{"onUpdate:modelValue":f[10]||(f[10]=u=>Q.value.default_model_route=u),type:"text"},null,512),[[L,Q.value.default_model_route]])]),s("label",Fu,[s("span",null,a(t.description),1),R(s("input",{"onUpdate:modelValue":f[11]||(f[11]=u=>Q.value.description=u),type:"text"},null,512),[[L,Q.value.description]])]),s("label",Nu,[s("span",null,a(t.basePrompt),1),R(s("input",{"onUpdate:modelValue":f[12]||(f[12]=u=>Q.value.base_prompt=u),type:"text"},null,512),[[L,Q.value.base_prompt]])]),s("label",ju,[s("span",null,a(t.appearancePrompt),1),R(s("input",{"onUpdate:modelValue":f[13]||(f[13]=u=>Q.value.appearance_prompt=u),type:"text"},null,512),[[L,Q.value.appearance_prompt]])]),s("label",Wu,[s("span",null,a(t.stylePrompt),1),R(s("input",{"onUpdate:modelValue":f[14]||(f[14]=u=>Q.value.style_prompt=u),type:"text"},null,512),[[L,Q.value.style_prompt]])]),s("label",Hu,[s("span",null,a(t.negativePrompt),1),R(s("input",{"onUpdate:modelValue":f[15]||(f[15]=u=>Q.value.negative_prompt=u),type:"text"},null,512),[[L,Q.value.negative_prompt]])]),s("button",{type:"button",disabled:!!v.value||!Q.value.name,onClick:Xo},a(t.update),9,Ku),s("button",{type:"button",disabled:!!v.value,onClick:Kl},a(t.reset),9,qu)])):z("",!0),s("ul",null,[(x(!0),S(X,null,ge(((Cn=r.value)==null?void 0:Cn.items)??[],u=>(x(),S("li",{key:u.profile_id},[s("div",null,[s("strong",null,a(u.name),1),s("small",null,a(u.profile_id),1)]),s("div",Ju,[s("span",Gu,a(u.status),1),s("button",{type:"button",disabled:!!v.value,onClick:te=>Qo(u)},a(t.edit),9,zu),s("button",{type:"button",disabled:!!v.value,onClick:te=>Yo(u.profile_id)},a(t.delete),9,Yu)])]))),128)),(xn=r.value)!=null&&xn.items.length?z("",!0):(x(),S("li",Qu,a(t.emptyProfiles),1))])])):z("",!0),l.value==="workflows"?(x(),S("section",Xu,[s("div",Zu,[s("header",null,[s("h2",null,a(w.value),1),s("span",null,a(d.value.length),1)]),s("div",ec,[s("label",null,[s("span",null,a(t.name),1),R(s("input",{"onUpdate:modelValue":f[16]||(f[16]=u=>je.value.display_name=u),type:"text"},null,512),[[L,je.value.display_name]])]),s("label",null,[s("span",null,a(t.workflowType),1),R(s("select",{"onUpdate:modelValue":f[17]||(f[17]=u=>je.value.workflow_type=u)},[...f[57]||(f[57]=[s("option",{value:"single_image"},"single_image",-1),s("option",{value:"character_gradual"},"character_gradual",-1),s("option",{value:"character_fast"},"character_fast",-1),s("option",{value:"quick_profile"},"quick_profile",-1)])],512),[[Lt,je.value.workflow_type]])]),s("button",{type:"button",disabled:!!v.value||!b.value||!je.value.display_name,onClick:Zo},a(t.create),9,tc)]),s("ul",null,[(x(!0),S(X,null,ge(d.value,u=>(x(),S("li",{key:u.workflow_id},[s("div",null,[s("strong",null,a(u.display_name),1),s("small",null,a(u.workflow_type)+" / "+a(u.workflow_id),1)]),s("div",nc,[s("span",lc,a(u.status),1),s("button",{type:"button",disabled:!!v.value,onClick:te=>Ce(u.workflow_id)},a(t.nodes),9,sc),s("button",{type:"button",disabled:!!v.value,onClick:te=>ei(u.workflow_id)},a(t.start),9,oc),s("button",{type:"button",disabled:!!v.value,onClick:te=>ti(u.workflow_id)},a(t.cancel),9,ic),s("button",{type:"button",disabled:!!v.value,onClick:te=>ni(u.workflow_id)},a(t.archive),9,rc)])]))),128)),d.value.length?z("",!0):(x(),S("li",ac,a(t.emptyWorkflows),1))]),h.value?(x(),S("section",uc,[s("header",null,[s("h2",null,a(t.branches),1),s("span",null,a(m.value.length),1)]),s("div",cc,[s("label",null,[s("span",null,a(t.branchName),1),R(s("input",{"onUpdate:modelValue":f[18]||(f[18]=u=>Le.value.branch_name=u),type:"text",placeholder:"alt_pose"},null,512),[[L,Le.value.branch_name]])]),s("button",{type:"button",disabled:!!v.value||!Le.value.branch_name,onClick:li},a(t.create),9,dc)]),s("ul",null,[(x(!0),S(X,null,ge(m.value,u=>(x(),S("li",{key:u.branch_id},[s("div",null,[s("strong",null,a(u.branch_name),1),s("small",null,a(u.base_branch_name??"main")+" / "+a(u.status),1)]),s("button",{type:"button",disabled:!!v.value,onClick:te=>si(u.branch_name)},a(t.switchBranch),9,fc)]))),128))])])):z("",!0)]),s("div",pc,[s("header",null,[s("h2",null,a(t.nodes),1),s("div",hc,[s("span",null,a(((Sn=h.value)==null?void 0:Sn.workflow.current_branch)??"main"),1),s("button",{type:"button",disabled:!!v.value||!h.value,onClick:ri},a(t.review),9,vc)])]),s("div",gc,[s("label",null,[s("span",null,a(t.nodeKey),1),R(s("input",{"onUpdate:modelValue":f[19]||(f[19]=u=>K.value.node_key=u),type:"text"},null,512),[[L,K.value.node_key]])]),s("label",null,[s("span",null,a(t.nodeTitle),1),R(s("input",{"onUpdate:modelValue":f[20]||(f[20]=u=>K.value.title=u),type:"text"},null,512),[[L,K.value.title]])]),s("label",null,[s("span",null,a(t.nodeType),1),R(s("input",{"onUpdate:modelValue":f[21]||(f[21]=u=>K.value.node_type=u),type:"text"},null,512),[[L,K.value.node_type]])]),s("label",null,[s("span",null,a(t.status),1),R(s("input",{"onUpdate:modelValue":f[22]||(f[22]=u=>K.value.status=u),type:"text"},null,512),[[L,K.value.status]])]),s("label",_c,[s("span",null,a(t.description),1),R(s("input",{"onUpdate:modelValue":f[23]||(f[23]=u=>K.value.description=u),type:"text"},null,512),[[L,K.value.description]])]),s("label",mc,[s("span",null,a(t.prompt),1),R(s("input",{"onUpdate:modelValue":f[24]||(f[24]=u=>K.value.prompt=u),type:"text"},null,512),[[L,K.value.prompt]])]),s("label",yc,[s("span",null,a(t.negativePrompt),1),R(s("input",{"onUpdate:modelValue":f[25]||(f[25]=u=>K.value.negative_prompt=u),type:"text"},null,512),[[L,K.value.negative_prompt]])]),s("label",null,[s("span",null,a(t.modelRoute),1),R(s("input",{"onUpdate:modelValue":f[26]||(f[26]=u=>K.value.model_route=u),type:"text"},null,512),[[L,K.value.model_route]])]),s("button",{type:"button",disabled:!!v.value||!K.value.node_key||!K.value.title,onClick:ii},a(K.value.node_id?t.update:t.create),9,bc),s("button",{type:"button",disabled:!!v.value,onClick:el},a(t.reset),9,wc)]),s("div",kc,[s("label",null,[s("span",null,a(t.modelRoute),1),R(s("input",{"onUpdate:modelValue":f[27]||(f[27]=u=>Ke.value.model_route=u),type:"text",placeholder:"image_low"},null,512),[[L,Ke.value.model_route]])]),s("label",null,[s("span",null,a(t.prompt),1),R(s("input",{"onUpdate:modelValue":f[28]||(f[28]=u=>Ke.value.prompt=u),type:"text"},null,512),[[L,Ke.value.prompt]])]),s("label",Cc,[s("span",null,a(t.negativePrompt),1),R(s("input",{"onUpdate:modelValue":f[29]||(f[29]=u=>Ke.value.negative_prompt=u),type:"text"},null,512),[[L,Ke.value.negative_prompt]])]),s("button",{type:"button",disabled:!!v.value||!O.value,onClick:ui},a(t.generate),9,xc),s("button",{type:"button",disabled:!!v.value||!O.value,onClick:ai},a(t.review),9,Sc)]),s("ul",null,[(x(!0),S(X,null,ge(((Gl=h.value)==null?void 0:Gl.nodes)??[],u=>(x(),S("li",{key:u.node_id},[s("div",null,[s("strong",null,a(u.title),1),s("small",null,a(u.node_key)+" / "+a(u.node_id),1)]),s("div",Pc,[s("span",null,a(u.branch_name),1),s("span",Dc,a(u.status),1),s("button",{type:"button",disabled:!!v.value,onClick:te=>oi(u)},a(t.edit),9,Ec),s("button",{type:"button",disabled:!!v.value,onClick:te=>ci(u.node_id)},a(t.retry),9,Tc),s("button",{type:"button",disabled:!!v.value,onClick:te=>di(u.node_id)},a(t.complete),9,Oc),s("button",{type:"button",disabled:!!v.value,onClick:te=>We(u.node_id)},a(t.images),9,Ic)])]))),128)),(zl=h.value)!=null&&zl.nodes.length?z("",!0):(x(),S("li",Ac,a(t.emptyWorkflows),1))]),s("ul",null,[(x(!0),S(X,null,ge(A.value,u=>(x(),S("li",{key:u.image_id},[s("div",null,[s("strong",null,a(u.image_id),1),s("small",null,a(u.thumbnail_uri??u.image_uri),1)]),s("div",Mc,[u.is_selected?(x(),S("span",$c,a(t.select),1)):z("",!0),s("button",{type:"button",disabled:!!v.value||u.is_selected||u.is_archived,onClick:te=>fi(u.image_id)},a(t.select),9,Rc),s("button",{type:"button",disabled:!!v.value||u.is_archived,onClick:te=>pi(u.image_id)},a(t.adopt),9,Bc),s("button",{type:"button",disabled:!!v.value||!(u.thumbnail_uri??u.image_uri).startsWith("storage://"),onClick:te=>Bi(u.thumbnail_uri??u.image_uri)},a(t.signMaterial),9,Uc),s("button",{type:"button",disabled:!!v.value||!u.is_selected,onClick:te=>hi(u.image_id)},a(t.unselect),9,Vc),s("button",{type:"button",disabled:!!v.value||u.is_archived,onClick:te=>vi(u.image_id)},a(t.archive),9,Lc),s("button",{type:"button",disabled:!!v.value,onClick:te=>gi(u.image_id)},a(t.delete),9,Fc)])]))),128)),A.value.length?z("",!0):(x(),S("li",Nc,a(t.emptyImages),1))]),Ve.value?(x(),S("pre",jc,a(JSON.stringify(Ve.value,null,2)),1)):z("",!0),Z.value?(x(),S("pre",Wc,a(JSON.stringify(Z.value,null,2)),1)):z("",!0),s("section",Hc,[s("header",null,[s("h2",null,a(t.history),1),s("span",null,a(_.value.length),1)]),s("ul",null,[(x(!0),S(X,null,ge(_.value,u=>(x(),S("li",{key:u.history_id},[s("div",null,[s("strong",null,a(u.action),1),s("small",null,a(u.title??u.node_id??u.workflow_id),1)]),s("span",null,a(u.branch_name),1)]))),128)),_.value.length?z("",!0):(x(),S("li",Kc,a(t.emptyHistory),1))])]),y.value?(x(),S("section",qc,[s("header",null,[s("h2",null,a(t.reviewResult),1),s("span",null,a(y.value.passed?t.support:t.unsupported),1)]),s("pre",null,a(JSON.stringify(y.value,null,2)),1)])):z("",!0),h.value?(x(),S("pre",Jc,a(JSON.stringify(h.value.workflow,null,2)),1)):z("",!0)])])):z("",!0),l.value==="materials"?(x(),S("section",Gc,[s("div",zc,[s("header",null,[s("h2",null,a(t.materialCategories),1),s("span",null,a(U.value.length),1)]),s("div",Yc,[s("label",null,[s("span",null,a(t.name),1),R(s("input",{"onUpdate:modelValue":f[30]||(f[30]=u=>ye.value.name=u),type:"text"},null,512),[[L,ye.value.name]])]),s("label",null,[s("span",null,a(t.categoryType),1),R(s("input",{"onUpdate:modelValue":f[31]||(f[31]=u=>ye.value.category_type=u),type:"text"},null,512),[[L,ye.value.category_type]])]),s("label",null,[s("span",null,a(t.sortOrder),1),R(s("input",{"onUpdate:modelValue":f[32]||(f[32]=u=>ye.value.sort_order=u),type:"number"},null,512),[[L,ye.value.sort_order,void 0,{number:!0}]])]),s("button",{type:"button",disabled:!!v.value||!ye.value.name,onClick:Vi},a(ye.value.category_id?t.update:t.create),9,Qc),s("button",{type:"button",disabled:!!v.value,onClick:yn},a(t.reset),9,Xc)]),s("ul",null,[(x(!0),S(X,null,ge(U.value,u=>(x(),S("li",{key:u.category_id},[s("div",null,[s("strong",null,a(u.name),1),s("small",null,a(u.category_type),1)]),s("div",Zc,[s("span",null,a(u.sort_order),1),s("button",{type:"button",disabled:!!v.value,onClick:te=>Ui(u)},a(t.edit),9,ed),s("button",{type:"button",disabled:!!v.value,onClick:te=>Li(u.category_id)},a(t.delete),9,td)])]))),128)),U.value.length?z("",!0):(x(),S("li",nd,a(t.emptyCategories),1))])]),s("div",ld,[s("header",null,[s("h2",null,a(t.materialItems),1),s("div",sd,[s("span",null,a(D.value)+" "+a(t.pendingConfirm),1),s("button",{type:"button",disabled:!!v.value,onClick:Ri},a(t.signFirstImage),9,od)])]),s("div",id,[s("label",null,[s("span",null,a(t.name),1),R(s("input",{"onUpdate:modelValue":f[33]||(f[33]=u=>ue.value.display_name=u),type:"text"},null,512),[[L,ue.value.display_name]])]),s("label",null,[s("span",null,a(t.imageUri),1),R(s("input",{"onUpdate:modelValue":f[34]||(f[34]=u=>ue.value.image_uri=u),type:"text",placeholder:"storage://materials/example.png"},null,512),[[L,ue.value.image_uri]])]),s("label",null,[s("span",null,a(t.category),1),R(s("select",{"onUpdate:modelValue":f[35]||(f[35]=u=>ue.value.category_id=u)},[s("option",rd,a(t.allCategories),1),(x(!0),S(X,null,ge(U.value,u=>(x(),S("option",{key:u.category_id,value:u.category_id},a(u.name),9,ad))),128))],512),[[Lt,ue.value.category_id]])]),s("label",null,[s("span",null,a(t.tags),1),R(s("input",{"onUpdate:modelValue":f[36]||(f[36]=u=>ue.value.tags=u),type:"text",placeholder:"daily, top"},null,512),[[L,ue.value.tags]])]),s("label",null,[s("span",null,a(t.prompt),1),R(s("input",{"onUpdate:modelValue":f[37]||(f[37]=u=>ue.value.prompt=u),type:"text"},null,512),[[L,ue.value.prompt]])]),s("label",null,[s("span",null,a(t.negativePrompt),1),R(s("input",{"onUpdate:modelValue":f[38]||(f[38]=u=>ue.value.negative_prompt=u),type:"text"},null,512),[[L,ue.value.negative_prompt]])]),s("button",{type:"button",disabled:!!v.value||!ue.value.display_name,onClick:Fi},a(ue.value.material_id?t.update:t.create),9,ud),s("button",{type:"button",disabled:!!v.value,onClick:ll},a(t.reset),9,cd)]),s("ul",null,[(x(!0),S(X,null,ge(((Yl=fe.value)==null?void 0:Yl.items)??[],u=>(x(),S("li",{key:u.material_id},[s("div",null,[s("strong",null,a(u.display_name),1),s("small",null,a(u.image_uri??t.noImage),1)]),s("div",dd,[s("span",fd,a(u.recognition_status),1),s("button",{type:"button",disabled:!!v.value,onClick:te=>Ni(u)},a(t.edit),9,pd),s("button",{type:"button",disabled:!!v.value,onClick:te=>ji(u.material_id)},a(t.recognize),9,hd),s("button",{type:"button",disabled:!!v.value||u.recognition_status==="confirmed",onClick:te=>Wi(u)},a(t.confirm),9,vd),s("button",{type:"button",disabled:!!v.value,onClick:te=>Hi(u.material_id)},a(t.archive),9,gd)])]))),128)),(Ql=fe.value)!=null&&Ql.items.length?z("",!0):(x(),S("li",_d,a(t.emptyMaterials),1))]),Ve.value?(x(),S("pre",md,a(JSON.stringify(Ve.value,null,2)),1)):z("",!0)])])):z("",!0),l.value==="wardrobe"?(x(),S("section",yd,[s("header",null,[s("h2",null,a(w.value),1),s("button",{type:"button",disabled:!b.value||!!v.value,onClick:ki},a(t.match),9,bd)]),s("div",wd,[s("label",null,[s("span",null,a(t.selectMaterial),1),R(s("select",{"onUpdate:modelValue":f[39]||(f[39]=u=>me.value.material_id=u)},[s("option",kd,a(t.selectMaterial),1),(x(!0),S(X,null,ge(P.value,u=>(x(),S("option",{key:u.material_id,value:u.material_id},a(u.display_name),9,Cd))),128))],512),[[Lt,me.value.material_id]])]),s("label",null,[s("span",null,a(t.wardrobeCategory),1),R(s("input",{"onUpdate:modelValue":f[40]||(f[40]=u=>me.value.wardrobe_category=u),type:"text"},null,512),[[L,me.value.wardrobe_category]])]),s("label",null,[s("span",null,a(t.tags),1),R(s("input",{"onUpdate:modelValue":f[41]||(f[41]=u=>me.value.tags=u),type:"text",placeholder:"daily, top"},null,512),[[L,me.value.tags]])]),s("label",null,[s("span",null,a(t.season),1),R(s("input",{"onUpdate:modelValue":f[42]||(f[42]=u=>me.value.season=u),type:"text"},null,512),[[L,me.value.season]])]),s("label",null,[s("span",null,a(t.style),1),R(s("input",{"onUpdate:modelValue":f[43]||(f[43]=u=>me.value.style=u),type:"text"},null,512),[[L,me.value.style]])]),s("button",{type:"button",disabled:!!v.value||!b.value||!me.value.material_id||!me.value.wardrobe_category,onClick:xi},a(t.importToWardrobe),9,xd)]),s("ul",null,[(x(!0),S(X,null,ge(Ae.value,u=>(x(),S("li",{key:u.wardrobe_item_id},[s("div",null,[s("strong",null,a(u.wardrobe_category),1),s("small",null,a(u.material_id)+" / "+a(u.tags.join(", ")||t.noTags),1)]),s("div",Sd,[s("span",null,a(u.usage_count),1),s("button",{type:"button",disabled:!!v.value,onClick:te=>Si(u.wardrobe_item_id)},a(t.delete),9,Pd)])]))),128)),Ae.value.length?z("",!0):(x(),S("li",Dd,a(t.emptyWardrobe),1))]),ft.value?(x(),S("pre",Ed,a(JSON.stringify(ft.value,null,2)),1)):z("",!0),s("div",Td,[s("label",null,[s("span",null,a(t.categories),1),R(s("input",{"onUpdate:modelValue":f[44]||(f[44]=u=>Te.value.categories=u),type:"text"},null,512),[[L,Te.value.categories]])]),s("label",null,[s("span",null,a(t.mood),1),R(s("input",{"onUpdate:modelValue":f[45]||(f[45]=u=>Te.value.mood=u),type:"text"},null,512),[[L,Te.value.mood]])]),s("label",null,[s("span",null,a(t.weather),1),R(s("input",{"onUpdate:modelValue":f[46]||(f[46]=u=>Te.value.weather=u),type:"text"},null,512),[[L,Te.value.weather]])]),s("label",null,[s("span",null,a(t.keywords),1),R(s("input",{"onUpdate:modelValue":f[47]||(f[47]=u=>Te.value.keywords=u),type:"text"},null,512),[[L,Te.value.keywords]])]),s("button",{type:"button",disabled:!!v.value||!b.value,onClick:Pi},a(t.dailyOutfit),9,Od)]),Tt.value?(x(),S("pre",Id,a(JSON.stringify(Tt.value,null,2)),1)):z("",!0)])):z("",!0),l.value==="jobs"?(x(),S("section",Ad,[s("header",null,[s("h2",null,a(t.jobs),1),s("div",Md,[s("button",{type:"button",disabled:!!v.value,onClick:_i},a(t.moveFailed),9,$d),s("button",{type:"button",disabled:!!v.value,onClick:mi},a(t.retryDead),9,Rd)])]),s("div",Bd,[s("label",null,[f[58]||(f[58]=s("span",null,"Status",-1)),R(s("select",{"onUpdate:modelValue":f[48]||(f[48]=u=>Ye.value.status=u)},[s("option",Ud,a(t.allStatuses),1),(x(),S(X,null,ge(V,u=>s("option",{key:u,value:u},a(u),9,Vd)),64))],512),[[Lt,Ye.value.status]])]),s("label",null,[s("span",null,a(t.profiles),1),R(s("select",{"onUpdate:modelValue":f[49]||(f[49]=u=>Ye.value.profile_id=u)},[s("option",Ld,a(t.allProfiles),1),(x(!0),S(X,null,ge(((Xl=r.value)==null?void 0:Xl.items)??[],u=>(x(),S("option",{key:u.profile_id,value:u.profile_id},a(u.name),9,Fd))),128))],512),[[Lt,Ye.value.profile_id]])]),s("label",null,[s("span",null,a(t.workflows),1),R(s("select",{"onUpdate:modelValue":f[50]||(f[50]=u=>Ye.value.workflow_id=u)},[s("option",Nd,a(t.allWorkflows),1),(x(!0),S(X,null,ge(d.value,u=>(x(),S("option",{key:u.workflow_id,value:u.workflow_id},a(u.display_name),9,jd))),128))],512),[[Lt,Ye.value.workflow_id]])]),s("button",{type:"button",disabled:!!v.value,onClick:ae},a(t.filter),9,Wd)]),s("ul",null,[(x(!0),S(X,null,ge(((Zl=N.value)==null?void 0:Zl.items)??[],u=>(x(),S("li",{key:u.task_id},[s("div",null,[s("strong",null,a(u.task_id),1),s("small",null,a(u.task_type)+" / "+a(u.progress)+"%",1)]),s("div",Hd,[s("span",Kd,a(u.status),1),["failed","dead_letter","cancelled"].includes(u.status)?(x(),S("button",{key:0,type:"button",onClick:te=>$e(u.task_id)},a(t.retry),9,qd)):z("",!0),["completed","succeeded","cancelled"].includes(u.status)?z("",!0):(x(),S("button",{key:1,type:"button",onClick:te=>Je(u.task_id)},a(t.cancel),9,Jd)),s("button",{type:"button",disabled:!!v.value,onClick:te=>_n(u.task_id)},a(t.detail),9,Gd)])]))),128)),(es=N.value)!=null&&es.items.length?z("",!0):(x(),S("li",zd,a(t.emptyJobs),1))]),he.value?(x(),S("section",Yd,[s("header",null,[s("h2",null,a(t.jobDetail),1),s("span",null,a(he.value.status),1)]),s("pre",null,a(JSON.stringify(he.value,null,2)),1)])):z("",!0)])):z("",!0),l.value==="discovery"?(x(),S("section",Qd,[s("div",Xd,[s("header",null,[s("h2",null,a(t.dialects),1),s("div",Zd,[s("button",{type:"button",disabled:!!v.value,onClick:bi},a(t.probeProvider),9,ef),s("button",{type:"button",disabled:!!v.value,onClick:yi},a(t.safeProbe),9,tf)])]),s("ul",null,[(x(!0),S(X,null,ge(Me.value,u=>(x(),S("li",{key:u.dialect},[s("div",null,[s("strong",null,a(u.label),1),s("small",null,a(u.capabilities.join(", ")||t.unconfirmed),1)]),s("span",null,a(u.dialect),1)]))),128))]),s("div",nf,[s("label",null,[s("span",null,a(t.provider),1),R(s("input",{"onUpdate:modelValue":f[51]||(f[51]=u=>xe.value.provider_id=u),type:"text",placeholder:"local-preview"},null,512),[[L,xe.value.provider_id]])]),s("label",null,[s("span",null,a(t.model),1),R(s("input",{"onUpdate:modelValue":f[52]||(f[52]=u=>xe.value.model_id=u),type:"text",placeholder:"metadata-only"},null,512),[[L,xe.value.model_id]])]),s("label",null,[s("span",null,a(t.requiredCapabilities),1),R(s("input",{"onUpdate:modelValue":f[53]||(f[53]=u=>xe.value.required_capabilities=u),type:"text",placeholder:"text_to_image"},null,512),[[L,xe.value.required_capabilities]])]),s("button",{type:"button",disabled:!!v.value||!xe.value.provider_id||!xe.value.model_id,onClick:wi},a(t.validatePlan),9,lf)]),Gt.value?(x(),S("pre",sf,a(JSON.stringify(Gt.value,null,2)),1)):z("",!0)]),s("div",of,[s("header",null,[s("h2",null,a(t.capabilityProfiles),1),s("span",null,a(Ne.value.length),1)]),s("ul",null,[(x(!0),S(X,null,ge(Ne.value,u=>(x(),S("li",{key:u.capability_profile_id},[s("div",null,[s("strong",null,a(u.provider_id)+" / "+a(u.model_id),1),s("small",null,a(u.dialect),1)]),s("div",rf,[s("span",af,a(u.status),1),s("button",{type:"button",disabled:!!v.value,onClick:te=>tl(u,"confirmed_supported")},a(t.support),9,uf),s("button",{type:"button",disabled:!!v.value,onClick:te=>tl(u,"confirmed_unsupported")},a(t.unsupported),9,cf),s("button",{type:"button",disabled:!!v.value,onClick:te=>tl(u,"unconfirmed")},a(t.unconfirmed),9,df)])]))),128)),Ne.value.length?z("",!0):(x(),S("li",ff,a(t.emptyCapabilities),1))])])])):z("",!0),l.value==="logs"?(x(),S("section",pf,[s("div",hf,[s("div",vf,[s("header",null,[s("h2",null,a(t.generationLogs),1),s("span",null,a(_e.value.generation.length),1)]),s("ul",null,[(x(!0),S(X,null,ge(_e.value.generation,u=>(x(),S("li",{key:u.task_id},[s("div",null,[s("strong",null,a(u.task_id),1),s("small",null,a(u.status)+" / "+a(u.progress)+"%",1)]),s("span",null,a(u.created_at),1)]))),128)),_e.value.generation.length?z("",!0):(x(),S("li",gf,a(t.emptyGenerationLogs),1))])]),s("div",_f,[s("header",null,[s("h2",null,a(t.errorLogs),1),s("span",null,a(_e.value.errors.length),1)]),s("ul",null,[(x(!0),S(X,null,ge(_e.value.errors,u=>(x(),S("li",{key:`${u.source}-${u.id}`},[s("div",null,[s("strong",null,a(u.source),1),s("small",null,a(u.error_message??t.noErrorDetail),1)]),s("span",mf,a(u.status),1)]))),128)),_e.value.errors.length?z("",!0):(x(),S("li",yf,a(t.emptyErrors),1))])])]),s("div",bf,[s("div",wf,[s("header",null,[s("h2",null,a(t.workflowLogs),1),s("span",null,a(_e.value.workflows.length),1)]),s("ul",null,[(x(!0),S(X,null,ge(_e.value.workflows,u=>(x(),S("li",{key:u.history_id},[s("div",null,[s("strong",null,a(u.action),1),s("small",null,a(u.title??u.workflow_id),1)]),s("span",null,a(u.branch_name??"main"),1)]))),128)),_e.value.workflows.length?z("",!0):(x(),S("li",kf,a(t.emptyWorkflowLogs),1))])]),s("div",Cf,[s("header",null,[s("h2",null,a(t.integrationLogs),1),s("span",null,a(_e.value.integrations.length),1)]),s("ul",null,[(x(!0),S(X,null,ge(_e.value.integrations,u=>(x(),S("li",{key:u.integration_log_id},[s("div",null,[s("strong",null,a(u.integration_name),1),s("small",null,a(u.action),1)]),s("span",xf,a(u.status),1)]))),128)),_e.value.integrations.length?z("",!0):(x(),S("li",Sf,a(t.emptyIntegrationLogs),1))])])]),s("div",Pf,[s("header",null,[s("h2",null,a(t.auditLogs),1),s("span",null,a(_e.value.audit.length),1)]),s("ul",null,[(x(!0),S(X,null,ge(_e.value.audit,u=>(x(),S("li",{key:u.audit_id},[s("div",null,[s("strong",null,a(u.action),1),s("small",null,a(u.actor_type)+" / "+a(u.target_type)+" / "+a(u.target_id),1)]),s("span",null,a(u.created_at),1)]))),128)),_e.value.audit.length?z("",!0):(x(),S("li",Df,a(t.emptyAuditLogs),1))])])])):z("",!0),l.value==="settings"?(x(),S("section",Ef,[s("div",Tf,[s("button",{type:"button",disabled:!!v.value,onClick:Di},a(t.reload),9,Of),s("button",{type:"button",disabled:!!v.value,onClick:f[54]||(f[54]=u=>Ut())},a(t.reset),9,If),s("button",{type:"button",disabled:!!v.value,onClick:Oi},a(t.validate),9,Af),s("button",{type:"button",disabled:!!v.value,onClick:Ii},a(t.diff),9,Mf),s("button",{type:"button",disabled:!!v.value,onClick:Ai},a(t.save),9,$f),s("button",{type:"button",disabled:!!v.value,onClick:Ei},a(t.exportRedacted),9,Rf),s("button",{type:"button",disabled:!!v.value,onClick:ql},a(t.loadSnapshots),9,Bf)]),s("div",Uf,[(x(!0),S(X,null,ge(((ts=de.value)==null?void 0:ts.sections)??[],u=>(x(),S("article",{key:u.key},[s("h2",null,a(u.title),1),s("span",null,a(u.fields.length),1)]))),128))]),s("section",Vf,[s("header",null,[s("h2",null,a(t.settingsEditor),1),s("span",null,a(((ns=H.value)==null?void 0:ns.config_path)??"***PATH***"),1)]),R(s("textarea",{"onUpdate:modelValue":f[55]||(f[55]=u=>pt.value=u),spellcheck:"false"},null,512),[[L,pt.value]])]),s("section",Lf,[s("header",null,[s("h2",null,a(t.importSettings),1),s("button",{type:"button",disabled:!!v.value||!nt.value,onClick:Mi},a(t.importSettings),9,Ff)]),R(s("textarea",{"onUpdate:modelValue":f[56]||(f[56]=u=>nt.value=u),spellcheck:"false"},null,512),[[L,nt.value]])]),s("section",Nf,[s("header",null,[s("h2",null,a(t.snapshots),1),s("span",null,a(kt.value.length),1)]),s("ul",null,[(x(!0),S(X,null,ge(kt.value,u=>(x(),S("li",{key:u.snapshot_id},[s("div",null,[s("strong",null,a(u.reason),1),s("small",null,a(u.snapshot_id)+" / "+a(u.created_at),1)]),s("button",{type:"button",disabled:!!v.value,onClick:te=>$i(u.snapshot_id)},a(t.rollback),9,jf)]))),128))])]),s("div",Wf,[s("div",Hf,[s("header",null,[s("h2",null,a(t.validationResult),1),s("span",null,a(((ls=Ct.value)==null?void 0:ls.valid)??"-"),1)]),s("pre",null,a(JSON.stringify(Ct.value??{},null,2)),1)]),s("div",Kf,[s("header",null,[s("h2",null,a(t.diffResult),1),s("span",null,a(((ss=ke.value)==null?void 0:ss.changes.length)??0),1)]),s("pre",null,a(JSON.stringify(ke.value??{},null,2)),1)])])])):z("",!0)],64))]),s("aside",qf,[s("h2",null,a(t.running),1),s("dl",null,[s("div",null,[f[59]||(f[59]=s("dt",null,"Pending",-1)),s("dd",null,a(((os=i.value)==null?void 0:os.queue.pending)??0),1)]),s("div",null,[f[60]||(f[60]=s("dt",null,"Running",-1)),s("dd",null,a(((is=i.value)==null?void 0:is.queue.running)??0),1)]),s("div",null,[f[61]||(f[61]=s("dt",null,"Failed",-1)),s("dd",null,a(((rs=i.value)==null?void 0:rs.queue.failed)??0),1)]),s("div",null,[f[62]||(f[62]=s("dt",null,"Dead",-1)),s("dd",null,a(((as=i.value)==null?void 0:as.queue.dead_letter)??0),1)])]),s("h2",null,a(t.storage),1),s("dl",null,[s("div",null,[f[63]||(f[63]=s("dt",null,"Images",-1)),s("dd",null,a(sl(Jl("storage://images/"))),1)]),s("div",null,[f[64]||(f[64]=s("dt",null,"Materials",-1)),s("dd",null,a(sl(Jl("storage://materials/"))),1)])])])])}}}),Gf=(e,t)=>{const n=e.__vccOpts||e;for(const[l,o]of t)n[l]=o;return n},zf=Gf(Jf,[["__scopeId","data-v-17d37477"]]);gu(zf).mount("#app"); diff --git a/web/assets/index-D8LANsZc.js b/web/assets/index-D8LANsZc.js deleted file mode 100644 index 3c8082f..0000000 --- a/web/assets/index-D8LANsZc.js +++ /dev/null @@ -1,17 +0,0 @@ -var Wi=Object.defineProperty;var Hi=(e,t,n)=>t in e?Wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ol=(e,t,n)=>Hi(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const i of o)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(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function l(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();/** -* @vue/shared v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Tl(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const pe={},Nt=[],at=()=>{},Ns=()=>!1,Nn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),jn=e=>e.startsWith("onUpdate:"),De=Object.assign,Ol=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ki=Object.prototype.hasOwnProperty,oe=(e,t)=>Ki.call(e,t),W=Array.isArray,jt=e=>pn(e)==="[object Map]",Wn=e=>pn(e)==="[object Set]",us=e=>pn(e)==="[object Date]",J=e=>typeof e=="function",we=e=>typeof e=="string",ut=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",js=e=>(ce(e)||J(e))&&J(e.then)&&J(e.catch),Ws=Object.prototype.toString,pn=e=>Ws.call(e),qi=e=>pn(e).slice(8,-1),Hs=e=>pn(e)==="[object Object]",Il=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,en=Tl(",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)))},Ji=/-\w/g,Xe=Hn(e=>e.replace(Ji,t=>t.slice(1).toUpperCase())),Gi=/\B([A-Z])/g,Bt=Hn(e=>e.replace(Gi,"-$1").toLowerCase()),Ks=Hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),il=Hn(e=>e?`on${Ks(e)}`:""),rt=(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 cs;const qn=()=>cs||(cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Al(e){if(W(e)){const t={};for(let n=0;n{if(n){const l=n.split(Yi);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function Jn(e){let t="";if(we(e))t=e;else if(W(e))for(let n=0;nhn(n,t))}const Gs=e=>!!(e&&e.__v_isRef===!0),a=e=>we(e)?e:e==null?"":W(e)||ce(e)&&(e.toString===Ws||!J(e.toString))?Gs(e)?a(e.value):JSON.stringify(e,zs,2):String(e),zs=(e,t)=>Gs(t)?zs(e,t.value):jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,o],i)=>(n[rl(l,i)+" =>"]=o,n),{})}:Wn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>rl(n))}:ut(t)?rl(t):ce(t)&&!W(t)&&!Hs(t)?String(t):t,rl=(e,t="")=>{var n;return ut(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Pe;class lr{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(nn){let t=nn;for(nn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;tn;){let t=tn;for(tn=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 eo(e){let t,n=e.depsTail,l=n;for(;l;){const o=l.prevDep;l.version===-1?(l===n&&(n=o),$l(l),or(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=o}e.deps=t,e.depsTail=n}function ml(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(to(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function to(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===an)||(e.globalVersion=an,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ml(e))))return;e.flags|=2;const t=e.dep,n=ve,l=Ze;ve=e,Ze=!0;try{Zs(e);const o=e.fn(e._value);(t.version===0||rt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ve=n,Ze=l,eo(e),e.flags&=-3}}function $l(e,t=!1){const{dep:n,prevSub:l,nextSub:o}=e;if(l&&(l.nextSub=o,e.prevSub=void 0),o&&(o.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)$l(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function or(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ze=!0;const no=[];function ct(){no.push(Ze),Ze=!1}function dt(){const e=no.pop();Ze=e===void 0?!0:e}function ds(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ve;ve=void 0;try{t()}finally{ve=n}}}let an=0;class ir{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Bl{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ve||!Ze||ve===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ve)n=this.activeLink=new ir(ve,this),ve.deps?(n.prevDep=ve.depsTail,ve.depsTail.nextDep=n,ve.depsTail=n):ve.deps=ve.depsTail=n,lo(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=ve.depsTail,n.nextDep=void 0,ve.depsTail.nextDep=n,ve.depsTail=n,ve.deps===n&&(ve.deps=l)}return n}trigger(t){this.version++,an++,this.notify(t)}notify(t){Ml();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Rl()}}}function lo(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)lo(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const yl=new WeakMap,Rt=Symbol(""),bl=Symbol(""),un=Symbol("");function Oe(e,t,n){if(Ze&&ve){let l=yl.get(e);l||yl.set(e,l=new Map);let o=l.get(n);o||(l.set(n,o=new Bl),o.map=l,o.key=n),o.track()}}function _t(e,t,n,l,o,i){const r=yl.get(e);if(!r){an++;return}const c=h=>{h&&h.trigger()};if(Ml(),t==="clear")r.forEach(c);else{const h=W(e),m=h&&Il(n);if(h&&n==="length"){const _=Number(l);r.forEach((y,T)=>{(T==="length"||T===un||!ut(T)&&T>=_)&&c(y)})}else switch((n!==void 0||r.has(void 0))&&c(r.get(n)),m&&c(r.get(un)),t){case"add":h?m&&c(r.get("length")):(c(r.get(Rt)),jt(e)&&c(r.get(bl)));break;case"delete":h||(c(r.get(Rt)),jt(e)&&c(r.get(bl)));break;case"set":jt(e)&&c(r.get(Rt));break}}Rl()}function Vt(e){const t=se(e);return t===e?t:(Oe(t,"iterate",un),ze(e)?t:t.map(et))}function Gn(e){return Oe(e=se(e),"iterate",un),e}function ot(e,t){return bt(e)?qt($t(e)?et(t):t):et(t)}const rr={__proto__:null,[Symbol.iterator](){return ul(this,Symbol.iterator,e=>ot(this,e))},concat(...e){return Vt(this).concat(...e.map(t=>W(t)?Vt(t):t))},entries(){return ul(this,"entries",e=>(e[1]=ot(this,e[1]),e))},every(e,t){return ht(this,"every",e,t,void 0,arguments)},filter(e,t){return ht(this,"filter",e,t,n=>n.map(l=>ot(this,l)),arguments)},find(e,t){return ht(this,"find",e,t,n=>ot(this,n),arguments)},findIndex(e,t){return ht(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ht(this,"findLast",e,t,n=>ot(this,n),arguments)},findLastIndex(e,t){return ht(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ht(this,"forEach",e,t,void 0,arguments)},includes(...e){return cl(this,"includes",e)},indexOf(...e){return cl(this,"indexOf",e)},join(e){return Vt(this).join(e)},lastIndexOf(...e){return cl(this,"lastIndexOf",e)},map(e,t){return ht(this,"map",e,t,void 0,arguments)},pop(){return Yt(this,"pop")},push(...e){return Yt(this,"push",e)},reduce(e,...t){return fs(this,"reduce",e,t)},reduceRight(e,...t){return fs(this,"reduceRight",e,t)},shift(){return Yt(this,"shift")},some(e,t){return ht(this,"some",e,t,void 0,arguments)},splice(...e){return Yt(this,"splice",e)},toReversed(){return Vt(this).toReversed()},toSorted(e){return Vt(this).toSorted(e)},toSpliced(...e){return Vt(this).toSpliced(...e)},unshift(...e){return Yt(this,"unshift",e)},values(){return ul(this,"values",e=>ot(this,e))}};function ul(e,t,n){const l=Gn(e),o=l[t]();return l!==e&&!ze(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.done||(i.value=n(i.value)),i}),o}const ar=Array.prototype;function ht(e,t,n,l,o,i){const r=Gn(e),c=r!==e&&!ze(e),h=r[t];if(h!==ar[t]){const y=h.apply(e,i);return c?et(y):y}let m=n;r!==e&&(c?m=function(y,T){return n.call(this,ot(e,y),T,e)}:n.length>2&&(m=function(y,T){return n.call(this,y,T,e)}));const _=h.call(r,m,l);return c&&o?o(_):_}function fs(e,t,n,l){const o=Gn(e),i=o!==e&&!ze(e);let r=n,c=!1;o!==e&&(i?(c=l.length===0,r=function(m,_,y){return c&&(c=!1,m=ot(e,m)),n.call(this,m,ot(e,_),y,e)}):n.length>3&&(r=function(m,_,y){return n.call(this,m,_,y,e)}));const h=o[t](r,...l);return c?ot(e,h):h}function cl(e,t,n){const l=se(e);Oe(l,"iterate",un);const o=l[t](...n);return(o===-1||o===!1)&&Fl(n[0])?(n[0]=se(n[0]),l[t](...n)):o}function Yt(e,t,n=[]){ct(),Ml();const l=se(e)[t].apply(e,n);return Rl(),dt(),l}const ur=Tl("__proto__,__v_isRef,__isVue"),so=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ut));function cr(e){ut(e)||(e=String(e));const t=se(this);return Oe(t,"has",e),t.hasOwnProperty(e)}class oo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return l===(o?i?br:uo:i?ao:ro).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const r=W(t);if(!o){let h;if(r&&(h=rr[n]))return h;if(n==="hasOwnProperty")return cr}const c=Reflect.get(t,n,Ie(t)?t:l);if((ut(n)?so.has(n):ur(n))||(o||Oe(t,"get",n),i))return c;if(Ie(c)){const h=r&&Il(n)?c:c.value;return o&&ce(h)?kl(h):h}return ce(c)?o?kl(c):Vl(c):c}}class io extends oo{constructor(t=!1){super(!1,t)}set(t,n,l,o){let i=t[n];const r=W(t)&&Il(n);if(!this._isShallow){const m=bt(i);if(!ze(l)&&!bt(l)&&(i=se(i),l=se(l)),!r&&Ie(i)&&!Ie(l))return m||(i.value=l),!0}const c=r?Number(n)e,Pn=e=>Reflect.getPrototypeOf(e);function vr(e,t,n){return function(...l){const o=this.__v_raw,i=se(o),r=jt(i),c=e==="entries"||e===Symbol.iterator&&r,h=e==="keys"&&r,m=o[e](...l),_=n?wl:t?qt:et;return!t&&Oe(i,"iterate",h?bl:Rt),De(Object.create(m),{next(){const{value:y,done:T}=m.next();return T?{value:y,done:T}:{value:c?[_(y[0]),_(y[1])]:_(y),done:T}}})}}function Dn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function gr(e,t){const n={get(o){const i=this.__v_raw,r=se(i),c=se(o);e||(rt(o,c)&&Oe(r,"get",o),Oe(r,"get",c));const{has:h}=Pn(r),m=t?wl:e?qt:et;if(h.call(r,o))return m(i.get(o));if(h.call(r,c))return m(i.get(c));i!==r&&i.get(o)},get size(){const o=this.__v_raw;return!e&&Oe(se(o),"iterate",Rt),o.size},has(o){const i=this.__v_raw,r=se(i),c=se(o);return e||(rt(o,c)&&Oe(r,"has",o),Oe(r,"has",c)),o===c?i.has(o):i.has(o)||i.has(c)},forEach(o,i){const r=this,c=r.__v_raw,h=se(c),m=t?wl:e?qt:et;return!e&&Oe(h,"iterate",Rt),c.forEach((_,y)=>o.call(i,m(_),m(y),r))}};return De(n,e?{add:Dn("add"),set:Dn("set"),delete:Dn("delete"),clear:Dn("clear")}:{add(o){const i=se(this),r=Pn(i),c=se(o),h=!t&&!ze(o)&&!bt(o)?c:o;return r.has.call(i,h)||rt(o,h)&&r.has.call(i,o)||rt(c,h)&&r.has.call(i,c)||(i.add(h),_t(i,"add",h,h)),this},set(o,i){!t&&!ze(i)&&!bt(i)&&(i=se(i));const r=se(this),{has:c,get:h}=Pn(r);let m=c.call(r,o);m||(o=se(o),m=c.call(r,o));const _=h.call(r,o);return r.set(o,i),m?rt(i,_)&&_t(r,"set",o,i):_t(r,"add",o,i),this},delete(o){const i=se(this),{has:r,get:c}=Pn(i);let h=r.call(i,o);h||(o=se(o),h=r.call(i,o)),c&&c.call(i,o);const m=i.delete(o);return h&&_t(i,"delete",o,void 0),m},clear(){const o=se(this),i=o.size!==0,r=o.clear();return i&&_t(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=vr(o,e,t)}),n}function Ul(e,t){const n=gr(e,t);return(l,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?l:Reflect.get(oe(n,o)&&o in l?n:l,o,i)}const _r={get:Ul(!1,!1)},mr={get:Ul(!1,!0)},yr={get:Ul(!0,!1)};const ro=new WeakMap,ao=new WeakMap,uo=new WeakMap,br=new WeakMap;function wr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Vl(e){return bt(e)?e:Ll(e,!1,fr,_r,ro)}function kr(e){return Ll(e,!1,hr,mr,ao)}function kl(e){return Ll(e,!0,pr,yr,uo)}function Ll(e,t,n,l,o){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=o.get(e);if(i)return i;const r=wr(qi(e));if(r===0)return e;const c=new Proxy(e,r===2?l:n);return o.set(e,c),c}function $t(e){return bt(e)?$t(e.__v_raw):!!(e&&e.__v_isReactive)}function bt(e){return!!(e&&e.__v_isReadonly)}function ze(e){return!!(e&&e.__v_isShallow)}function Fl(e){return e?!!e.__v_raw:!1}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function xr(e){return!oe(e,"__v_skip")&&Object.isExtensible(e)&&qs(e,"__v_skip",!0),e}const et=e=>ce(e)?Vl(e):e,qt=e=>ce(e)?kl(e):e;function Ie(e){return e?e.__v_isRef===!0:!1}function F(e){return Cr(e,!1)}function Cr(e,t){return Ie(e)?e:new Sr(e,t)}class Sr{constructor(t,n){this.dep=new Bl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:se(t),this._value=n?t:et(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||ze(t)||bt(t);t=l?t:se(t),rt(t,n)&&(this._rawValue=t,this._value=l?t:et(t),this.dep.trigger())}}function Pr(e){return Ie(e)?e.value:e}const Dr={get:(e,t,n)=>t==="__v_raw"?e:Pr(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const o=e[t];return Ie(o)&&!Ie(n)?(o.value=n,!0):Reflect.set(e,t,n,l)}};function co(e){return $t(e)?e:new Proxy(e,Dr)}class Er{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Bl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=an-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&ve!==this)return Xs(this,!0),!0}get value(){const t=this.dep.track();return to(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Tr(e,t,n=!1){let l,o;return J(e)?l=e:(l=e.get,o=e.set),new Er(l,o,n)}const En={},An=new WeakMap;let At;function Or(e,t=!1,n=At){if(n){let l=An.get(n);l||An.set(n,l=[]),l.push(e)}}function Ir(e,t,n=pe){const{immediate:l,deep:o,once:i,scheduler:r,augmentJob:c,call:h}=n,m=U=>o?U:ze(U)||o===!1||o===0?mt(U,1):mt(U);let _,y,T,A,Z=!1,N=!1;if(Ie(e)?(y=()=>e.value,Z=ze(e)):$t(e)?(y=()=>m(e),Z=!0):W(e)?(N=!0,Z=e.some(U=>$t(U)||ze(U)),y=()=>e.map(U=>{if(Ie(U))return U.value;if($t(U))return m(U);if(J(U))return h?h(U,2):U()})):J(e)?t?y=h?()=>h(e,2):e:y=()=>{if(T){ct();try{T()}finally{dt()}}const U=At;At=_;try{return h?h(e,3,[A]):e(A)}finally{At=U}}:y=at,t&&o){const U=y,fe=o===!0?1/0:o;y=()=>mt(U(),fe)}const he=sr(),de=()=>{_.stop(),he&&he.active&&Ol(he.effects,_)};if(i&&t){const U=t;t=(...fe)=>{const Ae=U(...fe);return de(),Ae}}let H=N?new Array(e.length).fill(En):En;const ie=U=>{if(!(!(_.flags&1)||!_.dirty&&!U))if(t){const fe=_.run();if(U||o||Z||(N?fe.some((Ae,Me)=>rt(Ae,H[Me])):rt(fe,H))){T&&T();const Ae=At;At=_;try{const Me=[fe,H===En?void 0:N&&H[0]===En?[]:H,A];H=fe,h?h(t,3,Me):t(...Me)}finally{At=Ae}}}else _.run()};return c&&c(ie),_=new Ys(y),_.scheduler=r?()=>r(ie,!1):ie,A=U=>Or(U,!1,_),T=_.onStop=()=>{const U=An.get(_);if(U){if(h)h(U,4);else for(const fe of U)fe();An.delete(_)}},t?l?ie(!0):H=_.run():r?r(ie.bind(null,!0),!0):_.run(),de.pause=_.pause.bind(_),de.resume=_.resume.bind(_),de.stop=de,de}function mt(e,t=1/0,n){if(t<=0||!ce(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ie(e))mt(e.value,t,n);else if(W(e))for(let l=0;l{mt(l,t,n)});else if(Hs(e)){for(const l in e)mt(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&mt(e[l],t,n)}return e}/** -* @vue/runtime-core v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function vn(e,t,n,l){try{return l?e(...l):e()}catch(o){zn(o,t,n)}}function tt(e,t,n,l){if(J(e)){const o=vn(e,t,n,l);return o&&js(o)&&o.catch(i=>{zn(i,t,n)}),o}if(W(e)){const o=[];for(let i=0;i>>1,o=Be[l],i=cn(o);i=cn(n)?Be.push(e):Be.splice(Mr(t),0,e),e.flags|=1,ho()}}function ho(){Mn||(Mn=fo.then(go))}function Rr(e){W(e)?Wt.push(...e):Dt&&e.id===-1?Dt.splice(Ft+1,0,e):e.flags&1||(Wt.push(e),e.flags|=1),ho()}function ps(e,t,n=st+1){for(;ncn(n)-cn(l));if(Wt.length=0,Dt){Dt.push(...t);return}for(Dt=t,Ft=0;Fte.id==null?e.flags&2?-1:1/0:e.id;function go(e){try{for(st=0;st{l._d&&Cs(-1);const i=Rn(t);let r;try{r=e(...o)}finally{Rn(i),l._d&&Cs(1)}return r};return l._n=!0,l._c=!0,l._d=!0,l}function R(e,t){if(Ge===null)return e;const n=Zn(Ge),l=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&J(t)?t.call(l&&l.proxy):t}}const Ur=Symbol.for("v-scx"),Vr=()=>On(Ur);function dl(e,t,n){return mo(e,t,n)}function mo(e,t,n=pe){const{immediate:l,deep:o,flush:i,once:r}=n,c=De({},n),h=t&&l||!t&&i!=="post";let m;if(fn){if(i==="sync"){const A=Vr();m=A.__watcherHandles||(A.__watcherHandles=[])}else if(!h){const A=()=>{};return A.stop=at,A.resume=at,A.pause=at,A}}const _=Ue;c.call=(A,Z,N)=>tt(A,_,Z,N);let y=!1;i==="post"?c.scheduler=A=>{Fe(A,_&&_.suspense)}:i!=="sync"&&(y=!0,c.scheduler=(A,Z)=>{Z?A():Nl(A)}),c.augmentJob=A=>{t&&(A.flags|=4),y&&(A.flags|=2,_&&(A.id=_.uid,A.i=_))};const T=Ir(e,t,c);return fn&&(m?m.push(T):h&&T()),T}function Lr(e,t,n){const l=this.proxy,o=we(e)?e.includes(".")?yo(l,e):()=>l[e]:e.bind(l,l);let i;J(t)?i=t:(i=t.handler,n=t);const r=gn(this),c=mo(o,i.bind(l),n);return r(),c}function yo(e,t){const n=t.split(".");return()=>{let l=e;for(let o=0;oe.__isTeleport,fl=Symbol("_leaveCb");function jl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,jl(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function jr(e,t){return J(e)?De({name:e.name},t,{setup:e}):e}function bo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function hs(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const $n=new WeakMap;function ln(e,t,n,l,o=!1){if(W(e)){e.forEach((N,he)=>ln(N,t&&(W(t)?t[he]:t),n,l,o));return}if(sn(l)&&!o){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&ln(e,t,n,l.component.subTree);return}const i=l.shapeFlag&4?Zn(l.component):l.el,r=o?null:i,{i:c,r:h}=e,m=t&&t.r,_=c.refs===pe?c.refs={}:c.refs,y=c.setupState,T=se(y),A=y===pe?Ns:N=>hs(_,N)?!1:oe(T,N),Z=(N,he)=>!(he&&hs(_,he));if(m!=null&&m!==h){if(vs(t),we(m))_[m]=null,A(m)&&(y[m]=null);else if(Ie(m)){const N=t;Z(m,N.k)&&(m.value=null),N.k&&(_[N.k]=null)}}if(J(h)){ct();try{vn(h,c,12,[r,_])}finally{dt()}}else{const N=we(h),he=Ie(h);if(N||he){const de=()=>{if(e.f){const H=N?A(h)?y[h]:_[h]:Z()||!e.k?h.value:_[e.k];if(o)W(H)&&Ol(H,i);else if(W(H))H.includes(i)||H.push(i);else if(N)_[h]=[i],A(h)&&(y[h]=_[h]);else{const ie=[i];Z(h,e.k)&&(h.value=ie),e.k&&(_[e.k]=ie)}}else N?(_[h]=r,A(h)&&(y[h]=r)):he&&(Z(h,e.k)&&(h.value=r),e.k&&(_[e.k]=r))};if(r){const H=()=>{de(),$n.delete(e)};H.id=-1,$n.set(e,H),Fe(H,n)}else vs(e),de()}}}function vs(e){const t=$n.get(e);t&&(t.flags|=8,$n.delete(e))}qn().requestIdleCallback;qn().cancelIdleCallback;const sn=e=>!!e.type.__asyncLoader,wo=e=>e.type.__isKeepAlive;function Wr(e,t){ko(e,"a",t)}function Hr(e,t){ko(e,"da",t)}function ko(e,t,n=Ue){const l=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Yn(t,l,n),n){let o=n.parent;for(;o&&o.parent;)wo(o.parent.vnode)&&Kr(l,t,n,o),o=o.parent}}function Kr(e,t,n,l){const o=Yn(t,e,l,!0);Co(()=>{Ol(l[t],o)},n)}function Yn(e,t,n=Ue,l=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{ct();const c=gn(n),h=tt(t,n,e,r);return c(),dt(),h});return l?o.unshift(i):o.push(i),i}}const wt=e=>(t,n=Ue)=>{(!fn||e==="sp")&&Yn(e,(...l)=>t(...l),n)},qr=wt("bm"),xo=wt("m"),Jr=wt("bu"),Gr=wt("u"),zr=wt("bum"),Co=wt("um"),Yr=wt("sp"),Qr=wt("rtg"),Xr=wt("rtc");function Zr(e,t=Ue){Yn("ec",e,t)}const ea=Symbol.for("v-ndc");function ge(e,t,n,l){let o;const i=n,r=W(e);if(r||we(e)){const c=r&&$t(e);let h=!1,m=!1;c&&(h=!ze(e),m=bt(e),e=Gn(e)),o=new Array(e.length);for(let _=0,y=e.length;_t(c,h,void 0,i));else{const c=Object.keys(e);o=new Array(c.length);for(let h=0,m=c.length;he?Ko(e)?Zn(e):xl(e.parent):null,on=De(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>xl(e.parent),$root:e=>xl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Po(e),$forceUpdate:e=>e.f||(e.f=()=>{Nl(e.update)}),$nextTick:e=>e.n||(e.n=po.bind(e.proxy)),$watch:e=>Lr.bind(e)}),pl=(e,t)=>e!==pe&&!e.__isScriptSetup&&oe(e,t),ta={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:o,props:i,accessCache:r,type:c,appContext:h}=e;if(t[0]!=="$"){const T=r[t];if(T!==void 0)switch(T){case 1:return l[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(pl(l,t))return r[t]=1,l[t];if(o!==pe&&oe(o,t))return r[t]=2,o[t];if(oe(i,t))return r[t]=3,i[t];if(n!==pe&&oe(n,t))return r[t]=4,n[t];Cl&&(r[t]=0)}}const m=on[t];let _,y;if(m)return t==="$attrs"&&Oe(e.attrs,"get",""),m(e);if((_=c.__cssModules)&&(_=_[t]))return _;if(n!==pe&&oe(n,t))return r[t]=4,n[t];if(y=h.config.globalProperties,oe(y,t))return y[t]},set({_:e},t,n){const{data:l,setupState:o,ctx:i}=e;return pl(o,t)?(o[t]=n,!0):l!==pe&&oe(l,t)?(l[t]=n,!0):oe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:o,props:i,type:r}},c){let h;return!!(n[c]||e!==pe&&c[0]!=="$"&&oe(e,c)||pl(t,c)||oe(i,c)||oe(l,c)||oe(on,c)||oe(o.config.globalProperties,c)||(h=r.__cssModules)&&h[c])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:oe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function gs(e){return W(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Cl=!0;function na(e){const t=Po(e),n=e.proxy,l=e.ctx;Cl=!1,t.beforeCreate&&_s(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:r,watch:c,provide:h,inject:m,created:_,beforeMount:y,mounted:T,beforeUpdate:A,updated:Z,activated:N,deactivated:he,beforeDestroy:de,beforeUnmount:H,destroyed:ie,unmounted:U,render:fe,renderTracked:Ae,renderTriggered:Me,errorCaptured:Ne,serverPrefetch:ft,expose:_e,inheritAttrs:Ve,components:pt,directives:nt,filters:kt}=t;if(m&&la(m,l,null),r)for(const $ in r){const ee=r[$];J(ee)&&(l[$]=ee.bind(n))}if(o){const $=o.call(n,n);ce($)&&(e.data=Vl($))}if(Cl=!0,i)for(const $ in i){const ee=i[$],Y=J(ee)?ee.bind(n,n):J(ee.get)?ee.get.bind(n,n):at,je=!J(ee)&&J(ee.set)?ee.set.bind(n):at,Le=Pt({get:Y,set:je});Object.defineProperty(l,$,{enumerable:!0,configurable:!0,get:()=>Le.value,set:K=>Le.value=K})}if(c)for(const $ in c)So(c[$],l,n,$);if(h){const $=J(h)?h.call(n):h;Reflect.ownKeys($).forEach(ee=>{Br(ee,$[ee])})}_&&_s(_,e,"c");function ke($,ee){W(ee)?ee.forEach(Y=>$(Y.bind(n))):ee&&$(ee.bind(n))}if(ke(qr,y),ke(xo,T),ke(Jr,A),ke(Gr,Z),ke(Wr,N),ke(Hr,he),ke(Zr,Ne),ke(Xr,Ae),ke(Qr,Me),ke(zr,H),ke(Co,U),ke(Yr,ft),W(_e))if(_e.length){const $=e.exposed||(e.exposed={});_e.forEach(ee=>{Object.defineProperty($,ee,{get:()=>n[ee],set:Y=>n[ee]=Y,enumerable:!0})})}else e.exposed||(e.exposed={});fe&&e.render===at&&(e.render=fe),Ve!=null&&(e.inheritAttrs=Ve),pt&&(e.components=pt),nt&&(e.directives=nt),ft&&bo(e)}function la(e,t,n=at){W(e)&&(e=Sl(e));for(const l in e){const o=e[l];let i;ce(o)?"default"in o?i=On(o.from||l,o.default,!0):i=On(o.from||l):i=On(o),Ie(i)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[l]=i}}function _s(e,t,n){tt(W(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function So(e,t,n,l){let o=l.includes(".")?yo(n,l):()=>n[l];if(we(e)){const i=t[e];J(i)&&dl(o,i)}else if(J(e))dl(o,e.bind(n));else if(ce(e))if(W(e))e.forEach(i=>So(i,t,n,l));else{const i=J(e.handler)?e.handler.bind(n):t[e.handler];J(i)&&dl(o,i,e)}}function Po(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,c=i.get(t);let h;return c?h=c:!o.length&&!n&&!l?h=t:(h={},o.length&&o.forEach(m=>Bn(h,m,r,!0)),Bn(h,t,r)),ce(t)&&i.set(t,h),h}function Bn(e,t,n,l=!1){const{mixins:o,extends:i}=t;i&&Bn(e,i,n,!0),o&&o.forEach(r=>Bn(e,r,n,!0));for(const r in t)if(!(l&&r==="expose")){const c=sa[r]||n&&n[r];e[r]=c?c(e[r],t[r]):t[r]}return e}const sa={data:ms,props:ys,emits:ys,methods:Xt,computed:Xt,beforeCreate:$e,created:$e,beforeMount:$e,mounted:$e,beforeUpdate:$e,updated:$e,beforeDestroy:$e,beforeUnmount:$e,destroyed:$e,unmounted:$e,activated:$e,deactivated:$e,errorCaptured:$e,serverPrefetch:$e,components:Xt,directives:Xt,watch:ia,provide:ms,inject:oa};function ms(e,t){return t?e?function(){return De(J(e)?e.call(this,this):e,J(t)?t.call(this,this):t)}:t:e}function oa(e,t){return Xt(Sl(e),Sl(t))}function Sl(e){if(W(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Xe(t)}Modifiers`]||e[`${Bt(t)}Modifiers`];function ca(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||pe;let o=n;const i=t.startsWith("update:"),r=i&&ua(l,t.slice(7));r&&(r.trim&&(o=n.map(_=>we(_)?_.trim():_)),r.number&&(o=n.map(Kn)));let c,h=l[c=il(t)]||l[c=il(Xe(t))];!h&&i&&(h=l[c=il(Bt(t))]),h&&tt(h,e,6,o);const m=l[c+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,tt(m,e,6,o)}}const da=new WeakMap;function Eo(e,t,n=!1){const l=n?da:t.emitsCache,o=l.get(e);if(o!==void 0)return o;const i=e.emits;let r={},c=!1;if(!J(e)){const h=m=>{const _=Eo(m,t,!0);_&&(c=!0,De(r,_))};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!i&&!c?(ce(e)&&l.set(e,null),null):(W(i)?i.forEach(h=>r[h]=null):De(r,i),ce(e)&&l.set(e,r),r)}function Qn(e,t){return!e||!Nn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),oe(e,t[0].toLowerCase()+t.slice(1))||oe(e,Bt(t))||oe(e,t))}function bs(e){const{type:t,vnode:n,proxy:l,withProxy:o,propsOptions:[i],slots:r,attrs:c,emit:h,render:m,renderCache:_,props:y,data:T,setupState:A,ctx:Z,inheritAttrs:N}=e,he=Rn(e);let de,H;try{if(n.shapeFlag&4){const U=o||l,fe=U;de=it(m.call(fe,U,_,y,A,T,Z)),H=c}else{const U=t;de=it(U.length>1?U(y,{attrs:c,slots:r,emit:h}):U(y,null)),H=t.props?c:fa(c)}}catch(U){rn.length=0,zn(U,e,1),de=yt(Et)}let ie=de;if(H&&N!==!1){const U=Object.keys(H),{shapeFlag:fe}=ie;U.length&&fe&7&&(i&&U.some(jn)&&(H=pa(H,i)),ie=Jt(ie,H,!1,!0))}return n.dirs&&(ie=Jt(ie,null,!1,!0),ie.dirs=ie.dirs?ie.dirs.concat(n.dirs):n.dirs),n.transition&&jl(ie,n.transition),de=ie,Rn(he),de}const fa=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nn(n))&&((t||(t={}))[n]=e[n]);return t},pa=(e,t)=>{const n={};for(const l in e)(!jn(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function ha(e,t,n){const{props:l,children:o,component:i}=e,{props:r,children:c,patchFlag:h}=t,m=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&h>=0){if(h&1024)return!0;if(h&16)return l?ws(l,r,m):!!r;if(h&8){const _=t.dynamicProps;for(let y=0;y<_.length;y++){const T=_[y];if(To(r,l,T)&&!Qn(m,T))return!0}}}else return(o||c)&&(!c||!c.$stable)?!0:l===r?!1:l?r?ws(l,r,m):!0:!!r;return!1}function ws(e,t,n){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let o=0;oObject.create(Oo),Ao=e=>Object.getPrototypeOf(e)===Oo;function ga(e,t,n,l=!1){const o={},i=Io();e.propsDefaults=Object.create(null),Mo(e,t,o,i);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=l?o:kr(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function _a(e,t,n,l){const{props:o,attrs:i,vnode:{patchFlag:r}}=e,c=se(o),[h]=e.propsOptions;let m=!1;if((l||r>0)&&!(r&16)){if(r&8){const _=e.vnode.dynamicProps;for(let y=0;y<_.length;y++){let T=_[y];if(Qn(e.emitsOptions,T))continue;const A=t[T];if(h)if(oe(i,T))A!==i[T]&&(i[T]=A,m=!0);else{const Z=Xe(T);o[Z]=Pl(h,c,Z,A,e,!1)}else A!==i[T]&&(i[T]=A,m=!0)}}}else{Mo(e,t,o,i)&&(m=!0);let _;for(const y in c)(!t||!oe(t,y)&&((_=Bt(y))===y||!oe(t,_)))&&(h?n&&(n[y]!==void 0||n[_]!==void 0)&&(o[y]=Pl(h,c,y,void 0,e,!0)):delete o[y]);if(i!==c)for(const y in i)(!t||!oe(t,y))&&(delete i[y],m=!0)}m&&_t(e.attrs,"set","")}function Mo(e,t,n,l){const[o,i]=e.propsOptions;let r=!1,c;if(t)for(let h in t){if(en(h))continue;const m=t[h];let _;o&&oe(o,_=Xe(h))?!i||!i.includes(_)?n[_]=m:(c||(c={}))[_]=m:Qn(e.emitsOptions,h)||(!(h in l)||m!==l[h])&&(l[h]=m,r=!0)}if(i){const h=se(n),m=c||pe;for(let _=0;_{h=!0;const[T,A]=Ro(y,t,!0);De(r,T),A&&c.push(...A)};!n&&t.mixins.length&&t.mixins.forEach(_),e.extends&&_(e.extends),e.mixins&&e.mixins.forEach(_)}if(!i&&!h)return ce(e)&&l.set(e,Nt),Nt;if(W(i))for(let _=0;_e==="_"||e==="_ctx"||e==="$stable",Hl=e=>W(e)?e.map(it):[it(e)],ya=(e,t,n)=>{if(t._n)return t;const l=$r((...o)=>Hl(t(...o)),n);return l._c=!1,l},$o=(e,t,n)=>{const l=e._ctx;for(const o in e){if(Wl(o))continue;const i=e[o];if(J(i))t[o]=ya(o,i,l);else if(i!=null){const r=Hl(i);t[o]=()=>r}}},Bo=(e,t)=>{const n=Hl(t);e.slots.default=()=>n},Uo=(e,t,n)=>{for(const l in t)(n||!Wl(l))&&(e[l]=t[l])},ba=(e,t,n)=>{const l=e.slots=Io();if(e.vnode.shapeFlag&32){const o=t._;o?(Uo(l,t,n),n&&qs(l,"_",o,!0)):$o(t,l)}else t&&Bo(e,t)},wa=(e,t,n)=>{const{vnode:l,slots:o}=e;let i=!0,r=pe;if(l.shapeFlag&32){const c=t._;c?n&&c===1?i=!1:Uo(o,t,n):(i=!t.$stable,$o(t,o)),r=t}else t&&(Bo(e,t),r={default:1});if(i)for(const c in o)!Wl(c)&&r[c]==null&&delete o[c]},Fe=Pa;function ka(e){return xa(e)}function xa(e,t){const n=qn();n.__VUE__=!0;const{insert:l,remove:o,patchProp:i,createElement:r,createText:c,createComment:h,setText:m,setElementText:_,parentNode:y,nextSibling:T,setScopeId:A=at,insertStaticContent:Z}=e,N=(d,g,v,x=null,b=null,w=null,E=void 0,D=null,P=!!g.dynamicChildren)=>{if(d===g)return;d&&!Qt(d,g)&&(x=me(d),K(d,b,w,!0),d=null),g.patchFlag===-2&&(P=!1,g.dynamicChildren=null);const{type:k,ref:V,shapeFlag:I}=g;switch(k){case Xn:he(d,g,v,x);break;case Et:de(d,g,v,x);break;case vl:d==null&&H(g,v,x,E);break;case X:pt(d,g,v,x,b,w,E,D,P);break;default:I&1?fe(d,g,v,x,b,w,E,D,P):I&6?nt(d,g,v,x,b,w,E,D,P):(I&64||I&128)&&k.process(d,g,v,x,b,w,E,D,P,Ce)}V!=null&&b?ln(V,d&&d.ref,w,g||d,!g):V==null&&d&&d.ref!=null&&ln(d.ref,null,w,d,!0)},he=(d,g,v,x)=>{if(d==null)l(g.el=c(g.children),v,x);else{const b=g.el=d.el;g.children!==d.children&&m(b,g.children)}},de=(d,g,v,x)=>{d==null?l(g.el=h(g.children||""),v,x):g.el=d.el},H=(d,g,v,x)=>{[d.el,d.anchor]=Z(d.children,g,v,x,d.el,d.anchor)},ie=({el:d,anchor:g},v,x)=>{let b;for(;d&&d!==g;)b=T(d),l(d,v,x),d=b;l(g,v,x)},U=({el:d,anchor:g})=>{let v;for(;d&&d!==g;)v=T(d),o(d),d=v;o(g)},fe=(d,g,v,x,b,w,E,D,P)=>{if(g.type==="svg"?E="svg":g.type==="math"&&(E="mathml"),d==null)Ae(g,v,x,b,w,E,D,P);else{const k=d.el&&d.el._isVueCE?d.el:null;try{k&&k._beginPatch(),ft(d,g,b,w,E,D,P)}finally{k&&k._endPatch()}}},Ae=(d,g,v,x,b,w,E,D)=>{let P,k;const{props:V,shapeFlag:I,transition:M,dirs:j}=d;if(P=d.el=r(d.type,w,V&&V.is,V),I&8?_(P,d.children):I&16&&Ne(d.children,P,null,x,b,hl(d,w),E,D),j&&Ot(d,null,x,"created"),Me(P,d,d.scopeId,E,x),V){for(const re in V)re!=="value"&&!en(re)&&i(P,re,null,V[re],w,x);"value"in V&&i(P,"value",null,V.value,w),(k=V.onVnodeBeforeMount)&<(k,x,d)}j&&Ot(d,null,x,"beforeMount");const G=Ca(b,M);G&&M.beforeEnter(P),l(P,g,v),((k=V&&V.onVnodeMounted)||G||j)&&Fe(()=>{try{k&<(k,x,d),G&&M.enter(P),j&&Ot(d,null,x,"mounted")}finally{}},b)},Me=(d,g,v,x,b)=>{if(v&&A(d,v),x)for(let w=0;w{for(let k=P;k{const D=g.el=d.el;let{patchFlag:P,dynamicChildren:k,dirs:V}=g;P|=d.patchFlag&16;const I=d.props||pe,M=g.props||pe;let j;if(v&&It(v,!1),(j=M.onVnodeBeforeUpdate)&<(j,v,g,d),V&&Ot(g,d,v,"beforeUpdate"),v&&It(v,!0),k&&(!d.dynamicChildren||d.dynamicChildren.length!==k.length)&&(P=0,E=!1,k=null),(I.innerHTML&&M.innerHTML==null||I.textContent&&M.textContent==null)&&_(D,""),k?_e(d.dynamicChildren,k,D,v,x,hl(g,b),w):E||ee(d,g,D,null,v,x,hl(g,b),w,!1),P>0){if(P&16)Ve(D,I,M,v,b);else if(P&2&&I.class!==M.class&&i(D,"class",null,M.class,b),P&4&&i(D,"style",I.style,M.style,b),P&8){const G=g.dynamicProps;for(let re=0;re{j&<(j,v,g,d),V&&Ot(g,d,v,"updated")},x)},_e=(d,g,v,x,b,w,E)=>{for(let D=0;D{if(g!==v){if(g!==pe)for(const w in g)!en(w)&&!(w in v)&&i(d,w,g[w],null,b,x);for(const w in v){if(en(w))continue;const E=v[w],D=g[w];E!==D&&w!=="value"&&i(d,w,D,E,b,x)}"value"in v&&i(d,"value",g.value,v.value,b)}},pt=(d,g,v,x,b,w,E,D,P)=>{const k=g.el=d?d.el:c(""),V=g.anchor=d?d.anchor:c("");let{patchFlag:I,dynamicChildren:M,slotScopeIds:j}=g;j&&(D=D?D.concat(j):j),d==null?(l(k,v,x),l(V,v,x),Ne(g.children||[],v,V,b,w,E,D,P)):I>0&&I&64&&M&&d.dynamicChildren&&d.dynamicChildren.length===M.length?(_e(d.dynamicChildren,M,v,b,w,E,D),(g.key!=null||b&&g===b.subTree)&&Vo(d,g,!0)):ee(d,g,v,V,b,w,E,D,P)},nt=(d,g,v,x,b,w,E,D,P)=>{g.slotScopeIds=D,d==null?g.shapeFlag&512?b.ctx.activate(g,v,x,E,P):kt(g,v,x,b,w,E,P):xt(d,g,P)},kt=(d,g,v,x,b,w,E)=>{const D=d.component=$a(d,x,b);if(wo(d)&&(D.ctx.renderer=Ce),Ua(D,!1,E),D.asyncDep){if(b&&b.registerDep(D,ke,E),!d.el){const P=D.subTree=yt(Et);de(null,P,g,v),d.placeholder=P.el}}else ke(D,d,g,v,b,w,E)},xt=(d,g,v)=>{const x=g.component=d.component;if(ha(d,g,v))if(x.asyncDep&&!x.asyncResolved){$(x,g,v);return}else x.next=g,x.update();else g.el=d.el,x.vnode=g},ke=(d,g,v,x,b,w,E)=>{const D=()=>{if(d.isMounted){let{next:I,bu:M,u:j,parent:G,vnode:re}=d;{const qe=Lo(d);if(qe){I&&(I.el=re.el,$(d,I,E)),qe.asyncDep.then(()=>{Fe(()=>{d.isUnmounted||k()},b)});return}}let te=I,be;It(d,!1),I?(I.el=re.el,$(d,I,E)):I=re,M&&Tn(M),(be=I.props&&I.props.onVnodeBeforeUpdate)&<(be,G,I,re),It(d,!0);const xe=bs(d),We=d.subTree;d.subTree=xe,N(We,xe,y(We.el),me(We),d,b,w),I.el=xe.el,te===null&&va(d,xe.el),j&&Fe(j,b),(be=I.props&&I.props.onVnodeUpdated)&&Fe(()=>lt(be,G,I,re),b)}else{let I;const{el:M,props:j}=g,{bm:G,m:re,parent:te,root:be,type:xe}=d,We=sn(g);It(d,!1),G&&Tn(G),!We&&(I=j&&j.onVnodeBeforeMount)&<(I,te,g),It(d,!0);{be.ce&&be.ce._hasShadowRoot()&&be.ce._injectChildStyle(xe,d.parent?d.parent.type:void 0);const qe=d.subTree=bs(d);N(null,qe,v,x,d,b,w),g.el=qe.el}if(re&&Fe(re,b),!We&&(I=j&&j.onVnodeMounted)){const qe=g;Fe(()=>lt(I,te,qe),b)}(g.shapeFlag&256||te&&sn(te.vnode)&&te.vnode.shapeFlag&256)&&d.a&&Fe(d.a,b),d.isMounted=!0,g=v=x=null}};d.scope.on();const P=d.effect=new Ys(D);d.scope.off();const k=d.update=P.run.bind(P),V=d.job=P.runIfDirty.bind(P);V.i=d,V.id=d.uid,P.scheduler=()=>Nl(V),It(d,!0),k()},$=(d,g,v)=>{g.component=d;const x=d.vnode.props;d.vnode=g,d.next=null,_a(d,g.props,x,v),wa(d,g.children,v),ct(),ps(d),dt()},ee=(d,g,v,x,b,w,E,D,P=!1)=>{const k=d&&d.children,V=d?d.shapeFlag:0,I=g.children,{patchFlag:M,shapeFlag:j}=g;if(M>0){if(M&128){je(k,I,v,x,b,w,E,D,P);return}else if(M&256){Y(k,I,v,x,b,w,E,D,P);return}}j&8?(V&16&&ye(k,b,w),I!==k&&_(v,I)):V&16?j&16?je(k,I,v,x,b,w,E,D,P):ye(k,b,w,!0):(V&8&&_(v,""),j&16&&Ne(I,v,x,b,w,E,D,P))},Y=(d,g,v,x,b,w,E,D,P)=>{d=d||Nt,g=g||Nt;const k=d.length,V=g.length,I=Math.min(k,V);let M;for(M=0;MV?ye(d,b,w,!0,!1,I):Ne(g,v,x,b,w,E,D,P,I)},je=(d,g,v,x,b,w,E,D,P)=>{let k=0;const V=g.length;let I=d.length-1,M=V-1;for(;k<=I&&k<=M;){const j=d[k],G=g[k]=P?gt(g[k]):it(g[k]);if(Qt(j,G))N(j,G,v,null,b,w,E,D,P);else break;k++}for(;k<=I&&k<=M;){const j=d[I],G=g[M]=P?gt(g[M]):it(g[M]);if(Qt(j,G))N(j,G,v,null,b,w,E,D,P);else break;I--,M--}if(k>I){if(k<=M){const j=M+1,G=jM)for(;k<=I;)K(d[k],b,w,!0),k++;else{const j=k,G=k,re=new Map;for(k=G;k<=M;k++){const Re=g[k]=P?gt(g[k]):it(g[k]);Re.key!=null&&re.set(Re.key,k)}let te,be=0;const xe=M-G+1;let We=!1,qe=0;const Te=new Array(xe);for(k=0;k=xe){K(Re,b,w,!0);continue}let Je;if(Re.key!=null)Je=re.get(Re.key);else for(te=G;te<=M;te++)if(Te[te-G]===0&&Qt(Re,g[te])){Je=te;break}Je===void 0?K(Re,b,w,!0):(Te[Je-G]=k+1,Je>=qe?qe=Je:We=!0,N(Re,g[Je],v,null,b,w,E,D,P),be++)}const B=We?Sa(Te):Nt;for(te=B.length-1,k=xe-1;k>=0;k--){const Re=G+k,Je=g[Re],_n=g[Re+1],mn=Re+1{const{el:w,type:E,transition:D,children:P,shapeFlag:k}=d;if(k&6){Le(d.component.subTree,g,v,x);return}if(k&128){d.suspense.move(g,v,x);return}if(k&64){E.move(d,g,v,Ce);return}if(E===X){l(w,g,v);for(let I=0;ID.enter(w),b));else{const{leave:I,delayLeave:M,afterLeave:j}=D,G=()=>{d.ctx.isUnmounted?o(w):l(w,g,v)},re=()=>{const te=w._isLeaving||!!w[fl];w._isLeaving&&w[fl](!0),D.persisted&&!te?G():I(w,()=>{G(),j&&j()})};M?M(w,G,re):re()}else l(w,g,v)},K=(d,g,v,x=!1,b=!1)=>{const{type:w,props:E,ref:D,children:P,dynamicChildren:k,shapeFlag:V,patchFlag:I,dirs:M,cacheIndex:j,memo:G}=d;if(I===-2&&(b=!1),D!=null&&(ct(),ln(D,null,v,d,!0),dt()),j!=null&&(g.renderCache[j]=void 0),V&256){g.ctx.deactivate(d);return}const re=V&1&&M,te=!sn(d);let be;if(te&&(be=E&&E.onVnodeBeforeUnmount)&<(be,g,d),V&6)ue(d.component,v,x);else{if(V&128){d.suspense.unmount(v,x);return}re&&Ot(d,null,g,"beforeUnmount"),V&64?d.type.remove(d,g,v,Ce,x):k&&!k.hasOnce&&(w!==X||I>0&&I&64)?ye(k,g,v,!1,!0):(w===X&&I&384||!b&&V&16)&&ye(P,g,v),x&&Ke(d)}const xe=G!=null&&j==null;(te&&(be=E&&E.onVnodeUnmounted)||re||xe)&&Fe(()=>{be&<(be,g,d),re&&Ot(d,null,g,"unmounted"),xe&&(d.el=null)},v)},Ke=d=>{const{type:g,el:v,anchor:x,transition:b}=d;if(g===X){Ye(v,x);return}if(g===vl){U(d);return}const w=()=>{o(v),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(d.shapeFlag&1&&b&&!b.persisted){const{leave:E,delayLeave:D}=b,P=()=>E(v,w);D?D(d.el,w,P):P()}else w()},Ye=(d,g)=>{let v;for(;d!==g;)v=T(d),o(d),d=v;o(g)},ue=(d,g,v)=>{const{bum:x,scope:b,job:w,subTree:E,um:D,m:P,a:k}=d;xs(P),xs(k),x&&Tn(x),b.stop(),w&&(w.flags|=8,K(E,d,g,v)),D&&Fe(D,g),Fe(()=>{d.isUnmounted=!0},g)},ye=(d,g,v,x=!1,b=!1,w=0)=>{for(let E=w;E{if(d.shapeFlag&6)return me(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const g=T(d.anchor||d.el),v=g&&g[Fr];return v?T(v):g};let Ee=!1;const Tt=(d,g,v)=>{let x;d==null?g._vnode&&(K(g._vnode,null,null,!0),x=g._vnode.component):N(g._vnode||null,d,g,null,null,null,v),g._vnode=d,Ee||(Ee=!0,ps(x),vo(),Ee=!1)},Ce={p:N,um:K,m:Le,r:Ke,mt:kt,mc:Ne,pc:ee,pbc:_e,n:me,o:e};return{render:Tt,hydrate:void 0,createApp:aa(Tt)}}function hl({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function 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 Vo(e,t,n=!1){const l=e.children,o=t.children;if(W(l)&&W(o))for(let i=0;i>1,e[n[c]]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 Lo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Lo(t)}function xs(e){if(e)for(let t=0;te.__isSuspense;function Pa(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Rr(e)}const X=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),vl=Symbol.for("v-stc"),rn=[];let He=null;function C(e=!1){rn.push(He=e?null:[])}function Da(){rn.pop(),He=rn[rn.length-1]||null}let dn=1;function Cs(e,t=!1){dn+=e,e<0&&He&&t&&(He.hasOnce=!0)}function jo(e){return e.dynamicChildren=dn>0?He||Nt:null,Da(),dn>0&&He&&He.push(e),e}function S(e,t,n,l,o,i){return jo(s(e,t,n,l,o,i,!0))}function Ea(e,t,n,l,o){return jo(yt(e,t,n,l,o,!0))}function Wo(e){return e?e.__v_isVNode===!0:!1}function Qt(e,t){return e.type===t.type&&e.key===t.key}const Ho=({key:e})=>e??null,In=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Ie(e)||J(e)?{i:Ge,r:e,k:t,f:!!n}:e:null);function s(e,t=null,n=null,l=0,o=null,i=e===X?0:1,r=!1,c=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ho(t),ref:t&&In(t),scopeId:_o,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:o,dynamicChildren:null,appContext:null,ctx:Ge};return c?(Un(h,n),i&128&&e.normalize(h)):n&&(h.shapeFlag|=we(n)?8:16),dn>0&&!r&&He&&(h.patchFlag>0||i&6)&&h.patchFlag!==32&&He.push(h),h}const yt=Ta;function Ta(e,t=null,n=null,l=0,o=null,i=!1){if((!e||e===ea)&&(e=Et),Wo(e)){const c=Jt(e,t,!0);return n&&Un(c,n),dn>0&&!i&&He&&(c.shapeFlag&6?He[He.indexOf(e)]=c:He.push(c)),c.patchFlag=-2,c}if(Na(e)&&(e=e.__vccOpts),t){t=Oa(t);let{class:c,style:h}=t;c&&!we(c)&&(t.class=Jn(c)),ce(h)&&(Fl(h)&&!W(h)&&(h=De({},h)),t.style=Al(h))}const r=we(e)?1:No(e)?128:Nr(e)?64:ce(e)?4:J(e)?2:0;return s(e,t,n,l,o,r,i,!0)}function Oa(e){return e?Fl(e)||Ao(e)?De({},e):e:null}function Jt(e,t,n=!1,l=!1){const{props:o,ref:i,patchFlag:r,children:c,transition:h}=e,m=t?Aa(o||{},t):o,_={__v_isVNode:!0,__v_skip:!0,type:e.type,props:m,key:m&&Ho(m),ref:t&&t.ref?n&&i?W(i)?i.concat(In(t)):[i,In(t)]:In(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==X?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Jt(e.ssContent),ssFallback:e.ssFallback&&Jt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&l&&jl(_,h.clone(_)),_}function Ia(e=" ",t=0){return yt(Xn,null,e,t)}function z(e="",t=!1){return t?(C(),Ea(Et,null,e)):yt(Et,null,e)}function it(e){return e==null||typeof e=="boolean"?yt(Et):W(e)?yt(X,null,e.slice()):Wo(e)?gt(e):yt(Xn,null,String(e))}function gt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Jt(e)}function Un(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(l&65){const o=t.default;o&&(o._c&&(o._d=!1),Un(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Ao(t)?t._ctx=Ge:o===3&&Ge&&(Ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(J(t)){if(l&65){Un(e,{default:t});return}t={default:t,_ctx:Ge},n=32}else t=String(t),l&64?(n=16,t=[Ia(t)]):n=8;e.children=t,e.shapeFlag|=n}function Aa(...e){const t={};for(let n=0;nUe||Ge;let Vn,Dl;{const e=qn(),t=(n,l)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(l),i=>{o.length>1?o.forEach(r=>r(i)):o[0](i)}};Vn=t("__VUE_INSTANCE_SETTERS__",n=>Ue=n),Dl=t("__VUE_SSR_SETTERS__",n=>fn=n)}const gn=e=>{const t=Ue;return Vn(e),e.scope.on(),()=>{e.scope.off(),Vn(t)}},Ss=()=>{Ue&&Ue.scope.off(),Vn(null)};function Ko(e){return e.vnode.shapeFlag&4}let fn=!1;function Ua(e,t=!1,n=!1){t&&Dl(t);const{props:l,children:o}=e.vnode,i=Ko(e);ga(e,l,i,t),ba(e,o,n||t);const r=i?Va(e,t):void 0;return t&&Dl(!1),r}function Va(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ta);const{setup:l}=n;if(l){ct();const o=e.setupContext=l.length>1?Fa(e):null,i=gn(e),r=vn(l,e,0,[e.props,o]),c=js(r);if(dt(),i(),(c||e.sp)&&!sn(e)&&bo(e),c){if(r.then(Ss,Ss),t)return r.then(h=>{Ps(e,h)}).catch(h=>{zn(h,e,0)});e.asyncDep=r}else Ps(e,r)}else qo(e)}function Ps(e,t,n){J(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=co(t)),qo(e)}function qo(e,t,n){const l=e.type;e.render||(e.render=l.render||at);{const o=gn(e);ct();try{na(e)}finally{dt(),o()}}}const La={get(e,t){return Oe(e,"get",""),e[t]}};function Fa(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,La),slots:e.slots,emit:e.emit,expose:t}}function Zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(co(xr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in on)return on[n](e)},has(t,n){return n in t||n in on}})):e.proxy}function Na(e){return J(e)&&"__vccOpts"in e}const Pt=(e,t)=>Tr(e,t,fn),ja="3.5.39";/** -* @vue/runtime-dom v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let El;const Ds=typeof window<"u"&&window.trustedTypes;if(Ds)try{El=Ds.createPolicy("vue",{createHTML:e=>e})}catch{}const Jo=El?e=>El.createHTML(e):e=>e,Wa="http://www.w3.org/2000/svg",Ha="http://www.w3.org/1998/Math/MathML",vt=typeof document<"u"?document:null,Es=vt&&vt.createElement("template"),Ka={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 o=t==="svg"?vt.createElementNS(Wa,e):t==="mathml"?vt.createElementNS(Ha,e):n?vt.createElement(e,{is:n}):vt.createElement(e);return e==="select"&&l&&l.multiple!=null&&o.setAttribute("multiple",l.multiple),o},createText:e=>vt.createTextNode(e),createComment:e=>vt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>vt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,o,i){const r=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Es.innerHTML=Jo(l==="svg"?`${e}`:l==="mathml"?`${e}`:e);const c=Es.content;if(l==="svg"||l==="mathml"){const h=c.firstChild;for(;h.firstChild;)c.appendChild(h.firstChild);c.removeChild(h)}t.insertBefore(c,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},qa=Symbol("_vtc");function Ja(e,t,n){const l=e[qa];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ts=Symbol("_vod"),Ga=Symbol("_vsh"),za=Symbol(""),Ya=/(?:^|;)\s*display\s*:/;function Qa(e,t,n){const l=e.style,o=we(n);let i=!1;if(n&&!o){if(t)if(we(t))for(const r of t.split(";")){const c=r.slice(0,r.indexOf(":")).trim();n[c]==null&&Zt(l,c,"")}else for(const r in t)n[r]==null&&Zt(l,r,"");for(const r in n){r==="display"&&(i=!0);const c=n[r];c!=null?Za(e,r,!we(t)&&t?t[r]:void 0,c)||Zt(l,r,c):Zt(l,r,"")}}else if(o){if(t!==n){const r=l[za];r&&(n+=";"+r),l.cssText=n,i=Ya.test(n)}}else t&&e.removeAttribute("style");Ts in e&&(e[Ts]=i?l.display:"",e[Ga]&&(l.display="none"))}const Os=/\s*!important$/;function Zt(e,t,n){if(W(n))n.forEach(l=>Zt(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=Xa(e,t);Os.test(n)?e.setProperty(Bt(l),n.replace(Os,""),"important"):e[l]=n}}const Is=["Webkit","Moz","ms"],gl={};function Xa(e,t){const n=gl[t];if(n)return n;let l=Xe(t);if(l!=="filter"&&l in e)return gl[t]=l;l=Ks(l);for(let o=0;o_l||(ou.then(()=>_l=0),_l=Date.now());function ru(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;const o=n.value;if(W(o)){const i=l.stopImmediatePropagation;l.stopImmediatePropagation=()=>{i.call(l),l._stopped=!0};const r=o.slice(),c=[l];for(let h=0;he.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,au=(e,t,n,l,o,i)=>{const r=o==="svg";t==="class"?Ja(e,l,r):t==="style"?Qa(e,n,l):Nn(t)?jn(t)||tu(e,t,n,l,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):uu(e,t,l,r))?(Rs(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ms(e,t,l,r,i,t!=="value")):e._isVueCE&&(cu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!we(l)))?Rs(e,Xe(t),l,i,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Ms(e,t,l,r))};function uu(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Bs(t)&&J(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Bs(t)&&we(n)?!1:t in e}function cu(e,t){const n=e._def.props;if(!n)return!1;const l=Xe(t);return Array.isArray(n)?n.some(o=>Xe(o)===l):Object.keys(n).some(o=>Xe(o)===l)}const Ln=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>Tn(t,n):t};function du(e){e.target.composing=!0}function Us(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Kt=Symbol("_assign");function Vs(e,t,n){return t&&(e=e.trim()),n&&(e=Kn(e)),e}const L={created(e,{modifiers:{lazy:t,trim:n,number:l}},o){e[Kt]=Ln(o);const i=l||o.props&&o.props.type==="number";Mt(e,t?"change":"input",r=>{r.target.composing||e[Kt](Vs(e.value,n,i))}),(n||i)&&Mt(e,"change",()=>{e.value=Vs(e.value,n,i)}),t||(Mt(e,"compositionstart",du),Mt(e,"compositionend",Us),Mt(e,"change",Us))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:o,number:i}},r){if(e[Kt]=Ln(r),e.composing)return;const c=(i||e.type==="number")&&!/^0\d/.test(e.value)?Kn(e.value):e.value,h=t??"";if(c===h)return;const m=e.getRootNode();(m instanceof Document||m instanceof ShadowRoot)&&m.activeElement===e&&e.type!=="range"&&(l&&t===n||o&&e.value.trim()===h)||(e.value=h)}},Lt={deep:!0,created(e,{value:t,modifiers:{number:n}},l){const o=Wn(t);Mt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?Kn(Fn(r)):Fn(r));e[Kt](e.multiple?o?new Set(i):i:i[0]),e._assigning=!0,po(()=>{e._assigning=!1})}),e[Kt]=Ln(l)},mounted(e,{value:t}){Ls(e,t)},beforeUpdate(e,t,n){e[Kt]=Ln(n)},updated(e,{value:t}){e._assigning||Ls(e,t)}};function Ls(e,t){const n=e.multiple,l=W(t);if(!(n&&!l&&!Wn(t))){for(let o=0,i=e.options.length;oString(m)===String(c)):r.selected=nr(t,c)>-1}else r.selected=t.has(c);else if(hn(Fn(r),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Fn(e){return"_value"in e?e._value:e.value}const fu=De({patchProp:au},Ka);let Fs;function pu(){return Fs||(Fs=ka(fu))}const hu=((...e)=>{const t=pu().createApp(...e),{mount:n}=t;return t.mount=l=>{const o=gu(l);if(!o)return;const i=t._component;!J(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,vu(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t});function vu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function gu(e){return we(e)?document.querySelector(e):e}const _u="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",O={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,workflowBranches:e=>`workflows/${e}/branches`,workflowSwitchBranch:e=>`workflows/${e}/switch-branch`,workflowHistory:e=>`workflows/${e}/history`,node:e=>`nodes/${e}`,nodeGenerate:e=>`nodes/${e}/generate`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeReview:e=>`nodes/${e}/review`,nodeImages:e=>`nodes/${e}/images`,workflowReview:e=>`workflows/${e}/review`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",settingsImport:"settings/import",settingsSnapshots:"settings/snapshots",settingsRollback:"settings/rollback",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materialCategory:e=>`material-categories/${e}`,materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeProvider:"api-discovery/probe-provider",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class mu extends Error{constructor(n,l,o={}){super(l);ol(this,"code");ol(this,"details");this.name="ApiClientError",this.code=n,this.details=o}}async function le(e,t){return Qe(e,{method:"GET",query:t})}async function Q(e,t){return Qe(e,{method:"POST",body:t})}async function Qe(e,t={}){const l=await(await fetch(yu(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 mu(l.error_code,l.message,l.details);return l.data}function yu(e,t){const n=e.replace(/^\/+/,""),l=new URL(`${_u}/${n}`,window.location.origin);for(const[o,i]of Object.entries(t??{}))i!==void 0&&l.searchParams.set(o,String(i));return`${l.pathname}${l.search}`}const bu={class:"web-shell"},wu={class:"sidebar"},ku={class:"brand"},xu=["onClick"],Cu={class:"workspace"},Su={class:"topbar"},Pu={class:"actions"},Du=["disabled"],Eu={key:0,class:"notice error"},Tu={key:1,class:"notice"},Ou={key:0,class:"dashboard-grid"},Iu={key:1,class:"list-view"},Au={class:"form-grid"},Mu={class:"wide-field"},Ru=["disabled"],$u=["disabled"],Bu={key:0},Uu={key:1,class:"form-grid"},Vu={class:"wide-field"},Lu={class:"wide-field"},Fu={class:"wide-field"},Nu={class:"wide-field"},ju={class:"wide-field"},Wu=["disabled"],Hu=["disabled"],Ku={class:"inline-actions"},qu={class:"badge"},Ju=["disabled","onClick"],Gu=["disabled","onClick"],zu={key:0,class:"empty"},Yu={key:2,class:"split-view"},Qu={class:"list-view"},Xu={class:"form-grid"},Zu=["disabled"],ec={class:"inline-actions"},tc={class:"badge"},nc=["disabled","onClick"],lc=["disabled","onClick"],sc=["disabled","onClick"],oc=["disabled","onClick"],ic={key:0,class:"empty"},rc={key:0,class:"editor-panel"},ac={class:"form-grid"},uc=["disabled"],cc=["disabled","onClick"],dc={class:"list-view"},fc={class:"inline-actions"},pc=["disabled"],hc={class:"form-grid"},vc={class:"wide-field"},gc={class:"wide-field"},_c={class:"wide-field"},mc=["disabled"],yc=["disabled"],bc={class:"form-grid"},wc={class:"wide-field"},kc=["disabled"],xc=["disabled"],Cc={class:"inline-actions"},Sc={class:"badge"},Pc=["disabled","onClick"],Dc=["disabled","onClick"],Ec={key:0,class:"empty"},Tc={class:"inline-actions"},Oc={key:0,class:"badge"},Ic=["disabled","onClick"],Ac=["disabled","onClick"],Mc=["disabled","onClick"],Rc=["disabled","onClick"],$c=["disabled","onClick"],Bc=["disabled","onClick"],Uc={key:0,class:"empty"},Vc={key:0},Lc={key:1},Fc={class:"editor-panel"},Nc={key:0,class:"empty"},jc={key:2,class:"editor-panel"},Wc={key:3},Hc={key:3,class:"split-view"},Kc={class:"list-view"},qc={class:"form-grid"},Jc=["disabled"],Gc=["disabled"],zc={class:"inline-actions"},Yc=["disabled","onClick"],Qc=["disabled","onClick"],Xc={key:0,class:"empty"},Zc={class:"list-view"},ed={class:"inline-actions"},td=["disabled"],nd={class:"form-grid"},ld={value:""},sd=["value"],od=["disabled"],id=["disabled"],rd={class:"inline-actions"},ad={class:"badge"},ud=["disabled","onClick"],cd=["disabled","onClick"],dd=["disabled","onClick"],fd=["disabled","onClick"],pd={key:0,class:"empty"},hd={key:0},vd={key:4,class:"list-view"},gd=["disabled"],_d={class:"form-grid"},md={value:""},yd=["value"],bd=["disabled"],wd={class:"inline-actions"},kd=["disabled","onClick"],xd={key:0,class:"empty"},Cd={key:0},Sd={class:"form-grid"},Pd=["disabled"],Dd={key:1},Ed={key:5,class:"list-view"},Td={class:"inline-actions"},Od=["disabled"],Id=["disabled"],Ad={class:"form-grid"},Md={value:""},Rd=["value"],$d={value:""},Bd=["value"],Ud={value:""},Vd=["value"],Ld=["disabled"],Fd={class:"inline-actions"},Nd={class:"badge"},jd=["onClick"],Wd=["onClick"],Hd=["disabled","onClick"],Kd={key:0,class:"empty"},qd={key:0,class:"editor-panel"},Jd={key:6,class:"split-view"},Gd={class:"list-view"},zd={class:"inline-actions"},Yd=["disabled"],Qd=["disabled"],Xd={class:"form-grid"},Zd=["disabled"],ef={key:0},tf={class:"list-view"},nf={class:"inline-actions"},lf={class:"badge"},sf=["disabled","onClick"],of=["disabled","onClick"],rf=["disabled","onClick"],af={key:0,class:"empty"},uf={key:7,class:"logs-view"},cf={class:"split-view"},df={class:"list-view"},ff={key:0,class:"empty"},pf={class:"list-view"},hf={class:"badge"},vf={key:0,class:"empty"},gf={class:"split-view"},_f={class:"list-view"},mf={key:0,class:"empty"},yf={class:"list-view"},bf={class:"badge"},wf={key:0,class:"empty"},kf={class:"list-view"},xf={key:0,class:"empty"},Cf={key:8,class:"settings-view"},Sf={class:"toolbar"},Pf=["disabled"],Df=["disabled"],Ef=["disabled"],Tf=["disabled"],Of=["disabled"],If=["disabled"],Af=["disabled"],Mf={class:"settings-sections"},Rf={class:"editor-panel"},$f={class:"editor-panel"},Bf=["disabled"],Uf={class:"editor-panel"},Vf=["disabled","onClick"],Lf={class:"split-view"},Ff={class:"list-view"},Nf={class:"list-view"},jf={class:"inspector"},Wf=jr({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",generate:"生成",adopt:"采纳",select:"选择",unselect:"取选",recognize:"识别",confirm:"确认",edit:"编辑",update:"更新",name:"名称",identity:"身份",personality:"性格",hairColor:"发色",hairstyle:"发型",eyeColor:"眼色",description:"描述",basePrompt:"基础提示词",appearancePrompt:"外观提示词",stylePrompt:"风格提示词",negativePrompt:"反向提示词",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialUpdated:"素材已更新",materialArchived:"素材已归档",importToWardrobe:"加入衣橱",delete:"删除",wardrobeCategory:"衣橱分类",season:"季节",style:"风格",selectMaterial:"选择素材",wardrobeImported:"衣橱条目已加入",wardrobeDeleted:"衣橱条目已删除",dailyOutfit:"每日穿搭",categories:"分类",mood:"心情",weather:"天气",keywords:"关键词",outfitGenerated:"每日穿搭已生成",dashboard:"运行概览",profiles:"角色",workflows:"工作流",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",profileCreated:"角色已创建",profileUpdated:"角色已更新",profileDeleted:"角色已删除",emptyProfiles:"暂无角色",workflowList:"工作流列表",workflowType:"工作流类型",workflowCreated:"工作流已创建",emptyWorkflows:"暂无工作流",nodes:"节点",nodeKey:"NodeKey",nodeTitle:"节点标题",nodeType:"节点类型",status:"状态",nodeCreated:"节点已创建",nodeUpdated:"节点已更新",images:"图片",branches:"分支",branchName:"分支名",switchBranch:"切换分支",history:"历史",review:"评审",reviewResult:"评审结果",emptyImages:"暂无图片",emptyHistory:"暂无历史",modelRoute:"模型路由",prompt:"提示词",generationQueued:"生成已入队",branchCreated:"分支已创建",imageArchived:"图片已归档",imageDeleted:"图片已删除",currentBranch:"当前分支",materialCategories:"素材分类",categoryType:"分类类型",sortOrder:"排序",categoryCreated:"分类已创建",categoryUpdated:"分类已更新",categoryDeleted:"分类已删除",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",filter:"筛选",detail:"详情",jobDetail:"任务详情",allStatuses:"全部状态",allProfiles:"全部角色",allWorkflows:"全部工作流",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",probeProvider:"探测 Provider",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",importSettings:"导入设置",importDone:"设置已导入",importDraftInvalid:"导入 JSON 格式无效",snapshots:"配置快照",loadSnapshots:"加载快照",rollback:"回滚",rollbackDone:"配置已回滚",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},n=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"workflows",label:t.workflows},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],l=F("dashboard"),o=F(null),i=F(null),r=F(null),c=F([]),h=F(null),m=F([]),_=F([]),y=F(null),T=F(""),A=F([]),Z=F(null),N=F(null),he=F(null),de=F(null),H=F(null),ie=F(null),U=F([]),fe=F(null),Ae=F([]),Me=F([]),Ne=F([]),ft=F(null),_e=F({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Ve=F(null),pt=F(""),nt=F(""),kt=F([]),xt=F(null),ke=F(null),$=F({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),ee=F(null),Y=F({profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}),je=F({display_name:"",workflow_type:"single_image"}),Le=F({branch_name:""}),K=F({node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}),Ke=F({model_route:"",prompt:"",negative_prompt:""}),Ye=F({status:"",profile_id:"",workflow_id:""}),ue=F({material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}),ye=F({category_id:"",name:"",category_type:"material",sort_order:0}),me=F({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),Ee=F({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),Tt=F(null),Ce=F({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),Gt=F(null),d=F(""),g=F(!0),v=F(""),x=F(""),b=Pt(()=>{var p,f;return((f=(p=r.value)==null?void 0:p.items[0])==null?void 0:f.profile_id)??""}),w=Pt(()=>{var p,f;return((f=(p=r.value)==null?void 0:p.items[0])==null?void 0:f.name)??t.noProfile}),E=Pt(()=>{var f;const p=(f=i.value)==null?void 0:f.queue;return p?p.pending+p.running+p.failed+p.dead_letter:0}),D=Pt(()=>{var p;return((p=fe.value)==null?void 0:p.items.filter(f=>f.recognition_status!=="confirmed").length)??0}),P=Pt(()=>{var p;return(((p=fe.value)==null?void 0:p.items)??[]).filter(f=>f.recognition_status==="confirmed")}),k=Pt(()=>{var p;return((p=h.value)==null?void 0:p.nodes.find(f=>f.node_id===T.value))??null}),V=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],I=Pt(()=>({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]);xo(M);async function M(){var p,f;g.value=!0,x.value="";try{const[q,ne,Se,St,bn,zt,wn,kn,xn,Cn,Sn]=await Promise.all([le(O.uiBootstrap),le(O.dashboardSummary),le(O.profiles,{page:1,page_size:20}),le(O.jobs,{page:1,page_size:20}),le(O.settingsSchema),le(O.settingsCurrent),le(O.storageStatus),le(O.materialCategories),le(O.materials,{page:1,page_size:24}),le(O.apiDiscoveryDialects),le(O.apiDiscoveryCapabilities)]);o.value=q,i.value=ne,r.value=Se,N.value=St,de.value=bn,H.value=zt,Ut(zt.config),ie.value=wn,U.value=kn,fe.value=xn,Me.value=Cn,Ne.value=Sn,await te((p=Se.items[0])==null?void 0:p.profile_id),await be((f=Se.items[0])==null?void 0:f.profile_id),await j()}catch(q){x.value=q instanceof Error?q.message:t.loadFailed}finally{g.value=!1}}async function j(){const[p,f,q,ne,Se]=await Promise.allSettled([le(O.generationLogs,{limit:12}),le(O.workflowLogs,{limit:12}),le(O.errorLogs,{limit:12}),le(O.integrationLogs,{limit:12}),le(O.auditLogs,{limit:12})]);_e.value={generation:G(p),workflows:G(f),errors:G(q),integrations:G(ne),audit:G(Se)}}function G(p){return p.status==="fulfilled"?p.value:[]}async function re(){N.value=await le(O.jobs,{status:Ye.value.status||void 0,profile_id:Ye.value.profile_id||void 0,workflow_id:Ye.value.workflow_id||void 0,page:1,page_size:20})}async function te(p){if(!p){Ae.value=[];return}Ae.value=await le(O.wardrobe(p))}async function be(p){var ne,Se;if(!p){c.value=[],h.value=null,m.value=[],_.value=[],T.value="",A.value=[];return}c.value=await le(O.profileWorkflows(p));const f=(ne=h.value)==null?void 0:ne.workflow.workflow_id,q=c.value.some(St=>St.workflow_id===f)?f:(Se=c.value[0])==null?void 0:Se.workflow_id;q?await xe(q):h.value=null}async function xe(p){var Se;const f=await le(O.workflow(p));h.value=f;const q=T.value,ne=f.nodes.some(St=>St.node_id===q)?q:f.workflow.current_node_id||((Se=f.nodes[0])==null?void 0:Se.node_id);ne?await We(ne):(T.value="",A.value=[]),await qe(p)}async function We(p){T.value=p,A.value=await le(O.nodeImages(p))}async function qe(p){const[f,q]=await Promise.all([le(O.workflowBranches(p)),le(O.workflowHistory(p))]);m.value=f,_.value=q}async function Te(){var f;const p=(f=h.value)==null?void 0:f.workflow.workflow_id;p&&await xe(p)}async function B(p,f,q=!0){v.value=p,x.value="";try{const ne=await f();d.value=`${p}${t.complete}`,p===t.exportSettings&&(d.value=`${t.exportDone}: ${!!ne.redacted}`),q&&await M()}catch(ne){x.value=ne instanceof Error?ne.message:`${p}${t.failed}`}finally{v.value=""}}function Re(p){return B(t.retry,()=>Q(O.jobRetry(p)))}function Je(p){return B(t.cancel,()=>Q(O.jobCancel(p)))}function _n(p){return B(t.detail,async()=>(he.value=await le(O.job(p)),he.value),!1)}function mn(){$.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},ee.value=null}function Go(){return B(t.quickDraft,async()=>(ee.value=await Q(O.quickProfileDraft,{questionnaire:{name:$.value.name,identity:$.value.identity,personality:Ct($.value.personality),hair_color:$.value.hair_color,hairstyle:$.value.hairstyle,eye_color:$.value.eye_color,style:$.value.style,clothing_keywords:Ct($.value.clothing_keywords)}}),ee.value),!1)}function zo(){var f;const p=(f=ee.value)==null?void 0:f.profile_preview;return B(t.create,async()=>{const q=await Q(O.profiles,{name:(p==null?void 0:p.name)||$.value.name,description:$.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 mn(),d.value=t.profileCreated,q})}function Yo(p){return B(t.delete,async()=>{const f=await Qe(O.profile(p),{method:"DELETE"});return d.value=t.profileDeleted,f})}function Kl(){Y.value={profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}}function Qo(p){Y.value={profile_id:p.profile_id,name:p.name,description:p.description??"",base_prompt:p.base_prompt??"",appearance_prompt:p.appearance_prompt??"",style_prompt:p.style_prompt??"",negative_prompt:p.negative_prompt??"",default_model_route:p.default_model_route??""}}function Xo(){return Y.value.profile_id?B(t.update,async()=>{const p=await Qe(O.profile(Y.value.profile_id),{method:"PUT",body:{name:Y.value.name,description:Y.value.description||void 0,base_prompt:Y.value.base_prompt||void 0,appearance_prompt:Y.value.appearance_prompt||void 0,style_prompt:Y.value.style_prompt||void 0,negative_prompt:Y.value.negative_prompt||void 0,default_model_route:Y.value.default_model_route||void 0}});return Kl(),d.value=t.profileUpdated,p}):Promise.resolve()}function Zo(){const p=b.value;return p?B(t.create,async()=>{const f=await Q(O.profileWorkflows(p),{display_name:je.value.display_name,workflow_type:je.value.workflow_type});return je.value.display_name="",h.value=f,d.value=t.workflowCreated,f}):Promise.resolve()}function ei(p){return B(t.start,()=>Q(O.workflowStart(p)))}function ti(p){return B(t.cancel,()=>Q(O.workflowCancel(p)))}function ni(p){return B(t.archive,()=>Q(O.workflowArchive(p)))}function li(){var f;const p=(f=h.value)==null?void 0:f.workflow;return!p||!Le.value.branch_name?Promise.resolve():B(t.branches,async()=>{const q=await Q(O.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 Te(),d.value=t.branchCreated,q},!1)}function si(p){var q;const f=(q=h.value)==null?void 0:q.workflow.workflow_id;return f?B(t.switchBranch,async()=>{const ne=await Q(O.workflowSwitchBranch(f),{branch_name:p});return await Te(),ne},!1):Promise.resolve()}function el(){K.value={node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}}function oi(p){K.value={node_id:p.node_id,node_key:p.node_key,title:p.title,description:p.description??"",node_type:p.node_type,status:p.status,prompt:p.prompt??"",negative_prompt:p.negative_prompt??"",model_route:p.model_route??""}}function ii(){var q;const p=(q=h.value)==null?void 0:q.workflow.workflow_id;if(!p||!K.value.node_key||!K.value.title)return Promise.resolve();const f={node_key:K.value.node_key,title:K.value.title,description:K.value.description||void 0,node_type:K.value.node_type||"generation",status:K.value.status||"pending",prompt:K.value.prompt||void 0,negative_prompt:K.value.negative_prompt||void 0,model_route:K.value.model_route||void 0};return K.value.node_id?B(t.update,async()=>{const ne=await Qe(O.node(K.value.node_id),{method:"PUT",body:f});return el(),await Te(),d.value=t.nodeUpdated,ne},!1):B(t.create,async()=>{const ne=await Q(O.workflowNodes(p),f);return el(),await Te(),d.value=t.nodeCreated,ne},!1)}function ri(){var f;const p=(f=h.value)==null?void 0:f.workflow.workflow_id;return p?B(t.review,async()=>(y.value=await le(O.workflowReview(p)),y.value),!1):Promise.resolve()}function ai(){const p=T.value;return p?B(t.review,async()=>(y.value=await le(O.nodeReview(p)),y.value),!1):Promise.resolve()}function ui(){const p=T.value;return p?B(t.generate,async()=>(Z.value=await Q(O.nodeGenerate(p),{model_route:Ke.value.model_route||void 0,prompt:Ke.value.prompt||void 0,negative_prompt:Ke.value.negative_prompt||void 0}),await Te(),d.value=t.generationQueued,Z.value),!1):Promise.resolve()}function ci(p){const f=T.value;return f?B(t.select,async()=>{const q=await Q(O.nodeSelectImage(f),{image_id:p});return await Te(),q},!1):Promise.resolve()}function di(p){const f=T.value;return f?B(t.adopt,async()=>{var ne;const q=await Q(O.nodeAdoptImage(f),{image_id:p,title:(ne=k.value)==null?void 0:ne.title});return await Te(),q},!1):Promise.resolve()}function fi(p){return B(t.unselect,async()=>{const f=await Q(O.imageUnselect(p));return await Te(),f},!1)}function pi(p){return B(t.archive,async()=>{const f=await Q(O.imageArchive(p));return await Te(),d.value=t.imageArchived,f},!1)}function hi(p){return B(t.delete,async()=>{const f=await Qe(O.image(p),{method:"DELETE"});return await Te(),d.value=t.imageDeleted,f},!1)}function vi(){return B(t.moveFailed,()=>Q(O.jobDeadLetterMoveFailed,{limit:20}))}function gi(){return B(t.retryDead,()=>Q(O.jobDeadLetterRetry,{limit:20}))}function _i(){var f;const p=((f=Me.value[0])==null?void 0:f.dialect)??"unknown";return B(t.safeProbe,()=>Q(O.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:p,capabilities:{supports:["text_to_image"]}}))}function mi(){var f;const p=((f=Me.value[0])==null?void 0:f.dialect)??"unknown";return B(t.probeProvider,()=>Q(O.apiDiscoveryProbeProvider,{provider_id:Ce.value.provider_id||"local-preview",model_id:Ce.value.model_id||"metadata-only",dialect:p,capabilities:{supports:Ct(Ce.value.required_capabilities)}}))}function yi(){return B(t.validatePlan,async()=>(Gt.value=await Q(O.apiDiscoveryValidateRenderPlan,{provider_id:Ce.value.provider_id,model_id:Ce.value.model_id,required_capabilities:Ct(Ce.value.required_capabilities)}),Gt.value),!1)}function tl(p,f){return B(t.discovery,()=>Q(O.apiDiscoveryManualOverride,{provider_id:p.provider_id,model_id:p.model_id,dialect:p.dialect,status:f,capabilities:p.capabilities}))}function bi(){const p=b.value;return p?B(t.matchWardrobe,async()=>(ft.value=await Q(O.wardrobeMatch(p),{tags:["daily"]}),ft.value),!1):Promise.resolve()}function wi(){me.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function ki(){const p=b.value;return p?B(t.importToWardrobe,async()=>{const f=await Q(O.wardrobeImportMaterial(p),{material_id:me.value.material_id,wardrobe_category:me.value.wardrobe_category,tags:Ct(me.value.tags),season:me.value.season||void 0,style:me.value.style||void 0});return wi(),d.value=t.wardrobeImported,f}):Promise.resolve()}function xi(p){const f=b.value;return f?B(t.delete,async()=>{const q=await Qe(O.wardrobeItem(f,p),{method:"DELETE"});return d.value=t.wardrobeDeleted,q}):Promise.resolve()}function Ci(){const p=b.value;return p?B(t.dailyOutfit,async()=>(Tt.value=await Q(O.privateCompanionDailyOutfit,{profile_id:p,categories:Ct(Ee.value.categories),mood:Ee.value.mood,weather:Ee.value.weather,keywords:Ct(Ee.value.keywords),request_source:"astrbot_plugin_private_companion"}),d.value=t.outfitGenerated,Tt.value),!1):Promise.resolve()}function Si(){return B(t.reload,async()=>{var f;const p=await Q(O.settingsReload);return H.value={config_path:((f=H.value)==null?void 0:f.config_path)??"***PATH***",config:p.config},Ut(p.config),p},!1)}function Pi(){return B(t.exportSettings,()=>le(O.settingsExport),!1)}function Ut(p=(f=>(f=H.value)==null?void 0:f.config)()??{}){pt.value=JSON.stringify(p,null,2),xt.value=null,ke.value=null}function nl(){try{const p=JSON.parse(pt.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 Di(){try{const p=JSON.parse(nt.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 Ei(){return B(t.validate,async()=>(xt.value=await Q(O.settingsValidate,{config:nl()}),xt.value),!1)}function Ti(){return B(t.diff,async()=>(ke.value=await Q(O.settingsDiff,{config:nl()}),ke.value),!1)}function Oi(){return B(t.save,async()=>{var f;const p=await Q(O.settingsSave,{config:nl()});return H.value={config_path:((f=H.value)==null?void 0:f.config_path)??"***PATH***",config:p.config},Ut(p.config),d.value=t.settingsSaved,p},!1)}function Ii(){return B(t.importSettings,async()=>{var f;const p=await Q(O.settingsImport,{config:Di()});return H.value={config_path:((f=H.value)==null?void 0:f.config_path)??"***PATH***",config:p.config},Ut(p.config),nt.value="",d.value=t.importDone,p},!1)}function ql(){return B(t.loadSnapshots,async()=>(kt.value=await le(O.settingsSnapshots,{limit:20}),kt.value),!1)}function Ai(p){return B(t.rollback,async()=>{var q;const f=await Q(O.settingsRollback,{snapshot_id:p});return H.value={config_path:((q=H.value)==null?void 0:q.config_path)??"***PATH***",config:f.config},Ut(f.config),await ql(),d.value=t.rollbackDone,f},!1)}function Mi(){var f,q;const p=(q=(f=fe.value)==null?void 0:f.items.find(ne=>{var Se;return(Se=ne.image_uri)==null?void 0:Se.startsWith("storage://")}))==null?void 0:q.image_uri;return p?B(t.signMaterial,async()=>(Ve.value=await le(O.mediaSign,{uri:p}),Ve.value),!1):(d.value=t.noSignableMaterial,Promise.resolve())}function Ri(p){return p!=null&&p.startsWith("storage://")?B(t.signMaterial,async()=>(Ve.value=await le(O.mediaSign,{uri:p}),Ve.value),!1):(d.value=t.noSignableMaterial,Promise.resolve())}function yn(){ye.value={category_id:"",name:"",category_type:"material",sort_order:0}}function $i(p){ye.value={category_id:p.category_id,name:p.name,category_type:p.category_type,sort_order:p.sort_order}}function Bi(){const p={name:ye.value.name,category_type:ye.value.category_type,sort_order:Number(ye.value.sort_order)||0};return ye.value.category_id?B(t.update,async()=>{const f=await Qe(O.materialCategory(ye.value.category_id),{method:"PUT",body:p});return yn(),d.value=t.categoryUpdated,f}):B(t.create,async()=>{const f=await Q(O.materialCategories,p);return yn(),d.value=t.categoryCreated,f})}function Ui(p){return B(t.delete,async()=>{const f=await Qe(O.materialCategory(p),{method:"DELETE"});return ye.value.category_id===p&&yn(),d.value=t.categoryDeleted,f})}function ll(){ue.value={material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}}function Vi(){const p={display_name:ue.value.display_name,image_uri:ue.value.image_uri||void 0,thumbnail_uri:ue.value.image_uri||void 0,category_id:ue.value.category_id||void 0,tags:Ct(ue.value.tags),prompt:ue.value.prompt||void 0,negative_prompt:ue.value.negative_prompt||void 0,recognition_status:ue.value.image_uri?"pending_recognition":"pending_upload"};return ue.value.material_id?B(t.update,async()=>{const f=await Qe(O.material(ue.value.material_id),{method:"PUT",body:p});return ll(),d.value=t.materialUpdated,f}):B(t.create,async()=>{const f=await Q(O.materials,p);return ll(),d.value=t.materialCreated,f})}function Li(p){ue.value={material_id:p.material_id,display_name:p.display_name,image_uri:p.image_uri??"",tags:p.tags.join(", "),category_id:p.category_id??"",prompt:p.prompt??"",negative_prompt:p.negative_prompt??""}}function Fi(p){return B(t.recognize,()=>Q(O.materialRecognize(p)))}function Ni(p){return B(t.confirm,()=>Q(O.materialConfirm(p.material_id),{display_name:p.display_name,prompt:p.prompt,negative_prompt:p.negative_prompt,tags:p.tags}))}function ji(p){return B(t.archive,async()=>{const f=await Qe(O.material(p),{method:"DELETE"});return d.value=t.materialArchived,f})}function Ct(p){return p.split(",").map(f=>f.trim()).filter(Boolean)}function sl(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 Jl(p){var f,q;return((q=(f=ie.value)==null?void 0:f.roots.find(ne=>ne.uri_prefix===p))==null?void 0:q.bytes)??0}return(p,f)=>{var q,ne,Se,St,bn,zt,wn,kn,xn,Cn,Sn,Gl,zl,Yl,Ql,Xl,Zl,es,ts,ns,ls,ss,os,is,rs,as;return C(),S("main",bu,[s("aside",wu,[s("div",ku,[s("strong",null,a(((q=o.value)==null?void 0:q.display_name)??"ImageStudio"),1),s("span",null,a(((ne=o.value)==null?void 0:ne.dashboard_user)??"AstrBot"),1)]),s("nav",null,[(C(),S(X,null,ge(n,u=>s("button",{key:u.key,type:"button",class:Jn({active:l.value===u.key}),onClick:ae=>l.value=u.key},a(u.label),11,xu)),64))])]),s("section",Cu,[s("header",Su,[s("div",null,[s("h1",null,a(I.value),1),s("p",null,a(((Se=i.value)==null?void 0:Se.plugin_status)??"loading")+" / "+a(d.value||t.waiting),1)]),s("div",Pu,[s("button",{type:"button",disabled:!!v.value,onClick:M},a(v.value||t.refresh),9,Du)])]),x.value?(C(),S("section",Eu,a(x.value),1)):g.value?(C(),S("section",Tu,a(t.loading),1)):(C(),S(X,{key:2},[l.value==="dashboard"?(C(),S("section",Ou,[s("article",null,[s("span",null,a(t.profiles),1),s("strong",null,a(((St=i.value)==null?void 0:St.active_profiles)??0),1)]),s("article",null,[s("span",null,a(t.jobs),1),s("strong",null,a(E.value),1)]),s("article",null,[s("span",null,a(t.materials),1),s("strong",null,a(((bn=fe.value)==null?void 0:bn.total)??0),1)]),s("article",null,[s("span",null,a(t.storage),1),s("strong",null,a(sl(((zt=ie.value)==null?void 0:zt.total_bytes)??((wn=i.value)==null?void 0:wn.storage.total_bytes))),1)])])):z("",!0),l.value==="profiles"?(C(),S("section",Iu,[s("header",null,[s("h2",null,a(t.profileList),1),s("span",null,a(((kn=r.value)==null?void 0:kn.total)??0),1)]),s("div",Au,[s("label",null,[s("span",null,a(t.name),1),R(s("input",{"onUpdate:modelValue":f[0]||(f[0]=u=>$.value.name=u),type:"text"},null,512),[[L,$.value.name]])]),s("label",null,[s("span",null,a(t.identity),1),R(s("input",{"onUpdate:modelValue":f[1]||(f[1]=u=>$.value.identity=u),type:"text"},null,512),[[L,$.value.identity]])]),s("label",null,[s("span",null,a(t.personality),1),R(s("input",{"onUpdate:modelValue":f[2]||(f[2]=u=>$.value.personality=u),type:"text",placeholder:"calm, brave"},null,512),[[L,$.value.personality]])]),s("label",null,[s("span",null,a(t.hairColor),1),R(s("input",{"onUpdate:modelValue":f[3]||(f[3]=u=>$.value.hair_color=u),type:"text"},null,512),[[L,$.value.hair_color]])]),s("label",null,[s("span",null,a(t.hairstyle),1),R(s("input",{"onUpdate:modelValue":f[4]||(f[4]=u=>$.value.hairstyle=u),type:"text"},null,512),[[L,$.value.hairstyle]])]),s("label",null,[s("span",null,a(t.eyeColor),1),R(s("input",{"onUpdate:modelValue":f[5]||(f[5]=u=>$.value.eye_color=u),type:"text"},null,512),[[L,$.value.eye_color]])]),s("label",null,[s("span",null,a(t.stylePrompt),1),R(s("input",{"onUpdate:modelValue":f[6]||(f[6]=u=>$.value.style=u),type:"text"},null,512),[[L,$.value.style]])]),s("label",null,[s("span",null,a(t.tags),1),R(s("input",{"onUpdate:modelValue":f[7]||(f[7]=u=>$.value.clothing_keywords=u),type:"text",placeholder:"white blouse, ribbon"},null,512),[[L,$.value.clothing_keywords]])]),s("label",Mu,[s("span",null,a(t.description),1),R(s("input",{"onUpdate:modelValue":f[8]||(f[8]=u=>$.value.description=u),type:"text"},null,512),[[L,$.value.description]])]),s("button",{type:"button",disabled:!!v.value||!$.value.name,onClick:Go},a(t.quickDraft),9,Ru),s("button",{type:"button",disabled:!!v.value||!$.value.name,onClick:zo},a(t.create),9,$u)]),ee.value?(C(),S("pre",Bu,a(JSON.stringify(ee.value,null,2)),1)):z("",!0),Y.value.profile_id?(C(),S("div",Uu,[s("label",null,[s("span",null,a(t.name),1),R(s("input",{"onUpdate:modelValue":f[9]||(f[9]=u=>Y.value.name=u),type:"text"},null,512),[[L,Y.value.name]])]),s("label",null,[s("span",null,a(t.provider),1),R(s("input",{"onUpdate:modelValue":f[10]||(f[10]=u=>Y.value.default_model_route=u),type:"text"},null,512),[[L,Y.value.default_model_route]])]),s("label",Vu,[s("span",null,a(t.description),1),R(s("input",{"onUpdate:modelValue":f[11]||(f[11]=u=>Y.value.description=u),type:"text"},null,512),[[L,Y.value.description]])]),s("label",Lu,[s("span",null,a(t.basePrompt),1),R(s("input",{"onUpdate:modelValue":f[12]||(f[12]=u=>Y.value.base_prompt=u),type:"text"},null,512),[[L,Y.value.base_prompt]])]),s("label",Fu,[s("span",null,a(t.appearancePrompt),1),R(s("input",{"onUpdate:modelValue":f[13]||(f[13]=u=>Y.value.appearance_prompt=u),type:"text"},null,512),[[L,Y.value.appearance_prompt]])]),s("label",Nu,[s("span",null,a(t.stylePrompt),1),R(s("input",{"onUpdate:modelValue":f[14]||(f[14]=u=>Y.value.style_prompt=u),type:"text"},null,512),[[L,Y.value.style_prompt]])]),s("label",ju,[s("span",null,a(t.negativePrompt),1),R(s("input",{"onUpdate:modelValue":f[15]||(f[15]=u=>Y.value.negative_prompt=u),type:"text"},null,512),[[L,Y.value.negative_prompt]])]),s("button",{type:"button",disabled:!!v.value||!Y.value.name,onClick:Xo},a(t.update),9,Wu),s("button",{type:"button",disabled:!!v.value,onClick:Kl},a(t.reset),9,Hu)])):z("",!0),s("ul",null,[(C(!0),S(X,null,ge(((xn=r.value)==null?void 0:xn.items)??[],u=>(C(),S("li",{key:u.profile_id},[s("div",null,[s("strong",null,a(u.name),1),s("small",null,a(u.profile_id),1)]),s("div",Ku,[s("span",qu,a(u.status),1),s("button",{type:"button",disabled:!!v.value,onClick:ae=>Qo(u)},a(t.edit),9,Ju),s("button",{type:"button",disabled:!!v.value,onClick:ae=>Yo(u.profile_id)},a(t.delete),9,Gu)])]))),128)),(Cn=r.value)!=null&&Cn.items.length?z("",!0):(C(),S("li",zu,a(t.emptyProfiles),1))])])):z("",!0),l.value==="workflows"?(C(),S("section",Yu,[s("div",Qu,[s("header",null,[s("h2",null,a(w.value),1),s("span",null,a(c.value.length),1)]),s("div",Xu,[s("label",null,[s("span",null,a(t.name),1),R(s("input",{"onUpdate:modelValue":f[16]||(f[16]=u=>je.value.display_name=u),type:"text"},null,512),[[L,je.value.display_name]])]),s("label",null,[s("span",null,a(t.workflowType),1),R(s("select",{"onUpdate:modelValue":f[17]||(f[17]=u=>je.value.workflow_type=u)},[...f[57]||(f[57]=[s("option",{value:"single_image"},"single_image",-1),s("option",{value:"character_gradual"},"character_gradual",-1),s("option",{value:"character_fast"},"character_fast",-1),s("option",{value:"quick_profile"},"quick_profile",-1)])],512),[[Lt,je.value.workflow_type]])]),s("button",{type:"button",disabled:!!v.value||!b.value||!je.value.display_name,onClick:Zo},a(t.create),9,Zu)]),s("ul",null,[(C(!0),S(X,null,ge(c.value,u=>(C(),S("li",{key:u.workflow_id},[s("div",null,[s("strong",null,a(u.display_name),1),s("small",null,a(u.workflow_type)+" / "+a(u.workflow_id),1)]),s("div",ec,[s("span",tc,a(u.status),1),s("button",{type:"button",disabled:!!v.value,onClick:ae=>xe(u.workflow_id)},a(t.nodes),9,nc),s("button",{type:"button",disabled:!!v.value,onClick:ae=>ei(u.workflow_id)},a(t.start),9,lc),s("button",{type:"button",disabled:!!v.value,onClick:ae=>ti(u.workflow_id)},a(t.cancel),9,sc),s("button",{type:"button",disabled:!!v.value,onClick:ae=>ni(u.workflow_id)},a(t.archive),9,oc)])]))),128)),c.value.length?z("",!0):(C(),S("li",ic,a(t.emptyWorkflows),1))]),h.value?(C(),S("section",rc,[s("header",null,[s("h2",null,a(t.branches),1),s("span",null,a(m.value.length),1)]),s("div",ac,[s("label",null,[s("span",null,a(t.branchName),1),R(s("input",{"onUpdate:modelValue":f[18]||(f[18]=u=>Le.value.branch_name=u),type:"text",placeholder:"alt_pose"},null,512),[[L,Le.value.branch_name]])]),s("button",{type:"button",disabled:!!v.value||!Le.value.branch_name,onClick:li},a(t.create),9,uc)]),s("ul",null,[(C(!0),S(X,null,ge(m.value,u=>(C(),S("li",{key:u.branch_id},[s("div",null,[s("strong",null,a(u.branch_name),1),s("small",null,a(u.base_branch_name??"main")+" / "+a(u.status),1)]),s("button",{type:"button",disabled:!!v.value,onClick:ae=>si(u.branch_name)},a(t.switchBranch),9,cc)]))),128))])])):z("",!0)]),s("div",dc,[s("header",null,[s("h2",null,a(t.nodes),1),s("div",fc,[s("span",null,a(((Sn=h.value)==null?void 0:Sn.workflow.current_branch)??"main"),1),s("button",{type:"button",disabled:!!v.value||!h.value,onClick:ri},a(t.review),9,pc)])]),s("div",hc,[s("label",null,[s("span",null,a(t.nodeKey),1),R(s("input",{"onUpdate:modelValue":f[19]||(f[19]=u=>K.value.node_key=u),type:"text"},null,512),[[L,K.value.node_key]])]),s("label",null,[s("span",null,a(t.nodeTitle),1),R(s("input",{"onUpdate:modelValue":f[20]||(f[20]=u=>K.value.title=u),type:"text"},null,512),[[L,K.value.title]])]),s("label",null,[s("span",null,a(t.nodeType),1),R(s("input",{"onUpdate:modelValue":f[21]||(f[21]=u=>K.value.node_type=u),type:"text"},null,512),[[L,K.value.node_type]])]),s("label",null,[s("span",null,a(t.status),1),R(s("input",{"onUpdate:modelValue":f[22]||(f[22]=u=>K.value.status=u),type:"text"},null,512),[[L,K.value.status]])]),s("label",vc,[s("span",null,a(t.description),1),R(s("input",{"onUpdate:modelValue":f[23]||(f[23]=u=>K.value.description=u),type:"text"},null,512),[[L,K.value.description]])]),s("label",gc,[s("span",null,a(t.prompt),1),R(s("input",{"onUpdate:modelValue":f[24]||(f[24]=u=>K.value.prompt=u),type:"text"},null,512),[[L,K.value.prompt]])]),s("label",_c,[s("span",null,a(t.negativePrompt),1),R(s("input",{"onUpdate:modelValue":f[25]||(f[25]=u=>K.value.negative_prompt=u),type:"text"},null,512),[[L,K.value.negative_prompt]])]),s("label",null,[s("span",null,a(t.modelRoute),1),R(s("input",{"onUpdate:modelValue":f[26]||(f[26]=u=>K.value.model_route=u),type:"text"},null,512),[[L,K.value.model_route]])]),s("button",{type:"button",disabled:!!v.value||!K.value.node_key||!K.value.title,onClick:ii},a(K.value.node_id?t.update:t.create),9,mc),s("button",{type:"button",disabled:!!v.value,onClick:el},a(t.reset),9,yc)]),s("div",bc,[s("label",null,[s("span",null,a(t.modelRoute),1),R(s("input",{"onUpdate:modelValue":f[27]||(f[27]=u=>Ke.value.model_route=u),type:"text",placeholder:"image_low"},null,512),[[L,Ke.value.model_route]])]),s("label",null,[s("span",null,a(t.prompt),1),R(s("input",{"onUpdate:modelValue":f[28]||(f[28]=u=>Ke.value.prompt=u),type:"text"},null,512),[[L,Ke.value.prompt]])]),s("label",wc,[s("span",null,a(t.negativePrompt),1),R(s("input",{"onUpdate:modelValue":f[29]||(f[29]=u=>Ke.value.negative_prompt=u),type:"text"},null,512),[[L,Ke.value.negative_prompt]])]),s("button",{type:"button",disabled:!!v.value||!T.value,onClick:ui},a(t.generate),9,kc),s("button",{type:"button",disabled:!!v.value||!T.value,onClick:ai},a(t.review),9,xc)]),s("ul",null,[(C(!0),S(X,null,ge(((Gl=h.value)==null?void 0:Gl.nodes)??[],u=>(C(),S("li",{key:u.node_id},[s("div",null,[s("strong",null,a(u.title),1),s("small",null,a(u.node_key)+" / "+a(u.node_id),1)]),s("div",Cc,[s("span",null,a(u.branch_name),1),s("span",Sc,a(u.status),1),s("button",{type:"button",disabled:!!v.value,onClick:ae=>oi(u)},a(t.edit),9,Pc),s("button",{type:"button",disabled:!!v.value,onClick:ae=>We(u.node_id)},a(t.images),9,Dc)])]))),128)),(zl=h.value)!=null&&zl.nodes.length?z("",!0):(C(),S("li",Ec,a(t.emptyWorkflows),1))]),s("ul",null,[(C(!0),S(X,null,ge(A.value,u=>(C(),S("li",{key:u.image_id},[s("div",null,[s("strong",null,a(u.image_id),1),s("small",null,a(u.thumbnail_uri??u.image_uri),1)]),s("div",Tc,[u.is_selected?(C(),S("span",Oc,a(t.select),1)):z("",!0),s("button",{type:"button",disabled:!!v.value||u.is_selected||u.is_archived,onClick:ae=>ci(u.image_id)},a(t.select),9,Ic),s("button",{type:"button",disabled:!!v.value||u.is_archived,onClick:ae=>di(u.image_id)},a(t.adopt),9,Ac),s("button",{type:"button",disabled:!!v.value||!(u.thumbnail_uri??u.image_uri).startsWith("storage://"),onClick:ae=>Ri(u.thumbnail_uri??u.image_uri)},a(t.signMaterial),9,Mc),s("button",{type:"button",disabled:!!v.value||!u.is_selected,onClick:ae=>fi(u.image_id)},a(t.unselect),9,Rc),s("button",{type:"button",disabled:!!v.value||u.is_archived,onClick:ae=>pi(u.image_id)},a(t.archive),9,$c),s("button",{type:"button",disabled:!!v.value,onClick:ae=>hi(u.image_id)},a(t.delete),9,Bc)])]))),128)),A.value.length?z("",!0):(C(),S("li",Uc,a(t.emptyImages),1))]),Ve.value?(C(),S("pre",Vc,a(JSON.stringify(Ve.value,null,2)),1)):z("",!0),Z.value?(C(),S("pre",Lc,a(JSON.stringify(Z.value,null,2)),1)):z("",!0),s("section",Fc,[s("header",null,[s("h2",null,a(t.history),1),s("span",null,a(_.value.length),1)]),s("ul",null,[(C(!0),S(X,null,ge(_.value,u=>(C(),S("li",{key:u.history_id},[s("div",null,[s("strong",null,a(u.action),1),s("small",null,a(u.title??u.node_id??u.workflow_id),1)]),s("span",null,a(u.branch_name),1)]))),128)),_.value.length?z("",!0):(C(),S("li",Nc,a(t.emptyHistory),1))])]),y.value?(C(),S("section",jc,[s("header",null,[s("h2",null,a(t.reviewResult),1),s("span",null,a(y.value.passed?t.support:t.unsupported),1)]),s("pre",null,a(JSON.stringify(y.value,null,2)),1)])):z("",!0),h.value?(C(),S("pre",Wc,a(JSON.stringify(h.value.workflow,null,2)),1)):z("",!0)])])):z("",!0),l.value==="materials"?(C(),S("section",Hc,[s("div",Kc,[s("header",null,[s("h2",null,a(t.materialCategories),1),s("span",null,a(U.value.length),1)]),s("div",qc,[s("label",null,[s("span",null,a(t.name),1),R(s("input",{"onUpdate:modelValue":f[30]||(f[30]=u=>ye.value.name=u),type:"text"},null,512),[[L,ye.value.name]])]),s("label",null,[s("span",null,a(t.categoryType),1),R(s("input",{"onUpdate:modelValue":f[31]||(f[31]=u=>ye.value.category_type=u),type:"text"},null,512),[[L,ye.value.category_type]])]),s("label",null,[s("span",null,a(t.sortOrder),1),R(s("input",{"onUpdate:modelValue":f[32]||(f[32]=u=>ye.value.sort_order=u),type:"number"},null,512),[[L,ye.value.sort_order,void 0,{number:!0}]])]),s("button",{type:"button",disabled:!!v.value||!ye.value.name,onClick:Bi},a(ye.value.category_id?t.update:t.create),9,Jc),s("button",{type:"button",disabled:!!v.value,onClick:yn},a(t.reset),9,Gc)]),s("ul",null,[(C(!0),S(X,null,ge(U.value,u=>(C(),S("li",{key:u.category_id},[s("div",null,[s("strong",null,a(u.name),1),s("small",null,a(u.category_type),1)]),s("div",zc,[s("span",null,a(u.sort_order),1),s("button",{type:"button",disabled:!!v.value,onClick:ae=>$i(u)},a(t.edit),9,Yc),s("button",{type:"button",disabled:!!v.value,onClick:ae=>Ui(u.category_id)},a(t.delete),9,Qc)])]))),128)),U.value.length?z("",!0):(C(),S("li",Xc,a(t.emptyCategories),1))])]),s("div",Zc,[s("header",null,[s("h2",null,a(t.materialItems),1),s("div",ed,[s("span",null,a(D.value)+" "+a(t.pendingConfirm),1),s("button",{type:"button",disabled:!!v.value,onClick:Mi},a(t.signFirstImage),9,td)])]),s("div",nd,[s("label",null,[s("span",null,a(t.name),1),R(s("input",{"onUpdate:modelValue":f[33]||(f[33]=u=>ue.value.display_name=u),type:"text"},null,512),[[L,ue.value.display_name]])]),s("label",null,[s("span",null,a(t.imageUri),1),R(s("input",{"onUpdate:modelValue":f[34]||(f[34]=u=>ue.value.image_uri=u),type:"text",placeholder:"storage://materials/example.png"},null,512),[[L,ue.value.image_uri]])]),s("label",null,[s("span",null,a(t.category),1),R(s("select",{"onUpdate:modelValue":f[35]||(f[35]=u=>ue.value.category_id=u)},[s("option",ld,a(t.allCategories),1),(C(!0),S(X,null,ge(U.value,u=>(C(),S("option",{key:u.category_id,value:u.category_id},a(u.name),9,sd))),128))],512),[[Lt,ue.value.category_id]])]),s("label",null,[s("span",null,a(t.tags),1),R(s("input",{"onUpdate:modelValue":f[36]||(f[36]=u=>ue.value.tags=u),type:"text",placeholder:"daily, top"},null,512),[[L,ue.value.tags]])]),s("label",null,[s("span",null,a(t.prompt),1),R(s("input",{"onUpdate:modelValue":f[37]||(f[37]=u=>ue.value.prompt=u),type:"text"},null,512),[[L,ue.value.prompt]])]),s("label",null,[s("span",null,a(t.negativePrompt),1),R(s("input",{"onUpdate:modelValue":f[38]||(f[38]=u=>ue.value.negative_prompt=u),type:"text"},null,512),[[L,ue.value.negative_prompt]])]),s("button",{type:"button",disabled:!!v.value||!ue.value.display_name,onClick:Vi},a(ue.value.material_id?t.update:t.create),9,od),s("button",{type:"button",disabled:!!v.value,onClick:ll},a(t.reset),9,id)]),s("ul",null,[(C(!0),S(X,null,ge(((Yl=fe.value)==null?void 0:Yl.items)??[],u=>(C(),S("li",{key:u.material_id},[s("div",null,[s("strong",null,a(u.display_name),1),s("small",null,a(u.image_uri??t.noImage),1)]),s("div",rd,[s("span",ad,a(u.recognition_status),1),s("button",{type:"button",disabled:!!v.value,onClick:ae=>Li(u)},a(t.edit),9,ud),s("button",{type:"button",disabled:!!v.value,onClick:ae=>Fi(u.material_id)},a(t.recognize),9,cd),s("button",{type:"button",disabled:!!v.value||u.recognition_status==="confirmed",onClick:ae=>Ni(u)},a(t.confirm),9,dd),s("button",{type:"button",disabled:!!v.value,onClick:ae=>ji(u.material_id)},a(t.archive),9,fd)])]))),128)),(Ql=fe.value)!=null&&Ql.items.length?z("",!0):(C(),S("li",pd,a(t.emptyMaterials),1))]),Ve.value?(C(),S("pre",hd,a(JSON.stringify(Ve.value,null,2)),1)):z("",!0)])])):z("",!0),l.value==="wardrobe"?(C(),S("section",vd,[s("header",null,[s("h2",null,a(w.value),1),s("button",{type:"button",disabled:!b.value||!!v.value,onClick:bi},a(t.match),9,gd)]),s("div",_d,[s("label",null,[s("span",null,a(t.selectMaterial),1),R(s("select",{"onUpdate:modelValue":f[39]||(f[39]=u=>me.value.material_id=u)},[s("option",md,a(t.selectMaterial),1),(C(!0),S(X,null,ge(P.value,u=>(C(),S("option",{key:u.material_id,value:u.material_id},a(u.display_name),9,yd))),128))],512),[[Lt,me.value.material_id]])]),s("label",null,[s("span",null,a(t.wardrobeCategory),1),R(s("input",{"onUpdate:modelValue":f[40]||(f[40]=u=>me.value.wardrobe_category=u),type:"text"},null,512),[[L,me.value.wardrobe_category]])]),s("label",null,[s("span",null,a(t.tags),1),R(s("input",{"onUpdate:modelValue":f[41]||(f[41]=u=>me.value.tags=u),type:"text",placeholder:"daily, top"},null,512),[[L,me.value.tags]])]),s("label",null,[s("span",null,a(t.season),1),R(s("input",{"onUpdate:modelValue":f[42]||(f[42]=u=>me.value.season=u),type:"text"},null,512),[[L,me.value.season]])]),s("label",null,[s("span",null,a(t.style),1),R(s("input",{"onUpdate:modelValue":f[43]||(f[43]=u=>me.value.style=u),type:"text"},null,512),[[L,me.value.style]])]),s("button",{type:"button",disabled:!!v.value||!b.value||!me.value.material_id||!me.value.wardrobe_category,onClick:ki},a(t.importToWardrobe),9,bd)]),s("ul",null,[(C(!0),S(X,null,ge(Ae.value,u=>(C(),S("li",{key:u.wardrobe_item_id},[s("div",null,[s("strong",null,a(u.wardrobe_category),1),s("small",null,a(u.material_id)+" / "+a(u.tags.join(", ")||t.noTags),1)]),s("div",wd,[s("span",null,a(u.usage_count),1),s("button",{type:"button",disabled:!!v.value,onClick:ae=>xi(u.wardrobe_item_id)},a(t.delete),9,kd)])]))),128)),Ae.value.length?z("",!0):(C(),S("li",xd,a(t.emptyWardrobe),1))]),ft.value?(C(),S("pre",Cd,a(JSON.stringify(ft.value,null,2)),1)):z("",!0),s("div",Sd,[s("label",null,[s("span",null,a(t.categories),1),R(s("input",{"onUpdate:modelValue":f[44]||(f[44]=u=>Ee.value.categories=u),type:"text"},null,512),[[L,Ee.value.categories]])]),s("label",null,[s("span",null,a(t.mood),1),R(s("input",{"onUpdate:modelValue":f[45]||(f[45]=u=>Ee.value.mood=u),type:"text"},null,512),[[L,Ee.value.mood]])]),s("label",null,[s("span",null,a(t.weather),1),R(s("input",{"onUpdate:modelValue":f[46]||(f[46]=u=>Ee.value.weather=u),type:"text"},null,512),[[L,Ee.value.weather]])]),s("label",null,[s("span",null,a(t.keywords),1),R(s("input",{"onUpdate:modelValue":f[47]||(f[47]=u=>Ee.value.keywords=u),type:"text"},null,512),[[L,Ee.value.keywords]])]),s("button",{type:"button",disabled:!!v.value||!b.value,onClick:Ci},a(t.dailyOutfit),9,Pd)]),Tt.value?(C(),S("pre",Dd,a(JSON.stringify(Tt.value,null,2)),1)):z("",!0)])):z("",!0),l.value==="jobs"?(C(),S("section",Ed,[s("header",null,[s("h2",null,a(t.jobs),1),s("div",Td,[s("button",{type:"button",disabled:!!v.value,onClick:vi},a(t.moveFailed),9,Od),s("button",{type:"button",disabled:!!v.value,onClick:gi},a(t.retryDead),9,Id)])]),s("div",Ad,[s("label",null,[f[58]||(f[58]=s("span",null,"Status",-1)),R(s("select",{"onUpdate:modelValue":f[48]||(f[48]=u=>Ye.value.status=u)},[s("option",Md,a(t.allStatuses),1),(C(),S(X,null,ge(V,u=>s("option",{key:u,value:u},a(u),9,Rd)),64))],512),[[Lt,Ye.value.status]])]),s("label",null,[s("span",null,a(t.profiles),1),R(s("select",{"onUpdate:modelValue":f[49]||(f[49]=u=>Ye.value.profile_id=u)},[s("option",$d,a(t.allProfiles),1),(C(!0),S(X,null,ge(((Xl=r.value)==null?void 0:Xl.items)??[],u=>(C(),S("option",{key:u.profile_id,value:u.profile_id},a(u.name),9,Bd))),128))],512),[[Lt,Ye.value.profile_id]])]),s("label",null,[s("span",null,a(t.workflows),1),R(s("select",{"onUpdate:modelValue":f[50]||(f[50]=u=>Ye.value.workflow_id=u)},[s("option",Ud,a(t.allWorkflows),1),(C(!0),S(X,null,ge(c.value,u=>(C(),S("option",{key:u.workflow_id,value:u.workflow_id},a(u.display_name),9,Vd))),128))],512),[[Lt,Ye.value.workflow_id]])]),s("button",{type:"button",disabled:!!v.value,onClick:re},a(t.filter),9,Ld)]),s("ul",null,[(C(!0),S(X,null,ge(((Zl=N.value)==null?void 0:Zl.items)??[],u=>(C(),S("li",{key:u.task_id},[s("div",null,[s("strong",null,a(u.task_id),1),s("small",null,a(u.task_type)+" / "+a(u.progress)+"%",1)]),s("div",Fd,[s("span",Nd,a(u.status),1),["failed","dead_letter","cancelled"].includes(u.status)?(C(),S("button",{key:0,type:"button",onClick:ae=>Re(u.task_id)},a(t.retry),9,jd)):z("",!0),["completed","succeeded","cancelled"].includes(u.status)?z("",!0):(C(),S("button",{key:1,type:"button",onClick:ae=>Je(u.task_id)},a(t.cancel),9,Wd)),s("button",{type:"button",disabled:!!v.value,onClick:ae=>_n(u.task_id)},a(t.detail),9,Hd)])]))),128)),(es=N.value)!=null&&es.items.length?z("",!0):(C(),S("li",Kd,a(t.emptyJobs),1))]),he.value?(C(),S("section",qd,[s("header",null,[s("h2",null,a(t.jobDetail),1),s("span",null,a(he.value.status),1)]),s("pre",null,a(JSON.stringify(he.value,null,2)),1)])):z("",!0)])):z("",!0),l.value==="discovery"?(C(),S("section",Jd,[s("div",Gd,[s("header",null,[s("h2",null,a(t.dialects),1),s("div",zd,[s("button",{type:"button",disabled:!!v.value,onClick:mi},a(t.probeProvider),9,Yd),s("button",{type:"button",disabled:!!v.value,onClick:_i},a(t.safeProbe),9,Qd)])]),s("ul",null,[(C(!0),S(X,null,ge(Me.value,u=>(C(),S("li",{key:u.dialect},[s("div",null,[s("strong",null,a(u.label),1),s("small",null,a(u.capabilities.join(", ")||t.unconfirmed),1)]),s("span",null,a(u.dialect),1)]))),128))]),s("div",Xd,[s("label",null,[s("span",null,a(t.provider),1),R(s("input",{"onUpdate:modelValue":f[51]||(f[51]=u=>Ce.value.provider_id=u),type:"text",placeholder:"local-preview"},null,512),[[L,Ce.value.provider_id]])]),s("label",null,[s("span",null,a(t.model),1),R(s("input",{"onUpdate:modelValue":f[52]||(f[52]=u=>Ce.value.model_id=u),type:"text",placeholder:"metadata-only"},null,512),[[L,Ce.value.model_id]])]),s("label",null,[s("span",null,a(t.requiredCapabilities),1),R(s("input",{"onUpdate:modelValue":f[53]||(f[53]=u=>Ce.value.required_capabilities=u),type:"text",placeholder:"text_to_image"},null,512),[[L,Ce.value.required_capabilities]])]),s("button",{type:"button",disabled:!!v.value||!Ce.value.provider_id||!Ce.value.model_id,onClick:yi},a(t.validatePlan),9,Zd)]),Gt.value?(C(),S("pre",ef,a(JSON.stringify(Gt.value,null,2)),1)):z("",!0)]),s("div",tf,[s("header",null,[s("h2",null,a(t.capabilityProfiles),1),s("span",null,a(Ne.value.length),1)]),s("ul",null,[(C(!0),S(X,null,ge(Ne.value,u=>(C(),S("li",{key:u.capability_profile_id},[s("div",null,[s("strong",null,a(u.provider_id)+" / "+a(u.model_id),1),s("small",null,a(u.dialect),1)]),s("div",nf,[s("span",lf,a(u.status),1),s("button",{type:"button",disabled:!!v.value,onClick:ae=>tl(u,"confirmed_supported")},a(t.support),9,sf),s("button",{type:"button",disabled:!!v.value,onClick:ae=>tl(u,"confirmed_unsupported")},a(t.unsupported),9,of),s("button",{type:"button",disabled:!!v.value,onClick:ae=>tl(u,"unconfirmed")},a(t.unconfirmed),9,rf)])]))),128)),Ne.value.length?z("",!0):(C(),S("li",af,a(t.emptyCapabilities),1))])])])):z("",!0),l.value==="logs"?(C(),S("section",uf,[s("div",cf,[s("div",df,[s("header",null,[s("h2",null,a(t.generationLogs),1),s("span",null,a(_e.value.generation.length),1)]),s("ul",null,[(C(!0),S(X,null,ge(_e.value.generation,u=>(C(),S("li",{key:u.task_id},[s("div",null,[s("strong",null,a(u.task_id),1),s("small",null,a(u.status)+" / "+a(u.progress)+"%",1)]),s("span",null,a(u.created_at),1)]))),128)),_e.value.generation.length?z("",!0):(C(),S("li",ff,a(t.emptyGenerationLogs),1))])]),s("div",pf,[s("header",null,[s("h2",null,a(t.errorLogs),1),s("span",null,a(_e.value.errors.length),1)]),s("ul",null,[(C(!0),S(X,null,ge(_e.value.errors,u=>(C(),S("li",{key:`${u.source}-${u.id}`},[s("div",null,[s("strong",null,a(u.source),1),s("small",null,a(u.error_message??t.noErrorDetail),1)]),s("span",hf,a(u.status),1)]))),128)),_e.value.errors.length?z("",!0):(C(),S("li",vf,a(t.emptyErrors),1))])])]),s("div",gf,[s("div",_f,[s("header",null,[s("h2",null,a(t.workflowLogs),1),s("span",null,a(_e.value.workflows.length),1)]),s("ul",null,[(C(!0),S(X,null,ge(_e.value.workflows,u=>(C(),S("li",{key:u.history_id},[s("div",null,[s("strong",null,a(u.action),1),s("small",null,a(u.title??u.workflow_id),1)]),s("span",null,a(u.branch_name??"main"),1)]))),128)),_e.value.workflows.length?z("",!0):(C(),S("li",mf,a(t.emptyWorkflowLogs),1))])]),s("div",yf,[s("header",null,[s("h2",null,a(t.integrationLogs),1),s("span",null,a(_e.value.integrations.length),1)]),s("ul",null,[(C(!0),S(X,null,ge(_e.value.integrations,u=>(C(),S("li",{key:u.integration_log_id},[s("div",null,[s("strong",null,a(u.integration_name),1),s("small",null,a(u.action),1)]),s("span",bf,a(u.status),1)]))),128)),_e.value.integrations.length?z("",!0):(C(),S("li",wf,a(t.emptyIntegrationLogs),1))])])]),s("div",kf,[s("header",null,[s("h2",null,a(t.auditLogs),1),s("span",null,a(_e.value.audit.length),1)]),s("ul",null,[(C(!0),S(X,null,ge(_e.value.audit,u=>(C(),S("li",{key:u.audit_id},[s("div",null,[s("strong",null,a(u.action),1),s("small",null,a(u.actor_type)+" / "+a(u.target_type)+" / "+a(u.target_id),1)]),s("span",null,a(u.created_at),1)]))),128)),_e.value.audit.length?z("",!0):(C(),S("li",xf,a(t.emptyAuditLogs),1))])])])):z("",!0),l.value==="settings"?(C(),S("section",Cf,[s("div",Sf,[s("button",{type:"button",disabled:!!v.value,onClick:Si},a(t.reload),9,Pf),s("button",{type:"button",disabled:!!v.value,onClick:f[54]||(f[54]=u=>Ut())},a(t.reset),9,Df),s("button",{type:"button",disabled:!!v.value,onClick:Ei},a(t.validate),9,Ef),s("button",{type:"button",disabled:!!v.value,onClick:Ti},a(t.diff),9,Tf),s("button",{type:"button",disabled:!!v.value,onClick:Oi},a(t.save),9,Of),s("button",{type:"button",disabled:!!v.value,onClick:Pi},a(t.exportRedacted),9,If),s("button",{type:"button",disabled:!!v.value,onClick:ql},a(t.loadSnapshots),9,Af)]),s("div",Mf,[(C(!0),S(X,null,ge(((ts=de.value)==null?void 0:ts.sections)??[],u=>(C(),S("article",{key:u.key},[s("h2",null,a(u.title),1),s("span",null,a(u.fields.length),1)]))),128))]),s("section",Rf,[s("header",null,[s("h2",null,a(t.settingsEditor),1),s("span",null,a(((ns=H.value)==null?void 0:ns.config_path)??"***PATH***"),1)]),R(s("textarea",{"onUpdate:modelValue":f[55]||(f[55]=u=>pt.value=u),spellcheck:"false"},null,512),[[L,pt.value]])]),s("section",$f,[s("header",null,[s("h2",null,a(t.importSettings),1),s("button",{type:"button",disabled:!!v.value||!nt.value,onClick:Ii},a(t.importSettings),9,Bf)]),R(s("textarea",{"onUpdate:modelValue":f[56]||(f[56]=u=>nt.value=u),spellcheck:"false"},null,512),[[L,nt.value]])]),s("section",Uf,[s("header",null,[s("h2",null,a(t.snapshots),1),s("span",null,a(kt.value.length),1)]),s("ul",null,[(C(!0),S(X,null,ge(kt.value,u=>(C(),S("li",{key:u.snapshot_id},[s("div",null,[s("strong",null,a(u.reason),1),s("small",null,a(u.snapshot_id)+" / "+a(u.created_at),1)]),s("button",{type:"button",disabled:!!v.value,onClick:ae=>Ai(u.snapshot_id)},a(t.rollback),9,Vf)]))),128))])]),s("div",Lf,[s("div",Ff,[s("header",null,[s("h2",null,a(t.validationResult),1),s("span",null,a(((ls=xt.value)==null?void 0:ls.valid)??"-"),1)]),s("pre",null,a(JSON.stringify(xt.value??{},null,2)),1)]),s("div",Nf,[s("header",null,[s("h2",null,a(t.diffResult),1),s("span",null,a(((ss=ke.value)==null?void 0:ss.changes.length)??0),1)]),s("pre",null,a(JSON.stringify(ke.value??{},null,2)),1)])])])):z("",!0)],64))]),s("aside",jf,[s("h2",null,a(t.running),1),s("dl",null,[s("div",null,[f[59]||(f[59]=s("dt",null,"Pending",-1)),s("dd",null,a(((os=i.value)==null?void 0:os.queue.pending)??0),1)]),s("div",null,[f[60]||(f[60]=s("dt",null,"Running",-1)),s("dd",null,a(((is=i.value)==null?void 0:is.queue.running)??0),1)]),s("div",null,[f[61]||(f[61]=s("dt",null,"Failed",-1)),s("dd",null,a(((rs=i.value)==null?void 0:rs.queue.failed)??0),1)]),s("div",null,[f[62]||(f[62]=s("dt",null,"Dead",-1)),s("dd",null,a(((as=i.value)==null?void 0:as.queue.dead_letter)??0),1)])]),s("h2",null,a(t.storage),1),s("dl",null,[s("div",null,[f[63]||(f[63]=s("dt",null,"Images",-1)),s("dd",null,a(sl(Jl("storage://images/"))),1)]),s("div",null,[f[64]||(f[64]=s("dt",null,"Materials",-1)),s("dd",null,a(sl(Jl("storage://materials/"))),1)])])])])}}}),Hf=(e,t)=>{const n=e.__vccOpts||e;for(const[l,o]of t)n[l]=o;return n},Kf=Hf(Wf,[["__scopeId","data-v-c9c1e191"]]);hu(Kf).mount("#app"); diff --git a/web/assets/index-_0xdAcps.css b/web/assets/index-_0xdAcps.css new file mode 100644 index 0000000..b4b69e8 --- /dev/null +++ b/web/assets/index-_0xdAcps.css @@ -0,0 +1 @@ +.web-shell[data-v-17d37477]{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-17d37477],.inspector[data-v-17d37477]{background:#fff}.sidebar[data-v-17d37477]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-17d37477]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-17d37477]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-17d37477]{font-size:19px}.brand span[data-v-17d37477],p[data-v-17d37477],dt[data-v-17d37477],.empty[data-v-17d37477],small[data-v-17d37477]{color:#667085}nav[data-v-17d37477]{display:grid;gap:6px}button[data-v-17d37477]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-17d37477]:disabled{cursor:wait;opacity:.62}nav button[data-v-17d37477]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-17d37477]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-17d37477]{min-width:0;padding:24px}.topbar[data-v-17d37477],.list-view header[data-v-17d37477],.toolbar[data-v-17d37477],.inline-actions[data-v-17d37477]{display:flex;gap:12px;align-items:center}.topbar[data-v-17d37477],.list-view header[data-v-17d37477]{justify-content:space-between}.actions[data-v-17d37477],.inline-actions[data-v-17d37477]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-17d37477],.toolbar button[data-v-17d37477],.list-view header button[data-v-17d37477],.inline-actions button[data-v-17d37477]{padding:0 14px}h1[data-v-17d37477],h2[data-v-17d37477],p[data-v-17d37477],dl[data-v-17d37477],dd[data-v-17d37477]{margin:0}h1[data-v-17d37477]{min-height:30px;font-size:26px}h2[data-v-17d37477]{font-size:15px}.notice[data-v-17d37477],article[data-v-17d37477],.list-view[data-v-17d37477],.editor-panel[data-v-17d37477],pre[data-v-17d37477]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-17d37477]{margin-top:18px;padding:14px}.error[data-v-17d37477]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-17d37477],.split-view[data-v-17d37477]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-17d37477]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-17d37477]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-17d37477]{display:grid;gap:8px;padding:16px}article span[data-v-17d37477]{color:#667085;font-size:13px}article strong[data-v-17d37477]{font-size:24px}.list-view[data-v-17d37477],.logs-view[data-v-17d37477],.settings-view[data-v-17d37477]{margin-top:18px}.split-view .list-view[data-v-17d37477],.logs-view .list-view[data-v-17d37477]{margin-top:0}.list-view[data-v-17d37477]{padding:16px}.editor-panel[data-v-17d37477]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-17d37477]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-17d37477]{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-17d37477]{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-17d37477]{display:grid;gap:5px;min-width:0}label span[data-v-17d37477]{color:#667085;font-size:12px}.wide-field[data-v-17d37477]{grid-column:1 / -1}input[data-v-17d37477],select[data-v-17d37477]{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-17d37477]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-17d37477]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-17d37477]:first-child{border-top:0}li>div[data-v-17d37477]{display:grid;gap:3px;min-width:0}li strong[data-v-17d37477],li span[data-v-17d37477],li small[data-v-17d37477]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-17d37477]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-17d37477]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-17d37477]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-17d37477]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-17d37477]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-17d37477]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-17d37477]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-17d37477]{display:none}}@media(max-width:820px){.web-shell[data-v-17d37477]{grid-template-columns:1fr}.sidebar[data-v-17d37477]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-17d37477]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-17d37477]{text-align:center}.dashboard-grid[data-v-17d37477],.split-view[data-v-17d37477],.settings-sections[data-v-17d37477]{grid-template-columns:1fr}.topbar[data-v-17d37477],.list-view header[data-v-17d37477]{align-items:flex-start;flex-direction:column}} diff --git a/web/index.html b/web/index.html index 450bded..c5c89ea 100644 --- a/web/index.html +++ b/web/index.html @@ -1,3 +1,3 @@ - - + +