astrbot_plugin_imagestudio/web/assets/index-ChLO5vLw.js

18 行
79 KiB
JavaScript

var Gi=Object.defineProperty;var zi=(e,t,s)=>t in e?Gi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var vs=(e,t,s)=>zi(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 Us(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const ee={},xt=[],Ne=()=>{},Bn=()=>!1,os=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cs=e=>e.startsWith("onUpdate:"),de=Object.assign,Vs=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Yi=Object.prototype.hasOwnProperty,G=(e,t)=>Yi.call(e,t),$=Array.isArray,wt=e=>Ut(e)==="[object Map]",Wn=e=>Ut(e)==="[object Set]",dn=e=>Ut(e)==="[object Date]",N=e=>typeof e=="function",le=e=>typeof e=="string",He=e=>typeof e=="symbol",Y=e=>e!==null&&typeof e=="object",Kn=e=>(Y(e)||N(e))&&N(e.then)&&N(e.catch),Un=Object.prototype.toString,Ut=e=>Un.call(e),Xi=e=>Ut(e).slice(8,-1),Vn=e=>Ut(e)==="[object Object]",qs=e=>le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,It=Us(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),us=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Zi=/-\w/g,Oe=us(e=>e.replace(Zi,t=>t.slice(1).toUpperCase())),Qi=/\B([A-Z])/g,ht=us(e=>e.replace(Qi,"-$1").toLowerCase()),qn=us(e=>e.charAt(0).toUpperCase()+e.slice(1)),ys=us(e=>e?`on${qn(e)}`:""),$e=(e,t)=>!Object.is(e,t),xs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Jn=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},er=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let hn;const as=()=>hn||(hn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Js(e){if($(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],i=le(n)?ir(n):Js(n);if(i)for(const r in i)t[r]=i[r]}return t}else if(le(e)||Y(e))return e}const tr=/;(?![^(]*\))/g,sr=/:([^]+)/,nr=/\/\*[^]*?\*\//g;function ir(e){const t={};return e.replace(nr,"").split(tr).forEach(s=>{if(s){const n=s.split(sr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function fs(e){let t="";if(le(e))t=e;else if($(e))for(let s=0;s<e.length;s++){const n=fs(e[s]);n&&(t+=n+" ")}else if(Y(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const rr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",lr=Us(rr);function Gn(e){return!!e||e===""}function or(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Gs(e[n],t[n]);return s}function Gs(e,t){if(e===t)return!0;let s=dn(e),n=dn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=He(e),n=He(t),s||n)return e===t;if(s=$(e),n=$(t),s||n)return s&&n?or(e,t):!1;if(s=Y(e),n=Y(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 c=e.hasOwnProperty(l),u=t.hasOwnProperty(l);if(c&&!u||!c&&u||!Gs(e[l],t[l]))return!1}}return String(e)===String(t)}const zn=e=>!!(e&&e.__v_isRef===!0),g=e=>le(e)?e:e==null?"":$(e)||Y(e)&&(e.toString===Un||!N(e.toString))?zn(e)?g(e.value):JSON.stringify(e,Yn,2):String(e),Yn=(e,t)=>zn(t)?Yn(e,t.value):wt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],r)=>(s[ws(n,r)+" =>"]=i,s),{})}:Wn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ws(s))}:He(t)?ws(t):Y(t)&&!$(t)&&!Vn(t)?String(t):t,ws=(e,t="")=>{var s;return He(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 fe;class cr{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&&fe&&(fe.active?(this.parent=fe,this.index=(fe.scopes||(fe.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=fe;try{return fe=this,t()}finally{fe=s}}}on(){++this._on===1&&(this.prevScope=fe,fe=this)}off(){if(this._on>0&&--this._on===0){if(fe===this)fe=this.prevScope;else{let t=fe;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 ur(){return fe}let Q;const Ss=new WeakSet;class Xn{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,fe&&(fe.active?fe.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ss.has(this)&&(Ss.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Qn(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,pn(this),ei(this);const t=Q,s=Pe;Q=this,Pe=!0;try{return this.fn()}finally{ti(this),Q=t,Pe=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Xs(t);this.deps=this.depsTail=void 0,pn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ss.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ds(this)&&this.run()}get dirty(){return Ds(this)}}let Zn=0,Dt,Ft;function Qn(e,t=!1){if(e.flags|=8,t){e.next=Ft,Ft=e;return}e.next=Dt,Dt=e}function zs(){Zn++}function Ys(){if(--Zn>0)return;if(Ft){let t=Ft;for(Ft=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Dt;){let t=Dt;for(Dt=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 ei(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ti(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),Xs(n),ar(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Ds(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(si(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function si(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Nt)||(e.globalVersion=Nt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ds(e))))return;e.flags|=2;const t=e.dep,s=Q,n=Pe;Q=e,Pe=!0;try{ei(e);const i=e.fn(e._value);(t.version===0||$e(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Q=s,Pe=n,ti(e),e.flags&=-3}}function Xs(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)Xs(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function ar(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Pe=!0;const ni=[];function Be(){ni.push(Pe),Pe=!1}function We(){const e=ni.pop();Pe=e===void 0?!0:e}funct
* @vue/runtime-core v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Vt(e,t,s,n){try{return n?e(...n):e()}catch(i){hs(i,t,s)}}function Me(e,t,s,n){if(N(e)){const i=Vt(e,t,s,n);return i&&Kn(i)&&i.catch(r=>{hs(r,t,s)}),i}if($(e)){const i=[];for(let r=0;r<e.length;r++)i.push(Me(e[r],t,s,n));return i}}function hs(e,t,s,n=!0){const i=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||ee;if(t){let c=t.parent;const u=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${s}`;for(;c;){const d=c.ec;if(d){for(let _=0;_<d.length;_++)if(d[_](e,u,h)===!1)return}c=c.parent}if(r){Be(),Vt(r,null,10,[e,u,h]),We();return}}$r(e,s,i,n,l)}function $r(e,t,s,n=!0,i=!1){if(i)throw e;console.error(e)}const be=[];let Fe=-1;const St=[];let nt=null,vt=0;const di=Promise.resolve();let ts=null;function kr(e){const t=ts||di;return e?t.then(this?e.bind(this):e):t}function Nr(e){let t=Fe+1,s=be.length;for(;t<s;){const n=t+s>>>1,i=be[n],r=Bt(i);r<e||r===e&&i.flags&2?t=n+1:s=n}return t}function nn(e){if(!(e.flags&1)){const t=Bt(e),s=be[be.length-1];!s||!(e.flags&2)&&t>=Bt(s)?be.push(e):be.splice(Nr(t),0,e),e.flags|=1,hi()}}function hi(){ts||(ts=di.then(gi))}function Hr(e){$(e)?St.push(...e):nt&&e.id===-1?nt.splice(vt+1,0,e):e.flags&1||(St.push(e),e.flags|=1),hi()}function _n(e,t,s=Fe+1){for(;s<be.length;s++){const n=be[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;be.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function pi(e){if(St.length){const t=[...new Set(St)].sort((s,n)=>Bt(s)-Bt(n));if(St.length=0,nt){nt.push(...t);return}for(nt=t,vt=0;vt<nt.length;vt++){const s=nt[vt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}nt=null,vt=0}}const Bt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function gi(e){try{for(Fe=0;Fe<be.length;Fe++){const t=be[Fe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Vt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Fe<be.length;Fe++){const t=be[Fe];t&&(t.flags&=-2)}Fe=-1,be.length=0,pi(),ts=null,(be.length||St.length)&&gi()}}let ke=null,_i=null;function ss(e){const t=ke;return ke=e,_i=e&&e.type.__scopeId||null,t}function Br(e,t=ke,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&On(-1);const r=ss(t);let l;try{l=e(...i)}finally{ss(r),n._d&&On(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function ct(e,t,s,n){const i=e.dirs,r=t&&t.dirs;for(let l=0;l<i.length;l++){const c=i[l];r&&(c.oldValue=r[l].value);let u=c.dir[n];u&&(Be(),Me(u,s,8,[e.el,c,e,t]),We())}}function Wr(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 Zt(e,t,s=!1){const n=Wl();if(n||Ct){let i=Ct?Ct._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&&N(t)?t.call(n&&n.proxy):t}}const Kr=Symbol.for("v-scx"),Ur=()=>Zt(Kr);function Es(e,t,s){return mi(e,t,s)}function mi(e,t,s=ee){const{immediate:n,deep:i,flush:r,once:l}=s,c=de({},s),u=t&&n||!t&&r!=="post";let h;if(Kt){if(r==="sync"){const P=Ur();h=P.__watcherHandles||(P.__watcherHandles=[])}else if(!u){const P=()=>{};return P.stop=Ne,P.resume=Ne,P.pause=Ne,P}}const d=ve;c.call=(P,K,j)=>Me(P,d,K,j);let _=!1;r==="post"?c.scheduler=P=>{we(P,d&&d.suspense)}:r!=="sync"&&(_=!0,c.scheduler=(P,K)=>{K?P():nn(P)}),c.augmentJob=P=>{t&&(P.flags|=4),_&&(P.flags|=2,d&&(P.id=d.uid,P.i=d))};const E=jr(e,t,c);return Kt&&(h?h.push(E):u&&E()),E}function Vr(e,t,s){const n=this.proxy,i=le(e)?e.includes(".")?bi(n,e):()=>n[e]:e.bind(n,n);let r;N(t)?r=t:(r=t.handler,s=t);const l=qt(this),c=mi(i,r.bind(n),s);return l(),c}function bi(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 qr=Symbol("_vte"),Jr=e=>e.__isTeleport,Os=Symbol("_leaveCb");function rn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,rn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Gr(e,t){return N(e)?de({name:e.name},t,{setup:e}):e}function vi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function mn(e,t){let s;return!!((
* @vue/runtime-dom v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ks;const Mn=typeof window<"u"&&window.trustedTypes;if(Mn)try{Ks=Mn.createPolicy("vue",{createHTML:e=>e})}catch{}const qi=Ks?e=>Ks.createHTML(e):e=>e,zl="http://www.w3.org/2000/svg",Yl="http://www.w3.org/1998/Math/MathML",Ge=typeof document<"u"?document:null,Rn=Ge&&Ge.createElement("template"),Xl={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(zl,e):t==="mathml"?Ge.createElementNS(Yl,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{Rn.innerHTML=qi(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const c=Rn.content;if(n==="svg"||n==="mathml"){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}t.insertBefore(c,s)}return[l?l.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Zl=Symbol("_vtc");function Ql(e,t,s){const n=e[Zl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const In=Symbol("_vod"),eo=Symbol("_vsh"),to=Symbol(""),so=/(?:^|;)\s*display\s*:/;function no(e,t,s){const n=e.style,i=le(s);let r=!1;if(s&&!i){if(t)if(le(t))for(const l of t.split(";")){const c=l.slice(0,l.indexOf(":")).trim();s[c]==null&&Rt(n,c,"")}else for(const l in t)s[l]==null&&Rt(n,l,"");for(const l in s){l==="display"&&(r=!0);const c=s[l];c!=null?ro(e,l,!le(t)&&t?t[l]:void 0,c)||Rt(n,l,c):Rt(n,l,"")}}else if(i){if(t!==s){const l=n[to];l&&(s+=";"+l),n.cssText=s,r=so.test(s)}}else t&&e.removeAttribute("style");In in e&&(e[In]=r?n.display:"",e[eo]&&(n.display="none"))}const Dn=/\s*!important$/;function Rt(e,t,s){if($(s))s.forEach(n=>Rt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=io(e,t);Dn.test(s)?e.setProperty(ht(n),s.replace(Dn,""),"important"):e[n]=s}}const Fn=["Webkit","Moz","ms"],Rs={};function io(e,t){const s=Rs[t];if(s)return s;let n=Oe(t);if(n!=="filter"&&n in e)return Rs[t]=n;n=qn(n);for(let i=0;i<Fn.length;i++){const r=Fn[i]+n;if(r in e)return Rs[t]=r}return t}function ro(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&le(n)&&s===n}const Ln="http://www.w3.org/1999/xlink";function jn(e,t,s,n,i,r=lr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Ln,t.slice(6,t.length)):e.setAttributeNS(Ln,t,s):s==null||r&&!Gn(s)?e.removeAttribute(t):e.setAttribute(t,r?"":He(s)?String(s):s)}function $n(e,t,s,n,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?qi(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const c=r==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(c!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let l=!1;if(s===""||s==null){const c=typeof e[t];c==="boolean"?s=Gn(s):s==null&&c==="string"?(s="",l=!0):c==="number"&&(s=0,l=!0)}try{e[t]=s}catch{}l&&e.removeAttribute(i||t)}function lo(e,t,s,n){e.addEventListener(t,s,n)}function oo(e,t,s,n){e.removeEventListener(t,s,n)}const kn=Symbol("_vei");function co(e,t,s,n,i=null){const r=e[kn]||(e[kn]={}),l=r[t];if(n&&l)l.value=n;else{const[c,u]=fo(t);if(n){const h=r[t]=go(n,i);lo(e,c,h,u)}else l&&(oo(e,c,l,u),r[t]=void 0)}}const uo=/(Once|Passive|Capture)$/,ao=/^on:?(?:Once|Passive|Capture)$/;function fo(e){let t,s;for(;(s=e.match(uo))&&!ao.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):ht(e.slice(2)),t]}let Is=0;const ho=Promise.resolve(),po=()=>Is||(ho.then(()=>Is=0),Is=Dat