astrbot_plugin_imagestudio/web/assets/index-WnykMXzv.js

55 行
479 KiB
JavaScript

2026-07-12 23:43:25 +08:00
var mb=Object.defineProperty;var gb=(e,n,o)=>n in e?mb(e,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[n]=o;var Ds=(e,n,o)=>gb(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 f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).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 _u(e){const n=Object.create(null);for(const o of e.split(","))n[o]=1;return o=>o in n}const it={},po=[],da=()=>{},pf=()=>!1,Pr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Sr=e=>e.startsWith("onUpdate:"),Et=Object.assign,$u=(e,n)=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)},bb=Object.prototype.hasOwnProperty,Xe=(e,n)=>bb.call(e,n),xe=Array.isArray,vo=e=>pi(e)==="[object Map]",wo=e=>pi(e)==="[object Set]",$c=e=>pi(e)==="[object Date]",Le=e=>typeof e=="function",kt=e=>typeof e=="string",Gl=e=>typeof e=="symbol",Ze=e=>e!==null&&typeof e=="object",vf=e=>(Ze(e)||Le(e))&&Le(e.then)&&Le(e.catch),mf=Object.prototype.toString,pi=e=>mf.call(e),yb=e=>pi(e).slice(8,-1),gf=e=>pi(e)==="[object Object]",Cu=e=>kt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xo=_u(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xr=e=>{const n=Object.create(null);return(o=>n[o]||(n[o]=e(o)))},hb=/-\w/g,jl=xr(e=>e.replace(hb,n=>n.slice(1).toUpperCase())),kb=/\B([A-Z])/g,cn=xr(e=>e.replace(kb,"-$1").toLowerCase()),bf=xr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Vs=xr(e=>e?`on${bf(e)}`:""),ua=(e,n)=>!Object.is(e,n),dr=(e,...n)=>{for(let o=0;o<e.length;o++)e[o](...n)},yf=(e,n,o,i=!1)=>{Object.defineProperty(e,n,{configurable:!0,enumerable:!1,writable:i,value:o})},Ar=e=>{const n=parseFloat(e);return isNaN(n)?e:n},wb=e=>{const n=kt(e)?Number(e):NaN;return isNaN(n)?e:n};let Cc;const Mr=()=>Cc||(Cc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xt(e){if(xe(e)){const n={};for(let o=0;o<e.length;o++){const i=e[o],r=kt(i)?Ib(i):xt(i);if(r)for(const u in r)n[u]=r[u]}return n}else if(kt(e)||Ze(e))return e}const _b=/;(?![^(]*\))/g,$b=/:([^]+)/,Cb=/\/\*[^]*?\*\//g;function Ib(e){const n={};return e.replace(Cb,"").split(_b).forEach(o=>{if(o){const i=o.split($b);i.length>1&&(n[i[0].trim()]=i[1].trim())}}),n}function ie(e){let n="";if(kt(e))n=e;else if(xe(e))for(let o=0;o<e.length;o++){const i=ie(e[o]);i&&(n+=i+" ")}else if(Ze(e))for(const o in e)e[o]&&(n+=o+" ");return n.trim()}const Pb="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Sb=_u(Pb);function hf(e){return!!e||e===""}function xb(e,n){if(e.length!==n.length)return!1;let o=!0;for(let i=0;o&&i<e.length;i++)o=sn(e[i],n[i]);return o}function sn(e,n){if(e===n)return!0;let o=$c(e),i=$c(n);if(o||i)return o&&i?e.getTime()===n.getTime():!1;if(o=Gl(e),i=Gl(n),o||i)return e===n;if(o=xe(e),i=xe(n),o||i)return o&&i?xb(e,n):!1;if(o=Ze(e),i=Ze(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 f in e){const m=e.hasOwnProperty(f),b=n.hasOwnProperty(f);if(m&&!b||!m&&b||!sn(e[f],n[f]))return!1}}return String(e)===String(n)}function Iu(e,n){return e.findIndex(o=>sn(o,n))}const kf=e=>!!(e&&e.__v_isRef===!0),d=e=>kt(e)?e:e==null?"":xe(e)||Ze(e)&&(e.toString===mf||!Le(e.toString))?kf(e)?d(e.value):JSON.stringify(e,wf,2):String(e),wf=(e,n)=>kf(n)?wf(e,n.value):vo(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((o,[i,r],u)=>(o[Us(i,u)+" =>"]=r,o),{})}:wo(n)?{[`Set(${n.size})`]:[...n.values()].map(o=>Us(o))}:Gl(n)?Us(n):Ze(n)&&!xe(n)&&!gf(n)?String(n):n,Us=(e,n="")=>{var o;return Gl(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 zt;class Ab{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&&zt&&(zt.active?(this.parent=zt,this.index=(zt.scopes||(zt.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=zt;try{return zt=this,n()}finally{zt=o}}}on(){++this._on===1&&(this.prevScope=zt,zt=this)}off(){if(this._on>0&&--this._on===0){if(zt===this)zt=this.prevScope;else{let n=zt;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 Mb(){return zt}let ut;const Fs=new WeakSet;class _f{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,zt&&(zt.active?zt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Fs.has(this)&&(Fs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Cf(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ic(this),If(this);const n=ut,o=Kl;ut=this,Kl=!0;try{return this.fn()}finally{Pf(this),ut=n,Kl=o,this.flags&=-3}}stop(){if(this.flags&1){for(let n=this.deps;n;n=n.nextDep)xu(n);this.deps=this.depsTail=void 0,Ic(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Fs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){iu(this)&&this.run()}get dirty(){return iu(this)}}let $f=0,Zo,ei;function Cf(e,n=!1){if(e.flags|=8,n){e.next=ei,ei=e;return}e.next=Zo,Zo=e}function Pu(){$f++}function Su(){if(--$f>0)return;if(ei){let n=ei;for(ei=void 0;n;){const o=n.next;n.next=void 0,n.flags&=-9,n=o}}let e;for(;Zo;){let n=Zo;for(Zo=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 If(e){for(let n=e.deps;n;n=n.nextDep)n.version=-1,n.prevActiveLink=n.dep.activeLink,n.dep.activeLink=n}function Pf(e){let n,o=e.depsTail,i=o;for(;i;){const r=i.prevDep;i.version===-1?(i===o&&(o=r),xu(i),Eb(i)):n=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=r}e.deps=n,e.depsTail=o}function iu(e){for(let n=e.deps;n;n=n.nextDep)if(n.dep.version!==n.version||n.dep.computed&&(Sf(n.dep.computed)||n.dep.version!==n.version))return!0;return!!e._dirty}function Sf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===oi)||(e.globalVersion=oi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!iu(e))))return;e.flags|=2;const n=e.dep,o=ut,i=Kl;ut=e,Kl=!0;try{If(e);const r=e.fn(e._value);(n.version===0||ua(r,e._value))&&(e.flags|=128,e._value=r,n.version++)}catch(r){throw n.version++,r}finally{ut=o,Kl=i,Pf(e),e.flags&=-3}}function xu(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)xu(u,!0)}!n&&!--o.sc&&o.map&&o.map.delete(o.key)}function Eb(e){const{prevDep:n,nextDep:o}=e;n&&(n.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=n,e.nextDep=void 0)}let Kl=!0;const xf=[];function ca(){xf.push(Kl),Kl=!1}function fa(){const e=xf.pop();Kl=e===void 0?!0:
* @vue/runtime-core v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function vi(e,n,o,i){try{return i?e(...i):e()}catch(r){Nr(r,n,o)}}function ql(e,n,o,i){if(Le(e)){const r=vi(e,n,o,i);return r&&vf(r)&&r.catch(u=>{Nr(u,n,o)}),r}if(xe(e)){const r=[];for(let u=0;u<e.length;u++)r.push(ql(e[u],n,o,i));return r}}function Nr(e,n,o,i=!0){const r=n?n.vnode:null,{errorHandler:u,throwUnhandledErrorInProduction:f}=n&&n.appContext.config||it;if(n){let m=n.parent;const b=n.proxy,w=`https://vuejs.org/error-reference/#runtime-${o}`;for(;m;){const g=m.ec;if(g){for(let M=0;M<g.length;M++)if(g[M](e,b,w)===!1)return}m=m.parent}if(u){ca(),vi(u,null,10,[e,b,w]),fa();return}}ay(e,o,r,i,f)}function ay(e,n,o,i=!0,r=!1){if(r)throw e;console.error(e)}const nl=[];let oa=-1;const mo=[];let rn=null,fo=0;const Lf=Promise.resolve();let yr=null;function Ht(e){const n=yr||Lf;return e?n.then(this?e.bind(this):e):n}function ny(e){let n=oa+1,o=nl.length;for(;n<o;){const i=n+o>>>1,r=nl[i],u=ri(r);u<e||u===e&&r.flags&2?n=i+1:o=i}return n}function Bu(e){if(!(e.flags&1)){const n=ri(e),o=nl[nl.length-1];!o||!(e.flags&2)&&n>=ri(o)?nl.push(e):nl.splice(ny(n),0,e),e.flags|=1,Of()}}function Of(){yr||(yr=Lf.then(Vf))}function oy(e){xe(e)?mo.push(...e):rn&&e.id===-1?rn.splice(fo+1,0,e):e.flags&1||(mo.push(e),e.flags|=1),Of()}function Sc(e,n,o=oa+1){for(;o<nl.length;o++){const i=nl[o];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;nl.splice(o,1),o--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function Df(e){if(mo.length){const n=[...new Set(mo)].sort((o,i)=>ri(o)-ri(i));if(mo.length=0,rn){rn.push(...n);return}for(rn=n,fo=0;fo<rn.length;fo++){const o=rn[fo];o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2}rn=null,fo=0}}const ri=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Vf(e){try{for(oa=0;oa<nl.length;oa++){const n=nl[oa];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),vi(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;oa<nl.length;oa++){const n=nl[oa];n&&(n.flags&=-2)}oa=-1,nl.length=0,Df(),yr=null,(nl.length||mo.length)&&Vf()}}let el=null,Uf=null;function hr(e){const n=el;return el=e,Uf=e&&e.type.__scopeId||null,n}function It(e,n=el,o){if(!n||e._n)return e;const i=(...r)=>{i._d&&_r(-1);const u=hr(n);let f;try{f=e(...r)}finally{hr(u),i._d&&_r(1)}return f};return i._n=!0,i._c=!0,i._d=!0,i}function me(e,n){if(el===null)return e;const o=Lr(el),i=e.dirs||(e.dirs=[]);for(let r=0;r<n.length;r++){let[u,f,m,b=it]=n[r];u&&(Le(u)&&(u={mounted:u,updated:u}),u.deep&&Ta(f),i.push({dir:u,instance:o,value:f,oldValue:void 0,arg:m,modifiers:b}))}return e}function Bn(e,n,o,i){const r=e.dirs,u=n&&n.dirs;for(let f=0;f<r.length;f++){const m=r[f];u&&(m.oldValue=u[f].value);let b=m.dir[i];b&&(ca(),ql(b,o,8,[e.el,m,e,n]),fa())}}function iy(e,n){if(ol){let o=ol.provides;const i=ol.parent&&ol.parent.provides;i===o&&(o=ol.provides=Object.create(i)),o[e]=n}}function cr(e,n,o=!1){const i=Du();if(i||bo){let r=bo?bo._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 ry=Symbol.for("v-scx"),sy=()=>cr(ry);function He(e,n,o){return Ff(e,n,o)}function Ff(e,n,o=it){const{immediate:i,deep:r,flush:u,once:f}=o,m=Et({},o),b=n&&i||!n&&u!=="post";let w;if(ci){if(u==="sync"){const h=sy();w=h.__watcherHandles||(h.__watcherHandles=[])}else if(!b){const h=()=>{};return h.stop=da,h.resume=da,h.pause=da,h}}const g=ol;m.call=(h,C,V)=>ql(h,g,C,V);let M=!1;u==="post"?m.scheduler=h=>{cl(h,g&&g.suspense)}:u!=="sync"&&(M=!0,m.scheduler=(h,C)=>{C?h():Bu(h)}),m.augmentJob=h=>{n&&(h.flags|=4),M&&(h.flags|=2,g&&(h.id=g.uid,h.i=g))};const U=ly(e,n,m);return ci&&(w?w.push(U):b&&U()),U}function uy(e,n,o){const i=this.proxy,r=kt(e)?e.includes(".")?Wf(i,e):()=>i[e]:e.bind(i,i);let u;Le(n)?u=n:(u=n.handler,o=n);const f=gi(this),m=Ff(r,u.bind(i),o);return f(),m}function Wf(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 dy=Symbol("_vte"),jf=e=>e.__isTeleport,Nl=Symbol("_leaveCb"),Ko=Symbol("_enterCb");function Kf(){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 gu;const Fc=typeof window<"u"&&window.trustedTypes;if(Fc)try{gu=Fc.createPolicy("vue",{createHTML:e=>e})}catch{}const _p=gu?e=>gu.createHTML(e):e=>e,u1="http://www.w3.org/2000/svg",d1="http://www.w3.org/1998/Math/MathML",Na=typeof document<"u"?document:null,Wc=Na&&Na.createElement("template"),c1={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"?Na.createElementNS(u1,e):n==="mathml"?Na.createElementNS(d1,e):o?Na.createElement(e,{is:o}):Na.createElement(e);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>Na.createTextNode(e),createComment:e=>Na.createComment(e),setText:(e,n)=>{e.nodeValue=n},setElementText:(e,n)=>{e.textContent=n},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Na.querySelector(e),setScopeId(e,n){e.setAttribute(n,"")},insertStaticContent(e,n,o,i,r,u){const f=o?o.previousSibling:n.lastChild;if(r&&(r===u||r.nextSibling))for(;n.insertBefore(r.cloneNode(!0),o),!(r===u||!(r=r.nextSibling)););else{Wc.innerHTML=_p(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const m=Wc.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[f?f.nextSibling:n.firstChild,o?o.previousSibling:n.lastChild]}},tn="transition",Go="animation",ho=Symbol("_vtc"),$p={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},Cp=Et({},Gf,$p),f1=e=>(e.displayName="Transition",e.props=Cp,e),Yt=f1((e,{slots:n})=>r1(fy,Ip(e),n)),qn=(e,n=[])=>{xe(e)?e.forEach(o=>o(...n)):e&&e(...n)},jc=e=>e?xe(e)?e.some(n=>n.length>1):e.length>1:!1;function Ip(e){const n={};for(const ae in e)ae in $p||(n[ae]=e[ae]);if(e.css===!1)return n;const{name:o="v",type:i,duration:r,enterFromClass:u=`${o}-enter-from`,enterActiveClass:f=`${o}-enter-active`,enterToClass:m=`${o}-enter-to`,appearFromClass:b=u,appearActiveClass:w=f,appearToClass:g=m,leaveFromClass:M=`${o}-leave-from`,leaveActiveClass:U=`${o}-leave-active`,leaveToClass:h=`${o}-leave-to`}=e,C=p1(r),V=C&&C[0],Z=C&&C[1],{onBeforeEnter:R,onEnter:N,onEnterCancelled:P,onLeave:F,onLeaveCancelled:fe,onBeforeAppear:ge=R,onAppear:Ae=N,onAppearCancelled:Se=P}=n,L=(ae,ke,G,K)=>{ae._enterCancelled=K,nn(ae,ke?g:m),nn(ae,ke?w:f),G&&G()},D=(ae,ke)=>{ae._isLeaving=!1,nn(ae,M),nn(ae,h),nn(ae,U),ke&&ke()},T=ae=>(ke,G)=>{const K=ae?Ae:N,Me=()=>L(ke,ae,G);qn(K,[ke,Me]),Kc(()=>{nn(ke,ae?b:u),na(ke,ae?g:m),jc(K)||Gc(ke,i,V,Me)})};return Et(n,{onBeforeEnter(ae){qn(R,[ae]),na(ae,u),na(ae,f)},onBeforeAppear(ae){qn(ge,[ae]),na(ae,b),na(ae,w)},onEnter:T(!1),onAppear:T(!0),onLeave(ae,ke){ae._isLeaving=!0;const G=()=>D(ae,ke);na(ae,M),ae._enterCancelled?(na(ae,U),bu(ae)):(bu(ae),na(ae,U)),Kc(()=>{ae._isLeaving&&(nn(ae,M),na(ae,h),jc(F)||Gc(ae,i,Z,G))}),qn(F,[ae,G])},onEnterCancelled(ae){L(ae,!1,void 0,!0),qn(P,[ae])},onAppearCancelled(ae){L(ae,!0,void 0,!0),qn(Se,[ae])},onLeaveCancelled(ae){D(ae),qn(fe,[ae])}})}function p1(e){if(e==null)return null;if(Ze(e))return[Hs(e.enter),Hs(e.leave)];{const n=Hs(e);return[n,n]}}function Hs(e){return wb(e)}function na(e,n){n.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[ho]||(e[ho]=new Set)).add(n)}function nn(e,n){n.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const o=e[ho];o&&(o.delete(n),o.size||(e[ho]=void 0))}function Kc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let v1=0;function Gc(e,n,o,i){const r=e._endId=++v1,u=()=>{r===e._endId&&i()};if(o!=null)return setTimeout(u,o);const{type:f,timeout:m,propCount:b}=Pp(e,n);if(!f)return i();const w=f+"end";let g=0;const M=()=>{e.removeEventListener(w,U),u()},U=h=>{h.target===e&&++g>=b&&M()};setTimeout(()=>{g<b&&M()},m+1),e.addEventListener(w,U)}function Pp(e,n){const o=window.getComputedStyle(e),i=C=>(o[C]||"").split(", "),r=i(`${tn}
`)}function f(U,h){const C=Array.from(new Set(h.replace(/,/g,",").split(/[\n,]/).map(V=>V.trim()).filter(Boolean)));i("update:modelValue",{...o.modelValue,[U]:C})}function m(U,h){i("update:modelValue",{...o.modelValue,[U]:h})}const b=B(()=>r("group_allowlist").length),w=B(()=>r("user_allowlist").length),g=B(()=>r("adult_group_allowlist").length),M=B(()=>r("adult_user_allowlist").length);return(U,h)=>(c(),p("section",gC,[h[24]||(h[24]=Ou('<div class="intro" data-v-8371303e><span data-v-8371303e>AstrBot 聊天指令</span><strong data-v-8371303e>群聊与用户白名单</strong><p data-v-8371303e>每行填写一个平台提供的群聊 ID 或用户 ID,也支持用逗号分隔。白名单为空时不会放行对应条件。</p></div><div class="rules" data-v-8371303e><article data-v-8371303e><b data-v-8371303e>快速角色 / 角色工作流</b><strong data-v-8371303e>群聊命中 + 用户命中</strong><p data-v-8371303e>两个白名单必须同时命中才允许使用,避免群内未授权成员启动完整工作流。</p></article><article data-v-8371303e><b data-v-8371303e>单图生成</b><strong data-v-8371303e>群聊命中 或 用户命中</strong><p data-v-8371303e>任意一个白名单命中即可使用;用户白名单也可以在私聊中放行单图。</p></article></div>',2)),t("div",bC,[t("label",null,[t("span",null,[h[10]||(h[10]=at("群聊白名单 ",-1)),t("em",null,d(b.value)+" 项",1)]),t("textarea",{value:u("group_allowlist"),disabled:e.disabled,rows:"10",placeholder:`每行一个群聊 ID
例如:123456789`,onInput:h[0]||(h[0]=C=>f("group_allowlist",C.target.value))},null,40,yC),h[11]||(h[11]=t("small",null,"用于判断命令所在群聊是否获得授权。",-1))]),t("label",null,[t("span",null,[h[12]||(h[12]=at("用户白名单 ",-1)),t("em",null,d(w.value)+" 项",1)]),t("textarea",{value:u("user_allowlist"),disabled:e.disabled,rows:"10",placeholder:`每行一个用户 ID
例如:987654321`,onInput:h[1]||(h[1]=C=>f("user_allowlist",C.target.value))},null,40,hC),h[13]||(h[13]=t("small",null,"使用 AstrBot 事件返回的平台用户 ID,不使用昵称。",-1))])]),h[25]||(h[25]=t("div",{class:"adult-intro"},[t("div",null,[t("span",null,"成人内容独立授权"),t("strong",null,"必须同时通过内容审核与成人白名单")]),t("p",null,"这些名单不会放宽恐怖主义、高危暴力、现实伤害或其他禁止内容。群聊内要求成人群聊与成人用户同时命中;私聊要求成人用户命中。")],-1)),t("div",kC,[t("label",null,[t("span",null,[h[14]||(h[14]=at("成人内容群聊白名单 ",-1)),t("em",null,d(g.value)+" 项",1)]),t("textarea",{value:u("adult_group_allowlist"),disabled:e.disabled,rows:"6",placeholder:"每行一个允许成人路由的群聊 ID",onInput:h[2]||(h[2]=C=>f("adult_group_allowlist",C.target.value))},null,40,wC),h[15]||(h[15]=t("small",null,"仅影响通过审核的 adult_allowed 内容。",-1))]),t("label",null,[t("span",null,[h[16]||(h[16]=at("成人内容用户白名单 ",-1)),t("em",null,d(M.value)+" 项",1)]),t("textarea",{value:u("adult_user_allowlist"),disabled:e.disabled,rows:"6",placeholder:"每行一个允许成人路由的用户 ID",onInput:h[3]||(h[3]=C=>f("adult_user_allowlist",C.target.value))},null,40,_C),h[17]||(h[17]=t("small",null,"不会继承普通用户白名单,必须单独授权。",-1))])]),t("div",$C,[t("label",null,[h[18]||(h[18]=t("span",null,"用户并发上限",-1)),t("input",{type:"number",min:"1",value:Number(e.modelValue.user_concurrency_limit||2),disabled:e.disabled,onInput:h[4]||(h[4]=C=>m("user_concurrency_limit",Number(C.target.value)))},null,40,CC)]),t("label",null,[h[19]||(h[19]=t("span",null,"群聊并发上限",-1)),t("input",{type:"number",min:"1",value:Number(e.modelValue.group_concurrency_limit||5),disabled:e.disabled,onInput:h[5]||(h[5]=C=>m("group_concurrency_limit",Number(C.target.value)))},null,40,IC)]),t("label",null,[h[20]||(h[20]=t("span",null,"用户每日生成上限",-1)),t("input",{type:"number",min:"1",value:Number(e.modelValue.daily_user_generation_limit||30),disabled:e.disabled,onInput:h[6]||(h[6]=C=>m("daily_user_generation_limit",Number(C.target.value)))},null,40,PC)]),t("label",null,[h[21]||(h[21]=t("span",null,"群聊每日生成上限",-1)),t("input",{type:"number",min:"1",value:Number(e.modelValue.daily_group_generation_limit||100),disabled:e.disabled,onInput:h[7]||(h[7]=C=>m("daily_group_generation_limit",Number(C.target.value)))},null,40,SC)]),t("label",xC,[t("input",{type:"checkbox",checked:e.modelValue.allow_2k!==!1,disabled:e.disabled,onChange:h[8]||(h[8]=C=>m("allow_2k",C.target.checked))},null,40,AC),h[22]||(h[22]=t("span",null,"允许聊天使用 2K",-1))]),t("label",MC,[t("input",{type:"checkbox",checked:e.modelValue.allow_4k===!0,disabled:e.disabled,onChange:h[9]||(h[9]=C=>m("allow_4k",C.target.checked))},null,40,EC),h[23]||(h[23]=t("span",null,"允许聊天使用 4K",-1))])])]))}}),RC=At(NC,[["__scopeId","data-v-8371303e"]]),BC={class:"governance"},TC={class:"preview-card"},qC=["disabled"],LC={class:"preview-choice"},OC={key:1,class:"preview-error"},DC={key:2,class:"preview-result"},VC={class:"card"},UC={class:"switch"},FC=["checked","disabled"],WC={class:"grid"},jC=["value","disabled"],KC=["value"],GC=["value","disabled"],zC={class:"entries"},HC=["checked","disabled","onChange"],QC={class:"card"},JC={class:"switch"},YC=["checked","disabled"],XC={class:"grid"},ZC=["value","disabled"],eI=["value"],tI=["value","disabled"],lI={class:"card routing"},aI={class:"switch"},nI=["checked","disabled"],oI={class:"route-pair"},iI=["value","disabled"],rI=["value"],sI=["value","disabled"],uI=["value"],dI={class:"entries"},cI=["checked","disabled","onChange"],fI={class:"card"},pI={class:"switch"},vI=["checked","disabled"],mI={class:"grid"},gI=["value","disabled"],bI=["value"],yI=["value","disabled"],hI={class:"retention"},kI=["value","disabled"],wI=["value","disabled"],_I=["value","disabled"],$I=pt({__name:"PromptGovernancePanel",props:{modelValue:{},adapters:{},disabled:{
`)}function Kd(l){const a=Ge.value,s=Fe.value;return{source:"standalone_web_workflow_chat",ui_node_id:Re.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:l,persona_split_fields_ready:Wi.value,persona_split_fields_total:Fi.value,selected_material_ids:ws(),selected_draft_image_ids:gt.value.filter(hl).map(v=>v.image_id)}}async function xs(){var s;const l=pl.value.trim();if(!l||je.value)return;if(!Zl.value){$e.value="请先在设置中配置并确认一个生图模型。";return}await Ns({promptPatch:jd(l),metadata:Kd(l)})&&(jn.value=l,_o.value=`${Ge.value.title} / ${((s=Zl.value)==null?void 0:s.label)??H.value}`)}function Gd(){!jt.value||!Bt(jt.value)||(Qn.value="generation",rl("imageViewer"),Yi(),Yl.value=!0)}function zd(l){const a=(l?ji.value.find(s=>s.image_id===l):null)??Za.value;!a||!Bt(a)||(Qt.value=a.image_id,Gd())}function Dm(){gt.value.length&&(Qn.value="workflowCompare",rl("imageViewer"),Yi(),Yl.value=!0)}function Hd(l){var a;l&&Vd(l),(a=Kt.value)!=null&&a.imageUrl&&(Qn.value="quickProfile",rl("imageViewer"),Yi(),Yl.value=!0)}function As(){Yl.value=!1,kn.value=!1}function Yi(){pa.value=1,Ka.value={x:0,y:0}}function Vm(l){pa.value=Xg(Number((pa.value+l).toFixed(2)),.5,4),pa.value<=1&&(Ka.value={x:0,y:0})}function Um(l){Vm(l.deltaY<0?.12:-.12)}function Fm(){if(pa.value>1){Yi();return}pa.value=2.2,Ka.value={x:0,y:0}}function Wm(l){pa.value<=1||(kn.value=!0,wn.value={pointerId:l.pointerId,x:l.clientX,y:l.clientY,offsetX:Ka.value.x,offsetY:Ka.value.y},l.currentTarget instanceof HTMLElement&&l.currentTarget.setPointerCapture(l.pointerId))}function jm(l){!kn.value||l.pointerId!==wn.value.pointerId||(Ka.value={x:wn.value.offsetX+l.clientX-wn.value.x,y:wn.value.offsetY+l.clientY-wn.value.y})}function Ms(l){!kn.value||l.pointerId!==wn.value.pointerId||(kn.value=!1,l.currentTarget instanceof HTMLElement&&l.currentTarget.hasPointerCapture(l.pointerId)&&l.currentTarget.releasePointerCapture(l.pointerId))}function Qd(){rl("search"),Ur.value=!0,Hn.value=!0,Il.value=0}function Jd(l){if(!An.value.length)return;const a=An.value.length;Il.value=(Il.value+l+a)%a}function Km(){const l=An.value[Il.value];l&&$d(l)}function io(){rl("personaQuestionnaire"),Co.value="",ki.value=!0}function Yd(){rl("externalProfileImport"),_i.value=!0,Ht(()=>{var l;(l=document.querySelector("[data-profile-import-input]"))==null||l.focus()})}function Gm(){rl("quickProfileDetail"),wi.value=!0}function zm(l){te.value=l,rl("materialDetail"),We.value=!0}async function Hm(l){if(l.enabled){if(l.actionKey==="personaQuestionnaire"){io();return}if(l.actionKey==="workflowCompare"){Dm();return}if(l.actionKey==="externalProfileImport"){Yd();return}if(l.actionKey==="workflowPersonaSplit"){await eg();return}if(l.actionKey==="workflowSaveVersion"){await fg();return}if(l.actionKey==="workflowCreateBranchFromNode"){await Zm();return}if(l.actionKey==="workflowNodeGenerate"){l.id==="hires"&&Re.value!=="hires-fix"&&(Wl("hires-fix"),await Ht()),await Ns();return}if(l.actionKey==="workflowNodeRetry"){await Ns({retry:!0});return}if(l.actionKey==="workflowNodeComplete"){await tg();return}if(l.actionKey==="workflowNodeReview"){await ng();return}if(l.actionKey==="workflowReviewAdopt"){await ug();return}if(l.actionKey==="workflowPromptPlanSave"){await lg();return}if(l.actionKey==="workflowPromptPlanNext"){Wl("prompt-plan");return}if(l.actionKey==="workflowMaterialBindSave"){await ag();return}if(l.actionKey==="workflowArchiveFinal"){await Qm();return}l.nav&&l.module&&ht(l.nav,l.module)}}async function Qm(){const l=Fe.value;if(!l||je.value)return;const a=$t("入库");if(a){$e.value=a;return}if(!l.workflowId){$e.value="请先生成角色档案并创建后端工作流,再执行入库。";return}const s=l.workflowId,v=yl("archive",l);if(!v){$e.value="当前工作流缺少后端入库节点 final_pack。";return}const y=Nn(s).find(W=>W.node_id===v);if(y&&["completed","selected"].includes(tt(y.status
`)}}function Xi(l,a,s,v,y){return{id:l,title:a,prompt:s,negative:v,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 cg(l){const a=Ul.value,s=u.map((v,y)=>{const _=a.find(I=>I.category===v.category);return{id:`rule_${v.category}_${y+1}`,category:v.category,material_id:ks(_==null?void 0:_.id),material_label:(_==null?void 0:_.label)??"",material_group:(_==null?void 0:_.group)??(_==null?void 0:_.category)??"",material_prompt:(_==null?void 0:_.prompt)??"",material_colors:(_==null?void 0:_.colors)??[],bind_to_stages:Zd(v.category),inheritance_rule:_?`${v.category} only affects explicitly bound downstream stages.`:"do not use reference unless user explicitly selects one",reference_strength:_?ec(v.category):"弱",required:!!(_&&["风格","服装"].includes(v.category)),status:_?"ready":"pending"}});return{profile_id:l.profileId,profile_name:l.name,selected_material_ids:ws(),rules:s}}function Zd(l){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:"修复入库"}]}[l]??[{stage_id:"body-sheet",stage_title:"全身与设定图"}]}function ec(l){return l==="风格"||l==="服装"?"强":l==="构图"?"中":"弱"}async function fg(){var s;const l=Fe.value;if(!l||zn.value)return;const a=$t("保存快照");if(a){bn.value=a;return}if(!l.workflowId){bn.value="请先生成档案并创建后端工作流,再保存快照。";return}zn.value=!0,bn.value="";try{const v=await _e(O.workflowHistory(l.workflowId),{action:"save_version",title:`${l.name} / ${((s=Ge.value)==null?void 0:s.title)??"工作流快照"}`,node_id:yl(Re.value,l),include_nodes:!0,metadata:{source:"standalone_web",ui_node_id:Re.value,profile_id:l.profileId,profile_name:l.name,profile_status:l.status}});Io.value=v.created_at}catch(v){bn.value=`保存快照失败:${Be(v)}`}finally{zn.value=!1}}function yl(l,a){if(!a.workflowId)return;const v=Nn(a.workflowId).find(_=>Pa(_)===l);if(v)return v.node_id;const y=a.workflowNodeIds??[];if(l!=="brief-import"&&l==="persona-split")return y[0]}function Nn(l){var v;const a=Je.value[l]??[],s=(v=st.value[l])==null?void 0:v.current_branch;return s?a.filter(y=>y.branch_name===s):a}function tc(l){const a=[...gt.value,...Za.value?[Za.value]:[],...l?il.value[l]??[]:[]];return Array.from(new Set(a.filter(hl).map(s=>s.image_id)))}function hl(l){if(l.image_id.startsWith("mock-")||l.image_uri.startsWith("mock://"))return!1;const a="metadata"in l&&l.metadata&&typeof l.metadata=="object"?l.metadata:{},s=a.mock===!0||a.mock===1||a.mock==="true",v=Object.prototype.hasOwnProperty.call(a,"provider_error")&&a.provider_error!=null,y=a.fallback_used===!0||a.degraded===!0;return!s&&!v&&!y}async function pg(){if(!td.value||$o.value)return;const l=$t("生成档案");if(l){Co.value=l;return}Uu.value+=1;const a=hg(Oe.value,Uu.value);$o.value=!0,Co.value="";try{const s=await _e(O.quickProfileDraft,vg(a,Oe.value,Va.value)),v={...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 _e(O.quickProfileDraftSave,mg(v,Oe.value,Va.value,s)),I={...bg(y,v),status:"文本档案已保存"};vn.value=[I,...vn.value.filter(W=>W.id!==I.id)],Ua.value=[y.profile,...Ua.value.filter(W=>W.profile_id!==y.profile.profile_id)],Lt.value={...Lt.value,[y.profile.profile_id]:y.workflow?[y.workflow]:[]},Ji(I),vt.value="quickProfile",Mt("personaQuestionnaire"),Ht(()
<svg xmlns="http://www.w3.org/2000/svg" width="${ze}" height="${Tt}" viewBox="0 0 ${ze} ${Tt}" preserveAspectRatio="xMidYMid meet">
<defs>
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="${_}" />
<stop offset="58%" stop-color="${I}" />
<stop offset="100%" stop-color="#111827" />
</linearGradient>
<radialGradient id="halo" cx="72%" cy="22%" r="55%">
<stop offset="0%" stop-color="${W}" stop-opacity="0.82" />
<stop offset="100%" stop-color="${W}" stop-opacity="0" />
</radialGradient>
<pattern id="grid" width="${la}" height="${la}" patternUnits="userSpaceOnUse">
<path d="M${la} 0H0V${la}" fill="none" stroke="#ffffff" stroke-opacity="0.13" stroke-width="2" />
</pattern>
</defs>
<rect width="${ze}" height="${Tt}" fill="url(#bg)" />
<rect width="${ze}" height="${Tt}" fill="url(#grid)" />
<circle cx="${ib}" cy="${rb}" r="${sb}" fill="url(#halo)" />
<circle cx="${ub}" cy="${db}" r="${cb}" fill="#ffffff" opacity="0.11" />
<rect x="${Ie}" y="${Ie}" width="${tr}" height="${_c}" rx="${ta}" fill="#ffffff" opacity="0.14" />
<rect x="${St}" y="${St}" width="${nb}" height="${ob}" rx="${Math.round(ta*.72)}" fill="#0f172a" opacity="0.24" />
<text x="${St+Math.round(E*.035)}" y="${De}" fill="#ffffff" opacity="0.72" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${xa}" font-weight="700">IMAGESTUDIO TEST ${oe}</text>
<text x="${St+Math.round(E*.035)}" y="${Al}" fill="#ffffff" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Ne}" font-weight="800">${pe}</text>
<text x="${St+Math.round(E*.035)}" y="${$}" fill="#ffffff" opacity="0.78" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${ul}">${we}</text>
<text x="${fb}" y="${De+Math.round(E*.02)}" text-anchor="middle" fill="#ffffff" opacity="0.86" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Ct}" font-weight="900">${oe}</text>
<text x="${ze-Ie}" y="${Tt-Math.round(Ie*.35)}" text-anchor="end" fill="#ffffff" opacity="0.72" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Math.max(18,Math.round(E*.027))}" font-weight="800">${pb}</text>
</svg>`;return`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(vb)}`}function Qg(l){const a=l.match(/(\d+)\s*x\s*(\d+)/i);if(!a)return[4,3];const s=Number(a[1]),v=Number(a[2]);if(!Number.isFinite(s)||!Number.isFinite(v)||s<=0||v<=0)return[4,3];const y=Jg(s,v);return[Math.round(s/y),Math.round(v/y)]}function Jg(l,a){let s=Math.abs(Math.round(l)),v=Math.abs(Math.round(a));for(;v;){const y=s%v;s=v,v=y}return s||1}function kc(l){return l.replace(/[&<>"']/g,a=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"})[a]??a)}function Rt(l){return"title"in l&&l.title?l.title:l.node_id||l.workflow_id||l.profile_id||dl(l.image_id)}function Bt(l){return l.thumbnail_url||l.image_url||""}function Yg(l){if(l.status==="confirmed_unsupported")return!1;if(l.dialect==="openai_images"||l.dialect==="comfyui")return!0;const a=l.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 Xg(l,a,s){return Math.max(a,Math.min(s,l))}function Zg(){const l=localStorage.getItem(xl.theme);(l==="light"||l==="dark")&&(Jl.value=l),Wa.value=localStorage.getItem(xl.primary)||Wa.value,ja.value=localStorage.getItem(xl.accent)||ja.value;const a=localStorage.getItem(xl.navigationPinned);Dl.value=a===null||a==="true",Jn.value=Dl.value,Pl.value=wc(localStorage.getItem(xl.readNotifications)),Yn.value=wc(localStorage.getItem(xl.dismissedNotifications))}function eb(){localStorage.setItem(xl.theme,Jl.value),localStorage.setItem(xl.primary,Wa.value),localStorage.setItem(xl.accent,ja.value),localStorage.setItem(xl.navigationPinned,String(Dl.value)),localStorage.setItem(xl.readNotifications,JSON.stringify(Pl.value)),localStorage.setItem(xl.dismissedNotifications,JSON.stringify(Yn.value))}function wc(l){if(!l)return[];try{const a=JSON.parse(l);return Array.isArray(a)?a.filter(s=>typeof s=="string"):[]}catch{return[]}}function Sa(l,a){const s=Os(l);return s?`rgba(${s.r}, ${s.g}, ${s.b}, ${a})`:`rgba(118, 104, 232, ${a})`}function qs(l,a,s){const v=Os(l),y=Os(a);if(!v||!y)return l;const _=Math.min(1,Math.max(0,s));return`#${Ls(v.r*(1-_)+y.r*_)}${Ls(v.g*(1-_)+y.g*_)}${Ls(v.b*(1-_)+y.b*_)}`}function Ls(l){return Math.round(l).toString(16).padStart(2,"0")}function Os(l){const a=l.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 Gt(l,a){const s=l==null?void 0:l[a];return typeof s=="string"?s:""}function tb(l){return!er(l)||typeof l.task_id!="string"?null:{task_id:l.task_id,task_type:typeof l.task_type=="string"?l.task_type:"generation",status:typeof l.status=="string"?l.status:"created",progress:typeof l.progress=="number"?l.progress:0,created_at:typeof l.created_at=="string"?l.created_at:"",updated_at:typeof l.updated_at=="string"?l.updated_at:"",profile_id:typeof l.profile_id=="string"?l.profile_id:null,workflow_id:typeof l.workflow_id=="string"?l.workflow_id:null,node_id:typeof l.node_id=="string"?l.node_id:null,model_route:typeof l.model_route=="string"?l.model_route:null,idempotency_key:typeof l.idempotency_key=="string"?l.idempotency_key:null,request:er(l.request)?l.request:void 0,result:er(l.result)?l.result:void 0,metadata:er(l.metadata)?l.metadata:void 0,error_message:typeof l.error_message=="string"?l.error_message:null}}function lb(l){return!!l}function er(l){return!!(l&&typeof l=="object"&&!Array.isArray(l))}function ab(l){return Ea(l,a=>a.id)}function Be(l){return gd(l)}return(l,a)=>{var s,v,y,_,I,W,oe,pe,we,ye,he,lt,ze,Tt;return c(),p("main",{class:ie(["navigation-shell",{"rail-collapsed":!Jn.value}]),"data-theme":Jl.value,style:xt(Bv.value)},[Ve(rh,{items:qe(Qw),"active-key":yt.value,"plugin-version":((s=h.value)==null?void 0:s.plugin_version)??"v3",expanded:Jn.value,pinned:Dl.value,onSelect:sm,onReveal:ys,onScheduleHide:a[0]||(a[0]=E=>zi()),onTogglePinned:dm},null,8,["items","active-key","plugin-version","expanded","pinned"]),t("section",U8,[t("header",F8,[t("div",W8,[t("span",null,d(jp.value.label),1),t("h
身份:近未来港区巡查员\r
性格:冷静、可靠、行动快\r
外观:黑色短发,青绿色眼睛\r
服装:轻机能外套、短靴、发光臂章\r
避雷:低质量、结构错误`},null,512),[[Ee,$i.value]])]),t("aside",lx,[t("header",null,[t("div",null,[a[162]||(a[162]=t("span",null,"识别预览",-1)),t("strong",null,d(Wp.value)+" / "+d(Xr.value.length),1)]),t("em",null,d(Zn.value?`${Zn.value.length} 字`:"待粘贴"),1)]),t("dl",null,[(c(!0),p(z,null,J(Xr.value,$=>(c(),p("div",{key:$.key,class:ie({pending:Zn.value&&!$.recognized})},[t("dt",null,[at(d($.label)+" ",1),t("span",null,d($.recognized?"已识别":"待整理"),1)]),t("dd",null,d($.value||"粘贴文本后显示"),1)],2))),128))])])]),t("footer",null,[t("span",null,d(Zn.value?"识别结果会先填入问卷,仍可在问卷里继续微调。":"等待外部角色卡文本。"),1),t("button",{type:"button",onClick:a[33]||(a[33]=$=>Mt("externalProfileImport"))},"取消"),t("button",{type:"button",disabled:!Zn.value,onClick:_g}," 识别并填入问卷 ",8,ax)])])])):X("",!0)]),_:1}),Ve(Yt,{name:"viewer-fade"},{default:It(()=>[ki.value?(c(),p("div",nx,[t("section",ox,[t("header",null,[a[163]||(a[163]=t("div",null,[t("span",null,"快速角色"),t("strong",null,"创建角色档案问卷")],-1)),t("button",{type:"button",title:"关闭",onClick:a[34]||(a[34]=$=>Mt("personaQuestionnaire"))},"×")]),t("div",ix,[t("label",null,[a[164]||(a[164]=t("span",null,"角色核心",-1)),me(t("textarea",{"onUpdate:modelValue":a[35]||(a[35]=$=>Oe.value.roleCore=$),rows:"3",placeholder:"角色名、身份、核心定位,可以只写一句。"},null,512),[[Ee,Oe.value.roleCore]])]),t("label",null,[a[165]||(a[165]=t("span",null,"性格关键词",-1)),me(t("textarea",{"onUpdate:modelValue":a[36]||(a[36]=$=>Oe.value.personality=$),rows:"3",placeholder:"外显性格、内在矛盾、行动方式。"},null,512),[[Ee,Oe.value.personality]])]),t("label",null,[a[166]||(a[166]=t("span",null,"外观特征",-1)),me(t("textarea",{"onUpdate:modelValue":a[37]||(a[37]=$=>Oe.value.appearance=$),rows:"3",placeholder:"发色、发型、眼睛、五官和视觉记忆点。"},null,512),[[Ee,Oe.value.appearance]])]),t("label",null,[a[167]||(a[167]=t("span",null,"服装与配饰",-1)),me(t("textarea",{"onUpdate:modelValue":a[38]||(a[38]=$=>Oe.value.outfit=$),rows:"3",placeholder:"服装风格、配饰、武器或随身物。"},null,512),[[Ee,Oe.value.outfit]])]),t("label",null,[a[168]||(a[168]=t("span",null,"常用场景",-1)),me(t("textarea",{"onUpdate:modelValue":a[39]||(a[39]=$=>Oe.value.scene=$),rows:"3",placeholder:"常驻地点、画面背景、适合出现的环境。"},null,512),[[Ee,Oe.value.scene]])]),t("label",null,[a[169]||(a[169]=t("span",null,"避雷内容",-1)),me(t("textarea",{"onUpdate:modelValue":a[40]||(a[40]=$=>Oe.value.avoid=$),rows:"3",placeholder:"不想要的设计方向、负面词和禁用元素。"},null,512),[[Ee,Oe.value.avoid]])]),Va.value==="advanced"?(c(),p(z,{key:0},[t("label",null,[a[170]||(a[170]=t("span",null,"世界观",-1)),me(t("textarea",{"onUpdate:modelValue":a[41]||(a[41]=$=>Oe.value.worldview=$),rows:"3",placeholder:"现代、赛博、奇幻、末世、校园、古风、星际等。"},null,512),[[Ee,Oe.value.worldview]])]),t("label",null,[a[171]||(a[171]=t("span",null,"背景经历",-1)),me(t("textarea",{"onUpdate:modelValue":a[42]||(a[42]=$=>Oe.value.background=$),rows:"3",placeholder:"所属组织、过往经历、当前处境。"},null,512),[[Ee,Oe.value.background]])]),t("label",null,[a[172]||(a[172]=t("span",null,"身高 / 身材",-1)),me(t("textarea",{"onUpdate:modelValue":a[43]||(a[43]=$=>Oe.value.heightBuild=$),rows:"3",placeholder:"身高范围、体型、姿态气质、肤色。"},null,512),[[Ee,Oe.value.heightBuild]])]),t("label",null,[a[173]||(a[173]=t("span",null,"身体记忆点",-1)),me(t("textarea",{"onUpdate:modelValue":a[44]||(a[44]=$=>Oe.value.bodyFeatures=$),rows:"3",placeholder:"伤疤、痣、纹身、义体、异色瞳等。"},null,512),[[Ee,Oe.value.bodyFeatures]])]),t("label",null,[a[174]||(a[174]=t("span",null,"喜好",-1)),me(t("textarea",{"onUpdate:modelValue":a[45]||(a[45]=$=>Oe.value.likes=$),rows:"3",placeholder:"颜色、食物、饮品、兴趣、常去地点。"},null,51