diff --git a/frontend/shared/api/endpoints.ts b/frontend/shared/api/endpoints.ts index c19738e..4788714 100644 --- a/frontend/shared/api/endpoints.ts +++ b/frontend/shared/api/endpoints.ts @@ -4,6 +4,7 @@ export const endpoints = { uiBootstrap: "ui/bootstrap", dashboardSummary: "dashboard/summary", profiles: "profiles", + profile: (profileId: string) => `profiles/${profileId}`, quickProfileDraft: "profiles/quick-draft", jobs: "jobs", jobCancel: (taskId: string) => `jobs/${taskId}/cancel`, diff --git a/frontend/shared/types/profile.ts b/frontend/shared/types/profile.ts index 9045bb1..4c36aa8 100644 --- a/frontend/shared/types/profile.ts +++ b/frontend/shared/types/profile.ts @@ -4,6 +4,10 @@ export interface CharacterProfile { status: string avatar_image_uri?: string | null description?: string | null + base_prompt?: string | null + appearance_prompt?: string | null + style_prompt?: string | null + negative_prompt?: string | null default_model_route?: string | null created_at: string updated_at: string @@ -15,3 +19,14 @@ export interface ProfileListResult { page: number page_size: number } + +export interface QuickProfileDraftResult { + draft_id: string + profile_preview: { + name: string + base_prompt: string + appearance_prompt: string + style_prompt: string + negative_prompt: string + } +} diff --git a/frontend/standalone-web/src/App.vue b/frontend/standalone-web/src/App.vue index 4ecd086..e2a4fd0 100644 --- a/frontend/standalone-web/src/App.vue +++ b/frontend/standalone-web/src/App.vue @@ -8,7 +8,7 @@ import type { ApiDialect, CapabilityProfile, RenderPlanValidationResult } from " import type { JobListResult } from "../../shared/types/job" import type { LogBundle } from "../../shared/types/logs" import type { Material, MaterialCategory, MaterialListResult } from "../../shared/types/material" -import type { ProfileListResult } from "../../shared/types/profile" +import type { CharacterProfile, ProfileListResult, QuickProfileDraftResult } from "../../shared/types/profile" import type { CurrentSettings, DiffSettingsResult, @@ -34,10 +34,21 @@ const text = { noTags: "\u65e0\u6807\u7b7e", noImage: "\u672a\u7ed1\u5b9a\u56fe\u7247", create: "\u65b0\u5efa", + quickDraft: "\u5feb\u901f\u8349\u7a3f", archive: "\u5f52\u6863", recognize: "\u8bc6\u522b", confirm: "\u786e\u8ba4", name: "\u540d\u79f0", + identity: "\u8eab\u4efd", + personality: "\u6027\u683c", + hairColor: "\u53d1\u8272", + hairstyle: "\u53d1\u578b", + eyeColor: "\u773c\u8272", + description: "\u63cf\u8ff0", + basePrompt: "\u57fa\u7840\u63d0\u793a\u8bcd", + appearancePrompt: "\u5916\u89c2\u63d0\u793a\u8bcd", + stylePrompt: "\u98ce\u683c\u63d0\u793a\u8bcd", + negativePrompt: "\u53cd\u5411\u63d0\u793a\u8bcd", imageUri: "\u56fe\u7247 URI", tags: "\u6807\u7b7e", category: "\u5206\u7c7b", @@ -61,6 +72,8 @@ const text = { logs: "\u65e5\u5fd7\u5ba1\u8ba1", settings: "\u8bbe\u7f6e", profileList: "\u89d2\u8272\u5217\u8868", + profileCreated: "\u89d2\u8272\u5df2\u521b\u5efa", + profileDeleted: "\u89d2\u8272\u5df2\u5220\u9664", emptyProfiles: "\u6682\u65e0\u89d2\u8272", categories: "\u7d20\u6750\u5206\u7c7b", materialItems: "\u7d20\u6750\u6761\u76ee", @@ -149,6 +162,18 @@ const signedMedia = ref(null) const settingsDraft = ref("") const settingsValidation = ref(null) const settingsDiff = ref(null) +const profileDraft = ref({ + name: "", + identity: "", + personality: "", + hair_color: "", + hairstyle: "", + eye_color: "", + style: "", + clothing_keywords: "", + description: "", +}) +const quickProfileDraft = ref(null) const materialDraft = ref({ display_name: "", image_uri: "", @@ -307,6 +332,74 @@ function cancelJob(taskId: string) { return runOperation(text.cancel, () => postJson(endpoints.jobCancel(taskId))) } +function resetProfileDraft() { + profileDraft.value = { + name: "", + identity: "", + personality: "", + hair_color: "", + hairstyle: "", + eye_color: "", + style: "", + clothing_keywords: "", + description: "", + } + quickProfileDraft.value = null +} + +function createQuickProfileDraft() { + return runOperation( + text.quickDraft, + async () => { + quickProfileDraft.value = await postJson(endpoints.quickProfileDraft, { + questionnaire: { + name: profileDraft.value.name, + identity: profileDraft.value.identity, + personality: splitCsv(profileDraft.value.personality), + hair_color: profileDraft.value.hair_color, + hairstyle: profileDraft.value.hairstyle, + eye_color: profileDraft.value.eye_color, + style: profileDraft.value.style, + clothing_keywords: splitCsv(profileDraft.value.clothing_keywords), + }, + }) + return quickProfileDraft.value + }, + false, + ) +} + +function createProfileFromDraft() { + const preview = quickProfileDraft.value?.profile_preview + return runOperation( + text.create, + async () => { + const profile = await postJson(endpoints.profiles, { + name: preview?.name || profileDraft.value.name, + description: profileDraft.value.description, + base_prompt: preview?.base_prompt, + appearance_prompt: preview?.appearance_prompt, + style_prompt: preview?.style_prompt, + negative_prompt: preview?.negative_prompt, + }) + resetProfileDraft() + lastOperation.value = text.profileCreated + return profile + }, + ) +} + +function deleteProfile(profileId: string) { + return runOperation( + text.delete, + async () => { + const profile = await request(endpoints.profile(profileId), { method: "DELETE" }) + lastOperation.value = text.profileDeleted + return profile + }, + ) +} + function moveFailedJobs() { return runOperation(text.moveFailed, () => postJson(endpoints.jobDeadLetterMoveFailed, { limit: 20 })) } @@ -639,13 +732,63 @@ function storageRootBytes(uriPrefix: string) {

{{ text.profileList }}

{{ profiles?.total ?? 0 }} +
+ + + + + + + + + + + +
+
{{ JSON.stringify(quickProfileDraft, null, 2) }}
  • {{ profile.name }} {{ profile.profile_id }}
    - {{ profile.status }} +
    + {{ profile.status }} + +
  • {{ text.emptyProfiles }}
@@ -1300,6 +1443,10 @@ label span { font-size: 12px; } +.wide-field { + grid-column: 1 / -1; +} + input, select { box-sizing: border-box; diff --git a/pages/imagestudio/assets/index-CljldSfK.js b/pages/imagestudio/assets/index-B6yxsdBD.js similarity index 92% rename from pages/imagestudio/assets/index-CljldSfK.js rename to pages/imagestudio/assets/index-B6yxsdBD.js index 76779bb..a6d99d2 100644 --- a/pages/imagestudio/assets/index-CljldSfK.js +++ b/pages/imagestudio/assets/index-B6yxsdBD.js @@ -14,4 +14,4 @@ var qr=Object.defineProperty;var Gr=(e,t,s)=>t in e?qr(e,t,{enumerable:!0,config * @vue/runtime-dom v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Is;const Cn=typeof window<"u"&&window.trustedTypes;if(Cn)try{Is=Cn.createPolicy("vue",{createHTML:e=>e})}catch{}const Ur=Is?e=>Is.createHTML(e):e=>e,Jo="http://www.w3.org/2000/svg",Yo="http://www.w3.org/1998/Math/MathML",Le=typeof document<"u"?document:null,Tn=Le&&Le.createElement("template"),zo={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(Jo,e):t==="mathml"?Le.createElementNS(Yo,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]}},ko=Symbol("_vtc");function Xo(e,t,s){const n=e[ko];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=z(s);let i=!1;if(s&&!r){if(t)if(z(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&_t(n,l,"")}else for(const o in t)s[o]==null&&_t(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?nl(e,o,!z(t)&&t?t[o]:void 0,l)||_t(n,o,l):_t(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 _t(e,t,s){if(M(s))s.forEach(n=>_t(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):zt(t)?kt(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)||!z(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&&Fn(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 Fn(t)&&z(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 _l=Q({patchProp:hl},zo);let Dn;function ml(){return Dn||(Dn=Eo(_l))}const bl=((...e)=>{const t=ml().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 z(e)?document.querySelector(e):e}const xl="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",jn={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",quickProfileDraft:"profiles/quick-draft",jobs:"jobs",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",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class Sl 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 $n(e,t){return wl(e,{method:"GET",query:t})}async function wl(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 Sl(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"},Fl={class:"activity"},Dl={key:0,class:"empty"},jl={key:0,class:"empty"},$l=qi({__name:"App",setup(e){const t=Ht(null),s=Ht(null),n=Ht(!0),r=Ht(""),i=Rs(()=>{var d;return`${((d=t.value)==null?void 0:d.api_base)??""}/web`}),o=Rs(()=>{var a;const d=(a=s.value)==null?void 0:a.queue;return d?d.pending+d.running+d.failed+d.dead_letter:0});br(l);async function l(){n.value=!0,r.value="";try{const[d,a]=await Promise.all([$n(jn.uiBootstrap),$n(jn.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,w,C,j,A,G,K,I,H,O,Y,ce,fe,ge;return he(),_e("main",Tl,[F("header",El,[F("div",null,[F("h1",null,oe(((p=t.value)==null?void 0:p.display_name)??"ImageStudio"),1),F("p",null,oe(((w=t.value)==null?void 0:w.dashboard_user)??"AstrBot"),1)]),F("div",Ol,[F("span",{class:"status","data-state":((C=s.value)==null?void 0:C.plugin_status)??"loading"},oe(((j=s.value)==null?void 0:j.plugin_status)??"loading"),9,Al),F("button",{type:"button",onClick:l},"刷新"),t.value?(he(),_e("a",{key:0,class:"primary",href:i.value,target:"_blank",rel:"noreferrer"},"工作台",8,Pl)):bs("",!0)])]),r.value?(he(),_e("section",Ml,oe(r.value),1)):n.value?(he(),_e("section",Rl,"加载中")):(he(),_e("section",Il,[F("article",null,[a[0]||(a[0]=F("span",null,"角色",-1)),F("strong",null,oe(((A=s.value)==null?void 0:A.active_profiles)??0),1)]),F("article",null,[a[1]||(a[1]=F("span",null,"队列",-1)),F("strong",null,oe(o.value),1)]),F("article",null,[a[2]||(a[2]=F("span",null,"运行中",-1)),F("strong",null,oe(((G=s.value)==null?void 0:G.queue.running)??0),1)]),F("article",null,[a[3]||(a[3]=F("span",null,"失败",-1)),F("strong",null,oe(((K=s.value)==null?void 0:K.queue.failed)??0),1)]),F("article",null,[a[4]||(a[4]=F("span",null,"存储",-1)),F("strong",null,oe(f((I=s.value)==null?void 0:I.storage.total_bytes)),1)])])),F("section",Fl,[F("div",null,[a[5]||(a[5]=F("h2",null,"最近图片",-1)),F("ul",null,[(he(!0),_e(me,null,dn(((H=s.value)==null?void 0:H.recent_images)??[],de=>(he(),_e("li",{key:String(de.image_id)},[F("span",null,oe(de.image_id),1),F("small",null,oe(de.created_at),1)]))),128)),(Y=(O=s.value)==null?void 0:O.recent_images)!=null&&Y.length?bs("",!0):(he(),_e("li",Dl,"暂无图片"))])]),F("div",null,[a[6]||(a[6]=F("h2",null,"任务",-1)),F("ul",null,[(he(!0),_e(me,null,dn(((ce=s.value)==null?void 0:ce.recent_jobs)??[],de=>(he(),_e("li",{key:String(de.task_id)},[F("span",null,oe(de.task_id),1),F("small",null,oe(de.status),1)]))),128)),(ge=(fe=s.value)==null?void 0:fe.recent_jobs)!=null&&ge.length?bs("",!0):(he(),_e("li",jl,"暂无任务"))])])])])}}}),Ll=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Hl=Ll($l,[["__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,Jo="http://www.w3.org/2000/svg",Yo="http://www.w3.org/1998/Math/MathML",Le=typeof document<"u"?document:null,Tn=Le&&Le.createElement("template"),zo={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(Jo,e):t==="mathml"?Le.createElementNS(Yo,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]}},ko=Symbol("_vtc");function Xo(e,t,s){const n=e[ko];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=z(s);let i=!1;if(s&&!r){if(t)if(z(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&_t(n,l,"")}else for(const o in t)s[o]==null&&_t(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?nl(e,o,!z(t)&&t?t[o]:void 0,l)||_t(n,o,l):_t(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 _t(e,t,s){if(M(s))s.forEach(n=>_t(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):zt(t)?kt(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)||!z(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&&Fn(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 Fn(t)&&z(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 _l=Q({patchProp:hl},zo);let Dn;function ml(){return Dn||(Dn=Eo(_l))}const bl=((...e)=>{const t=ml().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 z(e)?document.querySelector(e):e}const xl="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",jn={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",jobs:"jobs",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",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class Sl 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 $n(e,t){return wl(e,{method:"GET",query:t})}async function wl(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 Sl(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"},Fl={class:"activity"},Dl={key:0,class:"empty"},jl={key:0,class:"empty"},$l=qi({__name:"App",setup(e){const t=Ht(null),s=Ht(null),n=Ht(!0),r=Ht(""),i=Rs(()=>{var d;return`${((d=t.value)==null?void 0:d.api_base)??""}/web`}),o=Rs(()=>{var a;const d=(a=s.value)==null?void 0:a.queue;return d?d.pending+d.running+d.failed+d.dead_letter:0});br(l);async function l(){n.value=!0,r.value="";try{const[d,a]=await Promise.all([$n(jn.uiBootstrap),$n(jn.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,w,C,j,A,G,K,I,H,O,Y,ce,fe,ge;return he(),_e("main",Tl,[F("header",El,[F("div",null,[F("h1",null,oe(((p=t.value)==null?void 0:p.display_name)??"ImageStudio"),1),F("p",null,oe(((w=t.value)==null?void 0:w.dashboard_user)??"AstrBot"),1)]),F("div",Ol,[F("span",{class:"status","data-state":((C=s.value)==null?void 0:C.plugin_status)??"loading"},oe(((j=s.value)==null?void 0:j.plugin_status)??"loading"),9,Al),F("button",{type:"button",onClick:l},"刷新"),t.value?(he(),_e("a",{key:0,class:"primary",href:i.value,target:"_blank",rel:"noreferrer"},"工作台",8,Pl)):bs("",!0)])]),r.value?(he(),_e("section",Ml,oe(r.value),1)):n.value?(he(),_e("section",Rl,"加载中")):(he(),_e("section",Il,[F("article",null,[a[0]||(a[0]=F("span",null,"角色",-1)),F("strong",null,oe(((A=s.value)==null?void 0:A.active_profiles)??0),1)]),F("article",null,[a[1]||(a[1]=F("span",null,"队列",-1)),F("strong",null,oe(o.value),1)]),F("article",null,[a[2]||(a[2]=F("span",null,"运行中",-1)),F("strong",null,oe(((G=s.value)==null?void 0:G.queue.running)??0),1)]),F("article",null,[a[3]||(a[3]=F("span",null,"失败",-1)),F("strong",null,oe(((K=s.value)==null?void 0:K.queue.failed)??0),1)]),F("article",null,[a[4]||(a[4]=F("span",null,"存储",-1)),F("strong",null,oe(f((I=s.value)==null?void 0:I.storage.total_bytes)),1)])])),F("section",Fl,[F("div",null,[a[5]||(a[5]=F("h2",null,"最近图片",-1)),F("ul",null,[(he(!0),_e(me,null,dn(((H=s.value)==null?void 0:H.recent_images)??[],de=>(he(),_e("li",{key:String(de.image_id)},[F("span",null,oe(de.image_id),1),F("small",null,oe(de.created_at),1)]))),128)),(Y=(O=s.value)==null?void 0:O.recent_images)!=null&&Y.length?bs("",!0):(he(),_e("li",Dl,"暂无图片"))])]),F("div",null,[a[6]||(a[6]=F("h2",null,"任务",-1)),F("ul",null,[(he(!0),_e(me,null,dn(((ce=s.value)==null?void 0:ce.recent_jobs)??[],de=>(he(),_e("li",{key:String(de.task_id)},[F("span",null,oe(de.task_id),1),F("small",null,oe(de.status),1)]))),128)),(ge=(fe=s.value)==null?void 0:fe.recent_jobs)!=null&&ge.length?bs("",!0):(he(),_e("li",jl,"暂无任务"))])])])])}}}),Ll=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Hl=Ll($l,[["__scopeId","data-v-7e06e9af"]]);bl(Hl).mount("#app"); diff --git a/pages/imagestudio/index.html b/pages/imagestudio/index.html index e3c5de9..34dda5a 100644 --- a/pages/imagestudio/index.html +++ b/pages/imagestudio/index.html @@ -1,3 +1,3 @@ - +
diff --git a/web/assets/index-C-dyO4IO.css b/web/assets/index-C-dyO4IO.css new file mode 100644 index 0000000..77f5ff1 --- /dev/null +++ b/web/assets/index-C-dyO4IO.css @@ -0,0 +1 @@ +.web-shell[data-v-d9e04eb8]{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-d9e04eb8],.inspector[data-v-d9e04eb8]{background:#fff}.sidebar[data-v-d9e04eb8]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-d9e04eb8]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-d9e04eb8]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-d9e04eb8]{font-size:19px}.brand span[data-v-d9e04eb8],p[data-v-d9e04eb8],dt[data-v-d9e04eb8],.empty[data-v-d9e04eb8],small[data-v-d9e04eb8]{color:#667085}nav[data-v-d9e04eb8]{display:grid;gap:6px}button[data-v-d9e04eb8]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-d9e04eb8]:disabled{cursor:wait;opacity:.62}nav button[data-v-d9e04eb8]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-d9e04eb8]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-d9e04eb8]{min-width:0;padding:24px}.topbar[data-v-d9e04eb8],.list-view header[data-v-d9e04eb8],.toolbar[data-v-d9e04eb8],.inline-actions[data-v-d9e04eb8]{display:flex;gap:12px;align-items:center}.topbar[data-v-d9e04eb8],.list-view header[data-v-d9e04eb8]{justify-content:space-between}.actions[data-v-d9e04eb8],.inline-actions[data-v-d9e04eb8]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-d9e04eb8],.toolbar button[data-v-d9e04eb8],.list-view header button[data-v-d9e04eb8],.inline-actions button[data-v-d9e04eb8]{padding:0 14px}h1[data-v-d9e04eb8],h2[data-v-d9e04eb8],p[data-v-d9e04eb8],dl[data-v-d9e04eb8],dd[data-v-d9e04eb8]{margin:0}h1[data-v-d9e04eb8]{min-height:30px;font-size:26px}h2[data-v-d9e04eb8]{font-size:15px}.notice[data-v-d9e04eb8],article[data-v-d9e04eb8],.list-view[data-v-d9e04eb8],.editor-panel[data-v-d9e04eb8],pre[data-v-d9e04eb8]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-d9e04eb8]{margin-top:18px;padding:14px}.error[data-v-d9e04eb8]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-d9e04eb8],.split-view[data-v-d9e04eb8]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-d9e04eb8]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-d9e04eb8]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-d9e04eb8]{display:grid;gap:8px;padding:16px}article span[data-v-d9e04eb8]{color:#667085;font-size:13px}article strong[data-v-d9e04eb8]{font-size:24px}.list-view[data-v-d9e04eb8],.logs-view[data-v-d9e04eb8],.settings-view[data-v-d9e04eb8]{margin-top:18px}.split-view .list-view[data-v-d9e04eb8],.logs-view .list-view[data-v-d9e04eb8]{margin-top:0}.list-view[data-v-d9e04eb8]{padding:16px}.editor-panel[data-v-d9e04eb8]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-d9e04eb8]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-d9e04eb8]{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-d9e04eb8]{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-d9e04eb8]{display:grid;gap:5px;min-width:0}label span[data-v-d9e04eb8]{color:#667085;font-size:12px}.wide-field[data-v-d9e04eb8]{grid-column:1 / -1}input[data-v-d9e04eb8],select[data-v-d9e04eb8]{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-d9e04eb8]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-d9e04eb8]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-d9e04eb8]:first-child{border-top:0}li>div[data-v-d9e04eb8]{display:grid;gap:3px;min-width:0}li strong[data-v-d9e04eb8],li span[data-v-d9e04eb8],li small[data-v-d9e04eb8]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-d9e04eb8]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-d9e04eb8]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-d9e04eb8]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-d9e04eb8]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-d9e04eb8]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-d9e04eb8]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-d9e04eb8]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-d9e04eb8]{display:none}}@media(max-width:820px){.web-shell[data-v-d9e04eb8]{grid-template-columns:1fr}.sidebar[data-v-d9e04eb8]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-d9e04eb8]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-d9e04eb8]{text-align:center}.dashboard-grid[data-v-d9e04eb8],.split-view[data-v-d9e04eb8],.settings-sections[data-v-d9e04eb8]{grid-template-columns:1fr}.topbar[data-v-d9e04eb8],.list-view header[data-v-d9e04eb8]{align-items:flex-start;flex-direction:column}} diff --git a/web/assets/index-CiytwhbS.js b/web/assets/index-CiytwhbS.js new file mode 100644 index 0000000..5e6fd6f --- /dev/null +++ b/web/assets/index-CiytwhbS.js @@ -0,0 +1,17 @@ +var Mi=Object.defineProperty;var Ii=(e,t,n)=>t in e?Mi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Jn=(e,t,n)=>Ii(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();/** +* @vue/shared v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function vs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const te={},Mt=[],Xe=()=>{},El=()=>!1,Rn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),kn=e=>e.startsWith("onUpdate:"),Se=Object.assign,ms=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ri=Object.prototype.hasOwnProperty,z=(e,t)=>Ri.call(e,t),$=Array.isArray,It=e=>ln(e)==="[object Map]",Fn=e=>ln(e)==="[object Set]",qs=e=>ln(e)==="[object Date]",V=e=>typeof e=="function",de=e=>typeof e=="string",Qe=e=>typeof e=="symbol",ee=e=>e!==null&&typeof e=="object",Pl=e=>(ee(e)||V(e))&&V(e.then)&&V(e.catch),Tl=Object.prototype.toString,ln=e=>Tl.call(e),ki=e=>ln(e).slice(8,-1),Ol=e=>ln(e)==="[object Object]",ys=e=>de(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Kt=vs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ln=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Fi=/-\w/g,Ne=Ln(e=>e.replace(Fi,t=>t.slice(1).toUpperCase())),Li=/\B([A-Z])/g,Pt=Ln(e=>e.replace(Li,"-$1").toLowerCase()),Dl=Ln(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gn=Ln(e=>e?`on${Dl(e)}`:""),Ye=(e,t)=>!Object.is(e,t),wn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},$n=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Js;const jn=()=>Js||(Js=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bs(e){if($(e)){const t={};for(let n=0;n{if(n){const s=n.split(ji);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Vn(e){let t="";if(de(e))t=e;else if($(e))for(let n=0;nrn(n,t))}const Il=e=>!!(e&&e.__v_isRef===!0),d=e=>de(e)?e:e==null?"":$(e)||ee(e)&&(e.toString===Tl||!V(e.toString))?Il(e)?d(e.value):JSON.stringify(e,Rl,2):String(e),Rl=(e,t)=>Il(t)?Rl(e,t.value):It(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,l],i)=>(n[zn(s,i)+" =>"]=l,n),{})}:Fn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>zn(n))}:Qe(t)?zn(t):ee(t)&&!$(t)&&!Ol(t)?String(t):t,zn=(e,t="")=>{var n;return Qe(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 xe;class Ki{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&&xe&&(xe.active?(this.parent=xe,this.index=(xe.scopes||(xe.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(xe===this)xe=this.prevScope;else{let t=xe;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,s;for(n=0,s=this.effects.length;n0)return;if(Jt){let t=Jt;for(Jt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;qt;){let t=qt;for(qt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function $l(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function jl(e){let t,n=e.depsTail,s=n;for(;s;){const l=s.prevDep;s.version===-1?(s===n&&(n=l),Ss(s),Ji(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=l}e.deps=t,e.depsTail=n}function rs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Vl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Vl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Zt)||(e.globalVersion=Zt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!rs(e))))return;e.flags|=2;const t=e.dep,n=se,s=Be;se=e,Be=!0;try{$l(e);const l=e.fn(e._value);(t.version===0||Ye(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{se=n,Be=s,jl(e),e.flags&=-3}}function Ss(e,t=!1){const{dep:n,prevSub:s,nextSub:l}=e;if(s&&(s.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ss(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ji(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Be=!0;const Nl=[];function Ze(){Nl.push(Be),Be=!1}function et(){const e=Nl.pop();Be=e===void 0?!0:e}function Gs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=se;se=void 0;try{t()}finally{se=n}}}let Zt=0;class Gi{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 Cs{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(!se||!Be||se===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==se)n=this.activeLink=new Gi(se,this),se.deps?(n.prevDep=se.depsTail,se.depsTail.nextDep=n,se.depsTail=n):se.deps=se.depsTail=n,Bl(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=se.depsTail,n.nextDep=void 0,se.depsTail.nextDep=n,se.depsTail=n,se.deps===n&&(se.deps=s)}return n}trigger(t){this.version++,Zt++,this.notify(t)}notify(t){ws();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{xs()}}}function Bl(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Bl(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const os=new WeakMap,Ct=Symbol(""),as=Symbol(""),en=Symbol("");function Te(e,t,n){if(Be&&se){let s=os.get(e);s||os.set(e,s=new Map);let l=s.get(n);l||(s.set(n,l=new Cs),l.map=s,l.key=n),l.track()}}function at(e,t,n,s,l,i){const r=os.get(e);if(!r){Zt++;return}const a=c=>{c&&c.trigger()};if(ws(),t==="clear")r.forEach(a);else{const c=$(e),g=c&&ys(n);if(c&&n==="length"){const p=Number(s);r.forEach((y,O)=>{(O==="length"||O===en||!Qe(O)&&O>=p)&&a(y)})}else switch((n!==void 0||r.has(void 0))&&a(r.get(n)),g&&a(r.get(en)),t){case"add":c?g&&a(r.get("length")):(a(r.get(Ct)),It(e)&&a(r.get(as)));break;case"delete":c||(a(r.get(Ct)),It(e)&&a(r.get(as)));break;case"set":It(e)&&a(r.get(Ct));break}}xs()}function Dt(e){const t=G(e);return t===e?t:(Te(t,"iterate",en),Ve(e)?t:t.map(Ue))}function Nn(e){return Te(e=G(e),"iterate",en),e}function Ge(e,t){return ft(e)?Lt(Et(e)?Ue(t):t):Ue(t)}const zi={__proto__:null,[Symbol.iterator](){return Xn(this,Symbol.iterator,e=>Ge(this,e))},concat(...e){return Dt(this).concat(...e.map(t=>$(t)?Dt(t):t))},entries(){return Xn(this,"entries",e=>(e[1]=Ge(this,e[1]),e))},every(e,t){return it(this,"every",e,t,void 0,arguments)},filter(e,t){return it(this,"filter",e,t,n=>n.map(s=>Ge(this,s)),arguments)},find(e,t){return it(this,"find",e,t,n=>Ge(this,n),arguments)},findIndex(e,t){return it(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return it(this,"findLast",e,t,n=>Ge(this,n),arguments)},findLastIndex(e,t){return it(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return it(this,"forEach",e,t,void 0,arguments)},includes(...e){return Qn(this,"includes",e)},indexOf(...e){return Qn(this,"indexOf",e)},join(e){return Dt(this).join(e)},lastIndexOf(...e){return Qn(this,"lastIndexOf",e)},map(e,t){return it(this,"map",e,t,void 0,arguments)},pop(){return Bt(this,"pop")},push(...e){return Bt(this,"push",e)},reduce(e,...t){return zs(this,"reduce",e,t)},reduceRight(e,...t){return zs(this,"reduceRight",e,t)},shift(){return Bt(this,"shift")},some(e,t){return it(this,"some",e,t,void 0,arguments)},splice(...e){return Bt(this,"splice",e)},toReversed(){return Dt(this).toReversed()},toSorted(e){return Dt(this).toSorted(e)},toSpliced(...e){return Dt(this).toSpliced(...e)},unshift(...e){return Bt(this,"unshift",e)},values(){return Xn(this,"values",e=>Ge(this,e))}};function Xn(e,t,n){const s=Nn(e),l=s[t]();return s!==e&&!Ve(e)&&(l._next=l.next,l.next=()=>{const i=l._next();return i.done||(i.value=n(i.value)),i}),l}const Yi=Array.prototype;function it(e,t,n,s,l,i){const r=Nn(e),a=r!==e&&!Ve(e),c=r[t];if(c!==Yi[t]){const y=c.apply(e,i);return a?Ue(y):y}let g=n;r!==e&&(a?g=function(y,O){return n.call(this,Ge(e,y),O,e)}:n.length>2&&(g=function(y,O){return n.call(this,y,O,e)}));const p=c.call(r,g,s);return a&&l?l(p):p}function zs(e,t,n,s){const l=Nn(e),i=l!==e&&!Ve(e);let r=n,a=!1;l!==e&&(i?(a=s.length===0,r=function(g,p,y){return a&&(a=!1,g=Ge(e,g)),n.call(this,g,Ge(e,p),y,e)}):n.length>3&&(r=function(g,p,y){return n.call(this,g,p,y,e)}));const c=l[t](r,...s);return a?Ge(e,c):c}function Qn(e,t,n){const s=G(e);Te(s,"iterate",en);const l=s[t](...n);return(l===-1||l===!1)&&Os(n[0])?(n[0]=G(n[0]),s[t](...n)):l}function Bt(e,t,n=[]){Ze(),ws();const s=G(e)[t].apply(e,n);return xs(),et(),s}const Xi=vs("__proto__,__v_isRef,__isVue"),Ul=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Qe));function Qi(e){Qe(e)||(e=String(e));const t=G(this);return Te(t,"has",e),t.hasOwnProperty(e)}class Hl{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const l=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!l;if(n==="__v_isReadonly")return l;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(l?i?ar:Jl:i?ql:Kl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=$(t);if(!l){let c;if(r&&(c=zi[n]))return c;if(n==="hasOwnProperty")return Qi}const a=Reflect.get(t,n,Oe(t)?t:s);if((Qe(n)?Ul.has(n):Xi(n))||(l||Te(t,"get",n),i))return a;if(Oe(a)){const c=r&&ys(n)?a:a.value;return l&&ee(c)?cs(c):c}return ee(a)?l?cs(a):Ps(a):a}}class Wl extends Hl{constructor(t=!1){super(!1,t)}set(t,n,s,l){let i=t[n];const r=$(t)&&ys(n);if(!this._isShallow){const g=ft(i);if(!Ve(s)&&!ft(s)&&(i=G(i),s=G(s)),!r&&Oe(i)&&!Oe(s))return g||(i.value=s),!0}const a=r?Number(n)e,mn=e=>Reflect.getPrototypeOf(e);function sr(e,t,n){return function(...s){const l=this.__v_raw,i=G(l),r=It(i),a=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,g=l[e](...s),p=n?us:t?Lt:Ue;return!t&&Te(i,"iterate",c?as:Ct),Se(Object.create(g),{next(){const{value:y,done:O}=g.next();return O?{value:y,done:O}:{value:a?[p(y[0]),p(y[1])]:p(y),done:O}}})}}function yn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function lr(e,t){const n={get(l){const i=this.__v_raw,r=G(i),a=G(l);e||(Ye(l,a)&&Te(r,"get",l),Te(r,"get",a));const{has:c}=mn(r),g=t?us:e?Lt:Ue;if(c.call(r,l))return g(i.get(l));if(c.call(r,a))return g(i.get(a));i!==r&&i.get(l)},get size(){const l=this.__v_raw;return!e&&Te(G(l),"iterate",Ct),l.size},has(l){const i=this.__v_raw,r=G(i),a=G(l);return e||(Ye(l,a)&&Te(r,"has",l),Te(r,"has",a)),l===a?i.has(l):i.has(l)||i.has(a)},forEach(l,i){const r=this,a=r.__v_raw,c=G(a),g=t?us:e?Lt:Ue;return!e&&Te(c,"iterate",Ct),a.forEach((p,y)=>l.call(i,g(p),g(y),r))}};return Se(n,e?{add:yn("add"),set:yn("set"),delete:yn("delete"),clear:yn("clear")}:{add(l){const i=G(this),r=mn(i),a=G(l),c=!t&&!Ve(l)&&!ft(l)?a:l;return r.has.call(i,c)||Ye(l,c)&&r.has.call(i,l)||Ye(a,c)&&r.has.call(i,a)||(i.add(c),at(i,"add",c,c)),this},set(l,i){!t&&!Ve(i)&&!ft(i)&&(i=G(i));const r=G(this),{has:a,get:c}=mn(r);let g=a.call(r,l);g||(l=G(l),g=a.call(r,l));const p=c.call(r,l);return r.set(l,i),g?Ye(i,p)&&at(r,"set",l,i):at(r,"add",l,i),this},delete(l){const i=G(this),{has:r,get:a}=mn(i);let c=r.call(i,l);c||(l=G(l),c=r.call(i,l)),a&&a.call(i,l);const g=i.delete(l);return c&&at(i,"delete",l,void 0),g},clear(){const l=G(this),i=l.size!==0,r=l.clear();return i&&at(l,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(l=>{n[l]=sr(l,e,t)}),n}function Es(e,t){const n=lr(e,t);return(s,l,i)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?s:Reflect.get(z(n,l)&&l in s?n:s,l,i)}const ir={get:Es(!1,!1)},rr={get:Es(!1,!0)},or={get:Es(!0,!1)};const Kl=new WeakMap,ql=new WeakMap,Jl=new WeakMap,ar=new WeakMap;function ur(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ps(e){return ft(e)?e:Ts(e,!1,er,ir,Kl)}function cr(e){return Ts(e,!1,nr,rr,ql)}function cs(e){return Ts(e,!0,tr,or,Jl)}function Ts(e,t,n,s,l){if(!ee(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=l.get(e);if(i)return i;const r=ur(ki(e));if(r===0)return e;const a=new Proxy(e,r===2?s:n);return l.set(e,a),a}function Et(e){return ft(e)?Et(e.__v_raw):!!(e&&e.__v_isReactive)}function ft(e){return!!(e&&e.__v_isReadonly)}function Ve(e){return!!(e&&e.__v_isShallow)}function Os(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function fr(e){return!z(e,"__v_skip")&&Object.isExtensible(e)&&Al(e,"__v_skip",!0),e}const Ue=e=>ee(e)?Ps(e):e,Lt=e=>ee(e)?cs(e):e;function Oe(e){return e?e.__v_isRef===!0:!1}function Q(e){return dr(e,!1)}function dr(e,t){return Oe(e)?e:new pr(e,t)}class pr{constructor(t,n){this.dep=new Cs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:G(t),this._value=n?t:Ue(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Ve(t)||ft(t);t=s?t:G(t),Ye(t,n)&&(this._rawValue=t,this._value=s?t:Ue(t),this.dep.trigger())}}function hr(e){return Oe(e)?e.value:e}const gr={get:(e,t,n)=>t==="__v_raw"?e:hr(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const l=e[t];return Oe(l)&&!Oe(n)?(l.value=n,!0):Reflect.set(e,t,n,s)}};function Gl(e){return Et(e)?e:new Proxy(e,gr)}class _r{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Cs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Zt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&se!==this)return Ll(this,!0),!0}get value(){const t=this.dep.track();return Vl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function vr(e,t,n=!1){let s,l;return V(e)?s=e:(s=e.get,l=e.set),new _r(s,l,n)}const bn={},Cn=new WeakMap;let wt;function mr(e,t=!1,n=wt){if(n){let s=Cn.get(n);s||Cn.set(n,s=[]),s.push(e)}}function yr(e,t,n=te){const{immediate:s,deep:l,once:i,scheduler:r,augmentJob:a,call:c}=n,g=R=>l?R:Ve(R)||l===!1||l===0?ut(R,1):ut(R);let p,y,O,M,W=!1,L=!1;if(Oe(e)?(y=()=>e.value,W=Ve(e)):Et(e)?(y=()=>g(e),W=!0):$(e)?(L=!0,W=e.some(R=>Et(R)||Ve(R)),y=()=>e.map(R=>{if(Oe(R))return R.value;if(Et(R))return g(R);if(V(R))return c?c(R,2):R()})):V(e)?t?y=c?()=>c(e,2):e:y=()=>{if(O){Ze();try{O()}finally{et()}}const R=wt;wt=p;try{return c?c(e,3,[M]):e(M)}finally{wt=R}}:y=Xe,t&&l){const R=y,ie=l===!0?1/0:l;y=()=>ut(R(),ie)}const le=qi(),N=()=>{p.stop(),le&&le.active&&ms(le.effects,p)};if(i&&t){const R=t;t=(...ie)=>{const j=R(...ie);return N(),j}}let U=L?new Array(e.length).fill(bn):bn;const q=R=>{if(!(!(p.flags&1)||!p.dirty&&!R))if(t){const ie=p.run();if(R||l||W||(L?ie.some((j,we)=>Ye(j,U[we])):Ye(ie,U))){O&&O();const j=wt;wt=p;try{const we=[ie,U===bn?void 0:L&&U[0]===bn?[]:U,M];U=ie,c?c(t,3,we):t(...we)}finally{wt=j}}}else p.run()};return a&&a(q),p=new kl(y),p.scheduler=r?()=>r(q,!1):q,M=R=>mr(R,!1,p),O=p.onStop=()=>{const R=Cn.get(p);if(R){if(c)c(R,4);else for(const ie of R)ie();Cn.delete(p)}},t?s?q(!0):U=p.run():r?r(q.bind(null,!0),!0):p.run(),N.pause=p.pause.bind(p),N.resume=p.resume.bind(p),N.stop=N,N}function ut(e,t=1/0,n){if(t<=0||!ee(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Oe(e))ut(e.value,t,n);else if($(e))for(let s=0;s{ut(s,t,n)});else if(Ol(e)){for(const s in e)ut(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&ut(e[s],t,n)}return e}/** +* @vue/runtime-core v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function on(e,t,n,s){try{return s?e(...s):e()}catch(l){Bn(l,t,n)}}function He(e,t,n,s){if(V(e)){const l=on(e,t,n,s);return l&&Pl(l)&&l.catch(i=>{Bn(i,t,n)}),l}if($(e)){const l=[];for(let i=0;i>>1,l=Ae[s],i=tn(l);i=tn(n)?Ae.push(e):Ae.splice(wr(t),0,e),e.flags|=1,Xl()}}function Xl(){En||(En=zl.then(Zl))}function xr(e){$(e)?Rt.push(...e):ht&&e.id===-1?ht.splice(At+1,0,e):e.flags&1||(Rt.push(e),e.flags|=1),Xl()}function Ys(e,t,n=Je+1){for(;ntn(n)-tn(s));if(Rt.length=0,ht){ht.push(...t);return}for(ht=t,At=0;Ate.id==null?e.flags&2?-1:1/0:e.id;function Zl(e){try{for(Je=0;Je{s._d&&ol(-1);const i=Pn(t);let r;try{r=e(...l)}finally{Pn(i),s._d&&ol(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function fe(e,t){if(je===null)return e;const n=Kn(je),s=e.dirs||(e.dirs=[]);for(let l=0;l1)return n&&V(t)?t.call(s&&s.proxy):t}}const Er=Symbol.for("v-scx"),Pr=()=>xn(Er);function Zn(e,t,n){return ti(e,t,n)}function ti(e,t,n=te){const{immediate:s,deep:l,flush:i,once:r}=n,a=Se({},n),c=t&&s||!t&&i!=="post";let g;if(sn){if(i==="sync"){const M=Pr();g=M.__watcherHandles||(M.__watcherHandles=[])}else if(!c){const M=()=>{};return M.stop=Xe,M.resume=Xe,M.pause=Xe,M}}const p=Me;a.call=(M,W,L)=>He(M,p,W,L);let y=!1;i==="post"?a.scheduler=M=>{ke(M,p&&p.suspense)}:i!=="sync"&&(y=!0,a.scheduler=(M,W)=>{W?M():Ds(M)}),a.augmentJob=M=>{t&&(M.flags|=4),y&&(M.flags|=2,p&&(M.id=p.uid,M.i=p))};const O=yr(e,t,a);return sn&&(g?g.push(O):c&&O()),O}function Tr(e,t,n){const s=this.proxy,l=de(e)?e.includes(".")?ni(s,e):()=>s[e]:e.bind(s,s);let i;V(t)?i=t:(i=t.handler,n=t);const r=an(this),a=ti(l,i.bind(s),n);return r(),a}function ni(e,t){const n=t.split(".");return()=>{let s=e;for(let l=0;le.__isTeleport,es=Symbol("_leaveCb");function As(e,t){e.shapeFlag&6&&e.component?(e.transition=t,As(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 Ar(e,t){return V(e)?Se({name:e.name},t,{setup:e}):e}function si(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Xs(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Tn=new WeakMap;function Gt(e,t,n,s,l=!1){if($(e)){e.forEach((L,le)=>Gt(L,t&&($(t)?t[le]:t),n,s,l));return}if(zt(s)&&!l){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Gt(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?Kn(s.component):s.el,r=l?null:i,{i:a,r:c}=e,g=t&&t.r,p=a.refs===te?a.refs={}:a.refs,y=a.setupState,O=G(y),M=y===te?El:L=>Xs(p,L)?!1:z(O,L),W=(L,le)=>!(le&&Xs(p,le));if(g!=null&&g!==c){if(Qs(t),de(g))p[g]=null,M(g)&&(y[g]=null);else if(Oe(g)){const L=t;W(g,L.k)&&(g.value=null),L.k&&(p[L.k]=null)}}if(V(c)){Ze();try{on(c,a,12,[r,p])}finally{et()}}else{const L=de(c),le=Oe(c);if(L||le){const N=()=>{if(e.f){const U=L?M(c)?y[c]:p[c]:W()||!e.k?c.value:p[e.k];if(l)$(U)&&ms(U,i);else if($(U))U.includes(i)||U.push(i);else if(L)p[c]=[i],M(c)&&(y[c]=p[c]);else{const q=[i];W(c,e.k)&&(c.value=q),e.k&&(p[e.k]=q)}}else L?(p[c]=r,M(c)&&(y[c]=r)):le&&(W(c,e.k)&&(c.value=r),e.k&&(p[e.k]=r))};if(r){const U=()=>{N(),Tn.delete(e)};U.id=-1,Tn.set(e,U),ke(U,n)}else Qs(e),N()}}}function Qs(e){const t=Tn.get(e);t&&(t.flags|=8,Tn.delete(e))}jn().requestIdleCallback;jn().cancelIdleCallback;const zt=e=>!!e.type.__asyncLoader,li=e=>e.type.__isKeepAlive;function Mr(e,t){ii(e,"a",t)}function Ir(e,t){ii(e,"da",t)}function ii(e,t,n=Me){const s=e.__wdc||(e.__wdc=()=>{let l=n;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(Un(t,s,n),n){let l=n.parent;for(;l&&l.parent;)li(l.parent.vnode)&&Rr(s,t,n,l),l=l.parent}}function Rr(e,t,n,s){const l=Un(t,e,s,!0);oi(()=>{ms(s[t],l)},n)}function Un(e,t,n=Me,s=!1){if(n){const l=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{Ze();const a=an(n),c=He(t,n,e,r);return a(),et(),c});return s?l.unshift(i):l.push(i),i}}const dt=e=>(t,n=Me)=>{(!sn||e==="sp")&&Un(e,(...s)=>t(...s),n)},kr=dt("bm"),ri=dt("m"),Fr=dt("bu"),Lr=dt("u"),$r=dt("bum"),oi=dt("um"),jr=dt("sp"),Vr=dt("rtg"),Nr=dt("rtc");function Br(e,t=Me){Un("ec",e,t)}const Ur=Symbol.for("v-ndc");function Pe(e,t,n,s){let l;const i=n,r=$(e);if(r||de(e)){const a=r&&Et(e);let c=!1,g=!1;a&&(c=!Ve(e),g=ft(e),e=Nn(e)),l=new Array(e.length);for(let p=0,y=e.length;pt(a,c,void 0,i));else{const a=Object.keys(e);l=new Array(a.length);for(let c=0,g=a.length;ce?Oi(e)?Kn(e):fs(e.parent):null,Yt=Se(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=>fs(e.parent),$root:e=>fs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ui(e),$forceUpdate:e=>e.f||(e.f=()=>{Ds(e.update)}),$nextTick:e=>e.n||(e.n=Yl.bind(e.proxy)),$watch:e=>Tr.bind(e)}),ts=(e,t)=>e!==te&&!e.__isScriptSetup&&z(e,t),Hr={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:l,props:i,accessCache:r,type:a,appContext:c}=e;if(t[0]!=="$"){const O=r[t];if(O!==void 0)switch(O){case 1:return s[t];case 2:return l[t];case 4:return n[t];case 3:return i[t]}else{if(ts(s,t))return r[t]=1,s[t];if(l!==te&&z(l,t))return r[t]=2,l[t];if(z(i,t))return r[t]=3,i[t];if(n!==te&&z(n,t))return r[t]=4,n[t];ds&&(r[t]=0)}}const g=Yt[t];let p,y;if(g)return t==="$attrs"&&Te(e.attrs,"get",""),g(e);if((p=a.__cssModules)&&(p=p[t]))return p;if(n!==te&&z(n,t))return r[t]=4,n[t];if(y=c.config.globalProperties,z(y,t))return y[t]},set({_:e},t,n){const{data:s,setupState:l,ctx:i}=e;return ts(l,t)?(l[t]=n,!0):s!==te&&z(s,t)?(s[t]=n,!0):z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:l,props:i,type:r}},a){let c;return!!(n[a]||e!==te&&a[0]!=="$"&&z(e,a)||ts(t,a)||z(i,a)||z(s,a)||z(Yt,a)||z(l.config.globalProperties,a)||(c=r.__cssModules)&&c[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Zs(e){return $(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ds=!0;function Wr(e){const t=ui(e),n=e.proxy,s=e.ctx;ds=!1,t.beforeCreate&&el(t.beforeCreate,e,"bc");const{data:l,computed:i,methods:r,watch:a,provide:c,inject:g,created:p,beforeMount:y,mounted:O,beforeUpdate:M,updated:W,activated:L,deactivated:le,beforeDestroy:N,beforeUnmount:U,destroyed:q,unmounted:R,render:ie,renderTracked:j,renderTriggered:we,errorCaptured:re,serverPrefetch:ue,expose:ge,inheritAttrs:We,components:Ce,directives:pt,filters:K}=t;if(g&&Kr(g,s,null),r)for(const oe in r){const Z=r[oe];V(Z)&&(s[oe]=Z.bind(n))}if(l){const oe=l.call(n,n);ee(oe)&&(e.data=Ps(oe))}if(ds=!0,i)for(const oe in i){const Z=i[oe],nt=V(Z)?Z.bind(n,n):V(Z.get)?Z.get.bind(n,n):Xe,Tt=!V(Z)&&V(Z.set)?Z.set.bind(n):Xe,st=xt({get:nt,set:Tt});Object.defineProperty(s,oe,{enumerable:!0,configurable:!0,get:()=>st.value,set:Ie=>st.value=Ie})}if(a)for(const oe in a)ai(a[oe],s,n,oe);if(c){const oe=V(c)?c.call(n):c;Reflect.ownKeys(oe).forEach(Z=>{Cr(Z,oe[Z])})}p&&el(p,e,"c");function pe(oe,Z){$(Z)?Z.forEach(nt=>oe(nt.bind(n))):Z&&oe(Z.bind(n))}if(pe(kr,y),pe(ri,O),pe(Fr,M),pe(Lr,W),pe(Mr,L),pe(Ir,le),pe(Br,re),pe(Nr,j),pe(Vr,we),pe($r,U),pe(oi,R),pe(jr,ue),$(ge))if(ge.length){const oe=e.exposed||(e.exposed={});ge.forEach(Z=>{Object.defineProperty(oe,Z,{get:()=>n[Z],set:nt=>n[Z]=nt,enumerable:!0})})}else e.exposed||(e.exposed={});ie&&e.render===Xe&&(e.render=ie),We!=null&&(e.inheritAttrs=We),Ce&&(e.components=Ce),pt&&(e.directives=pt),ue&&si(e)}function Kr(e,t,n=Xe){$(e)&&(e=ps(e));for(const s in e){const l=e[s];let i;ee(l)?"default"in l?i=xn(l.from||s,l.default,!0):i=xn(l.from||s):i=xn(l),Oe(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[s]=i}}function el(e,t,n){He($(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ai(e,t,n,s){let l=s.includes(".")?ni(n,s):()=>n[s];if(de(e)){const i=t[e];V(i)&&Zn(l,i)}else if(V(e))Zn(l,e.bind(n));else if(ee(e))if($(e))e.forEach(i=>ai(i,t,n,s));else{const i=V(e.handler)?e.handler.bind(n):t[e.handler];V(i)&&Zn(l,i,e)}}function ui(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:l,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,a=i.get(t);let c;return a?c=a:!l.length&&!n&&!s?c=t:(c={},l.length&&l.forEach(g=>On(c,g,r,!0)),On(c,t,r)),ee(t)&&i.set(t,c),c}function On(e,t,n,s=!1){const{mixins:l,extends:i}=t;i&&On(e,i,n,!0),l&&l.forEach(r=>On(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const a=qr[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const qr={data:tl,props:nl,emits:nl,methods:Ht,computed:Ht,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:Ht,directives:Ht,watch:Gr,provide:tl,inject:Jr};function tl(e,t){return t?e?function(){return Se(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Jr(e,t){return Ht(ps(e),ps(t))}function ps(e){if($(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ne(t)}Modifiers`]||e[`${Pt(t)}Modifiers`];function Qr(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||te;let l=n;const i=t.startsWith("update:"),r=i&&Xr(s,t.slice(7));r&&(r.trim&&(l=n.map(p=>de(p)?p.trim():p)),r.number&&(l=n.map($n)));let a,c=s[a=Gn(t)]||s[a=Gn(Ne(t))];!c&&i&&(c=s[a=Gn(Pt(t))]),c&&He(c,e,6,l);const g=s[a+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,He(g,e,6,l)}}const Zr=new WeakMap;function fi(e,t,n=!1){const s=n?Zr:t.emitsCache,l=s.get(e);if(l!==void 0)return l;const i=e.emits;let r={},a=!1;if(!V(e)){const c=g=>{const p=fi(g,t,!0);p&&(a=!0,Se(r,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(ee(e)&&s.set(e,null),null):($(i)?i.forEach(c=>r[c]=null):Se(r,i),ee(e)&&s.set(e,r),r)}function Hn(e,t){return!e||!Rn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),z(e,t[0].toLowerCase()+t.slice(1))||z(e,Pt(t))||z(e,t))}function sl(e){const{type:t,vnode:n,proxy:s,withProxy:l,propsOptions:[i],slots:r,attrs:a,emit:c,render:g,renderCache:p,props:y,data:O,setupState:M,ctx:W,inheritAttrs:L}=e,le=Pn(e);let N,U;try{if(n.shapeFlag&4){const R=l||s,ie=R;N=ze(g.call(ie,R,p,y,M,O,W)),U=a}else{const R=t;N=ze(R.length>1?R(y,{attrs:a,slots:r,emit:c}):R(y,null)),U=t.props?a:eo(a)}}catch(R){Xt.length=0,Bn(R,e,1),N=ct(gt)}let q=N;if(U&&L!==!1){const R=Object.keys(U),{shapeFlag:ie}=q;R.length&&ie&7&&(i&&R.some(kn)&&(U=to(U,i)),q=$t(q,U,!1,!0))}return n.dirs&&(q=$t(q,null,!1,!0),q.dirs=q.dirs?q.dirs.concat(n.dirs):n.dirs),n.transition&&As(q,n.transition),N=q,Pn(le),N}const eo=e=>{let t;for(const n in e)(n==="class"||n==="style"||Rn(n))&&((t||(t={}))[n]=e[n]);return t},to=(e,t)=>{const n={};for(const s in e)(!kn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function no(e,t,n){const{props:s,children:l,component:i}=e,{props:r,children:a,patchFlag:c}=t,g=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?ll(s,r,g):!!r;if(c&8){const p=t.dynamicProps;for(let y=0;yObject.create(pi),gi=e=>Object.getPrototypeOf(e)===pi;function lo(e,t,n,s=!1){const l={},i=hi();e.propsDefaults=Object.create(null),_i(e,t,l,i);for(const r in e.propsOptions[0])r in l||(l[r]=void 0);n?e.props=s?l:cr(l):e.type.props?e.props=l:e.props=i,e.attrs=i}function io(e,t,n,s){const{props:l,attrs:i,vnode:{patchFlag:r}}=e,a=G(l),[c]=e.propsOptions;let g=!1;if((s||r>0)&&!(r&16)){if(r&8){const p=e.vnode.dynamicProps;for(let y=0;y{c=!0;const[O,M]=vi(y,t,!0);Se(r,O),M&&a.push(...M)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!i&&!c)return ee(e)&&s.set(e,Mt),Mt;if($(i))for(let p=0;pe==="_"||e==="_ctx"||e==="$stable",Is=e=>$(e)?e.map(ze):[ze(e)],oo=(e,t,n)=>{if(t._n)return t;const s=Sr((...l)=>Is(t(...l)),n);return s._c=!1,s},mi=(e,t,n)=>{const s=e._ctx;for(const l in e){if(Ms(l))continue;const i=e[l];if(V(i))t[l]=oo(l,i,s);else if(i!=null){const r=Is(i);t[l]=()=>r}}},yi=(e,t)=>{const n=Is(t);e.slots.default=()=>n},bi=(e,t,n)=>{for(const s in t)(n||!Ms(s))&&(e[s]=t[s])},ao=(e,t,n)=>{const s=e.slots=hi();if(e.vnode.shapeFlag&32){const l=t._;l?(bi(s,t,n),n&&Al(s,"_",l,!0)):mi(t,s)}else t&&yi(e,t)},uo=(e,t,n)=>{const{vnode:s,slots:l}=e;let i=!0,r=te;if(s.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:bi(l,t,n):(i=!t.$stable,mi(t,l)),r=t}else t&&(yi(e,t),r={default:1});if(i)for(const a in l)!Ms(a)&&r[a]==null&&delete l[a]},ke=go;function co(e){return fo(e)}function fo(e,t){const n=jn();n.__VUE__=!0;const{insert:s,remove:l,patchProp:i,createElement:r,createText:a,createComment:c,setText:g,setElementText:p,parentNode:y,nextSibling:O,setScopeId:M=Xe,insertStaticContent:W}=e,L=(u,f,_,S=null,x=null,b=null,P=void 0,E=null,C=!!f.dynamicChildren)=>{if(u===f)return;u&&!Ut(u,f)&&(S=Ot(u),Ie(u,x,b,!0),u=null),f.patchFlag===-2&&(C=!1,f.dynamicChildren=null);const{type:w,ref:k,shapeFlag:T}=f;switch(w){case Wn:le(u,f,_,S);break;case gt:N(u,f,_,S);break;case ss:u==null&&U(f,_,S,P);break;case ne:Ce(u,f,_,S,x,b,P,E,C);break;default:T&1?ie(u,f,_,S,x,b,P,E,C):T&6?pt(u,f,_,S,x,b,P,E,C):(T&64||T&128)&&w.process(u,f,_,S,x,b,P,E,C,vt)}k!=null&&x?Gt(k,u&&u.ref,b,f||u,!f):k==null&&u&&u.ref!=null&&Gt(u.ref,null,b,u,!0)},le=(u,f,_,S)=>{if(u==null)s(f.el=a(f.children),_,S);else{const x=f.el=u.el;f.children!==u.children&&g(x,f.children)}},N=(u,f,_,S)=>{u==null?s(f.el=c(f.children||""),_,S):f.el=u.el},U=(u,f,_,S)=>{[u.el,u.anchor]=W(u.children,f,_,S,u.el,u.anchor)},q=({el:u,anchor:f},_,S)=>{let x;for(;u&&u!==f;)x=O(u),s(u,_,S),u=x;s(f,_,S)},R=({el:u,anchor:f})=>{let _;for(;u&&u!==f;)_=O(u),l(u),u=_;l(f)},ie=(u,f,_,S,x,b,P,E,C)=>{if(f.type==="svg"?P="svg":f.type==="math"&&(P="mathml"),u==null)j(f,_,S,x,b,P,E,C);else{const w=u.el&&u.el._isVueCE?u.el:null;try{w&&w._beginPatch(),ue(u,f,x,b,P,E,C)}finally{w&&w._endPatch()}}},j=(u,f,_,S,x,b,P,E)=>{let C,w;const{props:k,shapeFlag:T,transition:I,dirs:F}=u;if(C=u.el=r(u.type,b,k&&k.is,k),T&8?p(C,u.children):T&16&&re(u.children,C,null,S,x,ns(u,b),P,E),F&&yt(u,null,S,"created"),we(C,u,u.scopeId,P,S),k){for(const X in k)X!=="value"&&!Kt(X)&&i(C,X,null,k[X],b,S);"value"in k&&i(C,"value",null,k.value,b),(w=k.onVnodeBeforeMount)&&qe(w,S,u)}F&&yt(u,null,S,"beforeMount");const H=po(x,I);H&&I.beforeEnter(C),s(C,f,_),((w=k&&k.onVnodeMounted)||H||F)&&ke(()=>{try{w&&qe(w,S,u),H&&I.enter(C),F&&yt(u,null,S,"mounted")}finally{}},x)},we=(u,f,_,S,x)=>{if(_&&M(u,_),S)for(let b=0;b{for(let w=C;w{const E=f.el=u.el;let{patchFlag:C,dynamicChildren:w,dirs:k}=f;C|=u.patchFlag&16;const T=u.props||te,I=f.props||te;let F;if(_&&bt(_,!1),(F=I.onVnodeBeforeUpdate)&&qe(F,_,f,u),k&&yt(f,u,_,"beforeUpdate"),_&&bt(_,!0),w&&(!u.dynamicChildren||u.dynamicChildren.length!==w.length)&&(C=0,P=!1,w=null),(T.innerHTML&&I.innerHTML==null||T.textContent&&I.textContent==null)&&p(E,""),w?ge(u.dynamicChildren,w,E,_,S,ns(f,x),b):P||Z(u,f,E,null,_,S,ns(f,x),b,!1),C>0){if(C&16)We(E,T,I,_,x);else if(C&2&&T.class!==I.class&&i(E,"class",null,I.class,x),C&4&&i(E,"style",T.style,I.style,x),C&8){const H=f.dynamicProps;for(let X=0;X{F&&qe(F,_,f,u),k&&yt(f,u,_,"updated")},S)},ge=(u,f,_,S,x,b,P)=>{for(let E=0;E{if(f!==_){if(f!==te)for(const b in f)!Kt(b)&&!(b in _)&&i(u,b,f[b],null,x,S);for(const b in _){if(Kt(b))continue;const P=_[b],E=f[b];P!==E&&b!=="value"&&i(u,b,E,P,x,S)}"value"in _&&i(u,"value",f.value,_.value,x)}},Ce=(u,f,_,S,x,b,P,E,C)=>{const w=f.el=u?u.el:a(""),k=f.anchor=u?u.anchor:a("");let{patchFlag:T,dynamicChildren:I,slotScopeIds:F}=f;F&&(E=E?E.concat(F):F),u==null?(s(w,_,S),s(k,_,S),re(f.children||[],_,k,x,b,P,E,C)):T>0&&T&64&&I&&u.dynamicChildren&&u.dynamicChildren.length===I.length?(ge(u.dynamicChildren,I,_,x,b,P,E),(f.key!=null||x&&f===x.subTree)&&wi(u,f,!0)):Z(u,f,_,k,x,b,P,E,C)},pt=(u,f,_,S,x,b,P,E,C)=>{f.slotScopeIds=E,u==null?f.shapeFlag&512?x.ctx.activate(f,_,S,P,C):K(f,_,S,x,b,P,C):tt(u,f,C)},K=(u,f,_,S,x,b,P)=>{const E=u.component=Co(u,S,x);if(li(u)&&(E.ctx.renderer=vt),Po(E,!1,P),E.asyncDep){if(x&&x.registerDep(E,pe,P),!u.el){const C=E.subTree=ct(gt);N(null,C,f,_),u.placeholder=C.el}}else pe(E,u,f,_,x,b,P)},tt=(u,f,_)=>{const S=f.component=u.component;if(no(u,f,_))if(S.asyncDep&&!S.asyncResolved){oe(S,f,_);return}else S.next=f,S.update();else f.el=u.el,S.vnode=f},pe=(u,f,_,S,x,b,P)=>{const E=()=>{if(u.isMounted){let{next:T,bu:I,u:F,parent:H,vnode:X}=u;{const $e=xi(u);if($e){T&&(T.el=X.el,oe(u,T,P)),$e.asyncDep.then(()=>{ke(()=>{u.isUnmounted||w()},x)});return}}let J=T,ce;bt(u,!1),T?(T.el=X.el,oe(u,T,P)):T=X,I&&wn(I),(ce=T.props&&T.props.onVnodeBeforeUpdate)&&qe(ce,H,T,X),bt(u,!0);const _e=sl(u),Le=u.subTree;u.subTree=_e,L(Le,_e,y(Le.el),Ot(Le),u,x,b),T.el=_e.el,J===null&&so(u,_e.el),F&&ke(F,x),(ce=T.props&&T.props.onVnodeUpdated)&&ke(()=>qe(ce,H,T,X),x)}else{let T;const{el:I,props:F}=f,{bm:H,m:X,parent:J,root:ce,type:_e}=u,Le=zt(f);bt(u,!1),H&&wn(H),!Le&&(T=F&&F.onVnodeBeforeMount)&&qe(T,J,f),bt(u,!0);{ce.ce&&ce.ce._hasShadowRoot()&&ce.ce._injectChildStyle(_e,u.parent?u.parent.type:void 0);const $e=u.subTree=sl(u);L(null,$e,_,S,u,x,b),f.el=$e.el}if(X&&ke(X,x),!Le&&(T=F&&F.onVnodeMounted)){const $e=f;ke(()=>qe(T,J,$e),x)}(f.shapeFlag&256||J&&zt(J.vnode)&&J.vnode.shapeFlag&256)&&u.a&&ke(u.a,x),u.isMounted=!0,f=_=S=null}};u.scope.on();const C=u.effect=new kl(E);u.scope.off();const w=u.update=C.run.bind(C),k=u.job=C.runIfDirty.bind(C);k.i=u,k.id=u.uid,C.scheduler=()=>Ds(k),bt(u,!0),w()},oe=(u,f,_)=>{f.component=u;const S=u.vnode.props;u.vnode=f,u.next=null,io(u,f.props,S,_),uo(u,f.children,_),Ze(),Ys(u),et()},Z=(u,f,_,S,x,b,P,E,C=!1)=>{const w=u&&u.children,k=u?u.shapeFlag:0,T=f.children,{patchFlag:I,shapeFlag:F}=f;if(I>0){if(I&128){Tt(w,T,_,S,x,b,P,E,C);return}else if(I&256){nt(w,T,_,S,x,b,P,E,C);return}}F&8?(k&16&&Y(w,x,b),T!==w&&p(_,T)):k&16?F&16?Tt(w,T,_,S,x,b,P,E,C):Y(w,x,b,!0):(k&8&&p(_,""),F&16&&re(T,_,S,x,b,P,E,C))},nt=(u,f,_,S,x,b,P,E,C)=>{u=u||Mt,f=f||Mt;const w=u.length,k=f.length,T=Math.min(w,k);let I;for(I=0;Ik?Y(u,x,b,!0,!1,T):re(f,_,S,x,b,P,E,C,T)},Tt=(u,f,_,S,x,b,P,E,C)=>{let w=0;const k=f.length;let T=u.length-1,I=k-1;for(;w<=T&&w<=I;){const F=u[w],H=f[w]=C?ot(f[w]):ze(f[w]);if(Ut(F,H))L(F,H,_,null,x,b,P,E,C);else break;w++}for(;w<=T&&w<=I;){const F=u[T],H=f[I]=C?ot(f[I]):ze(f[I]);if(Ut(F,H))L(F,H,_,null,x,b,P,E,C);else break;T--,I--}if(w>T){if(w<=I){const F=I+1,H=FI)for(;w<=T;)Ie(u[w],x,b,!0),w++;else{const F=w,H=w,X=new Map;for(w=H;w<=I;w++){const ve=f[w]=C?ot(f[w]):ze(f[w]);ve.key!=null&&X.set(ve.key,w)}let J,ce=0;const _e=I-H+1;let Le=!1,$e=0;const mt=new Array(_e);for(w=0;w<_e;w++)mt[w]=0;for(w=F;w<=T;w++){const ve=u[w];if(ce>=_e){Ie(ve,x,b,!0);continue}let Re;if(ve.key!=null)Re=X.get(ve.key);else for(J=H;J<=I;J++)if(mt[J-H]===0&&Ut(ve,f[J])){Re=J;break}Re===void 0?Ie(ve,x,b,!0):(mt[Re-H]=w+1,Re>=$e?$e=Re:Le=!0,L(ve,f[Re],_,null,x,b,P,E,C),ce++)}const fn=Le?ho(mt):Mt;for(J=fn.length-1,w=_e-1;w>=0;w--){const ve=H+w,Re=f[ve],Vt=f[ve+1],v=ve+1{const{el:b,type:P,transition:E,children:C,shapeFlag:w}=u;if(w&6){st(u.component.subTree,f,_,S);return}if(w&128){u.suspense.move(f,_,S);return}if(w&64){P.move(u,f,_,vt);return}if(P===ne){s(b,f,_);for(let T=0;TE.enter(b),x));else{const{leave:T,delayLeave:I,afterLeave:F}=E,H=()=>{u.ctx.isUnmounted?l(b):s(b,f,_)},X=()=>{const J=b._isLeaving||!!b[es];b._isLeaving&&b[es](!0),E.persisted&&!J?H():T(b,()=>{H(),F&&F()})};I?I(b,H,X):X()}else s(b,f,_)},Ie=(u,f,_,S=!1,x=!1)=>{const{type:b,props:P,ref:E,children:C,dynamicChildren:w,shapeFlag:k,patchFlag:T,dirs:I,cacheIndex:F,memo:H}=u;if(T===-2&&(x=!1),E!=null&&(Ze(),Gt(E,null,_,u,!0),et()),F!=null&&(f.renderCache[F]=void 0),k&256){f.ctx.deactivate(u);return}const X=k&1&&I,J=!zt(u);let ce;if(J&&(ce=P&&P.onVnodeBeforeUnmount)&&qe(ce,f,u),k&6)qn(u.component,_,S);else{if(k&128){u.suspense.unmount(_,S);return}X&&yt(u,null,f,"beforeUnmount"),k&64?u.type.remove(u,f,_,vt,S):w&&!w.hasOnce&&(b!==ne||T>0&&T&64)?Y(w,f,_,!1,!0):(b===ne&&T&384||!x&&k&16)&&Y(C,f,_),S&&un(u)}const _e=H!=null&&F==null;(J&&(ce=P&&P.onVnodeUnmounted)||X||_e)&&ke(()=>{ce&&qe(ce,f,u),X&&yt(u,null,f,"unmounted"),_e&&(u.el=null)},_)},un=u=>{const{type:f,el:_,anchor:S,transition:x}=u;if(f===ne){_t(_,S);return}if(f===ss){R(u);return}const b=()=>{l(_),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(u.shapeFlag&1&&x&&!x.persisted){const{leave:P,delayLeave:E}=x,C=()=>P(_,b);E?E(u.el,b,C):C()}else b()},_t=(u,f)=>{let _;for(;u!==f;)_=O(u),l(u),u=_;l(f)},qn=(u,f,_)=>{const{bum:S,scope:x,job:b,subTree:P,um:E,m:C,a:w}=u;rl(C),rl(w),S&&wn(S),x.stop(),b&&(b.flags|=8,Ie(P,u,f,_)),E&&ke(E,f),ke(()=>{u.isUnmounted=!0},f)},Y=(u,f,_,S=!1,x=!1,b=0)=>{for(let P=b;P{if(u.shapeFlag&6)return Ot(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const f=O(u.anchor||u.el),_=f&&f[Or];return _?O(_):f};let jt=!1;const cn=(u,f,_)=>{let S;u==null?f._vnode&&(Ie(f._vnode,null,null,!0),S=f._vnode.component):L(f._vnode||null,u,f,null,null,null,_),f._vnode=u,jt||(jt=!0,Ys(S),Ql(),jt=!1)},vt={p:L,um:Ie,m:st,r:un,mt:K,mc:re,pc:Z,pbc:ge,n:Ot,o:e};return{render:cn,hydrate:void 0,createApp:Yr(cn)}}function ns({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 bt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function po(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function wi(e,t,n=!1){const s=e.children,l=t.children;if($(s)&&$(l))for(let i=0;i>1,e[n[a]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}function xi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:xi(t)}function rl(e){if(e)for(let t=0;te.__isSuspense;function go(e,t){t&&t.pendingBranch?$(e)?t.effects.push(...e):t.effects.push(e):xr(e)}const ne=Symbol.for("v-fgt"),Wn=Symbol.for("v-txt"),gt=Symbol.for("v-cmt"),ss=Symbol.for("v-stc"),Xt=[];let Fe=null;function D(e=!1){Xt.push(Fe=e?null:[])}function _o(){Xt.pop(),Fe=Xt[Xt.length-1]||null}let nn=1;function ol(e,t=!1){nn+=e,e<0&&Fe&&t&&(Fe.hasOnce=!0)}function Ei(e){return e.dynamicChildren=nn>0?Fe||Mt:null,_o(),nn>0&&Fe&&Fe.push(e),e}function A(e,t,n,s,l,i){return Ei(o(e,t,n,s,l,i,!0))}function vo(e,t,n,s,l){return Ei(ct(e,t,n,s,l,!0))}function Pi(e){return e?e.__v_isVNode===!0:!1}function Ut(e,t){return e.type===t.type&&e.key===t.key}const Ti=({key:e})=>e??null,Sn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?de(e)||Oe(e)||V(e)?{i:je,r:e,k:t,f:!!n}:e:null);function o(e,t=null,n=null,s=0,l=null,i=e===ne?0:1,r=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ti(t),ref:t&&Sn(t),scopeId:ei,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:s,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:je};return a?(Dn(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=de(n)?8:16),nn>0&&!r&&Fe&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Fe.push(c),c}const ct=mo;function mo(e,t=null,n=null,s=0,l=null,i=!1){if((!e||e===Ur)&&(e=gt),Pi(e)){const a=$t(e,t,!0);return n&&Dn(a,n),nn>0&&!i&&Fe&&(a.shapeFlag&6?Fe[Fe.indexOf(e)]=a:Fe.push(a)),a.patchFlag=-2,a}if(Ao(e)&&(e=e.__vccOpts),t){t=yo(t);let{class:a,style:c}=t;a&&!de(a)&&(t.class=Vn(a)),ee(c)&&(Os(c)&&!$(c)&&(c=Se({},c)),t.style=bs(c))}const r=de(e)?1:Ci(e)?128:Dr(e)?64:ee(e)?4:V(e)?2:0;return o(e,t,n,s,l,r,i,!0)}function yo(e){return e?Os(e)||gi(e)?Se({},e):e:null}function $t(e,t,n=!1,s=!1){const{props:l,ref:i,patchFlag:r,children:a,transition:c}=e,g=t?wo(l||{},t):l,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Ti(g),ref:t&&t.ref?n&&i?$(i)?i.concat(Sn(t)):[i,Sn(t)]:Sn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ne?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$t(e.ssContent),ssFallback:e.ssFallback&&$t(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&As(p,c.clone(p)),p}function bo(e=" ",t=0){return ct(Wn,null,e,t)}function ae(e="",t=!1){return t?(D(),vo(gt,null,e)):ct(gt,null,e)}function ze(e){return e==null||typeof e=="boolean"?ct(gt):$(e)?ct(ne,null,e.slice()):Pi(e)?ot(e):ct(Wn,null,String(e))}function ot(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$t(e)}function Dn(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if($(t))n=16;else if(typeof t=="object")if(s&65){const l=t.default;l&&(l._c&&(l._d=!1),Dn(e,l()),l._c&&(l._d=!0));return}else{n=32;const l=t._;!l&&!gi(t)?t._ctx=je:l===3&&je&&(je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(V(t)){if(s&65){Dn(e,{default:t});return}t={default:t,_ctx:je},n=32}else t=String(t),s&64?(n=16,t=[bo(t)]):n=8;e.children=t,e.shapeFlag|=n}function wo(...e){const t={};for(let n=0;nMe||je;let An,gs;{const e=jn(),t=(n,s)=>{let l;return(l=e[n])||(l=e[n]=[]),l.push(s),i=>{l.length>1?l.forEach(r=>r(i)):l[0](i)}};An=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),gs=t("__VUE_SSR_SETTERS__",n=>sn=n)}const an=e=>{const t=Me;return An(e),e.scope.on(),()=>{e.scope.off(),An(t)}},al=()=>{Me&&Me.scope.off(),An(null)};function Oi(e){return e.vnode.shapeFlag&4}let sn=!1;function Po(e,t=!1,n=!1){t&&gs(t);const{props:s,children:l}=e.vnode,i=Oi(e);lo(e,s,i,t),ao(e,l,n||t);const r=i?To(e,t):void 0;return t&&gs(!1),r}function To(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Hr);const{setup:s}=n;if(s){Ze();const l=e.setupContext=s.length>1?Do(e):null,i=an(e),r=on(s,e,0,[e.props,l]),a=Pl(r);if(et(),i(),(a||e.sp)&&!zt(e)&&si(e),a){if(r.then(al,al),t)return r.then(c=>{ul(e,c)}).catch(c=>{Bn(c,e,0)});e.asyncDep=r}else ul(e,r)}else Di(e)}function ul(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ee(t)&&(e.setupState=Gl(t)),Di(e)}function Di(e,t,n){const s=e.type;e.render||(e.render=s.render||Xe);{const l=an(e);Ze();try{Wr(e)}finally{et(),l()}}}const Oo={get(e,t){return Te(e,"get",""),e[t]}};function Do(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Oo),slots:e.slots,emit:e.emit,expose:t}}function Kn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Gl(fr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Yt)return Yt[n](e)},has(t,n){return n in t||n in Yt}})):e.proxy}function Ao(e){return V(e)&&"__vccOpts"in e}const xt=(e,t)=>vr(e,t,sn),Mo="3.5.39";/** +* @vue/runtime-dom v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let _s;const cl=typeof window<"u"&&window.trustedTypes;if(cl)try{_s=cl.createPolicy("vue",{createHTML:e=>e})}catch{}const Ai=_s?e=>_s.createHTML(e):e=>e,Io="http://www.w3.org/2000/svg",Ro="http://www.w3.org/1998/Math/MathML",rt=typeof document<"u"?document:null,fl=rt&&rt.createElement("template"),ko={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const l=t==="svg"?rt.createElementNS(Io,e):t==="mathml"?rt.createElementNS(Ro,e):n?rt.createElement(e,{is:n}):rt.createElement(e);return e==="select"&&s&&s.multiple!=null&&l.setAttribute("multiple",s.multiple),l},createText:e=>rt.createTextNode(e),createComment:e=>rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,l,i){const r=n?n.previousSibling:t.lastChild;if(l&&(l===i||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===i||!(l=l.nextSibling)););else{fl.innerHTML=Ai(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const a=fl.content;if(s==="svg"||s==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Fo=Symbol("_vtc");function Lo(e,t,n){const s=e[Fo];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const dl=Symbol("_vod"),$o=Symbol("_vsh"),jo=Symbol(""),Vo=/(?:^|;)\s*display\s*:/;function No(e,t,n){const s=e.style,l=de(n);let i=!1;if(n&&!l){if(t)if(de(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&Wt(s,a,"")}else for(const r in t)n[r]==null&&Wt(s,r,"");for(const r in n){r==="display"&&(i=!0);const a=n[r];a!=null?Uo(e,r,!de(t)&&t?t[r]:void 0,a)||Wt(s,r,a):Wt(s,r,"")}}else if(l){if(t!==n){const r=s[jo];r&&(n+=";"+r),s.cssText=n,i=Vo.test(n)}}else t&&e.removeAttribute("style");dl in e&&(e[dl]=i?s.display:"",e[$o]&&(s.display="none"))}const pl=/\s*!important$/;function Wt(e,t,n){if($(n))n.forEach(s=>Wt(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Bo(e,t);pl.test(n)?e.setProperty(Pt(s),n.replace(pl,""),"important"):e[s]=n}}const hl=["Webkit","Moz","ms"],ls={};function Bo(e,t){const n=ls[t];if(n)return n;let s=Ne(t);if(s!=="filter"&&s in e)return ls[t]=s;s=Dl(s);for(let l=0;lis||(Go.then(()=>is=0),is=Date.now());function Yo(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const l=n.value;if($(l)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const r=l.slice(),a=[s];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Xo=(e,t,n,s,l,i)=>{const r=l==="svg";t==="class"?Lo(e,s,r):t==="style"?No(e,n,s):Rn(t)?kn(t)||Wo(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Qo(e,t,s,r))?(vl(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&_l(e,t,s,r,i,t!=="value")):e._isVueCE&&(Zo(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!de(s)))?vl(e,Ne(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),_l(e,t,s,r))};function Qo(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&yl(t)&&V(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 l=e.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return yl(t)&&de(n)?!1:t in e}function Zo(e,t){const n=e._def.props;if(!n)return!1;const s=Ne(t);return Array.isArray(n)?n.some(l=>Ne(l)===s):Object.keys(n).some(l=>Ne(l)===s)}const Mn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return $(t)?n=>wn(t,n):t};function ea(e){e.target.composing=!0}function bl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ft=Symbol("_assign");function wl(e,t,n){return t&&(e=e.trim()),n&&(e=$n(e)),e}const he={created(e,{modifiers:{lazy:t,trim:n,number:s}},l){e[Ft]=Mn(l);const i=s||l.props&&l.props.type==="number";St(e,t?"change":"input",r=>{r.target.composing||e[Ft](wl(e.value,n,i))}),(n||i)&&St(e,"change",()=>{e.value=wl(e.value,n,i)}),t||(St(e,"compositionstart",ea),St(e,"compositionend",bl),St(e,"change",bl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:l,number:i}},r){if(e[Ft]=Mn(r),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?$n(e.value):e.value,c=t??"";if(a===c)return;const g=e.getRootNode();(g instanceof Document||g instanceof ShadowRoot)&&g.activeElement===e&&e.type!=="range"&&(s&&t===n||l&&e.value.trim()===c)||(e.value=c)}},xl={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const l=Fn(t);St(e,"change",()=>{const i=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?$n(In(r)):In(r));e[Ft](e.multiple?l?new Set(i):i:i[0]),e._assigning=!0,Yl(()=>{e._assigning=!1})}),e[Ft]=Mn(s)},mounted(e,{value:t}){Sl(e,t)},beforeUpdate(e,t,n){e[Ft]=Mn(n)},updated(e,{value:t}){e._assigning||Sl(e,t)}};function Sl(e,t){const n=e.multiple,s=$(t);if(!(n&&!s&&!Fn(t))){for(let l=0,i=e.options.length;lString(g)===String(a)):r.selected=Wi(t,a)>-1}else r.selected=t.has(a);else if(rn(In(r),t)){e.selectedIndex!==l&&(e.selectedIndex=l);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function In(e){return"_value"in e?e._value:e.value}const ta=Se({patchProp:Xo},ko);let Cl;function na(){return Cl||(Cl=co(ta))}const sa=((...e)=>{const t=na().createApp(...e),{mount:n}=t;return t.mount=s=>{const l=ia(s);if(!l)return;const i=t._component;!V(i)&&!i.render&&!i.template&&(i.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const r=n(l,!1,la(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),r},t});function la(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ia(e){return de(e)?document.querySelector(e):e}const ra="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",B={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",jobs:"jobs",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",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class oa extends Error{constructor(n,s,l={}){super(s);Jn(this,"code");Jn(this,"details");this.name="ApiClientError",this.code=n,this.details=l}}async function me(e,t){return Qt(e,{method:"GET",query:t})}async function be(e,t){return Qt(e,{method:"POST",body:t})}async function Qt(e,t={}){const s=await(await fetch(aa(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(!s.ok)throw new oa(s.error_code,s.message,s.details);return s.data}function aa(e,t){const n=e.replace(/^\/+/,""),s=new URL(`${ra}/${n}`,window.location.origin);for(const[l,i]of Object.entries(t??{}))i!==void 0&&s.searchParams.set(l,String(i));return`${s.pathname}${s.search}`}const ua={class:"web-shell"},ca={class:"sidebar"},fa={class:"brand"},da=["onClick"],pa={class:"workspace"},ha={class:"topbar"},ga={class:"actions"},_a=["disabled"],va={key:0,class:"notice error"},ma={key:1,class:"notice"},ya={key:0,class:"dashboard-grid"},ba={key:1,class:"list-view"},wa={class:"form-grid"},xa={class:"wide-field"},Sa=["disabled"],Ca=["disabled"],Ea={key:0},Pa={class:"inline-actions"},Ta={class:"badge"},Oa=["disabled","onClick"],Da={key:0,class:"empty"},Aa={key:2,class:"split-view"},Ma={class:"list-view"},Ia={key:0,class:"empty"},Ra={class:"list-view"},ka={class:"inline-actions"},Fa=["disabled"],La={class:"form-grid"},$a={value:""},ja=["value"],Va=["disabled"],Na={class:"inline-actions"},Ba={class:"badge"},Ua=["disabled","onClick"],Ha=["disabled","onClick"],Wa=["disabled","onClick"],Ka={key:0,class:"empty"},qa={key:0},Ja={key:3,class:"list-view"},Ga=["disabled"],za={class:"form-grid"},Ya={value:""},Xa=["value"],Qa=["disabled"],Za={class:"inline-actions"},eu=["disabled","onClick"],tu={key:0,class:"empty"},nu={key:0},su={key:4,class:"list-view"},lu={class:"inline-actions"},iu=["disabled"],ru=["disabled"],ou={class:"inline-actions"},au={class:"badge"},uu=["onClick"],cu=["onClick"],fu={key:0,class:"empty"},du={key:5,class:"split-view"},pu={class:"list-view"},hu=["disabled"],gu={class:"form-grid"},_u=["disabled"],vu={key:0},mu={class:"list-view"},yu={class:"inline-actions"},bu={class:"badge"},wu=["disabled","onClick"],xu=["disabled","onClick"],Su=["disabled","onClick"],Cu={key:0,class:"empty"},Eu={key:6,class:"logs-view"},Pu={class:"split-view"},Tu={class:"list-view"},Ou={key:0,class:"empty"},Du={class:"list-view"},Au={class:"badge"},Mu={key:0,class:"empty"},Iu={class:"split-view"},Ru={class:"list-view"},ku={key:0,class:"empty"},Fu={class:"list-view"},Lu={class:"badge"},$u={key:0,class:"empty"},ju={class:"list-view"},Vu={key:0,class:"empty"},Nu={key:7,class:"settings-view"},Bu={class:"toolbar"},Uu=["disabled"],Hu=["disabled"],Wu=["disabled"],Ku=["disabled"],qu=["disabled"],Ju=["disabled"],Gu={class:"settings-sections"},zu={class:"editor-panel"},Yu={class:"split-view"},Xu={class:"list-view"},Qu={class:"list-view"},Zu={class:"inspector"},ec=Ar({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",recognize:"识别",confirm:"确认",name:"名称",identity:"身份",personality:"性格",hairColor:"发色",hairstyle:"发型",eyeColor:"眼色",description:"描述",basePrompt:"基础提示词",appearancePrompt:"外观提示词",stylePrompt:"风格提示词",negativePrompt:"反向提示词",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialArchived:"素材已归档",importToWardrobe:"加入衣橱",delete:"删除",wardrobeCategory:"衣橱分类",season:"季节",style:"风格",selectMaterial:"选择素材",wardrobeImported:"衣橱条目已加入",wardrobeDeleted:"衣橱条目已删除",dashboard:"运行概览",profiles:"角色",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",profileCreated:"角色已创建",profileDeleted:"角色已删除",emptyProfiles:"暂无角色",categories:"素材分类",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},n=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],s=Q("dashboard"),l=Q(null),i=Q(null),r=Q(null),a=Q(null),c=Q(null),g=Q(null),p=Q(null),y=Q([]),O=Q(null),M=Q([]),W=Q([]),L=Q([]),le=Q(null),N=Q({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),U=Q(null),q=Q(""),R=Q(null),ie=Q(null),j=Q({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),we=Q(null),re=Q({display_name:"",image_uri:"",tags:"",category_id:""}),ue=Q({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),ge=Q({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),We=Q(null),Ce=Q(""),pt=Q(!0),K=Q(""),tt=Q(""),pe=xt(()=>{var v,m;return((m=(v=r.value)==null?void 0:v.items[0])==null?void 0:m.profile_id)??""}),oe=xt(()=>{var v,m;return((m=(v=r.value)==null?void 0:v.items[0])==null?void 0:m.name)??t.noProfile}),Z=xt(()=>{var m;const v=(m=i.value)==null?void 0:m.queue;return v?v.pending+v.running+v.failed+v.dead_letter:0}),nt=xt(()=>{var v;return((v=O.value)==null?void 0:v.items.filter(m=>m.recognition_status!=="confirmed").length)??0}),Tt=xt(()=>{var v;return(((v=O.value)==null?void 0:v.items)??[]).filter(m=>m.recognition_status==="confirmed")}),st=xt(()=>({dashboard:t.dashboard,profiles:t.profiles,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[s.value]);ri(Ie);async function Ie(){var v;pt.value=!0,tt.value="";try{const[m,ye,Ee,lt,dn,Nt,pn,hn,gn,_n,vn]=await Promise.all([me(B.uiBootstrap),me(B.dashboardSummary),me(B.profiles,{page:1,page_size:20}),me(B.jobs,{page:1,page_size:20}),me(B.settingsSchema),me(B.settingsCurrent),me(B.storageStatus),me(B.materialCategories),me(B.materials,{page:1,page_size:24}),me(B.apiDiscoveryDialects),me(B.apiDiscoveryCapabilities)]);l.value=m,i.value=ye,r.value=Ee,a.value=lt,c.value=dn,g.value=Nt,I(Nt.config),p.value=pn,y.value=hn,O.value=gn,W.value=_n,L.value=vn,await qn((v=Ee.items[0])==null?void 0:v.profile_id),await un()}catch(m){tt.value=m instanceof Error?m.message:t.loadFailed}finally{pt.value=!1}}async function un(){const[v,m,ye,Ee,lt]=await Promise.allSettled([me(B.generationLogs,{limit:12}),me(B.workflowLogs,{limit:12}),me(B.errorLogs,{limit:12}),me(B.integrationLogs,{limit:12}),me(B.auditLogs,{limit:12})]);N.value={generation:_t(v),workflows:_t(m),errors:_t(ye),integrations:_t(Ee),audit:_t(lt)}}function _t(v){return v.status==="fulfilled"?v.value:[]}async function qn(v){if(!v){M.value=[];return}M.value=await me(B.wardrobe(v))}async function Y(v,m,ye=!0){K.value=v,tt.value="";try{const Ee=await m();Ce.value=`${v}${t.complete}`,v===t.exportSettings&&(Ce.value=`${t.exportDone}: ${!!Ee.redacted}`),ye&&await Ie()}catch(Ee){tt.value=Ee instanceof Error?Ee.message:`${v}${t.failed}`}finally{K.value=""}}function Ot(v){return Y(t.retry,()=>be(B.jobRetry(v)))}function jt(v){return Y(t.cancel,()=>be(B.jobCancel(v)))}function cn(){j.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},we.value=null}function vt(){return Y(t.quickDraft,async()=>(we.value=await be(B.quickProfileDraft,{questionnaire:{name:j.value.name,identity:j.value.identity,personality:ve(j.value.personality),hair_color:j.value.hair_color,hairstyle:j.value.hairstyle,eye_color:j.value.eye_color,style:j.value.style,clothing_keywords:ve(j.value.clothing_keywords)}}),we.value),!1)}function Rs(){var m;const v=(m=we.value)==null?void 0:m.profile_preview;return Y(t.create,async()=>{const ye=await be(B.profiles,{name:(v==null?void 0:v.name)||j.value.name,description:j.value.description,base_prompt:v==null?void 0:v.base_prompt,appearance_prompt:v==null?void 0:v.appearance_prompt,style_prompt:v==null?void 0:v.style_prompt,negative_prompt:v==null?void 0:v.negative_prompt});return cn(),Ce.value=t.profileCreated,ye})}function u(v){return Y(t.delete,async()=>{const m=await Qt(B.profile(v),{method:"DELETE"});return Ce.value=t.profileDeleted,m})}function f(){return Y(t.moveFailed,()=>be(B.jobDeadLetterMoveFailed,{limit:20}))}function _(){return Y(t.retryDead,()=>be(B.jobDeadLetterRetry,{limit:20}))}function S(){var m;const v=((m=W.value[0])==null?void 0:m.dialect)??"unknown";return Y(t.safeProbe,()=>be(B.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:v,capabilities:{supports:["text_to_image"]}}))}function x(){return Y(t.validatePlan,async()=>(We.value=await be(B.apiDiscoveryValidateRenderPlan,{provider_id:ge.value.provider_id,model_id:ge.value.model_id,required_capabilities:ve(ge.value.required_capabilities)}),We.value),!1)}function b(v,m){return Y(t.discovery,()=>be(B.apiDiscoveryManualOverride,{provider_id:v.provider_id,model_id:v.model_id,dialect:v.dialect,status:m,capabilities:v.capabilities}))}function P(){const v=pe.value;return v?Y(t.matchWardrobe,async()=>(le.value=await be(B.wardrobeMatch(v),{tags:["daily"]}),le.value),!1):Promise.resolve()}function E(){ue.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function C(){const v=pe.value;return v?Y(t.importToWardrobe,async()=>{const m=await be(B.wardrobeImportMaterial(v),{material_id:ue.value.material_id,wardrobe_category:ue.value.wardrobe_category,tags:ve(ue.value.tags),season:ue.value.season||void 0,style:ue.value.style||void 0});return E(),Ce.value=t.wardrobeImported,m}):Promise.resolve()}function w(v){const m=pe.value;return m?Y(t.delete,async()=>{const ye=await Qt(B.wardrobeItem(m,v),{method:"DELETE"});return Ce.value=t.wardrobeDeleted,ye}):Promise.resolve()}function k(){return Y(t.reload,async()=>{var m;const v=await be(B.settingsReload);return g.value={config_path:((m=g.value)==null?void 0:m.config_path)??"***PATH***",config:v.config},I(v.config),v},!1)}function T(){return Y(t.exportSettings,()=>me(B.settingsExport),!1)}function I(v=(m=>(m=g.value)==null?void 0:m.config)()??{}){q.value=JSON.stringify(v,null,2),R.value=null,ie.value=null}function F(){try{const v=JSON.parse(q.value);if(!v||Array.isArray(v)||typeof v!="object")throw new Error(t.settingsDraftInvalid);return v}catch(v){throw new Error(v instanceof Error?v.message:t.settingsDraftInvalid)}}function H(){return Y(t.validate,async()=>(R.value=await be(B.settingsValidate,{config:F()}),R.value),!1)}function X(){return Y(t.diff,async()=>(ie.value=await be(B.settingsDiff,{config:F()}),ie.value),!1)}function J(){return Y(t.save,async()=>{var m;const v=await be(B.settingsSave,{config:F()});return g.value={config_path:((m=g.value)==null?void 0:m.config_path)??"***PATH***",config:v.config},I(v.config),Ce.value=t.settingsSaved,v},!1)}function ce(){var m,ye;const v=(ye=(m=O.value)==null?void 0:m.items.find(Ee=>{var lt;return(lt=Ee.image_uri)==null?void 0:lt.startsWith("storage://")}))==null?void 0:ye.image_uri;return v?Y(t.signMaterial,async()=>(U.value=await me(B.mediaSign,{uri:v}),U.value),!1):(Ce.value=t.noSignableMaterial,Promise.resolve())}function _e(){re.value={display_name:"",image_uri:"",tags:"",category_id:""}}function Le(){return Y(t.create,async()=>{const v=await be(B.materials,{display_name:re.value.display_name,image_uri:re.value.image_uri||void 0,thumbnail_uri:re.value.image_uri||void 0,category_id:re.value.category_id||void 0,tags:ve(re.value.tags),recognition_status:re.value.image_uri?"pending_recognition":"pending_upload"});return _e(),Ce.value=t.materialCreated,v})}function $e(v){return Y(t.recognize,()=>be(B.materialRecognize(v)))}function mt(v){return Y(t.confirm,()=>be(B.materialConfirm(v.material_id),{display_name:v.display_name,prompt:v.prompt,negative_prompt:v.negative_prompt,tags:v.tags}))}function fn(v){return Y(t.archive,async()=>{const m=await Qt(B.material(v),{method:"DELETE"});return Ce.value=t.materialArchived,m})}function ve(v){return v.split(",").map(m=>m.trim()).filter(Boolean)}function Re(v=0){return v<1024?`${v} B`:v<1024*1024?`${(v/1024).toFixed(1)} KB`:v<1024*1024*1024?`${(v/1024/1024).toFixed(1)} MB`:`${(v/1024/1024/1024).toFixed(1)} GB`}function Vt(v){var m,ye;return((ye=(m=p.value)==null?void 0:m.roots.find(Ee=>Ee.uri_prefix===v))==null?void 0:ye.bytes)??0}return(v,m)=>{var ye,Ee,lt,dn,Nt,pn,hn,gn,_n,vn,ks,Fs,Ls,$s,js,Vs,Ns,Bs,Us,Hs,Ws,Ks;return D(),A("main",ua,[o("aside",ca,[o("div",fa,[o("strong",null,d(((ye=l.value)==null?void 0:ye.display_name)??"ImageStudio"),1),o("span",null,d(((Ee=l.value)==null?void 0:Ee.dashboard_user)??"AstrBot"),1)]),o("nav",null,[(D(),A(ne,null,Pe(n,h=>o("button",{key:h.key,type:"button",class:Vn({active:s.value===h.key}),onClick:Ke=>s.value=h.key},d(h.label),11,da)),64))])]),o("section",pa,[o("header",ha,[o("div",null,[o("h1",null,d(st.value),1),o("p",null,d(((lt=i.value)==null?void 0:lt.plugin_status)??"loading")+" / "+d(Ce.value||t.waiting),1)]),o("div",ga,[o("button",{type:"button",disabled:!!K.value,onClick:Ie},d(K.value||t.refresh),9,_a)])]),tt.value?(D(),A("section",va,d(tt.value),1)):pt.value?(D(),A("section",ma,d(t.loading),1)):(D(),A(ne,{key:2},[s.value==="dashboard"?(D(),A("section",ya,[o("article",null,[o("span",null,d(t.profiles),1),o("strong",null,d(((dn=i.value)==null?void 0:dn.active_profiles)??0),1)]),o("article",null,[o("span",null,d(t.jobs),1),o("strong",null,d(Z.value),1)]),o("article",null,[o("span",null,d(t.materials),1),o("strong",null,d(((Nt=O.value)==null?void 0:Nt.total)??0),1)]),o("article",null,[o("span",null,d(t.storage),1),o("strong",null,d(Re(((pn=p.value)==null?void 0:pn.total_bytes)??((hn=i.value)==null?void 0:hn.storage.total_bytes))),1)])])):ae("",!0),s.value==="profiles"?(D(),A("section",ba,[o("header",null,[o("h2",null,d(t.profileList),1),o("span",null,d(((gn=r.value)==null?void 0:gn.total)??0),1)]),o("div",wa,[o("label",null,[o("span",null,d(t.name),1),fe(o("input",{"onUpdate:modelValue":m[0]||(m[0]=h=>j.value.name=h),type:"text"},null,512),[[he,j.value.name]])]),o("label",null,[o("span",null,d(t.identity),1),fe(o("input",{"onUpdate:modelValue":m[1]||(m[1]=h=>j.value.identity=h),type:"text"},null,512),[[he,j.value.identity]])]),o("label",null,[o("span",null,d(t.personality),1),fe(o("input",{"onUpdate:modelValue":m[2]||(m[2]=h=>j.value.personality=h),type:"text",placeholder:"calm, brave"},null,512),[[he,j.value.personality]])]),o("label",null,[o("span",null,d(t.hairColor),1),fe(o("input",{"onUpdate:modelValue":m[3]||(m[3]=h=>j.value.hair_color=h),type:"text"},null,512),[[he,j.value.hair_color]])]),o("label",null,[o("span",null,d(t.hairstyle),1),fe(o("input",{"onUpdate:modelValue":m[4]||(m[4]=h=>j.value.hairstyle=h),type:"text"},null,512),[[he,j.value.hairstyle]])]),o("label",null,[o("span",null,d(t.eyeColor),1),fe(o("input",{"onUpdate:modelValue":m[5]||(m[5]=h=>j.value.eye_color=h),type:"text"},null,512),[[he,j.value.eye_color]])]),o("label",null,[o("span",null,d(t.stylePrompt),1),fe(o("input",{"onUpdate:modelValue":m[6]||(m[6]=h=>j.value.style=h),type:"text"},null,512),[[he,j.value.style]])]),o("label",null,[o("span",null,d(t.tags),1),fe(o("input",{"onUpdate:modelValue":m[7]||(m[7]=h=>j.value.clothing_keywords=h),type:"text",placeholder:"white blouse, ribbon"},null,512),[[he,j.value.clothing_keywords]])]),o("label",xa,[o("span",null,d(t.description),1),fe(o("input",{"onUpdate:modelValue":m[8]||(m[8]=h=>j.value.description=h),type:"text"},null,512),[[he,j.value.description]])]),o("button",{type:"button",disabled:!!K.value||!j.value.name,onClick:vt},d(t.quickDraft),9,Sa),o("button",{type:"button",disabled:!!K.value||!j.value.name,onClick:Rs},d(t.create),9,Ca)]),we.value?(D(),A("pre",Ea,d(JSON.stringify(we.value,null,2)),1)):ae("",!0),o("ul",null,[(D(!0),A(ne,null,Pe(((_n=r.value)==null?void 0:_n.items)??[],h=>(D(),A("li",{key:h.profile_id},[o("div",null,[o("strong",null,d(h.name),1),o("small",null,d(h.profile_id),1)]),o("div",Pa,[o("span",Ta,d(h.status),1),o("button",{type:"button",disabled:!!K.value,onClick:Ke=>u(h.profile_id)},d(t.delete),9,Oa)])]))),128)),(vn=r.value)!=null&&vn.items.length?ae("",!0):(D(),A("li",Da,d(t.emptyProfiles),1))])])):ae("",!0),s.value==="materials"?(D(),A("section",Aa,[o("div",Ma,[o("header",null,[o("h2",null,d(t.categories),1),o("span",null,d(y.value.length),1)]),o("ul",null,[(D(!0),A(ne,null,Pe(y.value,h=>(D(),A("li",{key:h.category_id},[o("div",null,[o("strong",null,d(h.name),1),o("small",null,d(h.category_type),1)]),o("span",null,d(h.sort_order),1)]))),128)),y.value.length?ae("",!0):(D(),A("li",Ia,d(t.emptyCategories),1))])]),o("div",Ra,[o("header",null,[o("h2",null,d(t.materialItems),1),o("div",ka,[o("span",null,d(nt.value)+" "+d(t.pendingConfirm),1),o("button",{type:"button",disabled:!!K.value,onClick:ce},d(t.signFirstImage),9,Fa)])]),o("div",La,[o("label",null,[o("span",null,d(t.name),1),fe(o("input",{"onUpdate:modelValue":m[9]||(m[9]=h=>re.value.display_name=h),type:"text"},null,512),[[he,re.value.display_name]])]),o("label",null,[o("span",null,d(t.imageUri),1),fe(o("input",{"onUpdate:modelValue":m[10]||(m[10]=h=>re.value.image_uri=h),type:"text",placeholder:"storage://materials/example.png"},null,512),[[he,re.value.image_uri]])]),o("label",null,[o("span",null,d(t.category),1),fe(o("select",{"onUpdate:modelValue":m[11]||(m[11]=h=>re.value.category_id=h)},[o("option",$a,d(t.allCategories),1),(D(!0),A(ne,null,Pe(y.value,h=>(D(),A("option",{key:h.category_id,value:h.category_id},d(h.name),9,ja))),128))],512),[[xl,re.value.category_id]])]),o("label",null,[o("span",null,d(t.tags),1),fe(o("input",{"onUpdate:modelValue":m[12]||(m[12]=h=>re.value.tags=h),type:"text",placeholder:"daily, top"},null,512),[[he,re.value.tags]])]),o("button",{type:"button",disabled:!!K.value||!re.value.display_name,onClick:Le},d(t.create),9,Va)]),o("ul",null,[(D(!0),A(ne,null,Pe(((ks=O.value)==null?void 0:ks.items)??[],h=>(D(),A("li",{key:h.material_id},[o("div",null,[o("strong",null,d(h.display_name),1),o("small",null,d(h.image_uri??t.noImage),1)]),o("div",Na,[o("span",Ba,d(h.recognition_status),1),o("button",{type:"button",disabled:!!K.value,onClick:Ke=>$e(h.material_id)},d(t.recognize),9,Ua),o("button",{type:"button",disabled:!!K.value||h.recognition_status==="confirmed",onClick:Ke=>mt(h)},d(t.confirm),9,Ha),o("button",{type:"button",disabled:!!K.value,onClick:Ke=>fn(h.material_id)},d(t.archive),9,Wa)])]))),128)),(Fs=O.value)!=null&&Fs.items.length?ae("",!0):(D(),A("li",Ka,d(t.emptyMaterials),1))]),U.value?(D(),A("pre",qa,d(JSON.stringify(U.value,null,2)),1)):ae("",!0)])])):ae("",!0),s.value==="wardrobe"?(D(),A("section",Ja,[o("header",null,[o("h2",null,d(oe.value),1),o("button",{type:"button",disabled:!pe.value||!!K.value,onClick:P},d(t.match),9,Ga)]),o("div",za,[o("label",null,[o("span",null,d(t.selectMaterial),1),fe(o("select",{"onUpdate:modelValue":m[13]||(m[13]=h=>ue.value.material_id=h)},[o("option",Ya,d(t.selectMaterial),1),(D(!0),A(ne,null,Pe(Tt.value,h=>(D(),A("option",{key:h.material_id,value:h.material_id},d(h.display_name),9,Xa))),128))],512),[[xl,ue.value.material_id]])]),o("label",null,[o("span",null,d(t.wardrobeCategory),1),fe(o("input",{"onUpdate:modelValue":m[14]||(m[14]=h=>ue.value.wardrobe_category=h),type:"text"},null,512),[[he,ue.value.wardrobe_category]])]),o("label",null,[o("span",null,d(t.tags),1),fe(o("input",{"onUpdate:modelValue":m[15]||(m[15]=h=>ue.value.tags=h),type:"text",placeholder:"daily, top"},null,512),[[he,ue.value.tags]])]),o("label",null,[o("span",null,d(t.season),1),fe(o("input",{"onUpdate:modelValue":m[16]||(m[16]=h=>ue.value.season=h),type:"text"},null,512),[[he,ue.value.season]])]),o("label",null,[o("span",null,d(t.style),1),fe(o("input",{"onUpdate:modelValue":m[17]||(m[17]=h=>ue.value.style=h),type:"text"},null,512),[[he,ue.value.style]])]),o("button",{type:"button",disabled:!!K.value||!pe.value||!ue.value.material_id||!ue.value.wardrobe_category,onClick:C},d(t.importToWardrobe),9,Qa)]),o("ul",null,[(D(!0),A(ne,null,Pe(M.value,h=>(D(),A("li",{key:h.wardrobe_item_id},[o("div",null,[o("strong",null,d(h.wardrobe_category),1),o("small",null,d(h.material_id)+" / "+d(h.tags.join(", ")||t.noTags),1)]),o("div",Za,[o("span",null,d(h.usage_count),1),o("button",{type:"button",disabled:!!K.value,onClick:Ke=>w(h.wardrobe_item_id)},d(t.delete),9,eu)])]))),128)),M.value.length?ae("",!0):(D(),A("li",tu,d(t.emptyWardrobe),1))]),le.value?(D(),A("pre",nu,d(JSON.stringify(le.value,null,2)),1)):ae("",!0)])):ae("",!0),s.value==="jobs"?(D(),A("section",su,[o("header",null,[o("h2",null,d(t.jobs),1),o("div",lu,[o("button",{type:"button",disabled:!!K.value,onClick:f},d(t.moveFailed),9,iu),o("button",{type:"button",disabled:!!K.value,onClick:_},d(t.retryDead),9,ru)])]),o("ul",null,[(D(!0),A(ne,null,Pe(((Ls=a.value)==null?void 0:Ls.items)??[],h=>(D(),A("li",{key:h.task_id},[o("div",null,[o("strong",null,d(h.task_id),1),o("small",null,d(h.task_type)+" / "+d(h.progress)+"%",1)]),o("div",ou,[o("span",au,d(h.status),1),h.status==="failed"?(D(),A("button",{key:0,type:"button",onClick:Ke=>Ot(h.task_id)},d(t.retry),9,uu)):ae("",!0),h.status==="pending"?(D(),A("button",{key:1,type:"button",onClick:Ke=>jt(h.task_id)},d(t.cancel),9,cu)):ae("",!0)])]))),128)),($s=a.value)!=null&&$s.items.length?ae("",!0):(D(),A("li",fu,d(t.emptyJobs),1))])])):ae("",!0),s.value==="discovery"?(D(),A("section",du,[o("div",pu,[o("header",null,[o("h2",null,d(t.dialects),1),o("button",{type:"button",disabled:!!K.value,onClick:S},d(t.safeProbe),9,hu)]),o("ul",null,[(D(!0),A(ne,null,Pe(W.value,h=>(D(),A("li",{key:h.dialect},[o("div",null,[o("strong",null,d(h.label),1),o("small",null,d(h.capabilities.join(", ")||t.unconfirmed),1)]),o("span",null,d(h.dialect),1)]))),128))]),o("div",gu,[o("label",null,[o("span",null,d(t.provider),1),fe(o("input",{"onUpdate:modelValue":m[18]||(m[18]=h=>ge.value.provider_id=h),type:"text",placeholder:"local-preview"},null,512),[[he,ge.value.provider_id]])]),o("label",null,[o("span",null,d(t.model),1),fe(o("input",{"onUpdate:modelValue":m[19]||(m[19]=h=>ge.value.model_id=h),type:"text",placeholder:"metadata-only"},null,512),[[he,ge.value.model_id]])]),o("label",null,[o("span",null,d(t.requiredCapabilities),1),fe(o("input",{"onUpdate:modelValue":m[20]||(m[20]=h=>ge.value.required_capabilities=h),type:"text",placeholder:"text_to_image"},null,512),[[he,ge.value.required_capabilities]])]),o("button",{type:"button",disabled:!!K.value||!ge.value.provider_id||!ge.value.model_id,onClick:x},d(t.validatePlan),9,_u)]),We.value?(D(),A("pre",vu,d(JSON.stringify(We.value,null,2)),1)):ae("",!0)]),o("div",mu,[o("header",null,[o("h2",null,d(t.capabilityProfiles),1),o("span",null,d(L.value.length),1)]),o("ul",null,[(D(!0),A(ne,null,Pe(L.value,h=>(D(),A("li",{key:h.capability_profile_id},[o("div",null,[o("strong",null,d(h.provider_id)+" / "+d(h.model_id),1),o("small",null,d(h.dialect),1)]),o("div",yu,[o("span",bu,d(h.status),1),o("button",{type:"button",disabled:!!K.value,onClick:Ke=>b(h,"confirmed_supported")},d(t.support),9,wu),o("button",{type:"button",disabled:!!K.value,onClick:Ke=>b(h,"confirmed_unsupported")},d(t.unsupported),9,xu),o("button",{type:"button",disabled:!!K.value,onClick:Ke=>b(h,"unconfirmed")},d(t.unconfirmed),9,Su)])]))),128)),L.value.length?ae("",!0):(D(),A("li",Cu,d(t.emptyCapabilities),1))])])])):ae("",!0),s.value==="logs"?(D(),A("section",Eu,[o("div",Pu,[o("div",Tu,[o("header",null,[o("h2",null,d(t.generationLogs),1),o("span",null,d(N.value.generation.length),1)]),o("ul",null,[(D(!0),A(ne,null,Pe(N.value.generation,h=>(D(),A("li",{key:h.task_id},[o("div",null,[o("strong",null,d(h.task_id),1),o("small",null,d(h.status)+" / "+d(h.progress)+"%",1)]),o("span",null,d(h.created_at),1)]))),128)),N.value.generation.length?ae("",!0):(D(),A("li",Ou,d(t.emptyGenerationLogs),1))])]),o("div",Du,[o("header",null,[o("h2",null,d(t.errorLogs),1),o("span",null,d(N.value.errors.length),1)]),o("ul",null,[(D(!0),A(ne,null,Pe(N.value.errors,h=>(D(),A("li",{key:`${h.source}-${h.id}`},[o("div",null,[o("strong",null,d(h.source),1),o("small",null,d(h.error_message??t.noErrorDetail),1)]),o("span",Au,d(h.status),1)]))),128)),N.value.errors.length?ae("",!0):(D(),A("li",Mu,d(t.emptyErrors),1))])])]),o("div",Iu,[o("div",Ru,[o("header",null,[o("h2",null,d(t.workflowLogs),1),o("span",null,d(N.value.workflows.length),1)]),o("ul",null,[(D(!0),A(ne,null,Pe(N.value.workflows,h=>(D(),A("li",{key:h.history_id},[o("div",null,[o("strong",null,d(h.action),1),o("small",null,d(h.title??h.workflow_id),1)]),o("span",null,d(h.branch_name??"main"),1)]))),128)),N.value.workflows.length?ae("",!0):(D(),A("li",ku,d(t.emptyWorkflowLogs),1))])]),o("div",Fu,[o("header",null,[o("h2",null,d(t.integrationLogs),1),o("span",null,d(N.value.integrations.length),1)]),o("ul",null,[(D(!0),A(ne,null,Pe(N.value.integrations,h=>(D(),A("li",{key:h.integration_log_id},[o("div",null,[o("strong",null,d(h.integration_name),1),o("small",null,d(h.action),1)]),o("span",Lu,d(h.status),1)]))),128)),N.value.integrations.length?ae("",!0):(D(),A("li",$u,d(t.emptyIntegrationLogs),1))])])]),o("div",ju,[o("header",null,[o("h2",null,d(t.auditLogs),1),o("span",null,d(N.value.audit.length),1)]),o("ul",null,[(D(!0),A(ne,null,Pe(N.value.audit,h=>(D(),A("li",{key:h.audit_id},[o("div",null,[o("strong",null,d(h.action),1),o("small",null,d(h.actor_type)+" / "+d(h.target_type)+" / "+d(h.target_id),1)]),o("span",null,d(h.created_at),1)]))),128)),N.value.audit.length?ae("",!0):(D(),A("li",Vu,d(t.emptyAuditLogs),1))])])])):ae("",!0),s.value==="settings"?(D(),A("section",Nu,[o("div",Bu,[o("button",{type:"button",disabled:!!K.value,onClick:k},d(t.reload),9,Uu),o("button",{type:"button",disabled:!!K.value,onClick:m[21]||(m[21]=h=>I())},d(t.reset),9,Hu),o("button",{type:"button",disabled:!!K.value,onClick:H},d(t.validate),9,Wu),o("button",{type:"button",disabled:!!K.value,onClick:X},d(t.diff),9,Ku),o("button",{type:"button",disabled:!!K.value,onClick:J},d(t.save),9,qu),o("button",{type:"button",disabled:!!K.value,onClick:T},d(t.exportRedacted),9,Ju)]),o("div",Gu,[(D(!0),A(ne,null,Pe(((js=c.value)==null?void 0:js.sections)??[],h=>(D(),A("article",{key:h.key},[o("h2",null,d(h.title),1),o("span",null,d(h.fields.length),1)]))),128))]),o("section",zu,[o("header",null,[o("h2",null,d(t.settingsEditor),1),o("span",null,d(((Vs=g.value)==null?void 0:Vs.config_path)??"***PATH***"),1)]),fe(o("textarea",{"onUpdate:modelValue":m[22]||(m[22]=h=>q.value=h),spellcheck:"false"},null,512),[[he,q.value]])]),o("div",Yu,[o("div",Xu,[o("header",null,[o("h2",null,d(t.validationResult),1),o("span",null,d(((Ns=R.value)==null?void 0:Ns.valid)??"-"),1)]),o("pre",null,d(JSON.stringify(R.value??{},null,2)),1)]),o("div",Qu,[o("header",null,[o("h2",null,d(t.diffResult),1),o("span",null,d(((Bs=ie.value)==null?void 0:Bs.changes.length)??0),1)]),o("pre",null,d(JSON.stringify(ie.value??{},null,2)),1)])])])):ae("",!0)],64))]),o("aside",Zu,[o("h2",null,d(t.running),1),o("dl",null,[o("div",null,[m[23]||(m[23]=o("dt",null,"Pending",-1)),o("dd",null,d(((Us=i.value)==null?void 0:Us.queue.pending)??0),1)]),o("div",null,[m[24]||(m[24]=o("dt",null,"Running",-1)),o("dd",null,d(((Hs=i.value)==null?void 0:Hs.queue.running)??0),1)]),o("div",null,[m[25]||(m[25]=o("dt",null,"Failed",-1)),o("dd",null,d(((Ws=i.value)==null?void 0:Ws.queue.failed)??0),1)]),o("div",null,[m[26]||(m[26]=o("dt",null,"Dead",-1)),o("dd",null,d(((Ks=i.value)==null?void 0:Ks.queue.dead_letter)??0),1)])]),o("h2",null,d(t.storage),1),o("dl",null,[o("div",null,[m[27]||(m[27]=o("dt",null,"Images",-1)),o("dd",null,d(Re(Vt("storage://images/"))),1)]),o("div",null,[m[28]||(m[28]=o("dt",null,"Materials",-1)),o("dd",null,d(Re(Vt("storage://materials/"))),1)])])])])}}}),tc=(e,t)=>{const n=e.__vccOpts||e;for(const[s,l]of t)n[s]=l;return n},nc=tc(ec,[["__scopeId","data-v-d9e04eb8"]]);sa(nc).mount("#app"); diff --git a/web/assets/index-D3Mc9q12.js b/web/assets/index-D3Mc9q12.js deleted file mode 100644 index 022b9eb..0000000 --- a/web/assets/index-D3Mc9q12.js +++ /dev/null @@ -1,17 +0,0 @@ -var El=Object.defineProperty;var Tl=(e,t,s)=>t in e?El(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var Vs=(e,t,s)=>Tl(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const r of l.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function s(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(i){if(i.ep)return;i.ep=!0;const l=s(i);fetch(i.href,l)}})();/** -* @vue/shared v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function dn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const se={},Ot=[],qe=()=>{},bi=()=>!1,Ps=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Os=e=>e.startsWith("onUpdate:"),ye=Object.assign,pn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Pl=Object.prototype.hasOwnProperty,z=(e,t)=>Pl.call(e,t),$=Array.isArray,At=e=>Zt(e)==="[object Map]",As=e=>Zt(e)==="[object Set]",Bn=e=>Zt(e)==="[object Date]",j=e=>typeof e=="function",fe=e=>typeof e=="string",Je=e=>typeof e=="symbol",Q=e=>e!==null&&typeof e=="object",yi=e=>(Q(e)||j(e))&&j(e.then)&&j(e.catch),wi=Object.prototype.toString,Zt=e=>wi.call(e),Ol=e=>Zt(e).slice(8,-1),xi=e=>Zt(e)==="[object Object]",hn=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Bt=dn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ms=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Al=/-\w/g,$e=Ms(e=>e.replace(Al,t=>t.slice(1).toUpperCase())),Ml=/\B([A-Z])/g,Ct=Ms(e=>e.replace(Ml,"-$1").toLowerCase()),Si=Ms(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hs=Ms(e=>e?`on${Si(e)}`:""),Ke=(e,t)=>!Object.is(e,t),hs=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Ds=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Vn;const Is=()=>Vn||(Vn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gn(e){if($(e)){const t={};for(let s=0;s{if(s){const n=s.split(Il);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Rs(e){let t="";if(fe(e))t=e;else if($(e))for(let s=0;sQt(s,t))}const Ti=e=>!!(e&&e.__v_isRef===!0),p=e=>fe(e)?e:e==null?"":$(e)||Q(e)&&(e.toString===wi||!j(e.toString))?Ti(e)?p(e.value):JSON.stringify(e,Pi,2):String(e),Pi=(e,t)=>Ti(t)?Pi(e,t.value):At(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],l)=>(s[Us(n,l)+" =>"]=i,s),{})}:As(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Us(s))}:Je(t)?Us(t):Q(t)&&!$(t)&&!xi(t)?String(t):t,Us=(e,t="")=>{var s;return Je(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** -* @vue/reactivity v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let be;class Nl{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&&be&&(be.active?(this.parent=be,this.index=(be.scopes||(be.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0){if(be===this)be=this.prevScope;else{let t=be;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 s,n;for(s=0,n=this.effects.length;s0)return;if(Ht){let t=Ht;for(Ht=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Vt;){let t=Vt;for(Vt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Di(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ii(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),mn(n),Vl(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function en(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ri(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ri(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Jt)||(e.globalVersion=Jt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!en(e))))return;e.flags|=2;const t=e.dep,s=ie,n=je;ie=e,je=!0;try{Di(e);const i=e.fn(e._value);(t.version===0||Ke(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{ie=s,je=n,Ii(e),e.flags&=-3}}function mn(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let l=s.computed.deps;l;l=l.nextDep)mn(l,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Vl(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let je=!0;const Fi=[];function Ge(){Fi.push(je),je=!1}function ze(){const e=Fi.pop();je=e===void 0?!0:e}function Hn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=ie;ie=void 0;try{t()}finally{ie=s}}}let Jt=0;class Hl{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class bn{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(!ie||!je||ie===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ie)s=this.activeLink=new Hl(ie,this),ie.deps?(s.prevDep=ie.depsTail,ie.depsTail.nextDep=s,ie.depsTail=s):ie.deps=ie.depsTail=s,Li(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=ie.depsTail,s.nextDep=void 0,ie.depsTail.nextDep=s,ie.depsTail=s,ie.deps===s&&(ie.deps=n)}return s}trigger(t){this.version++,Jt++,this.notify(t)}notify(t){_n();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{vn()}}}function Li(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Li(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const tn=new WeakMap,xt=Symbol(""),sn=Symbol(""),Gt=Symbol("");function Ce(e,t,s){if(je&&ie){let n=tn.get(e);n||tn.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new bn),i.map=n,i.key=s),i.track()}}function lt(e,t,s,n,i,l){const r=tn.get(e);if(!r){Jt++;return}const o=c=>{c&&c.trigger()};if(_n(),t==="clear")r.forEach(o);else{const c=$(e),h=c&&hn(s);if(c&&s==="length"){const d=Number(n);r.forEach((v,O)=>{(O==="length"||O===Gt||!Je(O)&&O>=d)&&o(v)})}else switch((s!==void 0||r.has(void 0))&&o(r.get(s)),h&&o(r.get(Gt)),t){case"add":c?h&&o(r.get("length")):(o(r.get(xt)),At(e)&&o(r.get(sn)));break;case"delete":c||(o(r.get(xt)),At(e)&&o(r.get(sn)));break;case"set":At(e)&&o(r.get(xt));break}}vn()}function Tt(e){const t=G(e);return t===e?t:(Ce(t,"iterate",Gt),Fe(e)?t:t.map(Ne))}function Fs(e){return Ce(e=G(e),"iterate",Gt),e}function Ue(e,t){return at(e)?Rt(St(e)?Ne(t):t):Ne(t)}const Ul={__proto__:null,[Symbol.iterator](){return Ks(this,Symbol.iterator,e=>Ue(this,e))},concat(...e){return Tt(this).concat(...e.map(t=>$(t)?Tt(t):t))},entries(){return Ks(this,"entries",e=>(e[1]=Ue(this,e[1]),e))},every(e,t){return st(this,"every",e,t,void 0,arguments)},filter(e,t){return st(this,"filter",e,t,s=>s.map(n=>Ue(this,n)),arguments)},find(e,t){return st(this,"find",e,t,s=>Ue(this,s),arguments)},findIndex(e,t){return st(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return st(this,"findLast",e,t,s=>Ue(this,s),arguments)},findLastIndex(e,t){return st(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return st(this,"forEach",e,t,void 0,arguments)},includes(...e){return qs(this,"includes",e)},indexOf(...e){return qs(this,"indexOf",e)},join(e){return Tt(this).join(e)},lastIndexOf(...e){return qs(this,"lastIndexOf",e)},map(e,t){return st(this,"map",e,t,void 0,arguments)},pop(){return kt(this,"pop")},push(...e){return kt(this,"push",e)},reduce(e,...t){return Un(this,"reduce",e,t)},reduceRight(e,...t){return Un(this,"reduceRight",e,t)},shift(){return kt(this,"shift")},some(e,t){return st(this,"some",e,t,void 0,arguments)},splice(...e){return kt(this,"splice",e)},toReversed(){return Tt(this).toReversed()},toSorted(e){return Tt(this).toSorted(e)},toSpliced(...e){return Tt(this).toSpliced(...e)},unshift(...e){return kt(this,"unshift",e)},values(){return Ks(this,"values",e=>Ue(this,e))}};function Ks(e,t,s){const n=Fs(e),i=n[t]();return n!==e&&!Fe(e)&&(i._next=i.next,i.next=()=>{const l=i._next();return l.done||(l.value=s(l.value)),l}),i}const Wl=Array.prototype;function st(e,t,s,n,i,l){const r=Fs(e),o=r!==e&&!Fe(e),c=r[t];if(c!==Wl[t]){const v=c.apply(e,l);return o?Ne(v):v}let h=s;r!==e&&(o?h=function(v,O){return s.call(this,Ue(e,v),O,e)}:s.length>2&&(h=function(v,O){return s.call(this,v,O,e)}));const d=c.call(r,h,n);return o&&i?i(d):d}function Un(e,t,s,n){const i=Fs(e),l=i!==e&&!Fe(e);let r=s,o=!1;i!==e&&(l?(o=n.length===0,r=function(h,d,v){return o&&(o=!1,h=Ue(e,h)),s.call(this,h,Ue(e,d),v,e)}):s.length>3&&(r=function(h,d,v){return s.call(this,h,d,v,e)}));const c=i[t](r,...n);return o?Ue(e,c):c}function qs(e,t,s){const n=G(e);Ce(n,"iterate",Gt);const i=n[t](...s);return(i===-1||i===!1)&&Sn(s[0])?(s[0]=G(s[0]),n[t](...s)):i}function kt(e,t,s=[]){Ge(),_n();const n=G(e)[t].apply(e,s);return vn(),ze(),n}const Kl=dn("__proto__,__v_isRef,__isVue"),ki=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Je));function ql(e){Je(e)||(e=String(e));const t=G(this);return Ce(t,"has",e),t.hasOwnProperty(e)}class $i{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,l=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return l;if(s==="__v_raw")return n===(i?l?sr:Vi:l?Bi:Ni).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const r=$(t);if(!i){let c;if(r&&(c=Ul[s]))return c;if(s==="hasOwnProperty")return ql}const o=Reflect.get(t,s,Ee(t)?t:n);if((Je(s)?ki.has(s):Kl(s))||(i||Ce(t,"get",s),l))return o;if(Ee(o)){const c=r&&hn(s)?o:o.value;return i&&Q(c)?ln(c):c}return Q(o)?i?ln(o):wn(o):o}}class ji extends $i{constructor(t=!1){super(!1,t)}set(t,s,n,i){let l=t[s];const r=$(t)&&hn(s);if(!this._isShallow){const h=at(l);if(!Fe(n)&&!at(n)&&(l=G(l),n=G(n)),!r&&Ee(l)&&!Ee(n))return h||(l.value=n),!0}const o=r?Number(s)e,fs=e=>Reflect.getPrototypeOf(e);function Xl(e,t,s){return function(...n){const i=this.__v_raw,l=G(i),r=At(l),o=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,h=i[e](...n),d=s?nn:t?Rt:Ne;return!t&&Ce(l,"iterate",c?sn:xt),ye(Object.create(h),{next(){const{value:v,done:O}=h.next();return O?{value:v,done:O}:{value:o?[d(v[0]),d(v[1])]:d(v),done:O}}})}}function ds(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Zl(e,t){const s={get(i){const l=this.__v_raw,r=G(l),o=G(i);e||(Ke(i,o)&&Ce(r,"get",i),Ce(r,"get",o));const{has:c}=fs(r),h=t?nn:e?Rt:Ne;if(c.call(r,i))return h(l.get(i));if(c.call(r,o))return h(l.get(o));l!==r&&l.get(i)},get size(){const i=this.__v_raw;return!e&&Ce(G(i),"iterate",xt),i.size},has(i){const l=this.__v_raw,r=G(l),o=G(i);return e||(Ke(i,o)&&Ce(r,"has",i),Ce(r,"has",o)),i===o?l.has(i):l.has(i)||l.has(o)},forEach(i,l){const r=this,o=r.__v_raw,c=G(o),h=t?nn:e?Rt:Ne;return!e&&Ce(c,"iterate",xt),o.forEach((d,v)=>i.call(l,h(d),h(v),r))}};return ye(s,e?{add:ds("add"),set:ds("set"),delete:ds("delete"),clear:ds("clear")}:{add(i){const l=G(this),r=fs(l),o=G(i),c=!t&&!Fe(i)&&!at(i)?o:i;return r.has.call(l,c)||Ke(i,c)&&r.has.call(l,i)||Ke(o,c)&&r.has.call(l,o)||(l.add(c),lt(l,"add",c,c)),this},set(i,l){!t&&!Fe(l)&&!at(l)&&(l=G(l));const r=G(this),{has:o,get:c}=fs(r);let h=o.call(r,i);h||(i=G(i),h=o.call(r,i));const d=c.call(r,i);return r.set(i,l),h?Ke(l,d)&<(r,"set",i,l):lt(r,"add",i,l),this},delete(i){const l=G(this),{has:r,get:o}=fs(l);let c=r.call(l,i);c||(i=G(i),c=r.call(l,i)),o&&o.call(l,i);const h=l.delete(i);return c&<(l,"delete",i,void 0),h},clear(){const i=G(this),l=i.size!==0,r=i.clear();return l&<(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=Xl(i,e,t)}),s}function yn(e,t){const s=Zl(e,t);return(n,i,l)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(z(s,i)&&i in n?s:n,i,l)}const Ql={get:yn(!1,!1)},er={get:yn(!1,!0)},tr={get:yn(!0,!1)};const Ni=new WeakMap,Bi=new WeakMap,Vi=new WeakMap,sr=new WeakMap;function nr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wn(e){return at(e)?e:xn(e,!1,Gl,Ql,Ni)}function ir(e){return xn(e,!1,Yl,er,Bi)}function ln(e){return xn(e,!0,zl,tr,Vi)}function xn(e,t,s,n,i){if(!Q(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const l=i.get(e);if(l)return l;const r=nr(Ol(e));if(r===0)return e;const o=new Proxy(e,r===2?n:s);return i.set(e,o),o}function St(e){return at(e)?St(e.__v_raw):!!(e&&e.__v_isReactive)}function at(e){return!!(e&&e.__v_isReadonly)}function Fe(e){return!!(e&&e.__v_isShallow)}function Sn(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function lr(e){return!z(e,"__v_skip")&&Object.isExtensible(e)&&Ci(e,"__v_skip",!0),e}const Ne=e=>Q(e)?wn(e):e,Rt=e=>Q(e)?ln(e):e;function Ee(e){return e?e.__v_isRef===!0:!1}function te(e){return rr(e,!1)}function rr(e,t){return Ee(e)?e:new or(e,t)}class or{constructor(t,s){this.dep=new bn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:G(t),this._value=s?t:Ne(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Fe(t)||at(t);t=n?t:G(t),Ke(t,s)&&(this._rawValue=t,this._value=n?t:Ne(t),this.dep.trigger())}}function ar(e){return Ee(e)?e.value:e}const ur={get:(e,t,s)=>t==="__v_raw"?e:ar(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return Ee(i)&&!Ee(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function Hi(e){return St(e)?e:new Proxy(e,ur)}class cr{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new bn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Jt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ie!==this)return Mi(this,!0),!0}get value(){const t=this.dep.track();return Ri(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fr(e,t,s=!1){let n,i;return j(e)?n=e:(n=e.get,i=e.set),new cr(n,i,s)}const ps={},vs=new WeakMap;let bt;function dr(e,t=!1,s=bt){if(s){let n=vs.get(s);n||vs.set(s,n=[]),n.push(e)}}function pr(e,t,s=se){const{immediate:n,deep:i,once:l,scheduler:r,augmentJob:o,call:c}=s,h=R=>i?R:Fe(R)||i===!1||i===0?rt(R,1):rt(R);let d,v,O,M,U=!1,L=!1;if(Ee(e)?(v=()=>e.value,U=Fe(e)):St(e)?(v=()=>h(e),U=!0):$(e)?(L=!0,U=e.some(R=>St(R)||Fe(R)),v=()=>e.map(R=>{if(Ee(R))return R.value;if(St(R))return h(R);if(j(R))return c?c(R,2):R()})):j(e)?t?v=c?()=>c(e,2):e:v=()=>{if(O){Ge();try{O()}finally{ze()}}const R=bt;bt=d;try{return c?c(e,3,[M]):e(M)}finally{bt=R}}:v=qe,t&&i){const R=v,re=i===!0?1/0:i;v=()=>rt(R(),re)}const le=Bl(),N=()=>{d.stop(),le&&le.active&&pn(le.effects,d)};if(l&&t){const R=t;t=(...re)=>{const ee=R(...re);return N(),ee}}let B=L?new Array(e.length).fill(ps):ps;const W=R=>{if(!(!(d.flags&1)||!d.dirty&&!R))if(t){const re=d.run();if(R||i||U||(L?re.some((ee,Y)=>Ke(ee,B[Y])):Ke(re,B))){O&&O();const ee=bt;bt=d;try{const Y=[re,B===ps?void 0:L&&B[0]===ps?[]:B,M];B=re,c?c(t,3,Y):t(...Y)}finally{bt=ee}}}else d.run()};return o&&o(W),d=new Oi(v),d.scheduler=r?()=>r(W,!1):W,M=R=>dr(R,!1,d),O=d.onStop=()=>{const R=vs.get(d);if(R){if(c)c(R,4);else for(const re of R)re();vs.delete(d)}},t?n?W(!0):B=d.run():r?r(W.bind(null,!0),!0):d.run(),N.pause=d.pause.bind(d),N.resume=d.resume.bind(d),N.stop=N,N}function rt(e,t=1/0,s){if(t<=0||!Q(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,Ee(e))rt(e.value,t,s);else if($(e))for(let n=0;n{rt(n,t,s)});else if(xi(e)){for(const n in e)rt(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&rt(e[n],t,s)}return e}/** -* @vue/runtime-core v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function es(e,t,s,n){try{return n?e(...n):e()}catch(i){Ls(i,t,s)}}function Be(e,t,s,n){if(j(e)){const i=es(e,t,s,n);return i&&yi(i)&&i.catch(l=>{Ls(l,t,s)}),i}if($(e)){const i=[];for(let l=0;l>>1,i=Pe[n],l=zt(i);l=zt(s)?Pe.push(e):Pe.splice(gr(t),0,e),e.flags|=1,Ki()}}function Ki(){ms||(ms=Ui.then(Ji))}function _r(e){$(e)?Mt.push(...e):dt&&e.id===-1?dt.splice(Pt+1,0,e):e.flags&1||(Mt.push(e),e.flags|=1),Ki()}function Wn(e,t,s=He+1){for(;szt(s)-zt(n));if(Mt.length=0,dt){dt.push(...t);return}for(dt=t,Pt=0;Pte.id==null?e.flags&2?-1:1/0:e.id;function Ji(e){try{for(He=0;He{n._d&&ti(-1);const l=bs(t);let r;try{r=e(...i)}finally{bs(l),n._d&&ti(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function De(e,t){if(Re===null)return e;const s=Ns(Re),n=e.dirs||(e.dirs=[]);for(let i=0;i1)return s&&j(t)?t.call(n&&n.proxy):t}}const br=Symbol.for("v-scx"),yr=()=>gs(br);function Js(e,t,s){return zi(e,t,s)}function zi(e,t,s=se){const{immediate:n,deep:i,flush:l,once:r}=s,o=ye({},s),c=t&&n||!t&&l!=="post";let h;if(Xt){if(l==="sync"){const M=yr();h=M.__watcherHandles||(M.__watcherHandles=[])}else if(!c){const M=()=>{};return M.stop=qe,M.resume=qe,M.pause=qe,M}}const d=Oe;o.call=(M,U,L)=>Be(M,d,U,L);let v=!1;l==="post"?o.scheduler=M=>{Ae(M,d&&d.suspense)}:l!=="sync"&&(v=!0,o.scheduler=(M,U)=>{U?M():Cn(M)}),o.augmentJob=M=>{t&&(M.flags|=4),v&&(M.flags|=2,d&&(M.id=d.uid,M.i=d))};const O=pr(e,t,o);return Xt&&(h?h.push(O):c&&O()),O}function wr(e,t,s){const n=this.proxy,i=fe(e)?e.includes(".")?Yi(n,e):()=>n[e]:e.bind(n,n);let l;j(t)?l=t:(l=t.handler,s=t);const r=ts(this),o=zi(i,l.bind(n),s);return r(),o}function Yi(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;ie.__isTeleport,Gs=Symbol("_leaveCb");function En(e,t){e.shapeFlag&6&&e.component?(e.transition=t,En(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 Cr(e,t){return j(e)?ye({name:e.name},t,{setup:e}):e}function Xi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Kn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ys=new WeakMap;function Ut(e,t,s,n,i=!1){if($(e)){e.forEach((L,le)=>Ut(L,t&&($(t)?t[le]:t),s,n,i));return}if(Wt(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Ut(e,t,s,n.component.subTree);return}const l=n.shapeFlag&4?Ns(n.component):n.el,r=i?null:l,{i:o,r:c}=e,h=t&&t.r,d=o.refs===se?o.refs={}:o.refs,v=o.setupState,O=G(v),M=v===se?bi:L=>Kn(d,L)?!1:z(O,L),U=(L,le)=>!(le&&Kn(d,le));if(h!=null&&h!==c){if(qn(t),fe(h))d[h]=null,M(h)&&(v[h]=null);else if(Ee(h)){const L=t;U(h,L.k)&&(h.value=null),L.k&&(d[L.k]=null)}}if(j(c)){Ge();try{es(c,o,12,[r,d])}finally{ze()}}else{const L=fe(c),le=Ee(c);if(L||le){const N=()=>{if(e.f){const B=L?M(c)?v[c]:d[c]:U()||!e.k?c.value:d[e.k];if(i)$(B)&&pn(B,l);else if($(B))B.includes(l)||B.push(l);else if(L)d[c]=[l],M(c)&&(v[c]=d[c]);else{const W=[l];U(c,e.k)&&(c.value=W),e.k&&(d[e.k]=W)}}else L?(d[c]=r,M(c)&&(v[c]=r)):le&&(U(c,e.k)&&(c.value=r),e.k&&(d[e.k]=r))};if(r){const B=()=>{N(),ys.delete(e)};B.id=-1,ys.set(e,B),Ae(B,s)}else qn(e),N()}}}function qn(e){const t=ys.get(e);t&&(t.flags|=8,ys.delete(e))}Is().requestIdleCallback;Is().cancelIdleCallback;const Wt=e=>!!e.type.__asyncLoader,Zi=e=>e.type.__isKeepAlive;function Er(e,t){Qi(e,"a",t)}function Tr(e,t){Qi(e,"da",t)}function Qi(e,t,s=Oe){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(ks(t,n,s),s){let i=s.parent;for(;i&&i.parent;)Zi(i.parent.vnode)&&Pr(n,t,s,i),i=i.parent}}function Pr(e,t,s,n){const i=ks(t,e,n,!0);tl(()=>{pn(n[t],i)},s)}function ks(e,t,s=Oe,n=!1){if(s){const i=s[e]||(s[e]=[]),l=t.__weh||(t.__weh=(...r)=>{Ge();const o=ts(s),c=Be(t,s,e,r);return o(),ze(),c});return n?i.unshift(l):i.push(l),l}}const ut=e=>(t,s=Oe)=>{(!Xt||e==="sp")&&ks(e,(...n)=>t(...n),s)},Or=ut("bm"),el=ut("m"),Ar=ut("bu"),Mr=ut("u"),Dr=ut("bum"),tl=ut("um"),Ir=ut("sp"),Rr=ut("rtg"),Fr=ut("rtc");function Lr(e,t=Oe){ks("ec",e,t)}const kr=Symbol.for("v-ndc");function xe(e,t,s,n){let i;const l=s,r=$(e);if(r||fe(e)){const o=r&&St(e);let c=!1,h=!1;o&&(c=!Fe(e),h=at(e),e=Fs(e)),i=new Array(e.length);for(let d=0,v=e.length;dt(o,c,void 0,l));else{const o=Object.keys(e);i=new Array(o.length);for(let c=0,h=o.length;ce?xl(e)?Ns(e):rn(e.parent):null,Kt=ye(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=>rn(e.parent),$root:e=>rn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>nl(e),$forceUpdate:e=>e.f||(e.f=()=>{Cn(e.update)}),$nextTick:e=>e.n||(e.n=Wi.bind(e.proxy)),$watch:e=>wr.bind(e)}),zs=(e,t)=>e!==se&&!e.__isScriptSetup&&z(e,t),$r={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:l,accessCache:r,type:o,appContext:c}=e;if(t[0]!=="$"){const O=r[t];if(O!==void 0)switch(O){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return l[t]}else{if(zs(n,t))return r[t]=1,n[t];if(i!==se&&z(i,t))return r[t]=2,i[t];if(z(l,t))return r[t]=3,l[t];if(s!==se&&z(s,t))return r[t]=4,s[t];on&&(r[t]=0)}}const h=Kt[t];let d,v;if(h)return t==="$attrs"&&Ce(e.attrs,"get",""),h(e);if((d=o.__cssModules)&&(d=d[t]))return d;if(s!==se&&z(s,t))return r[t]=4,s[t];if(v=c.config.globalProperties,z(v,t))return v[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:l}=e;return zs(i,t)?(i[t]=s,!0):n!==se&&z(n,t)?(n[t]=s,!0):z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,props:l,type:r}},o){let c;return!!(s[o]||e!==se&&o[0]!=="$"&&z(e,o)||zs(t,o)||z(l,o)||z(n,o)||z(Kt,o)||z(i.config.globalProperties,o)||(c=r.__cssModules)&&c[o])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:z(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Jn(e){return $(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let on=!0;function jr(e){const t=nl(e),s=e.proxy,n=e.ctx;on=!1,t.beforeCreate&&Gn(t.beforeCreate,e,"bc");const{data:i,computed:l,methods:r,watch:o,provide:c,inject:h,created:d,beforeMount:v,mounted:O,beforeUpdate:M,updated:U,activated:L,deactivated:le,beforeDestroy:N,beforeUnmount:B,destroyed:W,unmounted:R,render:re,renderTracked:ee,renderTriggered:Y,errorCaptured:pe,serverPrefetch:Ye,expose:ve,inheritAttrs:Xe,components:K,directives:Le,filters:Ze}=t;if(h&&Nr(h,n,null),r)for(const oe in r){const Z=r[oe];j(Z)&&(n[oe]=Z.bind(s))}if(i){const oe=i.call(s,s);Q(oe)&&(e.data=wn(oe))}if(on=!0,l)for(const oe in l){const Z=l[oe],Qe=j(Z)?Z.bind(s,s):j(Z.get)?Z.get.bind(s,s):qe,ct=!j(Z)&&j(Z.set)?Z.set.bind(s):qe,et=yt({get:Qe,set:ct});Object.defineProperty(n,oe,{enumerable:!0,configurable:!0,get:()=>et.value,set:we=>et.value=we})}if(o)for(const oe in o)sl(o[oe],n,s,oe);if(c){const oe=j(c)?c.call(s):c;Reflect.ownKeys(oe).forEach(Z=>{mr(Z,oe[Z])})}d&&Gn(d,e,"c");function me(oe,Z){$(Z)?Z.forEach(Qe=>oe(Qe.bind(s))):Z&&oe(Z.bind(s))}if(me(Or,v),me(el,O),me(Ar,M),me(Mr,U),me(Er,L),me(Tr,le),me(Lr,pe),me(Fr,ee),me(Rr,Y),me(Dr,B),me(tl,R),me(Ir,Ye),$(ve))if(ve.length){const oe=e.exposed||(e.exposed={});ve.forEach(Z=>{Object.defineProperty(oe,Z,{get:()=>s[Z],set:Qe=>s[Z]=Qe,enumerable:!0})})}else e.exposed||(e.exposed={});re&&e.render===qe&&(e.render=re),Xe!=null&&(e.inheritAttrs=Xe),K&&(e.components=K),Le&&(e.directives=Le),Ye&&Xi(e)}function Nr(e,t,s=qe){$(e)&&(e=an(e));for(const n in e){const i=e[n];let l;Q(i)?"default"in i?l=gs(i.from||n,i.default,!0):l=gs(i.from||n):l=gs(i),Ee(l)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>l.value,set:r=>l.value=r}):t[n]=l}}function Gn(e,t,s){Be($(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function sl(e,t,s,n){let i=n.includes(".")?Yi(s,n):()=>s[n];if(fe(e)){const l=t[e];j(l)&&Js(i,l)}else if(j(e))Js(i,e.bind(s));else if(Q(e))if($(e))e.forEach(l=>sl(l,t,s,n));else{const l=j(e.handler)?e.handler.bind(s):t[e.handler];j(l)&&Js(i,l,e)}}function nl(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:l,config:{optionMergeStrategies:r}}=e.appContext,o=l.get(t);let c;return o?c=o:!i.length&&!s&&!n?c=t:(c={},i.length&&i.forEach(h=>ws(c,h,r,!0)),ws(c,t,r)),Q(t)&&l.set(t,c),c}function ws(e,t,s,n=!1){const{mixins:i,extends:l}=t;l&&ws(e,l,s,!0),i&&i.forEach(r=>ws(e,r,s,!0));for(const r in t)if(!(n&&r==="expose")){const o=Br[r]||s&&s[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const Br={data:zn,props:Yn,emits:Yn,methods:jt,computed:jt,beforeCreate:Te,created:Te,beforeMount:Te,mounted:Te,beforeUpdate:Te,updated:Te,beforeDestroy:Te,beforeUnmount:Te,destroyed:Te,unmounted:Te,activated:Te,deactivated:Te,errorCaptured:Te,serverPrefetch:Te,components:jt,directives:jt,watch:Hr,provide:zn,inject:Vr};function zn(e,t){return t?e?function(){return ye(j(e)?e.call(this,this):e,j(t)?t.call(this,this):t)}:t:e}function Vr(e,t){return jt(an(e),an(t))}function an(e){if($(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${$e(t)}Modifiers`]||e[`${Ct(t)}Modifiers`];function qr(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||se;let i=s;const l=t.startsWith("update:"),r=l&&Kr(n,t.slice(7));r&&(r.trim&&(i=s.map(d=>fe(d)?d.trim():d)),r.number&&(i=s.map(Ds)));let o,c=n[o=Hs(t)]||n[o=Hs($e(t))];!c&&l&&(c=n[o=Hs(Ct(t))]),c&&Be(c,e,6,i);const h=n[o+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Be(h,e,6,i)}}const Jr=new WeakMap;function ll(e,t,s=!1){const n=s?Jr:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const l=e.emits;let r={},o=!1;if(!j(e)){const c=h=>{const d=ll(h,t,!0);d&&(o=!0,ye(r,d))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!l&&!o?(Q(e)&&n.set(e,null),null):($(l)?l.forEach(c=>r[c]=null):ye(r,l),Q(e)&&n.set(e,r),r)}function $s(e,t){return!e||!Ps(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),z(e,t[0].toLowerCase()+t.slice(1))||z(e,Ct(t))||z(e,t))}function Xn(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[l],slots:r,attrs:o,emit:c,render:h,renderCache:d,props:v,data:O,setupState:M,ctx:U,inheritAttrs:L}=e,le=bs(e);let N,B;try{if(s.shapeFlag&4){const R=i||n,re=R;N=We(h.call(re,R,d,v,M,O,U)),B=o}else{const R=t;N=We(R.length>1?R(v,{attrs:o,slots:r,emit:c}):R(v,null)),B=t.props?o:Gr(o)}}catch(R){qt.length=0,Ls(R,e,1),N=ot(pt)}let W=N;if(B&&L!==!1){const R=Object.keys(B),{shapeFlag:re}=W;R.length&&re&7&&(l&&R.some(Os)&&(B=zr(B,l)),W=Ft(W,B,!1,!0))}return s.dirs&&(W=Ft(W,null,!1,!0),W.dirs=W.dirs?W.dirs.concat(s.dirs):s.dirs),s.transition&&En(W,s.transition),N=W,bs(le),N}const Gr=e=>{let t;for(const s in e)(s==="class"||s==="style"||Ps(s))&&((t||(t={}))[s]=e[s]);return t},zr=(e,t)=>{const s={};for(const n in e)(!Os(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Yr(e,t,s){const{props:n,children:i,component:l}=e,{props:r,children:o,patchFlag:c}=t,h=l.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Zn(n,r,h):!!r;if(c&8){const d=t.dynamicProps;for(let v=0;vObject.create(ol),ul=e=>Object.getPrototypeOf(e)===ol;function Zr(e,t,s,n=!1){const i={},l=al();e.propsDefaults=Object.create(null),cl(e,t,i,l);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);s?e.props=n?i:ir(i):e.type.props?e.props=i:e.props=l,e.attrs=l}function Qr(e,t,s,n){const{props:i,attrs:l,vnode:{patchFlag:r}}=e,o=G(i),[c]=e.propsOptions;let h=!1;if((n||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let v=0;v{c=!0;const[O,M]=fl(v,t,!0);ye(r,O),M&&o.push(...M)};!s&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!l&&!c)return Q(e)&&n.set(e,Ot),Ot;if($(l))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",Pn=e=>$(e)?e.map(We):[We(e)],to=(e,t,s)=>{if(t._n)return t;const n=vr((...i)=>Pn(t(...i)),s);return n._c=!1,n},dl=(e,t,s)=>{const n=e._ctx;for(const i in e){if(Tn(i))continue;const l=e[i];if(j(l))t[i]=to(i,l,n);else if(l!=null){const r=Pn(l);t[i]=()=>r}}},pl=(e,t)=>{const s=Pn(t);e.slots.default=()=>s},hl=(e,t,s)=>{for(const n in t)(s||!Tn(n))&&(e[n]=t[n])},so=(e,t,s)=>{const n=e.slots=al();if(e.vnode.shapeFlag&32){const i=t._;i?(hl(n,t,s),s&&Ci(n,"_",i,!0)):dl(t,n)}else t&&pl(e,t)},no=(e,t,s)=>{const{vnode:n,slots:i}=e;let l=!0,r=se;if(n.shapeFlag&32){const o=t._;o?s&&o===1?l=!1:hl(i,t,s):(l=!t.$stable,dl(t,i)),r=t}else t&&(pl(e,t),r={default:1});if(l)for(const o in i)!Tn(o)&&r[o]==null&&delete i[o]},Ae=ao;function io(e){return lo(e)}function lo(e,t){const s=Is();s.__VUE__=!0;const{insert:n,remove:i,patchProp:l,createElement:r,createText:o,createComment:c,setText:h,setElementText:d,parentNode:v,nextSibling:O,setScopeId:M=qe,insertStaticContent:U}=e,L=(u,f,g,x=null,w=null,b=null,T=void 0,E=null,C=!!f.dynamicChildren)=>{if(u===f)return;u&&!$t(u,f)&&(x=Et(u),we(u,w,b,!0),u=null),f.patchFlag===-2&&(C=!1,f.dynamicChildren=null);const{type:y,ref:F,shapeFlag:P}=f;switch(y){case js:le(u,f,g,x);break;case pt:N(u,f,g,x);break;case Xs:u==null&&B(f,g,x,T);break;case ne:K(u,f,g,x,w,b,T,E,C);break;default:P&1?re(u,f,g,x,w,b,T,E,C):P&6?Le(u,f,g,x,w,b,T,E,C):(P&64||P&128)&&y.process(u,f,g,x,w,b,T,E,C,gt)}F!=null&&w?Ut(F,u&&u.ref,b,f||u,!f):F==null&&u&&u.ref!=null&&Ut(u.ref,null,b,u,!0)},le=(u,f,g,x)=>{if(u==null)n(f.el=o(f.children),g,x);else{const w=f.el=u.el;f.children!==u.children&&h(w,f.children)}},N=(u,f,g,x)=>{u==null?n(f.el=c(f.children||""),g,x):f.el=u.el},B=(u,f,g,x)=>{[u.el,u.anchor]=U(u.children,f,g,x,u.el,u.anchor)},W=({el:u,anchor:f},g,x)=>{let w;for(;u&&u!==f;)w=O(u),n(u,g,x),u=w;n(f,g,x)},R=({el:u,anchor:f})=>{let g;for(;u&&u!==f;)g=O(u),i(u),u=g;i(f)},re=(u,f,g,x,w,b,T,E,C)=>{if(f.type==="svg"?T="svg":f.type==="math"&&(T="mathml"),u==null)ee(f,g,x,w,b,T,E,C);else{const y=u.el&&u.el._isVueCE?u.el:null;try{y&&y._beginPatch(),Ye(u,f,w,b,T,E,C)}finally{y&&y._endPatch()}}},ee=(u,f,g,x,w,b,T,E)=>{let C,y;const{props:F,shapeFlag:P,transition:I,dirs:k}=u;if(C=u.el=r(u.type,b,F&&F.is,F),P&8?d(C,u.children):P&16&&pe(u.children,C,null,x,w,Ys(u,b),T,E),k&&vt(u,null,x,"created"),Y(C,u,u.scopeId,T,x),F){for(const X in F)X!=="value"&&!Bt(X)&&l(C,X,null,F[X],b,x);"value"in F&&l(C,"value",null,F.value,b),(y=F.onVnodeBeforeMount)&&Ve(y,x,u)}k&&vt(u,null,x,"beforeMount");const H=ro(w,I);H&&I.beforeEnter(C),n(C,f,g),((y=F&&F.onVnodeMounted)||H||k)&&Ae(()=>{try{y&&Ve(y,x,u),H&&I.enter(C),k&&vt(u,null,x,"mounted")}finally{}},w)},Y=(u,f,g,x,w)=>{if(g&&M(u,g),x)for(let b=0;b{for(let y=C;y{const E=f.el=u.el;let{patchFlag:C,dynamicChildren:y,dirs:F}=f;C|=u.patchFlag&16;const P=u.props||se,I=f.props||se;let k;if(g&&mt(g,!1),(k=I.onVnodeBeforeUpdate)&&Ve(k,g,f,u),F&&vt(f,u,g,"beforeUpdate"),g&&mt(g,!0),y&&(!u.dynamicChildren||u.dynamicChildren.length!==y.length)&&(C=0,T=!1,y=null),(P.innerHTML&&I.innerHTML==null||P.textContent&&I.textContent==null)&&d(E,""),y?ve(u.dynamicChildren,y,E,g,x,Ys(f,w),b):T||Z(u,f,E,null,g,x,Ys(f,w),b,!1),C>0){if(C&16)Xe(E,P,I,g,w);else if(C&2&&P.class!==I.class&&l(E,"class",null,I.class,w),C&4&&l(E,"style",P.style,I.style,w),C&8){const H=f.dynamicProps;for(let X=0;X{k&&Ve(k,g,f,u),F&&vt(f,u,g,"updated")},x)},ve=(u,f,g,x,w,b,T)=>{for(let E=0;E{if(f!==g){if(f!==se)for(const b in f)!Bt(b)&&!(b in g)&&l(u,b,f[b],null,w,x);for(const b in g){if(Bt(b))continue;const T=g[b],E=f[b];T!==E&&b!=="value"&&l(u,b,E,T,w,x)}"value"in g&&l(u,"value",f.value,g.value,w)}},K=(u,f,g,x,w,b,T,E,C)=>{const y=f.el=u?u.el:o(""),F=f.anchor=u?u.anchor:o("");let{patchFlag:P,dynamicChildren:I,slotScopeIds:k}=f;k&&(E=E?E.concat(k):k),u==null?(n(y,g,x),n(F,g,x),pe(f.children||[],g,F,w,b,T,E,C)):P>0&&P&64&&I&&u.dynamicChildren&&u.dynamicChildren.length===I.length?(ve(u.dynamicChildren,I,g,w,b,T,E),(f.key!=null||w&&f===w.subTree)&&gl(u,f,!0)):Z(u,f,g,F,w,b,T,E,C)},Le=(u,f,g,x,w,b,T,E,C)=>{f.slotScopeIds=E,u==null?f.shapeFlag&512?w.ctx.activate(f,g,x,T,C):Ze(f,g,x,w,b,T,C):ss(u,f,C)},Ze=(u,f,g,x,w,b,T)=>{const E=u.component=mo(u,x,w);if(Zi(u)&&(E.ctx.renderer=gt),yo(E,!1,T),E.asyncDep){if(w&&w.registerDep(E,me,T),!u.el){const C=E.subTree=ot(pt);N(null,C,f,g),u.placeholder=C.el}}else me(E,u,f,g,w,b,T)},ss=(u,f,g)=>{const x=f.component=u.component;if(Yr(u,f,g))if(x.asyncDep&&!x.asyncResolved){oe(x,f,g);return}else x.next=f,x.update();else f.el=u.el,x.vnode=f},me=(u,f,g,x,w,b,T)=>{const E=()=>{if(u.isMounted){let{next:P,bu:I,u:k,parent:H,vnode:X}=u;{const m=_l(u);if(m){P&&(P.el=X.el,oe(u,P,T)),m.asyncDep.then(()=>{Ae(()=>{u.isUnmounted||y()},w)});return}}let q=P,ae;mt(u,!1),P?(P.el=X.el,oe(u,P,T)):P=X,I&&hs(I),(ae=P.props&&P.props.onVnodeBeforeUpdate)&&Ve(ae,H,P,X),mt(u,!0);const de=Xn(u),Me=u.subTree;u.subTree=de,L(Me,de,v(Me.el),Et(Me),u,w,b),P.el=de.el,q===null&&Xr(u,de.el),k&&Ae(k,w),(ae=P.props&&P.props.onVnodeUpdated)&&Ae(()=>Ve(ae,H,P,X),w)}else{let P;const{el:I,props:k}=f,{bm:H,m:X,parent:q,root:ae,type:de}=u,Me=Wt(f);mt(u,!1),H&&hs(H),!Me&&(P=k&&k.onVnodeBeforeMount)&&Ve(P,q,f),mt(u,!0);{ae.ce&&ae.ce._hasShadowRoot()&&ae.ce._injectChildStyle(de,u.parent?u.parent.type:void 0);const m=u.subTree=Xn(u);L(null,m,g,x,u,w,b),f.el=m.el}if(X&&Ae(X,w),!Me&&(P=k&&k.onVnodeMounted)){const m=f;Ae(()=>Ve(P,q,m),w)}(f.shapeFlag&256||q&&Wt(q.vnode)&&q.vnode.shapeFlag&256)&&u.a&&Ae(u.a,w),u.isMounted=!0,f=g=x=null}};u.scope.on();const C=u.effect=new Oi(E);u.scope.off();const y=u.update=C.run.bind(C),F=u.job=C.runIfDirty.bind(C);F.i=u,F.id=u.uid,C.scheduler=()=>Cn(F),mt(u,!0),y()},oe=(u,f,g)=>{f.component=u;const x=u.vnode.props;u.vnode=f,u.next=null,Qr(u,f.props,x,g),no(u,f.children,g),Ge(),Wn(u),ze()},Z=(u,f,g,x,w,b,T,E,C=!1)=>{const y=u&&u.children,F=u?u.shapeFlag:0,P=f.children,{patchFlag:I,shapeFlag:k}=f;if(I>0){if(I&128){ct(y,P,g,x,w,b,T,E,C);return}else if(I&256){Qe(y,P,g,x,w,b,T,E,C);return}}k&8?(F&16&&ht(y,w,b),P!==y&&d(g,P)):F&16?k&16?ct(y,P,g,x,w,b,T,E,C):ht(y,w,b,!0):(F&8&&d(g,""),k&16&&pe(P,g,x,w,b,T,E,C))},Qe=(u,f,g,x,w,b,T,E,C)=>{u=u||Ot,f=f||Ot;const y=u.length,F=f.length,P=Math.min(y,F);let I;for(I=0;IF?ht(u,w,b,!0,!1,P):pe(f,g,x,w,b,T,E,C,P)},ct=(u,f,g,x,w,b,T,E,C)=>{let y=0;const F=f.length;let P=u.length-1,I=F-1;for(;y<=P&&y<=I;){const k=u[y],H=f[y]=C?it(f[y]):We(f[y]);if($t(k,H))L(k,H,g,null,w,b,T,E,C);else break;y++}for(;y<=P&&y<=I;){const k=u[P],H=f[I]=C?it(f[I]):We(f[I]);if($t(k,H))L(k,H,g,null,w,b,T,E,C);else break;P--,I--}if(y>P){if(y<=I){const k=I+1,H=kI)for(;y<=P;)we(u[y],w,b,!0),y++;else{const k=y,H=y,X=new Map;for(y=H;y<=I;y++){const J=f[y]=C?it(f[y]):We(f[y]);J.key!=null&&X.set(J.key,y)}let q,ae=0;const de=I-H+1;let Me=!1,m=0;const S=new Array(de);for(y=0;y=de){we(J,w,b,!0);continue}let he;if(J.key!=null)he=X.get(J.key);else for(q=H;q<=I;q++)if(S[q-H]===0&&$t(J,f[q])){he=q;break}he===void 0?we(J,w,b,!0):(S[he-H]=y+1,he>=m?m=he:Me=!0,L(J,f[he],g,null,w,b,T,E,C),ae++)}const ge=Me?oo(S):Ot;for(q=ge.length-1,y=de-1;y>=0;y--){const J=H+y,he=f[J],_t=f[J+1],ft=J+1{const{el:b,type:T,transition:E,children:C,shapeFlag:y}=u;if(y&6){et(u.component.subTree,f,g,x);return}if(y&128){u.suspense.move(f,g,x);return}if(y&64){T.move(u,f,g,gt);return}if(T===ne){n(b,f,g);for(let P=0;PE.enter(b),w));else{const{leave:P,delayLeave:I,afterLeave:k}=E,H=()=>{u.ctx.isUnmounted?i(b):n(b,f,g)},X=()=>{const q=b._isLeaving||!!b[Gs];b._isLeaving&&b[Gs](!0),E.persisted&&!q?H():P(b,()=>{H(),k&&k()})};I?I(b,H,X):X()}else n(b,f,g)},we=(u,f,g,x=!1,w=!1)=>{const{type:b,props:T,ref:E,children:C,dynamicChildren:y,shapeFlag:F,patchFlag:P,dirs:I,cacheIndex:k,memo:H}=u;if(P===-2&&(w=!1),E!=null&&(Ge(),Ut(E,null,g,u,!0),ze()),k!=null&&(f.renderCache[k]=void 0),F&256){f.ctx.deactivate(u);return}const X=F&1&&I,q=!Wt(u);let ae;if(q&&(ae=T&&T.onVnodeBeforeUnmount)&&Ve(ae,f,u),F&6)Bs(u.component,g,x);else{if(F&128){u.suspense.unmount(g,x);return}X&&vt(u,null,f,"beforeUnmount"),F&64?u.type.remove(u,f,g,gt,x):y&&!y.hasOnce&&(b!==ne||P>0&&P&64)?ht(y,f,g,!1,!0):(b===ne&&P&384||!w&&F&16)&&ht(C,f,g),x&&ns(u)}const de=H!=null&&k==null;(q&&(ae=T&&T.onVnodeUnmounted)||X||de)&&Ae(()=>{ae&&Ve(ae,f,u),X&&vt(u,null,f,"unmounted"),de&&(u.el=null)},g)},ns=u=>{const{type:f,el:g,anchor:x,transition:w}=u;if(f===ne){ce(g,x);return}if(f===Xs){R(u);return}const b=()=>{i(g),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(u.shapeFlag&1&&w&&!w.persisted){const{leave:T,delayLeave:E}=w,C=()=>T(g,b);E?E(u.el,b,C):C()}else b()},ce=(u,f)=>{let g;for(;u!==f;)g=O(u),i(u),u=g;i(f)},Bs=(u,f,g)=>{const{bum:x,scope:w,job:b,subTree:T,um:E,m:C,a:y}=u;ei(C),ei(y),x&&hs(x),w.stop(),b&&(b.flags|=8,we(T,u,f,g)),E&&Ae(E,f),Ae(()=>{u.isUnmounted=!0},f)},ht=(u,f,g,x=!1,w=!1,b=0)=>{for(let T=b;T{if(u.shapeFlag&6)return Et(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const f=O(u.anchor||u.el),g=f&&f[xr];return g?O(g):f};let Lt=!1;const is=(u,f,g)=>{let x;u==null?f._vnode&&(we(f._vnode,null,null,!0),x=f._vnode.component):L(f._vnode||null,u,f,null,null,null,g),f._vnode=u,Lt||(Lt=!0,Wn(x),qi(),Lt=!1)},gt={p:L,um:we,m:et,r:ns,mt:Ze,mc:pe,pc:Z,pbc:ve,n:Et,o:e};return{render:is,hydrate:void 0,createApp:Wr(is)}}function Ys({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function mt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ro(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function gl(e,t,s=!1){const n=e.children,i=t.children;if($(n)&&$(i))for(let l=0;l>1,e[s[o]]0&&(t[n]=s[l-1]),s[l]=n)}}for(l=s.length,r=s[l-1];l-- >0;)s[l]=r,r=t[r];return s}function _l(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:_l(t)}function ei(e){if(e)for(let t=0;te.__isSuspense;function ao(e,t){t&&t.pendingBranch?$(e)?t.effects.push(...e):t.effects.push(e):_r(e)}const ne=Symbol.for("v-fgt"),js=Symbol.for("v-txt"),pt=Symbol.for("v-cmt"),Xs=Symbol.for("v-stc"),qt=[];let Ie=null;function A(e=!1){qt.push(Ie=e?null:[])}function uo(){qt.pop(),Ie=qt[qt.length-1]||null}let Yt=1;function ti(e,t=!1){Yt+=e,e<0&&Ie&&t&&(Ie.hasOnce=!0)}function bl(e){return e.dynamicChildren=Yt>0?Ie||Ot:null,uo(),Yt>0&&Ie&&Ie.push(e),e}function D(e,t,s,n,i,l){return bl(a(e,t,s,n,i,l,!0))}function co(e,t,s,n,i){return bl(ot(e,t,s,n,i,!0))}function yl(e){return e?e.__v_isVNode===!0:!1}function $t(e,t){return e.type===t.type&&e.key===t.key}const wl=({key:e})=>e??null,_s=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?fe(e)||Ee(e)||j(e)?{i:Re,r:e,k:t,f:!!s}:e:null);function a(e,t=null,s=null,n=0,i=null,l=e===ne?0:1,r=!1,o=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wl(t),ref:t&&_s(t),scopeId:Gi,slotScopeIds:null,children:s,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:l,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Re};return o?(xs(c,s),l&128&&e.normalize(c)):s&&(c.shapeFlag|=fe(s)?8:16),Yt>0&&!r&&Ie&&(c.patchFlag>0||l&6)&&c.patchFlag!==32&&Ie.push(c),c}const ot=fo;function fo(e,t=null,s=null,n=0,i=null,l=!1){if((!e||e===kr)&&(e=pt),yl(e)){const o=Ft(e,t,!0);return s&&xs(o,s),Yt>0&&!l&&Ie&&(o.shapeFlag&6?Ie[Ie.indexOf(e)]=o:Ie.push(o)),o.patchFlag=-2,o}if(Co(e)&&(e=e.__vccOpts),t){t=po(t);let{class:o,style:c}=t;o&&!fe(o)&&(t.class=Rs(o)),Q(c)&&(Sn(c)&&!$(c)&&(c=ye({},c)),t.style=gn(c))}const r=fe(e)?1:ml(e)?128:Sr(e)?64:Q(e)?4:j(e)?2:0;return a(e,t,s,n,i,r,l,!0)}function po(e){return e?Sn(e)||ul(e)?ye({},e):e:null}function Ft(e,t,s=!1,n=!1){const{props:i,ref:l,patchFlag:r,children:o,transition:c}=e,h=t?go(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&wl(h),ref:t&&t.ref?s&&l?$(l)?l.concat(_s(t)):[l,_s(t)]:_s(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ne?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ft(e.ssContent),ssFallback:e.ssFallback&&Ft(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&En(d,c.clone(d)),d}function ho(e=" ",t=0){return ot(js,null,e,t)}function ue(e="",t=!1){return t?(A(),co(pt,null,e)):ot(pt,null,e)}function We(e){return e==null||typeof e=="boolean"?ot(pt):$(e)?ot(ne,null,e.slice()):yl(e)?it(e):ot(js,null,String(e))}function it(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ft(e)}function xs(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if($(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),xs(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!ul(t)?t._ctx=Re:i===3&&Re&&(Re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(j(t)){if(n&65){xs(e,{default:t});return}t={default:t,_ctx:Re},s=32}else t=String(t),n&64?(s=16,t=[ho(t)]):s=8;e.children=t,e.shapeFlag|=s}function go(...e){const t={};for(let s=0;sOe||Re;let Ss,cn;{const e=Is(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),l=>{i.length>1?i.forEach(r=>r(l)):i[0](l)}};Ss=t("__VUE_INSTANCE_SETTERS__",s=>Oe=s),cn=t("__VUE_SSR_SETTERS__",s=>Xt=s)}const ts=e=>{const t=Oe;return Ss(e),e.scope.on(),()=>{e.scope.off(),Ss(t)}},si=()=>{Oe&&Oe.scope.off(),Ss(null)};function xl(e){return e.vnode.shapeFlag&4}let Xt=!1;function yo(e,t=!1,s=!1){t&&cn(t);const{props:n,children:i}=e.vnode,l=xl(e);Zr(e,n,l,t),so(e,i,s||t);const r=l?wo(e,t):void 0;return t&&cn(!1),r}function wo(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,$r);const{setup:n}=s;if(n){Ge();const i=e.setupContext=n.length>1?So(e):null,l=ts(e),r=es(n,e,0,[e.props,i]),o=yi(r);if(ze(),l(),(o||e.sp)&&!Wt(e)&&Xi(e),o){if(r.then(si,si),t)return r.then(c=>{ni(e,c)}).catch(c=>{Ls(c,e,0)});e.asyncDep=r}else ni(e,r)}else Sl(e)}function ni(e,t,s){j(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Q(t)&&(e.setupState=Hi(t)),Sl(e)}function Sl(e,t,s){const n=e.type;e.render||(e.render=n.render||qe);{const i=ts(e);Ge();try{jr(e)}finally{ze(),i()}}}const xo={get(e,t){return Ce(e,"get",""),e[t]}};function So(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,xo),slots:e.slots,emit:e.emit,expose:t}}function Ns(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Hi(lr(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Kt)return Kt[s](e)},has(t,s){return s in t||s in Kt}})):e.proxy}function Co(e){return j(e)&&"__vccOpts"in e}const yt=(e,t)=>fr(e,t,Xt),Eo="3.5.39";/** -* @vue/runtime-dom v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let fn;const ii=typeof window<"u"&&window.trustedTypes;if(ii)try{fn=ii.createPolicy("vue",{createHTML:e=>e})}catch{}const Cl=fn?e=>fn.createHTML(e):e=>e,To="http://www.w3.org/2000/svg",Po="http://www.w3.org/1998/Math/MathML",nt=typeof document<"u"?document:null,li=nt&&nt.createElement("template"),Oo={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 i=t==="svg"?nt.createElementNS(To,e):t==="mathml"?nt.createElementNS(Po,e):s?nt.createElement(e,{is:s}):nt.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>nt.createTextNode(e),createComment:e=>nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,l){const r=s?s.previousSibling:t.lastChild;if(i&&(i===l||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===l||!(i=i.nextSibling)););else{li.innerHTML=Cl(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const o=li.content;if(n==="svg"||n==="mathml"){const c=o.firstChild;for(;c.firstChild;)o.appendChild(c.firstChild);o.removeChild(c)}t.insertBefore(o,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Ao=Symbol("_vtc");function Mo(e,t,s){const n=e[Ao];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const ri=Symbol("_vod"),Do=Symbol("_vsh"),Io=Symbol(""),Ro=/(?:^|;)\s*display\s*:/;function Fo(e,t,s){const n=e.style,i=fe(s);let l=!1;if(s&&!i){if(t)if(fe(t))for(const r of t.split(";")){const o=r.slice(0,r.indexOf(":")).trim();s[o]==null&&Nt(n,o,"")}else for(const r in t)s[r]==null&&Nt(n,r,"");for(const r in s){r==="display"&&(l=!0);const o=s[r];o!=null?ko(e,r,!fe(t)&&t?t[r]:void 0,o)||Nt(n,r,o):Nt(n,r,"")}}else if(i){if(t!==s){const r=n[Io];r&&(s+=";"+r),n.cssText=s,l=Ro.test(s)}}else t&&e.removeAttribute("style");ri in e&&(e[ri]=l?n.display:"",e[Do]&&(n.display="none"))}const oi=/\s*!important$/;function Nt(e,t,s){if($(s))s.forEach(n=>Nt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Lo(e,t);oi.test(s)?e.setProperty(Ct(n),s.replace(oi,""),"important"):e[n]=s}}const ai=["Webkit","Moz","ms"],Zs={};function Lo(e,t){const s=Zs[t];if(s)return s;let n=$e(t);if(n!=="filter"&&n in e)return Zs[t]=n;n=Si(n);for(let i=0;iQs||(Ho.then(()=>Qs=0),Qs=Date.now());function Wo(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const i=s.value;if($(i)){const l=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{l.call(n),n._stopped=!0};const r=i.slice(),o=[n];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ko=(e,t,s,n,i,l)=>{const r=i==="svg";t==="class"?Mo(e,n,r):t==="style"?Fo(e,s,n):Ps(t)?Os(t)||jo(e,t,s,n,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qo(e,t,n,r))?(fi(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ci(e,t,n,r,l,t!=="value")):e._isVueCE&&(Jo(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!fe(n)))?fi(e,$e(t),n,l,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),ci(e,t,n,r))};function qo(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&pi(t)&&j(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 i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return pi(t)&&fe(s)?!1:t in e}function Jo(e,t){const s=e._def.props;if(!s)return!1;const n=$e(t);return Array.isArray(s)?s.some(i=>$e(i)===n):Object.keys(s).some(i=>$e(i)===n)}const Cs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return $(t)?s=>hs(t,s):t};function Go(e){e.target.composing=!0}function hi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const It=Symbol("_assign");function gi(e,t,s){return t&&(e=e.trim()),s&&(e=Ds(e)),e}const ke={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[It]=Cs(i);const l=n||i.props&&i.props.type==="number";wt(e,t?"change":"input",r=>{r.target.composing||e[It](gi(e.value,s,l))}),(s||l)&&wt(e,"change",()=>{e.value=gi(e.value,s,l)}),t||(wt(e,"compositionstart",Go),wt(e,"compositionend",hi),wt(e,"change",hi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:l}},r){if(e[It]=Cs(r),e.composing)return;const o=(l||e.type==="number")&&!/^0\d/.test(e.value)?Ds(e.value):e.value,c=t??"";if(o===c)return;const h=e.getRootNode();(h instanceof Document||h instanceof ShadowRoot)&&h.activeElement===e&&e.type!=="range"&&(n&&t===s||i&&e.value.trim()===c)||(e.value=c)}},_i={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const i=As(t);wt(e,"change",()=>{const l=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>s?Ds(Es(r)):Es(r));e[It](e.multiple?i?new Set(l):l:l[0]),e._assigning=!0,Wi(()=>{e._assigning=!1})}),e[It]=Cs(n)},mounted(e,{value:t}){vi(e,t)},beforeUpdate(e,t,s){e[It]=Cs(s)},updated(e,{value:t}){e._assigning||vi(e,t)}};function vi(e,t){const s=e.multiple,n=$(t);if(!(s&&!n&&!As(t))){for(let i=0,l=e.options.length;iString(h)===String(o)):r.selected=jl(t,o)>-1}else r.selected=t.has(o);else if(Qt(Es(r),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Es(e){return"_value"in e?e._value:e.value}const zo=ye({patchProp:Ko},Oo);let mi;function Yo(){return mi||(mi=io(zo))}const Xo=((...e)=>{const t=Yo().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=Qo(n);if(!i)return;const l=t._component;!j(l)&&!l.render&&!l.template&&(l.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=s(i,!1,Zo(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t});function Zo(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Qo(e){return fe(e)?document.querySelector(e):e}const ea="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",V={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",quickProfileDraft:"profiles/quick-draft",jobs:"jobs",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",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class ta extends Error{constructor(s,n,i={}){super(n);Vs(this,"code");Vs(this,"details");this.name="ApiClientError",this.code=s,this.details=i}}async function _e(e,t){return Ts(e,{method:"GET",query:t})}async function Se(e,t){return Ts(e,{method:"POST",body:t})}async function Ts(e,t={}){const n=await(await fetch(sa(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 ta(n.error_code,n.message,n.details);return n.data}function sa(e,t){const s=e.replace(/^\/+/,""),n=new URL(`${ea}/${s}`,window.location.origin);for(const[i,l]of Object.entries(t??{}))l!==void 0&&n.searchParams.set(i,String(l));return`${n.pathname}${n.search}`}const na={class:"web-shell"},ia={class:"sidebar"},la={class:"brand"},ra=["onClick"],oa={class:"workspace"},aa={class:"topbar"},ua={class:"actions"},ca=["disabled"],fa={key:0,class:"notice error"},da={key:1,class:"notice"},pa={key:0,class:"dashboard-grid"},ha={key:1,class:"list-view"},ga={class:"badge"},_a={key:0,class:"empty"},va={key:2,class:"split-view"},ma={class:"list-view"},ba={key:0,class:"empty"},ya={class:"list-view"},wa={class:"inline-actions"},xa=["disabled"],Sa={class:"form-grid"},Ca={value:""},Ea=["value"],Ta=["disabled"],Pa={class:"inline-actions"},Oa={class:"badge"},Aa=["disabled","onClick"],Ma=["disabled","onClick"],Da=["disabled","onClick"],Ia={key:0,class:"empty"},Ra={key:0},Fa={key:3,class:"list-view"},La=["disabled"],ka={class:"form-grid"},$a={value:""},ja=["value"],Na=["disabled"],Ba={class:"inline-actions"},Va=["disabled","onClick"],Ha={key:0,class:"empty"},Ua={key:0},Wa={key:4,class:"list-view"},Ka={class:"inline-actions"},qa=["disabled"],Ja=["disabled"],Ga={class:"inline-actions"},za={class:"badge"},Ya=["onClick"],Xa=["onClick"],Za={key:0,class:"empty"},Qa={key:5,class:"split-view"},eu={class:"list-view"},tu=["disabled"],su={class:"form-grid"},nu=["disabled"],iu={key:0},lu={class:"list-view"},ru={class:"inline-actions"},ou={class:"badge"},au=["disabled","onClick"],uu=["disabled","onClick"],cu=["disabled","onClick"],fu={key:0,class:"empty"},du={key:6,class:"logs-view"},pu={class:"split-view"},hu={class:"list-view"},gu={key:0,class:"empty"},_u={class:"list-view"},vu={class:"badge"},mu={key:0,class:"empty"},bu={class:"split-view"},yu={class:"list-view"},wu={key:0,class:"empty"},xu={class:"list-view"},Su={class:"badge"},Cu={key:0,class:"empty"},Eu={class:"list-view"},Tu={key:0,class:"empty"},Pu={key:7,class:"settings-view"},Ou={class:"toolbar"},Au=["disabled"],Mu=["disabled"],Du=["disabled"],Iu=["disabled"],Ru=["disabled"],Fu=["disabled"],Lu={class:"settings-sections"},ku={class:"editor-panel"},$u={class:"split-view"},ju={class:"list-view"},Nu={class:"list-view"},Bu={class:"inspector"},Vu=Cr({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",archive:"归档",recognize:"识别",confirm:"确认",name:"名称",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialArchived:"素材已归档",importToWardrobe:"加入衣橱",delete:"删除",wardrobeCategory:"衣橱分类",season:"季节",style:"风格",selectMaterial:"选择素材",wardrobeImported:"衣橱条目已加入",wardrobeDeleted:"衣橱条目已删除",dashboard:"运行概览",profiles:"角色",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",emptyProfiles:"暂无角色",categories:"素材分类",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},s=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],n=te("dashboard"),i=te(null),l=te(null),r=te(null),o=te(null),c=te(null),h=te(null),d=te(null),v=te([]),O=te(null),M=te([]),U=te([]),L=te([]),le=te(null),N=te({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),B=te(null),W=te(""),R=te(null),re=te(null),ee=te({display_name:"",image_uri:"",tags:"",category_id:""}),Y=te({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),pe=te({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),Ye=te(null),ve=te(""),Xe=te(!0),K=te(""),Le=te(""),Ze=yt(()=>{var m,S;return((S=(m=r.value)==null?void 0:m.items[0])==null?void 0:S.profile_id)??""}),ss=yt(()=>{var m,S;return((S=(m=r.value)==null?void 0:m.items[0])==null?void 0:S.name)??t.noProfile}),me=yt(()=>{var S;const m=(S=l.value)==null?void 0:S.queue;return m?m.pending+m.running+m.failed+m.dead_letter:0}),oe=yt(()=>{var m;return((m=O.value)==null?void 0:m.items.filter(S=>S.recognition_status!=="confirmed").length)??0}),Z=yt(()=>{var m;return(((m=O.value)==null?void 0:m.items)??[]).filter(S=>S.recognition_status==="confirmed")}),Qe=yt(()=>({dashboard:t.dashboard,profiles:t.profiles,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[n.value]);el(ct);async function ct(){var m;Xe.value=!0,Le.value="";try{const[S,ge,J,he,_t,ft,rs,os,as,us,cs]=await Promise.all([_e(V.uiBootstrap),_e(V.dashboardSummary),_e(V.profiles,{page:1,page_size:20}),_e(V.jobs,{page:1,page_size:20}),_e(V.settingsSchema),_e(V.settingsCurrent),_e(V.storageStatus),_e(V.materialCategories),_e(V.materials,{page:1,page_size:24}),_e(V.apiDiscoveryDialects),_e(V.apiDiscoveryCapabilities)]);i.value=S,l.value=ge,r.value=J,o.value=he,c.value=_t,h.value=ft,T(ft.config),d.value=rs,v.value=os,O.value=as,U.value=us,L.value=cs,await ns((m=J.items[0])==null?void 0:m.profile_id),await et()}catch(S){Le.value=S instanceof Error?S.message:t.loadFailed}finally{Xe.value=!1}}async function et(){const[m,S,ge,J,he]=await Promise.allSettled([_e(V.generationLogs,{limit:12}),_e(V.workflowLogs,{limit:12}),_e(V.errorLogs,{limit:12}),_e(V.integrationLogs,{limit:12}),_e(V.auditLogs,{limit:12})]);N.value={generation:we(m),workflows:we(S),errors:we(ge),integrations:we(J),audit:we(he)}}function we(m){return m.status==="fulfilled"?m.value:[]}async function ns(m){if(!m){M.value=[];return}M.value=await _e(V.wardrobe(m))}async function ce(m,S,ge=!0){K.value=m,Le.value="";try{const J=await S();ve.value=`${m}${t.complete}`,m===t.exportSettings&&(ve.value=`${t.exportDone}: ${!!J.redacted}`),ge&&await ct()}catch(J){Le.value=J instanceof Error?J.message:`${m}${t.failed}`}finally{K.value=""}}function Bs(m){return ce(t.retry,()=>Se(V.jobRetry(m)))}function ht(m){return ce(t.cancel,()=>Se(V.jobCancel(m)))}function Et(){return ce(t.moveFailed,()=>Se(V.jobDeadLetterMoveFailed,{limit:20}))}function Lt(){return ce(t.retryDead,()=>Se(V.jobDeadLetterRetry,{limit:20}))}function is(){var S;const m=((S=U.value[0])==null?void 0:S.dialect)??"unknown";return ce(t.safeProbe,()=>Se(V.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:m,capabilities:{supports:["text_to_image"]}}))}function gt(){return ce(t.validatePlan,async()=>(Ye.value=await Se(V.apiDiscoveryValidateRenderPlan,{provider_id:pe.value.provider_id,model_id:pe.value.model_id,required_capabilities:ae(pe.value.required_capabilities)}),Ye.value),!1)}function ls(m,S){return ce(t.discovery,()=>Se(V.apiDiscoveryManualOverride,{provider_id:m.provider_id,model_id:m.model_id,dialect:m.dialect,status:S,capabilities:m.capabilities}))}function u(){const m=Ze.value;return m?ce(t.matchWardrobe,async()=>(le.value=await Se(V.wardrobeMatch(m),{tags:["daily"]}),le.value),!1):Promise.resolve()}function f(){Y.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function g(){const m=Ze.value;return m?ce(t.importToWardrobe,async()=>{const S=await Se(V.wardrobeImportMaterial(m),{material_id:Y.value.material_id,wardrobe_category:Y.value.wardrobe_category,tags:ae(Y.value.tags),season:Y.value.season||void 0,style:Y.value.style||void 0});return f(),ve.value=t.wardrobeImported,S}):Promise.resolve()}function x(m){const S=Ze.value;return S?ce(t.delete,async()=>{const ge=await Ts(V.wardrobeItem(S,m),{method:"DELETE"});return ve.value=t.wardrobeDeleted,ge}):Promise.resolve()}function w(){return ce(t.reload,async()=>{var S;const m=await Se(V.settingsReload);return h.value={config_path:((S=h.value)==null?void 0:S.config_path)??"***PATH***",config:m.config},T(m.config),m},!1)}function b(){return ce(t.exportSettings,()=>_e(V.settingsExport),!1)}function T(m=(S=>(S=h.value)==null?void 0:S.config)()??{}){W.value=JSON.stringify(m,null,2),R.value=null,re.value=null}function E(){try{const m=JSON.parse(W.value);if(!m||Array.isArray(m)||typeof m!="object")throw new Error(t.settingsDraftInvalid);return m}catch(m){throw new Error(m instanceof Error?m.message:t.settingsDraftInvalid)}}function C(){return ce(t.validate,async()=>(R.value=await Se(V.settingsValidate,{config:E()}),R.value),!1)}function y(){return ce(t.diff,async()=>(re.value=await Se(V.settingsDiff,{config:E()}),re.value),!1)}function F(){return ce(t.save,async()=>{var S;const m=await Se(V.settingsSave,{config:E()});return h.value={config_path:((S=h.value)==null?void 0:S.config_path)??"***PATH***",config:m.config},T(m.config),ve.value=t.settingsSaved,m},!1)}function P(){var S,ge;const m=(ge=(S=O.value)==null?void 0:S.items.find(J=>{var he;return(he=J.image_uri)==null?void 0:he.startsWith("storage://")}))==null?void 0:ge.image_uri;return m?ce(t.signMaterial,async()=>(B.value=await _e(V.mediaSign,{uri:m}),B.value),!1):(ve.value=t.noSignableMaterial,Promise.resolve())}function I(){ee.value={display_name:"",image_uri:"",tags:"",category_id:""}}function k(){return ce(t.create,async()=>{const m=await Se(V.materials,{display_name:ee.value.display_name,image_uri:ee.value.image_uri||void 0,thumbnail_uri:ee.value.image_uri||void 0,category_id:ee.value.category_id||void 0,tags:ae(ee.value.tags),recognition_status:ee.value.image_uri?"pending_recognition":"pending_upload"});return I(),ve.value=t.materialCreated,m})}function H(m){return ce(t.recognize,()=>Se(V.materialRecognize(m)))}function X(m){return ce(t.confirm,()=>Se(V.materialConfirm(m.material_id),{display_name:m.display_name,prompt:m.prompt,negative_prompt:m.negative_prompt,tags:m.tags}))}function q(m){return ce(t.archive,async()=>{const S=await Ts(V.material(m),{method:"DELETE"});return ve.value=t.materialArchived,S})}function ae(m){return m.split(",").map(S=>S.trim()).filter(Boolean)}function de(m=0){return m<1024?`${m} B`:m<1024*1024?`${(m/1024).toFixed(1)} KB`:m<1024*1024*1024?`${(m/1024/1024).toFixed(1)} MB`:`${(m/1024/1024/1024).toFixed(1)} GB`}function Me(m){var S,ge;return((ge=(S=d.value)==null?void 0:S.roots.find(J=>J.uri_prefix===m))==null?void 0:ge.bytes)??0}return(m,S)=>{var ge,J,he,_t,ft,rs,os,as,us,cs,On,An,Mn,Dn,In,Rn,Fn,Ln,kn,$n,jn,Nn;return A(),D("main",na,[a("aside",ia,[a("div",la,[a("strong",null,p(((ge=i.value)==null?void 0:ge.display_name)??"ImageStudio"),1),a("span",null,p(((J=i.value)==null?void 0:J.dashboard_user)??"AstrBot"),1)]),a("nav",null,[(A(),D(ne,null,xe(s,_=>a("button",{key:_.key,type:"button",class:Rs({active:n.value===_.key}),onClick:tt=>n.value=_.key},p(_.label),11,ra)),64))])]),a("section",oa,[a("header",aa,[a("div",null,[a("h1",null,p(Qe.value),1),a("p",null,p(((he=l.value)==null?void 0:he.plugin_status)??"loading")+" / "+p(ve.value||t.waiting),1)]),a("div",ua,[a("button",{type:"button",disabled:!!K.value,onClick:ct},p(K.value||t.refresh),9,ca)])]),Le.value?(A(),D("section",fa,p(Le.value),1)):Xe.value?(A(),D("section",da,p(t.loading),1)):(A(),D(ne,{key:2},[n.value==="dashboard"?(A(),D("section",pa,[a("article",null,[a("span",null,p(t.profiles),1),a("strong",null,p(((_t=l.value)==null?void 0:_t.active_profiles)??0),1)]),a("article",null,[a("span",null,p(t.jobs),1),a("strong",null,p(me.value),1)]),a("article",null,[a("span",null,p(t.materials),1),a("strong",null,p(((ft=O.value)==null?void 0:ft.total)??0),1)]),a("article",null,[a("span",null,p(t.storage),1),a("strong",null,p(de(((rs=d.value)==null?void 0:rs.total_bytes)??((os=l.value)==null?void 0:os.storage.total_bytes))),1)])])):ue("",!0),n.value==="profiles"?(A(),D("section",ha,[a("header",null,[a("h2",null,p(t.profileList),1),a("span",null,p(((as=r.value)==null?void 0:as.total)??0),1)]),a("ul",null,[(A(!0),D(ne,null,xe(((us=r.value)==null?void 0:us.items)??[],_=>(A(),D("li",{key:_.profile_id},[a("div",null,[a("strong",null,p(_.name),1),a("small",null,p(_.profile_id),1)]),a("span",ga,p(_.status),1)]))),128)),(cs=r.value)!=null&&cs.items.length?ue("",!0):(A(),D("li",_a,p(t.emptyProfiles),1))])])):ue("",!0),n.value==="materials"?(A(),D("section",va,[a("div",ma,[a("header",null,[a("h2",null,p(t.categories),1),a("span",null,p(v.value.length),1)]),a("ul",null,[(A(!0),D(ne,null,xe(v.value,_=>(A(),D("li",{key:_.category_id},[a("div",null,[a("strong",null,p(_.name),1),a("small",null,p(_.category_type),1)]),a("span",null,p(_.sort_order),1)]))),128)),v.value.length?ue("",!0):(A(),D("li",ba,p(t.emptyCategories),1))])]),a("div",ya,[a("header",null,[a("h2",null,p(t.materialItems),1),a("div",wa,[a("span",null,p(oe.value)+" "+p(t.pendingConfirm),1),a("button",{type:"button",disabled:!!K.value,onClick:P},p(t.signFirstImage),9,xa)])]),a("div",Sa,[a("label",null,[a("span",null,p(t.name),1),De(a("input",{"onUpdate:modelValue":S[0]||(S[0]=_=>ee.value.display_name=_),type:"text"},null,512),[[ke,ee.value.display_name]])]),a("label",null,[a("span",null,p(t.imageUri),1),De(a("input",{"onUpdate:modelValue":S[1]||(S[1]=_=>ee.value.image_uri=_),type:"text",placeholder:"storage://materials/example.png"},null,512),[[ke,ee.value.image_uri]])]),a("label",null,[a("span",null,p(t.category),1),De(a("select",{"onUpdate:modelValue":S[2]||(S[2]=_=>ee.value.category_id=_)},[a("option",Ca,p(t.allCategories),1),(A(!0),D(ne,null,xe(v.value,_=>(A(),D("option",{key:_.category_id,value:_.category_id},p(_.name),9,Ea))),128))],512),[[_i,ee.value.category_id]])]),a("label",null,[a("span",null,p(t.tags),1),De(a("input",{"onUpdate:modelValue":S[3]||(S[3]=_=>ee.value.tags=_),type:"text",placeholder:"daily, top"},null,512),[[ke,ee.value.tags]])]),a("button",{type:"button",disabled:!!K.value||!ee.value.display_name,onClick:k},p(t.create),9,Ta)]),a("ul",null,[(A(!0),D(ne,null,xe(((On=O.value)==null?void 0:On.items)??[],_=>(A(),D("li",{key:_.material_id},[a("div",null,[a("strong",null,p(_.display_name),1),a("small",null,p(_.image_uri??t.noImage),1)]),a("div",Pa,[a("span",Oa,p(_.recognition_status),1),a("button",{type:"button",disabled:!!K.value,onClick:tt=>H(_.material_id)},p(t.recognize),9,Aa),a("button",{type:"button",disabled:!!K.value||_.recognition_status==="confirmed",onClick:tt=>X(_)},p(t.confirm),9,Ma),a("button",{type:"button",disabled:!!K.value,onClick:tt=>q(_.material_id)},p(t.archive),9,Da)])]))),128)),(An=O.value)!=null&&An.items.length?ue("",!0):(A(),D("li",Ia,p(t.emptyMaterials),1))]),B.value?(A(),D("pre",Ra,p(JSON.stringify(B.value,null,2)),1)):ue("",!0)])])):ue("",!0),n.value==="wardrobe"?(A(),D("section",Fa,[a("header",null,[a("h2",null,p(ss.value),1),a("button",{type:"button",disabled:!Ze.value||!!K.value,onClick:u},p(t.match),9,La)]),a("div",ka,[a("label",null,[a("span",null,p(t.selectMaterial),1),De(a("select",{"onUpdate:modelValue":S[4]||(S[4]=_=>Y.value.material_id=_)},[a("option",$a,p(t.selectMaterial),1),(A(!0),D(ne,null,xe(Z.value,_=>(A(),D("option",{key:_.material_id,value:_.material_id},p(_.display_name),9,ja))),128))],512),[[_i,Y.value.material_id]])]),a("label",null,[a("span",null,p(t.wardrobeCategory),1),De(a("input",{"onUpdate:modelValue":S[5]||(S[5]=_=>Y.value.wardrobe_category=_),type:"text"},null,512),[[ke,Y.value.wardrobe_category]])]),a("label",null,[a("span",null,p(t.tags),1),De(a("input",{"onUpdate:modelValue":S[6]||(S[6]=_=>Y.value.tags=_),type:"text",placeholder:"daily, top"},null,512),[[ke,Y.value.tags]])]),a("label",null,[a("span",null,p(t.season),1),De(a("input",{"onUpdate:modelValue":S[7]||(S[7]=_=>Y.value.season=_),type:"text"},null,512),[[ke,Y.value.season]])]),a("label",null,[a("span",null,p(t.style),1),De(a("input",{"onUpdate:modelValue":S[8]||(S[8]=_=>Y.value.style=_),type:"text"},null,512),[[ke,Y.value.style]])]),a("button",{type:"button",disabled:!!K.value||!Ze.value||!Y.value.material_id||!Y.value.wardrobe_category,onClick:g},p(t.importToWardrobe),9,Na)]),a("ul",null,[(A(!0),D(ne,null,xe(M.value,_=>(A(),D("li",{key:_.wardrobe_item_id},[a("div",null,[a("strong",null,p(_.wardrobe_category),1),a("small",null,p(_.material_id)+" / "+p(_.tags.join(", ")||t.noTags),1)]),a("div",Ba,[a("span",null,p(_.usage_count),1),a("button",{type:"button",disabled:!!K.value,onClick:tt=>x(_.wardrobe_item_id)},p(t.delete),9,Va)])]))),128)),M.value.length?ue("",!0):(A(),D("li",Ha,p(t.emptyWardrobe),1))]),le.value?(A(),D("pre",Ua,p(JSON.stringify(le.value,null,2)),1)):ue("",!0)])):ue("",!0),n.value==="jobs"?(A(),D("section",Wa,[a("header",null,[a("h2",null,p(t.jobs),1),a("div",Ka,[a("button",{type:"button",disabled:!!K.value,onClick:Et},p(t.moveFailed),9,qa),a("button",{type:"button",disabled:!!K.value,onClick:Lt},p(t.retryDead),9,Ja)])]),a("ul",null,[(A(!0),D(ne,null,xe(((Mn=o.value)==null?void 0:Mn.items)??[],_=>(A(),D("li",{key:_.task_id},[a("div",null,[a("strong",null,p(_.task_id),1),a("small",null,p(_.task_type)+" / "+p(_.progress)+"%",1)]),a("div",Ga,[a("span",za,p(_.status),1),_.status==="failed"?(A(),D("button",{key:0,type:"button",onClick:tt=>Bs(_.task_id)},p(t.retry),9,Ya)):ue("",!0),_.status==="pending"?(A(),D("button",{key:1,type:"button",onClick:tt=>ht(_.task_id)},p(t.cancel),9,Xa)):ue("",!0)])]))),128)),(Dn=o.value)!=null&&Dn.items.length?ue("",!0):(A(),D("li",Za,p(t.emptyJobs),1))])])):ue("",!0),n.value==="discovery"?(A(),D("section",Qa,[a("div",eu,[a("header",null,[a("h2",null,p(t.dialects),1),a("button",{type:"button",disabled:!!K.value,onClick:is},p(t.safeProbe),9,tu)]),a("ul",null,[(A(!0),D(ne,null,xe(U.value,_=>(A(),D("li",{key:_.dialect},[a("div",null,[a("strong",null,p(_.label),1),a("small",null,p(_.capabilities.join(", ")||t.unconfirmed),1)]),a("span",null,p(_.dialect),1)]))),128))]),a("div",su,[a("label",null,[a("span",null,p(t.provider),1),De(a("input",{"onUpdate:modelValue":S[9]||(S[9]=_=>pe.value.provider_id=_),type:"text",placeholder:"local-preview"},null,512),[[ke,pe.value.provider_id]])]),a("label",null,[a("span",null,p(t.model),1),De(a("input",{"onUpdate:modelValue":S[10]||(S[10]=_=>pe.value.model_id=_),type:"text",placeholder:"metadata-only"},null,512),[[ke,pe.value.model_id]])]),a("label",null,[a("span",null,p(t.requiredCapabilities),1),De(a("input",{"onUpdate:modelValue":S[11]||(S[11]=_=>pe.value.required_capabilities=_),type:"text",placeholder:"text_to_image"},null,512),[[ke,pe.value.required_capabilities]])]),a("button",{type:"button",disabled:!!K.value||!pe.value.provider_id||!pe.value.model_id,onClick:gt},p(t.validatePlan),9,nu)]),Ye.value?(A(),D("pre",iu,p(JSON.stringify(Ye.value,null,2)),1)):ue("",!0)]),a("div",lu,[a("header",null,[a("h2",null,p(t.capabilityProfiles),1),a("span",null,p(L.value.length),1)]),a("ul",null,[(A(!0),D(ne,null,xe(L.value,_=>(A(),D("li",{key:_.capability_profile_id},[a("div",null,[a("strong",null,p(_.provider_id)+" / "+p(_.model_id),1),a("small",null,p(_.dialect),1)]),a("div",ru,[a("span",ou,p(_.status),1),a("button",{type:"button",disabled:!!K.value,onClick:tt=>ls(_,"confirmed_supported")},p(t.support),9,au),a("button",{type:"button",disabled:!!K.value,onClick:tt=>ls(_,"confirmed_unsupported")},p(t.unsupported),9,uu),a("button",{type:"button",disabled:!!K.value,onClick:tt=>ls(_,"unconfirmed")},p(t.unconfirmed),9,cu)])]))),128)),L.value.length?ue("",!0):(A(),D("li",fu,p(t.emptyCapabilities),1))])])])):ue("",!0),n.value==="logs"?(A(),D("section",du,[a("div",pu,[a("div",hu,[a("header",null,[a("h2",null,p(t.generationLogs),1),a("span",null,p(N.value.generation.length),1)]),a("ul",null,[(A(!0),D(ne,null,xe(N.value.generation,_=>(A(),D("li",{key:_.task_id},[a("div",null,[a("strong",null,p(_.task_id),1),a("small",null,p(_.status)+" / "+p(_.progress)+"%",1)]),a("span",null,p(_.created_at),1)]))),128)),N.value.generation.length?ue("",!0):(A(),D("li",gu,p(t.emptyGenerationLogs),1))])]),a("div",_u,[a("header",null,[a("h2",null,p(t.errorLogs),1),a("span",null,p(N.value.errors.length),1)]),a("ul",null,[(A(!0),D(ne,null,xe(N.value.errors,_=>(A(),D("li",{key:`${_.source}-${_.id}`},[a("div",null,[a("strong",null,p(_.source),1),a("small",null,p(_.error_message??t.noErrorDetail),1)]),a("span",vu,p(_.status),1)]))),128)),N.value.errors.length?ue("",!0):(A(),D("li",mu,p(t.emptyErrors),1))])])]),a("div",bu,[a("div",yu,[a("header",null,[a("h2",null,p(t.workflowLogs),1),a("span",null,p(N.value.workflows.length),1)]),a("ul",null,[(A(!0),D(ne,null,xe(N.value.workflows,_=>(A(),D("li",{key:_.history_id},[a("div",null,[a("strong",null,p(_.action),1),a("small",null,p(_.title??_.workflow_id),1)]),a("span",null,p(_.branch_name??"main"),1)]))),128)),N.value.workflows.length?ue("",!0):(A(),D("li",wu,p(t.emptyWorkflowLogs),1))])]),a("div",xu,[a("header",null,[a("h2",null,p(t.integrationLogs),1),a("span",null,p(N.value.integrations.length),1)]),a("ul",null,[(A(!0),D(ne,null,xe(N.value.integrations,_=>(A(),D("li",{key:_.integration_log_id},[a("div",null,[a("strong",null,p(_.integration_name),1),a("small",null,p(_.action),1)]),a("span",Su,p(_.status),1)]))),128)),N.value.integrations.length?ue("",!0):(A(),D("li",Cu,p(t.emptyIntegrationLogs),1))])])]),a("div",Eu,[a("header",null,[a("h2",null,p(t.auditLogs),1),a("span",null,p(N.value.audit.length),1)]),a("ul",null,[(A(!0),D(ne,null,xe(N.value.audit,_=>(A(),D("li",{key:_.audit_id},[a("div",null,[a("strong",null,p(_.action),1),a("small",null,p(_.actor_type)+" / "+p(_.target_type)+" / "+p(_.target_id),1)]),a("span",null,p(_.created_at),1)]))),128)),N.value.audit.length?ue("",!0):(A(),D("li",Tu,p(t.emptyAuditLogs),1))])])])):ue("",!0),n.value==="settings"?(A(),D("section",Pu,[a("div",Ou,[a("button",{type:"button",disabled:!!K.value,onClick:w},p(t.reload),9,Au),a("button",{type:"button",disabled:!!K.value,onClick:S[12]||(S[12]=_=>T())},p(t.reset),9,Mu),a("button",{type:"button",disabled:!!K.value,onClick:C},p(t.validate),9,Du),a("button",{type:"button",disabled:!!K.value,onClick:y},p(t.diff),9,Iu),a("button",{type:"button",disabled:!!K.value,onClick:F},p(t.save),9,Ru),a("button",{type:"button",disabled:!!K.value,onClick:b},p(t.exportRedacted),9,Fu)]),a("div",Lu,[(A(!0),D(ne,null,xe(((In=c.value)==null?void 0:In.sections)??[],_=>(A(),D("article",{key:_.key},[a("h2",null,p(_.title),1),a("span",null,p(_.fields.length),1)]))),128))]),a("section",ku,[a("header",null,[a("h2",null,p(t.settingsEditor),1),a("span",null,p(((Rn=h.value)==null?void 0:Rn.config_path)??"***PATH***"),1)]),De(a("textarea",{"onUpdate:modelValue":S[13]||(S[13]=_=>W.value=_),spellcheck:"false"},null,512),[[ke,W.value]])]),a("div",$u,[a("div",ju,[a("header",null,[a("h2",null,p(t.validationResult),1),a("span",null,p(((Fn=R.value)==null?void 0:Fn.valid)??"-"),1)]),a("pre",null,p(JSON.stringify(R.value??{},null,2)),1)]),a("div",Nu,[a("header",null,[a("h2",null,p(t.diffResult),1),a("span",null,p(((Ln=re.value)==null?void 0:Ln.changes.length)??0),1)]),a("pre",null,p(JSON.stringify(re.value??{},null,2)),1)])])])):ue("",!0)],64))]),a("aside",Bu,[a("h2",null,p(t.running),1),a("dl",null,[a("div",null,[S[14]||(S[14]=a("dt",null,"Pending",-1)),a("dd",null,p(((kn=l.value)==null?void 0:kn.queue.pending)??0),1)]),a("div",null,[S[15]||(S[15]=a("dt",null,"Running",-1)),a("dd",null,p((($n=l.value)==null?void 0:$n.queue.running)??0),1)]),a("div",null,[S[16]||(S[16]=a("dt",null,"Failed",-1)),a("dd",null,p(((jn=l.value)==null?void 0:jn.queue.failed)??0),1)]),a("div",null,[S[17]||(S[17]=a("dt",null,"Dead",-1)),a("dd",null,p(((Nn=l.value)==null?void 0:Nn.queue.dead_letter)??0),1)])]),a("h2",null,p(t.storage),1),a("dl",null,[a("div",null,[S[18]||(S[18]=a("dt",null,"Images",-1)),a("dd",null,p(de(Me("storage://images/"))),1)]),a("div",null,[S[19]||(S[19]=a("dt",null,"Materials",-1)),a("dd",null,p(de(Me("storage://materials/"))),1)])])])])}}}),Hu=(e,t)=>{const s=e.__vccOpts||e;for(const[n,i]of t)s[n]=i;return s},Uu=Hu(Vu,[["__scopeId","data-v-cb142f0c"]]);Xo(Uu).mount("#app"); diff --git a/web/assets/index-DiCgaTu1.css b/web/assets/index-DiCgaTu1.css deleted file mode 100644 index a030e68..0000000 --- a/web/assets/index-DiCgaTu1.css +++ /dev/null @@ -1 +0,0 @@ -.web-shell[data-v-cb142f0c]{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-cb142f0c],.inspector[data-v-cb142f0c]{background:#fff}.sidebar[data-v-cb142f0c]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-cb142f0c]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-cb142f0c]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-cb142f0c]{font-size:19px}.brand span[data-v-cb142f0c],p[data-v-cb142f0c],dt[data-v-cb142f0c],.empty[data-v-cb142f0c],small[data-v-cb142f0c]{color:#667085}nav[data-v-cb142f0c]{display:grid;gap:6px}button[data-v-cb142f0c]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-cb142f0c]:disabled{cursor:wait;opacity:.62}nav button[data-v-cb142f0c]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-cb142f0c]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-cb142f0c]{min-width:0;padding:24px}.topbar[data-v-cb142f0c],.list-view header[data-v-cb142f0c],.toolbar[data-v-cb142f0c],.inline-actions[data-v-cb142f0c]{display:flex;gap:12px;align-items:center}.topbar[data-v-cb142f0c],.list-view header[data-v-cb142f0c]{justify-content:space-between}.actions[data-v-cb142f0c],.inline-actions[data-v-cb142f0c]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-cb142f0c],.toolbar button[data-v-cb142f0c],.list-view header button[data-v-cb142f0c],.inline-actions button[data-v-cb142f0c]{padding:0 14px}h1[data-v-cb142f0c],h2[data-v-cb142f0c],p[data-v-cb142f0c],dl[data-v-cb142f0c],dd[data-v-cb142f0c]{margin:0}h1[data-v-cb142f0c]{min-height:30px;font-size:26px}h2[data-v-cb142f0c]{font-size:15px}.notice[data-v-cb142f0c],article[data-v-cb142f0c],.list-view[data-v-cb142f0c],.editor-panel[data-v-cb142f0c],pre[data-v-cb142f0c]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-cb142f0c]{margin-top:18px;padding:14px}.error[data-v-cb142f0c]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-cb142f0c],.split-view[data-v-cb142f0c]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-cb142f0c]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-cb142f0c]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-cb142f0c]{display:grid;gap:8px;padding:16px}article span[data-v-cb142f0c]{color:#667085;font-size:13px}article strong[data-v-cb142f0c]{font-size:24px}.list-view[data-v-cb142f0c],.logs-view[data-v-cb142f0c],.settings-view[data-v-cb142f0c]{margin-top:18px}.split-view .list-view[data-v-cb142f0c],.logs-view .list-view[data-v-cb142f0c]{margin-top:0}.list-view[data-v-cb142f0c]{padding:16px}.editor-panel[data-v-cb142f0c]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-cb142f0c]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-cb142f0c]{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-cb142f0c]{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-cb142f0c]{display:grid;gap:5px;min-width:0}label span[data-v-cb142f0c]{color:#667085;font-size:12px}input[data-v-cb142f0c],select[data-v-cb142f0c]{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-cb142f0c]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-cb142f0c]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-cb142f0c]:first-child{border-top:0}li>div[data-v-cb142f0c]{display:grid;gap:3px;min-width:0}li strong[data-v-cb142f0c],li span[data-v-cb142f0c],li small[data-v-cb142f0c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-cb142f0c]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-cb142f0c]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-cb142f0c]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-cb142f0c]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-cb142f0c]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-cb142f0c]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-cb142f0c]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-cb142f0c]{display:none}}@media(max-width:820px){.web-shell[data-v-cb142f0c]{grid-template-columns:1fr}.sidebar[data-v-cb142f0c]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-cb142f0c]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-cb142f0c]{text-align:center}.dashboard-grid[data-v-cb142f0c],.split-view[data-v-cb142f0c],.settings-sections[data-v-cb142f0c]{grid-template-columns:1fr}.topbar[data-v-cb142f0c],.list-view header[data-v-cb142f0c]{align-items:flex-start;flex-direction:column}} diff --git a/web/index.html b/web/index.html index d127f75..d73876b 100644 --- a/web/index.html +++ b/web/index.html @@ -1,3 +1,3 @@ - - + +