55 行
449 KiB
JavaScript
55 行
449 KiB
JavaScript
|
|
var nb=Object.defineProperty;var ob=(e,n,o)=>n in e?nb(e,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[n]=o;var Ns=(e,n,o)=>ob(e,typeof n!="symbol"?n+"":n,o);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const u of r)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function o(r){const u={};return r.integrity&&(u.integrity=r.integrity),r.referrerPolicy&&(u.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?u.credentials="include":r.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(r){if(r.ep)return;r.ep=!0;const u=o(r);fetch(r.href,u)}})();/**
|
|||
|
|
* @vue/shared v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function gu(e){const n=Object.create(null);for(const o of e.split(","))n[o]=1;return o=>o in n}const dt={},oo=[],la=()=>{},ef=()=>!1,yr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),hr=e=>e.startsWith("onUpdate:"),Et=Object.assign,bu=(e,n)=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)},ib=Object.prototype.hasOwnProperty,nt=(e,n)=>ib.call(e,n),Me=Array.isArray,io=e=>oi(e)==="[object Map]",vo=e=>oi(e)==="[object Set]",cc=e=>oi(e)==="[object Date]",Le=e=>typeof e=="function",$t=e=>typeof e=="string",Dl=e=>typeof e=="symbol",ot=e=>e!==null&&typeof e=="object",tf=e=>(ot(e)||Le(e))&&Le(e.then)&&Le(e.catch),lf=Object.prototype.toString,oi=e=>lf.call(e),rb=e=>oi(e).slice(8,-1),af=e=>oi(e)==="[object Object]",yu=e=>$t(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,jo=gu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),kr=e=>{const n=Object.create(null);return(o=>n[o]||(n[o]=e(o)))},sb=/-\w/g,Ll=kr(e=>e.replace(sb,n=>n.slice(1).toUpperCase())),ub=/\B([A-Z])/g,ln=kr(e=>e.replace(ub,"-$1").toLowerCase()),nf=kr(e=>e.charAt(0).toUpperCase()+e.slice(1)),qs=kr(e=>e?`on${nf(e)}`:""),ta=(e,n)=>!Object.is(e,n),lr=(e,...n)=>{for(let o=0;o<e.length;o++)e[o](...n)},of=(e,n,o,i=!1)=>{Object.defineProperty(e,n,{configurable:!0,enumerable:!1,writable:i,value:o})},_r=e=>{const n=parseFloat(e);return isNaN(n)?e:n},db=e=>{const n=$t(e)?Number(e):NaN;return isNaN(n)?e:n};let fc;const wr=()=>fc||(fc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function At(e){if(Me(e)){const n={};for(let o=0;o<e.length;o++){const i=e[o],r=$t(i)?vb(i):At(i);if(r)for(const u in r)n[u]=r[u]}return n}else if($t(e)||ot(e))return e}const cb=/;(?![^(]*\))/g,fb=/:([^]+)/,pb=/\/\*[^]*?\*\//g;function vb(e){const n={};return e.replace(pb,"").split(cb).forEach(o=>{if(o){const i=o.split(fb);i.length>1&&(n[i[0].trim()]=i[1].trim())}}),n}function ie(e){let n="";if($t(e))n=e;else if(Me(e))for(let o=0;o<e.length;o++){const i=ie(e[o]);i&&(n+=i+" ")}else if(ot(e))for(const o in e)e[o]&&(n+=o+" ");return n.trim()}const mb="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gb=gu(mb);function rf(e){return!!e||e===""}function bb(e,n){if(e.length!==n.length)return!1;let o=!0;for(let i=0;o&&i<e.length;i++)o=mo(e[i],n[i]);return o}function mo(e,n){if(e===n)return!0;let o=cc(e),i=cc(n);if(o||i)return o&&i?e.getTime()===n.getTime():!1;if(o=Dl(e),i=Dl(n),o||i)return e===n;if(o=Me(e),i=Me(n),o||i)return o&&i?bb(e,n):!1;if(o=ot(e),i=ot(n),o||i){if(!o||!i)return!1;const r=Object.keys(e).length,u=Object.keys(n).length;if(r!==u)return!1;for(const c in e){const m=e.hasOwnProperty(c),b=n.hasOwnProperty(c);if(m&&!b||!m&&b||!mo(e[c],n[c]))return!1}}return String(e)===String(n)}function hu(e,n){return e.findIndex(o=>mo(o,n))}const sf=e=>!!(e&&e.__v_isRef===!0),d=e=>$t(e)?e:e==null?"":Me(e)||ot(e)&&(e.toString===lf||!Le(e.toString))?sf(e)?d(e.value):JSON.stringify(e,uf,2):String(e),uf=(e,n)=>sf(n)?uf(e,n.value):io(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((o,[i,r],u)=>(o[Bs(i,u)+" =>"]=r,o),{})}:vo(n)?{[`Set(${n.size})`]:[...n.values()].map(o=>Bs(o))}:Dl(n)?Bs(n):ot(n)&&!Me(n)&&!af(n)?String(n):n,Bs=(e,n="")=>{var o;return Dl(e)?`Symbol(${(o=e.description)!=null?o:n})`:e};/**
|
|||
|
|
* @vue/reactivity v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/let Wt;class yb{constructor(n=!1){this.detached=n,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!n&&Wt&&(Wt.active?(this.parent=Wt,this.index=(Wt.scopes||(Wt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let n,o;if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].pause();for(n=0,o=this.effects.length;n<o;n++)this.effects[n].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let n,o;if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].resume();for(n=0,o=this.effects.length;n<o;n++)this.effects[n].resume()}}run(n){if(this._active){const o=Wt;try{return Wt=this,n()}finally{Wt=o}}}on(){++this._on===1&&(this.prevScope=Wt,Wt=this)}off(){if(this._on>0&&--this._on===0){if(Wt===this)Wt=this.prevScope;else{let n=Wt;for(;n;){if(n.prevScope===this){n.prevScope=this.prevScope;break}n=n.prevScope}}this.prevScope=void 0}}stop(n){if(this._active){this._active=!1;let o,i;for(o=0,i=this.effects.length;o<i;o++)this.effects[o].stop();for(this.effects.length=0,o=0,i=this.cleanups.length;o<i;o++)this.cleanups[o]();if(this.cleanups.length=0,this.scopes){for(o=0,i=this.scopes.length;o<i;o++)this.scopes[o].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!n){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function hb(){return Wt}let pt;const Ts=new WeakSet;class df{constructor(n){this.fn=n,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Wt&&(Wt.active?Wt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ts.has(this)&&(Ts.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ff(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,pc(this),pf(this);const n=pt,o=Ol;pt=this,Ol=!0;try{return this.fn()}finally{vf(this),pt=n,Ol=o,this.flags&=-3}}stop(){if(this.flags&1){for(let n=this.deps;n;n=n.nextDep)wu(n);this.deps=this.depsTail=void 0,pc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ts.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){eu(this)&&this.run()}get dirty(){return eu(this)}}let cf=0,Ko,Go;function ff(e,n=!1){if(e.flags|=8,n){e.next=Go,Go=e;return}e.next=Ko,Ko=e}function ku(){cf++}function _u(){if(--cf>0)return;if(Go){let n=Go;for(Go=void 0;n;){const o=n.next;n.next=void 0,n.flags&=-9,n=o}}let e;for(;Ko;){let n=Ko;for(Ko=void 0;n;){const o=n.next;if(n.next=void 0,n.flags&=-9,n.flags&1)try{n.trigger()}catch(i){e||(e=i)}n=o}}if(e)throw e}function pf(e){for(let n=e.deps;n;n=n.nextDep)n.version=-1,n.prevActiveLink=n.dep.activeLink,n.dep.activeLink=n}function vf(e){let n,o=e.depsTail,i=o;for(;i;){const r=i.prevDep;i.version===-1?(i===o&&(o=r),wu(i),kb(i)):n=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=r}e.deps=n,e.depsTail=o}function eu(e){for(let n=e.deps;n;n=n.nextDep)if(n.dep.version!==n.version||n.dep.computed&&(mf(n.dep.computed)||n.dep.version!==n.version))return!0;return!!e._dirty}function mf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Jo)||(e.globalVersion=Jo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!eu(e))))return;e.flags|=2;const n=e.dep,o=pt,i=Ol;pt=e,Ol=!0;try{pf(e);const r=e.fn(e._value);(n.version===0||ta(r,e._value))&&(e.flags|=128,e._value=r,n.version++)}catch(r){throw n.version++,r}finally{pt=o,Ol=i,vf(e),e.flags&=-3}}function wu(e,n=!1){const{dep:o,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),o.subs===e&&(o.subs=i,!i&&o.computed)){o.computed.flags&=-5;for(let u=o.computed.deps;u;u=u.nextDep)wu(u,!0)}!n&&!--o.sc&&o.map&&o.map.delete(o.key)}function kb(e){const{prevDep:n,nextDep:o}=e;n&&(n.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=n,e.nextDep=void 0)}let Ol=!0;const gf=[];function aa(){gf.push(Ol),Ol=!1}function na(){const e=gf.pop();Ol=e===void 0?!0:
|
|||
|
|
* @vue/runtime-core v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function ii(e,n,o,i){try{return i?e(...i):e()}catch(r){Cr(r,n,o)}}function Ml(e,n,o,i){if(Le(e)){const r=ii(e,n,o,i);return r&&tf(r)&&r.catch(u=>{Cr(u,n,o)}),r}if(Me(e)){const r=[];for(let u=0;u<e.length;u++)r.push(Ml(e[u],n,o,i));return r}}function Cr(e,n,o,i=!0){const r=n?n.vnode:null,{errorHandler:u,throwUnhandledErrorInProduction:c}=n&&n.appContext.config||dt;if(n){let m=n.parent;const b=n.proxy,k=`https://vuejs.org/error-reference/#runtime-${o}`;for(;m;){const g=m.ec;if(g){for(let $=0;$<g.length;$++)if(g[$](e,b,k)===!1)return}m=m.parent}if(u){aa(),ii(u,null,10,[e,b,k]),na();return}}Gb(e,o,r,i,c)}function Gb(e,n,o,i=!0,r=!1){if(r)throw e;console.error(e)}const tl=[];let Yl=-1;const ro=[];let Za=null,no=0;const If=Promise.resolve();let dr=null;function jt(e){const n=dr||If;return e?n.then(this?e.bind(this):e):n}function Hb(e){let n=Yl+1,o=tl.length;for(;n<o;){const i=n+o>>>1,r=tl[i],u=Xo(r);u<e||u===e&&r.flags&2?n=i+1:o=i}return n}function xu(e){if(!(e.flags&1)){const n=Xo(e),o=tl[tl.length-1];!o||!(e.flags&2)&&n>=Xo(o)?tl.push(e):tl.splice(Hb(n),0,e),e.flags|=1,Pf()}}function Pf(){dr||(dr=If.then(xf))}function zb(e){Me(e)?ro.push(...e):Za&&e.id===-1?Za.splice(no+1,0,e):e.flags&1||(ro.push(e),e.flags|=1),Pf()}function mc(e,n,o=Yl+1){for(;o<tl.length;o++){const i=tl[o];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;tl.splice(o,1),o--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function Sf(e){if(ro.length){const n=[...new Set(ro)].sort((o,i)=>Xo(o)-Xo(i));if(ro.length=0,Za){Za.push(...n);return}for(Za=n,no=0;no<Za.length;no++){const o=Za[no];o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2}Za=null,no=0}}const Xo=e=>e.id==null?e.flags&2?-1:1/0:e.id;function xf(e){try{for(Yl=0;Yl<tl.length;Yl++){const n=tl[Yl];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),ii(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;Yl<tl.length;Yl++){const n=tl[Yl];n&&(n.flags&=-2)}Yl=-1,tl.length=0,Sf(),dr=null,(tl.length||ro.length)&&xf()}}let Yt=null,Af=null;function cr(e){const n=Yt;return Yt=e,Af=e&&e.type.__scopeId||null,n}function It(e,n=Yt,o){if(!n||e._n)return e;const i=(...r)=>{i._d&&vr(-1);const u=cr(n);let c;try{c=e(...r)}finally{cr(u),i._d&&vr(1)}return c};return i._n=!0,i._c=!0,i._d=!0,i}function Re(e,n){if(Yt===null)return e;const o=Ar(Yt),i=e.dirs||(e.dirs=[]);for(let r=0;r<n.length;r++){let[u,c,m,b=dt]=n[r];u&&(Le(u)&&(u={mounted:u,updated:u}),u.deep&&Pa(c),i.push({dir:u,instance:o,value:c,oldValue:void 0,arg:m,modifiers:b}))}return e}function Sn(e,n,o,i){const r=e.dirs,u=n&&n.dirs;for(let c=0;c<r.length;c++){const m=r[c];u&&(m.oldValue=u[c].value);let b=m.dir[i];b&&(aa(),Ml(b,o,8,[e.el,m,e,n]),na())}}function Qb(e,n){if(ll){let o=ll.provides;const i=ll.parent&&ll.parent.provides;i===o&&(o=ll.provides=Object.create(i)),o[e]=n}}function ar(e,n,o=!1){const i=Ru();if(i||uo){let r=uo?uo._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return o&&Le(n)?n.call(i&&i.proxy):n}}const Jb=Symbol.for("v-scx"),Yb=()=>ar(Jb);function Ze(e,n,o){return Mf(e,n,o)}function Mf(e,n,o=dt){const{immediate:i,deep:r,flush:u,once:c}=o,m=Et({},o),b=n&&i||!n&&u!=="post";let k;if(li){if(u==="sync"){const I=Yb();k=I.__watcherHandles||(I.__watcherHandles=[])}else if(!b){const I=()=>{};return I.stop=la,I.resume=la,I.pause=la,I}}const g=ll;m.call=(I,C,L)=>Ml(I,g,C,L);let $=!1;u==="post"?m.scheduler=I=>{ul(I,g&&g.suspense)}:u!=="sync"&&($=!0,m.scheduler=(I,C)=>{C?I():xu(I)}),m.augmentJob=I=>{n&&(I.flags|=4),$&&(I.flags|=2,g&&(I.id=g.uid,I.i=g))};const N=Kb(e,n,m);return li&&(k?k.push(N):b&&N()),N}function Xb(e,n,o){const i=this.proxy,r=$t(e)?e.includes(".")?Ef(i,e):()=>i[e]:e.bind(i,i);let u;Le(n)?u=n:(u=n.handler,o=n);const c=si(this),m=Mf(r,u.bind(i),o);return c(),m}function Ef(e,n){const o=n.split(".");return()=>{let i=e;for(let r=0;r<o.length&&i;r++)i=i[o[r]];return i}}const Zb=Symbol("_vte"),Rf=e=>e.__isTeleport,Sl=Symbol("_leaveCb"),Lo=Symbol("_enterCb");function Nf(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingV
|
|||
|
|
* @vue/runtime-dom v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/let du;const Mc=typeof window<"u"&&window.trustedTypes;if(Mc)try{du=Mc.createPolicy("vue",{createHTML:e=>e})}catch{}const cp=du?e=>du.createHTML(e):e=>e,Xy="http://www.w3.org/2000/svg",Zy="http://www.w3.org/1998/Math/MathML",$a=typeof document<"u"?document:null,Ec=$a&&$a.createElement("template"),e1={insert:(e,n,o)=>{n.insertBefore(e,o||null)},remove:e=>{const n=e.parentNode;n&&n.removeChild(e)},createElement:(e,n,o,i)=>{const r=n==="svg"?$a.createElementNS(Xy,e):n==="mathml"?$a.createElementNS(Zy,e):o?$a.createElement(e,{is:o}):$a.createElement(e);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>$a.createTextNode(e),createComment:e=>$a.createComment(e),setText:(e,n)=>{e.nodeValue=n},setElementText:(e,n)=>{e.textContent=n},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$a.querySelector(e),setScopeId(e,n){e.setAttribute(n,"")},insertStaticContent(e,n,o,i,r,u){const c=o?o.previousSibling:n.lastChild;if(r&&(r===u||r.nextSibling))for(;n.insertBefore(r.cloneNode(!0),o),!(r===u||!(r=r.nextSibling)););else{Ec.innerHTML=cp(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const m=Ec.content;if(i==="svg"||i==="mathml"){const b=m.firstChild;for(;b.firstChild;)m.appendChild(b.firstChild);m.removeChild(b)}n.insertBefore(m,o)}return[c?c.nextSibling:n.firstChild,o?o.previousSibling:n.lastChild]}},za="transition",Oo="animation",fo=Symbol("_vtc"),fp={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},pp=Et({},qf,fp),t1=e=>(e.displayName="Transition",e.props=pp,e),zt=t1((e,{slots:n})=>Jy(ty,vp(e),n)),An=(e,n=[])=>{Me(e)?e.forEach(o=>o(...n)):e&&e(...n)},Rc=e=>e?Me(e)?e.some(n=>n.length>1):e.length>1:!1;function vp(e){const n={};for(const j in e)j in fp||(n[j]=e[j]);if(e.css===!1)return n;const{name:o="v",type:i,duration:r,enterFromClass:u=`${o}-enter-from`,enterActiveClass:c=`${o}-enter-active`,enterToClass:m=`${o}-enter-to`,appearFromClass:b=u,appearActiveClass:k=c,appearToClass:g=m,leaveFromClass:$=`${o}-leave-from`,leaveActiveClass:N=`${o}-leave-active`,leaveToClass:I=`${o}-leave-to`}=e,C=l1(r),L=C&&C[0],J=C&&C[1],{onBeforeEnter:E,onEnter:q,onEnterCancelled:F,onLeave:V,onLeaveCancelled:pe,onBeforeAppear:Ee=E,onAppear:He=q,onAppearCancelled:Ie=F}=n,ne=(j,xe,le,T)=>{j._enterCancelled=T,Ya(j,xe?g:m),Ya(j,xe?k:c),le&&le()},se=(j,xe)=>{j._isLeaving=!1,Ya(j,$),Ya(j,I),Ya(j,N),xe&&xe()},K=j=>(xe,le)=>{const T=j?He:q,qe=()=>ne(xe,j,le);An(T,[xe,qe]),Nc(()=>{Ya(xe,j?b:u),Jl(xe,j?g:m),Rc(T)||qc(xe,i,L,qe)})};return Et(n,{onBeforeEnter(j){An(E,[j]),Jl(j,u),Jl(j,c)},onBeforeAppear(j){An(Ee,[j]),Jl(j,b),Jl(j,k)},onEnter:K(!1),onAppear:K(!0),onLeave(j,xe){j._isLeaving=!0;const le=()=>se(j,xe);Jl(j,$),j._enterCancelled?(Jl(j,N),cu(j)):(cu(j),Jl(j,N)),Nc(()=>{j._isLeaving&&(Ya(j,$),Jl(j,I),Rc(V)||qc(j,i,J,le))}),An(V,[j,le])},onEnterCancelled(j){ne(j,!1,void 0,!0),An(F,[j])},onAppearCancelled(j){ne(j,!0,void 0,!0),An(Ie,[j])},onLeaveCancelled(j){se(j),An(pe,[j])}})}function l1(e){if(e==null)return null;if(ot(e))return[Us(e.enter),Us(e.leave)];{const n=Us(e);return[n,n]}}function Us(e){return db(e)}function Jl(e,n){n.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[fo]||(e[fo]=new Set)).add(n)}function Ya(e,n){n.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const o=e[fo];o&&(o.delete(n),o.size||(e[fo]=void 0))}function Nc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let a1=0;function qc(e,n,o,i){const r=e._endId=++a1,u=()=>{r===e._endId&&i()};if(o!=null)return setTimeout(u,o);const{type:c,timeout:m,propCount:b}=mp(e,n);if(!c)return i();const k=c+"end";let g=0;const $=()=>{e.removeEventListener(k,N),u()},N=I=>{I.target===e&&++g>=b&&$()};setTimeout(()=>{g<b&&$()},m+1),e.addEventListener(k,N)}function mp(e,n){const o=window.getComputedStyle(e),i=C=>(o[C]||"").split(", "),r=i(`${za}Delay`),u=i(`${za}Duration`),c=Bc(
|
|||
|
|
`)}function c(g,$){const N=Array.from(new Set($.replace(/,/g,",").split(/[\n,]/).map(I=>I.trim()).filter(Boolean)));i("update:modelValue",{...o.modelValue,[g]:N})}function m(g,$){i("update:modelValue",{...o.modelValue,[g]:$})}const b=M(()=>r("group_allowlist").length),k=M(()=>r("user_allowlist").length);return(g,$)=>(f(),v("section",T2,[$[18]||($[18]=sp('<div class="intro" data-v-ac5d0929><span data-v-ac5d0929>AstrBot 聊天指令</span><strong data-v-ac5d0929>群聊与用户白名单</strong><p data-v-ac5d0929>每行填写一个平台提供的群聊 ID 或用户 ID,也支持用逗号分隔。白名单为空时不会放行对应条件。</p></div><div class="rules" data-v-ac5d0929><article data-v-ac5d0929><b data-v-ac5d0929>快速角色 / 角色工作流</b><strong data-v-ac5d0929>群聊命中 + 用户命中</strong><p data-v-ac5d0929>两个白名单必须同时命中才允许使用,避免群内未授权成员启动完整工作流。</p></article><article data-v-ac5d0929><b data-v-ac5d0929>单图生成</b><strong data-v-ac5d0929>群聊命中 或 用户命中</strong><p data-v-ac5d0929>任意一个白名单命中即可使用;用户白名单也可以在私聊中放行单图。</p></article></div>',2)),l("div",L2,[l("label",null,[l("span",null,[$[8]||($[8]=dl("群聊白名单 ",-1)),l("em",null,d(b.value)+" 项",1)]),l("textarea",{value:u("group_allowlist"),disabled:e.disabled,rows:"10",placeholder:`每行一个群聊 ID
|
|||
|
|
例如:123456789`,onInput:$[0]||($[0]=N=>c("group_allowlist",N.target.value))},null,40,O2),$[9]||($[9]=l("small",null,"用于判断命令所在群聊是否获得授权。",-1))]),l("label",null,[l("span",null,[$[10]||($[10]=dl("用户白名单 ",-1)),l("em",null,d(k.value)+" 项",1)]),l("textarea",{value:u("user_allowlist"),disabled:e.disabled,rows:"10",placeholder:`每行一个用户 ID
|
|||
|
|
例如:987654321`,onInput:$[1]||($[1]=N=>c("user_allowlist",N.target.value))},null,40,D2),$[11]||($[11]=l("small",null,"使用 AstrBot 事件返回的平台用户 ID,不使用昵称。",-1))])]),l("div",V2,[l("label",null,[$[12]||($[12]=l("span",null,"用户并发上限",-1)),l("input",{type:"number",min:"1",value:Number(e.modelValue.user_concurrency_limit||2),disabled:e.disabled,onInput:$[2]||($[2]=N=>m("user_concurrency_limit",Number(N.target.value)))},null,40,F2)]),l("label",null,[$[13]||($[13]=l("span",null,"群聊并发上限",-1)),l("input",{type:"number",min:"1",value:Number(e.modelValue.group_concurrency_limit||5),disabled:e.disabled,onInput:$[3]||($[3]=N=>m("group_concurrency_limit",Number(N.target.value)))},null,40,U2)]),l("label",null,[$[14]||($[14]=l("span",null,"用户每日生成上限",-1)),l("input",{type:"number",min:"1",value:Number(e.modelValue.daily_user_generation_limit||30),disabled:e.disabled,onInput:$[4]||($[4]=N=>m("daily_user_generation_limit",Number(N.target.value)))},null,40,W2)]),l("label",null,[$[15]||($[15]=l("span",null,"群聊每日生成上限",-1)),l("input",{type:"number",min:"1",value:Number(e.modelValue.daily_group_generation_limit||100),disabled:e.disabled,onInput:$[5]||($[5]=N=>m("daily_group_generation_limit",Number(N.target.value)))},null,40,j2)]),l("label",K2,[l("input",{type:"checkbox",checked:e.modelValue.allow_2k!==!1,disabled:e.disabled,onChange:$[6]||($[6]=N=>m("allow_2k",N.target.checked))},null,40,G2),$[16]||($[16]=l("span",null,"允许聊天使用 2K",-1))]),l("label",H2,[l("input",{type:"checkbox",checked:e.modelValue.allow_4k===!0,disabled:e.disabled,onChange:$[7]||($[7]=N=>m("allow_4k",N.target.checked))},null,40,z2),$[17]||($[17]=l("span",null,"允许聊天使用 4K",-1))])])]))}}),J2=Bt(Q2,[["__scopeId","data-v-ac5d0929"]]),Y2={class:"settings-page"},X2={class:"hero"},Z2={class:"actions"},eC=["disabled"],tC={class:"workspace"},lC={class:"nav"},aC=["onClick"],nC={class:"editor"},oC={class:"adapter-list"},iC=["onClick"],rC={class:"adapter-icon"},sC={class:"adapter-title"},uC={key:0},dC=["aria-label"],cC={class:"adapter-body"},fC={class:"fields"},pC=["value","onInput"],vC=["value","onChange"],mC={class:"wide"},gC=["value","onInput"],bC=["value","onInput"],yC=["list","value","onInput"],hC=["id"],kC=["value"],_C=["value","onInput"],wC=["value","onInput"],$C=["value","onInput"],CC={class:"probe-panel"},IC={class:"actions"},PC=["disabled","onClick"],SC=["disabled","onClick"],xC={key:0,class:"probe-error"},AC={key:1,class:"probe-result"},MC={key:0},EC={class:"switch"},RC=["checked","onChange"],NC={class:"actions"},qC=["disabled","onClick"],BC=["disabled","onClick"],TC={class:"section-head"},LC={class:"section-count"},OC={key:9,class:"feature-grid"},DC={class:"feature-mark"},VC={class:"toggle"},FC=["checked","onChange"],UC={key:10,class:"config-panel"},WC={class:"config-banner"},jC={class:"config-symbol"},KC={class:"fields"},GC=["value","onChange"],HC={key:0,value:"true"},zC={key:1,value:"false"},QC=["value"],JC=["type","placeholder","value","onInput"],YC={class:"savebar"},XC={class:"actions"},ZC=["disabled"],eI=["disabled"],tI=["disabled"],lI={class:"side"},aI=_t({__name:"SettingsPage",props:{schema:{},current:{},snapshots:{},validation:{},loading:{type:Boolean},busy:{type:Boolean},error:{},message:{},backendConnected:{type:Boolean},canManage:{type:Boolean},pluginVersion:{},modelCount:{}},emits:["refresh","validate","save","reload"],setup(e,{emit:n}){const o=e,i=n,r={schema_version:"3.0-preview",sections:[{key:"generation",title:"生成服务",fields:[]},{key:"model_assignments",title:"模型分工",fields:[]},{key:"recognition_prompts",title:"识别提示词",fields:[]},{key:"chat_access",title:"聊天权限",fields:[]},{key:"features",title:"功能开关",fields:[{key:"quick_profile",label:"快速角色",type:"bool",options:[],sensitive:!1,readonly:!1},{key:"workspace",label:"角色工作流",type:"bool",options:[],sensitive:!1,readonly:!1},{key:"material_library",label:"素材库",type:"bool",options:[],sensitive:!1,readonly:!1},{key:"wardrobe",label:"角色衣橱",
|
|||
|
|
`)}function Ld(t){const a=Je.value,s=De.value;return{source:"standalone_web_workflow_chat",ui_node_id:ge.value,ui_node_title:a.title,ui_node_phase:a.phase,ui_node_status:a.status,profile_id:s.profileId,profile_name:s.name,workflow_id:s.workflowId,source_language:"auto",target_prompt_language:"en",translation_mode:"backend_llm",user_instruction:t,persona_split_fields_ready:Ti.value,persona_split_fields_total:Bi.value,selected_material_ids:ms(),selected_draft_image_ids:yt.value.filter(ml).map(p=>p.image_id)}}async function ws(){var s;const t=Pt.value.trim();if(!t||Ge.value)return;if(!Kl.value){Ce.value="请先在设置中配置并确认一个生图模型。";return}await Ps({promptPatch:Td(t),metadata:Ld(t)})&&(al.value=t,go.value=`${Je.value.title} / ${((s=Kl.value)==null?void 0:s.label)??G.value}`)}function Od(){!Vt.value||!Nt(Vt.value)||(Un.value="generation",ol("imageViewer"),ji(),Wl.value=!0)}function Dd(t){const a=(t?Li.value.find(s=>s.image_id===t):null)??Ka.value;!a||!Nt(a)||(st.value=a.image_id,Od())}function Am(){yt.value.length&&(Un.value="workflowCompare",ol("imageViewer"),ji(),Wl.value=!0)}function Vd(t){var a;t&&Rd(t),(a=Ft.value)!=null&&a.imageUrl&&(Un.value="quickProfile",ol("imageViewer"),ji(),Wl.value=!0)}function $s(){Wl.value=!1,pn.value=!1}function ji(){oa.value=1,La.value={x:0,y:0}}function Mm(t){oa.value=Fg(Number((oa.value+t).toFixed(2)),.5,4),oa.value<=1&&(La.value={x:0,y:0})}function Em(t){Mm(t.deltaY<0?.12:-.12)}function Rm(){if(oa.value>1){ji();return}oa.value=2.2,La.value={x:0,y:0}}function Nm(t){oa.value<=1||(pn.value=!0,vn.value={pointerId:t.pointerId,x:t.clientX,y:t.clientY,offsetX:La.value.x,offsetY:La.value.y},t.currentTarget instanceof HTMLElement&&t.currentTarget.setPointerCapture(t.pointerId))}function qm(t){!pn.value||t.pointerId!==vn.value.pointerId||(La.value={x:vn.value.offsetX+t.clientX-vn.value.x,y:vn.value.offsetY+t.clientY-vn.value.y})}function Cs(t){!pn.value||t.pointerId!==vn.value.pointerId||(pn.value=!1,t.currentTarget instanceof HTMLElement&&t.currentTarget.hasPointerCapture(t.pointerId)&&t.currentTarget.releasePointerCapture(t.pointerId))}function Fd(){ol("search"),qr.value=!0,Fn.value=!0,kl.value=0}function Ud(t){if(!wn.value.length)return;const a=wn.value.length;kl.value=(kl.value+t+a)%a}function Bm(){const t=wn.value[kl.value];t&&md(t)}function Zn(){ol("personaQuestionnaire"),yo.value="",pi.value=!0}function Wd(){ol("externalProfileImport"),mi.value=!0,jt(()=>{var t;(t=document.querySelector("[data-profile-import-input]"))==null||t.focus()})}function Tm(){ol("quickProfileDetail"),vi.value=!0}function Lm(t){z.value=t,ol("materialDetail"),ui.value=!0}async function Om(t){if(t.enabled){if(t.actionKey==="personaQuestionnaire"){Zn();return}if(t.actionKey==="workflowCompare"){Am();return}if(t.actionKey==="externalProfileImport"){Wd();return}if(t.actionKey==="workflowPersonaSplit"){await jm();return}if(t.actionKey==="workflowSaveVersion"){await lg();return}if(t.actionKey==="workflowCreateBranchFromNode"){await Wm();return}if(t.actionKey==="workflowNodeGenerate"){t.id==="hires"&&ge.value!=="hires-fix"&&(Tl("hires-fix"),await jt()),await Ps();return}if(t.actionKey==="workflowNodeRetry"){await Ps({retry:!0});return}if(t.actionKey==="workflowNodeComplete"){await Km();return}if(t.actionKey==="workflowNodeReview"){await zm();return}if(t.actionKey==="workflowReviewAdopt"){await Zm();return}if(t.actionKey==="workflowPromptPlanSave"){await Gm();return}if(t.actionKey==="workflowPromptPlanNext"){Tl("prompt-plan");return}if(t.actionKey==="workflowMaterialBindSave"){await Hm();return}if(t.actionKey==="workflowArchiveFinal"){await Dm();return}t.nav&&t.module&&wt(t.nav,t.module)}}async function Dm(){const t=De.value;if(!t||Ge.value)return;const a=St("入库");if(a){Ce.value=a;return}if(!t.workflowId){Ce.value="请先生成角色档案并创建后端工作流,再执行入库。";return}const s=t.workflowId,p=vl("archive",t);if(!p){Ce.value="当前工作流缺少后端入库节点 final_pack。";return}const y=In(s).find(B=>B.node_id===p);if(y&&["completed","selected"].includes(it(y.status)
|
|||
|
|
`)}}function Ki(t,a,s,p,y){return{id:t,title:a,prompt:s,negative:p,weight_suggestions:[{label:"identity",value:1.25,reason:"keep character identity stable"},{label:"style",value:.85,reason:"avoid overfitting style over identity"}],inherits:y,status:"ready"}}function tg(t){const a=ql.value,s=u.map((p,y)=>{const h=a.find(w=>w.category===p.category);return{id:`rule_${p.category}_${y+1}`,category:p.category,material_id:vs(h==null?void 0:h.id),material_label:(h==null?void 0:h.label)??"",material_group:(h==null?void 0:h.group)??(h==null?void 0:h.category)??"",material_prompt:(h==null?void 0:h.prompt)??"",material_colors:(h==null?void 0:h.colors)??[],bind_to_stages:Kd(p.category),inheritance_rule:h?`${p.category} only affects explicitly bound downstream stages.`:"do not use reference unless user explicitly selects one",reference_strength:h?Gd(p.category):"弱",required:!!(h&&["风格","服装"].includes(p.category)),status:h?"ready":"pending"}});return{profile_id:t.profileId,profile_name:t.name,selected_material_ids:ms(),rules:s}}function Kd(t){return{风格:[{stage_id:"portrait-draft",stage_title:"头像草稿"},{stage_id:"halfbody-draft",stage_title:"半身草稿"},{stage_id:"body-sheet",stage_title:"全身与设定图"},{stage_id:"review-archive",stage_title:"修复入库"}],构图:[{stage_id:"portrait-draft",stage_title:"头像草稿"},{stage_id:"body-sheet",stage_title:"全身与设定图"}],服装:[{stage_id:"halfbody-draft",stage_title:"半身草稿"},{stage_id:"body-sheet",stage_title:"全身与设定图"}],鞋袜:[{stage_id:"body-sheet",stage_title:"全身与设定图"}],配饰:[{stage_id:"body-sheet",stage_title:"全身与设定图"},{stage_id:"review-archive",stage_title:"修复入库"}]}[t]??[{stage_id:"body-sheet",stage_title:"全身与设定图"}]}function Gd(t){return t==="风格"||t==="服装"?"强":t==="构图"?"中":"弱"}async function lg(){var s;const t=De.value;if(!t||Vn.value)return;const a=St("保存快照");if(a){dn.value=a;return}if(!t.workflowId){dn.value="请先生成档案并创建后端工作流,再保存快照。";return}Vn.value=!0,dn.value="";try{const p=await Se(R.workflowHistory(t.workflowId),{action:"save_version",title:`${t.name} / ${((s=Je.value)==null?void 0:s.title)??"工作流快照"}`,node_id:vl(ge.value,t),include_nodes:!0,metadata:{source:"standalone_web",ui_node_id:ge.value,profile_id:t.profileId,profile_name:t.name,profile_status:t.status}});ho.value=p.created_at}catch(p){dn.value=`保存快照失败:${Be(p)}`}finally{Vn.value=!1}}function vl(t,a){if(!a.workflowId)return;const p=In(a.workflowId).find(h=>ba(h)===t);if(p)return p.node_id;const y=a.workflowNodeIds??[];if(t!=="brief-import"&&t==="persona-split")return y[0]}function In(t){var p;const a=Xe.value[t]??[],s=(p=ft.value[t])==null?void 0:p.current_branch;return s?a.filter(y=>y.branch_name===s):a}function Hd(t){const a=[...yt.value,...Ka.value?[Ka.value]:[],...t?nl.value[t]??[]:[]];return Array.from(new Set(a.filter(ml).map(s=>s.image_id)))}function ml(t){if(t.image_id.startsWith("mock-")||t.image_uri.startsWith("mock://"))return!1;const a="metadata"in t&&t.metadata&&typeof t.metadata=="object"?t.metadata:{},s=a.mock===!0||a.mock===1||a.mock==="true",p=Object.prototype.hasOwnProperty.call(a,"provider_error")&&a.provider_error!=null,y=a.fallback_used===!0||a.degraded===!0;return!s&&!p&&!y}async function ag(){if(!Hu.value||bo.value)return;const t=St("生成档案");if(t){yo.value=t;return}Nu.value+=1;const a=ug(Oe.value,Nu.value);bo.value=!0,yo.value="";try{const s=await Se(R.quickProfileDraft,ng(a,Oe.value,Ra.value)),p={...a,name:s.profile_preview.name||a.name,style:s.profile_preview.style_prompt||a.style,negative:s.profile_preview.negative_prompt||a.negative},y=await Se(R.quickProfileDraftSave,og(p,Oe.value,Ra.value,s)),w={...rg(y,p),status:"文本档案已保存"};rn.value=[w,...rn.value.filter(B=>B.id!==w.id)],Na.value=[y.profile,...Na.value.filter(B=>B.profile_id!==y.profile.profile_id)],Tt.value={...Tt.value,[y.profile.profile_id]:y.workflow?[y.workflow]:[]},Wi(w),fe.value="quickProfile",Mt("personaQuestionnaire"),jt(()
|
|||
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="${Ye}" height="${qt}" viewBox="0 0 ${Ye} ${qt}" preserveAspectRatio="xMidYMid meet">
|
|||
|
|
<defs>
|
|||
|
|
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
|||
|
|
<stop offset="0%" stop-color="${h}" />
|
|||
|
|
<stop offset="58%" stop-color="${w}" />
|
|||
|
|
<stop offset="100%" stop-color="#111827" />
|
|||
|
|
</linearGradient>
|
|||
|
|
<radialGradient id="halo" cx="72%" cy="22%" r="55%">
|
|||
|
|
<stop offset="0%" stop-color="${B}" stop-opacity="0.82" />
|
|||
|
|
<stop offset="100%" stop-color="${B}" stop-opacity="0" />
|
|||
|
|
</radialGradient>
|
|||
|
|
<pattern id="grid" width="${zl}" height="${zl}" patternUnits="userSpaceOnUse">
|
|||
|
|
<path d="M${zl} 0H0V${zl}" fill="none" stroke="#ffffff" stroke-opacity="0.13" stroke-width="2" />
|
|||
|
|
</pattern>
|
|||
|
|
</defs>
|
|||
|
|
<rect width="${Ye}" height="${qt}" fill="url(#bg)" />
|
|||
|
|
<rect width="${Ye}" height="${qt}" fill="url(#grid)" />
|
|||
|
|
<circle cx="${Qg}" cy="${Jg}" r="${Yg}" fill="url(#halo)" />
|
|||
|
|
<circle cx="${Xg}" cy="${Zg}" r="${eb}" fill="#ffffff" opacity="0.11" />
|
|||
|
|
<rect x="${Pe}" y="${Pe}" width="${zi}" height="${dc}" rx="${Hl}" fill="#ffffff" opacity="0.14" />
|
|||
|
|
<rect x="${xt}" y="${xt}" width="${Hg}" height="${zg}" rx="${Math.round(Hl*.72)}" fill="#0f172a" opacity="0.24" />
|
|||
|
|
<text x="${xt+Math.round(x*.035)}" y="${Ve}" fill="#ffffff" opacity="0.72" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${ha}" font-weight="700">IMAGESTUDIO TEST ${ae}</text>
|
|||
|
|
<text x="${xt+Math.round(x*.035)}" y="${Cl}" fill="#ffffff" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Ne}" font-weight="800">${ve}</text>
|
|||
|
|
<text x="${xt+Math.round(x*.035)}" y="${_}" fill="#ffffff" opacity="0.78" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${rl}">${we}</text>
|
|||
|
|
<text x="${tb}" y="${Ve+Math.round(x*.02)}" text-anchor="middle" fill="#ffffff" opacity="0.86" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Ct}" font-weight="900">${ae}</text>
|
|||
|
|
<text x="${Ye-Pe}" y="${qt-Math.round(Pe*.35)}" text-anchor="end" fill="#ffffff" opacity="0.72" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Math.max(18,Math.round(x*.027))}" font-weight="800">${lb}</text>
|
|||
|
|
</svg>`;return`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(ab)}`}function Og(t){const a=t.match(/(\d+)\s*x\s*(\d+)/i);if(!a)return[4,3];const s=Number(a[1]),p=Number(a[2]);if(!Number.isFinite(s)||!Number.isFinite(p)||s<=0||p<=0)return[4,3];const y=Dg(s,p);return[Math.round(s/y),Math.round(p/y)]}function Dg(t,a){let s=Math.abs(Math.round(t)),p=Math.abs(Math.round(a));for(;p;){const y=s%p;s=p,p=y}return s||1}function sc(t){return t.replace(/[&<>"']/g,a=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[a]??a)}function Rt(t){return"title"in t&&t.title?t.title:t.node_id||t.workflow_id||t.profile_id||sl(t.image_id)}function Nt(t){return t.thumbnail_url||t.image_url||""}function Vg(t){if(t.status==="confirmed_unsupported")return!1;if(t.dialect==="openai_images"||t.dialect==="comfyui")return!0;const a=t.capabilities||{};return!!(a.text_to_image||a.image_generation||a.workflow_graph||Object.keys(a).some(s=>["text_to_image","image_generation","workflow_graph"].includes(s)))}function Fg(t,a,s){return Math.max(a,Math.min(s,t))}function Ug(){const t=localStorage.getItem($l.theme);(t==="light"||t==="dark")&&(Ul.value=t),Ba.value=localStorage.getItem($l.primary)||Ba.value,Ta.value=localStorage.getItem($l.accent)||Ta.value;const a=localStorage.getItem($l.navigationPinned);Rl.value=a===null||a==="true",Wn.value=Rl.value,_l.value=uc(localStorage.getItem($l.readNotifications)),jn.value=uc(localStorage.getItem($l.dismissedNotifications))}function Wg(){localStorage.setItem($l.theme,Ul.value),localStorage.setItem($l.primary,Ba.value),localStorage.setItem($l.accent,Ta.value),localStorage.setItem($l.navigationPinned,String(Rl.value)),localStorage.setItem($l.readNotifications,JSON.stringify(_l.value)),localStorage.setItem($l.dismissedNotifications,JSON.stringify(jn.value))}function uc(t){if(!t)return[];try{const a=JSON.parse(t);return Array.isArray(a)?a.filter(s=>typeof s=="string"):[]}catch{return[]}}function ya(t,a){const s=Rs(t);return s?`rgba(${s.r}, ${s.g}, ${s.b}, ${a})`:`rgba(118, 104, 232, ${a})`}function Ms(t,a,s){const p=Rs(t),y=Rs(a);if(!p||!y)return t;const h=Math.min(1,Math.max(0,s));return`#${Es(p.r*(1-h)+y.r*h)}${Es(p.g*(1-h)+y.g*h)}${Es(p.b*(1-h)+y.b*h)}`}function Es(t){return Math.round(t).toString(16).padStart(2,"0")}function Rs(t){const a=t.replace("#","");return/^[0-9a-fA-F]{6}$/.test(a)?{r:Number.parseInt(a.slice(0,2),16),g:Number.parseInt(a.slice(2,4),16),b:Number.parseInt(a.slice(4,6),16)}:null}function Ut(t,a){const s=t==null?void 0:t[a];return typeof s=="string"?s:""}function jg(t){return!Hi(t)||typeof t.task_id!="string"?null:{task_id:t.task_id,task_type:typeof t.task_type=="string"?t.task_type:"generation",status:typeof t.status=="string"?t.status:"created",progress:typeof t.progress=="number"?t.progress:0,created_at:typeof t.created_at=="string"?t.created_at:"",updated_at:typeof t.updated_at=="string"?t.updated_at:"",profile_id:typeof t.profile_id=="string"?t.profile_id:null,workflow_id:typeof t.workflow_id=="string"?t.workflow_id:null,node_id:typeof t.node_id=="string"?t.node_id:null,model_route:typeof t.model_route=="string"?t.model_route:null,idempotency_key:typeof t.idempotency_key=="string"?t.idempotency_key:null,request:Hi(t.request)?t.request:void 0,result:Hi(t.result)?t.result:void 0,metadata:Hi(t.metadata)?t.metadata:void 0,error_message:typeof t.error_message=="string"?t.error_message:null}}function Kg(t){return!!t}function Hi(t){return!!(t&&typeof t=="object"&&!Array.isArray(t))}function Gg(t){return wa(t,a=>a.id)}function Be(t){return sd(t)}return(t,a)=>{var s,p,y,h,w,B,ae,ve,we,ke,_e,rt,Ye,qt;return f(),v("main",{class:ie(["navigation-shell",{"rail-collapsed":!Wn.value}]),"data-theme":Ul.value,style:At(Cv.value)},[Ue(Y1,{items:Te(C_),"active-key":ue.value,"plugin-version":((s=I.value)==null?void 0:s.plugin_version)??"v3",expanded:Wn.value,pinned:Rl.value,onSelect:Xv,onReveal:fs,onScheduleHide:a[0]||(a[0]=x=>Vi()),onTogglePinned:em},null,8,["items","active-key","plugin-version","expanded","pinned"]),l("section",cI,[l("header",fI,[l("div",pI,[l("span",null,d(qp.value.label),1),l("h
|
|||
|
|
身份:近未来港区巡查员\r
|
|||
|
|
性格:冷静、可靠、行动快\r
|
|||
|
|
外观:黑色短发,青绿色眼睛\r
|
|||
|
|
服装:轻机能外套、短靴、发光臂章\r
|
|||
|
|
避雷:低质量、结构错误`},null,512),[[Fe,gi.value]])]),l("aside",P4,[l("header",null,[l("div",null,[a[158]||(a[158]=l("span",null,"识别预览",-1)),l("strong",null,d(Np.value)+" / "+d(Kr.value.length),1)]),l("em",null,d(Gn.value?`${Gn.value.length} 字`:"待粘贴"),1)]),l("dl",null,[(f(!0),v(W,null,ee(Kr.value,_=>(f(),v("div",{key:_.key,class:ie({pending:Gn.value&&!_.recognized})},[l("dt",null,[dl(d(_.label)+" ",1),l("span",null,d(_.recognized?"已识别":"待整理"),1)]),l("dd",null,d(_.value||"粘贴文本后显示"),1)],2))),128))])])]),l("footer",null,[l("span",null,d(Gn.value?"识别结果会先填入问卷,仍可在问卷里继续微调。":"等待外部角色卡文本。"),1),l("button",{type:"button",onClick:a[33]||(a[33]=_=>Mt("externalProfileImport"))},"取消"),l("button",{type:"button",disabled:!Gn.value,onClick:fg}," 识别并填入问卷 ",8,S4)])])])):X("",!0)]),_:1}),Ue(zt,{name:"viewer-fade"},{default:It(()=>[pi.value?(f(),v("div",x4,[l("section",A4,[l("header",null,[a[159]||(a[159]=l("div",null,[l("span",null,"快速角色"),l("strong",null,"创建角色档案问卷")],-1)),l("button",{type:"button",title:"关闭",onClick:a[34]||(a[34]=_=>Mt("personaQuestionnaire"))},"×")]),l("div",M4,[l("label",null,[a[160]||(a[160]=l("span",null,"角色核心",-1)),Re(l("textarea",{"onUpdate:modelValue":a[35]||(a[35]=_=>Oe.value.roleCore=_),rows:"3",placeholder:"角色名、身份、核心定位,可以只写一句。"},null,512),[[Fe,Oe.value.roleCore]])]),l("label",null,[a[161]||(a[161]=l("span",null,"性格关键词",-1)),Re(l("textarea",{"onUpdate:modelValue":a[36]||(a[36]=_=>Oe.value.personality=_),rows:"3",placeholder:"外显性格、内在矛盾、行动方式。"},null,512),[[Fe,Oe.value.personality]])]),l("label",null,[a[162]||(a[162]=l("span",null,"外观特征",-1)),Re(l("textarea",{"onUpdate:modelValue":a[37]||(a[37]=_=>Oe.value.appearance=_),rows:"3",placeholder:"发色、发型、眼睛、五官和视觉记忆点。"},null,512),[[Fe,Oe.value.appearance]])]),l("label",null,[a[163]||(a[163]=l("span",null,"服装与配饰",-1)),Re(l("textarea",{"onUpdate:modelValue":a[38]||(a[38]=_=>Oe.value.outfit=_),rows:"3",placeholder:"服装风格、配饰、武器或随身物。"},null,512),[[Fe,Oe.value.outfit]])]),l("label",null,[a[164]||(a[164]=l("span",null,"常用场景",-1)),Re(l("textarea",{"onUpdate:modelValue":a[39]||(a[39]=_=>Oe.value.scene=_),rows:"3",placeholder:"常驻地点、画面背景、适合出现的环境。"},null,512),[[Fe,Oe.value.scene]])]),l("label",null,[a[165]||(a[165]=l("span",null,"避雷内容",-1)),Re(l("textarea",{"onUpdate:modelValue":a[40]||(a[40]=_=>Oe.value.avoid=_),rows:"3",placeholder:"不想要的设计方向、负面词和禁用元素。"},null,512),[[Fe,Oe.value.avoid]])]),Ra.value==="advanced"?(f(),v(W,{key:0},[l("label",null,[a[166]||(a[166]=l("span",null,"世界观",-1)),Re(l("textarea",{"onUpdate:modelValue":a[41]||(a[41]=_=>Oe.value.worldview=_),rows:"3",placeholder:"现代、赛博、奇幻、末世、校园、古风、星际等。"},null,512),[[Fe,Oe.value.worldview]])]),l("label",null,[a[167]||(a[167]=l("span",null,"背景经历",-1)),Re(l("textarea",{"onUpdate:modelValue":a[42]||(a[42]=_=>Oe.value.background=_),rows:"3",placeholder:"所属组织、过往经历、当前处境。"},null,512),[[Fe,Oe.value.background]])]),l("label",null,[a[168]||(a[168]=l("span",null,"身高 / 身材",-1)),Re(l("textarea",{"onUpdate:modelValue":a[43]||(a[43]=_=>Oe.value.heightBuild=_),rows:"3",placeholder:"身高范围、体型、姿态气质、肤色。"},null,512),[[Fe,Oe.value.heightBuild]])]),l("label",null,[a[169]||(a[169]=l("span",null,"身体记忆点",-1)),Re(l("textarea",{"onUpdate:modelValue":a[44]||(a[44]=_=>Oe.value.bodyFeatures=_),rows:"3",placeholder:"伤疤、痣、纹身、义体、异色瞳等。"},null,512),[[Fe,Oe.value.bodyFeatures]])]),l("label",null,[a[170]||(a[170]=l("span",null,"喜好",-1)),Re(l("textarea",{"onUpdate:modelValue":a[45]||(a[45]=_=>Oe.value.likes=_),rows:"3",placeholder:"颜色、食物、饮品、兴趣、常去地点。"},null,5
|