astrbot_plugin_imagestudio/pages/imagestudio/assets/index-DZQuAVR1.js

18 行
71 KiB
JavaScript

var qr=Object.defineProperty;var Gr=(e,t,s)=>t in e?qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var as=(e,t,s)=>Gr(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function s(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=s(r);fetch(r.href,i)}})();/**
* @vue/shared v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Hs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Y={},ft=[],Fe=()=>{},Hn=()=>!1,ts=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ss=e=>e.startsWith("onUpdate:"),oe=Object.assign,Ns=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Jr=Object.prototype.hasOwnProperty,k=(e,t)=>Jr.call(e,t),M=Array.isArray,ut=e=>Ht(e)==="[object Map]",Nn=e=>Ht(e)==="[object Set]",cn=e=>Ht(e)==="[object Date]",$=e=>typeof e=="function",X=e=>typeof e=="string",Le=e=>typeof e=="symbol",K=e=>e!==null&&typeof e=="object",kn=e=>(K(e)||$(e))&&$(e.then)&&$(e.catch),Bn=Object.prototype.toString,Ht=e=>Bn.call(e),zr=e=>Ht(e).slice(8,-1),Un=e=>Ht(e)==="[object Object]",ks=e=>X(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Et=Hs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ns=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Yr=/-\w/g,be=ns(e=>e.replace(Yr,t=>t.slice(1).toUpperCase())),Qr=/\B([A-Z])/g,it=ns(e=>e.replace(Qr,"-$1").toLowerCase()),Vn=ns(e=>e.charAt(0).toUpperCase()+e.slice(1)),ds=ns(e=>e?`on${Vn(e)}`:""),Me=(e,t)=>!Object.is(e,t),hs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Kn=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Xr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fn;const rs=()=>fn||(fn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Bs(e){if(M(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=X(n)?si(n):Bs(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(X(e)||K(e))return e}const Zr=/;(?![^(]*\))/g,ei=/:([^]+)/,ti=/\/\*[^]*?\*\//g;function si(e){const t={};return e.replace(ti,"").split(Zr).forEach(s=>{if(s){const n=s.split(ei);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Us(e){let t="";if(X(e))t=e;else if(M(e))for(let s=0;s<e.length;s++){const n=Us(e[s]);n&&(t+=n+" ")}else if(K(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const ni="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ri=Hs(ni);function Wn(e){return!!e||e===""}function ii(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Vs(e[n],t[n]);return s}function Vs(e,t){if(e===t)return!0;let s=cn(e),n=cn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Le(e),n=Le(t),s||n)return e===t;if(s=M(e),n=M(t),s||n)return s&&n?ii(e,t):!1;if(s=K(e),n=K(t),s||n){if(!s||!n)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),f=t.hasOwnProperty(o);if(l&&!f||!l&&f||!Vs(e[o],t[o]))return!1}}return String(e)===String(t)}const qn=e=>!!(e&&e.__v_isRef===!0),L=e=>X(e)?e:e==null?"":M(e)||K(e)&&(e.toString===Bn||!$(e.toString))?qn(e)?L(e.value):JSON.stringify(e,Gn,2):String(e),Gn=(e,t)=>qn(t)?Gn(e,t.value):ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[ps(n,i)+" =>"]=r,s),{})}:Nn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ps(s))}:Le(t)?ps(t):K(t)&&!M(t)&&!Un(t)?String(t):t,ps=(e,t="")=>{var s;return Le(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 ie;class oi{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&&ie&&(ie.active?(this.parent=ie,this.index=(ie.scopes||(ie.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=ie;try{return ie=this,t()}finally{ie=s}}}on(){++this._on===1&&(this.prevScope=ie,ie=this)}off(){if(this._on>0&&--this._on===0){if(ie===this)ie=this.prevScope;else{let t=ie;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 r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function li(){return ie}let z;const gs=new WeakSet;class Jn{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,ie&&(ie.active?ie.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,gs.has(this)&&(gs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Yn(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,un(this),Qn(this);const t=z,s=ye;z=this,ye=!0;try{return this.fn()}finally{Xn(this),z=t,ye=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)qs(t);this.deps=this.depsTail=void 0,un(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?gs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){As(this)&&this.run()}get dirty(){return As(this)}}let zn=0,At,Ot;function Yn(e,t=!1){if(e.flags|=8,t){e.next=Ot,Ot=e;return}e.next=At,At=e}function Ks(){zn++}function Ws(){if(--zn>0)return;if(Ot){let t=Ot;for(Ot=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;At;){let t=At;for(At=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 Qn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xn(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),qs(n),ci(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function As(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zn(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zn(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===$t)||(e.globalVersion=$t,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!As(e))))return;e.flags|=2;const t=e.dep,s=z,n=ye;z=e,ye=!0;try{Qn(e);const r=e.fn(e._value);(t.version===0||Me(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{z=s,ye=n,Xn(e),e.flags&=-3}}function qs(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)qs(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function ci(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let ye=!0;const er=[];function De(){er.push(ye),ye=!1}function je(){const e=er.pop();ye=e===void 0?!0:e}funct
* @vue/runtime-core v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Nt(e,t,s,n){try{return n?e(...n):e()}catch(r){os(r,t,s)}}function we(e,t,s,n){if($(e)){const r=Nt(e,t,s,n);return r&&kn(r)&&r.catch(i=>{os(i,t,s)}),r}if(M(e)){const r=[];for(let i=0;i<e.length;i++)r.push(we(e[i],t,s,n));return r}}function os(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Y;if(t){let l=t.parent;const f=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const a=l.ec;if(a){for(let p=0;p<a.length;p++)if(a[p](e,f,d)===!1)return}l=l.parent}if(i){De(),Nt(i,null,10,[e,f,d]),je();return}}Li(e,s,r,n,o)}function Li(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const ue=[];let Pe=-1;const at=[];let Ge=null,ct=0;const fr=Promise.resolve();let zt=null;function Di(e){const t=zt||fr;return e?t.then(this?e.bind(this):e):t}function ji(e){let t=Pe+1,s=ue.length;for(;t<s;){const n=t+s>>>1,r=ue[n],i=Lt(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function Xs(e){if(!(e.flags&1)){const t=Lt(e),s=ue[ue.length-1];!s||!(e.flags&2)&&t>=Lt(s)?ue.push(e):ue.splice(ji(t),0,e),e.flags|=1,ur()}}function ur(){zt||(zt=fr.then(dr))}function Hi(e){M(e)?at.push(...e):Ge&&e.id===-1?Ge.splice(ct+1,0,e):e.flags&1||(at.push(e),e.flags|=1),ur()}function dn(e,t,s=Pe+1){for(;s<ue.length;s++){const n=ue[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ue.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function ar(e){if(at.length){const t=[...new Set(at)].sort((s,n)=>Lt(s)-Lt(n));if(at.length=0,Ge){Ge.push(...t);return}for(Ge=t,ct=0;ct<Ge.length;ct++){const s=Ge[ct];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Ge=null,ct=0}}const Lt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function dr(e){try{for(Pe=0;Pe<ue.length;Pe++){const t=ue[Pe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Nt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Pe<ue.length;Pe++){const t=ue[Pe];t&&(t.flags&=-2)}Pe=-1,ue.length=0,ar(),zt=null,(ue.length||at.length)&&dr()}}let $e=null,hr=null;function Yt(e){const t=$e;return $e=e,hr=e&&e.type.__scopeId||null,t}function Ni(e,t=$e,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&Sn(-1);const i=Yt(t);let o;try{o=e(...r)}finally{Yt(i),n._d&&Sn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function et(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let f=l.dir[n];f&&(De(),we(f,s,8,[e.el,l,e,t]),je())}}function ki(e,t){if(ae){let s=ae.provides;const n=ae.parent&&ae.parent.provides;n===s&&(s=ae.provides=Object.create(n)),s[e]=t}}function Wt(e,t,s=!1){const n=Bo();if(n||dt){let r=dt?dt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&$(t)?t.call(n&&n.proxy):t}}const Bi=Symbol.for("v-scx"),Ui=()=>Wt(Bi);function bs(e,t,s){return pr(e,t,s)}function pr(e,t,s=Y){const{immediate:n,deep:r,flush:i,once:o}=s,l=oe({},s),f=t&&n||!t&&i!=="post";let d;if(jt){if(i==="sync"){const C=Ui();d=C.__watcherHandles||(C.__watcherHandles=[])}else if(!f){const C=()=>{};return C.stop=Fe,C.resume=Fe,C.pause=Fe,C}}const a=ae;l.call=(C,H,O)=>we(C,a,H,O);let p=!1;i==="post"?l.scheduler=C=>{de(C,a&&a.suspense)}:i!=="sync"&&(p=!0,l.scheduler=(C,H)=>{H?C():Xs(C)}),l.augmentJob=C=>{t&&(C.flags|=4),p&&(C.flags|=2,a&&(C.id=a.uid,C.i=a))};const S=Fi(e,t,l);return jt&&(d?d.push(S):f&&S()),S}function Vi(e,t,s){const n=this.proxy,r=X(e)?e.includes(".")?gr(n,e):()=>n[e]:e.bind(n,n);let i;$(t)?i=t:(i=t.handler,s=t);const o=kt(this),l=pr(r,i.bind(n),s);return o(),l}function gr(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const Ki=Symbol("_vte"),Wi=e=>e.__isTeleport,ys=Symbol("_leaveCb");function Zs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Zs(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 qi(e,t){return $(e)?oe({name:e.name},t,{setup:e}):e}function mr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function hn(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 js;const En=typeof window<"u"&&window.trustedTypes;if(En)try{js=En.createPolicy("vue",{createHTML:e=>e})}catch{}const Vr=js?e=>js.createHTML(e):e=>e,Jo="http://www.w3.org/2000/svg",zo="http://www.w3.org/1998/Math/MathML",Ne=typeof document<"u"?document:null,An=Ne&&Ne.createElement("template"),Yo={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 r=t==="svg"?Ne.createElementNS(Jo,e):t==="mathml"?Ne.createElementNS(zo,e):s?Ne.createElement(e,{is:s}):Ne.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Ne.createTextNode(e),createComment:e=>Ne.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ne.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{An.innerHTML=Vr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=An.content;if(n==="svg"||n==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Qo=Symbol("_vtc");function Xo(e,t,s){const n=e[Qo];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const On=Symbol("_vod"),Zo=Symbol("_vsh"),el=Symbol(""),tl=/(?:^|;)\s*display\s*:/;function sl(e,t,s){const n=e.style,r=X(s);let i=!1;if(s&&!r){if(t)if(X(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Tt(n,l,"")}else for(const o in t)s[o]==null&&Tt(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?rl(e,o,!X(t)&&t?t[o]:void 0,l)||Tt(n,o,l):Tt(n,o,"")}}else if(r){if(t!==s){const o=n[el];o&&(s+=";"+o),n.cssText=s,i=tl.test(s)}}else t&&e.removeAttribute("style");On in e&&(e[On]=i?n.display:"",e[Zo]&&(n.display="none"))}const Pn=/\s*!important$/;function Tt(e,t,s){if(M(s))s.forEach(n=>Tt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=nl(e,t);Pn.test(s)?e.setProperty(it(n),s.replace(Pn,""),"important"):e[n]=s}}const In=["Webkit","Moz","ms"],Ss={};function nl(e,t){const s=Ss[t];if(s)return s;let n=be(t);if(n!=="filter"&&n in e)return Ss[t]=n;n=Vn(n);for(let r=0;r<In.length;r++){const i=In[r]+n;if(i in e)return Ss[t]=i}return t}function rl(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&X(n)&&s===n}const Rn="http://www.w3.org/1999/xlink";function Mn(e,t,s,n,r,i=ri(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Rn,t.slice(6,t.length)):e.setAttributeNS(Rn,t,s):s==null||i&&!Wn(s)?e.removeAttribute(t):e.setAttribute(t,i?"":Le(s)?String(s):s)}function $n(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Vr(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,f=s==null?e.type==="checkbox"?"on":"":String(s);(l!==f||!("_value"in e))&&(e.value=f),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=Wn(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function il(e,t,s,n){e.addEventListener(t,s,n)}function ol(e,t,s,n){e.removeEventListener(t,s,n)}const Fn=Symbol("_vei");function ll(e,t,s,n,r=null){const i=e[Fn]||(e[Fn]={}),o=i[t];if(n&&o)o.value=n;else{const[l,f]=ul(t);if(n){const d=i[t]=hl(n,r);il(e,l,d,f)}else o&&(ol(e,l,o,f),i[t]=void 0)}}const cl=/(Once|Passive|Capture)$/,fl=/^on:?(?:Once|Passive|Capture)$/;function ul(e){let t,s;for(;(s=e.match(cl))&&!fl.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):it(e.slice(2)),t]}let Cs=0;const al=Promise.resolve(),dl=()=>Cs||(al.then(()=>Cs=0),Cs=Date.no