56 行
494 KiB
JavaScript
56 行
494 KiB
JavaScript
|
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./GalleryPage-DNvAwG5o.js","./GalleryPage-CO9AJshc.css","./LogsPage-BIzSPkGn.js","./LogsPage-Ce5F6o-S.css","./ProfilesPage-P9s_5Whu.js","./ProfilesPage-BhAEIjwT.css","./SettingsPage-BjJYNQf_.js","./SettingsPage-CK4jtQ0U.css","./WorkflowCompareDialog-nQjmcR_w.js","./WorkflowCompareDialog-C2cuJwjO.css","./WorkflowBranchPanel-CxwgBQ6l.js","./WorkflowBranchPanel-BG7oVHdw.css","./WorkflowCandidatePool-AGpyM_az.js","./WorkflowCandidatePool-CX-xeKt7.css","./WorkflowComposer-D_hlgW5v.js","./WorkflowComposer-CqjheHet.css","./WorkflowDependencyContextCard-DFGlO8G0.js","./WorkflowDependencyContextCard-phUQBDon.css","./WorkflowGenerationReviewDialog-DIbqzK16.js","./WorkflowGenerationReviewDialog-DFAKFtpF.css","./WorkflowMaterialDrawer-BZTAWSgf.js","./WorkflowMaterialDrawer-CrkvaAQI.css","./WorkflowRoundPanel-6aAaOzDJ.js","./WorkflowRoundPanel-DlXcIPll.css"])))=>i.map(i=>d[i]);
|
|||
|
|
var jh=Object.defineProperty;var Kh=(t,n,o)=>n in t?jh(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o;var Ac=(t,n,o)=>Kh(t,typeof n!="symbol"?n+"":n,o);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))i(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const g of d.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&i(g)}).observe(document,{childList:!0,subtree:!0});function o(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(u){if(u.ep)return;u.ep=!0;const d=o(u);fetch(u.href,d)}})();/**
|
|||
|
|
* @vue/shared v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function pf(t){const n=Object.create(null);for(const o of t.split(","))n[o]=1;return o=>o in n}const It={},hi=[],Kl=()=>{},Rm=()=>!1,nd=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),ld=t=>t.startsWith("onUpdate:"),fa=Object.assign,mf=(t,n)=>{const o=t.indexOf(n);o>-1&&t.splice(o,1)},Vh=Object.prototype.hasOwnProperty,wt=(t,n)=>Vh.call(t,n),qe=Array.isArray,ki=t=>xs(t)==="[object Map]",Ei=t=>xs(t)==="[object Set]",qp=t=>xs(t)==="[object Date]",Ke=t=>typeof t=="function",Yt=t=>typeof t=="string",_l=t=>typeof t=="symbol",ht=t=>t!==null&&typeof t=="object",Em=t=>(ht(t)||Ke(t))&&Ke(t.then)&&Ke(t.catch),Nm=Object.prototype.toString,xs=t=>Nm.call(t),Gh=t=>xs(t).slice(8,-1),Tm=t=>xs(t)==="[object Object]",gf=t=>Yt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ms=pf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),od=t=>{const n=Object.create(null);return(o=>n[o]||(n[o]=t(o)))},zh=/-\w/g,gl=od(t=>t.replace(zh,n=>n.slice(1).toUpperCase())),Hh=/\B([A-Z])/g,ur=od(t=>t.replace(Hh,"-$1").toLowerCase()),Bm=od(t=>t.charAt(0).toUpperCase()+t.slice(1)),Mc=od(t=>t?`on${Bm(t)}`:""),jl=(t,n)=>!Object.is(t,n),Du=(t,...n)=>{for(let o=0;o<t.length;o++)t[o](...n)},Lm=(t,n,o,i=!1)=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,writable:i,value:o})},rd=t=>{const n=parseFloat(t);return isNaN(n)?t:n},Qh=t=>{const n=Yt(t)?Number(t):NaN;return isNaN(n)?t:n};let Op;const id=()=>Op||(Op=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ca(t){if(qe(t)){const n={};for(let o=0;o<t.length;o++){const i=t[o],u=Yt(i)?Zh(i):ca(i);if(u)for(const d in u)n[d]=u[d]}return n}else if(Yt(t)||ht(t))return t}const Yh=/;(?![^(]*\))/g,Jh=/:([^]+)/,Xh=/\/\*[^]*?\*\//g;function Zh(t){const n={};return t.replace(Xh,"").split(Yh).forEach(o=>{if(o){const i=o.split(Jh);i.length>1&&(n[i[0].trim()]=i[1].trim())}}),n}function fe(t){let n="";if(Yt(t))n=t;else if(qe(t))for(let o=0;o<t.length;o++){const i=fe(t[o]);i&&(n+=i+" ")}else if(ht(t))for(const o in t)t[o]&&(n+=o+" ");return n.trim()}const ek="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",tk=pf(ek);function qm(t){return!!t||t===""}function ak(t,n){if(t.length!==n.length)return!1;let o=!0;for(let i=0;o&&i<t.length;i++)o=rr(t[i],n[i]);return o}function rr(t,n){if(t===n)return!0;let o=qp(t),i=qp(n);if(o||i)return o&&i?t.getTime()===n.getTime():!1;if(o=_l(t),i=_l(n),o||i)return t===n;if(o=qe(t),i=qe(n),o||i)return o&&i?ak(t,n):!1;if(o=ht(t),i=ht(n),o||i){if(!o||!i)return!1;const u=Object.keys(t).length,d=Object.keys(n).length;if(u!==d)return!1;for(const g in t){const _=t.hasOwnProperty(g),h=n.hasOwnProperty(g);if(_&&!h||!_&&h||!rr(t[g],n[g]))return!1}}return String(t)===String(n)}function yf(t,n){return t.findIndex(o=>rr(o,n))}const Om=t=>!!(t&&t.__v_isRef===!0),p=t=>Yt(t)?t:t==null?"":qe(t)||ht(t)&&(t.toString===Nm||!Ke(t.toString))?Om(t)?p(t.value):JSON.stringify(t,Dm,2):String(t),Dm=(t,n)=>Om(n)?Dm(t,n.value):ki(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((o,[i,u],d)=>(o[Rc(i,d)+" =>"]=u,o),{})}:Ei(n)?{[`Set(${n.size})`]:[...n.values()].map(o=>Rc(o))}:_l(n)?Rc(n):ht(n)&&!qe(n)&&!Tm(n)?String(n):n,Rc=(t,n="")=>{var o;return _l(t)?`Symbol(${(o=t.description)!=null?o:n})`:t};/**
|
|||
|
|
* @vue/reactivity v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/let Ra;class nk{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&&Ra&&(Ra.active?(this.parent=Ra,this.index=(Ra.scopes||(Ra.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=Ra;try{return Ra=this,n()}finally{Ra=o}}}on(){++this._on===1&&(this.prevScope=Ra,Ra=this)}off(){if(this._on>0&&--this._on===0){if(Ra===this)Ra=this.prevScope;else{let n=Ra;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 u=this.parent.scopes.pop();u&&u!==this&&(this.parent.scopes[this.index]=u,u.index=this.index)}this.parent=void 0}}}function lk(){return Ra}let Rt;const Ec=new WeakSet;class Wm{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,Ra&&(Ra.active?Ra.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ec.has(this)&&(Ec.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Fm(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Dp(this),jm(this);const n=Rt,o=yl;Rt=this,yl=!0;try{return this.fn()}finally{Km(this),Rt=n,yl=o,this.flags&=-3}}stop(){if(this.flags&1){for(let n=this.deps;n;n=n.nextDep)wf(n);this.deps=this.depsTail=void 0,Dp(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ec.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Zc(this)&&this.run()}get dirty(){return Zc(this)}}let Um=0,gs,ys;function Fm(t,n=!1){if(t.flags|=8,n){t.next=ys,ys=t;return}t.next=gs,gs=t}function _f(){Um++}function bf(){if(--Um>0)return;if(ys){let n=ys;for(ys=void 0;n;){const o=n.next;n.next=void 0,n.flags&=-9,n=o}}let t;for(;gs;){let n=gs;for(gs=void 0;n;){const o=n.next;if(n.next=void 0,n.flags&=-9,n.flags&1)try{n.trigger()}catch(i){t||(t=i)}n=o}}if(t)throw t}function jm(t){for(let n=t.deps;n;n=n.nextDep)n.version=-1,n.prevActiveLink=n.dep.activeLink,n.dep.activeLink=n}function Km(t){let n,o=t.depsTail,i=o;for(;i;){const u=i.prevDep;i.version===-1?(i===o&&(o=u),wf(i),ok(i)):n=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=u}t.deps=n,t.depsTail=o}function Zc(t){for(let n=t.deps;n;n=n.nextDep)if(n.dep.version!==n.version||n.dep.computed&&(Vm(n.dep.computed)||n.dep.version!==n.version))return!0;return!!t._dirty}function Vm(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===hs)||(t.globalVersion=hs,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Zc(t))))return;t.flags|=2;const n=t.dep,o=Rt,i=yl;Rt=t,yl=!0;try{jm(t);const u=t.fn(t._value);(n.version===0||jl(u,t._value))&&(t.flags|=128,t._value=u,n.version++)}catch(u){throw n.version++,u}finally{Rt=o,yl=i,Km(t),t.flags&=-3}}function wf(t,n=!1){const{dep:o,prevSub:i,nextSub:u}=t;if(i&&(i.nextSub=u,t.prevSub=void 0),u&&(u.prevSub=i,t.nextSub=void 0),o.subs===t&&(o.subs=i,!i&&o.computed)){o.computed.flags&=-5;for(let d=o.computed.deps;d;d=d.nextDep)wf(d,!0)}!n&&!--o.sc&&o.map&&o.map.delete(o.key)}function ok(t){const{prevDep:n,nextDep:o}=t;n&&(n.nextDep=o,t.prevDep=void 0),o&&(o.prevDep=n,t.nextDep=void 0)}let yl=!0;const Gm=[];function Vl(){Gm.push(yl),yl=!1}function Gl(){const t=Gm.pop();yl=t===void 0?!0:
|
|||
|
|
* @vue/runtime-core v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function As(t,n,o,i){try{return i?t(...i):t()}catch(u){Ms(u,n,o)}}function Hn(t,n,o,i){if(Ke(t)){const u=As(t,n,o,i);return u&&Em(u)&&u.catch(d=>{Ms(d,n,o)}),u}if(qe(t)){const u=[];for(let d=0;d<t.length;d++)u.push(Hn(t[d],n,o,i));return u}}function Ms(t,n,o,i=!0){const u=n?n.vnode:null,{errorHandler:d,throwUnhandledErrorInProduction:g}=n&&n.appContext.config||It;if(n){let _=n.parent;const h=n.proxy,x=`https://vuejs.org/error-reference/#runtime-${o}`;for(;_;){const $=_.ec;if($){for(let N=0;N<$.length;N++)if($[N](t,h,x)===!1)return}_=_.parent}if(d){Vl(),As(d,null,10,[t,h,x]),Gl();return}}Rk(t,o,u,i,g)}function Rk(t,n,o,i=!0,u=!1){if(u)throw t;console.error(t)}const Ja=[];let Wl=-1;const $i=[];let or=null,wi=0;const tg=Promise.resolve();let Gu=null;function ya(t){const n=Gu||tg;return t?n.then(this?t.bind(this):t):n}function Ek(t){let n=Wl+1,o=Ja.length;for(;n<o;){const i=n+o>>>1,u=Ja[i],d=$s(u);d<t||d===t&&u.flags&2?n=i+1:o=i}return n}function If(t){if(!(t.flags&1)){const n=$s(t),o=Ja[Ja.length-1];!o||!(t.flags&2)&&n>=$s(o)?Ja.push(t):Ja.splice(Ek(n),0,t),t.flags|=1,ag()}}function ag(){Gu||(Gu=tg.then(lg))}function Nk(t){qe(t)?$i.push(...t):or&&t.id===-1?or.splice(wi+1,0,t):t.flags&1||($i.push(t),t.flags|=1),ag()}function Up(t,n,o=Wl+1){for(;o<Ja.length;o++){const i=Ja[o];if(i&&i.flags&2){if(t&&i.id!==t.uid)continue;Ja.splice(o,1),o--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function ng(t){if($i.length){const n=[...new Set($i)].sort((o,i)=>$s(o)-$s(i));if($i.length=0,or){or.push(...n);return}for(or=n,wi=0;wi<or.length;wi++){const o=or[wi];o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2}or=null,wi=0}}const $s=t=>t.id==null?t.flags&2?-1:1/0:t.id;function lg(t){try{for(Wl=0;Wl<Ja.length;Wl++){const n=Ja[Wl];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),As(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;Wl<Ja.length;Wl++){const n=Ja[Wl];n&&(n.flags&=-2)}Wl=-1,Ja.length=0,ng(),Gu=null,(Ja.length||$i.length)&&lg()}}let Wa=null,og=null;function zu(t){const n=Wa;return Wa=t,og=t&&t.type.__scopeId||null,n}function ra(t,n=Wa,o){if(!n||t._n)return t;const i=(...u)=>{i._d&&Yu(-1);const d=zu(n);let g;try{g=t(...u)}finally{zu(d),i._d&&Yu(1)}return g};return i._n=!0,i._c=!0,i._d=!0,i}function xe(t,n){if(Wa===null)return t;const o=vd(Wa),i=t.dirs||(t.dirs=[]);for(let u=0;u<n.length;u++){let[d,g,_,h=It]=n[u];d&&(Ke(d)&&(d={mounted:d,updated:d}),d.deep&&bo(g),i.push({dir:d,instance:o,value:g,oldValue:void 0,arg:_,modifiers:h}))}return t}function Er(t,n,o,i){const u=t.dirs,d=n&&n.dirs;for(let g=0;g<u.length;g++){const _=u[g];d&&(_.oldValue=d[g].value);let h=_.dir[i];h&&(Vl(),Hn(h,o,8,[t.el,_,t,n]),Gl())}}function Tk(t,n){if(Da){let o=Da.provides;const i=Da.parent&&Da.parent.provides;i===o&&(o=Da.provides=Object.create(i)),o[t]=n}}function Wu(t,n,o=!1){const i=fd();if(i||Si){let u=Si?Si._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(u&&t in u)return u[t];if(arguments.length>1)return o&&Ke(n)?n.call(i&&i.proxy):n}}const Bk=Symbol.for("v-scx"),Lk=()=>Wu(Bk);function ct(t,n,o){return rg(t,n,o)}function rg(t,n,o=It){const{immediate:i,deep:u,flush:d,once:g}=o,_=fa({},o),h=n&&i||!n&&d!=="post";let x;if(xi){if(d==="sync"){const J=Lk();x=J.__watcherHandles||(J.__watcherHandles=[])}else if(!h){const J=()=>{};return J.stop=Kl,J.resume=Kl,J.pause=Kl,J}}const $=Da;_.call=(J,V,U)=>Hn(J,$,V,U);let N=!1;d==="post"?_.scheduler=J=>{un(J,$&&$.suspense)}:d!=="sync"&&(N=!0,_.scheduler=(J,V)=>{V?J():If(J)}),_.augmentJob=J=>{n&&(J.flags|=4),N&&(J.flags|=2,$&&(J.id=$.uid,J.i=$))};const B=Mk(t,n,_);return xi&&(x?x.push(B):h&&B()),B}function qk(t,n,o){const i=this.proxy,u=Yt(t)?t.includes(".")?ig(i,t):()=>i[t]:t.bind(i,i);let d;Ke(n)?d=n:(d=n.handler,o=n);const g=Es(this),_=rg(u,d.bind(i),o);return g(),_}function ig(t,n){const o=n.split(".");return()=>{let i=t;for(let u=0;u<o.length&&i;u++)i=i[o[u]];return i}}const Ok=Symbol("_vte"),sg=t=>t.__isTeleport,Kn=Symbol("_leaveCb"),is=Symbol("_enterCb");function ug(){const t={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 df;const nm=typeof window<"u"&&window.trustedTypes;if(nm)try{df=nm.createPolicy("vue",{createHTML:t=>t})}catch{}const Og=df?t=>df.createHTML(t):t=>t,W1="http://www.w3.org/2000/svg",U1="http://www.w3.org/1998/Math/MathML",mo=typeof document<"u"?document:null,lm=mo&&mo.createElement("template"),F1={insert:(t,n,o)=>{n.insertBefore(t,o||null)},remove:t=>{const n=t.parentNode;n&&n.removeChild(t)},createElement:(t,n,o,i)=>{const u=n==="svg"?mo.createElementNS(W1,t):n==="mathml"?mo.createElementNS(U1,t):o?mo.createElement(t,{is:o}):mo.createElement(t);return t==="select"&&i&&i.multiple!=null&&u.setAttribute("multiple",i.multiple),u},createText:t=>mo.createTextNode(t),createComment:t=>mo.createComment(t),setText:(t,n)=>{t.nodeValue=n},setElementText:(t,n)=>{t.textContent=n},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>mo.querySelector(t),setScopeId(t,n){t.setAttribute(n,"")},insertStaticContent(t,n,o,i,u,d){const g=o?o.previousSibling:n.lastChild;if(u&&(u===d||u.nextSibling))for(;n.insertBefore(u.cloneNode(!0),o),!(u===d||!(u=u.nextSibling)););else{lm.innerHTML=Og(i==="svg"?`<svg>${t}</svg>`:i==="mathml"?`<math>${t}</math>`:t);const _=lm.content;if(i==="svg"||i==="mathml"){const h=_.firstChild;for(;h.firstChild;)_.appendChild(h.firstChild);_.removeChild(h)}n.insertBefore(_,o)}return[g?g.nextSibling:n.firstChild,o?o.previousSibling:n.lastChild]}},tr="transition",ss="animation",Ai=Symbol("_vtc"),Dg={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},Wg=fa({},dg,Dg),j1=t=>(t.displayName="Transition",t.props=Wg,t),Ya=j1((t,{slots:n})=>O1(Wk,Ug(t),n)),Tr=(t,n=[])=>{qe(t)?t.forEach(o=>o(...n)):t&&t(...n)},om=t=>t?qe(t)?t.some(n=>n.length>1):t.length>1:!1;function Ug(t){const n={};for(const q in t)q in Dg||(n[q]=t[q]);if(t.css===!1)return n;const{name:o="v",type:i,duration:u,enterFromClass:d=`${o}-enter-from`,enterActiveClass:g=`${o}-enter-active`,enterToClass:_=`${o}-enter-to`,appearFromClass:h=d,appearActiveClass:x=g,appearToClass:$=_,leaveFromClass:N=`${o}-leave-from`,leaveActiveClass:B=`${o}-leave-active`,leaveToClass:J=`${o}-leave-to`}=t,V=K1(u),U=V&&V[0],pe=V&&V[1],{onBeforeEnter:ve,onEnter:te,onEnterCancelled:Ae,onLeave:ue,onLeaveCancelled:de,onBeforeAppear:Oe=ve,onAppear:ne=te,onAppearCancelled:oe=Ae}=n,X=(q,Ne,Ye,it)=>{q._enterCancelled=it,nr(q,Ne?$:_),nr(q,Ne?x:g),Ye&&Ye()},W=(q,Ne)=>{q._isLeaving=!1,nr(q,N),nr(q,J),nr(q,B),Ne&&Ne()},O=q=>(Ne,Ye)=>{const it=q?ne:te,ot=()=>X(Ne,q,Ye);Tr(it,[Ne,ot]),rm(()=>{nr(Ne,q?h:d),Dl(Ne,q?$:_),om(it)||im(Ne,i,U,ot)})};return fa(n,{onBeforeEnter(q){Tr(ve,[q]),Dl(q,d),Dl(q,g)},onBeforeAppear(q){Tr(Oe,[q]),Dl(q,h),Dl(q,x)},onEnter:O(!1),onAppear:O(!0),onLeave(q,Ne){q._isLeaving=!0;const Ye=()=>W(q,Ne);Dl(q,N),q._enterCancelled?(Dl(q,B),cf(q)):(cf(q),Dl(q,B)),rm(()=>{q._isLeaving&&(nr(q,N),Dl(q,J),om(ue)||im(q,i,pe,Ye))}),Tr(ue,[q,Ye])},onEnterCancelled(q){X(q,!1,void 0,!0),Tr(Ae,[q])},onAppearCancelled(q){X(q,!0,void 0,!0),Tr(oe,[q])},onLeaveCancelled(q){W(q),Tr(de,[q])}})}function K1(t){if(t==null)return null;if(ht(t))return[Oc(t.enter),Oc(t.leave)];{const n=Oc(t);return[n,n]}}function Oc(t){return Qh(t)}function Dl(t,n){n.split(/\s+/).forEach(o=>o&&t.classList.add(o)),(t[Ai]||(t[Ai]=new Set)).add(n)}function nr(t,n){n.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const o=t[Ai];o&&(o.delete(n),o.size||(t[Ai]=void 0))}function rm(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let V1=0;function im(t,n,o,i){const u=t._endId=++V1,d=()=>{u===t._endId&&i()};if(o!=null)return setTimeout(d,o);const{type:g,timeout:_,propCount:h}=Fg(t,n);if(!g)return i();const x=g+"end";let $=0;const N=()=>{t.removeEventListener(x,B),d()},B=J=>{J.target===t&&++$>=h&&N()};setTimeout(()=>{$<h&&N()},_+1),t.addEventListener(x,B)}function Fg(t,n){const o=window.getComputedStyle(t),i=V=>(o[V]||"").split(", "),u=i(`${tr}Delay`),d=i(`${tr}Dura
|
|||
|
|
`)}function yc(e){const a=Je.value,r=Ee.value;return{source:"standalone_web_workflow_chat",ui_node_id:nt.value,ui_node_title:a.title,ui_node_phase:a.phase,ui_node_status:a.status,profile_id:r.profileId,profile_name:r.name,workflow_id:r.workflowId,source_language:"auto",target_prompt_language:"en",translation_mode:"backend_llm",user_instruction:e,persona_split_fields_ready:iu.value,persona_split_fields_total:ru.value,selected_material_ids:lc(),selected_draft_image_ids:bn.value.filter(hn).map(s=>s.image_id),candidate_feedback:Fa.value}}function aw(e){var c;const a=e.interpretation;if(!a)return"候选反馈已保存。";const r=[],s=[["喜欢",a.liked],["拒绝",a.rejected],["严格拒绝",a.strict_rejected]];for(const[f,b]of s)b.length&&r.push(`${f} ${b.map(S=>S.display_code).join("、")}`);return(c=a.final)!=null&&c.display_code&&r.push(`待定稿 ${a.final.display_code}`),a.positive_patch&&r.push("已生成正向调整"),a.negative_patch&&r.push("已生成负向约束"),a.material_intent&&r.push(`素材意图:${a.material_intent}`),r.length?r.join(";"):"下一轮调整要求已保存。"}async function Yv(e){var r,s,c;const a=lt.value;if(!ua.value||!a||a.legacy||!a.candidates.length)return"not_applicable";if(lu.value)return vt.value="该轮次已经确认;如需继续修改,请先从当前节点创建分支。","blocked";Le.value=!0,vt.value="",il.value="";try{const f=await $e(T.roundFeedback(a.round.round_id),{feedback_text:e,idempotency_key:`web-round-feedback-text-${a.round.round_id}-${Date.now()}`});Qo(a.round.node_id,f);const b=aw(f);return il.value=`${b} 点击“开始新一轮”后会使用这些反馈。`,ye.value=b,Vr.value=e,Bi.value=(s=(r=f.interpretation)==null?void 0:r.metadata)!=null&&s.model_route?`候选反馈 / ${String(f.interpretation.metadata.model_route)}`:`候选反馈 / ${((c=f.interpretation)==null?void 0:c.source)||"确定性解释"}`,fn.value="","saved"}catch(f){return vt.value=`候选反馈理解失败:${Ie(f)}`,ye.value=vt.value,"failed"}finally{Le.value=!1}}async function nw(){const e=fn.value.trim();if(!e||Le.value||await Yv(e)!=="not_applicable")return;if(ua.value&&!jo.value.route){ye.value="当前节点和后端默认均未提供生图路由,请先显式覆盖或前往设置配置。";return}await Iu({promptPatch:gc(e),metadata:yc(e)})&&(Vr.value=e,Bi.value=`${Je.value.title} / ${qd.value||"后端自动"}`)}function Jv(){!Pa.value||!Ca(Pa.value)||(Ks.value="generation",kn("imageViewer"),bc(),Ro.value=!0)}function Cu(e){const a=(e?Vd.value.find(r=>r.image_id===e):null)??Ml.value;!a||!Ca(a)||(zl.value=!1,Z.value=a.image_id,Jv())}function Xv(){bn.value.length<2||(zl.value=!0)}function lw(e){return{configure_distinct_generation_cross_review_routes:"请在设置页配置至少一个与主候选不同的生图模型",configure_image_generation_route:"请先配置并启用可用的生图模型路由",regenerate_primary_candidate_with_configured_route:"主候选缺少可复用的模型路由,请先重新生成主候选",retry_or_remove_failed_review_candidate:"当前审查轮次存在失败候选,请重试失败项后再继续",select_review_candidates:"请至少勾选一个需要重新生成的审查候选",open_active_cross_review:"该节点已有进行中的交叉审查,请打开当前审查轮次",create_branch:"当前节点已锁定或工作流已封存,请先创建可编辑分支"}[e]||e.replace(/_/g," ")}function Su(e,a){const r=Ie(e),s=e instanceof qa?he(e.details,"required_action"):"";return s?`${r};建议操作:${lw(s)}。`:`${a}:${r}`}async function ow(){var r;const e=lt.value;if(!e||e.legacy||!ua.value)return;const a=e.round.round_id;Ka.value=!0,Cl.value="";try{const s=await Pe(T.round(a));if(((r=lt.value)==null?void 0:r.round.round_id)!==a)return;Qo(s.round.node_id,s,{select:!0}),sl.value=s,mr.value=!0}catch(s){vt.value=Su(s,"交叉审查轮次加载失败")}finally{Ka.value=!1}}function rw(){Ka.value||(mr.value=!1,Cl.value="")}function iw(e){var r;const a=(r=e.image)==null?void 0:r.image_id;a&&Cu(a)}function _c(e){Qo(e.round.node_id,e,{select:!0}),sl.valu
|
|||
|
|
${c.trim()}`).join(`
|
|||
|
|
|
|||
|
|
`)}function hw(e){const a=Mr(e),r=(...f)=>{for(const b of f){const S=a.find(D=>lr(D.node_key)===b);if(S!=null&&S.selected_image_id)return S.selected_image_id}return""},s={avatar:r("headshot"),persona_image:r("design_sheet","turnaround"),standing:r("full_body"),pv:r("style_lock")},c=Object.entries(s).filter(([,f])=>!f).map(([f])=>f);if(c.length){const f={avatar:"头像(头像草稿)",persona_image:"人设图(设定图或三视图)",standing:"立绘(全身设定)",pv:"PV 图(高清修复与统一风格)"};return ye.value=`档案卡还缺少已明确采用的资产:${c.map(b=>f[b]).join("、")}。请回到对应节点确认一张候选图。`,null}return s}function kw(e){if(!(e instanceof qa))return`档案卡封存失败:${Ie(e)}`;const a=[],r=e.details.incomplete_node_keys;Array.isArray(r)&&r.length&&a.push(`未完成节点:${r.map(String).join("、")}`);const s=he(e.details,"asset_role");s&&a.push(`资产角色:${s}`);const c=he(e.details,"active_branch")||he(e.details,"branch_name");c&&a.push(`当前分支:${c}`);const f=he(e.details,"status");f&&a.push(`工作流状态:${f}`);const b=a.length?`(${a.join(";")})`:"";return`档案卡封存失败:${e.message}${b}`}async function $w(){const e=Ee.value;if(!e||Le.value)return;const a=Bt("建立档案卡");if(a){ye.value=a;return}if(!e.workflowId||!e.profileId){ye.value="请先保存角色并创建详细角色工作流,再建立档案卡。";return}const r=e.workflowId,s=pt.value[r],c=(s==null?void 0:s.current_branch)||"main",f=hw(r);if(!f)return;const b=ww(e);if(!b){ye.value="档案卡缺少人设文档,请先完成角色设定拆解。";return}const S={idempotency_key:`web-profile-card-${r}-${mu(c)}`,persona_document:b,assets:f,metadata:{source:"standalone_web_profile_card",schema_version:"character_profile_card_v1",profile_id:e.profileId,profile_name:e.name,workflow_id:r,branch_name:c,selected_material_ids:lc()}};Le.value=!0,ye.value="";try{const D=await $e(T.workflowFinalizeCard(r),S);Wi.value={...Wi.value,[e.profileId]:[D,...(Wi.value[e.profileId]??[]).filter(ce=>ce.card_id!==D.card_id)]},Zl.value=D.created_at,await Pu(e,r,"archive");const[G]=await Promise.allSettled([Pe(T.profileCards(e.profileId)),Jd(),Va(),nn()]);G.status==="fulfilled"&&(Wi.value={...Wi.value,[e.profileId]:G.value}),El("archive"),ye.value=`档案卡已原子封存:${rn(D.card_id)} / ${D.branch_name},4 类必填资产均已入库。`}catch(D){ye.value=kw(D)}finally{Le.value=!1}}async function hc(e){const a=Ee.value,r=a==null?void 0:a.workflowId;if(!r||Sa.value)return;const s=e==="start"?"启动":e==="cancel"?"取消":"归档";if(e==="start"&&!au.value){rl.value="请先在第一个节点导入粗略人设;导入成功后工作流会自动启动。";return}if(!(e!=="start"&&!window.confirm(`确定${s}当前工作流吗?`))){Sa.value=!0,rl.value="";try{const c=e==="start"?T.workflowStart(r):e==="cancel"?T.workflowCancel(r):T.workflowArchive(r),f=await $e(c);pt.value={...pt.value,[r]:f},rl.value=`工作流已${s}`}catch(c){rl.value=Ie(c)}finally{Sa.value=!1}}}async function Cw(){var a;const e=(a=Ee.value)==null?void 0:a.workflowId;if(e){Sa.value=!0;try{Ct.value=await Pe(T.workflowReview(e)),rl.value="整体审查已完成"}catch(r){rl.value=Ie(r)}finally{Sa.value=!1}}}async function op(){var r;const e=(r=Ue.value)==null?void 0:r.node_id;if(!e)return;Sa.value=!0;const a=await fc(e,!0);rl.value=a?"依赖上下文已刷新":Te.value,Sa.value=!1}function ls(e){return an.value?`${e}暂不可用:${lo.value}`:Al.value?`${e}已被锁定:${Vo.value}`:""}function Sw(e){return`branch_${(e.node_key||e.node_id).replace(/[^a-zA-Z0-9_-]+/g,"_").slice(0,28)}_${Date.now().toString(36)}`}async function rp(e,a,r,s={}){const c=await $e(T.workflowSwitchBranch(a),{branch_name:r}),f=await Pe(T.workflowNodes(a)),b=f.filter(G=>G.branch_name===c.current_branch);rt.value={...rt.value,[a]:f},pt.value={...pt.value,[a]:c},Ar(e,c,b.length?b:f);const S=(s.copiedFromNodeId?b.find(G=>he(G.metadata,"copied_from_node_id")===s.copiedFromNodeId):void 0)??(s.preferredUiNodeId?b.find(G=>pl(G)===
|
|||
|
|
`)}}function xu(e,a,r,s,c){return{id:e,title:a,prompt:r,negative:s,weight_suggestions:[{label:"identity",value:1.25,reason:"keep character identity stable"},{label:"style",value:.85,reason:"avoid overfitting style over identity"}],inherits:c,status:"ready"}}function Dw(e){const a=_n.value,r=ve.map((s,c)=>{const f=a.find(b=>b.category===s.category);return{id:`rule_${s.category}_${c+1}`,category:s.category,material_id:nc(f==null?void 0:f.id),material_label:(f==null?void 0:f.label)??"",material_group:(f==null?void 0:f.group)??(f==null?void 0:f.category)??"",material_prompt:(f==null?void 0:f.prompt)??"",material_colors:(f==null?void 0:f.colors)??[],bind_to_stages:up(s.category),inheritance_rule:f?`${s.category} only affects explicitly bound downstream stages.`:"do not use reference unless user explicitly selects one",reference_strength:f?dp(s.category):"弱",required:!!(f&&["风格","服装"].includes(s.category)),status:f?"ready":"pending"}});return{profile_id:e.profileId,profile_name:e.name,selected_material_ids:lc(),rules:r}}function up(e){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:"修复入库"}]}[e]??[{stage_id:"body-sheet",stage_title:"全身与设定图"}]}function dp(e){return e==="风格"||e==="服装"?"强":e==="构图"?"中":"弱"}async function Ww(){var r;const e=Ee.value;if(!e||wa.value)return;const a=Bt("保存快照");if(a){ll.value=a;return}if(!e.workflowId){ll.value="请先生成档案并创建后端工作流,再保存快照。";return}wa.value=!0,ll.value="";try{const s=await $e(T.workflowHistory(e.workflowId),{action:"save_version",title:`${e.name} / ${((r=Je.value)==null?void 0:r.title)??"工作流快照"}`,node_id:Yo(nt.value,e),include_nodes:!0,metadata:{source:"standalone_web",ui_node_id:nt.value,profile_id:e.profileId,profile_name:e.name,profile_status:e.status}});Zl.value=s.created_at}catch(s){ll.value=`保存快照失败:${Ie(s)}`}finally{wa.value=!1}}function Yo(e,a){if(!a.workflowId)return;const s=Mr(a.workflowId).find(f=>pl(f)===e);if(s)return s.node_id;const c=a.workflowNodeIds??[];if(e!=="brief-import"&&e==="persona-split")return c[0]}function Mr(e){var s;const a=rt.value[e]??[],r=(s=pt.value[e])==null?void 0:s.current_branch;return r?a.filter(c=>c.branch_name===r):a}function Uw(e){const a=su.value;if(a&&(!e||a.node_id===e))return[a.image_id];if(!e)return[];const r=(jt.value[e]??[]).find(s=>{var c;return s.image_id===((c=xl.value.find(f=>f.node_id===e))==null?void 0:c.selected_image_id)});return r&&hn(r)?[r.image_id]:[]}function hn(e){const a="metadata"in e&&e.metadata&&typeof e.metadata=="object"?e.metadata:{},r=a.mock===!0||a.mock===1||a.mock==="true",s=Object.prototype.hasOwnProperty.call(a,"provider_error")&&a.provider_error!=null,c=a.fallback_used===!0||a.degraded===!0;return!r&&!s&&!c}async function Fw(){if(!zf.value||So.value)return;const e=Bt("生成档案");if(e){kl.value=e;return}Li.value+=1;const a=zw(Re.value,Li.value);So.value=!0,kl.value="";try{const r=await $e(T.quickProfileDraft,jw(a,Re.value,pn.value)),s={...a,name:r.profile_preview.name||a.name,style:r.profile_preview.style_prompt||a.style,negative:r.profile_preview.negative_prompt||a.negative},c=await $e(T.quickProfileDraftSave,Kw(s,Re.value,pn.value,r)),b={...Vw(c,s),status:"文本档案已保存"};mn.value=[b,...mn.value.filter(S=>S.id!==b.id)],Jt.value=[c.profile,...Jt.value.filter(S=>S.profile_id!==c.profile.profile_id)],Xt.value={...Xt.value,[c.profile.profile_id]:c.workflow?[c.workflow]:[]},yu(b),F.value="quickProfile"
|
|||
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="${Xe}" height="${ke}" viewBox="0 0 ${Xe} ${ke}" preserveAspectRatio="xMidYMid meet">
|
|||
|
|
<defs>
|
|||
|
|
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
|||
|
|
<stop offset="0%" stop-color="${f}" />
|
|||
|
|
<stop offset="58%" stop-color="${b}" />
|
|||
|
|
<stop offset="100%" stop-color="#111827" />
|
|||
|
|
</linearGradient>
|
|||
|
|
<radialGradient id="halo" cx="72%" cy="22%" r="55%">
|
|||
|
|
<stop offset="0%" stop-color="${S}" stop-opacity="0.82" />
|
|||
|
|
<stop offset="100%" stop-color="${S}" stop-opacity="0" />
|
|||
|
|
</radialGradient>
|
|||
|
|
<pattern id="grid" width="${bt}" height="${bt}" patternUnits="userSpaceOnUse">
|
|||
|
|
<path d="M${bt} 0H0V${bt}" fill="none" stroke="#ffffff" stroke-opacity="0.13" stroke-width="2" />
|
|||
|
|
</pattern>
|
|||
|
|
</defs>
|
|||
|
|
<rect width="${Xe}" height="${ke}" fill="url(#bg)" />
|
|||
|
|
<rect width="${Xe}" height="${ke}" fill="url(#grid)" />
|
|||
|
|
<circle cx="${Tl}" cy="${Zo}" r="${Bl}" fill="url(#halo)" />
|
|||
|
|
<circle cx="${er}" cy="${Ll}" r="${k}" fill="#ffffff" opacity="0.11" />
|
|||
|
|
<rect x="${At}" y="${At}" width="${On}" height="${Ma}" rx="${za}" fill="#ffffff" opacity="0.14" />
|
|||
|
|
<rect x="${la}" y="${la}" width="${ln}" height="${Dn}" rx="${Math.round(za*.72)}" fill="#0f172a" opacity="0.24" />
|
|||
|
|
<text x="${la+Math.round(Ze*.035)}" y="${da}" fill="#ffffff" opacity="0.72" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${oa}" font-weight="700">IMAGESTUDIO · 未生成 ${D}</text>
|
|||
|
|
<text x="${la+Math.round(Ze*.035)}" y="${Ha}" fill="#ffffff" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${A}" font-weight="800">${G}</text>
|
|||
|
|
<text x="${la+Math.round(Ze*.035)}" y="${xa}" fill="#ffffff" opacity="0.78" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Fe}">${ce}</text>
|
|||
|
|
<text x="${be}" y="${da+Math.round(Ze*.02)}" text-anchor="middle" fill="#ffffff" opacity="0.86" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Aa}" font-weight="900">${D}</text>
|
|||
|
|
<text x="${Xe-At}" y="${ke-Math.round(At*.35)}" text-anchor="end" fill="#ffffff" opacity="0.72" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Math.max(18,Math.round(Ze*.027))}" font-weight="800">${_e}</text>
|
|||
|
|
</svg>`;return`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(gt)}`}function Tp(e){return e.replace(/[&<>"']/g,a=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[a]??a)}function Ga(e){return"title"in e&&e.title?e.title:e.node_id||e.workflow_id||e.profile_id||rn(e.image_id)}function Ca(e){return qn(e.thumbnail_url)||qn(e.image_url)}function qn(e){const a=String(e||"").trim();if(!a)return"";const r=Th(a);if(!r)return a;const s=ut.value[a];if(s)return s;if(!Pt.has(a)){const c=Bh(a,r).finally(()=>{Pt.delete(a)});Pt.set(a,c)}return Ou()==="plugin-bridge"?"":a}function Th(e){var a;try{const r=new URL(e,window.location.origin);return r.pathname.endsWith("/media/fetch")&&((a=r.searchParams.get("token"))==null?void 0:a.trim())||""}catch{return""}}async function Bh(e,a){try{const r=await Pe(T.mediaPayload,{token:a}),s=String(r.body_base64||"");if(!s)return;const c=s.replace(/-/g,"+").replace(/_/g,"/"),f=c.padEnd(Math.ceil(c.length/4)*4,"="),b=window.atob(f),S=new Uint8Array(b.length);for(let G=0;G<b.length;G+=1)S[G]=b.charCodeAt(G);const D=URL.createObjectURL(new Blob([S],{type:r.content_type||"application/octet-stream"}));Ot.add(D),ut.value={...ut.value,[e]:D}}catch(r){console.warn("ImageStudio media bridge failed",r)}}function Lh(e){if(e.status==="confirmed_unsupported")return!1;if(e.dialect==="openai_images"||e.dialect==="comfyui")return!0;const a=e.capabilities||{};return!!(a.text_to_image||a.image_generation||a.workflow_graph||Object.keys(a).some(r=>["text_to_image","image_generation","workflow_graph"].includes(r)))}function qh(e,a,r){return Math.max(a,Math.min(r,e))}function Oh(){try{const e=localStorage.getItem(Bn.theme);(e==="light"||e==="dark")&&(Sl.value=e),Ao.value=localStorage.getItem(Bn.primary)||Ao.value,Mo.value=localStorage.getItem(Bn.accent)||Mo.value;const a=localStorage.getItem(Bn.navigationPinned);dl.value=a===null||a==="true",En.value=Bp(localStorage.getItem(Bn.readNotifications)),Zr.value=Bp(localStorage.getItem(Bn.dismissedNotifications))}catch{}Jr.value=dl.value}function Dh(){try{localStorage.setItem(Bn.theme,Sl.value),localStorage.setItem(Bn.primary,Ao.value),localStorage.setItem(Bn.accent,Mo.value),localStorage.setItem(Bn.navigationPinned,String(dl.value)),localStorage.setItem(Bn.readNotifications,JSON.stringify(En.value)),localStorage.setItem(Bn.dismissedNotifications,JSON.stringify(Zr.value))}catch{}}function Bp(e){if(!e)return[];try{const a=JSON.parse(e);return Array.isArray(a)?a.filter(r=>typeof r=="string"):[]}catch{return[]}}function co(e,a){const r=xc(e);return r?`rgba(${r.r}, ${r.g}, ${r.b}, ${a})`:`rgba(118, 104, 232, ${a})`}function Ic(e,a,r){const s=xc(e),c=xc(a);if(!s||!c)return e;const f=Math.min(1,Math.max(0,r));return`#${Pc(s.r*(1-f)+c.r*f)}${Pc(s.g*(1-f)+c.g*f)}${Pc(s.b*(1-f)+c.b*f)}`}function Pc(e){return Math.round(e).toString(16).padStart(2,"0")}function xc(e){const a=e.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 he(e,a){const r=e==null?void 0:e[a];return typeof r=="string"?r:""}function Wh(e){return!ta(e)||typeof e.task_id!="string"?null:{task_id:e.task_id,task_type:typeof e.task_type=="string"?e.task_type:"generation",status:typeof e.status=="string"?e.status:"created",progress:typeof e.progress=="number"?e.progress:0,created_at:typeof e.created_at=="string"?e.created_at:"",updated_at:typeof e.updated_at=="string"?e.updated_at:"",profile_id:typeof e.profile_id=="string"?e.profile_id:null,workflow_id:typeof e.workflow_id=="string"?e.workflow_id:null,node_id:typeof e.node_id=="string"?e.node_id:null,model_route:typeof e.model_route=="string"?e.model_route:null,idempotency_key:typeof e.idempotency_key=="string"?e.idempotency_key:null,request:ta(e.request)?e.request:void 0,result:ta(e.result)?e.result:void 0,metadata:ta(e.metadata)?e.metadata:void 0,error_message:typeof e.error_message=="string"?e.error_message:null}}function Uh(e){return!!e}function ta(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}function Fh(e){return sn(e,a=>a.id)
|
|||
|
|
身份:近未来港区巡查员\r
|
|||
|
|
性格:冷静、可靠、行动快\r
|
|||
|
|
外观:黑色短发,青绿色眼睛\r
|
|||
|
|
服装:轻机能外套、短靴、发光臂章\r
|
|||
|
|
避雷:低质量、结构错误`},null,512),[[je,Jl.value]])]),l("aside",pR,[l("header",null,[l("div",null,[a[166]||(a[166]=l("span",null,"识别预览",-1)),l("strong",null,p(ly.value)+" / "+p(Id.value.length),1)]),l("em",null,p(ai.value?`${ai.value.length} 字`:"待粘贴"),1)]),l("dl",null,[(m(!0),y(Q,null,re(Id.value,k=>(m(),y("div",{key:k.key,class:fe({pending:ai.value&&!k.recognized})},[l("dt",null,[Vn(p(k.label)+" ",1),l("span",null,p(k.recognized?"已识别":"待整理"),1)]),l("dd",null,p(k.value||"粘贴文本后显示"),1)],2))),128))])])]),l("footer",null,[l("span",null,p(ai.value?"识别结果会先填入问卷,仍可在问卷里继续微调。":"等待外部角色卡文本。"),1),l("button",{type:"button",onClick:a[36]||(a[36]=k=>ea("externalProfileImport"))},"取消"),l("button",{type:"button",disabled:!ai.value,onClick:Jw}," 识别并填入问卷 ",8,mR)])])])):H("",!0)]),_:1}),We(Ya,{name:"viewer-fade"},{default:ra(()=>[Vt.value?(m(),y("div",gR,[l("section",yR,[l("header",null,[a[167]||(a[167]=l("div",null,[l("span",null,"快速角色"),l("strong",null,"创建角色档案问卷")],-1)),l("button",{type:"button",title:"关闭",onClick:a[37]||(a[37]=k=>ea("personaQuestionnaire"))},"×")]),l("div",_R,[l("label",null,[a[168]||(a[168]=l("span",null,"角色核心",-1)),xe(l("textarea",{"onUpdate:modelValue":a[38]||(a[38]=k=>Re.value.roleCore=k),rows:"3",placeholder:"角色名、身份、核心定位,可以只写一句。"},null,512),[[je,Re.value.roleCore]])]),l("label",bR,[a[170]||(a[170]=l("span",null,"性别表现",-1)),xe(l("select",{"onUpdate:modelValue":a[39]||(a[39]=k=>Re.value.genderPresentation=k)},[...a[169]||(a[169]=[l("option",{value:""},"未指定",-1),l("option",{value:"female"},"女性 / Female",-1),l("option",{value:"male"},"男性 / Male",-1),l("option",{value:"androgynous"},"中性 / Androgynous",-1),l("option",{value:"nonbinary"},"非二元 / Nonbinary",-1)])],512),[[Xa,Re.value.genderPresentation]])]),l("label",wR,[a[171]||(a[171]=l("span",null,"年龄阶段",-1)),xe(l("input",{"onUpdate:modelValue":a[40]||(a[40]=k=>Re.value.ageStage=k),type:"text",placeholder:"例如 adult、young adult、middle-aged"},null,512),[[je,Re.value.ageStage]])]),l("label",hR,[a[172]||(a[172]=l("span",null,"物种 / 种族",-1)),xe(l("input",{"onUpdate:modelValue":a[41]||(a[41]=k=>Re.value.species=k),type:"text",placeholder:"例如 human、elf、android"},null,512),[[je,Re.value.species]])]),l("label",kR,[a[173]||(a[173]=l("span",null,"体型",-1)),xe(l("input",{"onUpdate:modelValue":a[42]||(a[42]=k=>Re.value.bodyType=k),type:"text",placeholder:"例如 slim、athletic、muscular"},null,512),[[je,Re.value.bodyType]])]),l("label",null,[a[174]||(a[174]=l("span",null,"显著特征",-1)),xe(l("textarea",{"onUpdate:modelValue":a[43]||(a[43]=k=>Re.value.distinctiveFeatures=k),rows:"3",placeholder:"伤疤、异色瞳、义体、角、纹身或固定视觉记忆点。"},null,512),[[je,Re.value.distinctiveFeatures]])]),l("label",null,[a[175]||(a[175]=l("span",null,"性格关键词",-1)),xe(l("textarea",{"onUpdate:modelValue":a[44]||(a[44]=k=>Re.value.personality=k),rows:"3",placeholder:"外显性格、内在矛盾、行动方式。"},null,512),[[je,Re.value.personality]])]),l("label",null,[a[176]||(a[176]=l("span",null,"外观特征",-1)),xe(l("textarea",{"onUpdate:modelValue":a[45]||(a[45]=k=>Re.value.appearance=k),rows:"3",placeholder:"发色、发型、眼睛、五官和视觉记忆点。"},null,512),[[je,Re.value.appearance]])]),l("label",null,[a[177]||(a[177]=l("span",null,"服装与配饰",-1)),xe(l("textarea",{"onUpdate:modelValue":a[46]||(a[46]=k=>Re.value.outfit=k),rows:"3",placeholder:"服装风格、配饰、武器或随身物。"},null,512),[[je,Re.value.outfit]])]),l("label",null,[a[178]||(a[178]=l("span",null,"常用场景",-1)),xe(l("textarea",{"onUpdate:modelValue":a[47]||(a[47]=k=>Re.value.scene=k),rows:"3",placeholder:"常驻地点、画面背景、适合出现的环境。"},null,512),[[je,Re.value.scene]])]),l("label",null,[a[179]||(a[179]=l("span",null,"避雷内容",-1)),xe(l("textarea",{"onUpd
|