astrbot_plugin_imagestudio/web/assets/index-BqwYfnoc.js

17 行
130 KiB
JavaScript

var pr=Object.defineProperty;var vr=(e,t,l)=>t in e?pr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l;var dn=(e,t,l)=>vr(e,typeof t!="symbol"?t+"":t,l);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const d of i.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(s){if(s.ep)return;s.ep=!0;const i=l(s);fetch(s.href,i)}})();/**
* @vue/shared v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Mn(e){const t=Object.create(null);for(const l of e.split(","))t[l]=1;return l=>l in t}const ve={},Kt=[],ct=()=>{},zo=()=>!1,Hl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Kl=e=>e.startsWith("onUpdate:"),Pe=Object.assign,$n=(e,t)=>{const l=e.indexOf(t);l>-1&&e.splice(l,1)},gr=Object.prototype.hasOwnProperty,de=(e,t)=>gr.call(e,t),W=Array.isArray,qt=e=>gl(e)==="[object Map]",ql=e=>gl(e)==="[object Set]",_o=e=>gl(e)==="[object Date]",K=e=>typeof e=="function",ye=e=>typeof e=="string",ft=e=>typeof e=="symbol",fe=e=>e!==null&&typeof e=="object",Yo=e=>(fe(e)||K(e))&&K(e.then)&&K(e.catch),Qo=Object.prototype.toString,gl=e=>Qo.call(e),hr=e=>gl(e).slice(8,-1),Xo=e=>gl(e)==="[object Object]",Rn=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,nl=Mn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Jl=e=>{const t=Object.create(null);return(l=>t[l]||(t[l]=e(l)))},_r=/-\w/g,Ze=Jl(e=>e.replace(_r,t=>t.slice(1).toUpperCase())),mr=/\B([A-Z])/g,Ft=Jl(e=>e.replace(mr,"-$1").toLowerCase()),Zo=Jl(e=>e.charAt(0).toUpperCase()+e.slice(1)),cn=Jl(e=>e?`on${Zo(e)}`:""),dt=(e,t)=>!Object.is(e,t),Al=(e,...t)=>{for(let l=0;l<e.length;l++)e[l](...t)},es=(e,t,l,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:l})},Gl=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let mo;const zl=()=>mo||(mo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vn(e){if(W(e)){const t={};for(let l=0;l<e.length;l++){const o=e[l],s=ye(o)?kr(o):Vn(o);if(s)for(const i in s)t[i]=s[i]}return t}else if(ye(e)||fe(e))return e}const yr=/;(?![^(]*\))/g,br=/:([^]+)/,wr=/\/\*[^]*?\*\//g;function kr(e){const t={};return e.replace(wr,"").split(yr).forEach(l=>{if(l){const o=l.split(br);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Yl(e){let t="";if(ye(e))t=e;else if(W(e))for(let l=0;l<e.length;l++){const o=Yl(e[l]);o&&(t+=o+" ")}else if(fe(e))for(const l in e)e[l]&&(t+=l+" ");return t.trim()}const xr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Cr=Mn(xr);function ts(e){return!!e||e===""}function Sr(e,t){if(e.length!==t.length)return!1;let l=!0;for(let o=0;l&&o<e.length;o++)l=hl(e[o],t[o]);return l}function hl(e,t){if(e===t)return!0;let l=_o(e),o=_o(t);if(l||o)return l&&o?e.getTime()===t.getTime():!1;if(l=ft(e),o=ft(t),l||o)return e===t;if(l=W(e),o=W(t),l||o)return l&&o?Sr(e,t):!1;if(l=fe(e),o=fe(t),l||o){if(!l||!o)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const d in e){const c=e.hasOwnProperty(d),v=t.hasOwnProperty(d);if(c&&!v||!c&&v||!hl(e[d],t[d]))return!1}}return String(e)===String(t)}function Pr(e,t){return e.findIndex(l=>hl(l,t))}const ls=e=>!!(e&&e.__v_isRef===!0),a=e=>ye(e)?e:e==null?"":W(e)||fe(e)&&(e.toString===Qo||!K(e.toString))?ls(e)?a(e.value):JSON.stringify(e,ns,2):String(e),ns=(e,t)=>ls(t)?ns(e,t.value):qt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((l,[o,s],i)=>(l[fn(o,i)+" =>"]=s,l),{})}:ql(t)?{[`Set(${t.size})`]:[...t.values()].map(l=>fn(l))}:ft(t)?fn(t):fe(t)&&!W(t)&&!Xo(t)?String(t):t,fn=(e,t="")=>{var l;return ft(e)?`Symbol(${(l=e.description)!=null?l:t})`:e};/**
* @vue/reactivity v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Se;class Dr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Se&&(Se.active?(this.parent=Se,this.index=(Se.scopes||(Se.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,l;if(this.scopes)for(t=0,l=this.scopes.length;t<l;t++)this.scopes[t].pause();for(t=0,l=this.effects.length;t<l;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,l;if(this.scopes)for(t=0,l=this.scopes.length;t<l;t++)this.scopes[t].resume();for(t=0,l=this.effects.length;t<l;t++)this.effects[t].resume()}}run(t){if(this._active){const l=Se;try{return Se=this,t()}finally{Se=l}}}on(){++this._on===1&&(this.prevScope=Se,Se=this)}off(){if(this._on>0&&--this._on===0){if(Se===this)Se=this.prevScope;else{let t=Se;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let l,o;for(l=0,o=this.effects.length;l<o;l++)this.effects[l].stop();for(this.effects.length=0,l=0,o=this.cleanups.length;l<o;l++)this.cleanups[l]();if(this.cleanups.length=0,this.scopes){for(l=0,o=this.scopes.length;l<o;l++)this.scopes[l].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Er(){return Se}let he;const pn=new WeakSet;class os{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Se&&(Se.active?Se.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,pn.has(this)&&(pn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||is(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,yo(this),rs(this);const t=he,l=et;he=this,et=!0;try{return this.fn()}finally{as(this),he=t,et=l,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Fn(t);this.deps=this.depsTail=void 0,yo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?pn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){xn(this)&&this.run()}get dirty(){return xn(this)}}let ss=0,ol,sl;function is(e,t=!1){if(e.flags|=8,t){e.next=sl,sl=e;return}e.next=ol,ol=e}function Bn(){ss++}function Ln(){if(--ss>0)return;if(sl){let t=sl;for(sl=void 0;t;){const l=t.next;t.next=void 0,t.flags&=-9,t=l}}let e;for(;ol;){let t=ol;for(ol=void 0;t;){const l=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=l}}if(e)throw e}function rs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function as(e){let t,l=e.depsTail,o=l;for(;o;){const s=o.prevDep;o.version===-1?(o===l&&(l=s),Fn(o),Tr(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=l}function xn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(us(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function us(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===dl)||(e.globalVersion=dl,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xn(e))))return;e.flags|=2;const t=e.dep,l=he,o=et;he=e,et=!0;try{rs(e);const s=e.fn(e._value);(t.version===0||dt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{he=l,et=o,as(e),e.flags&=-3}}function Fn(e,t=!1){const{dep:l,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),l.subs===e&&(l.subs=o,!o&&l.computed)){l.computed.flags&=-5;for(let i=l.computed.deps;i;i=i.nextDep)Fn(i,!0)}!t&&!--l.sc&&l.map&&l.map.delete(l.key)}function Tr(e){const{prevDep:t,nextDep:l}=e;t&&(t.nextDep=l,e.prevDep=void 0),l&&(l.prevDep=t,e.nextDep=void 0)}let et=!0;const ds=[];function pt(){ds.push(et),et=!1}function vt(){const e=ds.pop();et=e===void 0?!0:e}function yo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const l=he;he=void 0;try{t()}finally{he=l}}}let dl=0;class Ir{constructor(t,l){this.sub=t,this.dep=l,this.version=l.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Nn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!he||!et||he===this.computed)return;let l=this.activeLink;if(l===void 0||l.sub!==he)l=this.activeLink=new Ir(he,this),he.deps?(l.prevDep=he.depsTail,he.depsTail.nextDep=l,he.depsTail=l):he.deps=he.depsTail=l,cs(l);else if(l.version===-1&&(l.version=this.version,l.nextDep)){const o=l.nextDep;o.prevDep=l.prevDep,l.prevDep&&(l.prevDep.nextDep=o),l.prevDep=he.depsTail,l.nextDep=void 0,he.depsTail.nextDep=l,he.depsTail=l,he.deps===l&&(he.deps=o)}return l}trigger(t){this.version++,dl++,this.notify(t)}notify(t){Bn();try{for(let l=this.subs;l;l=l.prevSub)l.sub.notify()&&l.sub.dep.notify()}finally{Ln()}}}function cs(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)cs(o)}const l=e.dep.subs;l!==e&&(e.prevSub=l,l&&(l.nextSub=e)),e.dep.subs=e}}const Cn=new WeakMap,Bt=Symbol(""),Sn=Symbol(""),cl=Symbol("");function Ee(e,t,l){if(et&&he){let o=Cn.get(e);o||Cn.set(e,o=new Map);let s=o.get(l);s||(o.set(l,s=new Nn),s.map=o,s.key=l),s.track()}}function bt(e,t,l,o,s,i){const d=Cn.get(e);if(!d){dl++;return}const c=v=>{v&&v.trigger()};if(Bn(),t==="clear")d.forEach(c);else{const v=W(e),_=v&&Rn(l);if(v&&l==="length"){const h=Number(o);d.forEach((C,M)=>{(M==="length"||M===cl||!ft(M)&&M>=h)&&c(C)})}else switch((l!==void 0||d.has(void 0))&&c(d.get(l)),_&&c(d.get(cl)),t){case"add":v?_&&c(d.get("length")):(c(d.get(Bt)),qt(e)&&c(d.get(Sn)));break;case"delete":v||(c(d.get(Bt)),qt(e)&&c(d.get(Sn)));break;case"set":qt(e)&&c(d.get(Bt));break}}Ln()}function Wt(e){const t=ue(e);return t===e?t:(Ee(t,"iterate",cl),Qe(e)?t:t.map(tt))}function Ql(e){return Ee(e=ue(e),"iterate",cl),e}function at(e,t){return xt(e)?Yt(Lt(e)?tt(t):t):tt(t)}const Or={__proto__:null,[Symbol.iterator](){return vn(this,Symbol.iterator,e=>at(this,e))},concat(...e){return Wt(this).concat(...e.map(t=>W(t)?Wt(t):t))},entries(){return vn(this,"entries",e=>(e[1]=at(this,e[1]),e))},every(e,t){return ht(this,"every",e,t,void 0,arguments)},filter(e,t){return ht(this,"filter",e,t,l=>l.map(o=>at(this,o)),arguments)},find(e,t){return ht(this,"find",e,t,l=>at(this,l),arguments)},findIndex(e,t){return ht(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ht(this,"findLast",e,t,l=>at(this,l),arguments)},findLastIndex(e,t){return ht(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ht(this,"forEach",e,t,void 0,arguments)},includes(...e){return gn(this,"includes",e)},indexOf(...e){return gn(this,"indexOf",e)},join(e){return Wt(this).join(e)},lastIndexOf(...e){return gn(this,"lastIndexOf",e)},map(e,t){return ht(this,"map",e,t,void 0,arguments)},pop(){return Zt(this,"pop")},push(...e){return Zt(this,"push",e)},reduce(e,...t){return bo(this,"reduce",e,t)},reduceRight(e,...t){return bo(this,"reduceRight",e,t)},shift(){return Zt(this,"shift")},some(e,t){return ht(this,"some",e,t,void 0,arguments)},splice(...e){return Zt(this,"splice",e)},toReversed(){return Wt(this).toReversed()},toSorted(e){return Wt(this).toSorted(e)},toSpliced(...e){return Wt(this).toSpliced(...e)},unshift(...e){return Zt(this,"unshift",e)},values(){return vn(this,"values",e=>at(this,e))}};function vn(e,t,l){const o=Ql(e),s=o[t]();return o!==e&&!Qe(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=l(i.value)),i}),s}const Ar=Array.prototype;function ht(e,t,l,o,s,i){const d=Ql(e),c=d!==e&&!Qe(e),v=d[t];if(v!==Ar[t]){const C=v.apply(e,i);return c?tt(C):C}let _=l;d!==e&&(c?_=function(C,M){return l.call(this,at(e,C),M,e)}:l.length>2&&(_=function(C,M){return l.call(this,C,M,e)}));const h=v.call(d,_,o);return c&&s?s(h):h}function bo(e,t,l,o){const s=Ql(e),i=s!==e&&!Qe(e);let d=l,c=!1;s!==e&&(i?(c=o.length===0,d=function(_,h,C){return c&&(c=!1,_=at(e,_)),l.call(this,_,at(e,h),C,e)}):l.length>3&&(d=function(_,h,C){return l.call(this,_,h,C,e)}));const v=s[t](d,...o);return c?at(e,v):v}function gn(e,t,l){const o=ue(e);Ee(o,"iterate",cl);const s=o[t](...l);return(s===-1||s===!1)&&Kn(l[0])?(l[0]=ue(l[0]),o[t](...l)):s}function Zt(e,t,l=[]){pt(),Bn();const o=ue(e)[t].apply(e,l);return Ln(),vt(),o}const Ur=Mn("__proto__,__v_isRef,__isVue"),fs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ft));function Mr(e){ft(e)||(e=String(e));const t=ue(this);return Ee(t,"has",e),t.hasOwnProperty(e)}class ps{constructor(t=!1,l=!1){this._isReadonly=t,this._isShallow=l}get(t,l,o){if(l==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(l==="__v_isReactive")return!s;if(l==="__v_isReadonly")return s;if(l==="__v_isShallow")return i;if(l==="__v_raw")return o===(s?i?Hr:_s:i?hs:gs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const d=W(t);if(!s){let v;if(d&&(v=Or[l]))return v;if(l==="hasOwnProperty")return Mr}const c=Reflect.get(t,l,Te(t)?t:o);if((ft(l)?fs.has(l):Ur(l))||(s||Ee(t,"get",l),i))return c;if(Te(c)){const v=d&&Rn(l)?c:c.value;return s&&fe(v)?Dn(v):v}return fe(c)?s?Dn(c):Wn(c):c}}class vs extends ps{constructor(t=!1){super(!1,t)}set(t,l,o,s){let i=t[l];const d=W(t)&&Rn(l);if(!this._isShallow){const _=xt(i);if(!Qe(o)&&!xt(o)&&(i=ue(i),o=ue(o)),!d&&Te(i)&&!Te(o))return _||(i.value=o),!0}const c=d?Number(l)<t.length:de(t,l),v=Reflect.set(t,l,o,Te(t)?t:s);return t===ue(s)&&v&&(c?dt(o,i)&&bt(t,"set",l,o):bt(t,"add",l,o)),v}deleteProperty(t,l){const o=de(t,l);t[l];const s=Reflect.deleteProperty(t,l);return s&&o&&bt(t,"delete",l,void 0),s}has(t,l){const o=Reflect.has(t,l);return(!ft(l)||!fs.has(l))&&Ee(t,"has",l),o}ownKeys(t){return Ee(t,"iterate",W(t)?"length":Bt),Reflect.ownKeys(t)}}class $r extends ps{constructor(t=!1){super(!0,t)}set(t,l){return!0}deleteProperty(t,l){return!0}}const Rr=new vs,Vr=new $r,Br=new vs(!0);const Pn=e=>e,Tl=e=>Reflect.getPrototypeOf(e);function Lr(e,t,l){return function(...o){const s=this.__v_raw,i=ue(s),d=qt(i),c=e==="entries"||e===Symbol.iterator&&d,v=e==="keys"&&d,_=s[e](...o),h=l?Pn:t?Yt:tt;return!t&&Ee(i,"iterate",v?Sn:Bt),Pe(Object.create(_),{next(){const{value:C,done:M}=_.next();return M?{value:C,done:M}:{value:c?[h(C[0]),h(C[1])]:h(C),done:M}}})}}function Il(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Fr(e,t){const l={get(s){const i=this.__v_raw,d=ue(i),c=ue(s);e||(dt(s,c)&&Ee(d,"get",s),Ee(d,"get",c));const{has:v}=Tl(d),_=t?Pn:e?Yt:tt;if(v.call(d,s))return _(i.get(s));if(v.call(d,c))return _(i.get(c));i!==d&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Ee(ue(s),"iterate",Bt),s.size},has(s){const i=this.__v_raw,d=ue(i),c=ue(s);return e||(dt(s,c)&&Ee(d,"has",s),Ee(d,"has",c)),s===c?i.has(s):i.has(s)||i.has(c)},forEach(s,i){const d=this,c=d.__v_raw,v=ue(c),_=t?Pn:e?Yt:tt;return!e&&Ee(v,"iterate",Bt),c.forEach((h,C)=>s.call(i,_(h),_(C),d))}};return Pe(l,e?{add:Il("add"),set:Il("set"),delete:Il("delete"),clear:Il("clear")}:{add(s){const i=ue(this),d=Tl(i),c=ue(s),v=!t&&!Qe(s)&&!xt(s)?c:s;return d.has.call(i,v)||dt(s,v)&&d.has.call(i,s)||dt(c,v)&&d.has.call(i,c)||(i.add(v),bt(i,"add",v,v)),this},set(s,i){!t&&!Qe(i)&&!xt(i)&&(i=ue(i));const d=ue(this),{has:c,get:v}=Tl(d);let _=c.call(d,s);_||(s=ue(s),_=c.call(d,s));const h=v.call(d,s);return d.set(s,i),_?dt(i,h)&&bt(d,"set",s,i):bt(d,"add",s,i),this},delete(s){const i=ue(this),{has:d,get:c}=Tl(i);let v=d.call(i,s);v||(s=ue(s),v=d.call(i,s)),c&&c.call(i,s);const _=i.delete(s);return v&&bt(i,"delete",s,void 0),_},clear(){const s=ue(this),i=s.size!==0,d=s.clear();return i&&bt(s,"clear",void 0,void 0),d}}),["keys","values","entries",Symbol.iterator].forEach(s=>{l[s]=Lr(s,e,t)}),l}function jn(e,t){const l=Fr(e,t);return(o,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(de(l,s)&&s in o?l:o,s,i)}const Nr={get:jn(!1,!1)},jr={get:jn(!1,!0)},Wr={get:jn(!0,!1)};const gs=new WeakMap,hs=new WeakMap,_s=new WeakMap,Hr=new WeakMap;function Kr(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 xt(e)?e:Hn(e,!1,Rr,Nr,gs)}function qr(e){return Hn(e,!1,Br,jr,hs)}function Dn(e){return Hn(e,!0,Vr,Wr,_s)}function Hn(e,t,l,o,s){if(!fe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=s.get(e);if(i)return i;const d=Kr(hr(e));if(d===0)return e;const c=new Proxy(e,d===2?o:l);return s.set(e,c),c}function Lt(e){return xt(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function xt(e){return!!(e&&e.__v_isReadonly)}function Qe(e){return!!(e&&e.__v_isShallow)}function Kn(e){return e?!!e.__v_raw:!1}function ue(e){const t=e&&e.__v_raw;return t?ue(t):e}function Jr(e){return!de(e,"__v_skip")&&Object.isExtensible(e)&&es(e,"__v_skip",!0),e}const tt=e=>fe(e)?Wn(e):e,Yt=e=>fe(e)?Dn(e):e;function Te(e){return e?e.__v_isRef===!0:!1}function R(e){return Gr(e,!1)}function Gr(e,t){return Te(e)?e:new zr(e,t)}class zr{constructor(t,l){this.dep=new Nn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=l?t:ue(t),this._value=l?t:tt(t),this.__v_isShallow=l}get value(){return this.dep.track(),this._value}set value(t){const l=this._rawValue,o=this.__v_isShallow||Qe(t)||xt(t);t=o?t:ue(t),dt(t,l)&&(this._rawValue=t,this._value=o?t:tt(t),this.dep.trigger())}}function Yr(e){return Te(e)?e.value:e}const Qr={get:(e,t,l)=>t==="__v_raw"?e:Yr(Reflect.get(e,t,l)),set:(e,t,l,o)=>{const s=e[t];return Te(s)&&!Te(l)?(s.value=l,!0):Reflect.set(e,t,l,o)}};function ms(e){return Lt(e)?e:new Proxy(e,Qr)}class Xr{constructor(t,l,o){this.fn=t,this.setter=l,this._value=void 0,this.dep=new Nn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=dl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!l,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return is(this,!0),!0}get value(){const t=this.dep.track();return us(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Zr(e,t,l=!1){let o,s;return K(e)?o=e:(o=e.get,s=e.set),new Xr(o,s,l)}const Ol={},$l=new WeakMap;let Rt;function ea(e,t=!1,l=Rt){if(l){let o=$l.get(l);o||$l.set(l,o=[]),o.push(e)}}function ta(e,t,l=ve){const{immediate:o,deep:s,once:i,scheduler:d,augmentJob:c,call:v}=l,_=F=>s?F:Qe(F)||s===!1||s===0?wt(F,1):wt(F);let h,C,M,$,te=!1,N=!1;if(Te(e)?(C=()=>e.value,te=Qe(e)):Lt(e)?(C=()=>_(e),te=!0):W(e)?(N=!0,te=e.some(F=>Lt(F)||Qe(F)),C=()=>e.map(F=>{if(Te(F))return F.value;if(Lt(F))return _(F);if(K(F))return v?v(F,2):F()})):K(e)?t?C=v?()=>v(e,2):e:C=()=>{if(M){pt();try{M()}finally{vt()}}const F=Rt;Rt=h;try{return v?v(e,3,[$]):e($)}finally{Rt=F}}:C=ct,t&&s){const F=C,ge=s===!0?1/0:s;C=()=>wt(F(),ge)}const _e=Er(),ie=()=>{h.stop(),_e&&_e.active&&$n(_e.effects,h)};if(i&&t){const F=t;t=(...ge)=>{const xe=F(...ge);return ie(),xe}}let ee=N?new Array(e.length).fill(Ol):Ol;const X=F=>{if(!(!(h.flags&1)||!h.dirty&&!F))if(t){const ge=h.run();if(F||s||te||(N?ge.some((xe,Ie)=>dt(xe,ee[Ie])):dt(ge,ee))){M&&M();const xe=Rt;Rt=h;try{const Ie=[ge,ee===Ol?void 0:N&&ee[0]===Ol?[]:ee,$];ee=ge,v?v(t,3,Ie):t(...Ie)}finally{Rt=xe}}}else h.run()};return c&&c(X),h=new os(C),h.scheduler=d?()=>d(X,!1):X,$=F=>ea(F,!1,h),M=h.onStop=()=>{const F=$l.get(h);if(F){if(v)v(F,4);else for(const ge of F)ge();$l.delete(h)}},t?o?X(!0):ee=h.run():d?d(X.bind(null,!0),!0):h.run(),ie.pause=h.pause.bind(h),ie.resume=h.resume.bind(h),ie.stop=ie,ie}function wt(e,t=1/0,l){if(t<=0||!fe(e)||e.__v_skip||(l=l||new Map,(l.get(e)||0)>=t))return e;if(l.set(e,t),t--,Te(e))wt(e.value,t,l);else if(W(e))for(let o=0;o<e.length;o++)wt(e[o],t,l);else if(ql(e)||qt(e))e.forEach(o=>{wt(o,t,l)});else if(Xo(e)){for(const o in e)wt(e[o],t,l);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&wt(e[o],t,l)}return e}/**
* @vue/runtime-core v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function _l(e,t,l,o){try{return o?e(...o):e()}catch(s){Xl(s,t,l)}}function lt(e,t,l,o){if(K(e)){const s=_l(e,t,l,o);return s&&Yo(s)&&s.catch(i=>{Xl(i,t,l)}),s}if(W(e)){const s=[];for(let i=0;i<e.length;i++)s.push(lt(e[i],t,l,o));return s}}function Xl(e,t,l,o=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:d}=t&&t.appContext.config||ve;if(t){let c=t.parent;const v=t.proxy,_=`https://vuejs.org/error-reference/#runtime-${l}`;for(;c;){const h=c.ec;if(h){for(let C=0;C<h.length;C++)if(h[C](e,v,_)===!1)return}c=c.parent}if(i){pt(),_l(i,null,10,[e,v,_]),vt();return}}la(e,l,s,o,d)}function la(e,t,l,o=!0,s=!1){if(s)throw e;console.error(e)}const Ue=[];let rt=-1;const Jt=[];let Ot=null,Ht=0;const ys=Promise.resolve();let Rl=null;function bs(e){const t=Rl||ys;return e?t.then(this?e.bind(this):e):t}function na(e){let t=rt+1,l=Ue.length;for(;t<l;){const o=t+l>>>1,s=Ue[o],i=fl(s);i<e||i===e&&s.flags&2?t=o+1:l=o}return t}function qn(e){if(!(e.flags&1)){const t=fl(e),l=Ue[Ue.length-1];!l||!(e.flags&2)&&t>=fl(l)?Ue.push(e):Ue.splice(na(t),0,e),e.flags|=1,ws()}}function ws(){Rl||(Rl=ys.then(xs))}function oa(e){W(e)?Jt.push(...e):Ot&&e.id===-1?Ot.splice(Ht+1,0,e):e.flags&1||(Jt.push(e),e.flags|=1),ws()}function wo(e,t,l=rt+1){for(;l<Ue.length;l++){const o=Ue[l];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Ue.splice(l,1),l--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function ks(e){if(Jt.length){const t=[...new Set(Jt)].sort((l,o)=>fl(l)-fl(o));if(Jt.length=0,Ot){Ot.push(...t);return}for(Ot=t,Ht=0;Ht<Ot.length;Ht++){const l=Ot[Ht];l.flags&4&&(l.flags&=-2),l.flags&8||l(),l.flags&=-2}Ot=null,Ht=0}}const fl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function xs(e){try{for(rt=0;rt<Ue.length;rt++){const t=Ue[rt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),_l(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;rt<Ue.length;rt++){const t=Ue[rt];t&&(t.flags&=-2)}rt=-1,Ue.length=0,ks(),Rl=null,(Ue.length||Jt.length)&&xs()}}let Ye=null,Cs=null;function Vl(e){const t=Ye;return Ye=e,Cs=e&&e.type.__scopeId||null,t}function sa(e,t=Ye,l){if(!t||e._n)return e;const o=(...s)=>{o._d&&Ao(-1);const i=Vl(t);let d;try{d=e(...s)}finally{Vl(i),o._d&&Ao(1)}return d};return o._n=!0,o._c=!0,o._d=!0,o}function A(e,t){if(Ye===null)return e;const l=ln(Ye),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,d,c,v=ve]=t[s];i&&(K(i)&&(i={mounted:i,updated:i}),i.deep&&wt(d),o.push({dir:i,instance:l,value:d,oldValue:void 0,arg:c,modifiers:v}))}return e}function Mt(e,t,l,o){const s=e.dirs,i=t&&t.dirs;for(let d=0;d<s.length;d++){const c=s[d];i&&(c.oldValue=i[d].value);let v=c.dir[o];v&&(pt(),lt(v,l,8,[e.el,c,e,t]),vt())}}function ia(e,t){if(Me){let l=Me.provides;const o=Me.parent&&Me.parent.provides;o===l&&(l=Me.provides=Object.create(o)),l[e]=t}}function Ul(e,t,l=!1){const o=iu();if(o||Gt){let s=Gt?Gt._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return l&&K(t)?t.call(o&&o.proxy):t}}const ra=Symbol.for("v-scx"),aa=()=>Ul(ra);function hn(e,t,l){return Ss(e,t,l)}function Ss(e,t,l=ve){const{immediate:o,deep:s,flush:i,once:d}=l,c=Pe({},l),v=t&&o||!t&&i!=="post";let _;if(vl){if(i==="sync"){const $=aa();_=$.__watcherHandles||($.__watcherHandles=[])}else if(!v){const $=()=>{};return $.stop=ct,$.resume=ct,$.pause=ct,$}}const h=Me;c.call=($,te,N)=>lt($,h,te,N);let C=!1;i==="post"?c.scheduler=$=>{Ve($,h&&h.suspense)}:i!=="sync"&&(C=!0,c.scheduler=($,te)=>{te?$():qn($)}),c.augmentJob=$=>{t&&($.flags|=4),C&&($.flags|=2,h&&($.id=h.uid,$.i=h))};const M=ta(e,t,c);return vl&&(_?_.push(M):v&&M()),M}function ua(e,t,l){const o=this.proxy,s=ye(e)?e.includes(".")?Ps(o,e):()=>o[e]:e.bind(o,o);let i;K(t)?i=t:(i=t.handler,l=t);const d=ml(this),c=Ss(s,i.bind(o),l);return d(),c}function Ps(e,t){const l=t.split(".");return()=>{let o=e;for(let s=0;s<l.length&&o;s++)o=o[l[s]];return o}}const da=Symbol("_vte"),ca=e=>e.__isTeleport,_n=Symbol("_leaveCb");function Jn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Jn(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 fa(e,t){return K(e)?Pe({name:e.name},t,{setup:e}):e}function Ds(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ko(e,t){let l;return!!((l=Object.getOwnPropertyDescriptor(e,t))&&!l.configurable)}const Bl=new WeakMap;function il(e,t,l,o,s=!1){if(W(e)){e.forEach((N,_e)=>il(N,t&&(W(t)?t[_e]:t),l,o,s));return}if(rl(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&il(e,t,l,o.component.subTree);return}const i=o.shapeFlag&4?ln(o.component):o.el,d=s?null:i,{i:c,r:v}=e,_=t&&t.r,h=c.refs===ve?c.refs={}:c.refs,C=c.setupState,M=ue(C),$=C===ve?zo:N=>ko(h,N)?!1:de(M,N),te=(N,_e)=>!(_e&&ko(h,_e));if(_!=null&&_!==v){if(xo(t),ye(_))h[_]=null,$(_)&&(C[_]=null);else if(Te(_)){const N=t;te(_,N.k)&&(_.value=null),N.k&&(h[N.k]=null)}}if(K(v)){pt();try{_l(v,c,12,[d,h])}finally{vt()}}else{const N=ye(v),_e=Te(v);if(N||_e){const ie=()=>{if(e.f){const ee=N?$(v)?C[v]:h[v]:te()||!e.k?v.value:h[e.k];if(s)W(ee)&&$n(ee,i);else if(W(ee))ee.includes(i)||ee.push(i);else if(N)h[v]=[i],$(v)&&(C[v]=h[v]);else{const X=[i];te(v,e.k)&&(v.value=X),e.k&&(h[e.k]=X)}}else N?(h[v]=d,$(v)&&(C[v]=d)):_e&&(te(v,e.k)&&(v.value=d),e.k&&(h[e.k]=d))};if(d){const ee=()=>{ie(),Bl.delete(e)};ee.id=-1,Bl.set(e,ee),Ve(ee,l)}else xo(e),ie()}}}function xo(e){const t=Bl.get(e);t&&(t.flags|=8,Bl.delete(e))}zl().requestIdleCallback;zl().cancelIdleCallback;const rl=e=>!!e.type.__asyncLoader,Es=e=>e.type.__isKeepAlive;function pa(e,t){Ts(e,"a",t)}function va(e,t){Ts(e,"da",t)}function Ts(e,t,l=Me){const o=e.__wdc||(e.__wdc=()=>{let s=l;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Zl(t,o,l),l){let s=l.parent;for(;s&&s.parent;)Es(s.parent.vnode)&&ga(o,t,l,s),s=s.parent}}function ga(e,t,l,o){const s=Zl(t,e,o,!0);Os(()=>{$n(o[t],s)},l)}function Zl(e,t,l=Me,o=!1){if(l){const s=l[e]||(l[e]=[]),i=t.__weh||(t.__weh=(...d)=>{pt();const c=ml(l),v=lt(t,l,e,d);return c(),vt(),v});return o?s.unshift(i):s.push(i),i}}const Ct=e=>(t,l=Me)=>{(!vl||e==="sp")&&Zl(e,(...o)=>t(...o),l)},ha=Ct("bm"),Is=Ct("m"),_a=Ct("bu"),ma=Ct("u"),ya=Ct("bum"),Os=Ct("um"),ba=Ct("sp"),wa=Ct("rtg"),ka=Ct("rtc");function xa(e,t=Me){Zl("ec",e,t)}const Ca=Symbol.for("v-ndc");function ce(e,t,l,o){let s;const i=l,d=W(e);if(d||ye(e)){const c=d&&Lt(e);let v=!1,_=!1;c&&(v=!Qe(e),_=xt(e),e=Ql(e)),s=new Array(e.length);for(let h=0,C=e.length;h<C;h++)s[h]=t(v?_?Yt(tt(e[h])):tt(e[h]):e[h],h,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let c=0;c<e;c++)s[c]=t(c+1,c,void 0,i)}else if(fe(e))if(e[Symbol.iterator])s=Array.from(e,(c,v)=>t(c,v,void 0,i));else{const c=Object.keys(e);s=new Array(c.length);for(let v=0,_=c.length;v<_;v++){const h=c[v];s[v]=t(e[h],h,v,i)}}else s=[];return s}const En=e=>e?Xs(e)?ln(e):En(e.parent):null,al=Pe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>En(e.parent),$root:e=>En(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Us(e),$forceUpdate:e=>e.f||(e.f=()=>{qn(e.update)}),$nextTick:e=>e.n||(e.n=bs.bind(e.proxy)),$watch:e=>ua.bind(e)}),mn=(e,t)=>e!==ve&&!e.__isScriptSetup&&de(e,t),Sa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:l,setupState:o,data:s,props:i,accessCache:d,type:c,appContext:v}=e;if(t[0]!=="$"){const M=d[t];if(M!==void 0)switch(M){case 1:return o[t];case 2:return s[t];case 4:return l[t];case 3:return i[t]}else{if(mn(o,t))return d[t]=1,o[t];if(s!==ve&&de(s,t))return d[t]=2,s[t];if(de(i,t))return d[t]=3,i[t];if(l!==ve&&de(l,t))return d[t]=4,l[t];Tn&&(d[t]=0)}}const _=al[t];let h,C;if(_)return t==="$attrs"&&Ee(e.attrs,"get",""),_(e);if((h=c.__cssModules)&&(h=h[t]))return h;if(l!==ve&&de(l,t))return d[t]=4,l[t];if(C=v.config.globalProperties,de(C,t))return C[t]},set({_:e},t,l){const{data:o,setupState:s,ctx:i}=e;return mn(s,t)?(s[t]=l,!0):o!==ve&&de(o,t)?(o[t]=l,!0):de(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=l,!0)},has({_:{data:e,setupState:t,accessCache:l,ctx:o,appContext:s,props:i,type:d}},c){let v;return!!(l[c]||e!==ve&&c[0]!=="$"&&de(e,c)||mn(t,c)||de(i,c)||de(o,c)||de(al,c)||de(s.config.globalProperties,c)||(v=d.__cssModules)&&v[c])},defineProperty(e,t,l){return l.get!=null?e._.accessCache[t]=0:de(l,"value")&&this.set(e,t,l.value,null),Reflect.defineProperty(e,t,l)}};function Co(e){return W(e)?e.reduce((t,l)=>(t[l]=null,t),{}):e}let Tn=!0;function Pa(e){const t=Us(e),l=e.proxy,o=e.ctx;Tn=!1,t.beforeCreate&&So(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:d,watch:c,provide:v,inject:_,created:h,beforeMount:C,mounted:M,beforeUpdate:$,updated:te,activated:N,deactivated:_e,beforeDestroy:ie,beforeUnmount:ee,destroyed:X,unmounted:F,render:ge,renderTracked:xe,renderTriggered:Ie,errorCaptured:Be,serverPrefetch:gt,expose:He,inheritAttrs:pe,components:Ke,directives:Le,filters:St}=t;if(_&&Da(_,o,null),d)for(const re in d){const le=d[re];K(le)&&(o[re]=le.bind(l))}if(s){const re=s.call(l,l);fe(re)&&(e.data=Wn(re))}if(Tn=!0,i)for(const re in i){const le=i[re],Fe=K(le)?le.bind(l,l):K(le.get)?le.get.bind(l,l):ct,nt=!K(le)&&K(le.set)?le.set.bind(l):ct,J=It({get:Fe,set:nt});Object.defineProperty(o,re,{enumerable:!0,configurable:!0,get:()=>J.value,set:Ce=>J.value=Ce})}if(c)for(const re in c)As(c[re],o,l,re);if(v){const re=K(v)?v.call(l):v;Reflect.ownKeys(re).forEach(le=>{ia(le,re[le])})}h&&So(h,e,"c");function be(re,le){W(le)?le.forEach(Fe=>re(Fe.bind(l))):le&&re(le.bind(l))}if(be(ha,C),be(Is,M),be(_a,$),be(ma,te),be(pa,N),be(va,_e),be(xa,Be),be(ka,xe),be(wa,Ie),be(ya,ee),be(Os,F),be(ba,gt),W(He))if(He.length){const re=e.exposed||(e.exposed={});He.forEach(le=>{Object.defineProperty(re,le,{get:()=>l[le],set:Fe=>l[le]=Fe,enumerable:!0})})}else e.exposed||(e.exposed={});ge&&e.render===ct&&(e.render=ge),pe!=null&&(e.inheritAttrs=pe),Ke&&(e.components=Ke),Le&&(e.directives=Le),gt&&Ds(e)}function Da(e,t,l=ct){W(e)&&(e=In(e));for(const o in e){const s=e[o];let i;fe(s)?"default"in s?i=Ul(s.from||o,s.default,!0):i=Ul(s.from||o):i=Ul(s),Te(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:d=>i.value=d}):t[o]=i}}function So(e,t,l){lt(W(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,l)}function As(e,t,l,o){let s=o.includes(".")?Ps(l,o):()=>l[o];if(ye(e)){const i=t[e];K(i)&&hn(s,i)}else if(K(e))hn(s,e.bind(l));else if(fe(e))if(W(e))e.forEach(i=>As(i,t,l,o));else{const i=K(e.handler)?e.handler.bind(l):t[e.handler];K(i)&&hn(s,i,e)}}function Us(e){const t=e.type,{mixins:l,extends:o}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:d}}=e.appContext,c=i.get(t);let v;return c?v=c:!s.length&&!l&&!o?v=t:(v={},s.length&&s.forEach(_=>Ll(v,_,d,!0)),Ll(v,t,d)),fe(t)&&i.set(t,v),v}function Ll(e,t,l,o=!1){const{mixins:s,extends:i}=t;i&&Ll(e,i,l,!0),s&&s.forEach(d=>Ll(e,d,l,!0));for(const d in t)if(!(o&&d==="expose")){const c=Ea[d]||l&&l[d];e[d]=c?c(e[d],t[d]):t[d]}return e}const Ea={data:Po,props:Do,emits:Do,methods:tl,computed:tl,beforeCreate:Ae,created:Ae,beforeMount:Ae,mounted:Ae,beforeUpdate:Ae,updated:Ae,beforeDestroy:Ae,beforeUnmount:Ae,destroyed:Ae,unmounted:Ae,activated:Ae,deactivated:Ae,errorCaptured:Ae,serverPrefetch:Ae,components:tl,directives:tl,watch:Ia,provide:Po,inject:Ta};function Po(e,t){return t?e?function(){return Pe(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Ta(e,t){return tl(In(e),In(t))}function In(e){if(W(e)){const t={};for(let l=0;l<e.length;l++)t[e[l]]=e[l];return t}return e}function Ae(e,t){return e?[...new Set([].concat(e,t))]:t}function tl(e,t){return e?Pe(Object.create(null),e,t):t}function Do(e,t){return e?W(e)&&W(t)?[...new Set([...e,...t])]:Pe(Object.create(null),Co(e),Co(t??{})):t}function Ia(e,t){if(!e)return t;if(!t)return e;const l=Pe(Object.create(null),e);for(const o in t)l[o]=Ae(e[o],t[o]);return l}function Ms(){return{app:null,config:{isNativeTag:zo,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Oa=0;function Aa(e,t){return function(o,s=null){K(o)||(o=Pe({},o)),s!=null&&!fe(s)&&(s=null);const i=Ms(),d=new WeakSet,c=[];let v=!1;const _=i.app={_uid:Oa++,_component:o,_props:s,_container:null,_context:i,_instance:null,version:fu,get config(){return i.config},set config(h){},use(h,...C){return d.has(h)||(h&&K(h.install)?(d.add(h),h.install(_,...C)):K(h)&&(d.add(h),h(_,...C))),_},mixin(h){return i.mixins.includes(h)||i.mixins.push(h),_},component(h,C){return C?(i.components[h]=C,_):i.components[h]},directive(h,C){return C?(i.directives[h]=C,_):i.directives[h]},mount(h,C,M){if(!v){const $=_._ceVNode||kt(o,s);return $.appContext=i,M===!0?M="svg":M===!1&&(M=void 0),e($,h,M),v=!0,_._container=h,h.__vue_app__=_,ln($.component)}},onUnmount(h){c.push(h)},unmount(){v&&(lt(c,_._instance,16),e(null,_._container),delete _._container.__vue_app__)},provide(h,C){return i.provides[h]=C,_},runWithContext(h){const C=Gt;Gt=_;try{return h()}finally{Gt=C}}};return _}}let Gt=null;const Ua=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ze(t)}Modifiers`]||e[`${Ft(t)}Modifiers`];function Ma(e,t,...l){if(e.isUnmounted)return;const o=e.vnode.props||ve;let s=l;const i=t.startsWith("update:"),d=i&&Ua(o,t.slice(7));d&&(d.trim&&(s=l.map(h=>ye(h)?h.trim():h)),d.number&&(s=l.map(Gl)));let c,v=o[c=cn(t)]||o[c=cn(Ze(t))];!v&&i&&(v=o[c=cn(Ft(t))]),v&&lt(v,e,6,s);const _=o[c+"Once"];if(_){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,lt(_,e,6,s)}}const $a=new WeakMap;function $s(e,t,l=!1){const o=l?$a:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const i=e.emits;let d={},c=!1;if(!K(e)){const v=_=>{const h=$s(_,t,!0);h&&(c=!0,Pe(d,h))};!l&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}return!i&&!c?(fe(e)&&o.set(e,null),null):(W(i)?i.forEach(v=>d[v]=null):Pe(d,i),fe(e)&&o.set(e,d),d)}function en(e,t){return!e||!Hl(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),de(e,t[0].toLowerCase()+t.slice(1))||de(e,Ft(t))||de(e,t))}function Eo(e){const{type:t,vnode:l,proxy:o,withProxy:s,propsOptions:[i],slots:d,attrs:c,emit:v,render:_,renderCache:h,props:C,data:M,setupState:$,ctx:te,inheritAttrs:N}=e,_e=Vl(e);let ie,ee;try{if(l.shapeFlag&4){const F=s||o,ge=F;ie=ut(_.call(ge,F,h,C,$,M,te)),ee=c}else{const F=t;ie=ut(F.length>1?F(C,{attrs:c,slots:d,emit:v}):F(C,null)),ee=t.props?c:Ra(c)}}catch(F){ul.length=0,Xl(F,e,1),ie=kt(At)}let X=ie;if(ee&&N!==!1){const F=Object.keys(ee),{shapeFlag:ge}=X;F.length&&ge&7&&(i&&F.some(Kl)&&(ee=Va(ee,i)),X=Qt(X,ee,!1,!0))}return l.dirs&&(X=Qt(X,null,!1,!0),X.dirs=X.dirs?X.dirs.concat(l.dirs):l.dirs),l.transition&&Jn(X,l.transition),ie=X,Vl(_e),ie}const Ra=e=>{let t;for(const l in e)(l==="class"||l==="style"||Hl(l))&&((t||(t={}))[l]=e[l]);return t},Va=(e,t)=>{const l={};for(const o in e)(!Kl(o)||!(o.slice(9)in t))&&(l[o]=e[o]);return l};function Ba(e,t,l){const{props:o,children:s,component:i}=e,{props:d,children:c,patchFlag:v}=t,_=i.emitsOptions;if(t.dirs||t.transition)return!0;if(l&&v>=0){if(v&1024)return!0;if(v&16)return o?To(o,d,_):!!d;if(v&8){const h=t.dynamicProps;for(let C=0;C<h.length;C++){const M=h[C];if(Rs(d,o,M)&&!en(_,M))return!0}}}else return(s||c)&&(!c||!c.$stable)?!0:o===d?!1:o?d?To(o,d,_):!0:!!d;return!1}function To(e,t,l){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const i=o[s];if(Rs(t,e,i)&&!en(l,i))return!0}return!1}function Rs(e,t,l){const o=e[l],s=t[l];return l==="style"&&fe(o)&&fe(s)?!hl(o,s):o!==s}function La({vnode:e,parent:t,suspense:l},o){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=o,e=s),s===e)(e=t.vnode).el=o,t=t.parent;else break}l&&l.activeBranch===e&&(l.vnode.el=o)}const Vs={},Bs=()=>Object.create(Vs),Ls=e=>Object.getPrototypeOf(e)===Vs;function Fa(e,t,l,o=!1){const s={},i=Bs();e.propsDefaults=Object.create(null),Fs(e,t,s,i);for(const d in e.propsOptions[0])d in s||(s[d]=void 0);l?e.props=o?s:qr(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Na(e,t,l,o){const{props:s,attrs:i,vnode:{patchFlag:d}}=e,c=ue(s),[v]=e.propsOptions;let _=!1;if((o||d>0)&&!(d&16)){if(d&8){const h=e.vnode.dynamicProps;for(let C=0;C<h.length;C++){let M=h[C];if(en(e.emitsOptions,M))continue;const $=t[M];if(v)if(de(i,M))$!==i[M]&&(i[M]=$,_=!0);else{const te=Ze(M);s[te]=On(v,c,te,$,e,!1)}else $!==i[M]&&(i[M]=$,_=!0)}}}else{Fs(e,t,s,i)&&(_=!0);let h;for(const C in c)(!t||!de(t,C)&&((h=Ft(C))===C||!de(t,h)))&&(v?l&&(l[C]!==void 0||l[h]!==void 0)&&(s[C]=On(v,c,C,void 0,e,!0)):delete s[C]);if(i!==c)for(const C in i)(!t||!de(t,C))&&(delete i[C],_=!0)}_&&bt(e.attrs,"set","")}function Fs(e,t,l,o){const[s,i]=e.propsOptions;let d=!1,c;if(t)for(let v in t){if(nl(v))continue;const _=t[v];let h;s&&de(s,h=Ze(v))?!i||!i.includes(h)?l[h]=_:(c||(c={}))[h]=_:en(e.emitsOptions,v)||(!(v in o)||_!==o[v])&&(o[v]=_,d=!0)}if(i){const v=ue(l),_=c||ve;for(let h=0;h<i.length;h++){const C=i[h];l[C]=On(s,v,C,_[C],e,!de(_,C))}}return d}function On(e,t,l,o,s,i){const d=e[l];if(d!=null){const c=de(d,"default");if(c&&o===void 0){const v=d.default;if(d.type!==Function&&!d.skipFactory&&K(v)){const{propsDefaults:_}=s;if(l in _)o=_[l];else{const h=ml(s);o=_[l]=v.call(null,t),h()}}else o=v;s.ce&&s.ce._setProp(l,o)}d[0]&&(i&&!c?o=!1:d[1]&&(o===""||o===Ft(l))&&(o=!0))}return o}const ja=new WeakMap;function Ns(e,t,l=!1){const o=l?ja:t.propsCache,s=o.get(e);if(s)return s;const i=e.props,d={},c=[];let v=!1;if(!K(e)){const h=C=>{v=!0;const[M,$]=Ns(C,t,!0);Pe(d,M),$&&c.push(...$)};!l&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!i&&!v)return fe(e)&&o.set(e,Kt),Kt;if(W(i))for(let h=0;h<i.length;h++){const C=Ze(i[h]);Io(C)&&(d[C]=ve)}else if(i)for(const h in i){const C=Ze(h);if(Io(C)){const M=i[h],$=d[C]=W(M)||K(M)?{type:M}:Pe({},M),te=$.type;let N=!1,_e=!0;if(W(te))for(let ie=0;ie<te.length;++ie){const ee=te[ie],X=K(ee)&&ee.name;if(X==="Boolean"){N=!0;break}else X==="String"&&(_e=!1)}else N=K(te)&&te.name==="Boolean";$[0]=N,$[1]=_e,(N||de($,"default"))&&c.push(C)}}const _=[d,c];return fe(e)&&o.set(e,_),_}function Io(e){return e[0]!=="$"&&!nl(e)}const Gn=e=>e==="_"||e==="_ctx"||e==="$stable",zn=e=>W(e)?e.map(ut):[ut(e)],Wa=(e,t,l)=>{if(t._n)return t;const o=sa((...s)=>zn(t(...s)),l);return o._c=!1,o},js=(e,t,l)=>{const o=e._ctx;for(const s in e){if(Gn(s))continue;const i=e[s];if(K(i))t[s]=Wa(s,i,o);else if(i!=null){const d=zn(i);t[s]=()=>d}}},Ws=(e,t)=>{const l=zn(t);e.slots.default=()=>l},Hs=(e,t,l)=>{for(const o in t)(l||!Gn(o))&&(e[o]=t[o])},Ha=(e,t,l)=>{const o=e.slots=Bs();if(e.vnode.shapeFlag&32){const s=t._;s?(Hs(o,t,l),l&&es(o,"_",s,!0)):js(t,o)}else t&&Ws(e,t)},Ka=(e,t,l)=>{const{vnode:o,slots:s}=e;let i=!0,d=ve;if(o.shapeFlag&32){const c=t._;c?l&&c===1?i=!1:Hs(s,t,l):(i=!t.$stable,js(t,s)),d=t}else t&&(Ws(e,t),d={default:1});if(i)for(const c in s)!Gn(c)&&d[c]==null&&delete s[c]},Ve=Ya;function qa(e){return Ja(e)}function Ja(e,t){const l=zl();l.__VUE__=!0;const{insert:o,remove:s,patchProp:i,createElement:d,createText:c,createComment:v,setText:_,setElementText:h,parentNode:C,nextSibling:M,setScopeId:$=ct,insertStaticContent:te}=e,N=(p,g,m,y=null,k=null,w=null,E=void 0,T=null,I=!!g.dynamicChildren)=>{if(p===g)return;p&&!el(p,g)&&(y=$e(p),Ce(p,k,w,!0),p=null),g.patchFlag===-2&&(I=!1,g.dynamicChildren=null);const{type:x,ref:B,shapeFlag:P}=g;switch(x){case tn:_e(p,g,m,y);break;case At:ie(p,g,m,y);break;case bn:p==null&&ee(g,m,y,E);break;case Q:Ke(p,g,m,y,k,w,E,T,I);break;default:P&1?ge(p,g,m,y,k,w,E,T,I):P&6?Le(p,g,m,y,k,w,E,T,I):(P&64||P&128)&&x.process(p,g,m,y,k,w,E,T,I,De)}B!=null&&k?il(B,p&&p.ref,w,g||p,!g):B==null&&p&&p.ref!=null&&il(p.ref,null,w,p,!0)},_e=(p,g,m,y)=>{if(p==null)o(g.el=c(g.children),m,y);else{const k=g.el=p.el;g.children!==p.children&&_(k,g.children)}},ie=(p,g,m,y)=>{p==null?o(g.el=v(g.children||""),m,y):g.el=p.el},ee=(p,g,m,y)=>{[p.el,p.anchor]=te(p.children,g,m,y,p.el,p.anchor)},X=({el:p,anchor:g},m,y)=>{let k;for(;p&&p!==g;)k=M(p),o(p,m,y),p=k;o(g,m,y)},F=({el:p,anchor:g})=>{let m;for(;p&&p!==g;)m=M(p),s(p),p=m;s(g)},ge=(p,g,m,y,k,w,E,T,I)=>{if(g.type==="svg"?E="svg":g.type==="math"&&(E="mathml"),p==null)xe(g,m,y,k,w,E,T,I);else{const x=p.el&&p.el._isVueCE?p.el:null;try{x&&x._beginPatch(),gt(p,g,k,w,E,T,I)}finally{x&&x._endPatch()}}},xe=(p,g,m,y,k,w,E,T)=>{let I,x;const{props:B,shapeFlag:P,transition:V,dirs:b}=p;if(I=p.el=d(p.type,w,B&&B.is,B),P&8?h(I,p.children):P&16&&Be(p.children,I,null,y,k,yn(p,w),E,T),b&&Mt(p,null,y,"created"),Ie(I,p,p.scopeId,E,y),B){for(const Z in B)Z!=="value"&&!nl(Z)&&i(I,Z,null,B[Z],w,y);"value"in B&&i(I,"value",null,B.value,w),(x=B.onVnodeBeforeMount)&&it(x,y,p)}b&&Mt(p,null,y,"beforeMount");const q=Ga(k,V);q&&V.beforeEnter(I),o(I,g,m),((x=B&&B.onVnodeMounted)||q||b)&&Ve(()=>{try{x&&it(x,y,p),q&&V.enter(I),b&&Mt(p,null,y,"mounted")}finally{}},k)},Ie=(p,g,m,y,k)=>{if(m&&$(p,m),y)for(let w=0;w<y.length;w++)$(p,y[w]);if(k){let w=k.subTree;if(g===w||Gs(w.type)&&(w.ssContent===g||w.ssFallback===g)){const E=k.vnode;Ie(p,E,E.scopeId,E.slotScopeIds,k.parent)}}},Be=(p,g,m,y,k,w,E,T,I=0)=>{for(let x=I;x<p.length;x++){const B=p[x]=T?yt(p[x]):ut(p[x]);N(null,B,g,m,y,k,w,E,T)}},gt=(p,g,m,y,k,w,E)=>{const T=g.el=p.el;let{patchFlag:I,dynamicChildren:x,dirs:B}=g;I|=p.patchFlag&16;const P=p.props||ve,V=g.props||ve;let b;if(m&&$t(m,!1),(b=V.onVnodeBeforeUpdate)&&it(b,m,g,p),B&&Mt(g,p,m,"beforeUpdate"),m&&$t(m,!0),x&&(!p.dynamicChildren||p.dynamicChildren.length!==x.length)&&(I=0,E=!1,x=null),(P.innerHTML&&V.innerHTML==null||P.textContent&&V.textContent==null)&&h(T,""),x?He(p.dynamicChildren,x,T,m,y,yn(g,k),w):E||le(p,g,T,null,m,y,yn(g,k),w,!1),I>0){if(I&16)pe(T,P,V,m,k);else if(I&2&&P.class!==V.class&&i(T,"class",null,V.class,k),I&4&&i(T,"style",P.style,V.style,k),I&8){const q=g.dynamicProps;for(let Z=0;Z<q.length;Z++){const se=q[Z],me=P[se],we=V[se];(we!==me||se==="value")&&i(T,se,me,we,k,m)}}I&1&&p.children!==g.children&&h(T,g.children)}else!E&&x==null&&pe(T,P,V,m,k);((b=V.onVnodeUpdated)||B)&&Ve(()=>{b&&it(b,m,g,p),B&&Mt(g,p,m,"updated")},y)},He=(p,g,m,y,k,w,E)=>{for(let T=0;T<g.length;T++){const I=p[T],x=g[T],B=I.el&&(I.type===Q||!el(I,x)||I.shapeFlag&198)?C(I.el):m;N(I,x,B,null,y,k,w,E,!0)}},pe=(p,g,m,y,k)=>{if(g!==m){if(g!==ve)for(const w in g)!nl(w)&&!(w in m)&&i(p,w,g[w],null,k,y);for(const w in m){if(nl(w))continue;const E=m[w],T=g[w];E!==T&&w!=="value"&&i(p,w,T,E,k,y)}"value"in m&&i(p,"value",g.value,m.value,k)}},Ke=(p,g,m,y,k,w,E,T,I)=>{const x=g.el=p?p.el:c(""),B=g.anchor=p?p.anchor:c("");let{patchFlag:P,dynamicChildren:V,slotScopeIds:b}=g;b&&(T=T?T.concat(b):b),p==null?(o(x,m,y),o(B,m,y),Be(g.children||[],m,B,k,w,E,T,I)):P>0&&P&64&&V&&p.dynamicChildren&&p.dynamicChildren.length===V.length?(He(p.dynamicChildren,V,m,k,w,E,T),(g.key!=null||k&&g===k.subTree)&&Ks(p,g,!0)):le(p,g,m,B,k,w,E,T,I)},Le=(p,g,m,y,k,w,E,T,I)=>{g.slotScopeIds=T,p==null?g.shapeFlag&512?k.ctx.activate(g,m,y,E,I):St(g,m,y,k,w,E,I):Pt(p,g,I)},St=(p,g,m,y,k,w,E)=>{const T=p.component=su(p,y,k);if(Es(p)&&(T.ctx.renderer=De),ru(T,!1,E),T.asyncDep){if(k&&k.registerDep(T,be,E),!p.el){const I=T.subTree=kt(At);ie(null,I,g,m),p.placeholder=I.el}}else be(T,p,g,m,k,w,E)},Pt=(p,g,m)=>{const y=g.component=p.component;if(Ba(p,g,m))if(y.asyncDep&&!y.asyncResolved){re(y,g,m);return}else y.next=g,y.update();else g.el=p.el,y.vnode=g},be=(p,g,m,y,k,w,E)=>{const T=()=>{if(p.isMounted){let{next:P,bu:V,u:b,parent:q,vnode:Z}=p;{const Je=qs(p);if(Je){P&&(P.el=Z.el,re(p,P,E)),Je.asyncDep.then(()=>{Ve(()=>{p.isUnmounted||x()},k)});return}}let se=P,me;$t(p,!1),P?(P.el=Z.el,re(p,P,E)):P=Z,V&&Al(V),(me=P.props&&P.props.onVnodeBeforeUpdate)&&it(me,q,P,Z),$t(p,!0);const we=Eo(p),qe=p.subTree;p.subTree=we,N(qe,we,C(qe.el),$e(qe),p,k,w),P.el=we.el,se===null&&La(p,we.el),b&&Ve(b,k),(me=P.props&&P.props.onVnodeUpdated)&&Ve(()=>it(me,q,P,Z),k)}else{let P;const{el:V,props:b}=g,{bm:q,m:Z,parent:se,root:me,type:we}=p,qe=rl(g);$t(p,!1),q&&Al(q),!qe&&(P=b&&b.onVnodeBeforeMount)&&it(P,se,g),$t(p,!0);{me.ce&&me.ce._hasShadowRoot()&&me.ce._injectChildStyle(we,p.parent?p.parent.type:void 0);const Je=p.subTree=Eo(p);N(null,Je,m,y,p,k,w),g.el=Je.el}if(Z&&Ve(Z,k),!qe&&(P=b&&b.onVnodeMounted)){const Je=g;Ve(()=>it(P,se,Je),k)}(g.shapeFlag&256||se&&rl(se.vnode)&&se.vnode.shapeFlag&256)&&p.a&&Ve(p.a,k),p.isMounted=!0,g=m=y=null}};p.scope.on();const I=p.effect=new os(T);p.scope.off();const x=p.update=I.run.bind(I),B=p.job=I.runIfDirty.bind(I);B.i=p,B.id=p.uid,I.scheduler=()=>qn(B),$t(p,!0),x()},re=(p,g,m)=>{g.component=p;const y=p.vnode.props;p.vnode=g,p.next=null,Na(p,g.props,y,m),Ka(p,g.children,m),pt(),wo(p),vt()},le=(p,g,m,y,k,w,E,T,I=!1)=>{const x=p&&p.children,B=p?p.shapeFlag:0,P=g.children,{patchFlag:V,shapeFlag:b}=g;if(V>0){if(V&128){nt(x,P,m,y,k,w,E,T,I);return}else if(V&256){Fe(x,P,m,y,k,w,E,T,I);return}}b&8?(B&16&&G(x,k,w),P!==x&&h(m,P)):B&16?b&16?nt(x,P,m,y,k,w,E,T,I):G(x,k,w,!0):(B&8&&h(m,""),b&16&&Be(P,m,y,k,w,E,T,I))},Fe=(p,g,m,y,k,w,E,T,I)=>{p=p||Kt,g=g||Kt;const x=p.length,B=g.length,P=Math.min(x,B);let V;for(V=0;V<P;V++){const b=g[V]=I?yt(g[V]):ut(g[V]);N(p[V],b,m,null,k,w,E,T,I)}x>B?G(p,k,w,!0,!1,P):Be(g,m,y,k,w,E,T,I,P)},nt=(p,g,m,y,k,w,E,T,I)=>{let x=0;const B=g.length;let P=p.length-1,V=B-1;for(;x<=P&&x<=V;){const b=p[x],q=g[x]=I?yt(g[x]):ut(g[x]);if(el(b,q))N(b,q,m,null,k,w,E,T,I);else break;x++}for(;x<=P&&x<=V;){const b=p[P],q=g[V]=I?yt(g[V]):ut(g[V]);if(el(b,q))N(b,q,m,null,k,w,E,T,I);else break;P--,V--}if(x>P){if(x<=V){const b=V+1,q=b<B?g[b].el:y;for(;x<=V;)N(null,g[x]=I?yt(g[x]):ut(g[x]),m,q,k,w,E,T,I),x++}}else if(x>V)for(;x<=P;)Ce(p[x],k,w,!0),x++;else{const b=x,q=x,Z=new Map;for(x=q;x<=V;x++){const Oe=g[x]=I?yt(g[x]):ut(g[x]);Oe.key!=null&&Z.set(Oe.key,x)}let se,me=0;const we=V-q+1;let qe=!1,Je=0;const Et=new Array(we);for(x=0;x<we;x++)Et[x]=0;for(x=b;x<=P;x++){const Oe=p[x];if(me>=we){Ce(Oe,k,w,!0);continue}let Re;if(Oe.key!=null)Re=Z.get(Oe.key);else for(se=q;se<=V;se++)if(Et[se-q]===0&&el(Oe,g[se])){Re=se;break}Re===void 0?Ce(Oe,k,w,!0):(Et[Re-q]=x+1,Re>=Je?Je=Re:qe=!0,N(Oe,g[Re],m,null,k,w,E,T,I),me++)}const yl=qe?za(Et):Kt;for(se=yl.length-1,x=we-1;x>=0;x--){const Oe=q+x,Re=g[Oe],bl=g[Oe+1],wl=Oe+1<B?bl.el||Js(bl):y;Et[x]===0?N(null,Re,m,wl,k,w,E,T,I):qe&&(se<0||x!==yl[se]?J(Re,m,wl,2):se--)}}},J=(p,g,m,y,k=null)=>{const{el:w,type:E,transition:T,children:I,shapeFlag:x}=p;if(x&6){J(p.component.subTree,g,m,y);return}if(x&128){p.suspense.move(g,m,y);return}if(x&64){E.move(p,g,m,De);return}if(E===Q){o(w,g,m);for(let P=0;P<I.length;P++)J(I[P],g,m,y);o(p.anchor,g,m);return}if(E===bn){X(p,g,m);return}if(y!==2&&x&1&&T)if(y===0)T.persisted&&!w[_n]?o(w,g,m):(T.beforeEnter(w),o(w,g,m),Ve(()=>T.enter(w),k));else{const{leave:P,delayLeave:V,afterLeave:b}=T,q=()=>{p.ctx.isUnmounted?s(w):o(w,g,m)},Z=()=>{const se=w._isLeaving||!!w[_n];w._isLeaving&&w[_n](!0),T.persisted&&!se?q():P(w,()=>{q(),b&&b()})};V?V(w,q,Z):Z()}else o(w,g,m)},Ce=(p,g,m,y=!1,k=!1)=>{const{type:w,props:E,ref:T,children:I,dynamicChildren:x,shapeFlag:B,patchFlag:P,dirs:V,cacheIndex:b,memo:q}=p;if(P===-2&&(k=!1),T!=null&&(pt(),il(T,null,m,p,!0),vt()),b!=null&&(g.renderCache[b]=void 0),B&256){g.ctx.deactivate(p);return}const Z=B&1&&V,se=!rl(p);let me;if(se&&(me=E&&E.onVnodeBeforeUnmount)&&it(me,g,p),B&6)Dt(p.component,m,y);else{if(B&128){p.suspense.unmount(m,y);return}Z&&Mt(p,null,g,"beforeUnmount"),B&64?p.type.remove(p,g,m,De,y):x&&!x.hasOnce&&(w!==Q||P>0&&P&64)?G(x,g,m,!1,!0):(w===Q&&P&384||!k&&B&16)&&G(I,g,m),y&&ae(p)}const we=q!=null&&b==null;(se&&(me=E&&E.onVnodeUnmounted)||Z||we)&&Ve(()=>{me&&it(me,g,p),Z&&Mt(p,null,g,"unmounted"),we&&(p.el=null)},m)},ae=p=>{const{type:g,el:m,anchor:y,transition:k}=p;if(g===Q){ot(m,y);return}if(g===bn){F(p);return}const w=()=>{s(m),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(p.shapeFlag&1&&k&&!k.persisted){const{leave:E,delayLeave:T}=k,I=()=>E(m,w);T?T(p.el,w,I):I()}else w()},ot=(p,g)=>{let m;for(;p!==g;)m=M(p),s(p),p=m;s(g)},Dt=(p,g,m)=>{const{bum:y,scope:k,job:w,subTree:E,um:T,m:I,a:x}=p;Oo(I),Oo(x),y&&Al(y),k.stop(),w&&(w.flags|=8,Ce(E,p,g,m)),T&&Ve(T,g),Ve(()=>{p.isUnmounted=!0},g)},G=(p,g,m,y=!1,k=!1,w=0)=>{for(let E=w;E<p.length;E++)Ce(p[E],g,m,y,k)},$e=p=>{if(p.shapeFlag&6)return $e(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const g=M(p.anchor||p.el),m=g&&g[da];return m?M(m):g};let Ne=!1;const je=(p,g,m)=>{let y;p==null?g._vnode&&(Ce(g._vnode,null,null,!0),y=g._vnode.component):N(g._vnode||null,p,g,null,null,null,m),g._vnode=p,Ne||(Ne=!0,wo(y),ks(),Ne=!1)},De={p:N,um:Ce,m:J,r:ae,mt:St,mc:Be,pc:le,pbc:He,n:$e,o:e};return{render:je,hydrate:void 0,createApp:Aa(je)}}function yn({type:e,props:t},l){return l==="svg"&&e==="foreignObject"||l==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:l}function $t({effect:e,job:t},l){l?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ga(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ks(e,t,l=!1){const o=e.children,s=t.children;if(W(o)&&W(s))for(let i=0;i<o.length;i++){const d=o[i];let c=s[i];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=s[i]=yt(s[i]),c.el=d.el),!l&&c.patchFlag!==-2&&Ks(d,c)),c.type===tn&&(c.patchFlag===-1&&(c=s[i]=yt(c)),c.el=d.el),c.type===At&&!c.el&&(c.el=d.el)}}function za(e){const t=e.slice(),l=[0];let o,s,i,d,c;const v=e.length;for(o=0;o<v;o++){const _=e[o];if(_!==0){if(s=l[l.length-1],e[s]<_){t[o]=s,l.push(o);continue}for(i=0,d=l.length-1;i<d;)c=i+d>>1,e[l[c]]<_?i=c+1:d=c;_<e[l[i]]&&(i>0&&(t[o]=l[i-1]),l[i]=o)}}for(i=l.length,d=l[i-1];i-- >0;)l[i]=d,d=t[d];return l}function qs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:qs(t)}function Oo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Js(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Js(t.subTree):null}const Gs=e=>e.__isSuspense;function Ya(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):oa(e)}const Q=Symbol.for("v-fgt"),tn=Symbol.for("v-txt"),At=Symbol.for("v-cmt"),bn=Symbol.for("v-stc"),ul=[];let We=null;function S(e=!1){ul.push(We=e?null:[])}function Qa(){ul.pop(),We=ul[ul.length-1]||null}let pl=1;function Ao(e,t=!1){pl+=e,e<0&&We&&t&&(We.hasOnce=!0)}function zs(e){return e.dynamicChildren=pl>0?We||Kt:null,Qa(),pl>0&&We&&We.push(e),e}function D(e,t,l,o,s,i){return zs(n(e,t,l,o,s,i,!0))}function Xa(e,t,l,o,s){return zs(kt(e,t,l,o,s,!0))}function Ys(e){return e?e.__v_isVNode===!0:!1}function el(e,t){return e.type===t.type&&e.key===t.key}const Qs=({key:e})=>e??null,Ml=({ref:e,ref_key:t,ref_for:l})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||Te(e)||K(e)?{i:Ye,r:e,k:t,f:!!l}:e:null);function n(e,t=null,l=null,o=0,s=null,i=e===Q?0:1,d=!1,c=!1){const v={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qs(t),ref:t&&Ml(t),scopeId:Cs,slotScopeIds:null,children:l,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ye};return c?(Fl(v,l),i&128&&e.normalize(v)):l&&(v.shapeFlag|=ye(l)?8:16),pl>0&&!d&&We&&(v.patchFlag>0||i&6)&&v.patchFlag!==32&&We.push(v),v}const kt=Za;function Za(e,t=null,l=null,o=0,s=null,i=!1){if((!e||e===Ca)&&(e=At),Ys(e)){const c=Qt(e,t,!0);return l&&Fl(c,l),pl>0&&!i&&We&&(c.shapeFlag&6?We[We.indexOf(e)]=c:We.push(c)),c.patchFlag=-2,c}if(cu(e)&&(e=e.__vccOpts),t){t=eu(t);let{class:c,style:v}=t;c&&!ye(c)&&(t.class=Yl(c)),fe(v)&&(Kn(v)&&!W(v)&&(v=Pe({},v)),t.style=Vn(v))}const d=ye(e)?1:Gs(e)?128:ca(e)?64:fe(e)?4:K(e)?2:0;return n(e,t,l,o,s,d,i,!0)}function eu(e){return e?Kn(e)||Ls(e)?Pe({},e):e:null}function Qt(e,t,l=!1,o=!1){const{props:s,ref:i,patchFlag:d,children:c,transition:v}=e,_=t?lu(s||{},t):s,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:_,key:_&&Qs(_),ref:t&&t.ref?l&&i?W(i)?i.concat(Ml(t)):[i,Ml(t)]:Ml(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Q?d===-1?16:d|16:d,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:v,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qt(e.ssContent),ssFallback:e.ssFallback&&Qt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return v&&o&&Jn(h,v.clone(h)),h}function tu(e=" ",t=0){return kt(tn,null,e,t)}function H(e="",t=!1){return t?(S(),Xa(At,null,e)):kt(At,null,e)}function ut(e){return e==null||typeof e=="boolean"?kt(At):W(e)?kt(Q,null,e.slice()):Ys(e)?yt(e):kt(tn,null,String(e))}function yt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Qt(e)}function Fl(e,t){let l=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(W(t))l=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Fl(e,s()),s._c&&(s._d=!0));return}else{l=32;const s=t._;!s&&!Ls(t)?t._ctx=Ye:s===3&&Ye&&(Ye.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(K(t)){if(o&65){Fl(e,{default:t});return}t={default:t,_ctx:Ye},l=32}else t=String(t),o&64?(l=16,t=[tu(t)]):l=8;e.children=t,e.shapeFlag|=l}function lu(...e){const t={};for(let l=0;l<e.length;l++){const o=e[l];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=Yl([t.class,o.class]));else if(s==="style")t.style=Vn([t.style,o.style]);else if(Hl(s)){const i=t[s],d=o[s];d&&i!==d&&!(W(i)&&i.includes(d))?t[s]=i?[].concat(i,d):d:d==null&&i==null&&!Kl(s)&&(t[s]=d)}else s!==""&&(t[s]=o[s])}return t}function it(e,t,l,o=null){lt(e,t,7,[l,o])}const nu=Ms();let ou=0;function su(e,t,l){const o=e.type,s=(t?t.appContext:e.appContext)||nu,i={uid:ou++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Dr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ns(o,s),emitsOptions:$s(o,s),emit:null,emitted:null,propsDefaults:ve,inheritAttrs:o.inheritAttrs,ctx:ve,data:ve,props:ve,attrs:ve,slots:ve,refs:ve,setupState:ve,setupContext:null,suspense:l,suspenseId:l?l.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Ma.bind(null,i),e.ce&&e.ce(i),i}let Me=null;const iu=()=>Me||Ye;let Nl,An;{const e=zl(),t=(l,o)=>{let s;return(s=e[l])||(s=e[l]=[]),s.push(o),i=>{s.length>1?s.forEach(d=>d(i)):s[0](i)}};Nl=t("__VUE_INSTANCE_SETTERS__",l=>Me=l),An=t("__VUE_SSR_SETTERS__",l=>vl=l)}const ml=e=>{const t=Me;return Nl(e),e.scope.on(),()=>{e.scope.off(),Nl(t)}},Uo=()=>{Me&&Me.scope.off(),Nl(null)};function Xs(e){return e.vnode.shapeFlag&4}let vl=!1;function ru(e,t=!1,l=!1){t&&An(t);const{props:o,children:s}=e.vnode,i=Xs(e);Fa(e,o,i,t),Ha(e,s,l||t);const d=i?au(e,t):void 0;return t&&An(!1),d}function au(e,t){const l=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Sa);const{setup:o}=l;if(o){pt();const s=e.setupContext=o.length>1?du(e):null,i=ml(e),d=_l(o,e,0,[e.props,s]),c=Yo(d);if(vt(),i(),(c||e.sp)&&!rl(e)&&Ds(e),c){if(d.then(Uo,Uo),t)return d.then(v=>{Mo(e,v)}).catch(v=>{Xl(v,e,0)});e.asyncDep=d}else Mo(e,d)}else Zs(e)}function Mo(e,t,l){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:fe(t)&&(e.setupState=ms(t)),Zs(e)}function Zs(e,t,l){const o=e.type;e.render||(e.render=o.render||ct);{const s=ml(e);pt();try{Pa(e)}finally{vt(),s()}}}const uu={get(e,t){return Ee(e,"get",""),e[t]}};function du(e){const t=l=>{e.exposed=l||{}};return{attrs:new Proxy(e.attrs,uu),slots:e.slots,emit:e.emit,expose:t}}function ln(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ms(Jr(e.exposed)),{get(t,l){if(l in t)return t[l];if(l in al)return al[l](e)},has(t,l){return l in t||l in al}})):e.proxy}function cu(e){return K(e)&&"__vccOpts"in e}const It=(e,t)=>Zr(e,t,vl),fu="3.5.39";/**
* @vue/runtime-dom v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Un;const $o=typeof window<"u"&&window.trustedTypes;if($o)try{Un=$o.createPolicy("vue",{createHTML:e=>e})}catch{}const ei=Un?e=>Un.createHTML(e):e=>e,pu="http://www.w3.org/2000/svg",vu="http://www.w3.org/1998/Math/MathML",mt=typeof document<"u"?document:null,Ro=mt&&mt.createElement("template"),gu={insert:(e,t,l)=>{t.insertBefore(e,l||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,l,o)=>{const s=t==="svg"?mt.createElementNS(pu,e):t==="mathml"?mt.createElementNS(vu,e):l?mt.createElement(e,{is:l}):mt.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>mt.createTextNode(e),createComment:e=>mt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>mt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,l,o,s,i){const d=l?l.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),l),!(s===i||!(s=s.nextSibling)););else{Ro.innerHTML=ei(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const c=Ro.content;if(o==="svg"||o==="mathml"){const v=c.firstChild;for(;v.firstChild;)c.appendChild(v.firstChild);c.removeChild(v)}t.insertBefore(c,l)}return[d?d.nextSibling:t.firstChild,l?l.previousSibling:t.lastChild]}},hu=Symbol("_vtc");function _u(e,t,l){const o=e[hu];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):l?e.setAttribute("class",t):e.className=t}const Vo=Symbol("_vod"),mu=Symbol("_vsh"),yu=Symbol(""),bu=/(?:^|;)\s*display\s*:/;function wu(e,t,l){const o=e.style,s=ye(l);let i=!1;if(l&&!s){if(t)if(ye(t))for(const d of t.split(";")){const c=d.slice(0,d.indexOf(":")).trim();l[c]==null&&ll(o,c,"")}else for(const d in t)l[d]==null&&ll(o,d,"");for(const d in l){d==="display"&&(i=!0);const c=l[d];c!=null?xu(e,d,!ye(t)&&t?t[d]:void 0,c)||ll(o,d,c):ll(o,d,"")}}else if(s){if(t!==l){const d=o[yu];d&&(l+=";"+d),o.cssText=l,i=bu.test(l)}}else t&&e.removeAttribute("style");Vo in e&&(e[Vo]=i?o.display:"",e[mu]&&(o.display="none"))}const Bo=/\s*!important$/;function ll(e,t,l){if(W(l))l.forEach(o=>ll(e,t,o));else if(l==null&&(l=""),t.startsWith("--"))e.setProperty(t,l);else{const o=ku(e,t);Bo.test(l)?e.setProperty(Ft(o),l.replace(Bo,""),"important"):e[o]=l}}const Lo=["Webkit","Moz","ms"],wn={};function ku(e,t){const l=wn[t];if(l)return l;let o=Ze(t);if(o!=="filter"&&o in e)return wn[t]=o;o=Zo(o);for(let s=0;s<Lo.length;s++){const i=Lo[s]+o;if(i in e)return wn[t]=i}return t}function xu(e,t,l,o){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ye(o)&&l===o}const Fo="http://www.w3.org/1999/xlink";function No(e,t,l,o,s,i=Cr(t)){o&&t.startsWith("xlink:")?l==null?e.removeAttributeNS(Fo,t.slice(6,t.length)):e.setAttributeNS(Fo,t,l):l==null||i&&!ts(l)?e.removeAttribute(t):e.setAttribute(t,i?"":ft(l)?String(l):l)}function jo(e,t,l,o,s){if(t==="innerHTML"||t==="textContent"){l!=null&&(e[t]=t==="innerHTML"?ei(l):l);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const c=i==="OPTION"?e.getAttribute("value")||"":e.value,v=l==null?e.type==="checkbox"?"on":"":String(l);(c!==v||!("_value"in e))&&(e.value=v),l==null&&e.removeAttribute(t),e._value=l;return}let d=!1;if(l===""||l==null){const c=typeof e[t];c==="boolean"?l=ts(l):l==null&&c==="string"?(l="",d=!0):c==="number"&&(l=0,d=!0)}try{e[t]=l}catch{}d&&e.removeAttribute(s||t)}function Vt(e,t,l,o){e.addEventListener(t,l,o)}function Cu(e,t,l,o){e.removeEventListener(t,l,o)}const Wo=Symbol("_vei");function Su(e,t,l,o,s=null){const i=e[Wo]||(e[Wo]={}),d=i[t];if(o&&d)d.value=o;else{const[c,v]=Eu(t);if(o){const _=i[t]=Ou(o,s);Vt(e,c,_,v)}else d&&(Cu(e,c,d,v),i[t]=void 0)}}const Pu=/(Once|Passive|Capture)$/,Du=/^on:?(?:Once|Passive|Capture)$/;function Eu(e){let t,l;for(;(l=e.match(Pu))&&!Du.test(e);)t||(t={}),e=e.slice(0,e.length-l[1].length),t[l[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Ft(e.slice(2)),t]}let kn=0;const Tu=Promise.resolve(),Iu=()=>kn||(Tu.then(()=>kn=0),kn=Date.now());function Ou(e,t){const l=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=l.attached)return;const s=l.value;if(W(s)){const i=o.stopImmediatePropagation;o.stopImmediatePropagation=()=>{i.call(o),o._stopped=!0};const d=s.slice(),c=[o];for(let v=0;v<d.length&&!o._stopped;v++){const _=d[v];_&&lt(_,t,5,c)}}else lt(s,t,5,[o])};return l.value=e,l.attached=Iu(),l}const Ho=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Au=(e,t,l,o,s,i)=>{const d=s==="svg";t==="class"?_u(e,o,d):t==="style"?wu(e,l,o):Hl(t)?Kl(t)||Su(e,t,l,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Uu(e,t,o,d))?(jo(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&No(e,t,o,d,i,t!=="value")):e._isVueCE&&(Mu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ye(o)))?jo(e,Ze(t),o,i,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),No(e,t,o,d))};function Uu(e,t,l,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ho(t)&&K(l));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Ho(t)&&ye(l)?!1:t in e}function Mu(e,t){const l=e._def.props;if(!l)return!1;const o=Ze(t);return Array.isArray(l)?l.some(s=>Ze(s)===o):Object.keys(l).some(s=>Ze(s)===o)}const jl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?l=>Al(t,l):t};function $u(e){e.target.composing=!0}function Ko(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const zt=Symbol("_assign");function qo(e,t,l){return t&&(e=e.trim()),l&&(e=Gl(e)),e}const U={created(e,{modifiers:{lazy:t,trim:l,number:o}},s){e[zt]=jl(s);const i=o||s.props&&s.props.type==="number";Vt(e,t?"change":"input",d=>{d.target.composing||e[zt](qo(e.value,l,i))}),(l||i)&&Vt(e,"change",()=>{e.value=qo(e.value,l,i)}),t||(Vt(e,"compositionstart",$u),Vt(e,"compositionend",Ko),Vt(e,"change",Ko))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:l,modifiers:{lazy:o,trim:s,number:i}},d){if(e[zt]=jl(d),e.composing)return;const c=(i||e.type==="number")&&!/^0\d/.test(e.value)?Gl(e.value):e.value,v=t??"";if(c===v)return;const _=e.getRootNode();(_ instanceof Document||_ instanceof ShadowRoot)&&_.activeElement===e&&e.type!=="range"&&(o&&t===l||s&&e.value.trim()===v)||(e.value=v)}},_t={deep:!0,created(e,{value:t,modifiers:{number:l}},o){const s=ql(t);Vt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,d=>d.selected).map(d=>l?Gl(Wl(d)):Wl(d));e[zt](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,bs(()=>{e._assigning=!1})}),e[zt]=jl(o)},mounted(e,{value:t}){Jo(e,t)},beforeUpdate(e,t,l){e[zt]=jl(l)},updated(e,{value:t}){e._assigning||Jo(e,t)}};function Jo(e,t){const l=e.multiple,o=W(t);if(!(l&&!o&&!ql(t))){for(let s=0,i=e.options.length;s<i;s++){const d=e.options[s],c=Wl(d);if(l)if(o){const v=typeof c;v==="string"||v==="number"?d.selected=t.some(_=>String(_)===String(c)):d.selected=Pr(t,c)>-1}else d.selected=t.has(c);else if(hl(Wl(d),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!l&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Wl(e){return"_value"in e?e._value:e.value}const Ru=Pe({patchProp:Au},gu);let Go;function Vu(){return Go||(Go=qa(Ru))}const Bu=((...e)=>{const t=Vu().createApp(...e),{mount:l}=t;return t.mount=o=>{const s=Fu(o);if(!s)return;const i=t._component;!K(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const d=l(s,!1,Lu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),d},t});function Lu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Fu(e){return ye(e)?document.querySelector(e):e}const Nu="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",O={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,workflowBranches:e=>`workflows/${e}/branches`,workflowSwitchBranch:e=>`workflows/${e}/switch-branch`,workflowHistory:e=>`workflows/${e}/history`,node:e=>`nodes/${e}`,nodeGenerate:e=>`nodes/${e}/generate`,nodeRetry:e=>`nodes/${e}/retry`,nodeComplete:e=>`nodes/${e}/complete`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeReview:e=>`nodes/${e}/review`,nodeImages:e=>`nodes/${e}/images`,workflowReview:e=>`workflows/${e}/review`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",settingsImport:"settings/import",settingsSnapshots:"settings/snapshots",settingsSnapshot:e=>`settings/snapshots/${e}`,settingsRollback:"settings/rollback",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materialCategory:e=>`material-categories/${e}`,materials:"materials",materialUpload:"materials/upload",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeProvider:"api-discovery/probe-provider",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class ju extends Error{constructor(l,o,s={}){super(o);dn(this,"code");dn(this,"details");this.name="ApiClientError",this.code=l,this.details=s}}async function z(e,t){return Xe(e,{method:"GET",query:t})}async function Y(e,t){return Xe(e,{method:"POST",body:t})}async function Xe(e,t={}){const o=await(await fetch(Wu(e,t.query),{method:t.method??"GET",headers:t.body===void 0?void 0:{"Content-Type":"application/json"},body:t.body===void 0?void 0:JSON.stringify(t.body)})).json();if(!o.ok)throw new ju(o.error_code,o.message,o.details);return o.data}function Wu(e,t){const l=e.replace(/^\/+/,""),o=new URL(`${Nu}/${l}`,window.location.origin);for(const[s,i]of Object.entries(t??{}))i!==void 0&&o.searchParams.set(s,String(i));return`${o.pathname}${o.search}`}const Hu={class:"web-shell"},Ku={class:"sidebar"},qu={class:"brand"},Ju=["onClick"],Gu={class:"workspace"},zu={class:"topbar"},Yu={class:"actions"},Qu=["disabled"],Xu={key:0,class:"notice error"},Zu={key:1,class:"notice"},ed={key:0,class:"dashboard-grid"},td={key:1,class:"list-view"},ld={class:"form-grid"},nd={class:"wide-field"},od=["disabled"],sd=["disabled"],id={key:0},rd={key:1,class:"form-grid"},ad={class:"wide-field"},ud={class:"wide-field"},dd={class:"wide-field"},cd={class:"wide-field"},fd={class:"wide-field"},pd=["disabled"],vd=["disabled"],gd={class:"inline-actions"},hd={class:"badge"},_d=["disabled","onClick"],md=["disabled","onClick"],yd={key:0,class:"empty"},bd={key:2,class:"split-view"},wd={class:"list-view"},kd={class:"form-grid"},xd=["disabled"],Cd={class:"inline-actions"},Sd={class:"badge"},Pd=["disabled","onClick"],Dd=["disabled","onClick"],Ed=["disabled","onClick"],Td=["disabled","onClick"],Id={key:0,class:"empty"},Od={key:0,class:"editor-panel"},Ad={class:"form-grid"},Ud=["disabled"],Md=["disabled","onClick"],$d={class:"list-view"},Rd={class:"inline-actions"},Vd=["disabled"],Bd={class:"form-grid"},Ld={class:"wide-field"},Fd={class:"wide-field"},Nd={class:"wide-field"},jd=["disabled"],Wd=["disabled"],Hd={class:"form-grid"},Kd={class:"wide-field"},qd=["disabled"],Jd=["disabled"],Gd={class:"inline-actions"},zd={class:"badge"},Yd=["disabled","onClick"],Qd=["disabled","onClick"],Xd=["disabled","onClick"],Zd=["disabled","onClick"],ec={key:0,class:"empty"},tc={class:"inline-actions"},lc={key:0,class:"badge"},nc=["disabled","onClick"],oc=["disabled","onClick"],sc=["disabled","onClick"],ic=["disabled","onClick"],rc=["disabled","onClick"],ac=["disabled","onClick"],uc={key:0,class:"empty"},dc={key:0},cc={key:1},fc={class:"editor-panel"},pc={key:0,class:"empty"},vc={key:2,class:"editor-panel"},gc={key:3},hc={key:3,class:"split-view"},_c={class:"list-view"},mc={class:"form-grid"},yc=["disabled"],bc=["disabled"],wc={class:"inline-actions"},kc=["disabled","onClick"],xc=["disabled","onClick"],Cc={key:0,class:"empty"},Sc={class:"list-view"},Pc={class:"inline-actions"},Dc=["disabled"],Ec={class:"form-grid"},Tc={value:""},Ic=["value"],Oc=["disabled"],Ac=["disabled"],Uc={class:"inline-actions"},Mc={class:"badge"},$c=["disabled","onClick"],Rc=["disabled","onClick"],Vc=["disabled","onClick"],Bc=["disabled","onClick"],Lc={key:0,class:"empty"},Fc={class:"form-grid"},Nc={value:""},jc=["value"],Wc=["disabled"],Hc=["disabled"],Kc={key:0},qc={key:4,class:"list-view"},Jc=["disabled"],Gc={class:"form-grid"},zc={value:""},Yc=["value"],Qc=["disabled"],Xc={class:"inline-actions"},Zc=["disabled","onClick"],ef={key:0,class:"empty"},tf={key:0},lf={class:"form-grid"},nf=["disabled"],of={key:1},sf={key:5,class:"list-view"},rf={class:"inline-actions"},af=["disabled"],uf=["disabled"],df={class:"form-grid"},cf={value:""},ff=["value"],pf={value:""},vf=["value"],gf={value:""},hf=["value"],_f=["disabled"],mf={class:"inline-actions"},yf={class:"badge"},bf=["onClick"],wf=["onClick"],kf=["disabled","onClick"],xf={key:0,class:"empty"},Cf={key:0,class:"editor-panel"},Sf={key:6,class:"split-view"},Pf={class:"list-view"},Df={class:"inline-actions"},Ef=["disabled"],Tf=["disabled"],If={class:"form-grid"},Of=["disabled"],Af={key:0},Uf={class:"list-view"},Mf={class:"inline-actions"},$f={class:"badge"},Rf=["disabled","onClick"],Vf=["disabled","onClick"],Bf=["disabled","onClick"],Lf={key:0,class:"empty"},Ff={key:7,class:"logs-view"},Nf={class:"split-view"},jf={class:"list-view"},Wf={class:"form-grid"},Hf={value:""},Kf=["value"],qf=["disabled"],Jf={key:0,class:"empty"},Gf={class:"list-view"},zf={class:"form-grid"},Yf=["disabled"],Qf={class:"badge"},Xf={key:0,class:"empty"},Zf={class:"split-view"},ep={class:"list-view"},tp={class:"form-grid"},lp=["disabled"],np={key:0,class:"empty"},op={class:"list-view"},sp={class:"form-grid"},ip=["disabled"],rp={class:"badge"},ap={key:0,class:"empty"},up={class:"list-view"},dp={class:"form-grid"},cp=["disabled"],fp={class:"badge"},pp={key:0,class:"empty"},vp={key:0},gp={class:"list-view"},hp={class:"form-grid"},_p=["disabled"],mp={key:0,class:"empty"},yp={key:8,class:"settings-view"},bp={class:"toolbar"},wp=["disabled"],kp=["disabled"],xp=["disabled"],Cp=["disabled"],Sp=["disabled"],Pp=["disabled"],Dp=["disabled"],Ep={class:"settings-sections"},Tp={class:"editor-panel"},Ip={class:"editor-panel"},Op=["disabled"],Ap={class:"editor-panel"},Up={class:"inline-actions"},Mp=["disabled","onClick"],$p=["disabled","onClick"],Rp={key:0,class:"editor-panel"},Vp={class:"split-view"},Bp={class:"list-view"},Lp={class:"list-view"},Fp={key:1,class:"editor-panel"},Np={class:"inspector"},jp=fa({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",generate:"生成",adopt:"采纳",select:"选择",unselect:"取选",recognize:"识别",confirm:"确认",edit:"编辑",update:"更新",name:"名称",identity:"身份",personality:"性格",hairColor:"发色",hairstyle:"发型",eyeColor:"眼色",description:"描述",basePrompt:"基础提示词",appearancePrompt:"外观提示词",stylePrompt:"风格提示词",negativePrompt:"反向提示词",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialUpdated:"素材已更新",materialUploaded:"素材已登记上传",materialArchived:"素材已归档",upload:"上传登记",filename:"文件名",contentType:"Content-Type",importToWardrobe:"加入衣橱",delete:"删除",wardrobeCategory:"衣橱分类",season:"季节",style:"风格",selectMaterial:"选择素材",wardrobeImported:"衣橱条目已加入",wardrobeDeleted:"衣橱条目已删除",dailyOutfit:"每日穿搭",categories:"分类",mood:"心情",weather:"天气",keywords:"关键词",outfitGenerated:"每日穿搭已生成",dashboard:"运行概览",profiles:"角色",workflows:"工作流",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",profileCreated:"角色已创建",profileUpdated:"角色已更新",profileDeleted:"角色已删除",emptyProfiles:"暂无角色",workflowList:"工作流列表",workflowType:"工作流类型",workflowCreated:"工作流已创建",emptyWorkflows:"暂无工作流",nodes:"节点",nodeKey:"NodeKey",nodeTitle:"节点标题",nodeType:"节点类型",status:"状态",nodeCreated:"节点已创建",nodeUpdated:"节点已更新",nodeQueued:"节点已重新入队",nodeCompleted:"节点已完成",images:"图片",branches:"分支",branchName:"分支名",switchBranch:"切换分支",history:"历史",review:"评审",reviewResult:"评审结果",emptyImages:"暂无图片",emptyHistory:"暂无历史",modelRoute:"模型路由",prompt:"提示词",generationQueued:"生成已入队",branchCreated:"分支已创建",imageArchived:"图片已归档",imageDeleted:"图片已删除",currentBranch:"当前分支",materialCategories:"素材分类",categoryType:"分类类型",sortOrder:"排序",categoryCreated:"分类已创建",categoryUpdated:"分类已更新",categoryDeleted:"分类已删除",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",filter:"筛选",applyFilters:"应用筛选",detail:"详情",jobDetail:"任务详情",allStatuses:"全部状态",allProfiles:"全部角色",allWorkflows:"全部工作流",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",probeProvider:"探测 Provider",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",integrationEvents:"集成事件",auditLogs:"审计",targetType:"TargetType",actor:"操作人",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",importSettings:"导入设置",importDone:"设置已导入",importDraftInvalid:"导入 JSON 格式无效",snapshots:"配置快照",loadSnapshots:"加载快照",loadSnapshot:"查看快照",snapshotPreview:"快照预览",rollback:"回滚",rollbackDone:"配置已回滚",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},l=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"workflows",label:t.workflows},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],o=l.map(f=>f.key),s=R(Oe()),i=R(null),d=R(null),c=R(null),v=R([]),_=R(null),h=R([]),C=R([]),M=R(null),$=R(""),te=R([]),N=R(null),_e=R(null),ie=R(null),ee=R(null),X=R(null),F=R(null),ge=R([]),xe=R(null),Ie=R([]),Be=R([]),gt=R([]),He=R(null),pe=R({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Ke=R([]),Le=R(null),St=R(""),Pt=R(""),be=R([]),re=R(null),le=R(null),Fe=R(null),nt=R(null),J=R({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),Ce=R(null),ae=R({profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}),ot=R({display_name:"",workflow_type:"single_image"}),Dt=R({branch_name:""}),G=R({node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}),$e=R({model_route:"",prompt:"",negative_prompt:""}),Ne=R({status:"",profile_id:"",workflow_id:""}),je=R({status:"",profile_id:"",workflow_id:"",node_id:""}),De=R({workflow_id:"",action:"",node_id:"",branch_name:""}),Ut=R({source:"",status:""}),p=R({integration_name:"",action:"",status:""}),g=R({integration_name:"",action:"",status:""}),m=R({action:"",target_type:"",actor_id:""}),y=R({material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}),k=R({display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}),w=R({category_id:"",name:"",category_type:"material",sort_order:0}),E=R({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),T=R({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),I=R(null),x=R({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),B=R(null),P=R(""),V=R(!0),b=R(""),q=R(""),Z=It(()=>{var f,u;return((u=(f=c.value)==null?void 0:f.items[0])==null?void 0:u.profile_id)??""}),se=It(()=>{var f,u;return((u=(f=c.value)==null?void 0:f.items[0])==null?void 0:u.name)??t.noProfile}),me=It(()=>{var u;const f=(u=d.value)==null?void 0:u.queue;return f?f.pending+f.running+f.failed+f.dead_letter:0}),we=It(()=>{var f;return((f=xe.value)==null?void 0:f.items.filter(u=>u.recognition_status!=="confirmed").length)??0}),qe=It(()=>{var f;return(((f=xe.value)==null?void 0:f.items)??[]).filter(u=>u.recognition_status==="confirmed")}),Je=It(()=>{var f;return((f=_.value)==null?void 0:f.nodes.find(u=>u.node_id===$.value))??null}),Et=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],yl=It(()=>({dashboard:t.dashboard,profiles:t.profiles,workflows:t.workflows,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[s.value]);Is(Re);function Oe(){const f=new URLSearchParams(window.location.search).get("view");return o.includes(f)?f:"dashboard"}async function Re(){var f,u;V.value=!0,q.value="";try{const[j,ne,ke,ze,xl,Xt,Cl,Sl,Pl,Dl,El]=await Promise.all([z(O.uiBootstrap),z(O.dashboardSummary),z(O.profiles,{page:1,page_size:20}),z(O.jobs,{page:1,page_size:20}),z(O.settingsSchema),z(O.settingsCurrent),z(O.storageStatus),z(O.materialCategories),z(O.materials,{page:1,page_size:24}),z(O.apiDiscoveryDialects),z(O.apiDiscoveryCapabilities)]);i.value=j,d.value=ne,c.value=ke,_e.value=ze,ee.value=xl,X.value=Xt,jt(Xt.config),F.value=Cl,ge.value=Sl,xe.value=Pl,Be.value=Dl,gt.value=El,await ri((f=ke.items[0])==null?void 0:f.profile_id),await ai((u=ke.items[0])==null?void 0:u.profile_id),await bl()}catch(j){q.value=j instanceof Error?j.message:t.loadFailed}finally{V.value=!1}}async function bl(){const[f,u,j,ne,ke,ze]=await Promise.allSettled([z(O.generationLogs,st(je.value,12)),z(O.workflowLogs,st(De.value,12)),z(O.errorLogs,st(Ut.value,12)),z(O.integrationLogs,st(p.value,12)),z(O.integrationEventLogs,st(g.value,20)),z(O.auditLogs,{limit:12})]);pe.value={generation:Nt(f),workflows:Nt(u),errors:Nt(j),integrations:Nt(ne),audit:Nt(ze)},Ke.value=Nt(ke)}async function wl(){pe.value.generation=await z(O.generationLogs,st(je.value,20))}async function ti(){pe.value.workflows=await z(O.workflowLogs,st(De.value,20))}async function li(){pe.value.errors=await z(O.errorLogs,st(Ut.value,20))}async function ni(){pe.value.integrations=await z(O.integrationLogs,st(p.value,20))}async function oi(){Ke.value=await z(O.integrationEventLogs,st(g.value,20))}async function si(){pe.value.audit=await z(O.auditLogs,{action:m.value.action||void 0,target_type:m.value.target_type||void 0,actor_id:m.value.actor_id||void 0,limit:20})}function Nt(f){return f.status==="fulfilled"?f.value:[]}function st(f,u){const j={limit:u};for(const[ne,ke]of Object.entries(f)){const ze=ke.trim();j[ne]=ze||void 0}return j}async function ii(){_e.value=await z(O.jobs,{status:Ne.value.status||void 0,profile_id:Ne.value.profile_id||void 0,workflow_id:Ne.value.workflow_id||void 0,page:1,page_size:20})}async function ri(f){if(!f){Ie.value=[];return}Ie.value=await z(O.wardrobe(f))}async function ai(f){var ne,ke;if(!f){v.value=[],_.value=null,h.value=[],C.value=[],$.value="",te.value=[];return}v.value=await z(O.profileWorkflows(f));const u=(ne=_.value)==null?void 0:ne.workflow.workflow_id,j=v.value.some(ze=>ze.workflow_id===u)?u:(ke=v.value[0])==null?void 0:ke.workflow_id;j?await nn(j):_.value=null}async function nn(f){var ke;const u=await z(O.workflow(f));_.value=u;const j=$.value,ne=u.nodes.some(ze=>ze.node_id===j)?j:u.workflow.current_node_id||((ke=u.nodes[0])==null?void 0:ke.node_id);ne?await Yn(ne):($.value="",te.value=[]),await ui(f)}async function Yn(f){$.value=f,te.value=await z(O.nodeImages(f))}async function ui(f){const[u,j]=await Promise.all([z(O.workflowBranches(f)),z(O.workflowHistory(f))]);h.value=u,C.value=j}async function Ge(){var u;const f=(u=_.value)==null?void 0:u.workflow.workflow_id;f&&await nn(f)}async function L(f,u,j=!0){b.value=f,q.value="";try{const ne=await u();P.value=`${f}${t.complete}`,f===t.exportSettings&&(P.value=`${t.exportDone}: ${!!ne.redacted}`),j&&await Re()}catch(ne){q.value=ne instanceof Error?ne.message:`${f}${t.failed}`}finally{b.value=""}}function di(f){return L(t.retry,()=>Y(O.jobRetry(f)))}function ci(f){return L(t.cancel,()=>Y(O.jobCancel(f)))}function fi(f){return L(t.detail,async()=>(ie.value=await z(O.job(f)),ie.value),!1)}function pi(){J.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},Ce.value=null}function vi(){return L(t.quickDraft,async()=>(Ce.value=await Y(O.quickProfileDraft,{questionnaire:{name:J.value.name,identity:J.value.identity,personality:Tt(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:Tt(J.value.clothing_keywords)}}),Ce.value),!1)}function gi(){var u;const f=(u=Ce.value)==null?void 0:u.profile_preview;return L(t.create,async()=>{const j=await Y(O.profiles,{name:(f==null?void 0:f.name)||J.value.name,description:J.value.description,base_prompt:f==null?void 0:f.base_prompt,appearance_prompt:f==null?void 0:f.appearance_prompt,style_prompt:f==null?void 0:f.style_prompt,negative_prompt:f==null?void 0:f.negative_prompt});return pi(),P.value=t.profileCreated,j})}function hi(f){return L(t.delete,async()=>{const u=await Xe(O.profile(f),{method:"DELETE"});return P.value=t.profileDeleted,u})}function Qn(){ae.value={profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}}function _i(f){ae.value={profile_id:f.profile_id,name:f.name,description:f.description??"",base_prompt:f.base_prompt??"",appearance_prompt:f.appearance_prompt??"",style_prompt:f.style_prompt??"",negative_prompt:f.negative_prompt??"",default_model_route:f.default_model_route??""}}function mi(){return ae.value.profile_id?L(t.update,async()=>{const f=await Xe(O.profile(ae.value.profile_id),{method:"PUT",body:{name:ae.value.name,description:ae.value.description||void 0,base_prompt:ae.value.base_prompt||void 0,appearance_prompt:ae.value.appearance_prompt||void 0,style_prompt:ae.value.style_prompt||void 0,negative_prompt:ae.value.negative_prompt||void 0,default_model_route:ae.value.default_model_route||void 0}});return Qn(),P.value=t.profileUpdated,f}):Promise.resolve()}function yi(){const f=Z.value;return f?L(t.create,async()=>{const u=await Y(O.profileWorkflows(f),{display_name:ot.value.display_name,workflow_type:ot.value.workflow_type});return ot.value.display_name="",_.value=u,P.value=t.workflowCreated,u}):Promise.resolve()}function bi(f){return L(t.start,()=>Y(O.workflowStart(f)))}function wi(f){return L(t.cancel,()=>Y(O.workflowCancel(f)))}function ki(f){return L(t.archive,()=>Y(O.workflowArchive(f)))}function xi(){var u;const f=(u=_.value)==null?void 0:u.workflow;return!f||!Dt.value.branch_name?Promise.resolve():L(t.branches,async()=>{const j=await Y(O.workflowBranches(f.workflow_id),{branch_name:Dt.value.branch_name,base_branch_name:f.current_branch,base_node_id:$.value||f.current_node_id,copy_nodes:!0});return Dt.value.branch_name="",await Ge(),P.value=t.branchCreated,j},!1)}function Ci(f){var j;const u=(j=_.value)==null?void 0:j.workflow.workflow_id;return u?L(t.switchBranch,async()=>{const ne=await Y(O.workflowSwitchBranch(u),{branch_name:f});return await Ge(),ne},!1):Promise.resolve()}function on(){G.value={node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}}function Si(f){G.value={node_id:f.node_id,node_key:f.node_key,title:f.title,description:f.description??"",node_type:f.node_type,status:f.status,prompt:f.prompt??"",negative_prompt:f.negative_prompt??"",model_route:f.model_route??""}}function Pi(){var j;const f=(j=_.value)==null?void 0:j.workflow.workflow_id;if(!f||!G.value.node_key||!G.value.title)return Promise.resolve();const u={node_key:G.value.node_key,title:G.value.title,description:G.value.description||void 0,node_type:G.value.node_type||"generation",status:G.value.status||"pending",prompt:G.value.prompt||void 0,negative_prompt:G.value.negative_prompt||void 0,model_route:G.value.model_route||void 0};return G.value.node_id?L(t.update,async()=>{const ne=await Xe(O.node(G.value.node_id),{method:"PUT",body:u});return on(),await Ge(),P.value=t.nodeUpdated,ne},!1):L(t.create,async()=>{const ne=await Y(O.workflowNodes(f),u);return on(),await Ge(),P.value=t.nodeCreated,ne},!1)}function Di(){var u;const f=(u=_.value)==null?void 0:u.workflow.workflow_id;return f?L(t.review,async()=>(M.value=await z(O.workflowReview(f)),M.value),!1):Promise.resolve()}function Ei(){const f=$.value;return f?L(t.review,async()=>(M.value=await z(O.nodeReview(f)),M.value),!1):Promise.resolve()}function Ti(){const f=$.value;return f?L(t.generate,async()=>(N.value=await Y(O.nodeGenerate(f),{model_route:$e.value.model_route||void 0,prompt:$e.value.prompt||void 0,negative_prompt:$e.value.negative_prompt||void 0}),await Ge(),P.value=t.generationQueued,N.value),!1):Promise.resolve()}function Ii(f){return L(t.retry,async()=>{const u=await Y(O.nodeRetry(f));return await Ge(),P.value=t.nodeQueued,u},!1)}function Oi(f){return L(t.complete,async()=>{const u=await Y(O.nodeComplete(f));return await Ge(),P.value=t.nodeCompleted,u},!1)}function Ai(f){const u=$.value;return u?L(t.select,async()=>{const j=await Y(O.nodeSelectImage(u),{image_id:f});return await Ge(),j},!1):Promise.resolve()}function Ui(f){const u=$.value;return u?L(t.adopt,async()=>{var ne;const j=await Y(O.nodeAdoptImage(u),{image_id:f,title:(ne=Je.value)==null?void 0:ne.title});return await Ge(),j},!1):Promise.resolve()}function Mi(f){return L(t.unselect,async()=>{const u=await Y(O.imageUnselect(f));return await Ge(),u},!1)}function $i(f){return L(t.archive,async()=>{const u=await Y(O.imageArchive(f));return await Ge(),P.value=t.imageArchived,u},!1)}function Ri(f){return L(t.delete,async()=>{const u=await Xe(O.image(f),{method:"DELETE"});return await Ge(),P.value=t.imageDeleted,u},!1)}function Vi(){return L(t.moveFailed,()=>Y(O.jobDeadLetterMoveFailed,{limit:20}))}function Bi(){return L(t.retryDead,()=>Y(O.jobDeadLetterRetry,{limit:20}))}function Li(){var u;const f=((u=Be.value[0])==null?void 0:u.dialect)??"unknown";return L(t.safeProbe,()=>Y(O.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:f,capabilities:{supports:["text_to_image"]}}))}function Fi(){var u;const f=((u=Be.value[0])==null?void 0:u.dialect)??"unknown";return L(t.probeProvider,()=>Y(O.apiDiscoveryProbeProvider,{provider_id:x.value.provider_id||"local-preview",model_id:x.value.model_id||"metadata-only",dialect:f,capabilities:{supports:Tt(x.value.required_capabilities)}}))}function Ni(){return L(t.validatePlan,async()=>(B.value=await Y(O.apiDiscoveryValidateRenderPlan,{provider_id:x.value.provider_id,model_id:x.value.model_id,required_capabilities:Tt(x.value.required_capabilities)}),B.value),!1)}function sn(f,u){return L(t.discovery,()=>Y(O.apiDiscoveryManualOverride,{provider_id:f.provider_id,model_id:f.model_id,dialect:f.dialect,status:u,capabilities:f.capabilities}))}function ji(){const f=Z.value;return f?L(t.matchWardrobe,async()=>(He.value=await Y(O.wardrobeMatch(f),{tags:["daily"]}),He.value),!1):Promise.resolve()}function Wi(){E.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function Hi(){const f=Z.value;return f?L(t.importToWardrobe,async()=>{const u=await Y(O.wardrobeImportMaterial(f),{material_id:E.value.material_id,wardrobe_category:E.value.wardrobe_category,tags:Tt(E.value.tags),season:E.value.season||void 0,style:E.value.style||void 0});return Wi(),P.value=t.wardrobeImported,u}):Promise.resolve()}function Ki(f){const u=Z.value;return u?L(t.delete,async()=>{const j=await Xe(O.wardrobeItem(u,f),{method:"DELETE"});return P.value=t.wardrobeDeleted,j}):Promise.resolve()}function qi(){const f=Z.value;return f?L(t.dailyOutfit,async()=>(I.value=await Y(O.privateCompanionDailyOutfit,{profile_id:f,categories:Tt(T.value.categories),mood:T.value.mood,weather:T.value.weather,keywords:Tt(T.value.keywords),request_source:"astrbot_plugin_private_companion"}),P.value=t.outfitGenerated,I.value),!1):Promise.resolve()}function Ji(){return L(t.reload,async()=>{var u;const f=await Y(O.settingsReload);return X.value={config_path:((u=X.value)==null?void 0:u.config_path)??"***PATH***",config:f.config},jt(f.config),f},!1)}function Gi(){return L(t.exportSettings,async()=>(le.value=await z(O.settingsExport),le.value),!1)}function jt(f=(u=>(u=X.value)==null?void 0:u.config)()??{}){St.value=JSON.stringify(f,null,2),Fe.value=null,nt.value=null}function rn(){try{const f=JSON.parse(St.value);if(!f||Array.isArray(f)||typeof f!="object")throw new Error(t.settingsDraftInvalid);return f}catch(f){throw new Error(f instanceof Error?f.message:t.settingsDraftInvalid)}}function zi(){try{const f=JSON.parse(Pt.value);if(!f||Array.isArray(f)||typeof f!="object")throw new Error(t.importDraftInvalid);return f}catch(f){throw new Error(f instanceof Error?f.message:t.importDraftInvalid)}}function Yi(){return L(t.validate,async()=>(Fe.value=await Y(O.settingsValidate,{config:rn()}),Fe.value),!1)}function Qi(){return L(t.diff,async()=>(nt.value=await Y(O.settingsDiff,{config:rn()}),nt.value),!1)}function Xi(){return L(t.save,async()=>{var u;const f=await Y(O.settingsSave,{config:rn()});return X.value={config_path:((u=X.value)==null?void 0:u.config_path)??"***PATH***",config:f.config},jt(f.config),P.value=t.settingsSaved,f},!1)}function Zi(){return L(t.importSettings,async()=>{var u;const f=await Y(O.settingsImport,{config:zi()});return X.value={config_path:((u=X.value)==null?void 0:u.config_path)??"***PATH***",config:f.config},jt(f.config),Pt.value="",P.value=t.importDone,f},!1)}function Xn(){return L(t.loadSnapshots,async()=>(be.value=await z(O.settingsSnapshots,{limit:20}),re.value=be.value[0]??null,be.value),!1)}function er(f){return L(t.loadSnapshot,async()=>(re.value=await z(O.settingsSnapshot(f)),re.value),!1)}function tr(f){return L(t.rollback,async()=>{var j;const u=await Y(O.settingsRollback,{snapshot_id:f});return X.value={config_path:((j=X.value)==null?void 0:j.config_path)??"***PATH***",config:u.config},jt(u.config),await Xn(),P.value=t.rollbackDone,u},!1)}function lr(){var u,j;const f=(j=(u=xe.value)==null?void 0:u.items.find(ne=>{var ke;return(ke=ne.image_uri)==null?void 0:ke.startsWith("storage://")}))==null?void 0:j.image_uri;return f?L(t.signMaterial,async()=>(Le.value=await z(O.mediaSign,{uri:f}),Le.value),!1):(P.value=t.noSignableMaterial,Promise.resolve())}function nr(f){return f!=null&&f.startsWith("storage://")?L(t.signMaterial,async()=>(Le.value=await z(O.mediaSign,{uri:f}),Le.value),!1):(P.value=t.noSignableMaterial,Promise.resolve())}function kl(){w.value={category_id:"",name:"",category_type:"material",sort_order:0}}function or(f){w.value={category_id:f.category_id,name:f.name,category_type:f.category_type,sort_order:f.sort_order}}function sr(){const f={name:w.value.name,category_type:w.value.category_type,sort_order:Number(w.value.sort_order)||0};return w.value.category_id?L(t.update,async()=>{const u=await Xe(O.materialCategory(w.value.category_id),{method:"PUT",body:f});return kl(),P.value=t.categoryUpdated,u}):L(t.create,async()=>{const u=await Y(O.materialCategories,f);return kl(),P.value=t.categoryCreated,u})}function ir(f){return L(t.delete,async()=>{const u=await Xe(O.materialCategory(f),{method:"DELETE"});return w.value.category_id===f&&kl(),P.value=t.categoryDeleted,u})}function an(){y.value={material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}}function rr(){const f={display_name:y.value.display_name,image_uri:y.value.image_uri||void 0,thumbnail_uri:y.value.image_uri||void 0,category_id:y.value.category_id||void 0,tags:Tt(y.value.tags),prompt:y.value.prompt||void 0,negative_prompt:y.value.negative_prompt||void 0,recognition_status:y.value.image_uri?"pending_recognition":"pending_upload"};return y.value.material_id?L(t.update,async()=>{const u=await Xe(O.material(y.value.material_id),{method:"PUT",body:f});return an(),P.value=t.materialUpdated,u}):L(t.create,async()=>{const u=await Y(O.materials,f);return an(),P.value=t.materialCreated,u})}function ar(f){y.value={material_id:f.material_id,display_name:f.display_name,image_uri:f.image_uri??"",tags:f.tags.join(", "),category_id:f.category_id??"",prompt:f.prompt??"",negative_prompt:f.negative_prompt??""}}function Zn(){k.value={display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}}function ur(){return L(t.upload,async()=>{const f=await Y(O.materialUpload,{display_name:k.value.display_name||void 0,filename:k.value.filename||void 0,content_type:k.value.content_type||void 0,image_uri:k.value.image_uri,category_id:k.value.category_id||void 0});return Zn(),P.value=t.materialUploaded,f})}function dr(f){return L(t.recognize,()=>Y(O.materialRecognize(f)))}function cr(f){return L(t.confirm,()=>Y(O.materialConfirm(f.material_id),{display_name:f.display_name,prompt:f.prompt,negative_prompt:f.negative_prompt,tags:f.tags}))}function fr(f){return L(t.archive,async()=>{const u=await Xe(O.material(f),{method:"DELETE"});return P.value=t.materialArchived,u})}function Tt(f){return f.split(",").map(u=>u.trim()).filter(Boolean)}function un(f=0){return f<1024?`${f} B`:f<1024*1024?`${(f/1024).toFixed(1)} KB`:f<1024*1024*1024?`${(f/1024/1024).toFixed(1)} MB`:`${(f/1024/1024/1024).toFixed(1)} GB`}function eo(f){var u,j;return((j=(u=F.value)==null?void 0:u.roots.find(ne=>ne.uri_prefix===f))==null?void 0:j.bytes)??0}return(f,u)=>{var j,ne,ke,ze,xl,Xt,Cl,Sl,Pl,Dl,El,to,lo,no,oo,so,io,ro,ao,uo,co,fo,po,vo,go,ho;return S(),D("main",Hu,[n("aside",Ku,[n("div",qu,[n("strong",null,a(((j=i.value)==null?void 0:j.display_name)??"ImageStudio"),1),n("span",null,a(((ne=i.value)==null?void 0:ne.dashboard_user)??"AstrBot"),1)]),n("nav",null,[(S(),D(Q,null,ce(l,r=>n("button",{key:r.key,type:"button",class:Yl({active:s.value===r.key}),onClick:oe=>s.value=r.key},a(r.label),11,Ju)),64))])]),n("section",Gu,[n("header",zu,[n("div",null,[n("h1",null,a(yl.value),1),n("p",null,a(((ke=d.value)==null?void 0:ke.plugin_status)??"loading")+" / "+a(P.value||t.waiting),1)]),n("div",Yu,[n("button",{type:"button",disabled:!!b.value,onClick:Re},a(b.value||t.refresh),9,Qu)])]),q.value?(S(),D("section",Xu,a(q.value),1)):V.value?(S(),D("section",Zu,a(t.loading),1)):(S(),D(Q,{key:2},[s.value==="dashboard"?(S(),D("section",ed,[n("article",null,[n("span",null,a(t.profiles),1),n("strong",null,a(((ze=d.value)==null?void 0:ze.active_profiles)??0),1)]),n("article",null,[n("span",null,a(t.jobs),1),n("strong",null,a(me.value),1)]),n("article",null,[n("span",null,a(t.materials),1),n("strong",null,a(((xl=xe.value)==null?void 0:xl.total)??0),1)]),n("article",null,[n("span",null,a(t.storage),1),n("strong",null,a(un(((Xt=F.value)==null?void 0:Xt.total_bytes)??((Cl=d.value)==null?void 0:Cl.storage.total_bytes))),1)])])):H("",!0),s.value==="profiles"?(S(),D("section",td,[n("header",null,[n("h2",null,a(t.profileList),1),n("span",null,a(((Sl=c.value)==null?void 0:Sl.total)??0),1)]),n("div",ld,[n("label",null,[n("span",null,a(t.name),1),A(n("input",{"onUpdate:modelValue":u[0]||(u[0]=r=>J.value.name=r),type:"text"},null,512),[[U,J.value.name]])]),n("label",null,[n("span",null,a(t.identity),1),A(n("input",{"onUpdate:modelValue":u[1]||(u[1]=r=>J.value.identity=r),type:"text"},null,512),[[U,J.value.identity]])]),n("label",null,[n("span",null,a(t.personality),1),A(n("input",{"onUpdate:modelValue":u[2]||(u[2]=r=>J.value.personality=r),type:"text",placeholder:"calm, brave"},null,512),[[U,J.value.personality]])]),n("label",null,[n("span",null,a(t.hairColor),1),A(n("input",{"onUpdate:modelValue":u[3]||(u[3]=r=>J.value.hair_color=r),type:"text"},null,512),[[U,J.value.hair_color]])]),n("label",null,[n("span",null,a(t.hairstyle),1),A(n("input",{"onUpdate:modelValue":u[4]||(u[4]=r=>J.value.hairstyle=r),type:"text"},null,512),[[U,J.value.hairstyle]])]),n("label",null,[n("span",null,a(t.eyeColor),1),A(n("input",{"onUpdate:modelValue":u[5]||(u[5]=r=>J.value.eye_color=r),type:"text"},null,512),[[U,J.value.eye_color]])]),n("label",null,[n("span",null,a(t.stylePrompt),1),A(n("input",{"onUpdate:modelValue":u[6]||(u[6]=r=>J.value.style=r),type:"text"},null,512),[[U,J.value.style]])]),n("label",null,[n("span",null,a(t.tags),1),A(n("input",{"onUpdate:modelValue":u[7]||(u[7]=r=>J.value.clothing_keywords=r),type:"text",placeholder:"white blouse, ribbon"},null,512),[[U,J.value.clothing_keywords]])]),n("label",nd,[n("span",null,a(t.description),1),A(n("input",{"onUpdate:modelValue":u[8]||(u[8]=r=>J.value.description=r),type:"text"},null,512),[[U,J.value.description]])]),n("button",{type:"button",disabled:!!b.value||!J.value.name,onClick:vi},a(t.quickDraft),9,od),n("button",{type:"button",disabled:!!b.value||!J.value.name,onClick:gi},a(t.create),9,sd)]),Ce.value?(S(),D("pre",id,a(JSON.stringify(Ce.value,null,2)),1)):H("",!0),ae.value.profile_id?(S(),D("div",rd,[n("label",null,[n("span",null,a(t.name),1),A(n("input",{"onUpdate:modelValue":u[9]||(u[9]=r=>ae.value.name=r),type:"text"},null,512),[[U,ae.value.name]])]),n("label",null,[n("span",null,a(t.provider),1),A(n("input",{"onUpdate:modelValue":u[10]||(u[10]=r=>ae.value.default_model_route=r),type:"text"},null,512),[[U,ae.value.default_model_route]])]),n("label",ad,[n("span",null,a(t.description),1),A(n("input",{"onUpdate:modelValue":u[11]||(u[11]=r=>ae.value.description=r),type:"text"},null,512),[[U,ae.value.description]])]),n("label",ud,[n("span",null,a(t.basePrompt),1),A(n("input",{"onUpdate:modelValue":u[12]||(u[12]=r=>ae.value.base_prompt=r),type:"text"},null,512),[[U,ae.value.base_prompt]])]),n("label",dd,[n("span",null,a(t.appearancePrompt),1),A(n("input",{"onUpdate:modelValue":u[13]||(u[13]=r=>ae.value.appearance_prompt=r),type:"text"},null,512),[[U,ae.value.appearance_prompt]])]),n("label",cd,[n("span",null,a(t.stylePrompt),1),A(n("input",{"onUpdate:modelValue":u[14]||(u[14]=r=>ae.value.style_prompt=r),type:"text"},null,512),[[U,ae.value.style_prompt]])]),n("label",fd,[n("span",null,a(t.negativePrompt),1),A(n("input",{"onUpdate:modelValue":u[15]||(u[15]=r=>ae.value.negative_prompt=r),type:"text"},null,512),[[U,ae.value.negative_prompt]])]),n("button",{type:"button",disabled:!!b.value||!ae.value.name,onClick:mi},a(t.update),9,pd),n("button",{type:"button",disabled:!!b.value,onClick:Qn},a(t.reset),9,vd)])):H("",!0),n("ul",null,[(S(!0),D(Q,null,ce(((Pl=c.value)==null?void 0:Pl.items)??[],r=>(S(),D("li",{key:r.profile_id},[n("div",null,[n("strong",null,a(r.name),1),n("small",null,a(r.profile_id),1)]),n("div",gd,[n("span",hd,a(r.status),1),n("button",{type:"button",disabled:!!b.value,onClick:oe=>_i(r)},a(t.edit),9,_d),n("button",{type:"button",disabled:!!b.value,onClick:oe=>hi(r.profile_id)},a(t.delete),9,md)])]))),128)),(Dl=c.value)!=null&&Dl.items.length?H("",!0):(S(),D("li",yd,a(t.emptyProfiles),1))])])):H("",!0),s.value==="workflows"?(S(),D("section",bd,[n("div",wd,[n("header",null,[n("h2",null,a(se.value),1),n("span",null,a(v.value.length),1)]),n("div",kd,[n("label",null,[n("span",null,a(t.name),1),A(n("input",{"onUpdate:modelValue":u[16]||(u[16]=r=>ot.value.display_name=r),type:"text"},null,512),[[U,ot.value.display_name]])]),n("label",null,[n("span",null,a(t.workflowType),1),A(n("select",{"onUpdate:modelValue":u[17]||(u[17]=r=>ot.value.workflow_type=r)},[...u[81]||(u[81]=[n("option",{value:"single_image"},"single_image",-1),n("option",{value:"character_gradual"},"character_gradual",-1),n("option",{value:"character_fast"},"character_fast",-1),n("option",{value:"quick_profile"},"quick_profile",-1)])],512),[[_t,ot.value.workflow_type]])]),n("button",{type:"button",disabled:!!b.value||!Z.value||!ot.value.display_name,onClick:yi},a(t.create),9,xd)]),n("ul",null,[(S(!0),D(Q,null,ce(v.value,r=>(S(),D("li",{key:r.workflow_id},[n("div",null,[n("strong",null,a(r.display_name),1),n("small",null,a(r.workflow_type)+" / "+a(r.workflow_id),1)]),n("div",Cd,[n("span",Sd,a(r.status),1),n("button",{type:"button",disabled:!!b.value,onClick:oe=>nn(r.workflow_id)},a(t.nodes),9,Pd),n("button",{type:"button",disabled:!!b.value,onClick:oe=>bi(r.workflow_id)},a(t.start),9,Dd),n("button",{type:"button",disabled:!!b.value,onClick:oe=>wi(r.workflow_id)},a(t.cancel),9,Ed),n("button",{type:"button",disabled:!!b.value,onClick:oe=>ki(r.workflow_id)},a(t.archive),9,Td)])]))),128)),v.value.length?H("",!0):(S(),D("li",Id,a(t.emptyWorkflows),1))]),_.value?(S(),D("section",Od,[n("header",null,[n("h2",null,a(t.branches),1),n("span",null,a(h.value.length),1)]),n("div",Ad,[n("label",null,[n("span",null,a(t.branchName),1),A(n("input",{"onUpdate:modelValue":u[18]||(u[18]=r=>Dt.value.branch_name=r),type:"text",placeholder:"alt_pose"},null,512),[[U,Dt.value.branch_name]])]),n("button",{type:"button",disabled:!!b.value||!Dt.value.branch_name,onClick:xi},a(t.create),9,Ud)]),n("ul",null,[(S(!0),D(Q,null,ce(h.value,r=>(S(),D("li",{key:r.branch_id},[n("div",null,[n("strong",null,a(r.branch_name),1),n("small",null,a(r.base_branch_name??"main")+" / "+a(r.status),1)]),n("button",{type:"button",disabled:!!b.value,onClick:oe=>Ci(r.branch_name)},a(t.switchBranch),9,Md)]))),128))])])):H("",!0)]),n("div",$d,[n("header",null,[n("h2",null,a(t.nodes),1),n("div",Rd,[n("span",null,a(((El=_.value)==null?void 0:El.workflow.current_branch)??"main"),1),n("button",{type:"button",disabled:!!b.value||!_.value,onClick:Di},a(t.review),9,Vd)])]),n("div",Bd,[n("label",null,[n("span",null,a(t.nodeKey),1),A(n("input",{"onUpdate:modelValue":u[19]||(u[19]=r=>G.value.node_key=r),type:"text"},null,512),[[U,G.value.node_key]])]),n("label",null,[n("span",null,a(t.nodeTitle),1),A(n("input",{"onUpdate:modelValue":u[20]||(u[20]=r=>G.value.title=r),type:"text"},null,512),[[U,G.value.title]])]),n("label",null,[n("span",null,a(t.nodeType),1),A(n("input",{"onUpdate:modelValue":u[21]||(u[21]=r=>G.value.node_type=r),type:"text"},null,512),[[U,G.value.node_type]])]),n("label",null,[n("span",null,a(t.status),1),A(n("input",{"onUpdate:modelValue":u[22]||(u[22]=r=>G.value.status=r),type:"text"},null,512),[[U,G.value.status]])]),n("label",Ld,[n("span",null,a(t.description),1),A(n("input",{"onUpdate:modelValue":u[23]||(u[23]=r=>G.value.description=r),type:"text"},null,512),[[U,G.value.description]])]),n("label",Fd,[n("span",null,a(t.prompt),1),A(n("input",{"onUpdate:modelValue":u[24]||(u[24]=r=>G.value.prompt=r),type:"text"},null,512),[[U,G.value.prompt]])]),n("label",Nd,[n("span",null,a(t.negativePrompt),1),A(n("input",{"onUpdate:modelValue":u[25]||(u[25]=r=>G.value.negative_prompt=r),type:"text"},null,512),[[U,G.value.negative_prompt]])]),n("label",null,[n("span",null,a(t.modelRoute),1),A(n("input",{"onUpdate:modelValue":u[26]||(u[26]=r=>G.value.model_route=r),type:"text"},null,512),[[U,G.value.model_route]])]),n("button",{type:"button",disabled:!!b.value||!G.value.node_key||!G.value.title,onClick:Pi},a(G.value.node_id?t.update:t.create),9,jd),n("button",{type:"button",disabled:!!b.value,onClick:on},a(t.reset),9,Wd)]),n("div",Hd,[n("label",null,[n("span",null,a(t.modelRoute),1),A(n("input",{"onUpdate:modelValue":u[27]||(u[27]=r=>$e.value.model_route=r),type:"text",placeholder:"image_low"},null,512),[[U,$e.value.model_route]])]),n("label",null,[n("span",null,a(t.prompt),1),A(n("input",{"onUpdate:modelValue":u[28]||(u[28]=r=>$e.value.prompt=r),type:"text"},null,512),[[U,$e.value.prompt]])]),n("label",Kd,[n("span",null,a(t.negativePrompt),1),A(n("input",{"onUpdate:modelValue":u[29]||(u[29]=r=>$e.value.negative_prompt=r),type:"text"},null,512),[[U,$e.value.negative_prompt]])]),n("button",{type:"button",disabled:!!b.value||!$.value,onClick:Ti},a(t.generate),9,qd),n("button",{type:"button",disabled:!!b.value||!$.value,onClick:Ei},a(t.review),9,Jd)]),n("ul",null,[(S(!0),D(Q,null,ce(((to=_.value)==null?void 0:to.nodes)??[],r=>(S(),D("li",{key:r.node_id},[n("div",null,[n("strong",null,a(r.title),1),n("small",null,a(r.node_key)+" / "+a(r.node_id),1)]),n("div",Gd,[n("span",null,a(r.branch_name),1),n("span",zd,a(r.status),1),n("button",{type:"button",disabled:!!b.value,onClick:oe=>Si(r)},a(t.edit),9,Yd),n("button",{type:"button",disabled:!!b.value,onClick:oe=>Ii(r.node_id)},a(t.retry),9,Qd),n("button",{type:"button",disabled:!!b.value,onClick:oe=>Oi(r.node_id)},a(t.complete),9,Xd),n("button",{type:"button",disabled:!!b.value,onClick:oe=>Yn(r.node_id)},a(t.images),9,Zd)])]))),128)),(lo=_.value)!=null&&lo.nodes.length?H("",!0):(S(),D("li",ec,a(t.emptyWorkflows),1))]),n("ul",null,[(S(!0),D(Q,null,ce(te.value,r=>(S(),D("li",{key:r.image_id},[n("div",null,[n("strong",null,a(r.image_id),1),n("small",null,a(r.thumbnail_uri??r.image_uri),1)]),n("div",tc,[r.is_selected?(S(),D("span",lc,a(t.select),1)):H("",!0),n("button",{type:"button",disabled:!!b.value||r.is_selected||r.is_archived,onClick:oe=>Ai(r.image_id)},a(t.select),9,nc),n("button",{type:"button",disabled:!!b.value||r.is_archived,onClick:oe=>Ui(r.image_id)},a(t.adopt),9,oc),n("button",{type:"button",disabled:!!b.value||!(r.thumbnail_uri??r.image_uri).startsWith("storage://"),onClick:oe=>nr(r.thumbnail_uri??r.image_uri)},a(t.signMaterial),9,sc),n("button",{type:"button",disabled:!!b.value||!r.is_selected,onClick:oe=>Mi(r.image_id)},a(t.unselect),9,ic),n("button",{type:"button",disabled:!!b.value||r.is_archived,onClick:oe=>$i(r.image_id)},a(t.archive),9,rc),n("button",{type:"button",disabled:!!b.value,onClick:oe=>Ri(r.image_id)},a(t.delete),9,ac)])]))),128)),te.value.length?H("",!0):(S(),D("li",uc,a(t.emptyImages),1))]),Le.value?(S(),D("pre",dc,a(JSON.stringify(Le.value,null,2)),1)):H("",!0),N.value?(S(),D("pre",cc,a(JSON.stringify(N.value,null,2)),1)):H("",!0),n("section",fc,[n("header",null,[n("h2",null,a(t.history),1),n("span",null,a(C.value.length),1)]),n("ul",null,[(S(!0),D(Q,null,ce(C.value,r=>(S(),D("li",{key:r.history_id},[n("div",null,[n("strong",null,a(r.action),1),n("small",null,a(r.title??r.node_id??r.workflow_id),1)]),n("span",null,a(r.branch_name),1)]))),128)),C.value.length?H("",!0):(S(),D("li",pc,a(t.emptyHistory),1))])]),M.value?(S(),D("section",vc,[n("header",null,[n("h2",null,a(t.reviewResult),1),n("span",null,a(M.value.passed?t.support:t.unsupported),1)]),n("pre",null,a(JSON.stringify(M.value,null,2)),1)])):H("",!0),_.value?(S(),D("pre",gc,a(JSON.stringify(_.value.workflow,null,2)),1)):H("",!0)])])):H("",!0),s.value==="materials"?(S(),D("section",hc,[n("div",_c,[n("header",null,[n("h2",null,a(t.materialCategories),1),n("span",null,a(ge.value.length),1)]),n("div",mc,[n("label",null,[n("span",null,a(t.name),1),A(n("input",{"onUpdate:modelValue":u[30]||(u[30]=r=>w.value.name=r),type:"text"},null,512),[[U,w.value.name]])]),n("label",null,[n("span",null,a(t.categoryType),1),A(n("input",{"onUpdate:modelValue":u[31]||(u[31]=r=>w.value.category_type=r),type:"text"},null,512),[[U,w.value.category_type]])]),n("label",null,[n("span",null,a(t.sortOrder),1),A(n("input",{"onUpdate:modelValue":u[32]||(u[32]=r=>w.value.sort_order=r),type:"number"},null,512),[[U,w.value.sort_order,void 0,{number:!0}]])]),n("button",{type:"button",disabled:!!b.value||!w.value.name,onClick:sr},a(w.value.category_id?t.update:t.create),9,yc),n("button",{type:"button",disabled:!!b.value,onClick:kl},a(t.reset),9,bc)]),n("ul",null,[(S(!0),D(Q,null,ce(ge.value,r=>(S(),D("li",{key:r.category_id},[n("div",null,[n("strong",null,a(r.name),1),n("small",null,a(r.category_type),1)]),n("div",wc,[n("span",null,a(r.sort_order),1),n("button",{type:"button",disabled:!!b.value,onClick:oe=>or(r)},a(t.edit),9,kc),n("button",{type:"button",disabled:!!b.value,onClick:oe=>ir(r.category_id)},a(t.delete),9,xc)])]))),128)),ge.value.length?H("",!0):(S(),D("li",Cc,a(t.emptyCategories),1))])]),n("div",Sc,[n("header",null,[n("h2",null,a(t.materialItems),1),n("div",Pc,[n("span",null,a(we.value)+" "+a(t.pendingConfirm),1),n("button",{type:"button",disabled:!!b.value,onClick:lr},a(t.signFirstImage),9,Dc)])]),n("div",Ec,[n("label",null,[n("span",null,a(t.name),1),A(n("input",{"onUpdate:modelValue":u[33]||(u[33]=r=>y.value.display_name=r),type:"text"},null,512),[[U,y.value.display_name]])]),n("label",null,[n("span",null,a(t.imageUri),1),A(n("input",{"onUpdate:modelValue":u[34]||(u[34]=r=>y.value.image_uri=r),type:"text",placeholder:"storage://materials/example.png"},null,512),[[U,y.value.image_uri]])]),n("label",null,[n("span",null,a(t.category),1),A(n("select",{"onUpdate:modelValue":u[35]||(u[35]=r=>y.value.category_id=r)},[n("option",Tc,a(t.allCategories),1),(S(!0),D(Q,null,ce(ge.value,r=>(S(),D("option",{key:r.category_id,value:r.category_id},a(r.name),9,Ic))),128))],512),[[_t,y.value.category_id]])]),n("label",null,[n("span",null,a(t.tags),1),A(n("input",{"onUpdate:modelValue":u[36]||(u[36]=r=>y.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[U,y.value.tags]])]),n("label",null,[n("span",null,a(t.prompt),1),A(n("input",{"onUpdate:modelValue":u[37]||(u[37]=r=>y.value.prompt=r),type:"text"},null,512),[[U,y.value.prompt]])]),n("label",null,[n("span",null,a(t.negativePrompt),1),A(n("input",{"onUpdate:modelValue":u[38]||(u[38]=r=>y.value.negative_prompt=r),type:"text"},null,512),[[U,y.value.negative_prompt]])]),n("button",{type:"button",disabled:!!b.value||!y.value.display_name,onClick:rr},a(y.value.material_id?t.update:t.create),9,Oc),n("button",{type:"button",disabled:!!b.value,onClick:an},a(t.reset),9,Ac)]),n("ul",null,[(S(!0),D(Q,null,ce(((no=xe.value)==null?void 0:no.items)??[],r=>(S(),D("li",{key:r.material_id},[n("div",null,[n("strong",null,a(r.display_name),1),n("small",null,a(r.image_uri??t.noImage),1)]),n("div",Uc,[n("span",Mc,a(r.recognition_status),1),n("button",{type:"button",disabled:!!b.value,onClick:oe=>ar(r)},a(t.edit),9,$c),n("button",{type:"button",disabled:!!b.value,onClick:oe=>dr(r.material_id)},a(t.recognize),9,Rc),n("button",{type:"button",disabled:!!b.value||r.recognition_status==="confirmed",onClick:oe=>cr(r)},a(t.confirm),9,Vc),n("button",{type:"button",disabled:!!b.value,onClick:oe=>fr(r.material_id)},a(t.archive),9,Bc)])]))),128)),(oo=xe.value)!=null&&oo.items.length?H("",!0):(S(),D("li",Lc,a(t.emptyMaterials),1))]),n("div",Fc,[n("label",null,[n("span",null,a(t.name),1),A(n("input",{"onUpdate:modelValue":u[39]||(u[39]=r=>k.value.display_name=r),type:"text"},null,512),[[U,k.value.display_name]])]),n("label",null,[n("span",null,a(t.filename),1),A(n("input",{"onUpdate:modelValue":u[40]||(u[40]=r=>k.value.filename=r),type:"text"},null,512),[[U,k.value.filename]])]),n("label",null,[n("span",null,a(t.contentType),1),A(n("input",{"onUpdate:modelValue":u[41]||(u[41]=r=>k.value.content_type=r),type:"text"},null,512),[[U,k.value.content_type]])]),n("label",null,[n("span",null,a(t.imageUri),1),A(n("input",{"onUpdate:modelValue":u[42]||(u[42]=r=>k.value.image_uri=r),type:"text",placeholder:"storage://materials/upload.png"},null,512),[[U,k.value.image_uri]])]),n("label",null,[n("span",null,a(t.category),1),A(n("select",{"onUpdate:modelValue":u[43]||(u[43]=r=>k.value.category_id=r)},[n("option",Nc,a(t.allCategories),1),(S(!0),D(Q,null,ce(ge.value,r=>(S(),D("option",{key:r.category_id,value:r.category_id},a(r.name),9,jc))),128))],512),[[_t,k.value.category_id]])]),n("button",{type:"button",disabled:!!b.value||!k.value.image_uri,onClick:ur},a(t.upload),9,Wc),n("button",{type:"button",disabled:!!b.value,onClick:Zn},a(t.reset),9,Hc)]),Le.value?(S(),D("pre",Kc,a(JSON.stringify(Le.value,null,2)),1)):H("",!0)])])):H("",!0),s.value==="wardrobe"?(S(),D("section",qc,[n("header",null,[n("h2",null,a(se.value),1),n("button",{type:"button",disabled:!Z.value||!!b.value,onClick:ji},a(t.match),9,Jc)]),n("div",Gc,[n("label",null,[n("span",null,a(t.selectMaterial),1),A(n("select",{"onUpdate:modelValue":u[44]||(u[44]=r=>E.value.material_id=r)},[n("option",zc,a(t.selectMaterial),1),(S(!0),D(Q,null,ce(qe.value,r=>(S(),D("option",{key:r.material_id,value:r.material_id},a(r.display_name),9,Yc))),128))],512),[[_t,E.value.material_id]])]),n("label",null,[n("span",null,a(t.wardrobeCategory),1),A(n("input",{"onUpdate:modelValue":u[45]||(u[45]=r=>E.value.wardrobe_category=r),type:"text"},null,512),[[U,E.value.wardrobe_category]])]),n("label",null,[n("span",null,a(t.tags),1),A(n("input",{"onUpdate:modelValue":u[46]||(u[46]=r=>E.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[U,E.value.tags]])]),n("label",null,[n("span",null,a(t.season),1),A(n("input",{"onUpdate:modelValue":u[47]||(u[47]=r=>E.value.season=r),type:"text"},null,512),[[U,E.value.season]])]),n("label",null,[n("span",null,a(t.style),1),A(n("input",{"onUpdate:modelValue":u[48]||(u[48]=r=>E.value.style=r),type:"text"},null,512),[[U,E.value.style]])]),n("button",{type:"button",disabled:!!b.value||!Z.value||!E.value.material_id||!E.value.wardrobe_category,onClick:Hi},a(t.importToWardrobe),9,Qc)]),n("ul",null,[(S(!0),D(Q,null,ce(Ie.value,r=>(S(),D("li",{key:r.wardrobe_item_id},[n("div",null,[n("strong",null,a(r.wardrobe_category),1),n("small",null,a(r.material_id)+" / "+a(r.tags.join(", ")||t.noTags),1)]),n("div",Xc,[n("span",null,a(r.usage_count),1),n("button",{type:"button",disabled:!!b.value,onClick:oe=>Ki(r.wardrobe_item_id)},a(t.delete),9,Zc)])]))),128)),Ie.value.length?H("",!0):(S(),D("li",ef,a(t.emptyWardrobe),1))]),He.value?(S(),D("pre",tf,a(JSON.stringify(He.value,null,2)),1)):H("",!0),n("div",lf,[n("label",null,[n("span",null,a(t.categories),1),A(n("input",{"onUpdate:modelValue":u[49]||(u[49]=r=>T.value.categories=r),type:"text"},null,512),[[U,T.value.categories]])]),n("label",null,[n("span",null,a(t.mood),1),A(n("input",{"onUpdate:modelValue":u[50]||(u[50]=r=>T.value.mood=r),type:"text"},null,512),[[U,T.value.mood]])]),n("label",null,[n("span",null,a(t.weather),1),A(n("input",{"onUpdate:modelValue":u[51]||(u[51]=r=>T.value.weather=r),type:"text"},null,512),[[U,T.value.weather]])]),n("label",null,[n("span",null,a(t.keywords),1),A(n("input",{"onUpdate:modelValue":u[52]||(u[52]=r=>T.value.keywords=r),type:"text"},null,512),[[U,T.value.keywords]])]),n("button",{type:"button",disabled:!!b.value||!Z.value,onClick:qi},a(t.dailyOutfit),9,nf)]),I.value?(S(),D("pre",of,a(JSON.stringify(I.value,null,2)),1)):H("",!0)])):H("",!0),s.value==="jobs"?(S(),D("section",sf,[n("header",null,[n("h2",null,a(t.jobs),1),n("div",rf,[n("button",{type:"button",disabled:!!b.value,onClick:Vi},a(t.moveFailed),9,af),n("button",{type:"button",disabled:!!b.value,onClick:Bi},a(t.retryDead),9,uf)])]),n("div",df,[n("label",null,[u[82]||(u[82]=n("span",null,"Status",-1)),A(n("select",{"onUpdate:modelValue":u[53]||(u[53]=r=>Ne.value.status=r)},[n("option",cf,a(t.allStatuses),1),(S(),D(Q,null,ce(Et,r=>n("option",{key:r,value:r},a(r),9,ff)),64))],512),[[_t,Ne.value.status]])]),n("label",null,[n("span",null,a(t.profiles),1),A(n("select",{"onUpdate:modelValue":u[54]||(u[54]=r=>Ne.value.profile_id=r)},[n("option",pf,a(t.allProfiles),1),(S(!0),D(Q,null,ce(((so=c.value)==null?void 0:so.items)??[],r=>(S(),D("option",{key:r.profile_id,value:r.profile_id},a(r.name),9,vf))),128))],512),[[_t,Ne.value.profile_id]])]),n("label",null,[n("span",null,a(t.workflows),1),A(n("select",{"onUpdate:modelValue":u[55]||(u[55]=r=>Ne.value.workflow_id=r)},[n("option",gf,a(t.allWorkflows),1),(S(!0),D(Q,null,ce(v.value,r=>(S(),D("option",{key:r.workflow_id,value:r.workflow_id},a(r.display_name),9,hf))),128))],512),[[_t,Ne.value.workflow_id]])]),n("button",{type:"button",disabled:!!b.value,onClick:ii},a(t.filter),9,_f)]),n("ul",null,[(S(!0),D(Q,null,ce(((io=_e.value)==null?void 0:io.items)??[],r=>(S(),D("li",{key:r.task_id},[n("div",null,[n("strong",null,a(r.task_id),1),n("small",null,a(r.task_type)+" / "+a(r.progress)+"%",1)]),n("div",mf,[n("span",yf,a(r.status),1),["failed","dead_letter","cancelled"].includes(r.status)?(S(),D("button",{key:0,type:"button",onClick:oe=>di(r.task_id)},a(t.retry),9,bf)):H("",!0),["completed","succeeded","cancelled"].includes(r.status)?H("",!0):(S(),D("button",{key:1,type:"button",onClick:oe=>ci(r.task_id)},a(t.cancel),9,wf)),n("button",{type:"button",disabled:!!b.value,onClick:oe=>fi(r.task_id)},a(t.detail),9,kf)])]))),128)),(ro=_e.value)!=null&&ro.items.length?H("",!0):(S(),D("li",xf,a(t.emptyJobs),1))]),ie.value?(S(),D("section",Cf,[n("header",null,[n("h2",null,a(t.jobDetail),1),n("span",null,a(ie.value.status),1)]),n("pre",null,a(JSON.stringify(ie.value,null,2)),1)])):H("",!0)])):H("",!0),s.value==="discovery"?(S(),D("section",Sf,[n("div",Pf,[n("header",null,[n("h2",null,a(t.dialects),1),n("div",Df,[n("button",{type:"button",disabled:!!b.value,onClick:Fi},a(t.probeProvider),9,Ef),n("button",{type:"button",disabled:!!b.value,onClick:Li},a(t.safeProbe),9,Tf)])]),n("ul",null,[(S(!0),D(Q,null,ce(Be.value,r=>(S(),D("li",{key:r.dialect},[n("div",null,[n("strong",null,a(r.label),1),n("small",null,a(r.capabilities.join(", ")||t.unconfirmed),1)]),n("span",null,a(r.dialect),1)]))),128))]),n("div",If,[n("label",null,[n("span",null,a(t.provider),1),A(n("input",{"onUpdate:modelValue":u[56]||(u[56]=r=>x.value.provider_id=r),type:"text",placeholder:"local-preview"},null,512),[[U,x.value.provider_id]])]),n("label",null,[n("span",null,a(t.model),1),A(n("input",{"onUpdate:modelValue":u[57]||(u[57]=r=>x.value.model_id=r),type:"text",placeholder:"metadata-only"},null,512),[[U,x.value.model_id]])]),n("label",null,[n("span",null,a(t.requiredCapabilities),1),A(n("input",{"onUpdate:modelValue":u[58]||(u[58]=r=>x.value.required_capabilities=r),type:"text",placeholder:"text_to_image"},null,512),[[U,x.value.required_capabilities]])]),n("button",{type:"button",disabled:!!b.value||!x.value.provider_id||!x.value.model_id,onClick:Ni},a(t.validatePlan),9,Of)]),B.value?(S(),D("pre",Af,a(JSON.stringify(B.value,null,2)),1)):H("",!0)]),n("div",Uf,[n("header",null,[n("h2",null,a(t.capabilityProfiles),1),n("span",null,a(gt.value.length),1)]),n("ul",null,[(S(!0),D(Q,null,ce(gt.value,r=>(S(),D("li",{key:r.capability_profile_id},[n("div",null,[n("strong",null,a(r.provider_id)+" / "+a(r.model_id),1),n("small",null,a(r.dialect),1)]),n("div",Mf,[n("span",$f,a(r.status),1),n("button",{type:"button",disabled:!!b.value,onClick:oe=>sn(r,"confirmed_supported")},a(t.support),9,Rf),n("button",{type:"button",disabled:!!b.value,onClick:oe=>sn(r,"confirmed_unsupported")},a(t.unsupported),9,Vf),n("button",{type:"button",disabled:!!b.value,onClick:oe=>sn(r,"unconfirmed")},a(t.unconfirmed),9,Bf)])]))),128)),gt.value.length?H("",!0):(S(),D("li",Lf,a(t.emptyCapabilities),1))])])])):H("",!0),s.value==="logs"?(S(),D("section",Ff,[n("div",Nf,[n("div",jf,[n("header",null,[n("h2",null,a(t.generationLogs),1),n("span",null,a(pe.value.generation.length),1)]),n("div",Wf,[n("label",null,[n("span",null,a(t.status),1),A(n("select",{"onUpdate:modelValue":u[59]||(u[59]=r=>je.value.status=r)},[n("option",Hf,a(t.allStatuses),1),(S(),D(Q,null,ce(Et,r=>n("option",{key:`gen-${r}`,value:r},a(r),9,Kf)),64))],512),[[_t,je.value.status]])]),n("label",null,[u[83]||(u[83]=n("span",null,"ProfileId",-1)),A(n("input",{"onUpdate:modelValue":u[60]||(u[60]=r=>je.value.profile_id=r),type:"text"},null,512),[[U,je.value.profile_id]])]),n("label",null,[u[84]||(u[84]=n("span",null,"WorkflowId",-1)),A(n("input",{"onUpdate:modelValue":u[61]||(u[61]=r=>je.value.workflow_id=r),type:"text"},null,512),[[U,je.value.workflow_id]])]),n("label",null,[u[85]||(u[85]=n("span",null,"NodeId",-1)),A(n("input",{"onUpdate:modelValue":u[62]||(u[62]=r=>je.value.node_id=r),type:"text"},null,512),[[U,je.value.node_id]])]),n("button",{type:"button",disabled:!!b.value,onClick:wl},a(t.applyFilters),9,qf)]),n("ul",null,[(S(!0),D(Q,null,ce(pe.value.generation,r=>(S(),D("li",{key:r.task_id},[n("div",null,[n("strong",null,a(r.task_id),1),n("small",null,a(r.status)+" / "+a(r.progress)+"%",1)]),n("span",null,a(r.created_at),1)]))),128)),pe.value.generation.length?H("",!0):(S(),D("li",Jf,a(t.emptyGenerationLogs),1))])]),n("div",Gf,[n("header",null,[n("h2",null,a(t.errorLogs),1),n("span",null,a(pe.value.errors.length),1)]),n("div",zf,[n("label",null,[u[87]||(u[87]=n("span",null,"Source",-1)),A(n("select",{"onUpdate:modelValue":u[63]||(u[63]=r=>Ut.value.source=r)},[...u[86]||(u[86]=[n("option",{value:""},"All",-1),n("option",{value:"generation_task"},"generation_task",-1),n("option",{value:"integration"},"integration",-1)])],512),[[_t,Ut.value.source]])]),n("label",null,[n("span",null,a(t.status),1),A(n("input",{"onUpdate:modelValue":u[64]||(u[64]=r=>Ut.value.status=r),type:"text"},null,512),[[U,Ut.value.status]])]),n("button",{type:"button",disabled:!!b.value,onClick:li},a(t.applyFilters),9,Yf)]),n("ul",null,[(S(!0),D(Q,null,ce(pe.value.errors,r=>(S(),D("li",{key:`${r.source}-${r.id}`},[n("div",null,[n("strong",null,a(r.source),1),n("small",null,a(r.error_message??t.noErrorDetail),1)]),n("span",Qf,a(r.status),1)]))),128)),pe.value.errors.length?H("",!0):(S(),D("li",Xf,a(t.emptyErrors),1))])])]),n("div",Zf,[n("div",ep,[n("header",null,[n("h2",null,a(t.workflowLogs),1),n("span",null,a(pe.value.workflows.length),1)]),n("div",tp,[n("label",null,[u[88]||(u[88]=n("span",null,"WorkflowId",-1)),A(n("input",{"onUpdate:modelValue":u[65]||(u[65]=r=>De.value.workflow_id=r),type:"text"},null,512),[[U,De.value.workflow_id]])]),n("label",null,[u[89]||(u[89]=n("span",null,"Action",-1)),A(n("input",{"onUpdate:modelValue":u[66]||(u[66]=r=>De.value.action=r),type:"text"},null,512),[[U,De.value.action]])]),n("label",null,[u[90]||(u[90]=n("span",null,"NodeId",-1)),A(n("input",{"onUpdate:modelValue":u[67]||(u[67]=r=>De.value.node_id=r),type:"text"},null,512),[[U,De.value.node_id]])]),n("label",null,[n("span",null,a(t.currentBranch),1),A(n("input",{"onUpdate:modelValue":u[68]||(u[68]=r=>De.value.branch_name=r),type:"text"},null,512),[[U,De.value.branch_name]])]),n("button",{type:"button",disabled:!!b.value,onClick:ti},a(t.applyFilters),9,lp)]),n("ul",null,[(S(!0),D(Q,null,ce(pe.value.workflows,r=>(S(),D("li",{key:r.history_id},[n("div",null,[n("strong",null,a(r.action),1),n("small",null,a(r.title??r.workflow_id),1)]),n("span",null,a(r.branch_name??"main"),1)]))),128)),pe.value.workflows.length?H("",!0):(S(),D("li",np,a(t.emptyWorkflowLogs),1))])]),n("div",op,[n("header",null,[n("h2",null,a(t.integrationLogs),1),n("span",null,a(pe.value.integrations.length),1)]),n("div",sp,[n("label",null,[u[91]||(u[91]=n("span",null,"Integration",-1)),A(n("input",{"onUpdate:modelValue":u[69]||(u[69]=r=>p.value.integration_name=r),type:"text"},null,512),[[U,p.value.integration_name]])]),n("label",null,[u[92]||(u[92]=n("span",null,"Action",-1)),A(n("input",{"onUpdate:modelValue":u[70]||(u[70]=r=>p.value.action=r),type:"text"},null,512),[[U,p.value.action]])]),n("label",null,[n("span",null,a(t.status),1),A(n("input",{"onUpdate:modelValue":u[71]||(u[71]=r=>p.value.status=r),type:"text"},null,512),[[U,p.value.status]])]),n("button",{type:"button",disabled:!!b.value,onClick:ni},a(t.applyFilters),9,ip)]),n("ul",null,[(S(!0),D(Q,null,ce(pe.value.integrations,r=>(S(),D("li",{key:r.integration_log_id},[n("div",null,[n("strong",null,a(r.integration_name),1),n("small",null,a(r.action),1)]),n("span",rp,a(r.status),1)]))),128)),pe.value.integrations.length?H("",!0):(S(),D("li",ap,a(t.emptyIntegrationLogs),1))])])]),n("div",up,[n("header",null,[n("h2",null,a(t.integrationEvents),1),n("span",null,a(Ke.value.length),1)]),n("div",dp,[n("label",null,[u[93]||(u[93]=n("span",null,"Integration",-1)),A(n("input",{"onUpdate:modelValue":u[72]||(u[72]=r=>g.value.integration_name=r),type:"text"},null,512),[[U,g.value.integration_name]])]),n("label",null,[u[94]||(u[94]=n("span",null,"Action",-1)),A(n("input",{"onUpdate:modelValue":u[73]||(u[73]=r=>g.value.action=r),type:"text"},null,512),[[U,g.value.action]])]),n("label",null,[n("span",null,a(t.status),1),A(n("input",{"onUpdate:modelValue":u[74]||(u[74]=r=>g.value.status=r),type:"text"},null,512),[[U,g.value.status]])]),n("button",{type:"button",disabled:!!b.value,onClick:oi},a(t.applyFilters),9,cp)]),n("ul",null,[(S(!0),D(Q,null,ce(Ke.value,r=>(S(),D("li",{key:`event-${r.integration_log_id}`},[n("div",null,[n("strong",null,a(r.integration_name),1),n("small",null,a(r.action)+" / "+a(r.created_at),1)]),n("span",fp,a(r.status),1)]))),128)),Ke.value.length?H("",!0):(S(),D("li",pp,a(t.emptyIntegrationLogs),1))]),Ke.value.length?(S(),D("pre",vp,a(JSON.stringify(Ke.value[0],null,2)),1)):H("",!0)]),n("div",gp,[n("header",null,[n("h2",null,a(t.auditLogs),1),n("span",null,a(pe.value.audit.length),1)]),n("div",hp,[n("label",null,[u[95]||(u[95]=n("span",null,"Action",-1)),A(n("input",{"onUpdate:modelValue":u[75]||(u[75]=r=>m.value.action=r),type:"text"},null,512),[[U,m.value.action]])]),n("label",null,[n("span",null,a(t.targetType),1),A(n("input",{"onUpdate:modelValue":u[76]||(u[76]=r=>m.value.target_type=r),type:"text"},null,512),[[U,m.value.target_type]])]),n("label",null,[n("span",null,a(t.actor),1),A(n("input",{"onUpdate:modelValue":u[77]||(u[77]=r=>m.value.actor_id=r),type:"text"},null,512),[[U,m.value.actor_id]])]),n("button",{type:"button",disabled:!!b.value,onClick:si},a(t.filter),9,_p)]),n("ul",null,[(S(!0),D(Q,null,ce(pe.value.audit,r=>(S(),D("li",{key:r.audit_id},[n("div",null,[n("strong",null,a(r.action),1),n("small",null,a(r.actor_type)+" / "+a(r.target_type)+" / "+a(r.target_id),1)]),n("span",null,a(r.created_at),1)]))),128)),pe.value.audit.length?H("",!0):(S(),D("li",mp,a(t.emptyAuditLogs),1))])])])):H("",!0),s.value==="settings"?(S(),D("section",yp,[n("div",bp,[n("button",{type:"button",disabled:!!b.value,onClick:Ji},a(t.reload),9,wp),n("button",{type:"button",disabled:!!b.value,onClick:u[78]||(u[78]=r=>jt())},a(t.reset),9,kp),n("button",{type:"button",disabled:!!b.value,onClick:Yi},a(t.validate),9,xp),n("button",{type:"button",disabled:!!b.value,onClick:Qi},a(t.diff),9,Cp),n("button",{type:"button",disabled:!!b.value,onClick:Xi},a(t.save),9,Sp),n("button",{type:"button",disabled:!!b.value,onClick:Gi},a(t.exportRedacted),9,Pp),n("button",{type:"button",disabled:!!b.value,onClick:Xn},a(t.loadSnapshots),9,Dp)]),n("div",Ep,[(S(!0),D(Q,null,ce(((ao=ee.value)==null?void 0:ao.sections)??[],r=>(S(),D("article",{key:r.key},[n("h2",null,a(r.title),1),n("span",null,a(r.fields.length),1)]))),128))]),n("section",Tp,[n("header",null,[n("h2",null,a(t.settingsEditor),1),n("span",null,a(((uo=X.value)==null?void 0:uo.config_path)??"***PATH***"),1)]),A(n("textarea",{"onUpdate:modelValue":u[79]||(u[79]=r=>St.value=r),spellcheck:"false"},null,512),[[U,St.value]])]),n("section",Ip,[n("header",null,[n("h2",null,a(t.importSettings),1),n("button",{type:"button",disabled:!!b.value||!Pt.value,onClick:Zi},a(t.importSettings),9,Op)]),A(n("textarea",{"onUpdate:modelValue":u[80]||(u[80]=r=>Pt.value=r),spellcheck:"false"},null,512),[[U,Pt.value]])]),n("section",Ap,[n("header",null,[n("h2",null,a(t.snapshots),1),n("span",null,a(be.value.length),1)]),n("ul",null,[(S(!0),D(Q,null,ce(be.value,r=>(S(),D("li",{key:r.snapshot_id},[n("div",null,[n("strong",null,a(r.reason),1),n("small",null,a(r.snapshot_id)+" / "+a(r.created_at),1)]),n("div",Up,[n("button",{type:"button",disabled:!!b.value,onClick:oe=>er(r.snapshot_id)},a(t.loadSnapshot),9,Mp),n("button",{type:"button",disabled:!!b.value,onClick:oe=>tr(r.snapshot_id)},a(t.rollback),9,$p)])]))),128))])]),re.value?(S(),D("section",Rp,[n("header",null,[n("h2",null,a(t.snapshotPreview),1),n("span",null,a(re.value.snapshot_id),1)]),n("pre",null,a(JSON.stringify(re.value.config,null,2)),1)])):H("",!0),n("div",Vp,[n("div",Bp,[n("header",null,[n("h2",null,a(t.validationResult),1),n("span",null,a(((co=Fe.value)==null?void 0:co.valid)??"-"),1)]),n("pre",null,a(JSON.stringify(Fe.value??{},null,2)),1)]),n("div",Lp,[n("header",null,[n("h2",null,a(t.diffResult),1),n("span",null,a(((fo=nt.value)==null?void 0:fo.changes.length)??0),1)]),n("pre",null,a(JSON.stringify(nt.value??{},null,2)),1)])]),le.value?(S(),D("section",Fp,[n("header",null,[n("h2",null,a(t.exportSettings),1),n("span",null,a(le.value.redacted),1)]),n("pre",null,a(JSON.stringify(le.value.config,null,2)),1)])):H("",!0)])):H("",!0)],64))]),n("aside",Np,[n("h2",null,a(t.running),1),n("dl",null,[n("div",null,[u[96]||(u[96]=n("dt",null,"Pending",-1)),n("dd",null,a(((po=d.value)==null?void 0:po.queue.pending)??0),1)]),n("div",null,[u[97]||(u[97]=n("dt",null,"Running",-1)),n("dd",null,a(((vo=d.value)==null?void 0:vo.queue.running)??0),1)]),n("div",null,[u[98]||(u[98]=n("dt",null,"Failed",-1)),n("dd",null,a(((go=d.value)==null?void 0:go.queue.failed)??0),1)]),n("div",null,[u[99]||(u[99]=n("dt",null,"Dead",-1)),n("dd",null,a(((ho=d.value)==null?void 0:ho.queue.dead_letter)??0),1)])]),n("h2",null,a(t.storage),1),n("dl",null,[n("div",null,[u[100]||(u[100]=n("dt",null,"Images",-1)),n("dd",null,a(un(eo("storage://images/"))),1)]),n("div",null,[u[101]||(u[101]=n("dt",null,"Materials",-1)),n("dd",null,a(un(eo("storage://materials/"))),1)])])])])}}}),Wp=(e,t)=>{const l=e.__vccOpts||e;for(const[o,s]of t)l[o]=s;return l},Hp=Wp(jp,[["__scopeId","data-v-c09845d7"]]);Bu(Hp).mount("#app");