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