astrbot_plugin_imagestudio/web/assets/index-hovnaFZS.js

18 行
82 KiB
JavaScript

2026-07-05 13:00:08 +08:00
var ir=Object.defineProperty;var rr=(e,t,s)=>t in e?ir(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var Ts=(e,t,s)=>rr(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const l of r.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function s(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(i){if(i.ep)return;i.ep=!0;const r=s(i);fetch(i.href,r)}})();/**
* @vue/shared v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Xs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const X={},xt=[],Be=()=>{},Xn=()=>!1,ps=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),gs=e=>e.startsWith("onUpdate:"),fe=Object.assign,Zs=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},lr=Object.prototype.hasOwnProperty,q=(e,t)=>lr.call(e,t),L=Array.isArray,St=e=>Xt(e)==="[object Map]",Zn=e=>Xt(e)==="[object Set]",bn=e=>Xt(e)==="[object Date]",j=e=>typeof e=="function",re=e=>typeof e=="string",Ve=e=>typeof e=="symbol",z=e=>e!==null&&typeof e=="object",Qn=e=>(z(e)||j(e))&&j(e.then)&&j(e.catch),ei=Object.prototype.toString,Xt=e=>ei.call(e),or=e=>Xt(e).slice(8,-1),ti=e=>Xt(e)==="[object Object]",Qs=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Nt=Xs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_s=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},cr=/-\w/g,De=_s(e=>e.replace(cr,t=>t.slice(1).toUpperCase())),ar=/\B([A-Z])/g,dt=_s(e=>e.replace(ar,"-$1").toLowerCase()),si=_s(e=>e.charAt(0).toUpperCase()+e.slice(1)),Os=_s(e=>e?`on${si(e)}`:""),He=(e,t)=>!Object.is(e,t),is=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},ni=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},en=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let yn;const ms=()=>yn||(yn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function tn(e){if(L(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],i=re(n)?hr(n):tn(n);if(i)for(const r in i)t[r]=i[r]}return t}else if(re(e)||z(e))return e}const ur=/;(?![^(]*\))/g,fr=/:([^]+)/,dr=/\/\*[^]*?\*\//g;function hr(e){const t={};return e.replace(dr,"").split(ur).forEach(s=>{if(s){const n=s.split(fr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function vs(e){let t="";if(re(e))t=e;else if(L(e))for(let s=0;s<e.length;s++){const n=vs(e[s]);n&&(t+=n+" ")}else if(z(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const pr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gr=Xs(pr);function ii(e){return!!e||e===""}function _r(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=sn(e[n],t[n]);return s}function sn(e,t){if(e===t)return!0;let s=bn(e),n=bn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Ve(e),n=Ve(t),s||n)return e===t;if(s=L(e),n=L(t),s||n)return s&&n?_r(e,t):!1;if(s=z(e),n=z(t),s||n){if(!s||!n)return!1;const i=Object.keys(e).length,r=Object.keys(t).length;if(i!==r)return!1;for(const l in e){const o=e.hasOwnProperty(l),a=t.hasOwnProperty(l);if(o&&!a||!o&&a||!sn(e[l],t[l]))return!1}}return String(e)===String(t)}const ri=e=>!!(e&&e.__v_isRef===!0),_=e=>re(e)?e:e==null?"":L(e)||z(e)&&(e.toString===ei||!j(e.toString))?ri(e)?_(e.value):JSON.stringify(e,li,2):String(e),li=(e,t)=>ri(t)?li(e,t.value):St(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],r)=>(s[Ps(n,r)+" =>"]=i,s),{})}:Zn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Ps(s))}:Ve(t)?Ps(t):z(t)&&!L(t)&&!ti(t)?String(t):t,Ps=(e,t="")=>{var s;return Ve(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
* @vue/reactivity v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let ue;class mr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ue&&(ue.active?(this.parent=ue,this.index=(ue.scopes||(ue.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=ue;try{return ue=this,t()}finally{ue=s}}}on(){++this._on===1&&(this.prevScope=ue,ue=this)}off(){if(this._on>0&&--this._on===0){if(ue===this)ue=this.prevScope;else{let t=ue;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function vr(){return ue}let Z;const As=new WeakSet;class oi{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ue&&(ue.active?ue.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,As.has(this)&&(As.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ai(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,wn(this),ui(this);const t=Z,s=Re;Z=this,Re=!0;try{return this.fn()}finally{fi(this),Z=t,Re=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ln(t);this.deps=this.depsTail=void 0,wn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?As.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Hs(this)&&this.run()}get dirty(){return Hs(this)}}let ci=0,Ht,Bt;function ai(e,t=!1){if(e.flags|=8,t){e.next=Bt,Bt=e;return}e.next=Ht,Ht=e}function nn(){ci++}function rn(){if(--ci>0)return;if(Bt){let t=Bt;for(Bt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ht;){let t=Ht;for(Ht=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function ui(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function fi(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),ln(n),br(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Hs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(di(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function di(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===qt)||(e.globalVersion=qt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Hs(e))))return;e.flags|=2;const t=e.dep,s=Z,n=Re;Z=e,Re=!0;try{ui(e);const i=e.fn(e._value);(t.version===0||He(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Z=s,Re=n,fi(e),e.flags&=-3}}function ln(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)ln(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function br(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Re=!0;const hi=[];function We(){hi.push(Re),Re=!1}function Ke(){const e=hi.pop();Re=e===void 0?!0:e}funct
* @vue/runtime-core v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Zt(e,t,s,n){try{return n?e(...n):e()}catch(i){ys(i,t,s)}}function Fe(e,t,s,n){if(j(e)){const i=Zt(e,t,s,n);return i&&Qn(i)&&i.catch(r=>{ys(r,t,s)}),i}if(L(e)){const i=[];for(let r=0;r<e.length;r++)i.push(Fe(e[r],t,s,n));return i}}function ys(e,t,s,n=!0){const i=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||X;if(t){let o=t.parent;const a=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${s}`;for(;o;){const h=o.ec;if(h){for(let b=0;b<h.length;b++)if(h[b](e,a,p)===!1)return}o=o.parent}if(r){We(),Zt(r,null,10,[e,a,p]),Ke();return}}qr(e,s,i,n,l)}function qr(e,t,s,n=!0,i=!1){if(i)throw e;console.error(e)}const me=[];let $e=-1;const Ct=[];let st=null,bt=0;const xi=Promise.resolve();let cs=null;function Jr(e){const t=cs||xi;return e?t.then(this?e.bind(this):e):t}function Gr(e){let t=$e+1,s=me.length;for(;t<s;){const n=t+s>>>1,i=me[n],r=Gt(i);r<e||r===e&&i.flags&2?t=n+1:s=n}return t}function dn(e){if(!(e.flags&1)){const t=Gt(e),s=me[me.length-1];!s||!(e.flags&2)&&t>=Gt(s)?me.push(e):me.splice(Gr(t),0,e),e.flags|=1,Si()}}function Si(){cs||(cs=xi.then(Ei))}function zr(e){L(e)?Ct.push(...e):st&&e.id===-1?st.splice(bt+1,0,e):e.flags&1||(Ct.push(e),e.flags|=1),Si()}function Sn(e,t,s=$e+1){for(;s<me.length;s++){const n=me[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;me.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Ci(e){if(Ct.length){const t=[...new Set(Ct)].sort((s,n)=>Gt(s)-Gt(n));if(Ct.length=0,st){st.push(...t);return}for(st=t,bt=0;bt<st.length;bt++){const s=st[bt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}st=null,bt=0}}const Gt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ei(e){try{for($e=0;$e<me.length;$e++){const t=me[$e];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Zt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;$e<me.length;$e++){const t=me[$e];t&&(t.flags&=-2)}$e=-1,me.length=0,Ci(),cs=null,(me.length||Ct.length)&&Ei()}}let Oe=null,Ti=null;function as(e){const t=Oe;return Oe=e,Ti=e&&e.type.__scopeId||null,t}function Yr(e,t=Oe,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&Fn(-1);const r=as(t);let l;try{l=e(...i)}finally{as(r),n._d&&Fn(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function Xr(e,t){if(Oe===null)return e;const s=Cs(Oe),n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,l,o,a=X]=t[i];r&&(j(r)&&(r={mounted:r,updated:r}),r.deep&&Xe(l),n.push({dir:r,instance:s,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function ot(e,t,s,n){const i=e.dirs,r=t&&t.dirs;for(let l=0;l<i.length;l++){const o=i[l];r&&(o.oldValue=r[l].value);let a=o.dir[n];a&&(We(),Fe(a,s,8,[e.el,o,e,t]),Ke())}}function Zr(e,t){if(ve){let s=ve.provides;const n=ve.parent&&ve.parent.provides;n===s&&(s=ve.provides=Object.create(n)),s[e]=t}}function rs(e,t,s=!1){const n=Zl();if(n||Et){let i=Et?Et._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return s&&j(t)?t.call(n&&n.proxy):t}}const Qr=Symbol.for("v-scx"),el=()=>rs(Qr);function Rs(e,t,s){return Oi(e,t,s)}function Oi(e,t,s=X){const{immediate:n,deep:i,flush:r,once:l}=s,o=fe({},s),a=t&&n||!t&&r!=="post";let p;if(Yt){if(r==="sync"){const O=el();p=O.__watcherHandles||(O.__watcherHandles=[])}else if(!a){const O=()=>{};return O.stop=Be,O.resume=Be,O.pause=Be,O}}const h=ve;o.call=(O,B,F)=>Fe(O,h,B,F);let b=!1;r==="post"?o.scheduler=O=>{we(O,h&&h.suspense)}:r!=="sync"&&(b=!0,o.scheduler=(O,B)=>{B?O():dn(O)}),o.augmentJob=O=>{t&&(O.flags|=4),b&&(O.flags|=2,h&&(O.id=h.uid,O.i=h))};const T=Ur(e,t,o);return Yt&&(p?p.push(T):a&&T()),T}function tl(e,t,s){const n=this.proxy,i=re(e)?e.includes(".")?Pi(n,e):()=>n[e]:e.bind(n,n);let r;j(t)?r=t:(r=t.handler,s=t);const l=Qt(this),o=Oi(i,r.bind(n),s);return l(),o}function Pi(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;i<s.length&&n;i++)n=n[s[i]];return n}}const sl=Symbol("_vte"),nl=e=>e.__isTeleport,Is=Symbol("_leaveCb");function hn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,hn(e.component.subTree,t)):e.shapeFlag&128?(
* @vue/runtime-dom v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ys;const $n=typeof window<"u"&&window.trustedTypes;if($n)try{Ys=$n.createPolicy("vue",{createHTML:e=>e})}catch{}const sr=Ys?e=>Ys.createHTML(e):e=>e,ro="http://www.w3.org/2000/svg",lo="http://www.w3.org/1998/Math/MathML",Ge=typeof document<"u"?document:null,kn=Ge&&Ge.createElement("template"),oo={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?Ge.createElementNS(ro,e):t==="mathml"?Ge.createElementNS(lo,e):s?Ge.createElement(e,{is:s}):Ge.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Ge.createTextNode(e),createComment:e=>Ge.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ge.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,r){const l=s?s.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===r||!(i=i.nextSibling)););else{kn.innerHTML=sr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const o=kn.content;if(n==="svg"||n==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,s)}return[l?l.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},co=Symbol("_vtc");function ao(e,t,s){const n=e[co];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Nn=Symbol("_vod"),uo=Symbol("_vsh"),fo=Symbol(""),ho=/(?:^|;)\s*display\s*:/;function po(e,t,s){const n=e.style,i=re(s);let r=!1;if(s&&!i){if(t)if(re(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();s[o]==null&&kt(n,o,"")}else for(const l in t)s[l]==null&&kt(n,l,"");for(const l in s){l==="display"&&(r=!0);const o=s[l];o!=null?_o(e,l,!re(t)&&t?t[l]:void 0,o)||kt(n,l,o):kt(n,l,"")}}else if(i){if(t!==s){const l=n[fo];l&&(s+=";"+l),n.cssText=s,r=ho.test(s)}}else t&&e.removeAttribute("style");Nn in e&&(e[Nn]=r?n.display:"",e[uo]&&(n.display="none"))}const Hn=/\s*!important$/;function kt(e,t,s){if(L(s))s.forEach(n=>kt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=go(e,t);Hn.test(s)?e.setProperty(dt(n),s.replace(Hn,""),"important"):e[n]=s}}const Bn=["Webkit","Moz","ms"],$s={};function go(e,t){const s=$s[t];if(s)return s;let n=De(t);if(n!=="filter"&&n in e)return $s[t]=n;n=si(n);for(let i=0;i<Bn.length;i++){const r=Bn[i]+n;if(r in e)return $s[t]=r}return t}function _o(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&re(n)&&s===n}const Vn="http://www.w3.org/1999/xlink";function Wn(e,t,s,n,i,r=gr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Vn,t.slice(6,t.length)):e.setAttributeNS(Vn,t,s):s==null||r&&!ii(s)?e.removeAttribute(t):e.setAttribute(t,r?"":Ve(s)?String(s):s)}function Kn(e,t,s,n,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?sr(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const o=r==="OPTION"?e.getAttribute("value")||"":e.value,a=s==null?e.type==="checkbox"?"on":"":String(s);(o!==a||!("_value"in e))&&(e.value=a),s==null&&e.removeAttribute(t),e._value=s;return}let l=!1;if(s===""||s==null){const o=typeof e[t];o==="boolean"?s=ii(s):s==null&&o==="string"?(s="",l=!0):o==="number"&&(s=0,l=!0)}try{e[t]=s}catch{}l&&e.removeAttribute(i||t)}function wt(e,t,s,n){e.addEventListener(t,s,n)}function mo(e,t,s,n){e.removeEventListener(t,s,n)}const Un=Symbol("_vei");function vo(e,t,s,n,i=null){const r=e[Un]||(e[Un]={}),l=r[t];if(n&&l)l.value=n;else{const[o,a]=wo(t);if(n){const p=r[t]=Co(n,i);wt(e,o,p,a)}else l&&(mo(e,o,l,a),r[t]=void 0)}}const bo=/(Once|Passive|Capture)$/,yo=/^on:?(?:Once|Passive|Capture)$/;function wo(e){let t,s;for(;(s=e.match(bo))&&!yo.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):dt(e.slice(2)),t]}let ks=0;const xo=Promise.resolve(),So=()=>ks||(xo.then(()=>ks=0),ks=Dat