astrbot_plugin_imagestudio/web/assets/index-1P8ns5-A.js

18 行
133 KiB
JavaScript

var xr=Object.defineProperty;var Cr=(e,t,l)=>t in e?xr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l;var cn=(e,t,l)=>Cr(e,typeof t!="symbol"?t+"":t,l);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const d of i.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(s){if(s.ep)return;s.ep=!0;const i=l(s);fetch(s.href,i)}})();/**
* @vue/shared v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Rn(e){const t=Object.create(null);for(const l of e.split(","))t[l]=1;return l=>l in t}const ge={},Kt=[],pt=()=>{},ts=()=>!1,Kl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ql=e=>e.startsWith("onUpdate:"),Pe=Object.assign,$n=(e,t)=>{const l=e.indexOf(t);l>-1&&e.splice(l,1)},Sr=Object.prototype.hasOwnProperty,ue=(e,t)=>Sr.call(e,t),q=Array.isArray,qt=e=>_l(e)==="[object Map]",Jl=e=>_l(e)==="[object Set]",xo=e=>_l(e)==="[object Date]",J=e=>typeof e=="function",be=e=>typeof e=="string",vt=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",ls=e=>(pe(e)||J(e))&&J(e.then)&&J(e.catch),ns=Object.prototype.toString,_l=e=>ns.call(e),Pr=e=>_l(e).slice(8,-1),os=e=>_l(e)==="[object Object]",Vn=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ol=Rn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gl=e=>{const t=Object.create(null);return(l=>t[l]||(t[l]=e(l)))},Dr=/-\w/g,lt=Gl(e=>e.replace(Dr,t=>t.slice(1).toUpperCase())),Er=/\B([A-Z])/g,Ft=Gl(e=>e.replace(Er,"-$1").toLowerCase()),ss=Gl(e=>e.charAt(0).toUpperCase()+e.slice(1)),fn=Gl(e=>e?`on${ss(e)}`:""),ft=(e,t)=>!Object.is(e,t),Ul=(e,...t)=>{for(let l=0;l<e.length;l++)e[l](...t)},is=(e,t,l,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:l})},zl=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Co;const Yl=()=>Co||(Co=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Bn(e){if(q(e)){const t={};for(let l=0;l<e.length;l++){const o=e[l],s=be(o)?Ar(o):Bn(o);if(s)for(const i in s)t[i]=s[i]}return t}else if(be(e)||pe(e))return e}const Tr=/;(?![^(]*\))/g,Ir=/:([^]+)/,Or=/\/\*[^]*?\*\//g;function Ar(e){const t={};return e.replace(Or,"").split(Tr).forEach(l=>{if(l){const o=l.split(Ir);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ql(e){let t="";if(be(e))t=e;else if(q(e))for(let l=0;l<e.length;l++){const o=Ql(e[l]);o&&(t+=o+" ")}else if(pe(e))for(const l in e)e[l]&&(t+=l+" ");return t.trim()}const Ur="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Mr=Rn(Ur);function rs(e){return!!e||e===""}function Rr(e,t){if(e.length!==t.length)return!1;let l=!0;for(let o=0;l&&o<e.length;o++)l=hl(e[o],t[o]);return l}function hl(e,t){if(e===t)return!0;let l=xo(e),o=xo(t);if(l||o)return l&&o?e.getTime()===t.getTime():!1;if(l=vt(e),o=vt(t),l||o)return e===t;if(l=q(e),o=q(t),l||o)return l&&o?Rr(e,t):!1;if(l=pe(e),o=pe(t),l||o){if(!l||!o)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const d in e){const f=e.hasOwnProperty(d),v=t.hasOwnProperty(d);if(f&&!v||!f&&v||!hl(e[d],t[d]))return!1}}return String(e)===String(t)}function $r(e,t){return e.findIndex(l=>hl(l,t))}const as=e=>!!(e&&e.__v_isRef===!0),a=e=>be(e)?e:e==null?"":q(e)||pe(e)&&(e.toString===ns||!J(e.toString))?as(e)?a(e.value):JSON.stringify(e,us,2):String(e),us=(e,t)=>as(t)?us(e,t.value):qt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((l,[o,s],i)=>(l[pn(o,i)+" =>"]=s,l),{})}:Jl(t)?{[`Set(${t.size})`]:[...t.values()].map(l=>pn(l))}:vt(t)?pn(t):pe(t)&&!q(t)&&!os(t)?String(t):t,pn=(e,t="")=>{var l;return vt(e)?`Symbol(${(l=e.description)!=null?l:t})`:e};/**
* @vue/reactivity v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Se;class Vr{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&&Se&&(Se.active?(this.parent=Se,this.index=(Se.scopes||(Se.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,l;if(this.scopes)for(t=0,l=this.scopes.length;t<l;t++)this.scopes[t].pause();for(t=0,l=this.effects.length;t<l;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,l;if(this.scopes)for(t=0,l=this.scopes.length;t<l;t++)this.scopes[t].resume();for(t=0,l=this.effects.length;t<l;t++)this.effects[t].resume()}}run(t){if(this._active){const l=Se;try{return Se=this,t()}finally{Se=l}}}on(){++this._on===1&&(this.prevScope=Se,Se=this)}off(){if(this._on>0&&--this._on===0){if(Se===this)Se=this.prevScope;else{let t=Se;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 l,o;for(l=0,o=this.effects.length;l<o;l++)this.effects[l].stop();for(this.effects.length=0,l=0,o=this.cleanups.length;l<o;l++)this.cleanups[l]();if(this.cleanups.length=0,this.scopes){for(l=0,o=this.scopes.length;l<o;l++)this.scopes[l].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Br(){return Se}let he;const vn=new WeakSet;class ds{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,Se&&(Se.active?Se.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,vn.has(this)&&(vn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||fs(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,So(this),ps(this);const t=he,l=nt;he=this,nt=!0;try{return this.fn()}finally{vs(this),he=t,nt=l,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Nn(t);this.deps=this.depsTail=void 0,So(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?vn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Cn(this)&&this.run()}get dirty(){return Cn(this)}}let cs=0,sl,il;function fs(e,t=!1){if(e.flags|=8,t){e.next=il,il=e;return}e.next=sl,sl=e}function Ln(){cs++}function Fn(){if(--cs>0)return;if(il){let t=il;for(il=void 0;t;){const l=t.next;t.next=void 0,t.flags&=-9,t=l}}let e;for(;sl;){let t=sl;for(sl=void 0;t;){const l=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=l}}if(e)throw e}function ps(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vs(e){let t,l=e.depsTail,o=l;for(;o;){const s=o.prevDep;o.version===-1?(o===l&&(l=s),Nn(o),Lr(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=l}function Cn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(gs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function gs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===cl)||(e.globalVersion=cl,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Cn(e))))return;e.flags|=2;const t=e.dep,l=he,o=nt;he=e,nt=!0;try{ps(e);const s=e.fn(e._value);(t.version===0||ft(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{he=l,nt=o,vs(e),e.flags&=-3}}function Nn(e,t=!1){const{dep:l,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),l.subs===e&&(l.subs=o,!o&&l.computed)){l.computed.flags&=-5;for(let i=l.computed.deps;i;i=i.nextDep)Nn(i,!0)}!t&&!--l.sc&&l.map&&l.map.delete(l.key)}function Lr(e){const{prevDep:t,nextDep:l}=e;t&&(t.nextDep=l,e.prevDep=void 0),l&&(l.prevDep=t,e.nextDep=void 0)}let nt=!0;const _s=[];function gt(){_s.push(nt),nt=!1}function _t(){const e=_s.pop();nt=e===void 0?!0:
* @vue/runtime-core v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function ml(e,t,l,o){try{return o?e(...o):e()}catch(s){Zl(s,t,l)}}function st(e,t,l,o){if(J(e)){const s=ml(e,t,l,o);return s&&ls(s)&&s.catch(i=>{Zl(i,t,l)}),s}if(q(e)){const s=[];for(let i=0;i<e.length;i++)s.push(st(e[i],t,l,o));return s}}function Zl(e,t,l,o=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:d}=t&&t.appContext.config||ge;if(t){let f=t.parent;const v=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${l}`;for(;f;){const _=f.ec;if(_){for(let w=0;w<_.length;w++)if(_[w](e,v,h)===!1)return}f=f.parent}if(i){gt(),ml(i,null,10,[e,v,h]),_t();return}}fa(e,l,s,o,d)}function fa(e,t,l,o=!0,s=!1){if(s)throw e;console.error(e)}const Re=[];let at=-1;const Jt=[];let Ot=null,Ht=0;const Ss=Promise.resolve();let Vl=null;function Ps(e){const t=Vl||Ss;return e?t.then(this?e.bind(this):e):t}function pa(e){let t=at+1,l=Re.length;for(;t<l;){const o=t+l>>>1,s=Re[o],i=pl(s);i<e||i===e&&s.flags&2?t=o+1:l=o}return t}function Jn(e){if(!(e.flags&1)){const t=pl(e),l=Re[Re.length-1];!l||!(e.flags&2)&&t>=pl(l)?Re.push(e):Re.splice(pa(t),0,e),e.flags|=1,Ds()}}function Ds(){Vl||(Vl=Ss.then(Ts))}function va(e){q(e)?Jt.push(...e):Ot&&e.id===-1?Ot.splice(Ht+1,0,e):e.flags&1||(Jt.push(e),e.flags|=1),Ds()}function Do(e,t,l=at+1){for(;l<Re.length;l++){const o=Re[l];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Re.splice(l,1),l--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function Es(e){if(Jt.length){const t=[...new Set(Jt)].sort((l,o)=>pl(l)-pl(o));if(Jt.length=0,Ot){Ot.push(...t);return}for(Ot=t,Ht=0;Ht<Ot.length;Ht++){const l=Ot[Ht];l.flags&4&&(l.flags&=-2),l.flags&8||l(),l.flags&=-2}Ot=null,Ht=0}}const pl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ts(e){try{for(at=0;at<Re.length;at++){const t=Re[at];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ml(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;at<Re.length;at++){const t=Re[at];t&&(t.flags&=-2)}at=-1,Re.length=0,Es(),Vl=null,(Re.length||Jt.length)&&Ts()}}let Ye=null,Is=null;function Bl(e){const t=Ye;return Ye=e,Is=e&&e.type.__scopeId||null,t}function ga(e,t=Ye,l){if(!t||e._n)return e;const o=(...s)=>{o._d&&Bo(-1);const i=Bl(t);let d;try{d=e(...s)}finally{Bl(i),o._d&&Bo(1)}return d};return o._n=!0,o._c=!0,o._d=!0,o}function O(e,t){if(Ye===null)return e;const l=nn(Ye),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,d,f,v=ge]=t[s];i&&(J(i)&&(i={mounted:i,updated:i}),i.deep&&Ct(d),o.push({dir:i,instance:l,value:d,oldValue:void 0,arg:f,modifiers:v}))}return e}function Mt(e,t,l,o){const s=e.dirs,i=t&&t.dirs;for(let d=0;d<s.length;d++){const f=s[d];i&&(f.oldValue=i[d].value);let v=f.dir[o];v&&(gt(),st(v,l,8,[e.el,f,e,t]),_t())}}function _a(e,t){if($e){let l=$e.provides;const o=$e.parent&&$e.parent.provides;o===l&&(l=$e.provides=Object.create(o)),l[e]=t}}function Ml(e,t,l=!1){const o=_u();if(o||Gt){let s=Gt?Gt._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return l&&J(t)?t.call(o&&o.proxy):t}}const ha=Symbol.for("v-scx"),ma=()=>Ml(ha);function hn(e,t,l){return Os(e,t,l)}function Os(e,t,l=ge){const{immediate:o,deep:s,flush:i,once:d}=l,f=Pe({},l),v=t&&o||!t&&i!=="post";let h;if(gl){if(i==="sync"){const $=ma();h=$.__watcherHandles||($.__watcherHandles=[])}else if(!v){const $=()=>{};return $.stop=pt,$.resume=pt,$.pause=pt,$}}const _=$e;f.call=($,te,H)=>st($,_,te,H);let w=!1;i==="post"?f.scheduler=$=>{Le($,_&&_.suspense)}:i!=="sync"&&(w=!0,f.scheduler=($,te)=>{te?$():Jn($)}),f.augmentJob=$=>{t&&($.flags|=4),w&&($.flags|=2,_&&($.id=_.uid,$.i=_))};const M=ca(e,t,f);return gl&&(h?h.push(M):v&&M()),M}function ya(e,t,l){const o=this.proxy,s=be(e)?e.includes(".")?As(o,e):()=>o[e]:e.bind(o,o);let i;J(t)?i=t:(i=t.handler,l=t);const d=yl(this),f=Os(s,i.bind(o),l);return d(),f}function As(e,t){const l=t.split(".");return()=>{let o=e;for(let s=0;s<l.length&&o;s++)o=o[l[s]];return o}}const ba=Symbol("_vte"),wa=e=>e.__isTeleport,mn=Symbol("_leaveCb");function Gn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Gn(e.component.subTree,t)):e.shapeFlag
* @vue/runtime-dom v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Mn;const No=typeof window<"u"&&window.trustedTypes;if(No)try{Mn=No.createPolicy("vue",{createHTML:e=>e})}catch{}const ii=Mn?e=>Mn.createHTML(e):e=>e,xu="http://www.w3.org/2000/svg",Cu="http://www.w3.org/1998/Math/MathML",wt=typeof document<"u"?document:null,jo=wt&&wt.createElement("template"),Su={insert:(e,t,l)=>{t.insertBefore(e,l||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,l,o)=>{const s=t==="svg"?wt.createElementNS(xu,e):t==="mathml"?wt.createElementNS(Cu,e):l?wt.createElement(e,{is:l}):wt.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>wt.createTextNode(e),createComment:e=>wt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,l,o,s,i){const d=l?l.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),l),!(s===i||!(s=s.nextSibling)););else{jo.innerHTML=ii(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const f=jo.content;if(o==="svg"||o==="mathml"){const v=f.firstChild;for(;v.firstChild;)f.appendChild(v.firstChild);f.removeChild(v)}t.insertBefore(f,l)}return[d?d.nextSibling:t.firstChild,l?l.previousSibling:t.lastChild]}},Pu=Symbol("_vtc");function Du(e,t,l){const o=e[Pu];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):l?e.setAttribute("class",t):e.className=t}const Wo=Symbol("_vod"),Eu=Symbol("_vsh"),Tu=Symbol(""),Iu=/(?:^|;)\s*display\s*:/;function Ou(e,t,l){const o=e.style,s=be(l);let i=!1;if(l&&!s){if(t)if(be(t))for(const d of t.split(";")){const f=d.slice(0,d.indexOf(":")).trim();l[f]==null&&nl(o,f,"")}else for(const d in t)l[d]==null&&nl(o,d,"");for(const d in l){d==="display"&&(i=!0);const f=l[d];f!=null?Uu(e,d,!be(t)&&t?t[d]:void 0,f)||nl(o,d,f):nl(o,d,"")}}else if(s){if(t!==l){const d=o[Tu];d&&(l+=";"+d),o.cssText=l,i=Iu.test(l)}}else t&&e.removeAttribute("style");Wo in e&&(e[Wo]=i?o.display:"",e[Eu]&&(o.display="none"))}const Ho=/\s*!important$/;function nl(e,t,l){if(q(l))l.forEach(o=>nl(e,t,o));else if(l==null&&(l=""),t.startsWith("--"))e.setProperty(t,l);else{const o=Au(e,t);Ho.test(l)?e.setProperty(Ft(o),l.replace(Ho,""),"important"):e[o]=l}}const Ko=["Webkit","Moz","ms"],kn={};function Au(e,t){const l=kn[t];if(l)return l;let o=lt(t);if(o!=="filter"&&o in e)return kn[t]=o;o=ss(o);for(let s=0;s<Ko.length;s++){const i=Ko[s]+o;if(i in e)return kn[t]=i}return t}function Uu(e,t,l,o){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&be(o)&&l===o}const qo="http://www.w3.org/1999/xlink";function Jo(e,t,l,o,s,i=Mr(t)){o&&t.startsWith("xlink:")?l==null?e.removeAttributeNS(qo,t.slice(6,t.length)):e.setAttributeNS(qo,t,l):l==null||i&&!rs(l)?e.removeAttribute(t):e.setAttribute(t,i?"":vt(l)?String(l):l)}function Go(e,t,l,o,s){if(t==="innerHTML"||t==="textContent"){l!=null&&(e[t]=t==="innerHTML"?ii(l):l);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const f=i==="OPTION"?e.getAttribute("value")||"":e.value,v=l==null?e.type==="checkbox"?"on":"":String(l);(f!==v||!("_value"in e))&&(e.value=v),l==null&&e.removeAttribute(t),e._value=l;return}let d=!1;if(l===""||l==null){const f=typeof e[t];f==="boolean"?l=rs(l):l==null&&f==="string"?(l="",d=!0):f==="number"&&(l=0,d=!0)}try{e[t]=l}catch{}d&&e.removeAttribute(s||t)}function Vt(e,t,l,o){e.addEventListener(t,l,o)}function Mu(e,t,l,o){e.removeEventListener(t,l,o)}const zo=Symbol("_vei");function Ru(e,t,l,o,s=null){const i=e[zo]||(e[zo]={}),d=i[t];if(o&&d)d.value=o;else{const[f,v]=Bu(t);if(o){const h=i[t]=Nu(o,s);Vt(e,f,h,v)}else d&&(Mu(e,f,d,v),i[t]=void 0)}}const $u=/(Once|Passive|Capture)$/,Vu=/^on:?(?:Once|Passive|Capture)$/;function Bu(e){let t,l;for(;(l=e.match($u))&&!Vu.test(e);)t||(t={}),e=e.slice(0,e.length-l[1].length),t[l[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Ft(e.slice(2)),t]}let xn=0;const Lu=Promise.resolve(),Fu=()=>xn||(Lu.then(()=>xn=0),xn=Dat