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