astrbot_plugin_imagestudio/web/assets/index-ByLkWMta.js

18 行
74 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 Ws(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Y={},St=[],Ve=()=>{},Kn=()=>!1,fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),as=e=>e.startsWith("onUpdate:"),ce=Object.assign,ks=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Yi=Object.prototype.hasOwnProperty,V=(e,t)=>Yi.call(e,t),F=Array.isArray,Ct=e=>Gt(e)==="[object Map]",Un=e=>Gt(e)==="[object Set]",dn=e=>Gt(e)==="[object Date]",$=e=>typeof e=="function",Q=e=>typeof e=="string",We=e=>typeof e=="symbol",J=e=>e!==null&&typeof e=="object",Vn=e=>(J(e)||$(e))&&$(e.then)&&$(e.catch),Wn=Object.prototype.toString,Gt=e=>Wn.call(e),Xi=e=>Gt(e).slice(8,-1),kn=e=>Gt(e)==="[object Object]",qs=e=>Q(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,jt=Ws(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ds=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Zi=/-\w/g,Oe=ds(e=>e.replace(Zi,t=>t.slice(1).toUpperCase())),Qi=/\B([A-Z])/g,gt=ds(e=>e.replace(Qi,"-$1").toLowerCase()),qn=ds(e=>e.charAt(0).toUpperCase()+e.slice(1)),ys=ds(e=>e?`on${qn(e)}`:""),Ke=(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 hs=()=>hn||(hn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Js(e){if(F(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],i=Q(n)?ir(n):Js(n);if(i)for(const r in i)t[r]=i[r]}return t}else if(Q(e)||J(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 Ne(e){let t="";if(Q(e))t=e;else if(F(e))for(let s=0;s<e.length;s++){const n=Ne(e[s]);n&&(t+=n+" ")}else if(J(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const rr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",lr=Ws(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=We(e),n=We(t),s||n)return e===t;if(s=F(e),n=F(t),s||n)return s&&n?or(e,t):!1;if(s=J(e),n=J(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),u=t.hasOwnProperty(l);if(o&&!u||!o&&u||!Gs(e[l],t[l]))return!1}}return String(e)===String(t)}const zn=e=>!!(e&&e.__v_isRef===!0),M=e=>Q(e)?e:e==null?"":F(e)||J(e)&&(e.toString===Wn||!$(e.toString))?zn(e)?M(e.value):JSON.stringify(e,Yn,2):String(e),Yn=(e,t)=>zn(t)?Yn(e,t.value):Ct(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],r)=>(s[ws(n,r)+" =>"]=i,s),{})}:Un(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ws(s))}:We(t)?ws(t):J(t)&&!F(t)&&!kn(t)?String(t):t,ws=(e,t="")=>{var s;return We(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 oe;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&&oe&&(oe.active?(this.parent=oe,this.index=(oe.scopes||(oe.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=oe;try{return oe=this,t()}finally{oe=s}}}on(){++this._on===1&&(this.prevScope=oe,oe=this)}off(){if(this._on>0&&--this._on===0){if(oe===this)oe=this.prevScope;else{let t=oe;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 oe}let z;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,oe&&(oe.active?oe.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=z,s=Ae;z=this,Ae=!0;try{return this.fn()}finally{ti(this),z=t,Ae=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,Lt,Nt;function Qn(e,t=!1){if(e.flags|=8,t){e.next=Nt,Nt=e;return}e.next=Lt,Lt=e}function zs(){Zn++}function Ys(){if(--Zn>0)return;if(Nt){let t=Nt;for(Nt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Lt;){let t=Lt;for(Lt=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),fr(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===Vt)||(e.globalVersion=Vt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ds(e))))return;e.flags|=2;const t=e.dep,s=z,n=Ae;z=e,Ae=!0;try{ei(e);const i=e.fn(e._value);(t.version===0||Ke(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{z=s,Ae=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 fr(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Ae=!0;const ni=[];function ke(){ni.push(Ae),Ae=!1}function qe(){const e=ni.pop();Ae=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){gs(i,t,s)}}function Me(e,t,s,n){if($(e)){const i=zt(e,t,s,n);return i&&Vn(i)&&i.catch(r=>{gs(r,t,s)}),i}if(F(e)){const i=[];for(let r=0;r<e.length;r++)i.push(Me(e[r],t,s,n));return i}}function gs(e,t,s,n=!0){const i=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||Y;if(t){let o=t.parent;const u=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;o;){const a=o.ec;if(a){for(let _=0;_<a.length;_++)if(a[_](e,u,d)===!1)return}o=o.parent}if(r){ke(),zt(r,null,10,[e,u,d]),qe();return}}Lr(e,s,i,n,l)}function Lr(e,t,s,n=!0,i=!1){if(i)throw e;console.error(e)}const pe=[];let Le=-1;const Tt=[];let nt=null,xt=0;const di=Promise.resolve();let is=null;function Nr(e){const t=is||di;return e?t.then(this?e.bind(this):e):t}function Hr(e){let t=Le+1,s=pe.length;for(;t<s;){const n=t+s>>>1,i=pe[n],r=kt(i);r<e||r===e&&i.flags&2?t=n+1:s=n}return t}function nn(e){if(!(e.flags&1)){const t=kt(e),s=pe[pe.length-1];!s||!(e.flags&2)&&t>=kt(s)?pe.push(e):pe.splice(Hr(t),0,e),e.flags|=1,hi()}}function hi(){is||(is=di.then(gi))}function Br(e){F(e)?Tt.push(...e):nt&&e.id===-1?nt.splice(xt+1,0,e):e.flags&1||(Tt.push(e),e.flags|=1),hi()}function _n(e,t,s=Le+1){for(;s<pe.length;s++){const n=pe[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;pe.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function pi(e){if(Tt.length){const t=[...new Set(Tt)].sort((s,n)=>kt(s)-kt(n));if(Tt.length=0,nt){nt.push(...t);return}for(nt=t,xt=0;xt<nt.length;xt++){const s=nt[xt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}nt=null,xt=0}}const kt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function gi(e){try{for(Le=0;Le<pe.length;Le++){const t=pe[Le];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(;Le<pe.length;Le++){const t=pe[Le];t&&(t.flags&=-2)}Le=-1,pe.length=0,pi(),is=null,(pe.length||Tt.length)&&gi()}}let Ue=null,_i=null;function rs(e){const t=Ue;return Ue=e,_i=e&&e.type.__scopeId||null,t}function Kr(e,t=Ue,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&On(-1);const r=rs(t);let l;try{l=e(...i)}finally{rs(r),n._d&&On(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function ut(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 u=o.dir[n];u&&(ke(),Me(u,s,8,[e.el,o,e,t]),qe())}}function Ur(e,t){if(ge){let s=ge.provides;const n=ge.parent&&ge.parent.provides;n===s&&(s=ge.provides=Object.create(n)),s[e]=t}}function ts(e,t,s=!1){const n=Ul();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&&$(t)?t.call(n&&n.proxy):t}}const Vr=Symbol.for("v-scx"),Wr=()=>ts(Vr);function Es(e,t,s){return mi(e,t,s)}function mi(e,t,s=Y){const{immediate:n,deep:i,flush:r,once:l}=s,o=ce({},s),u=t&&n||!t&&r!=="post";let d;if(Jt){if(r==="sync"){const E=Wr();d=E.__watcherHandles||(E.__watcherHandles=[])}else if(!u){const E=()=>{};return E.stop=Ve,E.resume=Ve,E.pause=Ve,E}}const a=ge;o.call=(E,B,I)=>Me(E,a,B,I);let _=!1;r==="post"?o.scheduler=E=>{me(E,a&&a.suspense)}:r!=="sync"&&(_=!0,o.scheduler=(E,B)=>{B?E():nn(E)}),o.augmentJob=E=>{t&&(E.flags|=4),_&&(E.flags|=2,a&&(E.id=a.uid,E.i=a))};const T=jr(e,t,o);return Jt&&(d?d.push(T):u&&T()),T}function kr(e,t,s){const n=this.proxy,i=Q(e)?e.includes(".")?bi(n,e):()=>n[e]:e.bind(n,n);let r;$(t)?r=t:(r=t.handler,s=t);const l=Yt(this),o=mi(i,r.bind(n),s);return l(),o}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 $(e)?ce({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!!((s=O
* @vue/runtime-dom v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Vs;const Mn=typeof window<"u"&&window.trustedTypes;if(Mn)try{Vs=Mn.createPolicy("vue",{createHTML:e=>e})}catch{}const qi=Vs?e=>Vs.createHTML(e):e=>e,zl="http://www.w3.org/2000/svg",Yl="http://www.w3.org/1998/Math/MathML",ze=typeof document<"u"?document:null,Rn=ze&&ze.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"?ze.createElementNS(zl,e):t==="mathml"?ze.createElementNS(Yl,e):s?ze.createElement(e,{is:s}):ze.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>ze.createTextNode(e),createComment:e=>ze.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ze.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 o=Rn.content;if(n==="svg"||n==="mathml"){const u=o.firstChild;for(;u.firstChild;)o.appendChild(u.firstChild);o.removeChild(u)}t.insertBefore(o,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=Q(s);let r=!1;if(s&&!i){if(t)if(Q(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();s[o]==null&&$t(n,o,"")}else for(const l in t)s[l]==null&&$t(n,l,"");for(const l in s){l==="display"&&(r=!0);const o=s[l];o!=null?ro(e,l,!Q(t)&&t?t[l]:void 0,o)||$t(n,l,o):$t(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 $t(e,t,s){if(F(s))s.forEach(n=>$t(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(gt(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")&&Q(n)&&s===n}const $n="http://www.w3.org/1999/xlink";function jn(e,t,s,n,i,r=lr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS($n,t.slice(6,t.length)):e.setAttributeNS($n,t,s):s==null||r&&!Gn(s)?e.removeAttribute(t):e.setAttribute(t,r?"":We(s)?String(s):s)}function Ln(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 o=r==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(o!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let l=!1;if(s===""||s==null){const o=typeof e[t];o==="boolean"?s=Gn(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 lo(e,t,s,n){e.addEventListener(t,s,n)}function oo(e,t,s,n){e.removeEventListener(t,s,n)}const Nn=Symbol("_vei");function co(e,t,s,n,i=null){const r=e[Nn]||(e[Nn]={}),l=r[t];if(n&&l)l.value=n;else{const[o,u]=ao(t);if(n){const d=r[t]=go(n,i);lo(e,o,d,u)}else l&&(oo(e,o,l,u),r[t]=void 0)}}const uo=/(Once|Passive|Capture)$/,fo=/^on:?(?:Once|Passive|Capture)$/;function ao(e){let t,s;for(;(s=e.match(uo))&&!fo.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):gt(e.slice(2)),t]}let Is=0;const ho=Promise.resolve(),po=()=>Is||(ho.then(()=>Is=0),Is=Date.no