56 行
435 KiB
JavaScript
56 行
435 KiB
JavaScript
|
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AdvancedMaterialImportPage-DB057gcV.js","assets/AdvancedMaterialImportPage-BMAou6RS.css","assets/GalleryPage-DUcHf5nl.js","assets/GalleryPage-BYYx2bqw.css","assets/LogsPage-C3sWUIbU.js","assets/LogsPage-BUeTyehJ.css","assets/ProfilesPage-BUhp8Mbx.js","assets/ProfilesPage-B0WTnM4e.css","assets/SettingsPage-PMbwCFIc.js","assets/SettingsPage-BR5nrF_4.css","assets/WorkflowCompareDialog-B6QU9VXO.js","assets/WorkflowCompareDialog-BI_xR1pa.css","assets/WorkflowBranchPanel-BzUOh1Fe.js","assets/WorkflowBranchPanel-nMe9nW01.css","assets/WorkflowCandidatePool-xYs54DEH.js","assets/WorkflowCandidatePool-CHJiY32s.css","assets/WorkflowComposer-4G3HjilB.js","assets/WorkflowComposer-D0-o7edc.css","assets/WorkflowDependencyContextCard-Co0RbxVo.js","assets/WorkflowDependencyContextCard-WHidWt7d.css","assets/WorkflowGenerationReviewDialog-CuaoeoDj.js","assets/WorkflowGenerationReviewDialog-Dde3QtRN.css","assets/WorkflowMaterialDrawer-BzNNeBcr.js","assets/WorkflowMaterialDrawer-CzNrrMeI.css","assets/WorkflowRoundPanel-tK6RJEXx.js","assets/WorkflowRoundPanel-DxGu9gjD.css"])))=>i.map(i=>d[i]);
|
|||
|
|
var Th=Object.defineProperty;var Nh=(t,n,o)=>n in t?Th(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o;var wc=(t,n,o)=>Nh(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 c of u)if(c.type==="childList")for(const v of c.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&i(v)}).observe(document,{childList:!0,subtree:!0});function o(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(u){if(u.ep)return;u.ep=!0;const c=o(u);fetch(u.href,c)}})();/**
|
|||
|
|
* @vue/shared v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function nf(t){const n=Object.create(null);for(const o of t.split(","))n[o]=1;return o=>o in n}const ct={},Vr=[],pl=()=>{},Cm=()=>!1,Fu=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Uu=t=>t.startsWith("onUpdate:"),Vt=Object.assign,lf=(t,n)=>{const o=t.indexOf(n);o>-1&&t.splice(o,1)},Lh=Object.prototype.hasOwnProperty,ot=(t,n)=>Lh.call(t,n),$e=Array.isArray,jr=t=>es(t)==="[object Map]",ei=t=>es(t)==="[object Set]",Rp=t=>es(t)==="[object Date]",Ne=t=>typeof t=="function",It=t=>typeof t=="string",Tn=t=>typeof t=="symbol",rt=t=>t!==null&&typeof t=="object",$m=t=>(rt(t)||Ne(t))&&Ne(t.then)&&Ne(t.catch),Pm=Object.prototype.toString,es=t=>Pm.call(t),Bh=t=>es(t).slice(8,-1),Im=t=>es(t)==="[object Object]",of=t=>It(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Fi=nf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ku=t=>{const n=Object.create(null);return(o=>n[o]||(n[o]=t(o)))},qh=/-\w/g,An=Ku(t=>t.replace(qh,n=>n.slice(1).toUpperCase())),Oh=/\B([A-Z])/g,To=Ku(t=>t.replace(Oh,"-$1").toLowerCase()),Sm=Ku(t=>t.charAt(0).toUpperCase()+t.slice(1)),hc=Ku(t=>t?`on${Sm(t)}`:""),vl=(t,n)=>!Object.is(t,n),Pu=(t,...n)=>{for(let o=0;o<t.length;o++)t[o](...n)},xm=(t,n,o,i=!1)=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,writable:i,value:o})},Vu=t=>{const n=parseFloat(t);return isNaN(n)?t:n},Dh=t=>{const n=It(t)?Number(t):NaN;return isNaN(n)?t:n};let Mp;const ju=()=>Mp||(Mp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Kt(t){if($e(t)){const n={};for(let o=0;o<t.length;o++){const i=t[o],u=It(i)?Kh(i):Kt(i);if(u)for(const c in u)n[c]=u[c]}return n}else if(It(t)||rt(t))return t}const Wh=/;(?![^(]*\))/g,Fh=/:([^]+)/,Uh=/\/\*[^]*?\*\//g;function Kh(t){const n={};return t.replace(Uh,"").split(Wh).forEach(o=>{if(o){const i=o.split(Fh);i.length>1&&(n[i[0].trim()]=i[1].trim())}}),n}function oe(t){let n="";if(It(t))n=t;else if($e(t))for(let o=0;o<t.length;o++){const i=oe(t[o]);i&&(n+=i+" ")}else if(rt(t))for(const o in t)t[o]&&(n+=o+" ");return n.trim()}const Vh="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",jh=nf(Vh);function Rm(t){return!!t||t===""}function Gh(t,n){if(t.length!==n.length)return!1;let o=!0;for(let i=0;o&&i<t.length;i++)o=Mo(t[i],n[i]);return o}function Mo(t,n){if(t===n)return!0;let o=Rp(t),i=Rp(n);if(o||i)return o&&i?t.getTime()===n.getTime():!1;if(o=Tn(t),i=Tn(n),o||i)return t===n;if(o=$e(t),i=$e(n),o||i)return o&&i?Gh(t,n):!1;if(o=rt(t),i=rt(n),o||i){if(!o||!i)return!1;const u=Object.keys(t).length,c=Object.keys(n).length;if(u!==c)return!1;for(const v in t){const m=t.hasOwnProperty(v),_=n.hasOwnProperty(v);if(m&&!_||!m&&_||!Mo(t[v],n[v]))return!1}}return String(t)===String(n)}function rf(t,n){return t.findIndex(o=>Mo(o,n))}const Mm=t=>!!(t&&t.__v_isRef===!0),g=t=>It(t)?t:t==null?"":$e(t)||rt(t)&&(t.toString===Pm||!Ne(t.toString))?Mm(t)?g(t.value):JSON.stringify(t,Am,2):String(t),Am=(t,n)=>Mm(n)?Am(t,n.value):jr(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((o,[i,u],c)=>(o[kc(i,c)+" =>"]=u,o),{})}:ei(n)?{[`Set(${n.size})`]:[...n.values()].map(o=>kc(o))}:Tn(n)?kc(n):rt(n)&&!$e(n)&&!Im(n)?String(n):n,kc=(t,n="")=>{var o;return Tn(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 Hh{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 zh(){return ra}let mt;const Cc=new WeakSet;class Em{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,Cc.has(this)&&(Cc.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Nm(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ap(this),Lm(this);const n=mt,o=En;mt=this,En=!0;try{return this.fn()}finally{Bm(this),mt=n,En=o,this.flags&=-3}}stop(){if(this.flags&1){for(let n=this.deps;n;n=n.nextDep)df(n);this.deps=this.depsTail=void 0,Ap(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Cc.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Kc(this)&&this.run()}get dirty(){return Kc(this)}}let Tm=0,Ui,Ki;function Nm(t,n=!1){if(t.flags|=8,n){t.next=Ki,Ki=t;return}t.next=Ui,Ui=t}function sf(){Tm++}function uf(){if(--Tm>0)return;if(Ki){let n=Ki;for(Ki=void 0;n;){const o=n.next;n.next=void 0,n.flags&=-9,n=o}}let t;for(;Ui;){let n=Ui;for(Ui=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 Lm(t){for(let n=t.deps;n;n=n.nextDep)n.version=-1,n.prevActiveLink=n.dep.activeLink,n.dep.activeLink=n}function Bm(t){let n,o=t.depsTail,i=o;for(;i;){const u=i.prevDep;i.version===-1?(i===o&&(o=u),df(i),Qh(i)):n=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=u}t.deps=n,t.depsTail=o}function Kc(t){for(let n=t.deps;n;n=n.nextDep)if(n.dep.version!==n.version||n.dep.computed&&(qm(n.dep.computed)||n.dep.version!==n.version))return!0;return!!t._dirty}function qm(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Hi)||(t.globalVersion=Hi,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Kc(t))))return;t.flags|=2;const n=t.dep,o=mt,i=En;mt=t,En=!0;try{Lm(t);const u=t.fn(t._value);(n.version===0||vl(u,t._value))&&(t.flags|=128,t._value=u,n.version++)}catch(u){throw n.version++,u}finally{mt=o,En=i,Bm(t),t.flags&=-3}}function df(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 c=o.computed.deps;c;c=c.nextDep)df(c,!0)}!n&&!--o.sc&&o.map&&o.map.delete(o.key)}function Qh(t){const{prevDep:n,nextDep:o}=t;n&&(n.nextDep=o,t.prevDep=void 0),o&&(o.prevDep=n,t.nextDep=void 0)}let En=!0;const Om=[];function ml(){Om.push(En),En=!1}function gl(){const t=Om.pop();En=t===void 0?!0:
|
|||
|
|
* @vue/runtime-core v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function ts(t,n,o,i){try{return i?t(...i):t()}catch(u){as(u,n,o)}}function gn(t,n,o,i){if(Ne(t)){const u=ts(t,n,o,i);return u&&$m(u)&&u.catch(c=>{as(c,n,o)}),u}if($e(t)){const u=[];for(let c=0;c<t.length;c++)u.push(gn(t[c],n,o,i));return u}}function as(t,n,o,i=!0){const u=n?n.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:v}=n&&n.appContext.config||ct;if(n){let m=n.parent;const _=n.proxy,I=`https://vuejs.org/error-reference/#runtime-${o}`;for(;m;){const k=m.ec;if(k){for(let M=0;M<k.length;M++)if(k[M](t,_,I)===!1)return}m=m.parent}if(c){ml(),ts(c,null,10,[t,_,I]),gl();return}}hk(t,o,u,i,v)}function hk(t,n,o,i=!0,u=!1){if(u)throw t;console.error(t)}const ka=[];let dl=-1;const Gr=[];let Ro=null,Kr=0;const Hm=Promise.resolve();let Au=null;function Ht(t){const n=Au||Hm;return t?n.then(this?t.bind(this):t):n}function kk(t){let n=dl+1,o=ka.length;for(;n<o;){const i=n+o>>>1,u=ka[i],c=Qi(u);c<t||c===t&&u.flags&2?n=i+1:o=i}return n}function gf(t){if(!(t.flags&1)){const n=Qi(t),o=ka[ka.length-1];!o||!(t.flags&2)&&n>=Qi(o)?ka.push(t):ka.splice(kk(n),0,t),t.flags|=1,zm()}}function zm(){Au||(Au=Hm.then(Ym))}function Ck(t){$e(t)?Gr.push(...t):Ro&&t.id===-1?Ro.splice(Kr+1,0,t):t.flags&1||(Gr.push(t),t.flags|=1),zm()}function Tp(t,n,o=dl+1){for(;o<ka.length;o++){const i=ka[o];if(i&&i.flags&2){if(t&&i.id!==t.uid)continue;ka.splice(o,1),o--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function Qm(t){if(Gr.length){const n=[...new Set(Gr)].sort((o,i)=>Qi(o)-Qi(i));if(Gr.length=0,Ro){Ro.push(...n);return}for(Ro=n,Kr=0;Kr<Ro.length;Kr++){const o=Ro[Kr];o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2}Ro=null,Kr=0}}const Qi=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Ym(t){try{for(dl=0;dl<ka.length;dl++){const n=ka[dl];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),ts(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;dl<ka.length;dl++){const n=ka[dl];n&&(n.flags&=-2)}dl=-1,ka.length=0,Qm(),Au=null,(ka.length||Gr.length)&&Ym()}}let ca=null,Jm=null;function Eu(t){const n=ca;return ca=t,Jm=t&&t.type.__scopeId||null,n}function qt(t,n=ca,o){if(!n||t._n)return t;const i=(...u)=>{i._d&&Lu(-1);const c=Eu(n);let v;try{v=t(...u)}finally{Eu(c),i._d&&Lu(1)}return v};return i._n=!0,i._c=!0,i._d=!0,i}function xe(t,n){if(ca===null)return t;const o=Ju(ca),i=t.dirs||(t.dirs=[]);for(let u=0;u<n.length;u++){let[c,v,m,_=ct]=n[u];c&&(Ne(c)&&(c={mounted:c,updated:c}),c.deep&&Wl(v),i.push({dir:c,instance:o,value:v,oldValue:void 0,arg:m,modifiers:_}))}return t}function lr(t,n,o,i){const u=t.dirs,c=n&&n.dirs;for(let v=0;v<u.length;v++){const m=u[v];c&&(m.oldValue=c[v].value);let _=m.dir[i];_&&(ml(),gn(_,o,8,[t.el,m,t,n]),gl())}}function $k(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 Iu(t,n,o=!1){const i=Yu();if(i||zr){let u=zr?zr._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&&Ne(n)?n.call(i&&i.proxy):n}}const Pk=Symbol.for("v-scx"),Ik=()=>Iu(Pk);function lt(t,n,o){return Xm(t,n,o)}function Xm(t,n,o=ct){const{immediate:i,deep:u,flush:c,once:v}=o,m=Vt({},o),_=n&&i||!n&&c!=="post";let I;if(Yr){if(c==="sync"){const K=Ik();I=K.__watcherHandles||(K.__watcherHandles=[])}else if(!_){const K=()=>{};return K.stop=pl,K.resume=pl,K.pause=pl,K}}const k=da;m.call=(K,ee,j)=>gn(K,k,ee,j);let M=!1;c==="post"?m.scheduler=K=>{La(K,k&&k.suspense)}:c!=="sync"&&(M=!0,m.scheduler=(K,ee)=>{ee?K():gf(K)}),m.augmentJob=K=>{n&&(K.flags|=4),M&&(K.flags|=2,k&&(K.id=k.uid,K.i=k))};const q=wk(t,n,m);return Yr&&(I?I.push(q):_&&q()),q}function Sk(t,n,o){const i=this.proxy,u=It(t)?t.includes(".")?Zm(i,t):()=>i[t]:t.bind(i,i);let c;Ne(n)?c=n:(c=n.handler,o=n);const v=os(this),m=Xm(u,c.bind(i),o);return v(),m}function Zm(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 xk=Symbol("_vte"),eg=t=>t.__isTeleport,vn=Symbol("_leaveCb"),Li=Symbol("_enterCb");function tg(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leav
|
|||
|
|
* @vue/runtime-dom v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/let Zc;const Qp=typeof window<"u"&&window.trustedTypes;if(Qp)try{Zc=Qp.createPolicy("vue",{createHTML:t=>t})}catch{}const Mg=Zc?t=>Zc.createHTML(t):t=>t,M1="http://www.w3.org/2000/svg",A1="http://www.w3.org/1998/Math/MathML",Nl=typeof document<"u"?document:null,Yp=Nl&&Nl.createElement("template"),E1={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"?Nl.createElementNS(M1,t):n==="mathml"?Nl.createElementNS(A1,t):o?Nl.createElement(t,{is:o}):Nl.createElement(t);return t==="select"&&i&&i.multiple!=null&&u.setAttribute("multiple",i.multiple),u},createText:t=>Nl.createTextNode(t),createComment:t=>Nl.createComment(t),setText:(t,n)=>{t.nodeValue=n},setElementText:(t,n)=>{t.textContent=n},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Nl.querySelector(t),setScopeId(t,n){t.setAttribute(n,"")},insertStaticContent(t,n,o,i,u,c){const v=o?o.previousSibling:n.lastChild;if(u&&(u===c||u.nextSibling))for(;n.insertBefore(u.cloneNode(!0),o),!(u===c||!(u=u.nextSibling)););else{Yp.innerHTML=Mg(i==="svg"?`<svg>${t}</svg>`:i==="mathml"?`<math>${t}</math>`:t);const m=Yp.content;if(i==="svg"||i==="mathml"){const _=m.firstChild;for(;_.firstChild;)m.appendChild(_.firstChild);m.removeChild(_)}n.insertBefore(m,o)}return[v?v.nextSibling:n.firstChild,o?o.previousSibling:n.lastChild]}},Io="transition",Bi="animation",Jr=Symbol("_vtc"),Ag={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},Eg=Vt({},ag,Ag),T1=t=>(t.displayName="Transition",t.props=Eg,t),ha=T1((t,{slots:n})=>x1(Mk,Tg(t),n)),rr=(t,n=[])=>{$e(t)?t.forEach(o=>o(...n)):t&&t(...n)},Jp=t=>t?$e(t)?t.some(n=>n.length>1):t.length>1:!1;function Tg(t){const n={};for(const N in t)N in Ag||(n[N]=t[N]);if(t.css===!1)return n;const{name:o="v",type:i,duration:u,enterFromClass:c=`${o}-enter-from`,enterActiveClass:v=`${o}-enter-active`,enterToClass:m=`${o}-enter-to`,appearFromClass:_=c,appearActiveClass:I=v,appearToClass:k=m,leaveFromClass:M=`${o}-leave-from`,leaveActiveClass:q=`${o}-leave-active`,leaveToClass:K=`${o}-leave-to`}=t,ee=N1(u),j=ee&&ee[0],fe=ee&&ee[1],{onBeforeEnter:ie,onEnter:V,onEnterCancelled:_e,onLeave:X,onLeaveCancelled:ve,onBeforeAppear:We=ie,onAppear:Ie=V,onAppearCancelled:de=_e}=n,G=(N,Se,st,ht)=>{N._enterCancelled=ht,So(N,Se?k:m),So(N,Se?I:v),st&&st()},E=(N,Se)=>{N._isLeaving=!1,So(N,M),So(N,K),So(N,q),Se&&Se()},B=N=>(Se,st)=>{const ht=N?Ie:V,Ze=()=>G(Se,N,st);rr(ht,[Se,Ze]),Xp(()=>{So(Se,N?_:c),ul(Se,N?k:m),Jp(ht)||Zp(Se,i,j,Ze)})};return Vt(n,{onBeforeEnter(N){rr(ie,[N]),ul(N,c),ul(N,v)},onBeforeAppear(N){rr(We,[N]),ul(N,_),ul(N,I)},onEnter:B(!1),onAppear:B(!0),onLeave(N,Se){N._isLeaving=!0;const st=()=>E(N,Se);ul(N,M),N._enterCancelled?(ul(N,q),ef(N)):(ef(N),ul(N,q)),Xp(()=>{N._isLeaving&&(So(N,M),ul(N,K),Jp(X)||Zp(N,i,fe,st))}),rr(X,[N,st])},onEnterCancelled(N){G(N,!1,void 0,!0),rr(_e,[N])},onAppearCancelled(N){G(N,!0,void 0,!0),rr(de,[N])},onLeaveCancelled(N){E(N),rr(ve,[N])}})}function N1(t){if(t==null)return null;if(rt(t))return[Rc(t.enter),Rc(t.leave)];{const n=Rc(t);return[n,n]}}function Rc(t){return Dh(t)}function ul(t,n){n.split(/\s+/).forEach(o=>o&&t.classList.add(o)),(t[Jr]||(t[Jr]=new Set)).add(n)}function So(t,n){n.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const o=t[Jr];o&&(o.delete(n),o.size||(t[Jr]=void 0))}function Xp(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let L1=0;function Zp(t,n,o,i){const u=t._endId=++L1,c=()=>{u===t._endId&&i()};if(o!=null)return setTimeout(c,o);const{type:v,timeout:m,propCount:_}=Ng(t,n);if(!v)return i();const I=v+"end";let k=0;const M=()=>{t.removeEventListener(I,q),c()},q=K=>{K.target===t&&++k>=_&&M()};setTimeout(()=>{k<_&&M()},m+1),t.addEventListener(I,q)}function Ng(t,n){const o=window.getComputedStyle(t),i=ee=>(o[ee]||"").split(", "),u=i(`${Io}Delay`),c=i(`${Io}Dur
|
|||
|
|
`)}function sc(e){const a=qe.value,r=he.value;return{source:"standalone_web_workflow_chat",ui_node_id:Ye.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:Hs.value,persona_split_fields_total:Gs.value,selected_material_ids:Qd(),selected_draft_image_ids:Ua.value.filter(Va).map(s=>s.image_id),candidate_feedback:qa.value}}function Gb(e){var d;const a=e.interpretation;if(!a)return"候选反馈已保存。";const r=[],s=[["喜欢",a.liked],["拒绝",a.rejected],["严格拒绝",a.strict_rejected]];for(const[f,p]of s)p.length&&r.push(`${f} ${p.map(h=>h.display_code).join("、")}`);return(d=a.final)!=null&&d.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 Uv(e){var r,s,d;const a=Ve.value;if(!Ft.value||!a||a.legacy||!a.candidates.length)return"not_applicable";if(Vs.value)return Je.value="该轮次已经确认;如需继续修改,请先从当前节点创建分支。","blocked";Re.value=!0,Je.value="",hn.value="";try{const f=await ke(A.roundFeedback(a.round.round_id),{feedback_text:e,idempotency_key:`web-round-feedback-text-${a.round.round_id}-${Date.now()}`});wo(a.round.node_id,f);const p=Gb(f);return hn.value=`${p} 点击“开始新一轮”后会使用这些反馈。`,me.value=p,ed.value=e,td.value=(s=(r=f.interpretation)==null?void 0:r.metadata)!=null&&s.model_route?`候选反馈 / ${String(f.interpretation.metadata.model_route)}`:`候选反馈 / ${((d=f.interpretation)==null?void 0:d.source)||"确定性解释"}`,_n.value="","saved"}catch(f){return Je.value=`候选反馈理解失败:${ge(f)}`,me.value=Je.value,"failed"}finally{Re.value=!1}}async function Hb(){const e=_n.value.trim();if(!e||Re.value||await Uv(e)!=="not_applicable")return;if(Ft.value&&!po.value.route){me.value="当前节点和后端默认均未提供生图路由,请先显式覆盖或前往设置配置。";return}await fu({promptPatch:ic(e),metadata:sc(e)})&&(ed.value=e,td.value=`${qe.value.title} / ${xd.value||"后端自动"}`)}function Kv(){!aa.value||!ea(aa.value)||(Ms.value="generation",ja("imageViewer"),dc(),to.value=!0)}function du(e){const a=(e?Bd.value.find(r=>r.image_id===e):null)??el.value;!a||!ea(a)||(Lo.value=!1,U.value=a.image_id,Kv())}function Vv(){Ua.value.length<2||(Lo.value=!0)}function zb(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 cu(e,a){const r=ge(e),s=e instanceof sa?se(e.details,"required_action"):"";return s?`${r};建议操作:${zb(s)}。`:`${a}:${r}`}async function Qb(){var r;const e=Ve.value;if(!e||e.legacy||!Ft.value)return;const a=e.round.round_id;ma.value=!0,zn.value="";try{const s=await be(A.round(a));if(((r=Ve.value)==null?void 0:r.round.round_id)!==a)return;wo(s.round.node_id,s,{select:!0}),kn.value=s,Fo.value=!0}catch(s){Je.value=cu(s,"交叉审查轮次加载失败")}finally{ma.value=!1}}function Yb(){ma.value||(Fo.value=!1,zn.value="")}function Jb(e){var r;const a=(r=e.image)==null?void 0:r.image_id;a&&du(a)}function uc(e){wo(e.round.node_id,e,{select:!0}),kn.valu
|
|||
|
|
${d.trim()}`).join(`
|
|||
|
|
|
|||
|
|
`)}function cw(e){const a=ar(e),r=(...f)=>{for(const p of f){const h=a.find(T=>xo(T.node_key)===p);if(h!=null&&h.selected_image_id)return h.selected_image_id}return""},s={avatar:r("headshot"),persona_image:r("design_sheet","turnaround"),standing:r("full_body"),pv:r("style_lock")},d=Object.entries(s).filter(([,f])=>!f).map(([f])=>f);if(d.length){const f={avatar:"头像(头像草稿)",persona_image:"人设图(设定图或三视图)",standing:"立绘(全身设定)",pv:"PV 图(高清修复与统一风格)"};return me.value=`档案卡还缺少已明确采用的资产:${d.map(p=>f[p]).join("、")}。请回到对应节点确认一张候选图。`,null}return s}function fw(e){if(!(e instanceof sa))return`档案卡封存失败:${ge(e)}`;const a=[],r=e.details.incomplete_node_keys;Array.isArray(r)&&r.length&&a.push(`未完成节点:${r.map(String).join("、")}`);const s=se(e.details,"asset_role");s&&a.push(`资产角色:${s}`);const d=se(e.details,"active_branch")||se(e.details,"branch_name");d&&a.push(`当前分支:${d}`);const f=se(e.details,"status");f&&a.push(`工作流状态:${f}`);const p=a.length?`(${a.join(";")})`:"";return`档案卡封存失败:${e.message}${p}`}async function vw(){const e=he.value;if(!e||Re.value)return;const a=yt("建立档案卡");if(a){me.value=a;return}if(!e.workflowId||!e.profileId){me.value="请先保存角色并创建详细角色工作流,再建立档案卡。";return}const r=e.workflowId,s=Xe.value[r],d=(s==null?void 0:s.current_branch)||"main",f=cw(r);if(!f)return;const p=dw(e);if(!p){me.value="档案卡缺少人设文档,请先完成角色设定拆解。";return}const h={idempotency_key:`web-profile-card-${r}-${tu(d)}`,persona_document:p,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:d,selected_material_ids:Qd()}};Re.value=!0,me.value="";try{const T=await ke(A.workflowFinalizeCard(r),h);pi.value={...pi.value,[e.profileId]:[T,...(pi.value[e.profileId]??[]).filter(Y=>Y.card_id!==T.card_id)]},si.value=T.created_at,await vu(e,r,"archive");const[O]=await Promise.allSettled([be(A.profileCards(e.profileId)),Ud(),ga(),Ma()]);O.status==="fulfilled"&&(pi.value={...pi.value,[e.profileId]:O.value}),al("archive"),me.value=`档案卡已原子封存:${Ta(T.card_id)} / ${T.branch_name},4 类必填资产均已入库。`}catch(T){me.value=fw(T)}finally{Re.value=!1}}async function fc(e){const a=he.value,r=a==null?void 0:a.workflowId;if(!r||en.value)return;const s=e==="start"?"启动":e==="cancel"?"取消":"归档";if(e==="start"&&!Us.value){Yl.value="请先在第一个节点导入粗略人设;导入成功后工作流会自动启动。";return}if(!(e!=="start"&&!window.confirm(`确定${s}当前工作流吗?`))){en.value=!0,Yl.value="";try{const d=e==="start"?A.workflowStart(r):e==="cancel"?A.workflowCancel(r):A.workflowArchive(r),f=await ke(d);Xe.value={...Xe.value,[r]:f},Yl.value=`工作流已${s}`}catch(d){Yl.value=ge(d)}finally{en.value=!1}}}async function pw(){var a;const e=(a=he.value)==null?void 0:a.workflowId;if(e){en.value=!0;try{ld.value=await be(A.workflowReview(e)),Yl.value="整体审查已完成"}catch(r){Yl.value=ge(r)}finally{en.value=!1}}}async function Jv(){var r;const e=(r=Ae.value)==null?void 0:r.node_id;if(!e)return;en.value=!0;const a=await nc(e,!0);Yl.value=a?"依赖上下文已刷新":di.value,en.value=!1}function Ei(e){return Ra.value?`${e}暂不可用:${$l.value}`:Zn.value?`${e}已被锁定:${go.value}`:""}function mw(e){return`branch_${(e.node_key||e.node_id).replace(/[^a-zA-Z0-9_-]+/g,"_").slice(0,28)}_${Date.now().toString(36)}`}async function Xv(e,a,r,s={}){const d=await ke(A.workflowSwitchBranch(a),{branch_name:r}),f=await be(A.workflowNodes(a)),p=f.filter(O=>O.branch_name===d.current_branch);je.value={...je.value,[a]:f},Xe.value={...Xe.value,[a]:d},tr(e,d,p.length?p:f);const h=(s.copiedFromNodeId?p.find(O=>se(O.metadata,"copied_from_node_id")===s.copiedFromNodeId):void 0)??(s.preferredUiNodeId?p.find(O=>xn(O)===s.
|
|||
|
|
`)}}function pu(e,a,r,s,d){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:d,status:"ready"}}function Rw(e){const a=Fa.value,r=V.map((s,d)=>{const f=a.find(p=>p.category===s.category);return{id:`rule_${s.category}_${d+1}`,category:s.category,material_id:zd(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:tp(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?ap(s.category):"弱",required:!!(f&&["风格","服装"].includes(s.category)),status:f?"ready":"pending"}});return{profile_id:e.profileId,profile_name:e.name,selected_material_ids:Qd(),rules:r}}function tp(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 ap(e){return e==="风格"||e==="服装"?"强":e==="构图"?"中":"弱"}async function Mw(){var r;const e=he.value;if(!e||_r.value)return;const a=yt("保存快照");if(a){Do.value=a;return}if(!e.workflowId){Do.value="请先生成档案并创建后端工作流,再保存快照。";return}_r.value=!0,Do.value="";try{const s=await ke(A.workflowHistory(e.workflowId),{action:"save_version",title:`${e.name} / ${((r=qe.value)==null?void 0:r.title)??"工作流快照"}`,node_id:ho(Ye.value,e),include_nodes:!0,metadata:{source:"standalone_web",ui_node_id:Ye.value,profile_id:e.profileId,profile_name:e.name,profile_status:e.status}});si.value=s.created_at}catch(s){Do.value=`保存快照失败:${ge(s)}`}finally{_r.value=!1}}function ho(e,a){if(!a.workflowId)return;const s=ar(a.workflowId).find(f=>xn(f)===e);if(s)return s.node_id;const d=a.workflowNodeIds??[];if(e!=="brief-import"&&e==="persona-split")return d[0]}function ar(e){var s;const a=je.value[e]??[],r=(s=Xe.value[e])==null?void 0:s.current_branch;return r?a.filter(d=>d.branch_name===r):a}function Aw(e){const a=zs.value;if(a&&(!e||a.node_id===e))return[a.image_id];if(!e)return[];const r=(bt.value[e]??[]).find(s=>{var d;return s.image_id===((d=Xn.value.find(f=>f.node_id===e))==null?void 0:d.selected_image_id)});return r&&Va(r)?[r.image_id]:[]}function Va(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,d=a.fallback_used===!0||a.degraded===!0;return!r&&!s&&!d}async function Ew(){if(!Df.value||ri.value)return;const e=yt("生成档案");if(e){ii.value=e;return}$f.value+=1;const a=qw(Ce.value,$f.value);ri.value=!0,ii.value="";try{const r=await ke(A.quickProfileDraft,Tw(a,Ce.value,Kn.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},d=await ke(A.quickProfileDraftSave,Nw(s,Ce.value,Kn.value,r)),p={...Lw(d,s),status:"文本档案已保存"};bn.value=[p,...bn.value.filter(h=>h.id!==p.id)],Yt.value=[d.profile,...Yt.value.filter(h=>h.profile_id!==d.profile.profile_id)],Rt.value={...Rt.value,[d.profile.profile_id]:d.workflow?[d.workflow]:[]},nu(p),H.value="quickProfile",
|
|||
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="${Oe}" height="${pe}" viewBox="0 0 ${Oe} ${pe}" 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="${p}" />
|
|||
|
|
<stop offset="100%" stop-color="#111827" />
|
|||
|
|
</linearGradient>
|
|||
|
|
<radialGradient id="halo" cx="72%" cy="22%" r="55%">
|
|||
|
|
<stop offset="0%" stop-color="${h}" stop-opacity="0.82" />
|
|||
|
|
<stop offset="100%" stop-color="${h}" stop-opacity="0" />
|
|||
|
|
</radialGradient>
|
|||
|
|
<pattern id="grid" width="${nt}" height="${nt}" patternUnits="userSpaceOnUse">
|
|||
|
|
<path d="M${nt} 0H0V${nt}" fill="none" stroke="#ffffff" stroke-opacity="0.13" stroke-width="2" />
|
|||
|
|
</pattern>
|
|||
|
|
</defs>
|
|||
|
|
<rect width="${Oe}" height="${pe}" fill="url(#bg)" />
|
|||
|
|
<rect width="${Oe}" height="${pe}" fill="url(#grid)" />
|
|||
|
|
<circle cx="${ll}" cy="${$o}" r="${ol}" fill="url(#halo)" />
|
|||
|
|
<circle cx="${Po}" cy="${rl}" r="${b}" fill="#ffffff" opacity="0.11" />
|
|||
|
|
<rect x="${vt}" y="${vt}" width="${un}" height="${oa}" rx="${_a}" fill="#ffffff" opacity="0.14" />
|
|||
|
|
<rect x="${Lt}" y="${Lt}" width="${Aa}" height="${dn}" rx="${Math.round(_a*.72)}" fill="#0f172a" opacity="0.24" />
|
|||
|
|
<text x="${Lt+Math.round(De*.035)}" y="${Ut}" fill="#ffffff" opacity="0.72" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Bt}" font-weight="700">IMAGESTUDIO · 未生成 ${T}</text>
|
|||
|
|
<text x="${Lt+Math.round(De*.035)}" y="${ba}" fill="#ffffff" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${$}" font-weight="800">${O}</text>
|
|||
|
|
<text x="${Lt+Math.round(De*.035)}" y="${na}" fill="#ffffff" opacity="0.78" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Te}">${Y}</text>
|
|||
|
|
<text x="${re}" y="${Ut+Math.round(De*.02)}" text-anchor="middle" fill="#ffffff" opacity="0.86" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${la}" font-weight="900">${T}</text>
|
|||
|
|
<text x="${Oe-vt}" y="${pe-Math.round(vt*.35)}" text-anchor="end" fill="#ffffff" opacity="0.72" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Math.max(18,Math.round(De*.027))}" font-weight="800">${le}</text>
|
|||
|
|
</svg>`;return`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(tt)}`}function Ip(e){return e.replace(/[&<>"']/g,a=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[a]??a)}function ya(e){return"title"in e&&e.title?e.title:e.node_id||e.workflow_id||e.profile_id||Ta(e.image_id)}function ea(e){return sn(e.thumbnail_url)||sn(e.image_url)}function sn(e){const a=String(e||"").trim();if(!a)return"";const r=$h(a);if(!r)return a;const s=_t.value[a];if(s)return s;if(!Tt.has(a)){const d=Ph(a,r).finally(()=>{Tt.delete(a)});Tt.set(a,d)}return $u()==="plugin-bridge"?"":a}function $h(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 Ph(e,a){try{const r=await be(A.mediaPayload,{token:a}),s=String(r.body_base64||"");if(!s)return;const d=s.replace(/-/g,"+").replace(/_/g,"/"),f=d.padEnd(Math.ceil(d.length/4)*4,"="),p=window.atob(f),h=new Uint8Array(p.length);for(let O=0;O<p.length;O+=1)h[O]=p.charCodeAt(O);const T=URL.createObjectURL(new Blob([h],{type:r.content_type||"application/octet-stream"}));Ca.add(T),_t.value={..._t.value,[e]:T}}catch(r){console.warn("ImageStudio media bridge failed",r)}}function Ih(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 Sh(e,a,r){return Math.max(a,Math.min(r,e))}function xh(){try{const e=localStorage.getItem(on.theme);(e==="light"||e==="dark")&&(Qn.value=e),Zl.value=localStorage.getItem(on.primary)||Zl.value,eo.value=localStorage.getItem(on.accent)||eo.value;const a=localStorage.getItem(on.navigationPinned);$n.value=a===null||a==="true",an.value=Sp(localStorage.getItem(on.readNotifications)),$r.value=Sp(localStorage.getItem(on.dismissedNotifications))}catch{}kr.value=$n.value}function Rh(){try{localStorage.setItem(on.theme,Qn.value),localStorage.setItem(on.primary,Zl.value),localStorage.setItem(on.accent,eo.value),localStorage.setItem(on.navigationPinned,String($n.value)),localStorage.setItem(on.readNotifications,JSON.stringify(an.value)),localStorage.setItem(on.dismissedNotifications,JSON.stringify($r.value))}catch{}}function Sp(e){if(!e)return[];try{const a=JSON.parse(e);return Array.isArray(a)?a.filter(r=>typeof r=="string"):[]}catch{return[]}}function Ml(e,a){const r=bc(e);return r?`rgba(${r.r}, ${r.g}, ${r.b}, ${a})`:`rgba(118, 104, 232, ${a})`}function yc(e,a,r){const s=bc(e),d=bc(a);if(!s||!d)return e;const f=Math.min(1,Math.max(0,r));return`#${_c(s.r*(1-f)+d.r*f)}${_c(s.g*(1-f)+d.g*f)}${_c(s.b*(1-f)+d.b*f)}`}function _c(e){return Math.round(e).toString(16).padStart(2,"0")}function bc(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 se(e,a){const r=e==null?void 0:e[a];return typeof r=="string"?r:""}function Mh(e){return!Et(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:Et(e.request)?e.request:void 0,result:Et(e.result)?e.result:void 0,metadata:Et(e.metadata)?e.metadata:void 0,error_message:typeof e.error_message=="string"?e.error_message:null}}function Ah(e){return!!e}function Et(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}function Eh(e){return Na(e,a=>a.id)
|
|||
|
|
身份:近未来港区巡查员\r
|
|||
|
|
性格:冷静、可靠、行动快\r
|
|||
|
|
外观:黑色短发,青绿色眼睛\r
|
|||
|
|
服装:轻机能外套、短靴、发光臂章\r
|
|||
|
|
避雷:低质量、结构错误`},null,512),[[Ke,oi.value]])]),l("aside",xx,[l("header",null,[l("div",null,[a[166]||(a[166]=l("span",null,"识别预览",-1)),l("strong",null,g(zg.value)+" / "+g(yd.value.length),1)]),l("em",null,g(Sr.value?`${Sr.value.length} 字`:"待粘贴"),1)]),l("dl",null,[(y(!0),w(z,null,ue(yd.value,b=>(y(),w("div",{key:b.key,class:oe({pending:Sr.value&&!b.recognized})},[l("dt",null,[Bl(g(b.label)+" ",1),l("span",null,g(b.recognized?"已识别":"待整理"),1)]),l("dd",null,g(b.value||"粘贴文本后显示"),1)],2))),128))])])]),l("footer",null,[l("span",null,g(Sr.value?"识别结果会先填入问卷,仍可在问卷里继续微调。":"等待外部角色卡文本。"),1),l("button",{type:"button",onClick:a[36]||(a[36]=b=>At("externalProfileImport"))},"取消"),l("button",{type:"button",disabled:!Sr.value,onClick:Fw}," 识别并填入问卷 ",8,Rx)])])])):ce("",!0)]),_:1}),Ee(ha,{name:"viewer-fade"},{default:qt(()=>[vs.value?(y(),w("div",Mx,[l("section",Ax,[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]=b=>At("personaQuestionnaire"))},"×")]),l("div",Ex,[l("label",null,[a[168]||(a[168]=l("span",null,"角色核心",-1)),xe(l("textarea",{"onUpdate:modelValue":a[38]||(a[38]=b=>Ce.value.roleCore=b),rows:"3",placeholder:"角色名、身份、核心定位,可以只写一句。"},null,512),[[Ke,Ce.value.roleCore]])]),l("label",Tx,[a[170]||(a[170]=l("span",null,"性别表现",-1)),xe(l("select",{"onUpdate:modelValue":a[39]||(a[39]=b=>Ce.value.genderPresentation=b)},[...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),[[Mn,Ce.value.genderPresentation]])]),l("label",Nx,[a[171]||(a[171]=l("span",null,"年龄阶段",-1)),xe(l("input",{"onUpdate:modelValue":a[40]||(a[40]=b=>Ce.value.ageStage=b),type:"text",placeholder:"例如 adult、young adult、middle-aged"},null,512),[[Ke,Ce.value.ageStage]])]),l("label",Lx,[a[172]||(a[172]=l("span",null,"物种 / 种族",-1)),xe(l("input",{"onUpdate:modelValue":a[41]||(a[41]=b=>Ce.value.species=b),type:"text",placeholder:"例如 human、elf、android"},null,512),[[Ke,Ce.value.species]])]),l("label",Bx,[a[173]||(a[173]=l("span",null,"体型",-1)),xe(l("input",{"onUpdate:modelValue":a[42]||(a[42]=b=>Ce.value.bodyType=b),type:"text",placeholder:"例如 slim、athletic、muscular"},null,512),[[Ke,Ce.value.bodyType]])]),l("label",null,[a[174]||(a[174]=l("span",null,"显著特征",-1)),xe(l("textarea",{"onUpdate:modelValue":a[43]||(a[43]=b=>Ce.value.distinctiveFeatures=b),rows:"3",placeholder:"伤疤、异色瞳、义体、角、纹身或固定视觉记忆点。"},null,512),[[Ke,Ce.value.distinctiveFeatures]])]),l("label",null,[a[175]||(a[175]=l("span",null,"性格关键词",-1)),xe(l("textarea",{"onUpdate:modelValue":a[44]||(a[44]=b=>Ce.value.personality=b),rows:"3",placeholder:"外显性格、内在矛盾、行动方式。"},null,512),[[Ke,Ce.value.personality]])]),l("label",null,[a[176]||(a[176]=l("span",null,"外观特征",-1)),xe(l("textarea",{"onUpdate:modelValue":a[45]||(a[45]=b=>Ce.value.appearance=b),rows:"3",placeholder:"发色、发型、眼睛、五官和视觉记忆点。"},null,512),[[Ke,Ce.value.appearance]])]),l("label",null,[a[177]||(a[177]=l("span",null,"服装与配饰",-1)),xe(l("textarea",{"onUpdate:modelValue":a[46]||(a[46]=b=>Ce.value.outfit=b),rows:"3",placeholder:"服装风格、配饰、武器或随身物。"},null,512),[[Ke,Ce.value.outfit]])]),l("label",null,[a[178]||(a[178]=l("span",null,"常用场景",-1)),xe(l("textarea",{"onUpdate:modelValue":a[47]||(a[47]=b=>Ce.value.scene=b),rows:"3",placeholder:"常驻地点、画面背景、适合出现的环境。"},null,512),[[Ke,Ce.value.scene]])]),l("label",null,[a[179]||(a[179]=l("span",null,"避雷内容",-1)),xe(l("textarea",{"onUp
|